/* One focused task at a time. Desktop pairs a clear introduction with
   the working surface; mobile keeps the action and its controls close. */
#step-input, #step-working {
  max-width: 1260px;
  margin-inline: auto;
  padding-top: clamp(30px, 5vw, 68px);
}
:is(#step-input, #step-working) :is(.stage-title, .step-h, .standfirst) { overflow-wrap: break-word; }
:is(#step-input, #step-working) .stage-title {
  font: 500 clamp(40px, 4.2vw, 56px)/1.12 var(--f-ui);
  letter-spacing: -.025em;
  max-width: 16ch;
}
html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) :is(#step-input, #step-working) .stage-title {
  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1.35;
  letter-spacing: .015em;
}
:is(#step-input, #step-working) .standfirst {
  max-width: 38ch;
  margin-top: 18px;
  font: 400 17px/1.6 var(--f-ui);
  letter-spacing: 0;
}
#step-input > .plate { display: none; }
#step-input .intake, #step-input .intake-form { max-width: none; margin-top: 0; }
#step-input .studio-intake-intro { min-width: 0; }
#step-input .wiz { gap: 6px; margin-top: 28px; }
#step-input .wiz li {
  min-width: 0;
  padding: 8px 10px 8px 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.35;
  white-space: normal;
}
#step-input .wiz li b { width: 25px; height: 25px; flex: none; font-family: var(--f-ui); }
#step-input .wiz li.is-on { color: var(--ink); }
#step-input .wiz li.is-done b { background: var(--paper-3); color: var(--ink-2); }
#step-input .step-h {
  gap: 0;
  margin-bottom: 18px;
  color: var(--ink);
  font: 500 22px/1.35 var(--f-ui);
  letter-spacing: -.01em;
  text-transform: none;
}
#step-input .step-h b { display: none; }
#step-input .step-h:focus { outline: none; }
#step-input .drop {
  min-height: 334px;
  padding: 32px 24px 24px;
  background: var(--paper-2);
  border: 1px solid var(--rule-2);
  border-radius: 14px;
  box-shadow: none;
}
#step-input .drop .vf { display: none; }
#step-input .drop:hover, #step-input .drop.over { border-color: var(--tint); background: var(--tint-wash); box-shadow: none; }
#step-input .drop.is-invalid { border-color: var(--fix); background: var(--fix-wash); }
#step-input .drop-stills { margin-bottom: 22px; gap: 8px; }
#step-input .drop-stills img { width: 76px; height: 102px; border-radius: 5px; filter: none; opacity: 1; }
#step-input .drop-stills picture:nth-child(2) img { transform: none; }
#step-input .drop-title { font: 500 22px/1.35 var(--f-ui); letter-spacing: -.01em; }
#step-input .drop-sub { font-size: 15px; }
#step-input .drop-spec { font-size: 14px; margin-top: 20px; }
#step-input .drop-note { max-width: 42ch; font-size: 13px; margin-top: 9px; }
#step-input .capture-row { margin-top: 14px; }
#step-input .capture-row .btn { min-height: 44px; }
#step-input .studio-film-tips {
  margin-top: 20px;
  border-block: 1px solid var(--rule);
}
#step-input .studio-film-tips > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding-block: 8px;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
#step-input .studio-film-tips > summary::-webkit-details-marker { display: none; }
#step-input .studio-film-tips > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-inline-end: 4px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg);
  flex: none;
}
#step-input .studio-film-tips[open] > summary::after { transform: rotate(225deg); }
#step-input .studio-film-tips > summary .list-header { margin: 0; padding: 0; color: inherit; font: 500 14px/1.45 var(--f-ui); letter-spacing: 0; text-transform: none; }
#step-input .studio-film-tips > summary:focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; border-radius: 3px; }
#step-input .film-how { margin-top: 0; padding-bottom: 12px; }
#step-input .film-list { border: 0; background: transparent; border-radius: 0; }
#step-input .film-list li { padding: 10px 0; }
#step-input .film-list li + li::before { display: none; }
#step-input .film-how .list-footer { margin: 8px 0 0; padding: 0; }
#step-input .preview { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#step-input .preview video { max-height: min(450px, 56svh); border-radius: 12px; }
#step-input .preview figcaption { margin-top: 10px; gap: 4px 12px; }
#step-input .preview #file-name { font: 400 13px/1.5 var(--f-ui); white-space: normal; overflow-wrap: anywhere; }
#step-input .preview #clear { min-height: 44px; }
#step-input .clip-scope { margin-top: 16px; }
#step-input .clip-scope-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#step-input .clip-scope-options label { align-items: center; min-height: 50px; padding: 9px 12px; border: 1px solid var(--rule-2); border-radius: 9px; font-size: 14px; background: var(--paper-2); }
#step-input .clip-scope-options label:has(input:checked) { border-color: var(--tint); background: var(--tint-wash); }
#step-input .clip-scope p { margin-top: 10px; font-size: 14px; }
#step-input .trim-note .btn { min-height: 44px; }
#step-input .guide { margin-top: 0; }
#step-input .guide > .list-header { display: none; }
#step-input .guide-figs { gap: 14px; }
#step-input .gfig { padding: 0 0 14px; gap: 4px; border-radius: 12px; overflow: hidden; box-shadow: none; }
#step-input .gfig-shot { margin-bottom: 8px; border-radius: 0; opacity: 1; }
#step-input .gfig-name, #step-input .gfig-tip { padding-inline: 14px; text-align: start; }
#step-input .gfig[aria-pressed="true"] { border-color: var(--tint); background: var(--tint-wash); box-shadow: none; }
#step-input .gfig[aria-pressed="true"] .gfig-name { color: var(--tint-text); }
#step-input .guide > .list-footer { margin-top: 12px; padding-inline: 0; font-size: 14px; line-height: 1.5; }
#step-input .step-page > .list { margin-top: 24px; }
#step-input .list { background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
#step-input .list > .row { min-width: 0; gap: 12px; padding: 14px 0; min-height: 68px; align-items: center; }
#step-input .list > .row::after { inset-inline-start: 0; }
#step-input .list > .row > label, #step-input .row-label { max-width: 34%; font-size: 15px; font-weight: 500; }
#step-input select:not(.seg-select) {
  max-width: 66%;
  min-height: 44px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  padding: 10px 12px;
  appearance: auto;
  -webkit-appearance: menulist;
  text-align: start;
  text-align-last: start;
  color: var(--ink);
  background-color: var(--paper-2);
  background-image: none;
  font: 400 15px/1.4 var(--f-ui);
}
#step-input .seg { min-height: 44px; border: 1px solid var(--field-line); border-radius: 8px; padding: 3px; }
#step-input .seg-btn { min-height: 36px; min-width: 64px; font-size: 14px; }
#step-input [for="notes"].list-header { margin-top: 26px; padding-inline: 0; color: var(--ink); font: 500 15px/1.4 var(--f-ui); letter-spacing: 0; text-transform: none; }
#step-input .row-input { padding: 0 !important; }
#step-input #notes { width: 100%; min-width: 0; min-height: 50px; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 9px; background: var(--paper-2); font: 400 16px/1.4 var(--f-ui); }
#step-input #notes::placeholder { color: var(--ink-3); }
#step-input .step-page > .list-footer { padding-inline: 0; }
#step-input .page-nav { margin-top: 24px; }
#step-input .page-nav .btn, #step-input .go > .btn { min-height: 48px; border-radius: 9px; font-size: 16px; }
#step-input .page-go { gap: 10px; }
#step-input .go { margin-top: 28px; }
#step-input .btn-note { font-size: 14px; line-height: 1.5; max-width: 52ch; }
:is(#step-input, #step-working) .app-foot { margin-top: 36px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); font-size: 13px; }
#step-input .app-foot > p:first-child { max-width: 56ch; }
#step-input .app-foot .link { min-height: 44px; display: inline-flex; align-items: center; }
:is(#step-input, #step-working) :is(select, input, button, summary):focus-visible { outline: 2px solid var(--tint); outline-offset: 3px; }
:is(#step-input, #step-working) ::selection { background: var(--tint-wash); color: var(--ink); }

/* The contact sheet is the live evidence. No sample frames, percentage clock,
   staged substeps or timed coaching highlights are presented as live work. */
#step-working.work-studio > .progress-row,
#step-working.work-studio .step-subs,
#step-working.work-studio #coach-block > .contact-head,
#step-working.work-studio #coach-list,
#step-working.work-studio #coach-block > .list-footer,
#step-working.work-studio > .app-foot,
#step-working.work-studio .lede > .eyebrow { display: none; }
#step-working .lede { max-width: 760px; }
#step-working .stage-title { max-width: 24ch; }
#step-working .standfirst { max-width: 58ch; min-height: 1.6em; font-size: 16px; }
#step-working .studio-work-time { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; color: var(--ink-3); font: 400 13px/1.5 var(--f-ui); }
#step-working #work-elapsed { padding: 0; background: transparent; border: 0; color: var(--ink-2); font: 500 13px/1.5 var(--f-ui); font-variant-numeric: tabular-nums; }
#step-working .studio-work-layout { margin-top: 32px; }
#step-working .contact { min-width: 0; margin: 0; }
#step-working .contact-head { align-items: baseline; justify-content: space-between; gap: 8px 20px; padding-bottom: 12px; margin-bottom: 16px; }
#step-working .contact-label { font: 500 16px/1.4 var(--f-ui); color: var(--ink); text-transform: none; letter-spacing: 0; }
#step-working .contact-note { font: 400 12px/1.5 var(--f-ui); }
#step-working .contact-strip {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
}
#step-working .contact-strip:empty { display: none; }
#step-working .contact-strip .frame { min-width: 0; border-radius: 5px; overflow: hidden; cursor: default; }
#step-working .contact-strip .frame img { width: 100%; height: auto; object-fit: contain; background: #0e1418; border-radius: 5px; }
#step-working .contact-strip .frame::after { top: 5px; left: 5px; padding: 2px 4px; border-radius: 2px; font: 500 10px/1.3 var(--f-ui); }
#step-working .contact-strip.is-dim .frame, #step-working .contact-strip .frame.is-reading { filter: none; box-shadow: none; }
#step-working .studio-frames-empty { display: none; min-height: 220px; margin: 0; padding: 30px; place-content: center; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-2); text-align: center; color: var(--ink-3); font: 400 15px/1.6 var(--f-ui); }
#step-working .contact:has(.contact-strip:empty) .studio-frames-empty { display: grid; }
#step-working .working-grid { margin-top: 26px; display: block; }
#step-working .steps-list { border: 0; background: transparent; border-radius: 0; box-shadow: none; }
#step-working .steps-list .row { position: relative; padding: 13px 0; gap: 13px; min-height: 50px; align-items: center; border: 0; color: var(--ink-3); }
#step-working .steps-list .row::after { display: none; }
#step-working .steps-list .step-dot { width: 8px; height: 8px; margin: 0 3px; }
#step-working .steps-list .step-text { font: 400 15px/1.5 var(--f-ui); }
#step-working .steps-list .row.active { color: var(--ink); }
#step-working .steps-list .row.active .step-text { font-weight: 500; }
#step-working .steps-list .row.done { color: var(--ink-2); }
#step-working .step-t { font: 400 12px/1.5 var(--f-ui); font-variant-numeric: tabular-nums; }
#step-working .steps-list .row.active :is(.step-dot, .step-t) { margin-top: 0; }
#step-working .working-grid .panel { margin-top: 20px; padding: 18px 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; }
#step-working .panel-label { padding: 0; gap: 0; margin-bottom: 10px; font: 500 14px/1.5 var(--f-ui); color: var(--ink); text-transform: none; letter-spacing: 0; }
#step-working .panel-label svg { display: none; }
#step-working .facts div { padding-block: 9px; }
#step-working .facts dt { white-space: normal; font: 400 13px/1.5 var(--f-ui); text-transform: none; letter-spacing: 0; }
#step-working .facts dd { font: 500 14px/1.5 var(--f-ui); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#step-working .studio-facts-empty { display: none; margin: 0; max-width: 32ch; color: var(--ink-3); font: 400 14px/1.5 var(--f-ui); }
#step-working #work-facts:empty + .studio-facts-empty { display: block; }
#step-working .coach-block { margin-top: 32px; padding-top: 0; }
#step-working .coach-block:has(#coach-parts-block.hidden) { display: none; }
#step-working #coach-parts-block { margin-top: 0; }
#step-working #coach-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; border: 0; background: transparent; border-radius: 0; }
#step-working #coach-parts .row { min-width: 0; padding: 9px 0; color: var(--ink-3); font: 400 14px/1.5 var(--f-ui); }
#step-working #coach-parts .row.active, #step-working #coach-parts .row.done { color: var(--ink); }

@media (min-width: 1000px) {
  #step-input.intake-studio { display: grid; grid-template-columns: minmax(240px, .74fr) minmax(0, 1.26fr); gap: 0 clamp(36px, 5vw, 84px); align-items: start; }
  #step-input .studio-intake-intro { position: sticky; top: calc(var(--nav-h) + 34px); }
  #step-input .wiz { display: grid; gap: 8px; margin-top: 36px; }
  #step-input .wiz li { gap: 12px; font-size: 15px; }
  #step-input .wiz li b { width: 28px; height: 28px; }
  #step-input .app-foot { grid-column: 1 / -1; margin-top: 52px; }
  #step-working .studio-work-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 310px); gap: 44px; align-items: start; }
  #step-working .working-grid { margin-top: 0; }
  #step-working .coach-block { max-width: calc(100% - 354px); }
}

@media (max-width: 999px) {
  #step-input .intake { margin-top: 26px; }
  #step-input .studio-intake-intro .standfirst { display: none; }
  #step-input .studio-intake-intro .wiz { margin-top: 18px; }
  #step-input .app-foot { display: block; }
  #step-input .app-foot > p:first-child { display: none; }
  #step-working .working-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  #step-working .working-grid .panel { margin-top: 0; padding-top: 0; border-top: 0; }
}

@media (max-width: 599px) {
  :is(#step-input, #step-working) { padding-top: 26px; }
  :is(#step-input, #step-working) .stage-title,
  html:is([lang^="zh"], [lang^="ja"], [lang^="ko"]) :is(#step-input, #step-working) .stage-title {
    max-width: none;
    font: 600 30px/1.3 var(--f-ui);
    letter-spacing: -.015em;
    text-wrap: pretty;
  }
  #step-input .wiz { gap: 0; justify-content: space-between; }
  #step-input .wiz li { gap: 7px; padding-inline-end: 4px; font-size: 13px; }
  #step-input .wiz li b { width: 23px; height: 23px; }
  #step-input .intake { margin-top: 24px; }
  #step-input .step-h { margin-bottom: 14px; font-size: 19px; }
  #step-input .drop { min-height: 280px; padding: 24px 16px 20px; }
  #step-input .drop-stills { margin-bottom: 18px; }
  #step-input .drop-stills img { width: 56px; height: 75px; }
  #step-input .drop-title { font-size: 20px; }
  #step-input .drop-spec { margin-top: 16px; font-size: 13px; }
  #step-input .drop-note { display: none; }
  #step-input .capture-row { margin-top: 10px; }
  #step-input .capture-row .btn { width: 100%; font-size: 14px; }
  #step-input .studio-film-tips { margin-top: 14px; }
  #step-input .preview video { max-height: 42svh; }
  #step-input .preview figcaption { flex-direction: column; align-items: flex-start; }
  #step-input .preview #clear { padding-inline: 0; background: transparent; color: var(--tint-text); }
  #step-input .clip-scope-options { gap: 8px; }
  #step-input .clip-scope-options label { gap: 7px; padding: 9px 8px; font-size: 13px; line-height: 1.4; }
  #step-input .clip-scope p { font-size: 13px; line-height: 1.5; }
  #step-input .guide-figs { gap: 10px; }
  #step-input .gfig { padding-bottom: 12px; }
  #step-input .gfig-name, #step-input .gfig-tip { padding-inline: 10px; }
  #step-input .gfig-name { font-size: 14px; }
  #step-input .gfig-tip { font-size: 12px; }
  #step-input .guide > .list-footer { font-size: 13px; }
  #step-input .list > .row { min-height: 64px; gap: 8px; }
  #step-input select:not(.seg-select) { font-size: 16px; max-width: 66%; }
  #step-input .page-nav:not(.page-nav-end) { position: static; padding: 0; background: transparent; }
  #step-input .page-nav { margin-top: 20px; }
  #step-input .page-hint { font-size: 13px; }
  #step-input .go { margin-top: 22px; }
  #step-input .btn-note { font-size: 13px; }
  #step-input .app-foot { margin-top: 28px; padding-top: 14px; }
  #step-working .standfirst { margin-top: 12px; font-size: 15px; }
  #step-working .studio-work-time { margin-top: 12px; }
  #step-working .studio-work-layout { margin-top: 24px; }
  #step-working .contact-head { margin-bottom: 12px; }
  #step-working .contact-label { font-size: 15px; }
  #step-working .contact-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  #step-working .studio-frames-empty { min-height: 150px; padding: 22px; font-size: 14px; }
  #step-working .working-grid { display: block; margin-top: 20px; }
  #step-working .steps-list .row { min-height: 44px; padding-block: 10px; }
  #step-working .steps-list .step-text { font-size: 14px; }
  #step-working .working-grid .panel { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--rule); }
  #step-working .coach-block { margin-top: 24px; }
  #step-working #coach-parts { gap: 0 14px; }
  #step-working #coach-parts .row { font-size: 13px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  :is(#step-input, #step-working), #step-input .step-page, #step-working .contact-strip .frame { animation: none; transition: none; }
  #step-working .contact-strip .frame.is-new { opacity: 1; transform: none; }
}

/* Keep crop playback aligned with its retained range. */
.trim-playhead { position: absolute; top: 0; bottom: 0; left: var(--tp, 0%); width: 2px; transform: translateX(-50%); background: var(--ink); box-shadow: 0 0 0 1px #0006; pointer-events: none; }
.trim-current { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 0; color: var(--ink-2); font-size: 12px; }
.trim-current output { font: 500 12px/1.4 var(--f-mono); font-variant-numeric: tabular-nums; }
.trim-current::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--tint-text); }
.trim-current span { flex: 1; }
.trim.is-seeking .trim-current::before { background: var(--ink-3); }
