:root {
  --bg: #f5f4ef;
  --panel: #ffffff;
  --text: #243127;
  --muted: #667064;
  --line: #d9ded4;
  --primary: #2f6b4f;
  --primary-dark: #214d39;
  --accent: #b88b4a;
  --danger: #a33b32;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}
.brand-logo {
  display: block;
  width: auto;
  height: 32px;
  max-width: 160px;
  flex: 0 0 auto;
}
.brand-text { display: inline-block; }
nav { display: flex; flex-wrap: wrap; gap: 10px; }
nav a, .button, button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
button.primary, .button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
button.primary:hover, .button.primary:hover { background: var(--primary-dark); }
button.subtle-danger, .button.subtle-danger {
  background: #fff8f4;
  border-color: #e5c8bd;
  color: var(--danger);
}
button.archive-button, .button.archive-button {
  background: #f7f7f4;
  border-color: #d8ded5;
  color: #5f6b5a;
}
.container { max-width: 1180px; margin: 0 auto; padding: 28px; }
h1 { font-size: 28px; margin: 0 0 22px; }
h2 { font-size: 18px; margin: 10px 0 6px; }
.auth-panel { max-width: 440px; margin: 60px auto; background: var(--panel); padding: 28px; border: 1px solid var(--line); border-radius: 8px; }
.form { display: grid; gap: 18px; }
.form.wide { max-width: 820px; }
label { display: grid; gap: 7px; font-weight: 700; }
.bulk-apply-mode-options {
  display: grid;
  gap: 10px;
}

.bulk-apply-mode-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  cursor: pointer;
}

.bulk-apply-mode-option input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.bulk-apply-mode-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.bulk-apply-mode .form-help {
  margin: 12px 0 0;
}

input[type="number"][name="captured_year"], input[type="text"], input[type="password"], input[type="file"], input[type="search"], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
.form-help {
  margin: -6px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
  color: var(--muted);
  font-size: 0.92rem;
}
.field-help {
  display: block;
  margin-top: 4px;
  margin-bottom: 10px;
  color: #626a60;
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 500;
}
.checkbox-field {
  display: block;
  width: 100%;
  min-width: 0;
}
.checkbox-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  background: #eef3ea;
  border-radius: 8px;
  font-weight: 700;
}
.checkbox-main span {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.checkbox-help {
  display: block;
  margin-top: 4px;
  margin-bottom: 10px;
  margin-left: 42px;
  width: calc(100% - 42px);
  max-width: calc(100% - 42px);
  overflow-wrap: anywhere;
  color: #626a60;
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 500;
}
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
legend { font-weight: 700; padding: 0 8px; }
.tag-fieldset {
  display: grid;
  gap: 12px;
}
.tag-group-list {
  display: grid;
  gap: 12px;
}
.tag-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f7f4;
}
.tag-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.tag-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-grid label, .check-row, .select-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  background: #eef3ea;
  border-radius: 8px;
}
input[type="checkbox"] { width: 22px; height: 22px; }
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; background: #eef3ea; border: 1px solid var(--line); }
.flash.error { color: var(--danger); background: #fff2ef; }
.flash.success { color: var(--primary-dark); }
.flash.warning { color: #6f5520; background: #fff8df; border-color: #e2c779; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; text-decoration: none; }
.stat strong { display: block; font-size: 34px; color: var(--primary); }
.actions, .list-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; align-items: center; }

.media-filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  max-width: 100%;
}
.media-filter-chips__label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}
.media-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f4f7f2;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.media-filter-chip:hover,
.media-filter-chip:focus-visible {
  border-color: var(--accent);
  background: #eef6ea;
}
.upload-complete {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.upload-complete h2 {
  margin: 0;
}
.upload-complete p {
  margin: 0;
  color: var(--muted);
}
.upload-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.upload-complete-actions .action-main {
  font-size: 1.02rem;
  padding-inline: 20px;
}
.uploaded-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.uploaded-preview-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #fff;
}
.uploaded-preview-media {
  width: 100%;
  height: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f3f5f1;
  color: var(--muted);
  font-weight: 800;
}
.uploaded-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.uploaded-preview-name {
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.uploaded-preview-meta {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.uploaded-preview-memo {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.upload-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.upload-preview h2 {
  margin: 0;
  font-size: 18px;
}
.upload-preview-empty {
  padding: 18px;
  border-radius: 8px;
  background: #f7f7f4;
  color: var(--muted);
}
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 16px;
  max-width: 100%;
}
.upload-preview-card {
  border: 1px solid #d8ded5;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
  max-width: 220px;
}
.upload-preview-media {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  background: #f3f5f1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 800;
  cursor: zoom-in;
}
.upload-preview-media img,
.upload-preview-media video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.upload-preview-media video {
  background: #111;
}
.upload-preview-unavailable {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  box-sizing: border-box;
  color: #5f6b5a;
  font-weight: 700;
  font-size: 0.85rem;
  background: #f3f5f1;
}
.upload-preview-name {
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-all;
}
.upload-preview-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #666;
}
.upload-lightbox[hidden] { display: none; }
.upload-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.upload-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.upload-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(88vh, 900px);
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.upload-lightbox-panel h2 {
  margin: 0;
  padding-right: 46px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.upload-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  padding: 8px 12px;
  font-size: 24px;
  line-height: 1;
}
.upload-lightbox-body {
  display: grid;
  place-items: center;
  min-height: 240px;
  max-height: 80vh;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.upload-lightbox-body img,
.upload-lightbox-body video {
  width: 100%;
  height: 100%;
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.upload-lightbox-unavailable {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  text-align: center;
  font-weight: 800;
}
body.has-upload-lightbox { overflow: hidden; }
.job-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; align-items: center; }
.job-action-form { display: inline-flex; margin: 0; }
.job-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.archive-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}
.job-status-chip {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
}
.job-status-chip span {
  color: var(--muted);
  font-weight: 800;
}
.job-status-chip strong {
  color: var(--text);
}
.job-status-chip.active {
  border-color: var(--primary);
  background: #eef3ea;
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.14);
}
.job-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
}
.job-card-header h2 {
  margin: 0;
  min-width: 0;
}
.job-state-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f7f4;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
}
.job-state-ready {
  border-color: #d6c58b;
  background: #fff9df;
  color: #7a5a0a;
}
.job-state-processing {
  border-color: #c2d6e8;
  background: #edf6ff;
  color: #285a83;
}
.job-state-done {
  border-color: #bad7c4;
  background: #edf8f0;
  color: var(--primary-dark);
}
.job-state-failed {
  border-color: #e8b8ad;
  background: #fff0ed;
  color: var(--danger);
}
.job-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.job-meta-list div {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
  font-size: 0.88rem;
}
.job-meta-list dt {
  color: var(--muted);
  font-weight: 800;
}
.job-meta-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}
.job-result-box,
.job-failure-box {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfbf8;
}
.job-result-box {
  border-color: #bad7c4;
  background: #f4faf5;
}
.job-failure-box {
  border-color: #e8b8ad;
  background: #fff8f6;
}
.job-section-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}
.job-result-actions {
  margin: 0;
}
.job-error-message {
  max-height: 13em;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.job-card.archived {
  background: #fbfaf6;
}
.archive-badge {
  background: #eef3ea;
  color: var(--primary-dark);
}
.job-motion-summary {
  margin: 12px 0;
  padding: 9px 11px;
  border: 1px solid #c9d8e3;
  border-radius: 8px;
  background: #f2f7fa;
  color: #2f4f63;
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.job-motion-details {
  margin: 8px 0 12px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
}
.job-motion-details summary {
  cursor: pointer;
  font-weight: 800;
}
.job-motion-details ol {
  margin: 8px 0 0;
  padding-left: 1.6em;
}
.job-motion-details li {
  overflow-wrap: anywhere;
}
.job-review-details {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.job-review-details summary {
  cursor: pointer;
  font-weight: 800;
}
.job-review-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.job-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.job-review-form textarea {
  min-height: 110px;
}
.job-review-form button {
  justify-self: start;
}
.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.completed-videos-pagination {
  align-items: center;
}
.completed-videos-pagination .meta {
  flex: 0 0 auto;
  white-space: nowrap;
}
.bottom-links {
  margin-top: 18px;
}
.completed-video-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.completed-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.completed-video-card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.completed-video-card.archived {
  background: #fbfaf6;
}
.completed-video-preview {
  width: min(100%, 280px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 8px;
  background: #111;
  overflow: hidden;
}
.completed-video-preview video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.completed-video-body {
  min-width: 0;
}
.completed-video-path {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f7f4;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.completed-video-actions {
  align-items: stretch;
}
.status-note {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef3ea;
  border: 1px solid var(--line);
  font-weight: 700;
}
.status-note.error {
  color: var(--danger);
  background: #fff2ef;
}
.json-help-card,
.json-error-box,
.json-warning-box,
.json-info-box {
  max-width: 820px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
}
.json-help-card h2,
.json-error-box h2,
.json-warning-box h2,
.json-info-box h2 {
  margin: 0 0 8px;
}
.json-help-card ul,
.json-error-box ul,
.json-warning-box ul {
  margin: 0;
  padding-left: 1.3em;
}
.json-help-card code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #fff;
}
.json-error-box {
  border-color: #e5b4ad;
  background: #fff2ef;
  color: var(--danger);
}
.json-warning-box {
  border-color: #e2c779;
  background: #fff8df;
  color: #6f5520;
}
.json-info-box {
  border-color: #c9d8e3;
  background: #f2f7fa;
  color: #2f4f63;
}
.motion-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
}
.motion-summary-list div {
  padding: 8px 10px;
  border: 1px solid #d9e5ec;
  border-radius: 8px;
  background: #fff;
}
.motion-summary-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}
.motion-summary-list dd {
  margin: 2px 0 0;
  font-size: 1.2rem;
  font-weight: 900;
}
.media-filter-form {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.media-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}
/* PR #94: 絞り込みの詳細条件折りたたみ（<details>・JSなし）。 */
.media-filter-details {
  margin-top: 12px;
}
.media-filter-details > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 2px;
}
.media-filter-details[open] > summary {
  margin-bottom: 10px;
}
.media-filter-details > .media-filter-grid {
  margin-top: 4px;
}
.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef3ea;
}
.media-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.media-list-summary {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3ea;
  font-weight: 800;
}
.view-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}
.view-switch-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}
.view-switch-link.active {
  border-color: var(--primary);
  background: #eef3ea;
  color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.14);
}
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.media-grid-large {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}
.media-card, .job-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.media-card:target {
  scroll-margin-top: 80px;
  outline: 3px solid rgba(47, 107, 79, 0.35);
  outline-offset: 3px;
}
.media-card-large {
  padding: 16px;
}
.media-select-card {
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.media-select-card.selected {
  border-color: var(--primary);
  background: #f0f6ef;
  box-shadow: 0 0 0 3px rgba(47, 107, 79, 0.18);
}
.selected-ribbon {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.media-select-card.selected .selected-ribbon { display: inline-block; }
.media-select-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  background: var(--bg);
}
.selected-count {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: #eef3ea;
  border: 1px solid var(--line);
  font-weight: 800;
}
.selected-media-panel {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.selected-media-panel h2 {
  margin: 0;
}
.selected-media-empty {
  padding: 12px;
  border-radius: 8px;
  background: #f7f7f4;
  color: var(--muted);
}
.selected-media-empty[hidden] {
  display: none;
}
.selected-media-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.selected-media-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f4;
}
.selected-media-thumb {
  width: 64px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #eef0ea;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.selected-media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.selected-media-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.selected-media-body strong,
.selected-media-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selected-media-body span {
  color: var(--muted);
  font-size: 0.82rem;
}
.selected-media-remove {
  min-height: 40px;
  padding: 8px 10px;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.media-preview-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  cursor: zoom-in;
  text-align: inherit;
}
.media-preview-trigger:disabled {
  cursor: default;
  opacity: 1;
}
.thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: #eef0ea;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-weight: 800;
}
.media-thumb-large {
  aspect-ratio: auto;
  height: min(520px, 70vh);
}
.media-card-thumb img,
.media-card-thumb .media-preview-image,
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.media-card-video-frame {
  cursor: default;
}
.media-card-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #111;
}
.video-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 18px;
  color: #6f5a37;
  text-align: center;
  line-height: 1.45;
}
.video-preview-placeholder-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9ddc8;
  color: #5f421c;
  font-weight: 800;
}
.thumb.large { aspect-ratio: 4 / 3; min-width: 320px; }
.media-lightbox[hidden] { display: none; }
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}
.media-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.media-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 96vh;
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.media-lightbox-panel h2 {
  margin: 0;
  padding-right: 46px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.media-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  padding: 8px 12px;
  font-size: 24px;
  line-height: 1;
}
.media-lightbox-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  max-height: 90vh;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.media-lightbox-body img,
.media-lightbox-body video {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 90vh;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.media-lightbox-unavailable {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #fff;
  text-align: center;
  font-weight: 800;
}
body.has-lightbox { overflow: hidden; }
.meta { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.video-preview-status {
  margin-top: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.45;
}
.video-preview-status.available { color: #2f6b4f; }
.video-preview-status.missing { color: #8a5a16; }
.badge { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 999px; background: #efe4d2; color: #5f421c; font-weight: 700; }
.full { display: block; text-align: center; margin-top: 12px; }
.edit-layout { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 24px; align-items: start; }
.media-edit-action-bar {
  position: sticky;
  top: 12px;
  z-index: 30;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(42, 51, 42, 0.12);
  backdrop-filter: blur(8px);
}
.media-edit-action-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.media-edit-action-bar__actions > * {
  flex: 1 1 130px;
  margin: 0;
  text-align: center;
}
.prompt-box { width: 100%; min-height: 560px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.inline-form { display: inline; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f7f7f4; padding: 14px; border-radius: 8px; }
.table-wrap {
  overflow-x: auto;
}
.debug-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}
.debug-table th,
.debug-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.debug-table th {
  background: #eef3ea;
}
@media (max-width: 760px) {
  .topbar, .edit-layout { display: block; }
  .brand { font-size: 17px; }
  .brand-logo { height: 28px; max-width: 140px; }
  nav { margin-top: 12px; }
  .container { padding: 18px; }
  .stats { grid-template-columns: 1fr; }
  .media-filter-grid { grid-template-columns: 1fr; }
  .media-filter-actions { display: grid; grid-template-columns: 1fr; }
  .media-filter-actions .button,
  .media-filter-actions button {
    width: 100%;
    text-align: center;
  }
  .view-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .view-switch-link {
    width: 100%;
  }
  .filter-check { width: 100%; }
  .completed-video-filter {
    grid-template-columns: 1fr;
  }
  .filter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .filter-actions .button,
  .filter-actions button,
  .page-links .button {
    width: 100%;
    text-align: center;
  }
  .completed-videos-pagination {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .completed-videos-pagination .button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }
  .completed-video-grid {
    grid-template-columns: 1fr;
  }
  .completed-video-preview {
    width: min(100%, 260px);
  }
  .media-grid-large {
    grid-template-columns: 1fr;
  }
  .media-thumb-large {
    height: min(460px, 70vh);
  }
  .selected-media-list { grid-template-columns: 1fr; }
  .selected-media-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .selected-media-remove {
    grid-column: 1 / -1;
    width: 100%;
  }
  .job-status-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .job-status-chip {
    width: 100%;
    justify-content: space-between;
  }
  .job-actions,
  .job-action-form {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .job-actions .button,
  .job-actions button {
    width: 100%;
    text-align: center;
  }
  .job-card-header {
    display: grid;
    gap: 8px;
  }
  .job-card-header h2 {
    font-size: 17px;
  }
  .job-state-badge {
    width: fit-content;
  }
  .job-meta-list {
    display: grid;
    grid-template-columns: 1fr;
  }
  .job-meta-list div {
    display: grid;
    grid-template-columns: 5.5em minmax(0, 1fr);
  }
  .job-result-box,
  .job-failure-box {
    padding: 10px;
  }
  .media-select-bar .list-actions { margin: 10px 0 0; }
  .thumb.large { min-width: 0; margin-bottom: 18px; }
  .media-lightbox { padding: 10px; }
  .media-lightbox-panel { max-height: 92vh; padding: 12px; }
  .media-lightbox-body,
  .media-lightbox-body img,
  .media-lightbox-body video { max-height: 86vh; }
  .upload-lightbox { padding: 10px; }
  .upload-lightbox-panel { max-height: 92vh; padding: 12px; }
  .upload-lightbox-body,
  .upload-lightbox-body img,
  .upload-lightbox-body video { max-height: 74vh; }
}
@media (max-width: 600px) {
  .upload-complete-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .upload-complete-actions .button {
    width: 100%;
    text-align: center;
  }
  .upload-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uploaded-preview-grid { grid-template-columns: 1fr; }
  .upload-preview-card { max-width: none; }
  .upload-preview-media { height: 110px; }
}
@media (max-width: 420px) {
  .upload-preview-grid { grid-template-columns: 1fr; }
  .upload-preview-media { height: 150px; }
}

.treatment-adjust-form {
  display: grid;
  gap: 18px;
}

.treatment-summary {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #fbfcf8;
}

.treatment-summary-sticky {
  position: sticky;
  top: 10px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 22px rgba(34, 48, 32, 0.12);
  backdrop-filter: blur(8px);
}

.treatment-summary h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.treatment-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.treatment-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #dfe5db;
  border-radius: 8px;
  background: #fff;
}

.treatment-summary-item span {
  color: #566151;
  font-size: 0.9rem;
}

.treatment-summary-item strong {
  color: #2f442b;
  font-size: 1.08rem;
}

.treatment-warning-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.treatment-warning,
.treatment-notice {
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.6;
  font-weight: 700;
}

.treatment-warning {
  border: 1px solid #ead68b;
  background: #fff7d8;
  color: #66530f;
}

.treatment-notice {
  border: 1px solid #c7dcd4;
  background: #eef8f3;
  color: #315447;
}

.treatment-adjust-grid {
  display: grid;
  gap: 16px;
}

.order-policy-panel,
.prompt-style-panel {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #fff;
}

.order-policy-panel h2,
.prompt-style-panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.order-policy-options {
  display: grid;
  gap: 8px;
}

.order-policy-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #f8faf6;
  cursor: pointer;
}

.order-policy-options input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.prompt-style-options {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #fbfcf8;
}

.prompt-style-options legend {
  padding: 0 6px;
  font-weight: 700;
}

.prompt-style-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  margin: 4px 8px 4px 0;
  padding: 7px 10px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.prompt-style-options input {
  width: 18px;
  height: 18px;
}

.duration-preset-options label:has(input:checked) {
  border-color: #2f6f4e;
  background: #e8f3ec;
  color: #1d4d34;
  font-weight: 700;
}

.treatment-adjust-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #fff;
}

.order-controls {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.material-order-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f1e4;
  color: #31412f;
  font-weight: 800;
}

.order-button {
  min-height: 40px;
  padding: 8px 12px;
}

.treatment-adjust-thumb {
  width: 100%;
  min-height: 150px;
  border-radius: 8px;
  background: #f3f5f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #5f6b5a;
  font-weight: 700;
}

.treatment-adjust-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.treatment-adjust-video-frame {
  background: #111;
}
.treatment-adjust-video-frame.preview-missing {
  background: #f3f5f1;
}
.treatment-adjust-thumb video {
  width: 100%;
  max-height: 300px;
  display: block;
  object-fit: contain;
  background: #111;
}
.treatment-adjust-video-placeholder {
  min-height: 150px;
}

.treatment-adjust-body {
  min-width: 0;
}

.treatment-adjust-body h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.treatment-adjust-tags,
.treatment-adjust-memo,
.treatment-adjust-detected {
  margin: 8px 0;
  line-height: 1.6;
}

.treatment-options {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
}

.treatment-options legend {
  padding: 0 6px;
  font-weight: 700;
}

.treatment-options label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  margin: 4px 8px 4px 0;
  padding: 7px 10px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #f8faf6;
  cursor: pointer;
}

.treatment-options input {
  width: 18px;
  height: 18px;
}

.treatment-note-field {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.treatment-note-field textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

.treatment-adjust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.page-actions-top {
  margin-top: 10px;
  margin-bottom: 18px;
}

.page-actions-bottom {
  margin-top: 22px;
}

.page-actions .button,
.page-actions button,
.page-action-form button,
.btn-primary,
.btn-secondary,
.btn-muted {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.page-action-form {
  margin: 0;
}

.btn-secondary {
  background: #eef3eb;
  border-color: #c8d2c3;
  color: #31412f;
}

.btn-muted {
  background: #f7f8f4;
  border-color: #d8ded5;
  color: #566151;
}

.sticky-action-bar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 22px rgba(34, 48, 32, 0.12);
  backdrop-filter: blur(8px);
}

.sticky-action-bar[hidden] {
  display: none;
}

.sticky-action-count {
  font-weight: 700;
  color: #31412f;
}

.instagram-post-alert {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #f7f8f4;
}

.instagram-post-alert h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.instagram-post-alert p {
  margin: 0 0 8px;
}

.instagram-post-alert ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.instagram-post-alert li {
  overflow-wrap: anywhere;
}

.instagram-post-alert-warning {
  border-color: #e3c46e;
  background: #fff8e4;
}

.instagram-post-alert-danger {
  border-color: #d68b8b;
  background: #fff0f0;
}

.instagram-post-prompt-section {
  margin-top: 24px;
}

.instagram-post-prompt-section > h2 {
  margin: 0 0 8px;
}

.instagram-post-prompt-intro {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.6;
}

.instagram-post-pattern-guide {
  margin: 0 0 14px;
  border: 1px solid #d8ded5;
  border-radius: 8px;
  background: #f7f8f4;
}

.instagram-post-pattern-guide summary {
  min-height: 44px;
  padding: 11px 12px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.5;
}

.instagram-post-pattern-guide[open] summary {
  border-bottom: 1px solid #d8ded5;
}

.instagram-post-pattern-guide ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 14px 12px 2rem;
}

.instagram-post-pattern-guide li {
  line-height: 1.55;
}

.instagram-post-prompt-actions {
  margin: 0 0 10px;
}

.instagram-post-copy-status {
  min-height: 1.6em;
  margin: 0 0 12px;
  color: var(--primary-dark);
  line-height: 1.6;
}

.instagram-post-copy-status:not(:empty) {
  padding: 10px 12px;
  border: 1px solid #bad7c4;
  border-radius: 8px;
  background: #edf8f0;
}

.instagram-post-copy-status.is-error {
  border-color: #e8b8ad;
  background: #fff2ef;
  color: var(--danger);
}

.instagram-post-prompt-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.instagram-post-prompt-box {
  min-height: 420px;
  height: min(56vh, 620px);
  max-height: 620px;
  padding: 14px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .media-select-bar {
    display: none;
  }

  .mobile-hide-action {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .mobile-hide-action {
    display: none !important;
  }

  .media-select-bar {
    display: none;
  }

  .treatment-adjust-card {
    grid-template-columns: 1fr;
  }
  .treatment-adjust-thumb {
    min-height: 210px;
  }
  .treatment-adjust-thumb video {
    max-height: 420px;
  }
  .treatment-summary-sticky {
    position: static;
    box-shadow: none;
    backdrop-filter: none;
  }
  .treatment-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .treatment-options label,
  .prompt-style-options label,
  .treatment-adjust-actions .button,
  .treatment-adjust-actions button {
    width: 100%;
  }

  .order-controls {
    display: grid;
    grid-template-columns: 44px 1fr 1fr;
  }

  .order-button {
    width: 100%;
  }

  .page-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .page-actions .button,
  .page-actions button,
  .page-action-form,
  .page-action-form button {
    width: 100%;
  }

  .sticky-action-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 0;
    top: auto;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .sticky-action-bar button {
    width: 100%;
  }

  .media-grid {
    padding-bottom: 0;
  }

  .has-media-selection .media-grid {
    padding-bottom: 220px;
  }
}

@media (max-width: 640px) {
  .instagram-post-prompt-box {
    min-height: 300px;
    height: 48vh;
    max-height: 440px;
    font-size: 16px;
  }

  .prompt-copy-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .prompt-copy-actions > button,
  .prompt-copy-actions > .inline-form,
  .prompt-copy-actions > .inline-form button {
    width: 100%;
  }

  .prompt-copy-actions > .inline-form {
    display: block;
  }

  .prompt-copy-actions button {
    min-height: 56px;
    font-size: 16px;
  }
}

/* PR #72: 素材一覧カードの撮影年月・分類メタ表示（小さく控えめに、既存デザインは変えない） */
.media-card-extra-meta {
  margin-top: 6px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
}
.media-card-extra-meta .extra-meta-line {
  overflow-wrap: anywhere;
}
.media-card-extra-meta .extra-meta-fav {
  color: #c9851f;
  font-weight: 600;
}

.btn-before-after {
  border-color: #8d4b36;
  color: #8d4b36;
}

.before-after-selection-help {
  flex-basis: 100%;
  color: #8d4b36;
  font-size: 0.9rem;
}

.before-after-adjust-form {
  max-width: 980px;
  margin: 0 auto;
}

.before-after-preview-panel {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.before-after-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.before-after-card {
  padding: 18px;
  border: 1px solid #d8cfc8;
  border-radius: 14px;
  background: #fffaf6;
}

.before-after-card-label {
  margin-bottom: 10px;
  color: #8d4b36;
  font-size: 1.05rem;
  font-weight: 700;
}

.before-after-card-preview {
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f0ebe7;
}

.before-after-card-preview img,
.before-after-card-preview video {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.before-after-card h2 {
  margin: 14px 0 4px;
  font-size: 1rem;
}

.before-after-swap-button {
  justify-self: center;
  min-width: 260px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid #8d4b36;
  border-radius: 999px;
  background: #fff;
  color: #8d4b36;
  font-weight: 700;
  cursor: pointer;
}

.before-after-duration-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid #d8cfc8;
  border-radius: 12px;
}

.before-after-duration-options legend {
  width: 100%;
  font-weight: 700;
}

.before-after-duration-options label {
  min-width: 92px;
  padding: 12px 16px;
  border: 1px solid #d8cfc8;
  border-radius: 10px;
  text-align: center;
}

.before-after-adjust-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 700px) {
  .before-after-card-grid {
    grid-template-columns: 1fr;
  }

  .before-after-swap-button,
  .before-after-adjust-actions > * {
    width: 100%;
  }
}
