/* Music MV workbench: compact Operate UI. */
:root {
  font-family: "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #e8efeb;
  background: #0d1312;
  color-scheme: dark;
  --bg: #0d1312;
  --sidebar: #111a18;
  --panel: #17221f;
  --panel2: #1c2b27;
  --line: #34463f;
  --control-line: #63786d;
  --text: #e8efeb;
  --muted: #a9bcb3;
  --accent: #e9bd76;
  --green: #84c9b6;
  --red: #f0a6a1;
  --blue: #a9c7e9;
  --radius: 12px;
  --sidebar-width: 168px;
  --sidebar-rail: 64px;
  --workspace-gutter: 28px;
  --content-max: 1400px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: var(--accent); text-underline-offset: 3px; }
::selection { background: #8a6130; color: #fff; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 18px; line-height: 1.4; letter-spacing: -.015em; font-weight: 600; margin-bottom: var(--space-1); overflow-wrap: anywhere; }
h2 { font-size: 24px; line-height: 1.35; letter-spacing: -.02em; font-weight: 600; margin-bottom: var(--space-2); text-wrap: balance; }
h3 { font-size: 16px; line-height: 1.45; font-weight: 600; margin-bottom: var(--space-2); }
p { line-height: 1.65; }
small, .subtle { color: var(--muted); font-size: 12px; line-height: 1.6; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); flex: none; display: flex; flex-direction: column; background: var(--sidebar); border-right: 1px solid #2c3b35; padding: 20px 12px 16px; position: sticky; top: 0; height: 100dvh; overflow-y: auto; align-self: flex-start; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: var(--space-6); }
.brand { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 24px; height: 24px; color: var(--accent); flex: none; }
.brand-mark svg { width: 22px; height: 22px; }
.sidebar-toggle { display: grid; place-items: center; flex: none; width: 28px; height: 32px; padding: 0; border: 0; border-radius: 6px; color: var(--muted); background: transparent; }
.sidebar-toggle svg { width: 16px; height: 16px; }
.sidebar-toggle:hover { color: var(--text); background: var(--panel2); }
.side-entry { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; text-align: left; color: var(--text); background: var(--panel2); font-size: 13px; font-weight: 600; }
.side-entry svg { color: var(--accent); width: 19px; height: 19px; }
.side-entry:hover { background: #253a31; }
.side-note { margin: 24px 4px 0; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.side-note small { display: block; font-size: 11px; margin-bottom: 6px; }
.side-note #sideProjectName { display: block; color: var(--text); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.side-note .side-local { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; }
.side-bottom { margin-top: auto; padding: 24px 4px 0; font-size: 11px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.connection-details summary { cursor: pointer; padding: 6px 0; font-size: 12px; }
#capabilityStatus { padding-top: 8px; line-height: 1.9; }
.app-shell[data-sidebar="collapsed"] .sidebar { width: var(--sidebar-rail); padding-inline: 10px; }
.app-shell[data-sidebar="collapsed"] .sidebar-header { flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }
.app-shell[data-sidebar="collapsed"] .brand-label,
.app-shell[data-sidebar="collapsed"] .side-entry span,
.app-shell[data-sidebar="collapsed"] .side-note,
.app-shell[data-sidebar="collapsed"] .side-bottom { display: none; }
.app-shell[data-sidebar="collapsed"] .sidebar-toggle svg { transform: rotate(180deg); }
.app-shell[data-sidebar="collapsed"] .side-entry { justify-content: center; padding: var(--space-2); width: 44px; height: 44px; }
.workspace { min-width: 0; flex: 1; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding: 20px max(var(--workspace-gutter), calc((100% - var(--content-max)) / 2 + var(--workspace-gutter))) 16px; border-bottom: 1px solid #293832; }
.topbar > div { min-width: 0; flex: 1; }
.topbar p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; }
.save-status { flex: 0 1 190px; max-width: 190px; color: var(--green); font-size: 12px; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.stage-nav { display: block; padding: 12px max(var(--workspace-gutter), calc((100% - var(--content-max)) / 2 + var(--workspace-gutter))); background: var(--bg); position: sticky; top: 0; z-index: 10; overflow-x: auto; scrollbar-width: thin; scroll-padding-inline: 20px; border-bottom: 1px solid #293832; }
.stage-steps { display: flex; align-items: center; list-style: none; gap: 0; margin: 0; padding: 0; min-width: max-content; }
.stage-item { display: flex; align-items: center; flex: 1; min-width: 0; }
.stage-item:not(:last-child)::after { content: ""; height: 1px; min-width: 12px; flex: 1; background: var(--line); margin: 0 8px; }
.stage-item.done:not(:last-child)::after { background: #51796a; }
.stage-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 0; border: 0; background: transparent; border-radius: 5px; color: var(--muted); font-size: 12px; min-height: 38px; white-space: nowrap; }
.stage-link:hover { color: var(--text); }
.step-marker { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border: 1px solid #687b70; border-radius: 50%; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1; }
.step-marker svg { width: 16px; height: 16px; stroke-width: 2; }
.stage-link.done { color: var(--green); }
.stage-link.done .step-marker { border-color: var(--green); }
.stage-link.active, .stage-link.active:hover { color: var(--accent); font-weight: 600; }
.stage-link.active .step-marker { border-color: var(--accent); background: #332a1d; }
.page-content { max-width: var(--content-max); margin: auto; padding: 24px var(--workspace-gutter) 48px; }
.workflow-context { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); font-size: 12px; color: var(--muted); }
.page-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-6); margin-bottom: var(--space-6); }
.page-intro > div { min-width: 0; }
.page-intro p { max-width: 70ch; color: var(--muted); font-size: 13px; margin: 0; line-height: 1.7; }
.page-note { font-size: 12px; color: var(--muted); white-space: nowrap; line-height: 1.6; padding-top: 4px; }
#stageHeading:focus { outline: none; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); min-width: 0; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); }
.panel-header > div { min-width: 0; }
.panel-header p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.7; }
.panel-header h3 { margin: 0 0 4px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.section { margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-3); }
.section-head h3 { margin: 0; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field > label { font-size: 13px; color: #c5d3cc; font-weight: 600; line-height: 1.5; }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.65; }
.writing-help { margin-top: var(--space-3); font-size: 13px; line-height: 1.7; }
.writing-help summary { padding: 6px 0; color: var(--accent); cursor: pointer; }
.writing-help ul { margin: 12px 0; padding-left: 20px; color: var(--muted); }
.writing-help li + li { margin-top: var(--space-1); }
.writing-example { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: #101916; max-height: 360px; overflow-y: auto; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--control-line); border-radius: 8px; background: #101916; color: var(--text); padding: 9px 11px; outline: none; font-size: 14px; line-height: 1.55; caret-color: var(--accent); }
.input, .select { min-height: 40px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); outline: 2px solid #8c723f; outline-offset: 1px; }
.textarea { min-height: 104px; resize: vertical; line-height: 1.7; }
.textarea.tall { min-height: 224px; }
.textarea.code { font-family: inherit; font-variant-numeric: tabular-nums; font-size: 13px; }
#songLyrics, #planText { min-height: 256px; }
#themeInput, #styleInput, #fixedLook { min-height: 200px; }
.button-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border: 1px solid #596b62; border-radius: 8px; background: #23342e; color: var(--text); padding: 8px 12px; font-size: 13px; font-weight: 600; line-height: 1.45; text-decoration: none; transition: background .16s, border-color .16s; }
.btn:hover:not(:disabled) { background: #30473d; border-color: #91ab9b; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #20190e; }
.btn.primary:hover:not(:disabled) { background: #f4ce94; }
.btn.quiet { background: transparent; }
.btn.danger { color: var(--red); border-color: #704746; background: #301f20; }
.btn:focus-visible, .stage-link:focus-visible, .asset-row:focus-visible, .sidebar-toggle:focus-visible, .side-entry:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.status { display: inline-flex; align-items: center; gap: var(--space-1); border-radius: 6px; padding: 4px 8px; font-size: 12px; line-height: 1.5; font-weight: 600; white-space: nowrap; background: #25342e; color: #bdd0c5; }
.status.ok { background: #183c32; color: #9de0c7; }
.status.warn { background: #43321e; color: #f5cf91; }
.status.error { background: #442729; color: #f6b6ae; }
.notice { border: 1px solid #496052; background: #1b2a24; border-radius: 10px; padding: 12px 16px; color: #cddbd1; font-size: 13px; line-height: 1.7; }
.notice.warning { background: #2b251b; border-color: #725b33; color: #f0d9aa; }
.notice.error { background: #2c1d20; border-color: #774347; color: #f2c7c1; }
.notice strong { color: var(--text); }
.notice p { margin: 4px 0 0; }
.stack { display: grid; gap: var(--space-4); }
.flow-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); background: var(--panel); padding: 14px 16px; }
.flow-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: #30443a; color: #9de0c7; font-size: 12px; font-variant-numeric: tabular-nums; }
.flow-row strong { font-size: 13px; }
.flow-row small { display: block; margin-top: var(--space-1); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--space-3); }
.media-tile { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #0e1715; aspect-ratio: 4/5; }
.media-tile img { width: 100%; height: 100%; object-fit: contain; }
.media-caption { position: absolute; bottom: 0; left: 0; right: 0; background: #0b1513ed; padding: 7px 8px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); min-height: 116px; border: 1px dashed #698071; border-radius: 10px; background: #15221c; color: #c5d7cb; text-align: center; padding: 20px 16px; cursor: pointer; }
.upload-zone:hover, .upload-zone.dragging { border-color: var(--accent); background: #1c2b22; }
.upload-zone input { display: none; }
.upload-zone strong { font-size: 14px; }
.upload-zone small { font-size: 12px; }
.asset-workspace { display: grid; grid-template-columns: minmax(220px, 248px) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.asset-list { display: grid; gap: var(--space-2); }
.asset-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #12201b; color: var(--text); padding: 10px; text-align: left; min-width: 0; min-height: 58px; }
.asset-row:hover, .asset-row.active { border-color: #ad9869; background: #272c23; }
.asset-row strong { font-size: 13px; }
.asset-row small { display: block; margin-top: 3px; font-size: 12px; }
.asset-image { display: block; max-width: min(100%, 360px); max-height: 480px; margin: 16px 0; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: #0b1210; }
.asset-empty { display: grid; place-items: center; min-height: 144px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; text-align: center; padding: var(--space-5); }
.requirements { margin: 4px 0 0; padding-left: 20px; color: #f2c68e; font-size: 13px; line-height: 1.8; }
.prompt-box { padding: var(--space-4); border-radius: 8px; background: #101816; border: 1px solid #34473e; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; color: #dce7df; }
.mono { font-family: inherit; font-variant-numeric: tabular-nums; }
.shot-table { display: grid; gap: var(--space-4); }
.shot-row { display: grid; grid-template-columns: 72px 72px minmax(150px, 1fr) minmax(200px, 1.5fr) minmax(140px, 1fr) auto; gap: var(--space-3); align-items: start; padding: var(--space-4); border: 1px solid var(--line); border-radius: 10px; background: #111b18; }
.shot-row .input, .shot-row .textarea { font-size: 13px; padding: 8px 9px; min-height: 38px; }
.shot-row .textarea { height: 86px; line-height: 1.65; }
.shot-assets { grid-column: 1/-1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: 4px; }
.shot-assets strong { font-size: 12px; align-self: center; color: var(--text); margin-right: 4px; }
.check-chip { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; min-height: 32px; font-size: 12px; color: var(--muted); cursor: pointer; }
.check-chip:has(input:checked) { color: var(--text); border-color: #ad9869; background: #272c23; }
.check-chip input { accent-color: #d9b573; margin: 0; width: 14px; height: 14px; }
.job-list { display: grid; gap: var(--space-3); }
.job { display: grid; grid-template-columns: minmax(120px, 1.1fr) 96px minmax(120px, 1fr) minmax(150px, 1.5fr) auto; gap: var(--space-4); align-items: start; padding: var(--space-4); border: 1px solid var(--line); border-radius: 10px; background: #111b18; font-size: 13px; }
.job > div { min-width: 0; overflow-wrap: anywhere; }
.job p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.job details { grid-column: 1/-1; min-width: 0; }
.job summary { cursor: pointer; color: var(--accent); font-size: 13px; padding: 4px 0; }
.job .prompt-box { margin-top: var(--space-3); }
.job-inputs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.job-inputs .btn { max-width: 100%; overflow-wrap: anywhere; }
.job-result { grid-column: 1/-1; min-width: 0; }
.video-preview { display: block; width: min(100%, 440px); max-height: 480px; background: #101816; margin: 16px 0; }
.reference-list { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.reference-item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-4); align-items: start; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); }
.reference-item img { width: 112px; height: 150px; object-fit: contain; background: var(--bg); border-radius: 8px; }
.reference-item figcaption { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.reference-item p { margin: 6px 0 8px; }
.audio-preview { width: 100%; margin: 16px 0; }
.audio-meta { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.caption-review { margin-top: var(--space-4); border: 1px solid var(--line); border-radius: 8px; background: #101916; padding: 12px 16px; font-size: 13px; }
.caption-review summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.caption-list { display: grid; gap: 1px; max-height: 280px; overflow: auto; margin-top: var(--space-3); background: var(--line); }
.caption-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); background: #17221f; padding: 9px 12px; }
.caption-row .mono { color: var(--muted); }
.path-text { overflow-wrap: anywhere; user-select: text; }
.workflow-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); border-top: 1px solid var(--line); padding-top: 24px; margin-top: var(--space-7); }
.overview-next { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.overview-next h3 { font-size: 18px; }
.overview-next p { margin: 0; font-size: 13px; color: var(--muted); max-width: 70ch; }
.workflow-list { list-style: none; padding: 0; margin: 0; }
.workflow-list li + li { border-top: 1px solid var(--line); }
.workflow-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); width: 100%; padding: 16px 8px; border: 0; background: transparent; color: var(--text); text-align: left; border-radius: 6px; }
.workflow-row:hover { background: var(--panel); }
.workflow-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.workflow-row strong { font-size: 14px; }
.workflow-row small { display: block; font-size: 12px; line-height: 1.7; margin-top: var(--space-1); }
.workflow-row-number { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.delivery-list { margin: 0; }
.delivery-list > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-6); border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 13px; line-height: 1.7; }
.delivery-list dt { color: var(--muted); }
.delivery-list dd { margin: 0; overflow-wrap: anywhere; }
.delivery-list p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.loading { padding: var(--space-7); color: var(--muted); font-size: 14px; }
.toast-region { position: fixed; right: 20px; bottom: 20px; display: grid; gap: var(--space-2); z-index: 50; max-width: calc(100vw - 32px); }
.toast { max-width: 400px; border: 1px solid #6f7958; border-radius: 10px; background: #263229; color: var(--text); box-shadow: 0 10px 28px #0008; padding: 12px 16px; font-size: 13px; line-height: 1.65; }
.toast.error { border-color: #995b5a; background: #3a2526; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #53675b; border-radius: 8px; }
::-webkit-scrollbar-track { background: #16211b; }
@media (max-width: 1280px) {
  .shot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot-row .shot-visual, .shot-row .shot-action, .shot-row .shot-camera, .shot-assets { grid-column: 1/-1; }
  .shot-row > .btn { justify-self: start; }
}
@media (max-width: 1100px) {
  :root { --workspace-gutter: 20px; }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-link { gap: 6px; }
  .stage-item:not(:last-child)::after { margin-inline: 6px; min-width: 10px; }
  .job { grid-template-columns: minmax(100px, 1fr) 92px minmax(100px, 1fr) auto; }
  .job > div:nth-child(4) { grid-column: 1/4; }
}
@media (max-width: 900px) {
  .asset-workspace { grid-template-columns: minmax(0, 1fr); }
  .asset-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-note { white-space: normal; max-width: 160px; }
}
@media (max-width: 700px) {
  :root { --workspace-gutter: 16px; }
  .app-shell { display: block; }
  .sidebar, .app-shell[data-sidebar="collapsed"] .sidebar { position: static; width: 100%; height: auto; min-height: 52px; flex-direction: row; justify-content: space-between; align-items: center; padding: 8px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-header, .app-shell[data-sidebar="collapsed"] .sidebar-header { flex-direction: row; margin: 0; gap: var(--space-2); }
  .app-shell[data-sidebar="collapsed"] .brand-label { display: inline; }
  .sidebar-toggle, .side-note, .side-bottom { display: none; }
  .side-entry, .app-shell[data-sidebar="collapsed"] .side-entry { width: auto; height: 38px; min-height: 38px; padding: 7px 10px; }
  .side-entry span, .app-shell[data-sidebar="collapsed"] .side-entry span { display: inline; }
  .topbar { align-items: flex-start; gap: var(--space-3); padding-top: 16px; padding-bottom: 14px; }
  .save-status { flex-basis: 100px; max-width: 100px; font-size: 11px; }
  .topbar h1 { font-size: 17px; }
  h2 { font-size: 22px; }
  .stage-nav { padding-top: 8px; padding-bottom: 8px; }
  .stage-link { min-height: 44px; }
  .page-content { padding-top: 20px; padding-bottom: 32px; }
  .workflow-context { gap: var(--space-2); align-items: flex-start; flex-wrap: wrap; margin-bottom: var(--space-3); }
  .page-intro { display: block; margin-bottom: var(--space-5); }
  .page-note { display: block; margin-top: var(--space-2); max-width: none; padding: 0; }
  .panel { padding: var(--space-4); }
  .panel-header { flex-wrap: wrap; gap: var(--space-3); }
  .grid2, .grid3, .form-grid, .asset-list { grid-template-columns: minmax(0, 1fr); }
  .grid2, .asset-workspace { gap: var(--space-4); }
  .section { margin-top: var(--space-6); }
  .btn, .input, .select { min-height: 44px; }
  .btn { font-size: 13px; }
  .check-chip { min-height: 40px; }
  .shot-row { padding: var(--space-3); }
  .shot-row .input { min-height: 44px; }
  .job { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding: 14px; }
  .job > div:nth-child(4), .job details { grid-column: 1/-1; }
  .job > .status { justify-self: start; }
  .reference-item { grid-template-columns: 88px minmax(0, 1fr); gap: var(--space-3); }
  .reference-item img { width: 88px; height: 118px; }
  .flow-row { grid-template-columns: 26px minmax(0, 1fr); }
  .flow-row > .status { grid-column: 2; justify-self: start; }
  .workflow-footer { align-items: stretch; gap: var(--space-3); }
  .workflow-footer .btn { max-width: 48%; text-align: center; }
  .overview-next { align-items: flex-start; flex-direction: column; gap: var(--space-4); }
  .workflow-row { grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-3); padding: 16px 4px; }
  .workflow-row .status { grid-column: 2; justify-self: start; }
  .delivery-list > div { grid-template-columns: 76px minmax(0, 1fr); gap: var(--space-3); }
  .caption-row { grid-template-columns: 90px minmax(0, 1fr); gap: var(--space-2); padding: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
/* Final-file review stays compact while preserving a usable portrait player. */
.final-video { width:100%; max-height:540px; background:#17191e; object-fit:contain; border-radius:8px; }
.delivery-review { border:1px solid var(--border, #d6dbe4); border-radius:8px; padding:16px; }
.delivery-review legend { padding:0 6px; font-size:14px; font-weight:600; }
.delivery-review label { display:flex; align-items:center; gap:10px; min-height:40px; font-size:14px; }
.delivery-review input { width:18px; height:18px; flex-shrink:0; }
