/* Softcue Captions. Tokens from docs/design/tokens.json. Dark only, radius 0 everywhere, no shadows.
   Layout is chosen by the client (body[data-layout]); the stage variant by body[data-stage].

   The stage frame (Sep 2026 revision). The landing states share one frame, #stage-frame: the left
   cell of the landing grid, one layout box (up to 760 wide, --frame-h tall, both sized by the window) in idle,
   uploading, reading, preview, paying and rejected. Content swaps inside it and nothing outside it
   moves between those states. Idle and rejected fill it with one box (.stage). Uploading, reading
   and preview stack a compact file bar (.file-bar, --bar-h tall) over a black screen (.screen) with
   a fixed split; at preview the screen is the caption card (.cue-panel), which runs past the frame's
   bottom edge (--card-bleed) without changing the frame's box; its left edge sits at the frame's own
   left edge, flush with the file bar and the header above it (the Sep 2026 revision bled it into the
   page's left gutter too; that was judged a bug and closed).
   Working and done keep their black stage at the frame height; done may grow.

   Gone with the revision: the 760x560 drop zone that stayed primary through every state, the
   separate preview grid (380px + 1fr, the 820px panel bleeding right and past the bottom) and the
   body[data-stage="preview"] .page { height: 100dvh; overflow: clip } rules that went with it, and
   the character ruler with its tokens. */

:root {
  --bg: #171613;
  --surface: #1f1e19;
  --surface-hover: #24231d;
  --line: #35332b;
  --line-soft: #26251f;
  --border: #4a473c;
  --text: #ebe6d8;
  --text-2: #b8b3a2;
  --muted: #8e8874;
  --dim: #5f5b4d;
  /* Legal text and the footer links (fix spec item 5): the disclaimer at the secondary grey, 5.2:1
     on the page background at 12px; the links a step brighter, 7.1:1, so Privacy, Terms and
     Refunds read as links and not as fine print. The old #6f6a5a survives only as the cue index
     inside the caption card, where it is decoration rather than text to read. */
  --disclaimer: #8e8874;
  --link-quiet: #a8a290;
  --cue-index: #6f6a5a;
  --caption: #f2d31b;
  --screen: #0b0b0a;
  --cue-hover: #16160f;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: Karla, 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --fast: 150ms;
  --base: 200ms;
  --slow: 350ms;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* The stage frame numbers. One set, read by every state, so the frame is the same box in idle,
     uploading, reading, preview and rejected at any one window size. The height follows the window
     between a 420 floor and a 520 ceiling (62vh: 442 in a 1440x900 window's 753 viewport, 420 at
     1280x800 and below). It is a minimum for the idle box (r3 item 1): idle sizes to its content
     and grows past it when the content needs more, so nothing inside the box ever scrolls or
     clips, and under vertical pressure the page scrolls with the button still above the cues.
     --card-min keeps the caption card usable when the frame is short: it overflows the frame's
     bottom, which is free space in the two-column layout. */
  --frame-h: clamp(420px, 62vh, 520px);
  --bar-h: 176px;
  --card-bleed: 120px;
  --card-min: 320px;
  /* The outer gutter is continuous (r2 item 4): 48 at 1440, about 40 at the collapse, 20 from 600
     down, with no step anywhere, so nothing on the page lurches sideways at a breakpoint. */
  --page-x: clamp(20px, 3.33vw, 48px);
  /* The content block (r3 item 4, r4 item 1): the 680 stage, the column gap and the 520 side
     column. Above the collapse the grid and the page chrome (header, pitch, disclaimer, footer)
     are all capped to it and sit left, so the whole page is one column with the rest of the
     viewport empty on the right; below the collapse the cap is 680 (the collapse block). */
  --landing-gap: clamp(32px, 4.5vw, 60px);
  --content-max: calc(680px + 520px + var(--landing-gap));
}

@keyframes sc-blink { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes sc-fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes sc-slide { 0% { transform: translateX(-100%) } 100% { transform: translateX(300%) } }

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 0; }

a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Cream means act, yellow means announce (r2): the accent marks the things that make a claim, the
   caption lines and the price, and nothing decorative. The --> arrows sit in the timecode grey. */
.arrow { color: var(--muted); }
.hot { color: var(--caption); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Text links, as <a>, <label> or <button> ---- */

.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  transition: text-decoration-thickness var(--fast), color var(--fast);
}
.link:hover, .link:focus-visible {
  color: var(--caption);
  text-decoration-thickness: 3px;
  outline: none;
}

/* Keyboard focus on everything interactive: the 2px yellow ring, offset from the fill, on the
   buttons. The stage is not a tab stop (r2 item 10): the Choose file button inside it is, and the
   hidden file input is out of the tab order, so it never takes focus. */
.btn:focus-visible { outline: 2px solid var(--caption); outline-offset: 3px; }

/* Quiet expandables: "see all formats" under the frame, "see supported languages" in the small
   print. The summary reads as a text link (the default marker is hidden) and takes the link's
   focus style. Its tap target is 44 tall: vertical padding the same size as a negative margin, so
   the line box does not move (fix spec item 10). The open body keeps 10px under it, so the line
   that follows does not read as part of it. */
.quiet-summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  margin: -12px 0;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness var(--fast), color var(--fast);
}
.quiet-summary::-webkit-details-marker { display: none; }
.quiet-summary:hover, .quiet-summary:focus-visible {
  color: var(--caption);
  text-decoration-thickness: 3px;
  outline: none;
}
.quiet-details[open] > :not(summary) { margin-top: 4px; margin-bottom: 10px; }

/* ---- Page frame ---- */

.page {
  position: relative;
  min-height: 100dvh;
  /* A flex column at every width (the pages wave, step B5), so the foot (the disclaimer, the
     legal row and the site index row) sits in the flow at the end of the page and is still pushed
     to the bottom edge when the page is shorter than the window, by the disclaimer's auto top
     margin. The 28 under the last row is the foot's own gap, whatever the index row wraps to;
     nothing at the foot is absolutely positioned any more, so no padding has to guess its height.
     Every other child keeps its max-width and sits left, as it did as a block. */
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.5vw, 28px) var(--page-x) 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  max-width: var(--content-max);
}
.wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  /* The mark and the name stay on one line at every width; the meta truncates first. */
  white-space: nowrap;
}
/*
 * The mark left of the name (the header work order, 13 Sep 2026; markup in src/shared/brandMark.ts).
 * 16px at every width: the mark's crisp floor, and the name's cap height (about 9.6px at 15px Karla,
 * 9px at the phone's 14) is under it, so the floor wins and the gap absorbs the difference. Centred
 * on the cap height, not the line box, with the cap unit (the two centres are within 0.1px here, so
 * the px fallback is the line-box centre). The visual gap to the S is one cap height once the mark's
 * transparent 1px right column and the S's 1px side bearing are taken off.
 */
.topbar-mark {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
  vertical-align: calc(.5cap - 8px);
  margin-right: 8px;
  margin-right: calc(1cap - 2px);
}
.topbar-meta {
  font-size: 12px;
  color: var(--muted);
}
.topbar-link {
  font-size: 13px;
  color: var(--muted);
}

/* ---- The Free tools control and its panel (the layout and navigation order, 22 Sep 2026) ---- */

/* The header's left cluster: the wordmark and the trigger on one baseline, and the box the panel
   anchors under. It never shrinks: where the header is short of room (the phone), the price meta
   on the right gives, never the wordmark or the control. */
.topbar-left {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 30px;
  flex-shrink: 0;
}
/* The inline list (the landing remediation order, 23 Sep 2026, section 3.2): "Free tools" as a
   label in the text colour, then the four names as links in the quiet link grey, the yellow on
   hover, a dot between them, all in the nav voice (Karla 15, the trigger's size) on the cluster's
   baseline. The page the visitor is on, when it is one of the four, is static text in the text
   colour with the 6px yellow dot before it, the treatment the panel's rows carry. Displayed from
   the collapse up and hidden below it (the 1079 block), where the disclosure takes over: the
   header is capped at 680 there and the list would run into the price meta. Measured on the built
   page: the list ends about 380px short of the meta at 1512, 225 at 1180 and 130 at 1080. */
.topbar-nav {
  /* The trigger's own 2px over and 3px under, so the cluster is the same 27.5px box whichever of
     the two is displayed and nothing under the header moves at the collapse. */
  padding: 2px 0 3px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}
.topbar-nav-label { margin-right: 16px; }
.topbar-nav-item {
  color: var(--link-quiet);
  text-decoration: none;
  transition: color var(--base);
}
a.topbar-nav-item:hover, a.topbar-nav-item:focus-visible { color: var(--caption); }
a.topbar-nav-item:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
.topbar-nav .dot { color: var(--dim); padding: 0 5px; }
.topbar-nav-item.here { color: var(--text); cursor: default; }
.topbar-nav-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  vertical-align: 1px;
  background: var(--caption);
}
/* The trigger, in the nav voice (Karla 15, the text colour) with no accent at rest or on hover:
   the drop zone is the page's one loud element and the price owns the yellow. Hover and the open
   state draw a 1px underline in the border grey and lift the caret from dim to muted; open turns
   the caret over. The yellow is the keyboard focus ring alone, as on every other button here. The
   underline is a pseudo-element at the foot of the padding box rather than the button's own
   border, so the phone can pad the button out to its tap target (below) with the line staying
   2px under the text; the box is the same 27.5px either way. Not displayed from the collapse up
   (the remediation order, section 3.3): the inline list above carries the names there, and the
   1079 block is what displays the trigger and lets the panel show. */
.topbar-tools {
  position: relative;
  appearance: none;
  background: none;
  border: 0;
  margin: 0;
  padding: 2px 0 3px;
  font: inherit;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 7px;
}
.topbar-tools::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: transparent;
  transition: background-color var(--fast);
}
.topbar-caret {
  font-size: 9px;
  color: var(--dim);
  transition: transform 200ms, color var(--fast);
}
.topbar-tools:hover::after, .topbar-tools[aria-expanded="true"]::after { background: var(--border); }
.topbar-tools:hover .topbar-caret, .topbar-tools[aria-expanded="true"] .topbar-caret { color: var(--muted); }
.topbar-tools[aria-expanded="true"] .topbar-caret { transform: rotate(180deg); }
.topbar-tools:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
/* The panel, under the cluster's left edge: the surface with a 1px border, no radius, and a
   floor of 300 wide so the descriptor stays one line (at 264 it broke after "no"). Hidden by the
   attribute; the script removes it. Never displayed from the collapse up, whatever the attribute
   says (a panel opened narrow and carried through a widening): the inline list is the control
   there, and the 1079 block displays the panel where the attribute is off. */
.menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 40;
  display: none;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 22px 16px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7);
}
.menu[hidden] { display: none; }
.menu .grp {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 2px;
}
.menu .sub {
  font-size: 11px;
  color: var(--dim);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
/* A row: Karla 16 in the text colour, no underline, padded out to the panel's inner edge so the
   hover ground runs the row's width. The dot before it is the current-page mark, painted at
   opacity 0 on a link and 1 on the page the visitor is on, which is static text. The keyboard
   focus is the hover treatment plus the 2px yellow ring every other stop on the site carries,
   drawn inside the row's box so it stays inside the panel's padding: the ground lift alone is
   1.06:1 against the panel and the text's colour change is the only other cue, which is a
   colour-only indicator (the verification of the navigation order, 23 Sep 2026). */
.menu-item {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  text-decoration: none;
  padding: 8px;
  margin: 0 -8px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: background var(--fast), color var(--fast);
}
a.menu-item:hover, a.menu-item:focus-visible {
  background: var(--surface-hover);
  color: var(--caption);
}
a.menu-item:focus-visible { outline: 2px solid var(--caption); outline-offset: -2px; }
.menu-dot {
  width: 6px;
  height: 6px;
  background: var(--caption);
  flex: 0 0 auto;
  opacity: 0;
}
.menu-item.here { color: var(--text); cursor: default; }
.menu-item.here .menu-dot { opacity: 1; }

/* ---- The landing grid and the stage frame ---- */

/* Two columns down to 1080 (r3 items 3 and 4): the stage column gives way first (680 at 1200,
   narrower below) while the marketing or checkout column keeps at least 280, and the grid is
   capped at 680 + gap + 520 so the side column never exceeds 520 and the pair sits left with the
   rest of the content width empty on the right, in the page's asymmetric left-aligned language.
   The side track stays flexible (1fr inside the cap): a fixed 520 maximum would make the grid
   share width equally and shrink the stage first. Column 1 reaches its 680 cap at exactly 1080
   with the gutter clamp above and this gap, so that is the collapse line: below it the grid
   stacks and the frame keeps the same 680 cap, so the drop box is 680 on both sides of the line
   and never grows as the window narrows (see the block near the end). */
.landing {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(280px, 1fr);
  column-gap: var(--landing-gap);
  /* The second row is the entry page's body (the layout order, section 2), 40 under the stage as
     it was under the grid; a landing state with no body has no second row. */
  row-gap: 40px;
  max-width: var(--content-max);
  margin-top: 32px;
  align-items: start;
}
.stage-col { min-width: 0; }
/* The entry page's body inside the grid (the layout order, section 2): column 1, row 2, under the
   stage, where it was the grid's next sibling. It moved in so the marketing column has something
   to stick beside: a sticky element travels only inside its containing block, and as a sibling the
   body's 1,100px left the column's cell ending at the stage's bottom with the right half of the
   page empty for the whole read. */
.landing > .page-body { grid-column: 1; grid-row: 2; margin-top: 0; }
/* The marketing column spans both rows and sticks under the page's top padding while the body
   scrolls past, so the price, the trust block and the caps stay in view beside the copy. The
   other columns that share .side (checkout, expired, working, done) keep their one row and never
   stick.
   The column is capped at what the viewport leaves under its top and scrolls inside itself past
   that, so a column taller than the window can never put the price out of reach: with the Free
   tools block it was 689.8 tall at 1512 and 1280 and 778.5 at the 280 track from 1080 to about
   1180, where at 720 tall the $6 sat 58px above the viewport once the body had scrolled by (the
   second verification round); without the block (the remediation order, 23 Sep 2026) it is 454.8
   at 1512 and 1280, 499 at 1180 and 543.5 at 1080, closed, so the cap is reached only with an
   expander open, which still takes it past a short window. Where it fits nothing changes; where
   it does not, the wheel over it moves the column first and the page after, and the scrollbar is
   the editor list's thin muted one. The links and summaries inside it draw their focus as colour
   and thickness with no outline, so the scroll box clips no ring. The 12px under the content is
   the last summary's tap-target bleed: `see all formats` pads 12px past its negative margin, and
   with the Free tools block gone it is the column's last box, so without the padding the scroll
   box held 12px of overflow and the first wheel tick over the column moved the column, not the
   page, and a stuck column sat 12px above its top (the remediation order's verification round). */
.landing > .side--marketing {
  --sticky-top: clamp(20px, 2.5vw, 28px);
  padding-bottom: 12px;
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: start;
  position: sticky;
  top: var(--sticky-top);
  max-height: calc(100vh - var(--sticky-top));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.landing > .side--marketing::-webkit-scrollbar { width: 8px; }
.landing > .side--marketing::-webkit-scrollbar-track { background: transparent; }
.landing > .side--marketing::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 4px; }
.stage-frame {
  position: relative;
  width: 100%;
  max-width: 680px;
  height: var(--frame-h);
  display: flex;
  flex-direction: column;
  overflow: visible;
}
/* Idle, done and rejected size to their content with --frame-h as the floor (r3 item 1 for idle:
   the four cues are always whole, never scrolled or clipped). A long file name, a long server
   message or a narrow stacked frame pushes the box taller instead of into the readout band. In the
   normal case all three are exactly --frame-h, the same box as the other states. */
body[data-stage="idle"] .stage-frame,
body[data-stage="done"] .stage-frame,
body[data-stage="rejected"] .stage-frame { height: auto; min-height: var(--frame-h); }
body[data-stage="consent"] .stage-frame { height: auto; min-height: var(--frame-h); }

/* ---- The agreement before a file uploads (round 9, item 1, Corey's order of 7 Nov 2026) ----
   The stage frame holds the prompt: the stage headline, the chosen file's name in mono, the box with
   its one sentence, then Upload (the Choose file treatment) and Cancel. The box is a label the whole
   of which is the target, 44px tall on the phone and the desktop alike, with the input on its left
   edge; the sentence is body text in the secondary grey with "Terms" a link that opens the legal
   page in a new tab. The same label shows beside Pay for a job that recorded an older version
   (.consent-check--pay). */
.stage--consent { background: var(--screen); border: 1.5px solid transparent; }
.consent { display: flex; flex-direction: column; gap: 18px; }
.consent .stage-headline { margin: 0; }
.consent-file {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.consent-size { color: var(--dim); }
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 44px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.consent-check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 4px 0 0;
  accent-color: var(--caption);
  cursor: pointer;
}
.consent-check input:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
.consent-check a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.consent-check a:hover, .consent-check a:focus-visible { color: var(--caption); }
.consent-actions { display: flex; align-items: center; gap: 28px; }
.consent-actions .btn--choose { margin-top: 0; }
.consent-actions .btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.consent-cancel {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  font-size: 15px;
  color: var(--muted);
}
.consent-cancel:hover, .consent-cancel:focus-visible { color: var(--text); }
.consent-check--pay { margin-bottom: 8px; }
/* The withdrawal box before Pay (round 10, item 3; Part 9 §2), the same label as the Terms box, for
   every buyer; an older job's buyer sees the Terms box first and this one under it. The pay button
   is dimmed while it waits for a tick (.btn--waits), the way the prompt's Upload waits; a button off
   for any other reason (the checkout being created, the code box with the server) keeps its paint. */
.btn--waits:disabled { opacity: .45; cursor: not-allowed; transform: none; }
@media (max-width: 480px) {
  .consent-actions { gap: 20px; }
}


/* One box filling the frame: the drop zone (01), rejected (05), working (07), done (08). */
.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--surface);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* The drop zone is the near-black screen (r2 item 11), so the box separates from the page on its
   surface and the dashed edge is an accent on a legible edge rather than the thing holding the box
   together. The border is transparent and keeps the box metrics; the dashes are the .stage-dash
   SVG, a fixed 8-on 6-off rhythm identical on all four sides and at every width. --dash is the
   stroke, yellow on hover and drag-over. */
.stage--idle {
  --dash: var(--border);
  background: var(--screen);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--slow) ease;
}
.stage--idle.is-hover {
  --dash: var(--caption);
  background: var(--cue-hover);
}
.stage-dash {
  position: absolute;
  top: -1.5px;
  left: -1.5px;
  width: calc(100% + 3px);
  height: calc(100% + 3px);
  overflow: visible;
  pointer-events: none;
}
.stage-dash rect {
  x: 0.75px;
  y: 0.75px;
  width: calc(100% - 1.5px);
  height: calc(100% - 1.5px);
  fill: none;
  stroke: var(--dash);
  stroke-width: 1.5;
  stroke-dasharray: 8 6;
  transition: stroke var(--slow) ease;
}
.stage--solid { border: 1px solid var(--line); }
.stage--screen { background: var(--screen); border: 0; }
/* The corner labels are a band of their own (top 24px, a 13px line box, so about 44px deep). The
   solid and screen boxes start their content under it, never inside it: bottom-justified content
   that outgrows the box (the done screen with its resend form open, a rejected variant with a
   long server message) then pushes the done frame taller instead of climbing into the labels. */
.stage--solid, .stage--screen { padding-top: 64px; }

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  transition: width var(--slow) var(--ease), height var(--slow) var(--ease);
}
.corner-tl { top: -1.5px; left: -1.5px; border-top: 2px solid var(--caption); border-left: 2px solid var(--caption); }
.corner-tr { top: -1.5px; right: -1.5px; border-top: 2px solid var(--caption); border-right: 2px solid var(--caption); }
.corner-bl { bottom: -1.5px; left: -1.5px; border-bottom: 2px solid var(--caption); border-left: 2px solid var(--caption); }
.corner-br { bottom: -1.5px; right: -1.5px; border-bottom: 2px solid var(--caption); border-right: 2px solid var(--caption); }
.stage.is-hover .corner { width: 40px; height: 40px; }

.stage-label {
  position: absolute;
  top: 24px;
  font-size: 13px;
  color: var(--muted);
  white-space: pre;
  transition: color var(--slow) var(--ease);
}
.stage-label-left { left: 32px; }
.stage-label-right { right: 32px; }
.stage-label.hot { color: var(--caption); }
.cursor { animation: sc-blink 1s steps(1) infinite; }

/* The idle box reads top down (r2 item 1): the readout band, the headline, the body line, the
   button, then the static cue stack (fix spec item 1: four numbered cues as an .srt excerpt) as
   supporting detail. Nothing in the box scrolls (r3 item 1): the frame is content-driven above its
   floor, so all four cues are always whole, and a wheel over the box moves the page. The cues are
   set tight (r2 item 2), one block with breathing room rather than four paragraphs; the internal
   gaps are what the one-screen fit is paid from, never the type. */
.stage--idle { padding: 46px 32px 24px; justify-content: flex-start; }
/* The button and the demo's quiet control on one row (r5 item 2.4). */
.stage-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 18px;
}
.stage-actions .btn--choose { margin-top: 0; }
.demo-control {
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
  margin: -12px 0;
}
/* The two cue stacks share one slot: the one in flow decides the height, the other is out of flow
   and invisible (opacity, never display or visibility, so it stays in the accessibility tree). */
.cue-stage { position: relative; margin-top: 10px; }
/* The slot grows into whatever the frame's floor leaves under the marketing stack (the remediation
   order, 23 Sep 2026: with three cues the stack sits under the floor at tall viewports, 17px on the
   root and 42 on the caption-led pages at 801 tall, more at 900). The default state paints the
   same (the stack sits at the slot's top and the room under it was empty either way), the frame is
   the same height in the default and demo states as before, and the demo's transcript scroller
   and editor, which fill the slot, get that room: their list is 177 tall at 1512x801 where the
   slot alone gave 161. Where the frame is content-driven (1280x713, 1366x768, the phone) the slot
   is the stack and nothing changes. */
.stage--idle .cue-stage { flex: 1 1 auto; }
.cue-stack {
  flex: none;
  overflow: visible;
  font-size: 13px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* The cue numbers are what make the block read as a subtitle file, so they are legible: --muted is
   4.7:1 on the old panel and better on the near-black one (r2 item 7); --dim was 2.5:1. */
/* The file name above cue 1 (r4 item 3), in the timecode grey: the block is a sample of the output. */
.cue-stack-file { color: var(--muted); margin-bottom: 2px; }
.cue-stack-n { color: var(--muted); }
/* A .vtt preview's header line (the converters and the shifter's DOWNLOAD zone, round 5): file structure, in the numbers' grey. */
.cue-stack-header { color: var(--muted); }
.cue-stack-tc { color: var(--muted); }
.cue-stack-line { color: var(--caption); white-space: pre-wrap; }
/* The audio demo (r5 item 2, bounded in r6 item 1). The two stacks share one slot: the marketing
   stack is always in flow and defines the box, faded (opacity, never display) while the demo plays;
   the transcript sits over that same box, absolute, its label on the marketing label's line and
   its cues in a scroller that takes the rest, so the frame is the same height in both states at
   every width and the default state clips nothing. The transcript's cues sit at opacity 0 and are
   revealed one by one from the audio's currentTime; each stays once shown, so the block is
   written, never replaced, and the player keeps the newest cue in view by scrolling the scroller,
   never the page (overscroll-behavior contains the chain). The stack fades in on the click (is-on
   is set only by that render, never on load). The progress line sits under the readout row and
   fills left to right in the accent. */
.cue-stack--marketing.is-faded { opacity: 0; pointer-events: none; }
.cue-stack.cue-stack--demo {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.cue-stack.cue-stack--demo.is-on {
  opacity: 1;
  pointer-events: auto;
  animation: sc-fade-in var(--slow) ease;
}
.cue-scroller {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cue-scroller::-webkit-scrollbar { width: 6px; }
/* Room under the demo's last line (round 5, review section 9: "Scroll by whole lines."): the player
   rests the scroller's top edge on a line's top (scrollTopFor in src/client/demo.ts), and for the
   clip's last lines that top is past the end of the list's own scroll, so the browser clamped it
   and cut a line again (403 against the line at 427.6 at 1512x801). A line here is its number, its
   timecode and at most two lines of text, four line boxes, so four lines and the 4px gap (and a
   pixel for the scroll position's rounding) is always enough room; scrolled to the very end the
   list shows up to that much space under its last line. */
.cue-stack--demo .cue-scroller { padding-bottom: calc(4lh + 5px); }
.cue-stack--demo .cue-stack-cue { opacity: 0; transition: opacity 250ms ease; }
.cue-stack--demo .cue-stack-cue.is-shown { opacity: 1; }
/* In the readout band, between the labels and the headline's top padding, so the box's padding is
   the same in both states and the frame's height does not change on the click (r6 item 1). */
.demo-progress {
  position: absolute;
  top: 43px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: var(--line);
}
.demo-progress-fill {
  height: 100%;
  width: 0;
  background: var(--caption);
  transition: width 200ms linear;
}

/* The headline, the body line and the button sit under the readout band. The size follows the window
   so a narrower stage column keeps the headline at one or two lines. */
.stage-headline {
  font-family: var(--font-display);
  font-weight: 400;
  /* The hierarchy fix (14 Sep 2026): the pitch, not the instruction, is the largest type on the
     page. 36 at the desktop reference (r3 had clamp(44px, 5vw, 56px) and a 44 floor), on the
     pitch's slope scaled 36:44 so the pitch stays the larger at every width, 28 as the floor (both
     floors land near 920). One line in the 680 stage everywhere (347 wide at 36 against 614 inside
     the box). The stage stays the loud element by its frame, corners, panel and the one cream
     button, not by size. */
  font-size: clamp(28px, 3.03vw, 36px);
  /* 1.05, not .98 (r3 item 1). Instrument Serif's content area is about 1.25em, so at any tight
     leading the ascenders and descenders sit outside the line box and would shear under an
     overflow: hidden on this element or an ancestor; the vertical padding takes them back inside
     the box (scrollHeight equals clientHeight) without loosening the leading between two lines.
     The surrounding gaps are set with that padding counted. */
  line-height: 1.05;
  padding: .11em 0 .13em;
  letter-spacing: -.015em;
  text-wrap: pretty;
}
.stage-lead {
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.stage-notice {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
/* The idle stage's notice block: the eyebrow in the accent announces, the sentence explains, and
   the pair reads as a refusal rather than as another line of the pitch. */
.stage-notice-block { margin-top: 20px; }
.stage-notice-block .eyebrow { margin-bottom: 4px; }
.stage-notice-block .stage-notice { margin-top: 0; font-size: 16px; max-width: 60ch; }
/* The line back to a remembered open job (round 5, section 3): above the drop zone, outside the
   box, so the box reads as it always does and only stands lower by the line. The mono small
   register of the notice's eyebrow and the demo control; the link in the cream that means act,
   underlined because it is a way somewhere, the forget control quiet beside it. Both carry 44px
   tap targets through padding against a matching negative margin, so the line box is the text's.
   One line at every width (the fix round over the checkout round trip): nothing wraps; the link
   is a row of the lead, the name's head and its tail, and only the head gives, ending in an
   ellipsis, so the extension and forget always show. */
.resume-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  column-gap: 16px;
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.resume-link {
  display: flex;
  align-items: baseline;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  padding: 12px 0;
  margin: -12px 0;
}
.resume-link > span { white-space: pre; }
.resume-lead, .resume-name-tail { flex: none; }
.resume-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.resume-link:hover { color: var(--caption); }
.resume-forget {
  flex: none;
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 12px 0;
  margin: -12px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.resume-forget:hover { color: var(--text); }

/* Eyebrows: mono 13 on the stage and in the file bar, mono 12 uppercase on the mobile preview. */
.eyebrow {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.eyebrow.hot { color: var(--caption); }
.eyebrow-sm {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---- 02 Uploading, 03 Reading, 04 Preview: the file bar over the screen ----
   The bar keeps one height (--bar-h) in all three, with the name at the same place, and the screen
   fills the rest of the frame. While the file goes up the screen shows the caption card's header
   strip with the OUT label where the count will be, and one quiet line; at preview it is the card. */

.file-bar {
  flex: none;
  /* One number. Only the poll notice on 03 (the server not answering) can add a line to it. */
  min-height: var(--bar-h);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 32px 18px;
  display: flex;
  flex-direction: column;
}
.file-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.file-id {
  flex: 1 1 auto;
  min-width: 0;
}
.file-bar .eyebrow { line-height: 1.3; margin-bottom: 8px; }
.file-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}
.file-bar-foot {
  margin-top: auto;
  padding-top: 14px;
}
.file-duration {
  flex: none;
  text-align: right;
}
.duration {
  /* 64 at the 1280 reference; smaller as the file bar narrows, so the name keeps its room. */
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1;
  letter-spacing: -.02em;
}
.duration .millis { color: var(--dim); }

.bar {
  height: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--caption);
  transition: width var(--base) linear;
}
.bar-segment {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 25%;
  background: var(--caption);
  animation: sc-slide 1.6s ease-in-out infinite;
}
.stage--screen .bar { background: var(--line-soft); margin-top: 32px; }

.upload-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.upload-progress { font-size: 13px; color: var(--text); }
.upload-eta { color: var(--muted); }
.upload-row .link { font-size: 14px; color: var(--text-2); }
.upload-row .link:hover, .upload-row .link:focus-visible { color: var(--caption); }
.reading-line {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
}
.file-bar .stage-notice { margin-top: 8px; font-size: 14px; }

.screen {
  flex: 1 1 auto;
  min-height: 0;
  background: var(--screen);
  display: flex;
  flex-direction: column;
}
.screen-body { padding: 24px 28px; }
.screen-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.screen-out { white-space: pre; }
.screen-out.hot { color: var(--caption); }

/* ---- 05 Rejected ---- */

.rejected-headline {
  font-family: var(--font-display);
  font-weight: 400;
  /* 40 in the 760 frame, down to 30 in a narrow stacked frame; fluid, so no breakpoint of its own. */
  font-size: clamp(30px, 4.5vw, 40px);
  line-height: 1.05;
  text-wrap: pretty;
}
.rejected-body {
  margin-top: 18px;
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
.rejected-link {
  margin-top: 14px;
  font-size: 15px;
}
.rejected-row {
  margin-top: 28px;
  display: flex;
  gap: 20px;
  align-items: baseline;
  flex-wrap: wrap;
}
.rejected-row .link { font-size: 15px; }
.rejected-file {
  font-size: 12px;
  color: var(--dim);
  word-break: break-all;
}

/* ---- The formats line, in the small print after the languages expandable (r2 item 8) ---- */

.formats {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}
.formats-lists {
  font-size: 13px;
  line-height: 1.7;
}
.formats-label { color: var(--dim); }

/* ---- The marketing column (01 to 03, 05) ---- */

/* The marketing column starts level with the frame (r2 item 2): the old 88px offset was aligning it
   against a stage that began at the top of the page, before the pitch moved above both columns. */
.side {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.one-liner {
  font-family: var(--font-display);
  font-weight: 400;
  /* 44 from 1189 up (the hierarchy fix, 14 Sep 2026; it was clamp(26px, 2.7vw, 34px)): the largest
     type on the page at every width, 44:36 against the stage headline. One line above the collapse:
     the line is 1061 wide at 44, and the box is 1008 at 1080, where 3.7vw gives 40 and a 3.5%
     margin. Two balanced lines in the stacked band, 34 as the floor. */
  font-size: clamp(34px, 3.7vw, 44px);
  line-height: 1.1;
  letter-spacing: -.01em;
  /* Balanced where it wraps (the stacked bands), so the break lands after "audio," and never
     leaves "in a" on its own (fix spec item 10). */
  text-wrap: balance;
}
.one-liner .ext {
  /* The design set the mono extensions at 26 against a 34 pitch; the ratio follows the pitch's size. */
  font-size: .76em;
  cursor: default;
  transition: color var(--base);
}
.one-liner .ext:hover { color: var(--caption); }
/* The pitch above the grid on desktop (fix spec item 8, second part): the reading order the 390
   layout already has, brought up. One line here, about as wide as the stage under it, so it costs
   the page 37px rather than a wrapped block and never rags. With the pitch out of the marketing
   column, that column starts nearer the frame's top. */
.one-liner--pitch { margin-top: 24px; max-width: var(--content-max); }
.one-liner--pitch + .landing { margin-top: 20px; }

/* The one price (fix spec item 4), set as a price: the amount at display size in the caption
   yellow (the accent the arrows and the counter used to spend), on a line of its own, with the
   supporting sentence under it at the column's full width (the layout review's polish item: set
   beside the figure, the sentence sat behind the reserved slot's gap and wrapped in a narrow
   column well to the right of it, the round-seven symptom back). No cue number, no timecode, no
   hover. The type, size and colour of the figure are exactly as they were. */
.price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* 8 under the figure: the stacked block is 34px taller than the side-by-side one at 520 wide,
     and the sticky column has to clear a 720 viewport under its 28 top (it is 690 with this gap,
     692 short of the line at 10 and 694 over it at 12). */
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.price-amount {
  flex: none;
  /* The slot is still reserved for the widest plausible localized figure (r7 item 4): five
     characters of the mono, "€5,49" or "$6.53". With the sentence under the figure nothing beside
     it depends on the width any more; the reservation stays because it costs nothing and the r7
     rule is ratified. */
  min-width: 5ch;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: var(--caption);
}
.price-desc {
  min-width: 0;
  width: 100%;
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

/* The trust block (fix spec item 6): facts in the quiet 13px, under the price, above the rule. */
.trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}
/* The address is a link in running text; the same padding trick gives it a 44-tall tap target. */
.trust .link {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  color: var(--text-2);
}

.smallprint {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* The marketing column ends on the small print's formats block (the landing remediation order,
   23 Sep 2026, section 3.1): the Free tools block that followed it, with the rule above that
   block, is gone at every width. The header lists the four tools (the inline list from the
   collapse up, the disclosure below it) and the footer index carries them, so the tools are on a
   page exactly twice. */

/* The page body (the pages wave, step B4): an entry page's copy, or the placeholder block while
   the copy is unwritten, in the landing grid's second row under the stage (the layout order) and
   no wider than the stage; the foot follows the grid with a body's worth of gap (the disclaimer's
   padding-top below), where the bare grid gets the frame's 18. */
.page-body {
  margin-top: 40px;
  max-width: 680px;
}
.page-body + .disclaimer, .landing:has(> .page-body) + .disclaimer { padding-top: 40px; }
.page-body-text {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}
.page-body-text:first-child { margin-top: 0; }
/* The placeholder, in the mono 13 register of the small print: a build note, not the page's voice. */
.page-body-placeholder {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
/* The questions an entry page answers (step C1), under its body: a section of h2s with a
   paragraph each (the full-site review of 10 Oct 2026, round 5, section 8; a description list of
   dt/dd until then), never an accordion, so a visitor reads the answers and the page's FAQPage
   block describes what is on the screen. The question in the cream, the answer in the body grey
   under it, on the body's 60ch measure, with a clear gap between pairs so the section reads as
   pairs and not as a run of paragraphs. No heading over the section: the questions are the
   headings. The treatment is the one the tool pages took from this list in Phase 3 of the
   consolidated rebuild (.tool-faq, below): the body face at 16 and 600, since an h2 would
   otherwise take the browser's 1.5em bold (the stylesheet resets every heading's margin, nothing
   else), and the entry pages' body stays on body16 at every width where the tool pages' document
   column steps down to 15. src/client/tools/toolQuestions.chrome.test.ts measures the painted size,
   weight, colour and the gaps on both page families. */
.page-faq {
  margin: 0;
  max-width: 60ch;
}
.page-body-text + .page-faq { margin-top: 32px; }
.page-faq-q {
  margin: 24px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  text-wrap: pretty;
}
.page-faq > .page-faq-q:first-child { margin-top: 0; }
.page-faq-a {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
/* The tool pages' questions (the consolidated rebuild, Phase 3; plan 5.3): the same pairs as
   h2s with a paragraph each, in a section under the cross-link, in the document column where the
   body is a touch further apart. The h2 takes the question treatment the entry pages' questions
   have (the body face at 16 and 600 in the cream), not the display face of the h1 or the mono
   label of a legal section: these are the page's first h2s, read as questions in the body's run,
   and a display heading over a two-sentence answer would announce more than it holds. The
   browser's own h2 (1.5em, bold, margins) is reset by these rules; src/client/tools/toolQuestions.chrome.test.ts
   measures the painted size, weight, colour and the gaps. Two rule sets, not one shared class,
   because the two differ at the phone (this one steps to 15 with the document column) and
   because the entry pages' structural guard holds that no tool markup reaches them. */
.tool-faq {
  margin: 32px 0 0;
  max-width: 60ch;
}
.tool-faq-q {
  margin: 24px 0 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  text-wrap: pretty;
}
.tool-faq > .tool-faq-q:first-child { margin-top: 0; }
.tool-faq-a {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

/* The first row of the foot: on the stage's left edge and no wider than the stage (r4 item 1), at
   the bottom of the page. The auto top margin is what pins the foot to the window's bottom edge on
   a page shorter than the window (.page is a flex column); on a taller page it follows the grid
   at the 18 the old pinned geometry gave it, or a body at 40 (the rule above). */
.disclaimer {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--disclaimer);
  max-width: 680px;
  text-wrap: pretty;
}

/* ---- The checkout column (04, 06) ---- */

.side--checkout { gap: 28px; }
.step-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.step-price {
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.step-label {
  font-size: 13px;
  color: var(--muted);
}
/* The one line under the price figure saying which side of the tier boundary the file fell: the
   quiet register, pulled up to the step row it explains. */
.tier-note { margin-top: -16px; }

.preview-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  font-family: var(--font-body);
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.btn-primary {
  height: 56px;
  background: var(--text);
  color: var(--screen);
  border: 0;
  font-size: 18px;
  font-weight: 600;
  transition: background var(--base), transform var(--base) var(--ease);
}
.btn-primary:hover { background: #ffffff; transform: translateY(-2px); }
.btn-secondary {
  height: 48px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 400;
  transition: border-color var(--base), color var(--base);
}
.btn-secondary:hover { border-color: var(--caption); color: var(--caption); }
.btn:disabled { cursor: default; }
/* The Choose file button on the idle stage, at every width (fix spec item 2): 48 tall, cream on
   near-black, sized to its label on desktop and full width on the phone (the 480 block). After the
   .btn rules so its height and width win. */
.btn--choose {
  margin-top: 18px;
  height: 48px;
  font-size: 16px;
  width: auto;
  min-width: 200px;
  padding: 0 32px;
  align-self: flex-start;
}

.two-files {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
/* The edit tool, named beside the pay buttons in the same register as the all-formats note (the
   copy pass, 17 Sep 2026); the two read as one block of facts under the buttons. */
.edit-tool-line { margin-top: -2px; }
/* A reference line in the quiet register: the expiry line under the buttons. */
.quiet-line {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.preview-notice {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.disclaimer-inline {
  font-size: 12px;
  line-height: 1.5;
  color: var(--disclaimer);
  text-wrap: pretty;
}

/* The one static line about the expiry, in the reference block under the buttons (the expired-job
   spec): the quiet register, so the fact exists without a ticking clock. */
.expiry-line { margin-top: 0; }
/* The seller line and the agree line beside the pay button (round 8, item 4): the quiet register,
   the second pulled up under the first so the two read as one block, and the expiry line keeps the
   column's gap under them. */
.pay-terms--agree { margin-top: -8px; }

/* The custom vocabulary field (wave 6.2, item D), between the edit-tool line and the pay buttons:
   the field label in the resend form's register, a three-line textarea on the same surface as the
   other fields with the yellow focused edge, the hint under it in the quiet register. Mono, since
   a list of names reads as data beside the mono price, and no soft wrap: one term is one line. */
.keyterms { display: flex; flex-direction: column; margin-top: 4px; }
.keyterms .field-label { margin-top: 0; }
.keyterms-field {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 10px 14px;
  min-height: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre;
  overflow-x: auto;
  resize: vertical;
  transition: border-color var(--base);
}
.keyterms-field:focus { outline: none; border-color: var(--caption); }
.keyterms-field:disabled { color: var(--muted); }
/* Word hints (the round-5 review, 2.3): the label a step up from the field-label grey, so the quiet
   "· recommended" after it can sit at that grey and still read (both pass 4.5:1 in painted pixels,
   held by src/client/keyterms.chrome.test.ts). The three example lines in the box are the muted
   grey at full opacity: Chrome's default placeholder ink on --surface paints under 4.5:1, and
   Firefox thins every placeholder to 54% unless told otherwise. */
/* Scoped under .keyterms: .field-label comes later in the sheet at the same weight and would win. */
.keyterms .keyterms-label { color: var(--text-2); }
.keyterms .keyterms-marker { color: var(--muted); }
.keyterms-field::placeholder { color: var(--muted); opacity: 1; }
.keyterms-hint { margin-top: 6px; }
/* The capped line and the left-out count follow the hint in the same register, a shade up so the fact is read. */
.keyterms-capped,
.keyterms-dropped { margin-top: 2px; color: var(--text-2); }

/* The code box (promo codes handled by us, 13 Oct 2026), between the word hints and the pay
   buttons. Closed it is one quiet text control at the hint's size, sized to its words, so a buyer
   with no code reads past it; open it is the resend form's label, field and secondary button in
   one row (the field mono and upper-cased as shown, since a code is data); applied it is one line,
   the code in the mono face and "remove" after it. The server's sentence under it is the quiet
   register a shade up, the left-out line's. Nothing here is yellow: the figure above is the claim. */
.code-box { display: flex; flex-direction: column; align-items: flex-start; margin-top: 2px; }
.code-box .code-open { font-size: 14px; color: var(--text-2); }
.code-box .code-open:hover, .code-box .code-open:focus-visible { color: var(--caption); }
.code-form { width: 100%; }
.code-box .field-label { margin-top: 0; color: var(--text-2); }
.code-row { margin-top: 8px; }
.code-field { text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-mono); }
.code-row .code-apply { width: auto; height: 48px; padding: 0 20px; flex-shrink: 0; }
.code-applied { font-size: 14px; line-height: 1.55; color: var(--text); }
.code-applied .code-name { letter-spacing: .04em; }
.code-applied .code-remove { font-size: 13px; color: var(--text-2); margin-left: 4px; }
.code-applied .code-remove:hover, .code-applied .code-remove:focus-visible { color: var(--caption); }
.code-message { margin-top: 6px; color: var(--text-2); }
/* The undiscounted figure, struck, before the applied code's total in the price slots: half the
   figure's size in the quiet grey, so the total stays the figure that is read. */
.price-was { font-size: .55em; color: var(--muted); margin-right: .15em; vertical-align: .2em; }

/* ---- 04b Expired: the pay column replaced, the card dimmed (the expired-job spec, layer 1) ----
   The frame and the file bar are the preview's; the card keeps its cues in the muted grey rather
   than losing them, and its label reads `expired`, so the screen is "your thing, expired" and not
   an error. The right column is the headline in the display face, the two lines, and the button in
   the Choose file treatment. No alarm colour anywhere. */

.side--expired { gap: 24px; }
.expired-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.expired-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.expired-body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.expired-block .btn--choose { margin-top: 8px; }
.cue-panel--expired .cue-head .name { color: var(--muted); }
.cue-panel--expired .cue-text { color: var(--muted); }
.cue-panel--expired .cue-meta { color: var(--dim); }
.cue-panel--expired .cue:hover { background: transparent; box-shadow: none; }

/* ---- The caption card (04): the screen grown into the loudest element on the page ----
   The header strip is shared with the screen block of 02 and 03, so it does not move. The card is
   the frame's second block at preview but taller than its slot (--card-bleed past the frame's
   bottom); its left edge is the frame's own left edge, so the card's black surface starts where the
   screen's did and lines up with the file bar above it. The frame's box does not change; it only
   lets the card overflow past its bottom. The scroll body fades at its bottom edge so the crop
   reads as deliberate, never a line cut in half; the list keeps room under the footer so it clears
   the fade at the end of the scroll. */

.cue-head {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 28px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}
.cue-head .name { color: var(--text); }

.cue-panel {
  position: relative;
  flex: none;
  height: max(calc(var(--frame-h) - var(--bar-h) + var(--card-bleed)), var(--card-min));
  background: var(--screen);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cue-panel .cue-head { padding-left: 28px; }
.cue-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 64px), transparent);
}
.cue-list { padding-bottom: 40px; }

/* ---- The synced player (wave 6.2, item C; src/client/player/) ----
   One band under the card's header strip, in the card's own mono 13 register: the bar over the
   customer's held file (Play, the scrubber with its readout, the Follow along control while a
   manual scroll has stopped following), or the one quiet control that opens a picker for it, or
   the one sentence for a file the browser could not play. The band takes its height from the
   scroll body, never from the frame, so the card is the same box with and without it. The
   editor's bar in this band (Speed as a select, Loop cue as a checkbox, Stop) went with the paid
   editor's card (the round-5 one-editor build): the editor plays through the monitor's head now.
   Since the round-5 preview build (stage E) the preview's bar is the tools' transport too (the
   house scrubber with the lines' ticks, the six speeds, Repeat line, no Stop), with the band's own
   rules further down. Follow along is a .link in the bar's register, in the markup always and
   hidden while following is on, so the bar's shape does not change under the view's one
   attribute write; on the preview card it stands on the card's head row (below). The range
   scrubber's accent is the cream, since the yellow is for the caption lines. The active row's
   highlight is the hover ground plus the cream-grey bar the jump flash uses, never the yellow. */
.cue-band {
  flex: none;
  padding: 10px 28px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-2);
}
.cue-panel .cue-band { padding-left: 28px; }
.player-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 24px;
  font-size: 13px;
  color: var(--text-2);
}
.player-bar .link { color: var(--text-2); font-size: 13px; flex-shrink: 0; }
.player-bar .link:hover, .player-bar .link:focus-visible { color: var(--caption); }
/* Play and Pause swap in one slot, so the scrubber does not move by a character. */
.player-toggle { min-width: 5ch; text-align: left; color: var(--text); }
.player-scrub {
  flex: 1 1 120px;
  min-width: 80px;
  height: 14px;
  margin: 0;
  accent-color: var(--text);
  cursor: pointer;
}
.player-scrub:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
.player-time { flex-shrink: 0; color: var(--muted); white-space: nowrap; }
.player-speed { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.player-speed select {
  padding: 2px 4px;
  background: var(--cue-hover);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
}
.player-speed select:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
.player-attach { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-height: 24px; font-size: 13px; }
.player-attach .link { color: var(--text-2); font-size: 13px; }
.player-attach .link:hover, .player-attach .link:focus-visible { color: var(--caption); }
.player-notice { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.player-notice:empty { display: none; }
/* The preview's transport (the round-5 preview build, stage E, 10 Oct 2026; the full-site
   review's section 4): the tools' bar in the card's band. One line in the 680 card: Play 39, the
   readout 85.8 (the preview's readout is never wider than "0:00 / 2:00": the span it plays is two
   minutes at most, so the tools' 17-character reserve is not taken), the six speeds 221.6 and
   Repeat line 105.8 with four gaps of 14 leave the scrubber 115.8 of the 624 at its 80 basis, the
   tools' own basis; at 120, the range input's, Repeat line went to a second line (measured at
   1512x717, the band 68 and the list 270 where the attach control's band leaves 293). Repeat line
   never breaks its two words and never gives width to the scrubber. */
.cue-band .player-scrub { flex-basis: 80px; }
.cue-band .toggle { flex-shrink: 0; white-space: nowrap; }
/* Where the one line does not fit, the scrubber's basis is the band's width less 170, so nothing
   joins Play and the scrubber but the one item of 131 or less beside them (fix round 3). The band
   is a size container for this alone, so the rule reads the bar's own room, not the viewport's.
   The one line needs 588.2 (Play 39, the scrubber's 80, the readout 85.8, Repeat line 105.8, the
   speeds 221.6 and four gaps of 14), which the band has from about 699 wide. Under it:
     - from 481 to about 699 (the 14px gaps), the first line is Play, the scrubber and the readout
       (39 + 85.8 + 28 = 152.8, 17.2 to spare) and Repeat line goes to the second line with the
       speeds, so the scrubber has the first line's room: 232.2 at 481, 271.2 at 520, 311.2 at 560,
       the widths it had before the fix round over stage E, where the basis was 80 there and Repeat
       line, moved before the speeds for the phone, took the first line's room (112.4, 151.4 and
       191.4: narrower than any phone's);
     - on the phone (the block at 480, which puts the readout and the speeds on the second line
       and gaps of 8), the first line is Play, the scrubber and Repeat line (39 + 105.8 + 16 =
       160.8, 9.2 to spare).
   The second line is Repeat line then the speeds in the band from 481, the order the markup
   gives them (`loopFirst`), so the focus walks the controls as they stand; the tools' monitor,
   whose markup has the speeds first, is not a .cue-band. At the line's edge the query is the
   floor of the need: a band between 588 and 588.2 wide keeps Repeat line on the first line with
   the scrubber over 300 (never a third line), and none wider is ever pushed to two. */
.cue-band { container: cue-band / inline-size; }
@container cue-band (width < 588px) {
  .cue-band .player-scrub--house { flex-basis: calc(100% - 170px); }
}
/* The line over the attach control on a page that landed through its address (PLAYER.reloaded):
   its own line in the band's register, the control under it. */
.player-reloaded { flex: 0 0 100%; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); }
/* Follow along on the card's head row, right of the line count (PlayerBand.follow in
   src/client/render.ts), in the row's own register, as the monitor's head puts it on its count
   row: in the bar it took a line of its own the moment it showed.
   Its room is reserved while it is hidden (the fix round over stage E, 11 Oct 2026): the view
   still writes the one `hidden` attribute, and here a hidden Follow along keeps its box with no
   paint, no hit and no tab stop, so showing it moves nothing at any width. With `display: none`
   the row wrapped the moment it showed where the row is short of its 79 or 94px: 360 to 365
   wide (the head 39.5 to 56, the band and the list 16.5 lower, the list 35 to 32) and 481 to
   about 575 (the head 50.5 to 70, the list 237.5 to 218), under the hand that had just turned
   the wheel. The count and Follow along never break and never give width: where the row is
   short the range text wraps, the same height whether Follow along shows or not. */
.cue-head-end { display: inline-flex; align-items: baseline; gap: 16px; flex-shrink: 0; white-space: nowrap; }
.cue-head .player-follow-along { flex-shrink: 0; font-size: inherit; color: var(--text-2); }
.cue-head .player-follow-along[hidden] { display: inline-block; visibility: hidden; }
.cue-head .player-follow-along:hover, .cue-head .player-follow-along:focus-visible { color: var(--caption); }
/* The active row on the card: DOM-only (data-playing), never state. The row bleeds 8px left, as the
   editor's rows do, so the bar sits beside the cue number and not on it; the number does not move. */
.cue[data-playing] {
  margin-left: -8px;
  padding-left: 8px;
  background: var(--cue-hover);
  box-shadow: 0 0 0 8px var(--cue-hover), inset 3px 0 0 var(--text-2);
}
/* A timecode is a seek while a file is held: the cursor says so, and the row's timecode brightens under the pointer. */
.cue-panel[data-player] .cue-tc, .tool[data-tool="editor"] .editor-cues .cue-tc { cursor: pointer; }
.cue-panel[data-player] .cue-tc:hover, .tool[data-tool="editor"] .editor-cues .cue-tc:hover { color: var(--text); }
/* On the standalone editor it is more than a seek: the line's play-from-here control, a button
   with a tab stop while a recording is loaded (the shifter and editor order, 3 Oct 2026, plan
   4.3; a click on the line's words edits them, so the time is what plays), and since stage C3
   of the consolidated rebuild (plan 3.3) the control that changes the line's time in every
   state, so these rules are the page's and not the recording's. The brightening
   above is 1.68:1 on the glyphs and says little, so under the pointer it takes a frame, 1px in
   the muted grey (5.55:1 against the panel), and under the keyboard's focus the house ring.
   Both are drawn on the control's own edge, inside its box, and the box is 6px wider than the
   time on each side (padding against a matching negative margin, so the time does not move by
   a pixel when a recording arrives). Not outside it, as a line of the subtitle shifter carries
   its frame: an editor's row is paint-contained (content-visibility, the editor scale build)
   and the timecode is the row's first line, so nothing drawn above the timecode's top edge is
   painted at all. A ring 3px out was drawn on three sides and cut off along its top, measured
   in the pixels: no yellow in any row above the box. Outlines both, so nothing in the row moves. */
/* Brought in from under the fold, or from under the end of the list's own box in one column, it comes one gap clear of the edge. */
.tool[data-tool="editor"] .editor-cues .cue-tc { padding: 0 6px; margin: 0 -6px; scroll-margin-bottom: var(--tool-gap); }
.tool[data-tool="editor"] .editor-cues .cue-tc:focus { outline: none; }
.tool[data-tool="editor"] .editor-cues .cue-tc:focus-visible { color: var(--text); outline: 2px solid var(--caption); outline-offset: -2px; }
@media (hover: hover) {
  .tool[data-tool="editor"] .editor-cues .cue-tc:hover { outline: 1px solid var(--muted); outline-offset: -1px; }
  .tool[data-tool="editor"] .editor-cues .cue-tc:hover:focus-visible { outline: 2px solid var(--caption); outline-offset: -2px; }
}
/* The `edit` control beside a line's time (round 5, stage H; review section 7; cueTimeOpener in
   src/client/cueTime.ts), on every home that can retime and in both states: a word in the link
   register of the meta row, after the time and before the edited mark, opening the same field the
   time opens without a recording. The meta row's own size and leading, so the row is the box it
   was (the content-visibility placeholders are measured from a rendered row); the time's colour at
   rest, the yellow under the pointer and the focus; the ring is the time's, drawn inside the box
   for the same reason (the row is paint-contained and this is its first line), with 4px of
   padding a side against a matching negative margin so it clears the word. Never .cue-tc: the
   player view plays from whatever matches that. */
.cue-meta .cue-time-open { flex: none; padding: 0 4px; margin: 0 -4px; color: var(--text-2); white-space: nowrap; }
.cue-meta .cue-time-open:hover, .cue-meta .cue-time-open:focus-visible { color: var(--caption); }
.cue-meta .cue-time-open:focus { outline: none; }
.cue-meta .cue-time-open:focus-visible { outline: 2px solid var(--caption); outline-offset: -2px; }
.tool[data-tool="editor"] .editor-cues .cue-time-open { scroll-margin-bottom: var(--tool-gap); }
/* The line's time open for typing (stage C3; src/client/cueTime.ts openTimeEdit): the control's
   box with the start as a field in its place, the arrow and the end after it as before. The
   field is the time's own glyphs with nothing around them (no border, the row's mono at the
   meta row's size and leading, as wide as the time is in characters plus 3px of padding a side
   against a matching negative margin, which is where the ring is drawn), so the start stands
   exactly where it stood as text and the arrow and the end do not move; what says it is a
   field is the house ring, drawn inside its box as the control's is, for the same reason (the
   row is paint-contained and the time is its first line). Measured without the padding: the
   ring's two inset pixels lay over the first and last digits. The ground is the row's own. */
.cue-time-edit { display: inline; padding: 0 6px; margin: 0 -6px; white-space: nowrap; }
.cue-time-input {
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  height: 1.5em;
  box-sizing: content-box;
  width: 12ch;
  padding: 0 3px;
  margin: 0 -3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  caret-color: var(--caption);
  outline: 2px solid var(--caption);
  outline-offset: -2px;
  font-variant-numeric: tabular-nums;
}
.cue-time-input:focus { outline: 2px solid var(--caption); outline-offset: -2px; }
.cue-time-input::selection { background: var(--caption); color: var(--screen); }

/* A cue as a caption block: the meta row, then the text at the size it will sit on the video. */
.cue {
  margin-bottom: 22px;
  transition: background var(--fast), box-shadow var(--fast);
}
.cue:hover {
  background: var(--cue-hover);
  box-shadow: 0 0 0 8px var(--cue-hover);
}
.cue-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.cue-n { color: var(--cue-index); }
.cue-text {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--caption);
}
/* The builder made the lines (two at most, wrapped already). One that is wider than the card wraps
   (phone round 3, item 5, Corey's reversal of 24 Oct 2026: every word shows at every width), its
   continuation hung 2ch in so it does not read as a caption line of its own; the first line stands
   where it did, so a line that fits is not moved by a pixel. */
.cue-line { white-space: pre-wrap; overflow-wrap: break-word; padding-left: 2ch; text-indent: -2ch; }
.cue-foot {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- 06 Paying: the page stays mounted under Paddle's overlay ---- */

body[data-stage="paying"] #app {
  opacity: .28;
  filter: saturate(.6);
  pointer-events: none;
}

/* ---- 07 Working, 08 Done ---- */

.working-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.working-line {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 600px;
  text-wrap: pretty;
}
.working-line .email {
  color: var(--text);
  font-size: 15px;
}
.side--working {
  gap: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.side-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  color: var(--text);
}
.arrives-files {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  word-break: break-all;
}

/* 07b Refunded (the expired-job spec, layer 3): screen 07's frame, the label slot reading REFUNDED
   in the muted grey where PAID would be in the yellow, and the eyebrow the same. Nothing red, no
   icon: the tone is a shrug. The button is the Choose file treatment, as on the expired column. */
.stage--refunded .eyebrow { color: var(--muted); }
.stage--refunded .working-line + .working-line { margin-top: 12px; }
.refunded-actions { margin-top: 28px; }

/* 08 Done: the two download rows on the black stage reuse the download page's .dl-rows/.dl-row
   rules (border --line-soft, row text --text, "Download" in --caption, stacked under 480px). The
   artboard rules the block off at the top and sets the line under it at 15 --muted. The frame lets
   this stage grow past --frame-h (see .stage-frame above). */
.dl-rows--stage {
  border-top: 1px solid var(--line-soft);
  max-width: 600px;
}
/* The done screen's fit (the layout review, item 2.5): four rows where the artboard drew two put
   the card's bottom edge on the fold at 1512x801 and the foot under it. The type is untouched;
   the room comes from the spacing around the rows, on this stage alone: 28 over the rows (this
   rule wrote 32 and the download page's .dl-rows, later in the sheet at the same specificity,
   overrode it to 36, so the 32 never applied), 14 of padding in each row (54.5 tall, still over
   the 44 tap target; the download page's own rows keep 18), then the fix block, the links line and
   the resend line each a little closer. Measured at 1512x801: the frame's bottom moved from 795 to
   741 and the legal row is inside the fold; the index row straddles it. */
.dl-rows.dl-rows--stage { margin-top: 28px; }
.dl-rows--stage .dl-row { padding: 14px 0; }
.done-line {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
  text-wrap: pretty;
}
.done-line .email {
  color: var(--text);
  font-size: 14px;
}
/* The one line a refunded second payment adds under the files (the refund wording, item 6, 12 Oct
   2026): the links line's type and colour, 16 under the rows, so it reads as a fact about the
   payment and the card otherwise stays as it is. */
.done-twice {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
  text-wrap: pretty;
}

/* ---- Turnstile host. Interaction-only, so empty unless Cloudflare asks for a click. ---- */

.turnstile {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
}

/* ---- The collapse (1079 and below, to 481). The 390 layout is below. ----
   The page has two width breakpoints (r2 item 4, r3 item 3): this line and 480. Here the grid
   stacks into one column and the whole page becomes one 680 column sitting left (r3 item 5): the
   header, the pitch, the frame, the price column, the disclaimer and the footer share one left
   edge and one right edge at every width below the line, with the rest of the viewport empty on
   the right, the same move the two-column layout makes above it. The frame keeps its 680 cap, so
   it is 680 just above and just below the line and only shrinks from there; from 720 down the cap
   and the content width converge. The disclaimer and the legal links become one block at the foot
   of the page, in the flow and pushed to the bottom edge when the page is shorter than the window.
   The caption card cannot run past the frame's bottom for free here: it keeps --card-min by
   overflowing the frame, and the stage column pads the difference in the preview states so the
   checkout column sits under the card, not behind it. The gutter and the frame height do not
   change here: both are continuous. */

@media (max-width: 1079px) {
  :root {
    --bar-h: 164px;
    --card-bleed: 0px;
  }
  .page { padding-bottom: 24px; }
  .page > * { max-width: 680px; }
  .disclaimer {
    padding-top: 40px;
    font-size: 11px;
  }
  .landing {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stage-col { width: 100%; }
  .side { width: 100%; gap: 24px; }
  /* One column, static, in DOM order: stage, side, body. The body keeps its 40 under the side
     (the row gap here is the stacked grid's 32, so the margin makes up the difference). */
  .landing > .side--marketing { grid-column: auto; grid-row: auto; position: static; max-height: none; overflow: visible; }
  .landing > .page-body { grid-column: auto; grid-row: auto; margin-top: 8px; }
  /* The header's Free tools control flips with the grid (the landing remediation order, 23 Sep
     2026, sections 3.2 and 3.3): from here down the header is capped at 680 like every other child
     of the page, and the inline list beside the wordmark (about 450px of label and names) would
     run into the price meta, so the list goes and the disclosure takes its place, exactly as it
     was built. One line, the collapse, never a third breakpoint. The panel keeps its own hidden
     attribute, which the script toggles; the rule only lets it display where the trigger does. */
  .topbar-nav { display: none; }
  .topbar-tools { display: inline-flex; }
  .menu:not([hidden]) { display: block; }
  .cue-panel {
    height: max(calc(var(--frame-h) - var(--bar-h)), var(--card-min));
  }
  body[data-stage="preview"] .stage-col,
  body[data-stage="paying"] .stage-col {
    padding-bottom: max(0px, calc(var(--card-min) - (var(--frame-h) - var(--bar-h))));
  }
}
/* One column, the preview and the paying screens (Corey's reversal of 20 Oct 2026, the Android
   review): the card is its content and its lines run in the page's flow, no box, no scrollbar, no
   fade at a box's foot; a swipe that starts on them moves the page, and the player follows against
   the window (playerView's listScrolls reads this overflow over the card's declaration). Two
   columns keep the box. The phone's own rules for its card are further down. */
@media (max-width: 1079px) {
  body:is([data-stage="preview"], [data-stage="paying"]) .cue-panel:not(.cue-panel--expired) { height: auto; }
  body:is([data-stage="preview"], [data-stage="paying"]) .cue-panel:not(.cue-panel--expired) .cue-scroll {
    /* What the player view reads over the markup's declaration: the page scrolls these lines. */
    --list-flow: page;
    flex: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  body:is([data-stage="preview"], [data-stage="paying"]) .stage-col { padding-bottom: 0; }
  body:is([data-stage="preview"], [data-stage="paying"]) .stage-frame { height: auto; }
  /* The lines folded (phone round 3, item 1, Corey's call of 24 Oct 2026): the first six
     (PREVIEW_FOLD_SHOWN in src/client/render.ts) and "Show all 36 lines" under them, a plain cut
     with no fade. The render marks the list only for a preview of more than eight lines that the
     visitor has not opened; from 1080 up the box holds every line and the control is not shown. */
  body:is([data-stage="preview"], [data-stage="paying"]) .cue-list[data-fold] > .cue:nth-child(n + 7 of .cue) { display: none; }
  body:is([data-stage="preview"], [data-stage="paying"]) .cue-list[data-fold] > .cue-fold {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -10px 0 4px;
    font-size: 14px;
    color: var(--text);
  }
}
/* The fold's control is a one-column thing (the block above). */
.cue-fold { display: none; }

/* ---- 11 Mobile (390 reference; the client switches layout at 480) ---- */

/* ---- The header tagline under 600 (round 5, review section 9: "the 'from $6 · one payment · no
   account' tagline wraps to two lines beside Free tools. Hide it under about 600 px; the price block
   below says the same thing."). On the landing pages only: a document page's .topbar-meta is its
   link back to the root (body.doc-body), which stays. The header keeps the wordmark and the Free
   tools control. This is a third landing width breakpoint, against landing-stage.md's "two width
   breakpoints" (and layout-nav.md's accepted wrap of the meta between 481 and 599, "the phone header
   keeps all three items"): the review asked for the line, and no fluid value removes a line of
   text. Measured in src/client/landingHeader.chrome.test.ts. ---- */
@media (max-width: 599px) {
  body:not(.doc-body) .topbar > .topbar-meta { display: none; }
}

@media (max-width: 480px) {
  :root {
    /* Room for the upload row and the reading line at two lines each, so the bar is one height. */
    --bar-h: 160px;
  }
  /* No fixed frame height on the phone (r2 item 1): the frame is its content, with 300 as a floor
     for the upload and reading screens, and nothing inside it scrolls. */
  .stage-frame { height: auto; min-height: 300px; }
  /* The payment-received and transcribing card is its content on the phone (the Android review, 20
     Oct 2026): under the 300 floor, its content set at the foot, it stood with 80 to 180px of empty
     card over its headline. */
  body[data-stage="working"] .stage-frame { min-height: 0; }
  .page {
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  .wordmark { font-size: 14px; }
  .topbar-meta { font-size: 11px; }
  .topbar-link { font-size: 12px; }
  /* The header on the phone: the cluster keeps the wordmark and the control whole at a tighter
     gap, and the meta on the right is what gives, wrapping onto a second line, right-aligned,
     where the three do not fit on one (360 wide holds them on one line only just). */
  .topbar { gap: 16px; }
  .topbar-left { gap: 14px; }
  .topbar-meta { min-width: 0; text-align: right; }
  /* A document page's link back ("Captions & transcripts") wraps instead of widening the page: its
     longest word is 73px at 11px mono, and at 320 wide the cluster leaves the meta 33, so the word
     ran to 340 and the page scrolled sideways (found in phone round 4, fixed on Corey's word of 25
     Oct 2026). The header wraps and the meta's basis is its longest word: where that fits beside
     the cluster (360 up: 231 + 16 + 73 of 320) nothing moves; where it does not, the link takes a
     line of its own under the cluster, at the right. */
  .doc-body .topbar { flex-wrap: wrap; row-gap: 6px; }
  .doc-body .topbar-meta { flex: 1 1 auto; width: min-content; }
  /* The trigger and the panel's rows are 44 tall on the phone, the tap target every other row of
     links on the page keeps (the mock's measures gave 27.5 and 40): the rows through their padding,
     which the panel grows by and nothing else notices; the trigger through padding against a
     matching negative margin, so the cluster's baseline row keeps its height and the wordmark and
     the panel under it do not move, with the underline kept 2px under the text (the 11px of
     padding below it, less 8 for the line, is the desktop's 3). */
  .topbar-tools { padding: 11px 0; margin: -9px 0 -8px; }
  .topbar-tools::after { bottom: 8px; }
  .menu-item { padding: 10px 8px; }

  .one-liner {
    /* Two lines from 360 up (it was 24 under a 38 stage headline; the pitch is now the larger): the
       balanced break falls after "audio," and that first half, 525 wide at 44, has to fit the box
       (the viewport less 40), which is what 7vw is. 28 at 400 and above. */
    font-size: clamp(24px, 7vw, 28px);
    line-height: 1.15;
    margin-top: 28px;
  }

  .stage-col { margin-top: 24px; }
  /* The boxes keep their content clear of the corner labels (top 16px, an 11px line box). */
  .stage { padding: 20px; }
  .stage--solid, .stage--screen { padding-top: 44px; }
  .corner { width: 16px; height: 16px; }
  .stage.is-hover .corner { width: 28px; height: 28px; }
  .stage-label { top: 16px; font-size: 11px; }
  .stage-label-left { left: 20px; }
  .stage-label-right { right: 20px; }
  .stage--idle { padding-top: 44px; }
  .cue-stage { margin-top: 20px; }
  .cue-stack { font-size: 12px; }
  .stage-actions { flex-direction: column; align-items: stretch; gap: 16px; }
  .demo-control { align-self: flex-start; }
  .demo-progress { top: 33px; left: 20px; right: 20px; }
  .stage-headline {
    /* One line from 360 up (it was 38, which wrapped at 400), under the pitch at the same 7:6. */
    font-size: clamp(22px, 6vw, 24px);
    line-height: 1.05;
    letter-spacing: -.01em;
    /* Balanced where a headline does wrap (the pages wave, step B4), as the pitch is: the m4a and
       mp4 headlines are two lines at 360, and without this the break left "video file." alone on
       the second line; `pretty` changed nothing here (measured 21 Sep 2026). A one-line headline
       is untouched. */
    text-wrap: balance;
  }
  .stage-lead { margin-top: 10px; font-size: 14px; }
  .stage-notice { font-size: 14px; }
  .btn--choose {
    margin-top: 18px;
    width: 100%;
    padding: 0;
    align-self: stretch;
  }

  .eyebrow { font-size: 11px; }
  .file-bar { padding: 16px 20px 14px; }
  .file-name { font-size: 26px; }
  .file-meta { font-size: 12px; }
  .file-bar-foot { padding-top: 10px; }
  .upload-row { font-size: 13px; }
  .upload-progress { font-size: 12px; }
  .upload-row .link { font-size: 13px; }
  .reading-line { font-size: 13px; }
  .duration { font-size: 44px; }
  .screen-body { padding: 14px 16px; }
  .screen-note { font-size: 12px; }
  .rejected-headline { font-size: 26px; }
  .rejected-body { font-size: 14px; margin-top: 12px; }
  .rejected-link { font-size: 13px; margin-top: 10px; }
  .rejected-row { margin-top: 14px; gap: 8px 20px; }

  .formats { margin-top: 8px; font-size: 12px; }
  .formats-lists { font-size: 12px; }
  /* Under the Choose file button, before the formats line: the second thing read after the pitch. */
  .price { margin-top: 20px; gap: 10px; font-size: 13px; line-height: 1.5; }
  .price-amount { font-size: 30px; }
  .trust { margin-top: 16px; gap: 6px; font-size: 12px; line-height: 1.6; }
  .smallprint--mobile {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 16px;
    padding-top: 12px;
  }
  .disclaimer {
    padding-top: 20px;
    max-width: none;
  }

  /* Preview: wallet button straight under the price, the caption card fills what is left. The page
     is exactly one viewport tall (artboard 11 preview is a 390x1180 frame), which is what lets flex
     size the card to the leftover space; min-height:100dvh alone lets it grow to its content. The
     card keeps a floor so a very short viewport overflows and scrolls rather than crushing it. */
  /* The expired screen only, since Corey's reversal of 20 Oct 2026 (the Android review): the preview
     and paying screens are the file, the card with its lines in the page's flow, then the price,
     the hints, the code and the button, and the page is as long as that (below). */
  body[data-stage="expired"] .page { height: 100dvh; }
  .m-preview {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-top: 24px;
  }
  .eyebrow-sm { font-size: 11px; }
  .preview-file {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 26px;
    line-height: 1.05;
    margin-top: 4px;
    word-break: break-all;
  }
  .m-duration-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-top: 16px;
  }
  .m-duration-row .duration { margin-top: 4px; }
  .m-step { text-align: right; }
  .m-step-price {
    font-size: 44px;
    line-height: 1;
    margin-top: 4px;
    font-weight: 500;
  }
  .m-preview .btn-primary {
    margin-top: 20px;
    height: 52px;
    font-size: 17px;
    flex-shrink: 0;
  }
  /* The boxes before Pay on the phone (round 9's Terms box, round 10's withdrawal box): the first
     takes the 20px the button had under the code box, which also clears the code control's 12.25px
     tap bleed so "Have a code?" keeps its 44 strip; a second box follows the first with no gap; the
     button follows the last box at 4px. */
  .m-preview .consent-check--pay { margin: 20px 0 0; }
  .m-preview .consent-check--pay + .consent-check--pay { margin-top: 0; }
  .m-preview .consent-check--pay + .btn-primary { margin-top: 4px; }
  .m-preview .btn-secondary {
    margin-top: 10px;
    height: 46px;
    flex-shrink: 0;
  }
  .two-files--mobile {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
  }
  .edit-tool-line--mobile { margin-top: 6px; }
  .quiet-line--mobile { margin-top: 6px; font-size: 12px; }
  /* The vocabulary field on the phone: 16 or iOS zooms the page on focus; the hint in the phone's quiet size. */
  .keyterms--mobile { margin-top: 12px; }
  .keyterms--mobile .keyterms-field { font-size: 16px; }
  .keyterms--mobile .keyterms-hint,
  .keyterms--mobile .keyterms-capped,
  .keyterms--mobile .keyterms-dropped { font-size: 12px; }
  /* The code box on the phone: the field and Apply stay one row (a code is short), the field at
     16 so iOS does not zoom on focus, and the phone's .m-preview button margins kept off them. */
  .code-box--mobile { margin-top: 12px; }
  .code-box--mobile .code-open, .code-box--mobile .code-applied { font-size: 13px; }
  .code-box--mobile .code-message { font-size: 12px; }
  .code-box--mobile .code-row { flex-direction: row; }
  .code-box--mobile .code-field { font-size: 16px; }
  .m-preview .code-box .code-apply { margin-top: 0; width: auto; height: 48px; }
  /* A finger's 44 for the two text controls (the phone pass's rule): strips over and under each
     box against a matching negative margin, so no line box moves. "Have a code?" and "remove" are
     19.5 tall at 13px; the strips take 12.25 each side, into the 12px over the box (the hint's
     text, no target) and the 20px over the first pay button, never into another control. */
  .code-box--mobile .code-open { padding: 12.25px 0; margin: -12.25px 0; }
  .code-box--mobile .code-remove { display: inline-block; padding: 12.25px 0; margin: -12.25px 0 -12.25px 4px; }
  /* Under the DURATION and YOUR FILE row, on the price's side. */
  .tier-note--mobile { margin-top: 4px; text-align: left; }
  .m-preview--expired .expired-block { margin-top: 20px; flex-shrink: 0; }
  .m-preview--expired .expired-headline { font-size: 30px; }
  .m-preview--expired .expired-body { font-size: 14px; }
  .m-preview--expired .btn--choose { width: 100%; }
  .m-preview .preview-notice { margin-top: 12px; font-size: 13px; }
  .cue-panel--mobile {
    margin: 20px 0 0;
    height: auto;
    flex: 1 1 0;
    min-height: 200px;
  }
  /* The preview's card on the phone is its content: the lines in the page's flow, no box, no
     scrollbar and no fade at a box's foot (Corey's reversal of 20 Oct 2026, the Android review: the
     box under the buttons trapped a swipe that started on it, as the editor's did, d6f66d5). The
     expired card keeps its box. */
  .m-preview .cue-panel--mobile:not(.cue-panel--expired) { flex: none; min-height: 0; }
  .m-preview .cue-panel--mobile:not(.cue-panel--expired) .cue-scroll {
    flex: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .m-preview .cue-panel--mobile:not(.cue-panel--expired) .cue-list { padding-bottom: 8px; }
  /* The price under the card: its eyebrow and figure left, a block of their own. */
  .m-step--price { text-align: left; margin-top: 24px; }
  /* The head row's gaps are 10 on the phone (16 above it), so the range, the count and the
     reserved Follow along (132 + 52.8 + 79.2 at 11px mono, 284 with the two gaps) stay one line
     down to 360 wide, whose row is 288; at 16 they needed 296 and the row was two lines (56) at
     360 to 365 with a file held. Narrower than 360 the range text wraps, the same with or without
     Follow along showing. */
  .cue-head {
    padding: 12px 16px 10px;
    font-size: 11px;
    gap: 10px;
  }
  .cue-head-end { gap: 10px; }
  .cue-panel .cue-head { padding-left: 16px; }
  .cue-band { padding: 8px 16px; }
  .cue-panel .cue-band { padding-left: 16px; }
  .cue-scroll { padding: 16px; }
  /* The preview's transport on the phone (stage E of round 5; its lines settled by the fix round
     over it, 11 Oct 2026): two lines at every phone width from 360 up. Play, the scrubber and
     Repeat line on the first; the readout and the six speeds on the second. The markup puts
     Repeat line before the speeds (playerBand in src/client/render.ts), so the focus walks the
     controls in the order they stand; the readout, which takes no focus, is moved to the second
     line here (`order`), and the scrubber's basis is the first line less Play, Repeat line and the
     two gaps (39 + 105.8 + 16, with 9px to spare; the container rule on .cue-band, since fix
     round 3 the same rule as the band's from 481), so the readout never fits beside them and the
     shape is the same at every phone width, the scrubber taking what the line leaves (127.2 at
     360, 142.2 at 375, 157.2 at 390). The second line is 85.8 + 8 + 191.6 = 285.4, inside the 288
     of a 360 phone, with the speeds 4 apart.
     The tools' own order (the speeds then Repeat line on the second line) was three lines at 375
     and 360: the speeds and Repeat line are 312.4 at the closest gaps that read as six words, and
     the line is 303 and 288 there, so the band was 125.5 and the card's list 35, with 3px of a
     60px row on screen (the V-preview lens over stage E). Measured against the other ways out, at
     360x740, 375x812, 375x667 and 390x844 (the band, the list, the scrubber):
       - the gaps alone (6 between items, 2 between speeds): two lines at 375 and 390, three at 360
         and 362 (the list 35);
       - Repeat line on the first line with the readout as the position only: two lines, the list
         79.5, the scrubber 82 at 360 and 112 at 390, and the readout no longer says the span;
       - the six speeds folded into one cycling control: two lines, the list 79.5, the scrubber
         143.2 at 360, but five presses from 1x to 0.75x and a control kind the tools do not have;
       - the card's box grown by the band's extra height: the bar still three lines at 360 and 375
         (the list 75 in a 240 card), the page 40 longer.
     This one: two lines, the band 81 and the list 79.5 in the 200 card at all four, the six speeds
     and Repeat line one press each.
     Every control is a finger's 44.5, made as strips outside its box (the tools' method: the
     box, the ring and every reading of the box stay as they are), each strip only where nothing
     else is a control. The card's list paints over anything the band lays past its own bottom
     edge (the list's fade mask makes it a stacking context after the band), so nothing reaches
     below the band. The first line's controls reach up through the band's 8 and the head's 10 of
     padding: 18 over Play's and Repeat line's 19.5 line box and 7 under it (the scrubber's 14px
     box stands 2.75 inside the line, so 20.75 and 9.75). The second line's speeds reach 17.5 up
     and 7.5 down, so the lines stand 25 apart and the band keeps its 8 under the second. Follow
     along on the head row stands over Repeat line, 19 apart box to box, so it reaches 27.5 up
     (through the head's 12 of padding and 15.5 into the card's 20 of margin, where the page has
     only text) and 0.5 down, leaving 0.5 between its strip and Repeat line's. The attach control
     takes 16.5 over (with no bar there is no Follow along on the row) and 8 under. */
  .cue-band .player-bar { gap: 25px 8px; }
  /* The scrubber's basis, calc(100% - 170px), is the band's container rule above (fix round 3: one rule for the phone and the band from 481 to about 699). */
  .cue-band .player-time { order: 1; }
  .cue-band .player-speed--row { gap: 4px; order: 1; }
  .cue-band .player-toggle, .cue-band .player-rate, .cue-band .toggle, .cue-band .player-attach-open, .cue-head .player-follow-along { position: relative; }
  .cue-band .player-toggle::before, .cue-band .player-rate::before, .cue-band .toggle::before, .cue-band .player-attach-open::before, .cue-band .player-scrub--house::before, .cue-head .player-follow-along::before,
  .cue-band .player-toggle::after, .cue-band .player-rate::after, .cue-band .toggle::after, .cue-band .player-attach-open::after, .cue-band .player-scrub--house::after, .cue-head .player-follow-along::after { content: ''; position: absolute; left: 0; right: 0; }
  .cue-band .player-toggle::before, .cue-band .player-rate::before, .cue-band .toggle::before, .cue-band .player-attach-open::before, .cue-band .player-scrub--house::before, .cue-head .player-follow-along::before { bottom: 100%; }
  .cue-band .player-toggle::after, .cue-band .player-rate::after, .cue-band .toggle::after, .cue-band .player-attach-open::after, .cue-band .player-scrub--house::after, .cue-head .player-follow-along::after { top: 100%; }
  .cue-band .player-toggle::before, .cue-band .toggle::before { height: 18px; }
  .cue-band .player-toggle::after, .cue-band .toggle::after { height: 7px; }
  .cue-band .player-scrub--house::before { height: 20.75px; }
  .cue-band .player-scrub--house::after { height: 9.75px; }
  .cue-band .player-rate::before { height: 17.5px; }
  .cue-band .player-rate::after { height: 7.5px; }
  .cue-band .player-attach-open::before { height: 16.5px; }
  .cue-band .player-attach-open::after { height: 8px; }
  .cue-head .player-follow-along::before { height: 27.5px; }
  .cue-head .player-follow-along::after { height: 0.5px; }
  .cue-list { padding-bottom: 48px; }
  .cue { margin-bottom: 16px; }
  .cue-meta { font-size: 11px; }
  .cue-text { font-size: 13px; margin-top: 6px; }
  .cue-foot {
    margin-top: 0;
    padding-top: 14px;
    font-size: 11px;
  }
  .m-preview .disclaimer { margin-top: 14px; padding-top: 0; }

  .working-headline { font-size: 32px; }
  .working-line { font-size: 15px; }
  .dl-rows.dl-rows--stage { margin-top: 24px; }
  .done-line, .done-twice { font-size: 14px; }
  .side--working { padding-top: 0; }
  .side-heading { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ---- The foot: the legal row (Privacy · Terms · Refunds · Contact, T11) and the site index row
   (the pages wave, step B5) ----
   One block in the flow at the end of every page, after the disclaimer (the landing) or the
   Questions line (the document pages), pushed to the window's bottom edge by that line's auto
   margin when the page is shorter than the window; on a screen with no such line (done, working,
   refunded, links) the legal row pins the foot itself. Desktop: the legal row shares the
   disclaimer's last line, right-aligned inside the content block so the last link ends on the
   same edge as the header meta and the side column (r4 item 1), and the index row runs under both
   from the left edge, one line at 1200 and up, two from the collapse to about 1200. Desktop
   preview: the legal row alone, a row under the inline disclaimer in the checkout column, because
   the caption card owns the bottom-left there. Below the collapse every row is a static
   left-aligned row under the one before it. Mobile: the same, under the disclaimer. */

.footer-links {
  font-size: 12px;
  line-height: 1.5;
  color: var(--link-quiet);
  white-space: nowrap;
}
/* The page-level legal row. Pulled up one line, its own line height, onto the disclaimer's (or the
   Questions line's) last line, so the two share a baseline whatever the line above wraps to; the
   row's box is only as wide as its links, so the text beside it stays selectable. */
.page > .footer-links {
  margin-top: auto;
  padding-top: 18px;
  align-self: flex-end;
  margin-right: max(0px, calc(100% - var(--content-max)));
  text-align: right;
}
.page > .disclaimer + .footer-links,
.page > .doc-foot + .footer-links {
  margin-top: -18px;
  padding-top: 0;
}
/* Each link is a 44-tall tap target (padding against a matching negative margin, so the row's
   line box does not move) and the dots keep the four apart (fix spec item 10). */
.footer-links .link {
  display: inline-block;
  padding: 15px 4px;
  margin: -15px -4px;
  color: var(--link-quiet);
}
.footer-links .link:hover, .footer-links .link:focus-visible { color: var(--caption); }
.footer-links .dot { color: var(--link-quiet); padding: 0 8px; }
/* The checkout column is a flex column with a 28px gap; this leaves 12px under the disclaimer. */
.side--checkout .footer-links {
  margin-top: -16px;
  text-align: left;
}

/* The site index row: every entry and tool page by short title from the one table, a wrapping
   flex row whose items are a title with the dot before it (every item but the first). The dot is
   set in the row's column gap, to the item's left, and the row clips sideways at its own edges:
   an item that begins a line has its dot outside the row's left edge, clipped, so a wrapped line
   neither begins nor ends with a separator (the Android review, 20 Oct 2026: every wrapped line
   ended in a dangling dot). The clip is horizontal only, so the links' strips under their lines
   still reach the row gap. The row's 32px line and its 12px row gap put two links on adjacent
   lines 44px apart, which is the tap target each link fills out below (the rule under this one).
   Each link keeps 4px of horizontal padding, and the row starts 4px left so the first title sits
   on the disclaimer's edge. The current page's title is a span, unlinked, in the same grey
   without the underline. The 16px above the row is not decoration: the legal row's links make
   their own 44 by bleeding 15px below their line box, so a smaller gap would leave the two rows'
   tap targets overlapping and a tap in the overlap would open the wrong page. 12px did, by 3px. */
.footer-index {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 12px;
  /* The dot's room: its three characters and its 4px each side, as the separator stood inline. */
  column-gap: calc(3ch + 8px);
  overflow-x: clip;
  margin: 16px 0 0 -4px;
  max-width: var(--content-max);
  font-size: 12px;
  line-height: 32px;
  color: var(--link-quiet);
}
.footer-index-item { position: relative; white-space: nowrap; }
/* Each title is a 44-tall tap target like the legal row's links, but the padding is all under the
   text, not split around it: the box is the row's own 32px line plus the 12px row gap below it, so
   two links on adjacent wrapped lines abut exactly and neither takes the other's edge. It never
   reaches up into the gap above, because the legal row's own links bleed 15px down into it (their
   44 comes from padding against a -15px margin) and a box that reached up would take 9px of theirs.
   The negative bottom margin keeps the line box and the row's height where they were; the page is
   4px taller than before the targets, which is the gap above the row paying for the legal row's
   bleed. The horizontal 4px is unchanged. */
.footer-index .link, .footer-index-current {
  display: inline-block;
  padding: 0 4px 12px;
  margin: 0 0 -12px;
  color: var(--link-quiet);
}
.footer-index .link:hover, .footer-index .link:focus-visible { color: var(--caption); }
.footer-index .dot { position: absolute; right: 100%; width: calc(3ch + 8px); text-align: center; color: var(--link-quiet); }

/* The collapse line again (the same breakpoint as above; after the base rules so it wins). */
@media (max-width: 1079px) {
  .page > .footer-links,
  .page > .disclaimer + .footer-links,
  .page > .doc-foot + .footer-links {
    margin-top: 10px;
    padding-top: 0;
    align-self: auto;
    margin-right: 0;
    text-align: left;
  }
  .footer-index { max-width: 680px; }
}

@media (max-width: 480px) {
  .footer-links { font-size: 11px; }
  .page > .footer-links,
  .page > .disclaimer + .footer-links,
  .page > .doc-foot + .footer-links { margin-top: 12px; }
  .m-preview .footer-links { margin-top: 10px; flex-shrink: 0; }
  /* 11 on the phone, as the legal row above it is. */
  .footer-index { font-size: 11px; }
}

/* ---- Server-rendered document pages (src/web/pageShell.ts): the legal placeholders, the download page ---- */

.doc-body { min-height: 100dvh; }
.doc-wordmark {
  color: var(--text);
  text-decoration: none;
}
.doc-wordmark:hover, .doc-wordmark:focus-visible { color: var(--caption); outline: none; }
.doc-back { color: var(--muted); }
.doc-back:hover, .doc-back:focus-visible { color: var(--caption); }
.doc-column {
  margin-top: 72px;
  max-width: 640px;
}
.doc-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  margin-top: 6px;
  word-break: break-word;
  text-wrap: pretty;
}
.doc-paragraph {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.5; /* body16 in tokens.json */
  color: var(--text-2);
  text-wrap: pretty;
}
/* A legal document (src/web/legalBody.ts): the Last updated line, then the document itself, whose
   tags carry no classes of their own because two of the three are imported fragments
   (`npm run legal:import`). Everything below is scoped to .doc-legal, so the download page and
   /help/audio keep their own .doc-paragraph rules untouched.

   These pages are read rather than skimmed. The body stays on the tokens (body16 on desktop,
   body15 narrower, the same as every other paragraph in the product) and the reading comes from the
   640 measure, the space between sections and the colour: cream headings over the secondary grey
   body, the pair the trust block uses. The section label is mono and small rather than large,
   because that is how this design marks a section everywhere else. No yellow: nothing here makes a
   claim, and yellow announces. */

.doc-updated {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.doc-legal {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.5; /* body16 in tokens.json */
  color: var(--text-2);
  text-wrap: pretty;
}
.doc-legal > :first-child { margin-top: 0; }
.doc-legal p { margin: 16px 0 0; }
.doc-legal h2, .doc-legal h3, .doc-legal h4 {
  margin: 40px 0 0;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.4;
  color: var(--text);
  /* A Termly heading is already upper case; one from Word may not be, and both should read alike. */
  text-transform: uppercase;
}
.doc-legal h2 { font-size: 13px; }
.doc-legal h3, .doc-legal h4 { font-size: 12px; color: var(--text-2); margin-top: 28px; }
.doc-legal h2 + p, .doc-legal h3 + p, .doc-legal h4 + p,
.doc-legal h2 + ul, .doc-legal h2 + ol { margin-top: 14px; }
.doc-legal ul, .doc-legal ol { margin: 16px 0 0; padding-left: 22px; }
.doc-legal li { margin-top: 10px; }
.doc-legal li::marker { color: var(--dim); }
.doc-legal li > ul, .doc-legal li > ol { margin-top: 10px; }
.doc-legal strong { color: var(--text); font-weight: 600; }
.doc-legal a { color: var(--link-quiet); }
.doc-legal a:hover, .doc-legal a:focus-visible { color: var(--caption); }
.doc-legal blockquote {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
/* A policy's data table (round 9, item 8: counsel's four tables, Part 4 and Part 6). On the desktop
   a table with the column widths the browser gives it, inside the 640 measure; its first row is the
   header (tools/legal/sanitize.ts promotes counsel's bold row). On a phone (the 640 cut, where three
   columns of policy prose no longer fit) the table stacks: the header row goes, each row is a block
   with a rule under it, and each cell prints its column's heading before its value from the
   data-label the import wrote on it, so the page reads at 375 with no sideways scroll, which Part 5
   of the policy itself promises of the site. */
.doc-legal table {
  width: 100%;
  margin: 20px 0 0;
  border-collapse: collapse;
  font-size: 14px;
}
.doc-legal th, .doc-legal td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.doc-legal th { color: var(--text); font-weight: 600; }
.doc-legal td p, .doc-legal th p { margin: 0; }
.doc-legal td p + p { margin-top: 8px; }

@media (max-width: 640px) {
  .doc-legal table, .doc-legal tbody, .doc-legal tr, .doc-legal td { display: block; width: 100%; }
  .doc-legal thead { display: none; }
  .doc-legal tr { border: 1px solid var(--line); border-top: 0; padding: 4px 0 10px; }
  .doc-legal tbody tr:first-child { border-top: 1px solid var(--line); }
  .doc-legal td { border: 0; padding: 8px 12px 0; }
  .doc-legal td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .doc-legal td:not([data-label])::before { content: none; }
}

/* Printing /legal gives the policy and nothing else (Part 1 §2.3: the Terms can be saved or printed):
   the header, the two footer rows and the Questions line go, the dark page becomes black on white,
   the links keep their words, and a part's heading never sits alone at a page's foot. */
@media print {
  body.doc-body, .doc-body .page { background: #fff; color: #000; min-height: 0; }
  .doc-body .topbar, .doc-body .doc-foot, .doc-body .footer-links, .doc-body .footer-index { display: none; }
  .doc-body .doc { padding: 0; }
  .doc-body .doc-column { margin-top: 0; max-width: none; }
  .doc-body .doc-title, .doc-body .eyebrow-sm, .doc-body .doc-updated,
  .doc-body .doc-legal, .doc-body .doc-legal h2, .doc-body .doc-legal h3, .doc-body .doc-legal h4,
  .doc-body .doc-legal strong, .doc-body .doc-legal th, .doc-body .doc-legal a { color: #000; }
  .doc-body .doc-legal th, .doc-body .doc-legal td, .doc-body .doc-legal tr { border-color: #999; }
  .doc-body .doc-legal td::before { color: #444; }
  .doc-body .doc-legal h2 { break-after: avoid; page-break-after: avoid; }
  .doc-body .doc-legal tr, .doc-body .doc-legal li { break-inside: avoid; }
}

/* The Questions line: the document page's own last line, where the landing has its disclaimer,
   pinning the foot the same way (the .page rules); the legal row (src/web/pageShell.ts
   renderLegalLinks) shares its line at the right on the desktop and follows it below the
   collapse, and the index row runs under both. */
.doc-foot {
  margin-top: auto;
  padding-top: 40px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
}

@media (max-width: 1079px) {
  .doc { padding: 20px; }
  .doc-column { margin-top: 48px; }
  .doc-title { font-size: 30px; }
  .doc-paragraph { margin-top: 20px; font-size: 15px; line-height: 1.55; } /* body15 */
  .tool-faq { margin-top: 24px; }
  /* The entry pages' body stays on body16 at every width, so only the tool pages' questions step down with the document column. */
  .tool-faq-q, .tool-faq-a { font-size: 15px; line-height: 1.55; } /* body15 */
  .doc-legal { margin-top: 20px; font-size: 15px; line-height: 1.55; } /* body15 */
  .doc-legal h2, .doc-legal h3, .doc-legal h4 { margin-top: 32px; }
  .doc-legal ul, .doc-legal ol { padding-left: 20px; }
}

/* ---- Contact form (src/web/routes/contact.ts, the privacy-policy remediation) ----
   The one form in the product a visitor types into before there is a job. Same 640 column and the
   same one cream button as everywhere else; the fields are the near-black screen colour with the
   page's border, and the focused edge is the yellow, as it is in the caption editor. No new
   colour, no new radius, no second loud element. */

.contact-form {
  margin-top: 32px;
  max-width: 480px;
}
.form-label {
  display: block;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--dim);
}
.form-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--screen);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}
.form-input:focus-visible {
  outline: none;
  border-color: var(--caption);
}
.form-input::placeholder { color: var(--dim); }
/* The native menu paints in the OS palette; the page declares dark so the list matches the field. */
.form-select { color-scheme: dark; height: 48px; padding: 0 12px; }
.form-textarea { resize: vertical; min-height: 160px; font-size: 15px; }
.form-hint {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
/* A refusal, above the fields, announced. The yellow, because it is the one colour that makes a
   claim on this page, not a red the product does not use anywhere. */
.form-error {
  margin-top: 24px;
  padding: 12px 14px;
  border-left: 2px solid var(--caption);
  background: var(--surface);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
/* The report of illegal content (round 9, item 5): the stylesheet reads the reason select, since
   the page runs no script of ours. With "Report illegal content" chosen the report's own fields
   show, the message's label reads as the report's "why", and the email reads as optional with its
   own hint; otherwise the report block and its labels are out of the way. A browser without :has()
   shows the report block for every reason, which costs nothing but space. */
.report-fields, .form-label--report-why, .form-hint--report, .form-optional--report { display: none; }
.contact-form:has(#contact-reason option[value="illegal_content"]:checked) .report-fields { display: block; }
.contact-form:has(#contact-reason option[value="illegal_content"]:checked) .form-label--report-why,
.contact-form:has(#contact-reason option[value="illegal_content"]:checked) .form-hint--report { display: block; }
.contact-form:has(#contact-reason option[value="illegal_content"]:checked) .form-optional--report { display: inline; }
.contact-form:has(#contact-reason option[value="illegal_content"]:checked) .form-label--message,
.contact-form:has(#contact-reason option[value="illegal_content"]:checked) .form-hint--plain { display: none; }
.form-good-faith { margin-top: 20px; }
.form-good-faith .consent-text { font-size: 15px; }
.report-fields > .form-hint { margin-top: 8px; }
/* Cloudflare's widget draws itself; this is only the space around it. */
.form-check { margin-top: 28px; min-height: 0; }
/* The Choose file treatment: 48 tall, cream, sized to its label, left on the column's edge. */
.form-submit {
  width: auto;
  min-width: 200px;
  height: 48px;
  margin-top: 28px;
  padding: 0 32px;
  font-size: 16px;
  display: inline-flex;
}

@media (max-width: 480px) {
  .contact-form { max-width: none; }
  .form-input { font-size: 16px; } /* 16 or iOS zooms the page on focus. */
  .form-submit { width: 100%; }
}

/* ---- Free tool pages (src/web/tools.ts, src/client/tools/): the converters and the shifter ----
   The one loud element on a tool page is its drop control, the landing stage's treatment in the
   680 column: the near-black screen, the same SVG dashed edge (yellow on hover and drag-over),
   the one cream Choose file button. Under it the privacy line, the shifter's offset field (under
   the zone, not over it: the file first, then how far it is off, the layout review's polish
   item) in the contact form's field treatment, mono for the figure and without the browser's
   spinner, then the status line, then the output block in the download row's register with the
   first cues in the sample-cue register, then the copy. Once the tool holds a file the zone says
   so (review item 2.4): the file's name in mono where the lead was, the cream button gone and a
   quiet "Choose a different file" in its place, so a short viewport whose result sits below the
   fold still shows that the drop landed. */

.tool { margin-top: 32px; }
.tool-offset-row { margin-top: 24px; }
/* The offset is a duration, so it is set in the mono with tabular figures like every other one on
   the site (the design rules): .form-input names the body face after .mono in the sheet, so the
   `mono` class the field carries lost, and the figure was typed in Karla. */
.tool-offset { max-width: 200px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
/* The number field's spinner arrows read as a control to press and step by a tenth; the field is
   typed into, and the hint line under it says which way is which. */
.tool-offset::-webkit-inner-spin-button, .tool-offset::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tool-drop {
  --dash: var(--border);
  position: relative;
  padding: 28px 32px 32px;
  background: var(--screen);
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
  transition: background var(--slow) ease;
}
.tool-drop.is-hover {
  --dash: var(--caption);
  background: var(--cue-hover);
}
.tool-drop-lead {
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}
/* The held file's name, a figure in the cream, on the lead's line; a long name wraps inside the
   zone rather than widening it. The change control is the quiet link in the register the
   editor's header uses, standing in the cream button's slot with the button's own top gap and a
   48px line box, so the zone is the same box whether it holds a file or not (measured: 153px
   both ways at 1440, 139 both ways at 400) and nothing under it moves when the drop lands. */
.tool-drop-name { color: var(--text); overflow-wrap: anywhere; }
/* The .btn rules set the button's display, which would win over the hidden attribute's, so the
   held state names the button it hides; the change control is hidden the same way when the zone
   holds nothing again. */
.tool-drop[data-loaded] .btn--choose { display: none; }
.tool-drop-change[hidden] { display: none; }
.tool-drop-change {
  margin: 18px 0 0;
  padding: 0;
  height: 48px;
  font-size: 15px;
  color: var(--text-2);
}
.tool-drop-change:hover, .tool-drop-change:focus-visible { color: var(--caption); }
/* The live region stays in flow when empty, so an announcement never comes from an element that
   was display: none a moment before; only its space goes. The node itself stays too: the
   converter and the shifter write into it (src/client/tools/control.ts) and the standalone
   editor's render moves it into the new control and writes the sentence after the replace
   (src/client/render.ts toolStatusLine), since a region that arrives with its text already inside
   it is generally not announced. */
.tool-status {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  text-wrap: pretty;
}
.tool-status:empty { margin-top: 0; }
.tool-output { margin-top: 20px; }
.tool-output .dl-row { border-top: 1px solid var(--line-soft); }
.tool-preview { margin-top: 20px; }
.tool-warnings {
  margin: 16px 0 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.tool-warnings li { margin-top: 6px; }
.tool-warnings li::marker { color: var(--dim); }
.tool-privacy {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
/* The agreement line (round 9, item 2): under the control, in the privacy line's register, its
   link in the text colour so the two read as one note under the zone. Served outside the control,
   so it stands in the same place whether the zone is at rest or the panel is up; below the
   collapse, where the column is reordered, it keeps the control's own order (the two rules below). */
.tool-terms {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.tool-terms .link { color: var(--text-2); }
.tool-terms .link:hover, .tool-terms .link:focus-visible { color: var(--caption); }
/* Once a file is held the agreement has happened and the working layout owns the column (its
   first paragraph stands directly under the tool, which the Chrome tests pin), so the line goes. */
.tool-main:has(.tool[data-working]) > .tool-terms { display: none; }
/* The before and after block: two cues in the card register, side by side where the column has
   the room and stacked on the phone; a long timing line scrolls inside its box, never the page. */
.tool-example {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* A grid item's min-width is auto, so without this the track grows to the widest line of the
   sample instead of letting the <pre> below scroll, and the whole document scrolls sideways with
   it: measured 20px over at 600 wide, where the two columns still stand and the gutter is gone. */
.tool-example-half { min-width: 0; }
.tool-example-code {
  margin: 8px 0 0;
  padding: 16px 18px;
  background: var(--screen);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre;
  overflow-x: auto;
}

/* The tool page's two columns (the layout order, section 2): the same grid as the landing's, the
   tool's column capped at 680 so the standalone editor's card is the width of the paid one, the
   right column flexible from 280, and the article widened to the content block for it (the
   document pages keep their 640 column). The left holds the control and the copy a visitor needs
   to use it (ToolPageCopy.paragraphs); the right holds the deeper explanation
   (ToolPageCopy.aside), top-aligned with the control's box (the shifter player and corrections
   order, section B). Both are placed on the one row explicitly, so the document order (the left
   column first, since a crawler should read the intro before the detail) does not decide the grid. */
body[data-tool] .doc-column { max-width: var(--content-max); }
.tool-grid {
  /* The two tracks, named because the working layout's instrument row (further below) is a grid
     of its own across both and has to resolve to the same two columns. */
  --tool-columns: minmax(0, 680px) minmax(280px, 1fr);
  display: grid;
  grid-template-columns: var(--tool-columns);
  column-gap: var(--landing-gap);
  align-items: start;
}
.tool-grid > .tool-main { grid-column: 1; grid-row: 1; min-width: 0; }
.tool-grid > .tool-aside { grid-column: 2; grid-row: 1; min-width: 0; }
.tool-aside > :first-child { margin-top: 32px; }
/* The done page's editor stands in this same wrapper while it is open (the round-5 one-editor
   build; the rules after the demo editor's), capped to the content block as the landing grid is.
   Between 1080 and 1199 the wrapper keeps its grid (the band below is the two tool pages' own,
   for their prose) and the instrument stands in the grid's first track, the stage's 680, laid
   out in one column by its own rules; below the collapse the wrapper is a flex column under the
   page's 680 cap (.page > *, which this rule would outrank below the collapse, so it is written
   for the collapse up). Measured at 1100x800: the instrument 680 wide at 36.6 (the one-editor
   build); at 1079x801 without the media query it stood 999 wide. */
@media (min-width: 1080px) {
  body[data-stage="done"] .tool-grid { max-width: var(--content-max); }
}
/* Below the collapse one column in the page's own order, the control first: the two containers
   give up their boxes (display: contents) and their children are laid out by the grid's box as a
   flex column in the order the leaves carry, so the served markup is the same tree in both
   layouts and nothing is rendered twice. The order (the shifter player and corrections order,
   section B): the control (and the editor's root and host, and the noscript line beside it), then
   the left column's paragraphs (the intro, when to use it, the link), then the right column's
   (the deeper explanation), then the example, the cross-link and the questions. A right-column
   paragraph following a left one keeps the paragraph's own top margin, so the rhythm is one
   column's. The leaves are stretched to the column: the grid's align-items: start would otherwise
   survive into the flex column and size each leaf to its own content, and the editor's card, whose
   header has a min-content width of about 550 (the toolbar's controls do not break), then stood
   wider than the column from 572 down and the page scrolled sideways with the cues cut off (the
   layout review's verification, 23 Sep 2026). Stretched, the card is the column's width and the
   header wraps inside it, as it did when the root was a plain block child of the article. */
@media (max-width: 1079px) {
  body[data-tool] .doc-column { max-width: 680px; }
  .tool-grid { display: flex; flex-direction: column; align-items: stretch; }
  .tool-grid > .tool-main, .tool-grid > .tool-aside { display: contents; }
  .tool-main > * { order: 3; }
  .tool-aside > * { order: 2; }
  .tool-main > p.doc-paragraph:not(.tool-cross-link) { order: 1; }
  .tool-main > .tool, .tool-main > .tool-app, .tool-main > .turnstile, .tool-main > .tool-terms, .tool-main > noscript { order: 0; }
  /* The desktop rule above (the aside's first paragraph level with the control's box) outranks the
     phone paragraph margin by specificity; in the one column that paragraph follows the left
     column's last and keeps the paragraph's own 20px (the verification round measured 32). */
  .tool-aside > :first-child { margin-top: 20px; }
}
/* The subtitle shifter is one column below 1200, not 1080 (the shifter and editor order, 3 Oct
   2026, plan 4.6): between the two lines its right column is 280 to 377 wide, which set the
   reference prose at about six words a line and, with media, cramped the monitor's transport
   into three and four lines. So in that band the page's grid gives way exactly as it does below
   1079, in every state (no file, a caption file, media): the same rules as the block above,
   scoped to the page by the body's data-tool, with the article held to the 680 column. Only the
   grid moves. The page's padding, its type, the header's inline tools list and everything else
   that flips at the collapse keep the 1080 line here, and the converters, the standalone editor
   and every other page keep it for their grids too, so this is one page's exception and not a
   third breakpoint for the site. The paragraph is still the desktop's 28 in this band, so the
   aside's first one takes 28 where the block above gives it the phone's 20. A page that takes
   this layout adds its data-tool value beside the shifter's in these selectors: the standalone
   editor has (stage B3 of the same order), in every state as well, since its working layout is
   the shifter's and its transcript wants the 680 column whichever side of the line it is on.
   Its tool stands inside the app's root, beside the hidden Turnstile host, so those two are
   ordered with the tool as the block above orders them.

   The band is written as what it lies between and not as two numbers of its own: wider than
   the collapse line (not (max-width: 1079px), the very query the block above is written
   with) and narrower than the two columns (not (min-width: 1200px), the very query the working
   layout's two-column block is written with), one inside the other, since a query of this
   kind takes one "not". So it is true of every width neither of them is true of, to any
   fraction. A viewport is not always a whole number of CSS pixels wide: at 125% zoom a 1499px
   window is 1199.2 wide, and neither (max-width: 1199px), as this was written, nor
   (min-width: 1200px) is true of that. Measured before this (the verification of the order's
   first phase, 5 Oct 2026): at 1199.2 the page's grid stayed two columns with the tool a block
   in the first, the panel over the monitor, the editor's transcript unbounded in the page's
   flow (4,458px) with nothing following it, and through a real play the playing line was off
   screen in 46 of 56 samples; at 1079.2 the tools were one column inside a page grid still in
   two. The same gap opens at 110%, 150% and 175% and under a display's own scaling, and a
   dragged window passes through it. */
@media not all and (max-width: 1079px) {
@media not all and (min-width: 1200px) {
  body:is([data-tool="shifter"], [data-tool="editor"]) .doc-column { max-width: 680px; }
  body:is([data-tool="shifter"], [data-tool="editor"]) .tool-grid { display: flex; flex-direction: column; align-items: stretch; }
  body:is([data-tool="shifter"], [data-tool="editor"]) .tool-grid > .tool-main, body:is([data-tool="shifter"], [data-tool="editor"]) .tool-grid > .tool-aside { display: contents; }
  body:is([data-tool="shifter"], [data-tool="editor"]) .tool-main > * { order: 3; }
  body:is([data-tool="shifter"], [data-tool="editor"]) .tool-aside > * { order: 2; }
  body:is([data-tool="shifter"], [data-tool="editor"]) .tool-main > p.doc-paragraph:not(.tool-cross-link) { order: 1; }
  body:is([data-tool="shifter"], [data-tool="editor"]) .tool-main > .tool, body:is([data-tool="shifter"], [data-tool="editor"]) .tool-main > .tool-app, body:is([data-tool="shifter"], [data-tool="editor"]) .tool-main > .turnstile, body:is([data-tool="shifter"], [data-tool="editor"]) .tool-main > .tool-terms, body:is([data-tool="shifter"], [data-tool="editor"]) .tool-main > noscript { order: 0; }
  body:is([data-tool="shifter"], [data-tool="editor"]) .tool-aside > :first-child { margin-top: 28px; }
}
}

@media (max-width: 480px) {
  .tool-drop { padding: 24px 20px 24px; }
  .tool-drop-lead { font-size: 15px; }
  .tool-drop .btn--choose { width: 100%; }
  .tool-example { grid-template-columns: 1fr; }
}

/* ---- The subtitle shifter's player and marking zone (the shifter player and corrections order,
   24 Sep 2026, section C; the disclosure order, 25 Sep 2026; the marking zone since the
   consolidated rebuild's Phase 2, stage C2, 8 Oct 2026; src/client/tools/shifterPlayer.ts) ----
   Built by the bundle once a caption file is held; the served document has none of it. The
   media offer is two quiet lines in the "see a real example" register (13px in the muted grey,
   the question plain, the control on the next line on a 44px line box; the privacy claim that
   followed it is the FILES zone's own line since the shifter and editor order, plan 4.6): in
   the standalone editor's FILES zone, and on the subtitle shifter in CORRECTION under the
   typed shift (plan 2.1), where the opening line with Cancel beside it takes the control's
   line while a file opens, and the media file's row stands in FILES once it plays. The marking
   block (plan 2.2) leads CORRECTION with a recording: the two hint lines, the cream button
   naming the line it will act on, the list of marked lines, then the typed shift's box while
   fewer than two lines are marked, the status and Clear marks. The frame (the picture with our
   caption over it, or the caption alone as a strip for audio), the paid player's bar and the
   live cue list in the caption card's register (in the page's own flow in two columns, a box
   that scrolls inside itself in one; the follow-along keeps the playing row in view in either)
   are the monitor (the working layout, further below). The line the button will act on carries
   the editor's find current-match mark (data-find-current), never a style of its own. */

.tool-media-offer[hidden], .tool-media-line[hidden], .tool-media[hidden] { display: none; }
/* The offer apart from the file's row (the subtitle shifter): the lead on its line, the control
   on the next, the opening line in the control's place. A flex column, as the FILES section is,
   so the control's negative margins (its 44px of target over a 20.8 line) stay inside its line
   and never collapse through the block into the zone's gap under it (measured as a block: the
   status stood 8 under the offer, not 20). Each line is the one height, 20.8, so nothing moves
   between the three; the control is a block with its 12 and 12 taken back, where the editor's
   keeps 4 under the words as a row's action does under its name. The control's line only: Cancel
   carries the same class on the opening line, and as a block it made that line two. */
.tool-media-offer--apart { display: flex; flex-direction: column; }
.tool-media-offer--apart > p { margin: 0; }
.tool-media-offer--apart .tool-media-line .tool-media-open { display: block; margin: -12px 0; line-height: 1.6; }
.tool-media-offer {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
/* The line was a drop target of its own, its words a step brighter under a dragged file or the
   pointer; a dropped file is the whole panel's now (below), and the line is prose with one
   control in it. */
.tool-media-open {
  font-size: 13px;
  color: var(--text-2);
  padding: 12px 0;
  margin: -12px 0;
}
.tool-media-open:hover, .tool-media-open:focus-visible { color: var(--caption); }
.tool-media-notice { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.tool-media-notice:empty { display: none; }
/* The frame: the picture box holds the element the session mounts (a video shows, an audio is
   invisible), and the caption sits over the picture's foot for a video, as a strip of its own for
   audio, one element either way, so it follows the offset live and reads as text. */
.media-frame { position: relative; background: var(--screen); }
.media-picture { position: relative; }
.media-frame video {
  display: block;
  width: 100%;
  max-height: 420px;
  background: #000;
}
.media-frame[data-kind="audio"] .media-picture { display: none; }
.media-caption {
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1.45;
  color: var(--caption);
  text-align: center;
  text-wrap: balance;
}
.media-caption-line { display: block; white-space: pre-wrap; }
.media-frame[data-kind="video"] .media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 24px 18px;
  background: linear-gradient(to top, rgba(11, 11, 10, .88), rgba(11, 11, 10, 0));
  pointer-events: none;
}
.media-frame[data-kind="video"]:not([data-captioned]) .media-caption { display: none; }
/* At rest, before anything has played, the first cue stands in the stage dimmed (data-rest, the
   usability remediation item 9), so the surface shows what it is for; never the yellow, which is
   the live caption's. */
.media-frame[data-rest] .media-caption { color: var(--muted); }
.media-frame[data-kind="audio"] .media-caption {
  min-height: calc(17px * 1.45 * 2 + 36px);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.tool-player-bar {
  padding: 10px 16px;
  background: var(--screen);
  border-top: 1px solid var(--line-soft);
}
/* The transport's two choices in the house treatment (the usability remediation, item 10; the
   shifter and editor order, 3 Oct 2026, plan 4.4): Speed is a row of mono options, underlined
   like every action in the bar, the active one in the cream with no underline; and Repeat line
   is the house toggle (.toggle, with the standalone editor's rules further down: a button that
   says whether it is pressed, the 14px square with a 1px muted edge and an 8px yellow square in
   it when on). It was Loop cue, a real checkbox this sheet drew as that same square; the box
   looked the part and was still an input of type checkbox, the last of the native widgets the
   plan names in the tools' transport (the scrubber is the browser's own range input still),
   under a name that needed explaining. The paid editor's select and checkbox are the paid
   surfaces' own and untouched. */
/* Two lines as markup on the tool pages' monitor (round 5, stage H; review section 7;
   playerBarMarkup's rows: 2): the bar a column of two line elements 8px apart, the bar's own row
   gap, each line a wrapping row as the one-line bar is. The first holds Play, the scrubber and the
   readout, so the scrubber takes what that line leaves (it was 91px on the editor's 680 monitor,
   where everything stood on one line); the second the speeds and Repeat line, which wraps only on
   a phone narrower than 390, where it was the bar's third line before. On the shifter the wrap
   had already made these two lines at its narrower monitor; written down they hold at every
   width. The comment below is the one-line bar's history on the editor. */
.player-bar--rows { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.player-bar-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
/* One line at the 680 monitor: the bar wraps on the items' flex bases, and the scrubber's 120
   left the loop control 8px short of the line (measured: Play 39, the readout 86, the speed row
   271, Loop cue 82, four gaps of 14, and the scrubber's 120 make 654 in a 646 box); its basis is
   what gives, never the type, and it still grows to fill what the line leaves. Repeat line is 23
   wider than Loop cue was and the line still holds it, the scrubber at 91 where it was 114.
   Follow along sits on the list's head row, not here, so the bar is one line whether or not it shows. */
.tool-player-bar .player-scrub { flex-basis: 80px; }
.player-speed--row { display: inline-flex; align-items: baseline; gap: 10px; }
.player-bar .player-rate { color: var(--text-2); font-variant-numeric: tabular-nums; }
.player-bar .player-rate:hover, .player-bar .player-rate:focus-visible { color: var(--caption); }
.player-bar .player-rate[aria-pressed="true"], .player-bar .player-rate[aria-pressed="true"]:hover { color: var(--text); text-decoration: none; cursor: default; }
/* The pressed option under keyboard focus: its rule above outranks the focus colour and its
   underline is off, so without this a keyboard traversal of the bar lost the focus at one stop
   (the verification round). The ring is the one the scrubber and the loop box carry. */
.player-bar .player-rate[aria-pressed="true"]:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
/* The readout keeps the width of its widest form (H:MM:SS / H:MM:SS, 17 characters), so the
   bar does not reflow as the position passes 10:00 or 1:00:00: a two-hour file at an hour in
   read 1:01:40 / 2:00:00 and wrapped Loop cue onto a second line at every width (the
   verification round). With the width reserved, the line at 646px holds Play, the scrubber's
   basis, the readout, the six options and Loop cue with room to spare. */
.tool-player-bar .player-time { min-width: 17ch; }
/* The toggle never breaks its two words onto two lines, and never gives up width to the scrubber. */
.tool-player-bar .toggle { flex-shrink: 0; white-space: nowrap; }
/* The house scrubber, with the lines' ticks on it (the consolidated rebuild, Phase 2, stage C4;
   plan 2.6 and 4.4; src/client/player/scrubber.ts). It stands in the range input's own box, the
   bar's 14px, and takes its flex and its cursor from the .player-scrub rules above, so the bar is
   the same line it was: the ticks live inside those 14px and the head is the height it was. Four
   spans under one element with the slider role, drawn from the tokens with no radius:

   The track, 6px tall in the middle of the box, is the monitor's own ground inside the edge every
   control in the bar has, 1px of --muted (5.55:1 against the ground, the toggle's box; it was the
   --line-soft hairline, a decoration-grade edge, until the files walk's boundary check read it at
   two pixels under 1.5:1 and found the unplayed part with no boundary at all), and the played
   part fills it from the left in --cue-index, over the edge. The pair was chosen for what has to be read on it: a tick has to clear 3:1
   against the played bar and the unplayed one alike (plan 2.6), in one colour, and the brightest
   token that still leaves 3:1 to the cream (--text, L 0.79) and the yellow (--caption, L 0.66) is
   under L 0.19; --cue-index (L 0.144) is the one token that is, and reads 3.64:1 against the
   ground, so the played part is itself a state the eye can tell. The muted grey (L 0.25) left the
   cream at 2.84:1, and --dim (L 0.10) left itself at 2.9:1 against the ground.

   The ticks, one pixel wide and the track's lower half (rows 7 to 9 of the box, its edge row
   included), in the cream (4.34:1 on the played part, 15.9:1 on the ground). They were the
   track's whole height, and on a file dense enough to be thinned that put a cream column on every
   other pixel of the track, so the played and the unplayed parts averaged to one stripe and the
   bar no longer said how much had played (1.89:1 between the two runs on a 2,000-line file, read
   as a band; the fix round over stage C4). Half the track's height is the ticks' and the other
   half, rows 4 to 6, is the fill's own, which no tick touches, so the played part is a solid band
   against the unplayed one at any density (3.64:1, the token's own), and a tick is still 3:1 or
   better against the part it stands on. The playing line's tick and a marked line's are the
   transcript's two treatments, both the yellow (3.63:1 and 13.3:1), told apart by where they are
   drawn, as the rows' are: the playing one rises above the track and crosses it (the playing
   row's bar stands at the row's edge) and is two pixels wide, the marked one hangs under it (the
   word after the row's timecode), a line that is both does both. The thumb is a 3px cream bar the
   box's full height, over everything, so the playhead is the one mark that crosses the whole box.
   The ring under the keyboard's focus is the one every control in the bar carries
   (.player-scrub:focus-visible). */
.player-scrub--house {
  --at: 0%;
  position: relative;
  /* A drag along the bar is the control's, and a swipe up or down it is the page's: the slider's
     44px on the phone reach into the caption strip, where a finger scrolling the page under the
     stuck head lands, and with every touch the control's own (touch-action: none) a swipe that
     started 15px over the bar took the recording from 10 s to 64 s and scrolled nothing (the fix
     round over stage C4, measured at 390x844). The vertical pan is left to the browser, and the
     slider seeks on a finger only once it has gone along the bar, or lifted where it pressed
     (src/client/player/scrubber.ts). Nothing is selected by a drag. */
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.player-scrub--house:focus { outline: none; }
.player-scrub--house:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
.player-scrub-track, .player-scrub-played, .player-scrub-ticks, .player-scrub-thumb { position: absolute; display: block; pointer-events: none; }
.player-scrub-track { left: 0; right: 0; top: 4px; height: 6px; background: var(--screen); box-shadow: inset 0 0 0 1px var(--muted); }
.player-scrub-played { left: 0; top: 4px; height: 6px; width: var(--at); background: var(--cue-index); }
.player-scrub-ticks { inset: 0; }
.player-tick { position: absolute; top: 7px; width: 1px; height: 3px; background: var(--text); }
.player-tick[data-tick-marked] { height: 6px; background: var(--caption); }
.player-tick[data-tick-playing] { top: 1px; width: 2px; height: 9px; background: var(--caption); }
.player-tick[data-tick-playing][data-tick-marked] { height: 12px; }
.player-scrub-thumb { top: 0; height: 14px; width: 3px; left: var(--at); margin-left: -1px; background: var(--text); }
/* Under a forced-colours theme the bar is drawn from the system palette, in pairs the palette
   promises to contrast (the fix round over the Phase 2 verification; findings
   keyboard-a11y-pixels-1 and -2). The track keeps its edge: forced colours set every box-shadow to
   none on an element the theme adjusts, so the first block's ButtonText edge never applied and the
   unplayed part of the bar was not drawn at all (0 of 199 columns off the ground past the thumb,
   measured), where the native range it replaced showed its whole track; the track opts out and
   draws its ground and its edge itself. The played part is the fill's own rows only (rows 4 to 6,
   3px, where the theme's paint is the 6px track): an ordinary tick stood on the Highlight fill in
   CanvasText at 2.31:1, since no palette promises those two apart, and the ticks' rows, 7 to 9,
   are the Canvas ground on both parts now, so every tick reads against Canvas (21:1 here) whether
   its line has played or not, and the played part is still told as a band at Highlight against
   Canvas (9.1:1). The two marks that cross the fill's rows, the thumb and the playing tick, carry a
   pixel of the ground on each side (every tick does, one rule; it is to the sides only, since a
   spread would take the fill's bottom row over every tick), so where they cross the fill their
   boundary is Canvas and not the 2.31:1 of white on Highlight; on the ground the halo paints
   nothing. The treatments stay Highlight, told from an ordinary tick by colour as the yellow is
   from the cream, and by where they are drawn. Measured in
   src/client/tools/toolScrubber.chrome.test.ts. */
@media (forced-colors: active) {
  .player-scrub-track, .player-scrub-played, .player-tick, .player-scrub-thumb { forced-color-adjust: none; }
  .player-scrub-track { background: Canvas; box-shadow: inset 0 0 0 1px CanvasText; }
  .player-scrub-played { background: Highlight; height: 3px; }
  .player-tick { background: CanvasText; box-shadow: 1px 0 Canvas, -1px 0 Canvas; }
  .player-tick[data-tick-marked], .player-tick[data-tick-playing] { background: Highlight; }
  .player-scrub-thumb { background: CanvasText; box-shadow: 1px 0 Canvas, -1px 0 Canvas; }
}
/* ---- The panel (the disclosure order, 25 Sep 2026, sections A and C; src/client/tools/shifter.ts) ----
   Nothing of the tool is on the page until a caption file is parsed: the document is the drop
   zone, the privacy line and the prose, and the bundle keeps the panel out of the DOM until then.
   With a file held, the controls are one bordered surface of three zones divided by the hairline
   (the --line-soft rule the cue head and the transport draw), each under one mono label in the
   eyebrow treatment, and one spacing value, --tool-gap, between every element inside it, with no
   exception: the review measured six different gaps (12, 20, 24, 18, 16, 23) between the blocks
   and read them as controls floating around the screen. FILES: the caption file's row (the drop
   zone itself, collapsed), the media offer or the media file's row in its place, the privacy
   line, and the zone's status line, which takes no room while it says nothing. CORRECTION: the offset on one line with its label, its hint, the drift
   disclosure, the status line. DOWNLOAD: the output row, the zone absent until there is one. The
   two file rows share one grid (the kind, the name, the action at the right), so they align on
   one left edge and read as a pair. The disclosure's open block loses its own border and ground
   here: the panel's internal divisions are the hairlines, never a nested box. */
.tool-panel {
  border: 1px solid var(--line-soft);
  background: var(--screen);
  transition: border-color var(--fast);
}
/* One drop target (the shifter and editor order, 3 Oct 2026, plan 4.5; src/client/tools/fileDrop.ts).
   With a caption file held the whole panel takes a dropped file, of either kind, and while one
   is dragged over any part of it the panel's own edge is the yellow, all the way round: the one
   treatment, on the one box. It is what the served zone does under a dragged file, its dashed
   edge turning yellow, on the box the zone has become part of; nothing inside the panel lights
   with it, so the visitor is shown one target and not a row to aim at. (The caption file's row
   lit under a dragged file before, a ground 1.08:1 from the panel's on a line 21px tall, and the
   media offer's words a step brighter on theirs; nothing else on the page took a drop.) The
   edge is the hairline at rest, 1.18:1 against the page, and the yellow lit, 12.2:1 against the
   page outside it and 13.2:1 against the panel inside, read off the screenshot by the walk
   (src/client/tools/toolFiles.chrome.test.ts) once the transition has settled. */
.tool-panel.is-hover { border-color: var(--caption); }
/* 18 at the sides, not 20, since the disclosure order, where the media offer needed the 642 it
   leaves inside the 680 panel. The offer is shorter now (the shifter and editor order, 3 Oct
   2026, plan 4.6: the privacy claim that ended it is the zone's own line): 57 characters of
   Karla 13, 333px where it was 470, one line in this panel and in the standalone editor's down
   to its narrowest (340 inside at 1200 wide, where it had wrapped to two), so the line that
   says a file is opening takes its place on both pages, and here the media file's row after
   it, without the zone changing height. The padding stays, since nothing in the panel moves
   for a shorter sentence. The vertical rhythm is the one value throughout. */
.tool-zone { padding: var(--tool-gap) 18px; }
.tool-zone + .tool-zone { border-top: 1px solid var(--line-soft); }
.tool-zone[hidden] { display: none; }
.tool-panel .tool-zone > * + * { margin-top: var(--tool-gap); }
/* The live region keeps its place in the flow when empty, as it does under the zone at rest; only its space goes. */
.tool-panel .tool-zone > .tool-status:empty { margin-top: 0; }
/* The two file rows: the kind (68px holds "Captions" at mono 13), the name, the action at the right on a 44px line box. */
.tool-file-row,
.tool-panel .tool-drop {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.6;
}
.tool-file-kind { color: var(--muted); }
/* The caption file's row is the drop zone, in the panel: no box, no dashed edge, no padding. A
   click on it still opens the picker, and under the pointer it lights as a cue row does to say
   so. A dragged file is the panel's to light (above), never this row's. */
.tool-panel .tool-drop {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  /* The fill and the halo arrive together: the zone's transition names the background alone, and the halo snapping on around a still-transparent row read as a hollow ring for 350 ms (the verification round). */
  transition: background var(--slow) ease, box-shadow var(--slow) ease;
}
.tool-panel .tool-drop.is-hover { background: var(--cue-hover); box-shadow: 0 0 0 8px var(--cue-hover); }
.tool-panel .tool-drop .stage-dash { display: none; }
.tool-panel .tool-drop .tool-drop-lead { font-size: 13px; line-height: 1.6; margin: 0; }
/* Its 44px of target is 16 over its words and 8 under them, not 12 and 12: the row after it is
   one gap (20) down, and that row's own control (the offer's, Cancel, Remove) reaches 12 up, so
   two controls reaching 12 each met in the middle of the gap and overlapped by 4. On the
   subtitle shifter, where the two rows' actions stand one over the other at the right, the
   overlap was this control's, and Remove audio answered over 40px of its 44.8 (hit-tested down
   its middle at 390x844, the verification of the shifter and editor order's first phase, 5 Oct
   2026). Over this control is the zone's label or, on the editor, the file's own name, neither
   of which is another control. */
.tool-panel .tool-drop .tool-drop-change { margin: -16px 0 -8px; padding: 16px 0 8px; height: auto; font-size: 13px; line-height: 1.6; justify-self: end; }
.tool-media-row[hidden] { display: none; }
.tool-media-remove {
  font-size: 13px;
  color: var(--text-2);
  padding: 12px 0;
  margin: -12px 0;
  justify-self: end;
}
.tool-media-remove:hover, .tool-media-remove:focus-visible { color: var(--caption); }
/* The media section is one element of FILES holding the offer, the opening line and the file's
   row, of which one shows at a time (the failure line stands under the offer): a flex column with
   the gap, so a hidden one costs no space. */
.tool-media { display: flex; flex-direction: column; gap: var(--tool-gap); }
.tool-media > * { margin: 0; }
/* The offset on one line with its label and its unit, "Shift all lines by [ ] seconds" (the
   shifter and editor order, plan 2.1); the hint is the zone's next line at the one gap. The
   field and its unit are one piece, 8px apart, so where the row is too narrow for all three
   (a phone) it breaks after the label and never between the number and what it counts. */
.tool-panel .tool-offset-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
/* The box, its hint and the VLC line go while two or more lines are marked (plan 2.2), and the VLC line with a recording loaded. */
.tool-panel .tool-offset-row[hidden], .tool-panel .form-hint[hidden] { display: none; }
.tool-panel .tool-offset-row .form-label { margin: 0; }
.tool-panel .tool-offset { margin: 0; width: 120px; }
/* The shift field's boundary (the shifter and editor order, 3 Oct 2026, plan 4.6). Its edge was
   the form field's own, --border, which read 2.12:1 against the panel in the pixels Chrome
   painted, where the boundary of a control needs 3:1 (WCAG 2, 1.4.11). It is the muted grey now,
   the one the find control's frame and the toggle's box are drawn in: 5.55:1, at rest and under
   the pointer. Scoped to the panel, since .form-input is the contact form's as well and that
   page is not this order's. Under the focus the edge is the yellow as it was, 13.2:1, which has
   to be said again here because this rule comes after the form field's and weighs the same.
   The field is never off now (stage C2: one mark fills it and two hide it), so no disabled
   edge is drawn for it. */
.tool-panel .tool-offset { border-color: var(--muted); }
.tool-panel .tool-offset:focus-visible { border-color: var(--caption); }
.tool-offset-value { display: inline-flex; align-items: center; gap: 8px; }
.tool-panel .form-hint { margin-top: var(--tool-gap); }
/* The output row in DOWNLOAD: the zone's hairlines and the panel's border frame it, so the row draws none of its own and no padding above or below; the hover indent stays. */
.tool-panel .tool-output .dl-row { border-top: 0; border-bottom: 0; padding-top: 0; padding-bottom: 0; }
.tool-panel .tool-preview { margin-top: var(--tool-gap); }
.tool-panel .tool-warnings { margin: var(--tool-gap) 0 0; }
/* The marking block (plan 2.2): the two hint lines in the hint's register, on two lines. */
.tool-marks-hint { font-size: 13px; line-height: 1.6; color: var(--muted); white-space: pre-line; }
.tool-marks-hint[hidden] { display: none; }
/* The button that marks a line is the loud control: Choose file's own cream, sized to its label
   (the .btn rules make a button the width of its box, which in the panel read as a bar across
   it). Off (no line has started yet, so there is nothing to name) it is drawn as off: no fill,
   the quieter edge, the muted words, and no lift under the pointer, since a button that does
   nothing when pressed must not light up as if it would. */
.tool-mark { height: 48px; font-size: 16px; width: auto; min-width: 200px; padding: 0 24px; align-self: flex-start; }
/* Under the pointer it goes white as Choose file does, and does not lift: the hero's 2px lift inside a panel of 20px gaps read as the zone shifting, and a box read mid-lift is a box that moved (the walks measure the gaps and the fill with the pointer on it). */
.tool-mark:hover { transform: none; }
.tool-mark[hidden] { display: none; }
.tool-mark:disabled, .tool-mark:disabled:hover { background: transparent; color: var(--muted); border: 1px solid var(--border); transform: none; }
/* The line under the button for a press past the cap; empty, it takes no room. */
.tool-marks-message { font-size: 13px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.tool-marks-message:empty { display: none; }
/* The list of marked lines under its label: "Line 5", the moment with its tenths, "not used"
   where the engine set the mark aside, and the control that removes it, on one line each in the
   mono at 13, the rows 8px apart (content inside one element of the zone, not a gap between
   two). The control is in the register of the caption row's "Choose a different file". */
.tool-marks[hidden] { display: none; }
.tool-marks .tool-marks-label { margin: 0 0 8px; }
.tool-marks-list { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.6; color: var(--text); }
.tool-mark-row { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; }
.tool-mark-row + .tool-mark-row { margin-top: 8px; }
.tool-mark-line { min-width: 68px; }
.tool-mark-at { font-variant-numeric: tabular-nums; }
.tool-mark-unused { color: var(--muted); }
/* Each remove's target is its own row's: 4px over and under its line, half of the 8 between two
   rows, so two rows' targets meet and never cross (the phone pass, round 5, stage K). It was 12
   and 12 like Clear marks', and with rows 28.8 apart each row's box lay 16 into the next one's:
   the later row's, on top, took the bottom 4px of the earlier row's own word, so a press on
   "remove" beside line 2 removed the mark on line 4 (a real tap at 390x844, 1px over the bottom
   of line 2's word). On the phone the rows stand 44 apart and the target fills the pitch (the
   phone block). */
.tool-mark-remove { font-size: 13px; color: var(--text-2); padding: 4px 0; margin: -4px 0; }
.tool-clear-marks { font-size: 13px; color: var(--text-2); padding: 12px 0; margin: -12px 0; }
.tool-mark-remove:hover, .tool-mark-remove:focus-visible, .tool-clear-marks:hover, .tool-clear-marks:focus-visible { color: var(--caption); }
.tool-clear-marks { align-self: flex-start; }
.tool-clear-marks[hidden] { display: none; }
/* Two lines after a correction: the figures, then what to check (the spec, section 1.4). */
.tool-status { white-space: pre-line; }
/* The past-the-end hint's line (the consolidated rebuild, Phase 4; plan 2.4), after the status
   in CORRECTION, in the cap sentence's register: the one reading of the two durations the plan
   keeps, said softly. Empty, it takes no room and no gap, like the cap's line. */
.tool-past-end { font-size: 13px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.tool-past-end:empty { display: none; }
/* The handoff (plan 2.5), the panel's foot: a zone by class after DOWNLOAD with no label, so
   the hairline over it, its padding and the one gap between its line and the open offer are the
   zone rules above, and nothing here is a second copy of them. It stood inside DOWNLOAD first
   (stage E1) and went with the zone while there was nothing to download; the plan has it there
   the whole time a recording plays, under the download row when there is one (the fix round
   over the stage, 10 Oct 2026). The house disclosure as the drift disclosure was drawn (25 Sep
   2026): the line's control in the register of the caption row's "Choose a different file", a
   44px target made by its padding against a matching negative margin so the line is one line
   tall, in the text's own colour while open; the offer with the link in the house underline.
   The margins the zone rule does not set are zeroed, so the two paragraphs carry none of their
   own and the gap between them is the zone's alone. */
.tool-handoff { font-size: 13px; line-height: 1.6; }
.tool-handoff > * { margin: 0; }
.tool-handoff-toggle { font-size: 13px; color: var(--text-2); padding: 12px 0; margin: -12px 0; }
.tool-handoff-toggle:hover, .tool-handoff-toggle:focus-visible { color: var(--caption); }
.tool-handoff-toggle[aria-expanded="true"] { color: var(--text); }
.tool-handoff-offer { color: var(--text); text-wrap: pretty; }
.tool-handoff-offer[hidden] { display: none; }
/* The live cue list: the caption card's register, the playing row's highlight the player's own
   rule (.cue[data-playing]) with the bar in the yellow (below), the anchor target's mark from the
   editor's. */
.tool-cues { background: var(--screen); }
/* The row over the lines, the last line of the monitor's head: the count, and Follow along at its
   right (the usability remediation, item 10: in the transport it wrapped the bar to two lines
   whenever it showed). Its bottom hairline is the head's bottom edge, the line the transcript
   passes under. */
.tool-cues-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 28px;
  font-size: 13px;
  /* The control's own leading, on the row: with the count alone the row was 1.3px shorter than
     with the control beside it, and the row is part of a stuck head now, so the lines under it
     moved by that much each time following stopped and came back. */
  line-height: 1.6;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.tool-cues-head .player-follow-along { font-size: 13px; line-height: 1.6; color: var(--text-2); flex-shrink: 0; padding: 12px 0; margin: -12px 0; }
.tool-cues-head .player-follow-along:hover, .tool-cues-head .player-follow-along:focus-visible { color: var(--caption); }
.tool-cues-head .player-follow-along[hidden] { display: none; }
/* The list as a box that scrolls inside itself: its form in one column (below), where a
   transcript in the page's flow would put the panel under the whole file. In two columns the
   working layout takes the height and the overflow away and the window scrolls the rows. */
.tool-cues-list {
  position: relative; /* the rows' offset parent, as the editor's list is: a focused line is landed by its place in the list (landFocusedRow) */
  height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 28px 40px;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.tool-cues-list::-webkit-scrollbar { width: 8px; }
.tool-cues-list::-webkit-scrollbar-track { background: transparent; }
.tool-cues-list::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 4px; }
.tool-cues .cue-tc { cursor: pointer; }
.tool-cues .cue-tc:hover { color: var(--text); }
/* The scope sentence (the consolidated rebuild, Phase 2, stage C4; plan 2.7): the first thing in
   the shifter's list, over the rows, in the hint's register (12px muted mono) with the link to the
   editor in the bar's register, the yellow under the pointer and the keyboard's focus. It is in
   the list and not in the head because the head's height is spent (src/client/tools/shifterPlayer.ts
   has the figures); here it scrolls with the rows and costs no box its height. The 24 under it is
   the rows' own gap. */
.tool-scope { margin: 0 0 24px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.tool-scope-link { color: var(--text-2); }
.tool-scope-link:hover, .tool-scope-link:focus-visible { color: var(--caption); }
.tool-scope-link:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
/* A line is a button (the shifter and editor order, 3 Oct 2026, plan 4.3): a press on it plays
   from there, and it has to look and answer like something that can be pressed. It was a plain
   div under the default cursor whose only change under the pointer was the card's hover ground,
   1.08:1 against the panel in the pixels Chrome paints.

   Under the pointer: the pointer cursor, the hover ground with its 8px halo as before, and a
   frame around the halo, 1px in the muted grey the find control's frame and the toggle's box
   are drawn in (5.55:1 against the panel, where a state needs 3:1). An outline, so the browser
   snaps it to whole device pixels as it does a border (a 1px shadow ring is not snapped and
   reads as two half-lit lines wherever the row stands on a fraction of a pixel, which is every
   row at 1280 wide), and so it lays out nothing: no row moves when it comes or goes. Only where
   the pointer can hover: after a tap a phone leaves the last row touched in the hover state
   until the next tap, and a frame standing on a line the recording has since left would read
   as a state of the line.

   Under the keyboard's focus: the same ground, and the house ring in place of the frame.

   The frame is its own shape on purpose. The states a row can be in are told apart by where
   they are drawn as much as by their colour: the selected line's bar and the playing line's are
   at the row's left edge (below), the marked line's marker is its number and a word after its
   timecode, and the frame is the whole edge, so a hovered row differs from each of the others
   in pixels the others leave alone. Colour alone could not do it: four bars in the same three
   columns would each have to read 3:1 from the next, 1, 3, 9 and 27 to 1 against the panel,
   and nothing is 27. */
.tool-cues .cue { cursor: pointer; scroll-margin: var(--tool-gap) 0; }
.tool-cues .cue:focus { outline: none; }
.tool-cues .cue:focus-visible { background: var(--cue-hover); box-shadow: 0 0 0 8px var(--cue-hover); outline: 2px solid var(--caption); outline-offset: 8px; }
@media (hover: hover) {
  .tool-cues .cue:hover { outline: 1px solid var(--muted); outline-offset: 8px; }
  /* The ring outranks the frame on a row that has both the pointer and the keyboard's focus. */
  .tool-cues .cue:hover:focus-visible { outline: 2px solid var(--caption); }
}
/* A marked line (plan 4.3): the editor's edited treatment, its number in the yellow and the word
   after its timecode (.cue-edited, with "marked" for "edited"), for as long as the mark stands.
   Neither a bar nor a ground, so it is there whatever else the row is: playing, selected, under
   the pointer, or none of them. */
.tool-cues .cue.is-marked .cue-n { color: var(--caption); }
.tool-cues .cue-meta { align-items: baseline; }
/* The playing row on this list (section B of the disclosure order, 25 Sep 2026): the bar at its
   left edge is the house yellow, not the paid card's cream grey. Measured before the change, in
   the pixels Chrome painted: the paid rule's 3px --text-2 bar was 9.4:1 against the panel and the
   --cue-hover fill 1.08:1, so the state was a thin cream line the review's probe (border-left,
   ::before, the background) could not see, since the bar is an inset box-shadow. The yellow bar
   is 13.2:1 and is the one thing on the list that claims attention; the fill stays as the hover's.
   The walk measures the bar's pixels against the panel at samples across a play and holds them
   at 3:1 or better and above the cream bar's 9.4:1, so a bar under 3:1 (the fill alone, a clipped
   shadow) or the paid rule's cream cascading back in fails the test rather than passing on the
   attribute alone. The anchor target's mark (data-find-current, the editor's) sits beside it. */
.tool-cues .cue[data-playing] { box-shadow: 0 0 0 8px var(--cue-hover), inset 3px 0 0 var(--caption); }
.tool-cues .cue[data-find-current] { margin-left: -8px; padding-left: 8px; box-shadow: inset 2px 0 0 var(--muted); }
/* The selected line under the pointer or the keyboard's focus keeps its bar and takes the halo
   with the ground, so the frame or the ring stands around a filled block as on any other row.
   Before the playing rule of the same weight below, which a line that is both keeps. */
.tool-cues .cue[data-find-current]:hover, .tool-cues .cue[data-find-current]:focus-visible { box-shadow: 0 0 0 8px var(--cue-hover), inset 2px 0 0 var(--muted); }
.tool-cues .cue[data-find-current][data-playing] { box-shadow: 0 0 0 8px var(--cue-hover), inset 3px 0 0 var(--caption), inset 5px 0 0 var(--muted); }
/* ---- The working layout (the usability remediation, 24 Sep 2026, items 3 and 4; the disclosure
   order, 25 Sep 2026, sections D and E; the shifter and editor order, 3 Oct 2026, plan 4.1, 4.2
   and the stacking item of 4.6; src/client/player/monitor.ts, src/client/tools/shifterPlayer.ts) ----
   With media loaded the root carries data-working and holds the panel, then the monitor: a head
   (the PREVIEW label, the picture or the caption strip, the transport, the row over the lines)
   over a body (the lines). The plan measured the layout this replaces at 1512x717, a plain grid
   item with a 630px list inside it: no scroll position showed the controls and the end of the
   transcript together, and through a live play the spoken line went under the fold and stayed
   there. Now the head is stuck to the top of the viewport for as long as the monitor is on
   screen, the panel is stuck beside it, and the line being spoken is kept under the head by the
   player view (PageFollow), which measures its clearance from the head's bottom.

   Two columns, from 1200 up. One instrument row: the panel in the left column exactly where it
   was built (adding media is an addition, and nothing the visitor had found moves), the monitor
   in the right, level with it, its lines in the page's own flow with no height and no scroll of
   their own, so the window scrolls them. The prose comes after that row, the left column's
   leaves under the panel's row and the aside's paragraphs under the monitor, in the column each
   was in at rest: a stuck box only ever travels inside the row, which is a box of its own, so
   nothing is painted under or over one. One column below 1200: the head, stuck through the list
   and the panel both so the picture and the transport stay in view while the panel is operated,
   then the list as a box that scrolls inside itself (a transcript in the page's flow here would
   put the panel under the whole file), then the panel, then the prose.

   The monitor's border and ground are drawn by its two parts, the head's top and sides and the
   body's sides and bottom, the same 1px box as before in the same pixels. A box of its own would
   be the head's containing block, and in one column the head has to stay stuck past the body,
   through the panel, so there the monitor gives up its box and the head travels inside the
   tool's. The head carrying its own top edge is also what puts a hairline at the top of the
   viewport level with the stuck panel's. */
.tool {
  --tool-gap: 20px;
  /* Where the head and the panel stick: flush with the top of the viewport, one value for both.
     Any gap above a stuck head would show the transcript's lines passing through it. */
  --tool-stick: 0px;
  /* The floors under the head's half of the viewport (below, where they are reckoned): an audio
     head's and a video's. Named once, since the margins that bring a focused control out from
     under the head (further down) are reckoned from the same number. */
  --head-floor: 346px;
  --head-floor-video: 296px;
}
/* The head: at most half the viewport, so the lines keep the other half. Everything in it is as
   tall as it is but the picture, which gives up height (the player, the frame and the picture
   box are each a flex column whose one item may shrink, and a video's own box scales its picture
   inside itself, never cropping it). Measured: 258 for audio in the right column and 235 in the
   680 column, and for a 16:9 or a 9:16 clip 358.5 at 1512x717, 400 at 1280x800 and 1200x800,
   and 420.5 at 390x844, a 9:16 picture 186, 227 and 253 tall there. 320 is the floor under the
   half: with audio nothing in the head can shrink, and at 360 and 375 wide (a three-line
   transport) it is 280, so in a window under 640 tall an audio head may pass the half rather
   than spill over its own box (it does from 516 tall down in two columns, where it is 258). The
   small viewport unit where the browser has it, so a phone's toolbar sliding away does not
   resize the picture under the visitor's thumb.

   Those figures are the head before it carried its hint (the shifter and editor order, plan
   4.3: one line under the label saying what a press on a line does). The hint and the 8px over
   it are 26px that nothing in the head gives back, so every figure above is 26 more now (284
   for audio in the right column, 261 in the 680 column, 306 at 360 wide with three lines of
   transport) and both floors rose by the same 26, to 346 and 296: left where they were, the
   audio head at 360x640 would have gone from 6px under its ceiling with a four-line caption to
   20px over it, the caption's last line under the transport, and a video's picture at its floor
   from the 97px its two-line caption needs to 71. A floor is the head's own parts; they grew. */
.tool-monitor-head {
  position: sticky;
  top: var(--tool-stick);
  /* Over the rows that pass under it, whatever they come to paint with. */
  z-index: 2;
  display: flex;
  flex-direction: column;
  max-height: max(50vh, var(--head-floor));
  max-height: max(50svh, var(--head-floor));
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  background: var(--screen);
}
/* A video's head has a lower floor, because its picture can shrink where the audio strip cannot.
   Under the 320 it was 320 of a 600 window with either shape of clip (0.533; 0.516 at 1280x620,
   0.508 at 1200x630; the fix round over the sticky monitor, 4 Oct 2026), while its picture still
   had 147 to give. The floor is not zero: the caption is drawn over the picture's foot, a
   two-line caption is 95.3 tall with its gradient, and a picture shorter than that sends the
   caption up over the PREVIEW label (with no floor at 844x390 the picture is 45 and the caption
   stands 50 above it). 270 is the head's own parts where they are tallest on one line of
   transport (172.8 in two columns: the label, the transport, the row over the lines) and a
   picture of 97. So a video's head is half the window from 540 tall up (300 of 600, the picture
   127), and in a window shorter than that it is 270, about what an audio head is there. With
   the hint under the label those parts are 198.8 and the floor is 296, the picture at it the
   same 97; the head is half the window from 592 tall up. */
.tool-monitor-head:has(.media-frame[data-kind="video"]) {
  max-height: max(50vh, var(--head-floor-video));
  max-height: max(50svh, var(--head-floor-video));
}
/* An audio head has no ceiling of that kind. Nothing in it can shrink (there is no picture), so
   capped at the half it did not get shorter: its caption, the one part that grows, ran out of
   the frame and lay over the transport. Measured before this (the verification of the order's
   first phase, 5 Oct 2026), paused inside the cue: on the subtitle shifter in two columns at
   1280x720 a cue of three 42-character lines, the cue builder's widest, which wrap to six in
   the right column, ran 22.6px over the bar, and at 1200x600 36.6; on both pages at 360x640,
   37.3; a single line of 200 characters, 47 to 86. The caption answered at Play's middle and at
   the scrubber's, and a real click on Play left the recording paused. Before the head was
   stuck it was simply as tall as its caption, and it is again: the strip holds the caption
   whole and the lines under it give the room, as they do for a third line in a wider window.
   What bounds it is the window, less the clearance one line of the transcript needs (the
   follow-along's 80), so the transport never leaves the screen; a caption too long even for
   that (a file with a paragraph in one line) is the part that gives, cut at its end inside
   its own strip with its start in view, never drawn over anything. */
.tool-monitor-head:has(.media-frame[data-kind="audio"]) {
  max-height: calc(100vh - 80px);
  max-height: calc(100svh - 80px);
}
.tool-monitor-head > * { flex: none; }
/* The label's line, and the hint under it (plan 4.3). The label keeps its place and its size;
   beside it on the same line, the note the page writes while there is something to say about
   the lines as they stand (the subtitle shifter's "Times shown include your shift."), in the
   label's size without its capitals. On the label's line and not one of its own, so it comes
   and goes without the head changing height by a pixel: a line kept for it would cost a phone's
   head 18px it does not have, and a line that came with it would move every line of the
   transcript under the visitor's eyes at the keystroke. At 360 wide the two fit the line with
   16px to spare. The hint is 8px under the label, the distance at which a thing belongs to
   what is over it in this panel, in the muted 12px mono; the picture is one gap under the hint. */
.tool-monitor-title { display: flex; align-items: baseline; gap: 12px; padding: var(--tool-gap) 18px 0; line-height: 1.5; }
.tool-monitor-label { flex: none; }
.tool-monitor-note { min-width: 0; font-size: 12px; color: var(--text-2); }
.tool-monitor-hint { margin: 8px 0 0; padding: 0 18px; font-size: 12px; line-height: 1.5; color: var(--muted); }
/* A window too short to spare the hint its line: a phone on its side, 360 to 430 tall. There
   the head is taller than half the window whatever is done (an audio head is 258 of 360 in one
   column, with nothing in it that can shrink), the list has what is left, and the hint's 26px
   would be a quarter of that: at 640x360 a line landed 12px under the head by a find step stood
   2px past the fold with the hint in the head, where it had 24px to spare. So under 480 tall
   the hint is not shown and the two floors are the head's own parts without it, 320 and 270,
   which is the head as it stood before it had one. The one rule in the sheet that reads the
   window's height: every other head size here is a fraction of the viewport with a floor, and a
   line of text has no fraction. */
@media (max-height: 480px) {
  .tool { --head-floor: 320px; --head-floor-video: 270px; }
  .tool-monitor-hint { display: none; }
}
.tool-monitor-head > .tool-player { margin-top: var(--tool-gap); display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.tool-monitor-head .tool-player-bar { flex: none; }
.tool-monitor-head .media-frame { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.tool-monitor-head .media-picture { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
.tool-monitor-head .media-picture > video { flex: 0 1 auto; min-height: 0; }
.tool-monitor-head .media-caption { flex: none; }
/* The strip that gives when an audio head has reached the window's bound (above): down to the
   two lines it is never under, its lines from their first. Centred by its lines' own margins
   and not by the box, so that lines too many for the strip start at its top where a centred
   run would be cut at both ends. */
.tool-monitor-head .media-frame[data-kind="audio"] .media-caption { flex: 0 1 auto; overflow: hidden; justify-content: flex-start; }
.tool-monitor-head .media-frame[data-kind="audio"] .media-caption-line:first-child { margin-top: auto; }
.tool-monitor-head .media-frame[data-kind="audio"] .media-caption-line:last-child { margin-bottom: auto; }
/* The body closes the box the head opens; a monitor with no head yet (a page whose lines are on
   the page before any media) closes its own top. It is a stacking context of its own: a line's
   frame and its focus ring are outlines, and an outline is drawn at the top of the stacking
   context it belongs to, which without this is the page's, over the head stuck above the lines
   (CSS 2.1, appendix E, step 10; Chrome draws them under the head either way, and this holds
   the other reading to the same picture). */
.tool-monitor-body {
  border: 1px solid var(--line-soft);
  border-top: 0;
  background: var(--screen);
  isolation: isolate;
}
/* A line's timecode never breaks, and the word after it (the editor's "edited", the shifter's
   "marked") sits inside the meta line's own height, on both tool pages. The word arrives under
   the visitor's hand, and where the meta line had no room for it the timecode gave: at 360 wide
   a line with a three-digit number broke its timecode in two when the word arrived and the row
   grew 17.5px, every line after it moving down, and at 375 and 390 the 12px word's own leading
   made the 11px line 1.5px taller. Now the row is the same box with the word and without it,
   and a word the line has no room for runs a few pixels into the list's own padding. */
.tool-monitor .cue-tc { white-space: nowrap; }
.tool-monitor .cue-edited { flex: none; line-height: 1; white-space: nowrap; }
/* A line's field under the pointer, on the standalone editor (the shifter and editor order,
   plan 4.6, the sweep of both monitors): at rest a line is its words and no box, by the editor's
   design, and under the pointer it takes the edge that says it is a field. That edge was
   --line, 1.56:1 against the monitor's ground in the pixels; it is the muted grey here, 5.55:1,
   the frame a line of the subtitle shifter and a line's timecode take under the pointer. Only
   where the pointer can hover, as theirs are (after a tap a phone leaves the last line touched
   in the hover state), and never over the focused field's own edge, which is the yellow. The
   paid editor's and the demo's lines are not in a monitor and keep theirs. */
@media (hover: hover) {
  .tool-monitor .cue-edit:hover:not(:focus) { border-color: var(--muted); }
}
.tool-monitor-body:first-child { border-top: 1px solid var(--line-soft); }
@media (min-width: 1200px) {
  /* The left container gives up its box, so the tool and the left column's leaves are items of
     the page's grid; the aside keeps its box and its column. The tool is the instrument row: it
     takes the first row across both columns and lays its two surfaces out on the page's own two
     tracks, the panel in the first exactly where it stood at rest (the tool keeps its box and
     its 32 above, so nothing about the panel's place changes), the monitor in the second, level
     with it. The row is a box and not a pair of items in the page's grid for one reason: a stuck
     box has to stop where the row ends, and Chrome keeps a sticky grid item inside its grid
     container, not inside its grid area (measured at 1512x717: placed straight into the page's
     grid, the panel stayed stuck at the top of the viewport after the row had scrolled away and
     lay over the paragraphs under it). */
  .tool-grid:has(.tool[data-working]) > .tool-main { display: contents; }
  .tool-grid:has(.tool[data-working]) > .tool-main > * { grid-column: 1; min-width: 0; }
  /* The standalone editor's tool stands inside the app's root (src/web/tools.ts: the bundle
     replaces that root's children), so the root gives up its box as well and the tool is an item
     of the page's grid like the shifter's, with the same declarations. The root's own 32 above
     goes with its box and is the tool's here. */
  .tool-grid:has(.tool[data-working]) > .tool-main > .tool-app { display: contents; }
  .tool-grid:has(.tool[data-working]) > .tool-main > .tool-app > .tool { margin-top: 32px; }
  .tool-grid:has(.tool[data-working]) > .tool-main > .tool,
  .tool-grid:has(.tool[data-working]) > .tool-main > .tool-app > .tool {
    grid-column: 1 / -1;
    grid-row: 1;
    display: grid;
    grid-template-columns: var(--tool-columns);
    column-gap: var(--landing-gap);
    align-items: start;
  }
  /* The standalone editor's tracks are the other way round while a file is open: the panel in
     the flexible track, 386 to 520 wide, and the monitor in the 680 one. Its monitor holds the
     editable transcript, whose fields never soft-wrap (an authored line break is content, and a
     wrap would look like one), and the cue builder's widest line, 42 characters at mono 17, is
     428 wide before the field's padding: it fits the 680 column and is cut off in a flexible
     one, which is 386 at 1200. The prose under the row follows its column, so the page's left
     paragraphs are set in the narrower one while a file is open; at rest the page is as served,
     the drop control in the 680 track. Keyed on the instrument's own attributes and not the body's
     data-tool since the round-5 one-editor build (10 Oct 2026), when the done card took the same
     instrument on a page whose body names no tool. */
  .tool-grid:has(.tool[data-tool="editor"][data-working]) { --tool-columns: minmax(280px, 1fr) minmax(0, 680px); }
  .tool[data-working] > * { grid-row: 1; min-width: 0; }
  /* The panel is stuck inside the row: level with the head at every scroll position, for as
     long as the row is on screen, and gone with it. Taller than the viewport (the drift
     disclosure open in a short window), it is capped to the viewport and scrolls inside itself,
     as the landing's marketing column does, so the DOWNLOAD zone is never out of reach; the wheel
     over it moves the panel first and the page after, and the scrollbar is the editor list's
     thin muted one. */
  .tool[data-working] > .tool-panel {
    grid-column: 1;
    position: sticky;
    top: var(--tool-stick);
    max-height: calc(100vh - var(--tool-stick));
    max-height: calc(100svh - var(--tool-stick));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--muted) transparent;
  }
  .tool[data-working] > .tool-panel::-webkit-scrollbar { width: 8px; }
  .tool[data-working] > .tool-panel::-webkit-scrollbar-track { background: transparent; }
  .tool[data-working] > .tool-panel::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 4px; }
  .tool[data-working] > .tool-monitor { grid-column: 2; }
  /* The prose after the instrument row. The left column's leaves take a row each after the
     tool's, in the document's order. The aside is one box in the right column under the monitor,
     spanning forty-eight rows from the second: an empty row costs nothing, and a row that holds
     a leaf is already as tall as its leaf, so an aside taller than the left column's prose puts
     its extra height into the empty rows it crosses and never between the left's paragraphs
     (measured with the aside made 1,500px taller: no leaf of the left column moved). In the
     second row alone it would stretch that row, and the left column's first paragraph would
     stand over a gap as tall as the difference. Its first paragraph takes the paragraph's own
     28, level with the left column's first, not the 32 that sets it beside the control at rest. */
  .tool-grid:has(.tool[data-working]) > .tool-aside { grid-row: 2 / span 48; }
  .tool-grid:has(.tool[data-working]) > .tool-aside > :first-child { margin-top: 28px; }
  /* The aside directly under the monitor when the monitor is the shorter of the two surfaces (a
     caption file of two or three lines, or a few more with the drift disclosure open). The row
     ends where the taller surface ends, so with the aside placed after the row its first
     paragraph stood under the panel's end, not the monitor's: measured with a two-line file at
     1512x717, 92.5 under the monitor where it is 28, and 273.6 with the disclosure open, the
     aside moving 181 down when a control in the other column was opened (the fix round over the
     sticky monitor, 4 Oct 2026). So the row is two of the page's rows, lent to the tool as a
     subgrid: the monitor is in the first, which is as tall as the monitor, and the panel spans
     both, so the second is whatever the panel has past the monitor's end, nothing for any file
     of more than a few lines. The aside starts at the second row as before, which is now the
     monitor's end whichever surface is taller; the left column's leaves take the rows after
     both, under the panel. The tool's box is still the whole row, so the stuck panel travels
     exactly as far as it did, and the head is stuck inside the monitor's own box, so neither
     ever stands over the aside. The second row takes none of a tall aside's height: a row the
     panel has been measured across is at its limit like a row that holds a leaf, and the empty
     rows beyond still absorb it. Without subgrid the rules above stand and the aside follows
     the row's end. */
  @supports (grid-template-rows: subgrid) {
    .tool-grid:has(.tool[data-working]) > .tool-main > .tool,
    .tool-grid:has(.tool[data-working]) > .tool-main > .tool-app > .tool { grid-row: 1 / span 2; grid-template-rows: subgrid; }
    .tool[data-working] > .tool-panel { grid-row: 1 / span 2; }
  }
  /* The lines in the page's flow: no box, no scroll of their own. The player view reads this
     overflow to know the window is the scroller (monitorPageFollow), and the editor's find
     session reads it the same way (rowsInPageFlow). The standalone editor's list is the paid
     editor's .editor-cues in the monitor's body, a box in one column (below). */
  .tool[data-working] .tool-cues-list,
  .tool[data-working] .editor-cues { height: auto; overflow: visible; }
  /* A cue's field brought into view by the keyboard (Tab walks the rows) is brought to under the
     stuck head, not under the top of the viewport, where the head would be lying over it: the
     head is at most half the viewport or its floor, whichever is more. The same for a line's
     play-from-here control, a tab stop of its own since plan 4.3: the subtitle shifter's row,
     and the standalone editor's timecode. (From under the fold they come in one gap clear of
     it, by the margins their own rules carry at every width, so the ring around them is whole.) */
  .tool[data-working] .editor-cues .cue-edit,
  .tool[data-working] .editor-cues .cue-tc,
  .tool[data-working] .editor-cues .cue-time-open,
  .tool[data-working] .tool-cues-list .cue {
    scroll-margin-top: calc(max(50vh, var(--head-floor)) + var(--tool-gap));
    scroll-margin-top: calc(max(50svh, var(--head-floor)) + var(--tool-gap));
  }
  /* The right column is 378 to 520 wide, so a caption line wraps in the list rather than running
     out of its box; the cue builder's lines are two at most and 42 characters, which fit at 1512
     and wrap from about 1400 down. */
  /* No scroll anchoring while the lines are in the page: the head's height is not constant (the
     caption strip grows when a caption runs past two lines in the narrow column), and with
     anchoring on the browser answers each change by moving the scroll position to hold a line
     still, which arrives as a scroll nobody asked for and reads to the player view as the
     visitor taking the page. Without it the lines move with the head's bottom edge, as the list
     box under the strip always did, and nothing scrolls. */
  .page:has(.tool[data-working]) { overflow-anchor: none; }
}
/* Every width the block above is not true of, to any fraction: written as its negation and not as (max-width: 1199px), which left a window 1199.2 wide (1499px at 125% zoom) in neither layout (the grid's band, further up, has the measurement). */
@media not all and (min-width: 1200px) {
  /* One column: the tool is a flex column and the monitor gives up its box, so the head, the
     body and the panel are its three items in that order on the screen whatever the document's
     (the panel is first there, for the tab order), and the head's containing block is the tool:
     it stays stuck through the list and the panel and leaves with the panel's end, before the
     prose. One gap between the monitor and the panel. */
  .tool[data-working] { display: flex; flex-direction: column; }
  .tool[data-working] > .tool-monitor { display: contents; }
  .tool[data-working] .tool-monitor-head { order: 1; }
  .tool[data-working] .tool-monitor-body { order: 2; }
  .tool[data-working] > .tool-panel { order: 3; margin-top: var(--tool-gap); }
  /* A control of the panel brought into view by the keyboard is brought to under the stuck head,
     not under the top of the viewport, where the head would be lying over it. The cue fields get
     no such margin here, on purpose: they stand in the list's box, which is 280 to 520 tall and
     under the head by however far the page has scrolled, so a margin the height of the head
     leaves the browser nowhere in the box to put a field (measured with the two-column rule
     copied in and an audio file loaded, real Tab presses from the header: at 1100x800 the first
     three lines came into view and lines 4 to 8 were 0 to 19% in view; at 390x844 lines 5 to 8
     were 24 to 33%). A line the keyboard brings the focus to under the head is landed by the
     script instead (landFocusedRow in src/client/editorDom.ts).
     The margin is never more than the window less 56px, the room the panel's tallest control
     needs (the shift field, 50) and a little under it. A browser brings a focused control into
     view as the control and its margin together, and when the two are taller than the window it
     has nowhere to put them and moves the page only until they cover it: under 396px tall the
     head's floor and the gap are 340, so in a window 358 tall (a 1512x717 one at 200% zoom,
     the verification of the order's first phase, 5 Oct 2026) every control a real Tab landed on
     stood 4 to 14px through the fold, the shift field at 320.7 to 370.7, under a head that
     ended at 235. Capped, the control lands whole over the fold from either direction, which is
     also the most of it that can show under a head at its floor in such a window. */
  .tool[data-working]:not([data-tool="editor"]) > .tool-panel :is(a, button, input, select, textarea) {
    scroll-margin-top: min(calc(max(50vh, var(--head-floor)) + var(--tool-gap)), calc(100vh - 56px));
    scroll-margin-top: min(calc(max(50svh, var(--head-floor)) + var(--tool-gap)), calc(100svh - 56px));
  }
  /* A line wider than its field wraps here as everywhere (the field's base rule, phone round 3,
     item 5); it scrolled sideways inside the field from 481 to 552 wide before, with no sign. */
  /* The lines in the page's flow in one column too (Corey's reversal of 19 Oct 2026, the mobile
     editor pass): no box and no scroll of their own, on both tool pages. The box this replaces
     (the editor's 280 to 520, the shifter's 380 and 300 on the phone) could not scroll a short
     file, so a swipe that started on it moved nothing, and it left its unfilled height as a dead
     block under the last line (Corey's Pixel Fold over dev.softcue.io, a two-line file). The
     player view and the find session read this overflow and follow against the window
     (monitorPageFollow, rowsInPageFlow); the rows keep content-visibility, so a two-hour file
     stays fast in the page as it was in the box. */
  .tool[data-working] .tool-cues-list,
  .tool[data-working] .editor-cues { height: auto; overflow: visible; overscroll-behavior: auto; }
  /* No scroll anchoring on the editor here, for two columns' reason (the player view would read the
     browser's put-back as the visitor's hand). The shifter keeps it in one column, as it had it:
     its sticky head's caption grows over the panel, and anchoring is what holds the shift field
     still under a visitor typing in it (showPlayer in src/client/tools/shifterPlayer.ts). */
  .page:has(.tool[data-tool="editor"][data-working]) { overflow-anchor: none; }
}
/* The bar's one-column parts and the find block's disclosure: in the markup on every mount, shown
   only by the one-column editor's rules below, so no other bar and no two-column layout changes. */
.player-now, .player-speed-cycle, .tool-find-disclose { display: none; }
/* Touch wording (Corey's approval of 19 Oct 2026): a hint that says "Click" says "Tap" where the
   primary pointer is a finger. Both are in the markup; the device decides which one paints. */
.copy-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .copy-pointer { display: none; }
  .copy-touch { display: inline; }
}
@media not all and (min-width: 1200px) {
  /* The shifter's lines are in the page under its stuck head now, as in two columns: a line the
     keyboard brings into view comes in under the head, not under the top of the viewport. */
  .tool[data-working]:not([data-tool="editor"]) .tool-cues-list .cue {
    scroll-margin-top: calc(max(50vh, var(--head-floor)) + var(--tool-gap));
    scroll-margin-top: calc(max(50svh, var(--head-floor)) + var(--tool-gap));
  }

  /* The editor in one column, on both its homes (/srt-editor and the paid done card; Corey's
     reversal of 19 Oct 2026, the mobile editor pass): files first, then find and replace folded
     to one row, then the head and the transcript in the page's flow, then DOWNLOAD, with the
     transport pinned to the foot of the viewport. The page is the one scroller. The panel and the
     monitor give up their boxes so their parts are items of the tool's column in that order; the
     document order is untouched (the panel first, for the tab order), so the focus still reaches
     every control of the panel before the first line. Each part draws the edge and the ground the
     panel and the monitor drew around it. Two columns (1200 up) are what they were. */
  .tool[data-tool="editor"][data-working] { --pinned-bar: 93px; }
  .tool[data-tool="editor"][data-working] > .tool-panel { display: contents; }
  .tool[data-tool="editor"][data-working] > .tool-panel > .tool-zone {
    border: 1px solid var(--line-soft);
    background: var(--screen);
    transition: border-color var(--fast);
  }
  .tool[data-tool="editor"][data-working] > .tool-panel.is-hover > .tool-zone { border-color: var(--caption); }
  .tool[data-tool="editor"][data-working] > .tool-panel > .tool-back-row { order: 0; border: 1px solid var(--line-soft); border-bottom: 0; background: var(--screen); }
  .tool[data-tool="editor"][data-working] #tool-files { order: 1; }
  .tool[data-tool="editor"][data-working] #tool-edit { order: 2; border-top: 0; }
  .tool[data-tool="editor"][data-working] .tool-monitor-head {
    order: 3;
    position: relative;
    max-height: none;
    margin-top: var(--tool-gap);
  }
  .tool[data-tool="editor"][data-working] .tool-monitor-body { order: 4; }
  /* A monitor with no head yet (a file open, no recording): the transcript closes its own top. */
  .tool[data-tool="editor"][data-working]:not([data-player]) .tool-monitor-body { margin-top: var(--tool-gap); border-top: 1px solid var(--line-soft); }
  .tool[data-tool="editor"][data-working] #tool-download-zone { order: 5; margin-top: var(--tool-gap); }
  .tool[data-tool="editor"][data-working] > .tool-panel { margin-top: 0; }

  /* Find and replace in one column, open (the Android review, 20 Oct 2026, 3b, and phone round 3
     with its addendum, 25 Oct 2026): one frame from the moment it opens, so the first letter typed
     changes nothing but the count and which buttons are live. Its lines: the find field with the
     count, Prev and Next; Match whole words, in words, on a line of its own; one held line; the
     replace field with Replace and Replace all. The held line is the variant list's while the field
     holds a search (FIND_SEARCH_ATTR keeps it one line high with nothing in it, fix round 2) and
     the reason line's ("Enter a word to find first.") while it holds nothing: the two share the
     slot and its height, so the reason going and the list's line arriving at that keystroke move
     nothing. The parts give up their boxes so their children are the frame's lines in that order
     (the document's order is untouched, for the tab order and the reader). The 480 block's one
     track, which stacked Prev and Next under the find field and Replace under the replace field,
     is not read here. The block's padding and rule are the stuck block's at rest, so sticking
     moves nothing either. While searching the block sticks to the top of the viewport, so a
     landed match never carries the find field away; "Find and replace" stays over the frame, the
     way to close it, and closing find, or emptying it, unsticks it. The landings reckon the stuck
     block as cover from above (monitorHeadEdge counts it, stickyEdge.ts). */
  /* 12 over: the disclosure's target reaches 12 up past its line (its margin), so stuck at the
     window's top it starts at the top and not 2px above it (at 10 it answered over 42.5 of 44.8). */
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-find[data-find-open] {
    padding-top: 12px;
    padding-bottom: 10px;
  }
  /* Stuck only in a window with the room for it: the block is about 210 tall with its three lines,
     the bar 93, and under 440 tall (a phone on its side, 844x390 and 640x360) what was left between
     them could not hold a two-line row, so a landed line stood under the block. There the block
     stays in the page's flow and a landing carries it up with the page. */
  @media (min-height: 440px) {
    .tool[data-tool="editor"][data-working] .tool-find[data-find-open][data-find-search] {
      position: sticky;
      top: 0;
      z-index: 25;
    }
  }
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] .tool-find-frame {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "find" "options" "held" "replace";
    row-gap: 8px;
    padding: 6px 8px;
  }
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] .tool-find-part:not([hidden]) { display: contents; }
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] .tool-find-line { grid-area: find; display: flex; min-width: 0; align-items: center; column-gap: 10px; }
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] #editor-replace > .tool-find-line { grid-area: replace; }
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] .tool-find-line > .find-input { flex: 1 1 0; min-width: 0; width: auto; }
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] .tool-find-actions { flex: none; gap: 10px; }
  /* The count's room is "99 of 999" before there is a count, so the first letter's count ("1 of 120") does not narrow the field beside it (7ch, the frame's, did by 8px). */
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] .find-count { min-width: 9ch; }
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] .tool-find-options { grid-area: options; }
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] .tool-find-options .toggle { min-height: 44px; }
  /* The toggle is a finger's 44 as its own box on its own line, so the phone's strip over it (25px
     up, for the toggle beside the count) would lie over the find field: a tap on the field's lower
     half pressed Match whole words. */
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] .tool-find-options .toggle::before { content: none; }
  .tool[data-tool="editor"][data-working] .tool-find[data-find-open] :is(.find-variants, .tool-find-gate) { grid-area: held; min-height: 1.5em; margin: 0; line-height: 1.5; }

  /* FILES on one line (the Android review, 20 Oct 2026, 3a): the captions' name and facts, then the
     recording's name with Remove, wrapping where the line is short; no zone label and no kind labels,
     since the line names its files. The first transcript line has to be on the first screen. */
  .tool[data-tool="editor"][data-working] #tool-files {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 14px;
    row-gap: 0;
    padding-top: 2px;
    padding-bottom: 2px;
  }
  .tool[data-tool="editor"][data-working] #tool-files > * + * { margin-top: 0; }
  .tool[data-tool="editor"][data-working] #tool-files > .tool-zone-label,
  .tool[data-tool="editor"][data-working] #tool-files .tool-file-kind { display: none; }
  .tool[data-tool="editor"][data-working] #tool-files :is(.tool-file-row, .tool-drop) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 0; }
  .tool[data-tool="editor"][data-working] #tool-files :is(.tool-file-row, .tool-drop)[hidden] { display: none; }
  .tool[data-tool="editor"][data-working] #tool-files .tool-media { display: contents; }
  .tool[data-tool="editor"][data-working] #tool-files .tool-media[hidden] { display: none; }
  .tool[data-tool="editor"][data-working] #tool-files .tool-privacy { flex-basis: 100%; }
  /* Each control on the line is a finger's 44 as its own box (no strips, which crossed the next
     line's controls where the line wraps: Remove audio answered over 15 of its 44 at 360x640), and
     the line's items stand on its middle. */
  .tool[data-tool="editor"][data-working] #tool-files :is(.tool-file-row, .tool-drop, .tool-media-offer) { align-items: center; }
  .tool[data-tool="editor"][data-working] #tool-files button.link { display: inline-flex; align-items: center; min-height: 46px; padding: 0; margin: 0; }
  .tool[data-tool="editor"][data-working] #tool-files .tool-status:empty { display: none; }

  /* EDIT over the transcript is the folded find row alone (3a): the zone gives up its box, the find
     block keeps the zone's look in its place, Jump to and the line-start block go under the
     transcript, and Undo, Undo all changes and the status line stand over the pinned bar (below). */
  .tool[data-tool="editor"][data-working] #tool-edit { display: contents; }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-zone-label { display: none; }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-find {
    order: 2;
    margin-top: 0;
    padding: 14px 18px;
    border: 1px solid var(--line-soft);
    border-top: 0;
    background: var(--screen);
  }
  .tool[data-tool="editor"][data-working] #tool-edit > :is(.tool-jump, .tool-retime) {
    order: 5;
    margin: 0;
    padding: 14px 18px 0;
    border: 1px solid var(--line-soft);
    border-top: 0;
    border-bottom: 0;
    background: var(--screen);
  }
  /* The line-start block under the transcript beside Jump to (the Android review's 3a, back here
     since phone round 6, item 1, Corey's order of 25 Oct 2026): its one line, "Tap a line to move
     its start time.", which keeps its place whether or not a line is selected (the wiring hides it
     only where the button takes its place, which is the desktop). Round 5 stood the whole block on
     the bar, a 49px row full time for a tool most visitors never use. */
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-retime { padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-retime[hidden] { display: none; }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-retime > .tool-marks-hint { margin: 0; }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-jump { padding-bottom: 14px; }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-jump:has(+ .tool-undo-line + .tool-retime:not([hidden])) { padding-bottom: 0; }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-jump:not(:has(+ .tool-undo-line + .tool-retime:not([hidden]))) { border-bottom: 1px solid var(--line-soft); }
  /* Moving a line's start, a row of the pinned bar (phone round 5, item 1; the button alone since
     round 6): the visitor pauses in the bar at the foot, so the button is there, over Play, and not
     under the transcript, where a pause meant a scroll to find it. The button's own row (the block
     is the EDIT zone's in the document, so the focus order is the panel's as before), fixed over
     the bar's two lines while a line is selected: "Move line 2 to 0:01.2", live, 49px with its
     hairline (44 for the button's finger and 2 each side). Shown only while the visitor is lining
     up a move (the selection goes with the press), and stepping aside with the bar while a line is
     being edited. --pinned-bar takes the row, so the Undo strip stands over it, and viewFold counts
     it with the bar. */
  .tool[data-tool="editor"][data-working] { --bar-rows: 93px; --retime-row: 49px; }
  .tool[data-tool="editor"][data-working]:has(#tool-retime-button:not([hidden])) { --pinned-bar: calc(var(--bar-rows) + var(--retime-row)); }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-retime > .tool-retime-row {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--bar-rows) + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    height: var(--retime-row);
    margin: 0;
    padding: 0 16px;
    display: flex;
    align-items: center;
    background: var(--screen);
    border-top: 1px solid var(--line-soft);
  }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-retime > .tool-retime-row:has(> .tool-mark[hidden]),
  .tool[data-tool="editor"][data-working]:has(.cue-edit:focus-within) #tool-edit > .tool-retime > .tool-retime-row { display: none; }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-retime .tool-mark { height: 44px; margin: 0; min-width: 0; max-width: 100%; padding: 0 18px; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .page:has(.tool[data-tool="editor"][data-working][data-player] #tool-retime-button:not([hidden])) { padding-bottom: calc(93px + 49px + 16px); }
  /* A clamp is said once on the phone, under the line that moved (phone round 6, item 1): the
     status line's long sentence repeated the row's short one and stacked the foot (the status, Undo,
     the button's row and the bar, about 242px of an 844 screen). Out of sight but in the document
     while the row carries the sentence (data-row-says, set with the status), so the live region
     still announces it once; not fixed, so viewFold does not count it. */
  .tool[data-tool="editor"][data-working] #tool-edit > .editor-status[data-row-says] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* Undo, Undo all changes and the status line, over the pinned bar (or the window's foot before a
     recording), each shown while it has something: Undo while there is a step to undo, the status
     while it has a sentence. Right after an edit Undo is there without a scroll. They step aside
     with the bar while a line is being edited. viewFold counts them with the bar. */
  .tool[data-tool="editor"][data-working] { --foot: 0px; --undo-strip: 44px; }
  .tool[data-tool="editor"][data-working][data-player] { --foot: var(--pinned-bar); }
  .tool[data-tool="editor"][data-working] #tool-edit > :is(.tool-undo-line, .editor-status) {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 0 16px;
    background: var(--screen);
    border-top: 1px solid var(--line-soft);
  }
  .tool[data-tool="editor"][data-working] #tool-edit > .tool-undo-line {
    bottom: calc(var(--foot) + env(safe-area-inset-bottom, 0px));
    height: var(--undo-strip);
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 20px;
  }
  /* Undo keeps one line, its label cut with an ellipsis where the strip is short (its title has it whole). */
  .tool[data-tool="editor"][data-working] #tool-edit .tool-undo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tool[data-tool="editor"][data-working] #tool-edit .tool-undo-all { flex: none; white-space: nowrap; }
  .tool[data-tool="editor"][data-working] #tool-edit > .editor-status {
    bottom: calc(var(--foot) + env(safe-area-inset-bottom, 0px));
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .tool[data-tool="editor"][data-working]:has(#editor-undo:not(:disabled)) #tool-edit > .editor-status { bottom: calc(var(--foot) + var(--undo-strip) + env(safe-area-inset-bottom, 0px)); }
  .tool[data-tool="editor"][data-working]:not(:has(#editor-undo:not(:disabled), #revert-original:not(:disabled))) #tool-edit > .tool-undo-line,
  .tool[data-tool="editor"][data-working] #tool-edit > .editor-status:empty,
  .tool[data-tool="editor"][data-working]:has(.cue-edit:focus-within) #tool-edit > :is(.tool-undo-line, .editor-status) { display: none; }

  /* Find and replace, folded: the disclosure stands in the label's place, and the frame and the
     Jump to line open under it (FIND_OPEN_ATTR, set by the find session, which keeps it through
     every render and holds it open while there is a search). */
  .tool[data-tool="editor"][data-working] .tool-find > .tool-zone-label { display: none; }
  .tool[data-tool="editor"][data-working] .tool-find-disclose {
    display: block;
    align-self: flex-start;
    padding: 12px 0;
    /* 7 under it and not 12: Undo's line takes its own target from the room over it, and at 12 it
       reached 4.8px up into this one (the row answered over 40 of its 44.8, the phone sweep). */
    margin: -12px 0 -7px;
    font-size: 13px;
    line-height: 1.6;
  }
  /* Jump to is under the transcript since the Android review (20 Oct 2026, 3a) and shows there whether find is open or not. */
  .tool[data-tool="editor"][data-working] .tool-find:not([data-find-open]) > .tool-find-frame { display: none; }

  /* The transport, pinned: two lines a finger's 44 each, the playing line's words over Play, the
     scrubber, the readout and the one speed button. The words are also the way back to following
     (#player-now: "Follow along" once the visitor's scroll has stopped it), since the row that
     carries Follow along in the head scrolls away with the page here; a pill floating over the
     page lay over its last lines, a footer link and a focused line (the walks, 19 Oct 2026). The
     six options and Repeat line are not on it (Repeat line is the desktop's and two columns').
     The bar is the head's node, never a second copy, so a recording playing through a full render
     neither pauses nor reloads. 93px: the hairline, 44, 44 and 4 over the safe area. */
  .tool[data-tool="editor"][data-working] .tool-player-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0 16px calc(4px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line-soft);
  }
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-bar--rows {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    grid-template-rows: 44px 44px;
    grid-template-areas: "now now now now" "play scrub time speed";
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
  }
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-bar-line { display: contents; }
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-scrub { grid-area: scrub; }
  /* The scrubber's 14px in the middle of its 44px line, its strips the rest of the line and no further. */
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-scrub--house::before { height: 15px; }
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-scrub--house::after { height: 15px; }
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-toggle { grid-area: play; min-height: 44px; min-width: 44px; text-align: left; }
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-now {
    display: block;
    grid-area: now;
    min-height: 44px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
    text-decoration: none;
    font-size: 13px;
    color: var(--caption);
  }
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-now-follow { display: none; }
  .tool[data-tool="editor"][data-working]:has(#player-follow-along:not([hidden])) .tool-player-bar .player-now-words { display: none; }
  .tool[data-tool="editor"][data-working]:has(#player-follow-along:not([hidden])) .tool-player-bar .player-now-follow { display: inline; color: var(--text-2); text-decoration: underline; }
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-time { grid-area: time; min-width: 0; font-size: 12px; color: var(--text-2); }
  .tool[data-tool="editor"][data-working] .tool-player-bar .player-speed-cycle {
    display: block;
    grid-area: speed;
    min-height: 44px;
    min-width: 44px;
    text-align: right;
    font-variant-numeric: tabular-nums;
  }
  .tool[data-tool="editor"][data-working] .tool-player-bar :is(.player-speed--row, .toggle) { display: none; }
  /* The page keeps the bar's height free at its foot, and 16 more, so the last line and the footer
     scroll clear of it whole: the footer index's links take their 44 from 12px under their line,
     and at exactly the bar's height the last row's strips were under it (31.5 of 44, the sweep). */
  .page:has(.tool[data-tool="editor"][data-working][data-player]) { padding-bottom: calc(93px + 16px); }
  /* Follow along's own row control: its place is the bar's readout here. */
  .tool[data-tool="editor"][data-working] .tool-cues-head .player-follow-along { display: none; }
  /* An audio file's strip: the playing line is on the bar, and the strip over the transcript grew
     with a caption that wrapped (the walks: a long line at 360 wide), which moved every line under
     it on a cue change. A video keeps its picture, the caption drawn over it inside its box. */
  .tool[data-tool="editor"][data-working] .tool-monitor-head .media-frame[data-kind="audio"] { display: none; }
  /* With the strip gone and the bar pinned, an audio file's player box holds nothing in the head's flow: it gives up its box. */
  .tool[data-tool="editor"][data-working] .tool-monitor-head .tool-player:not(:has(.media-frame[data-kind="video"])) { display: contents; }
  /* While a line is being edited the bar steps aside, so it does not sit on the phone's keyboard or over the line. */
  .tool[data-tool="editor"][data-working]:has(.cue-edit:focus-within) .tool-player-bar { display: none; }
  /* Anything the keyboard brings into view clears the pinned bar at the foot: a control of the
     panel (at 756x358, a 1512x717 window at 200%, seven of them landed under the bar), a line, a
     timecode. */
  .tool[data-tool="editor"][data-working] :is(a, button, input, select, textarea, .cue-edit, .cue-tc, .cue-time-open) { scroll-margin-bottom: calc(var(--foot) + var(--undo-strip) + var(--tool-gap)); }

}
@media (max-width: 480px) {
  /* The phone's own ceiling on the picture, beside the head's half-viewport cap: at 844 tall the
     half leaves the picture 256 and this is 253, so the two agree there, and a browser that will
     not shrink a video inside a flex column still keeps the head near the half. It was 56vh,
     which for a portrait clip made the head 638 of the 844 and put the list under the fold. */
  .media-frame video { max-height: 30vh; }
  .media-frame[data-kind="video"] .media-caption { padding: 22px 16px 14px; font-size: 15px; }
  .media-frame[data-kind="audio"] .media-caption { font-size: 15px; padding: 16px; }
  .tool-player-bar { padding: 10px 12px; }
  /* The six speeds stand 6px apart here, where they stand 10: Repeat line is 23px wider than
     Loop cue was, and at 390 wide the bar's second line is the six options and the toggle
     (201.6, the bar's 14 and 105.8 in 324) only at this gap; at 10 the toggle went to a third
     line, which is 27.5px of a head whose every pixel is one less of the list. At 375 and 360
     the transport is three lines either way, as it was before the toggle. */
  .player-speed--row { gap: 6px; }
  .tool-cues-head { padding: 10px 20px; }
  .tool-cues-list { padding: 20px 20px 32px; }
  /* A finger's target on the phone is 44px tall, and four of the controls the shifter and editor
     order added stood on a 20px line (hit-tested down each one's middle at 390x844 with touch
     emulated, the verification of the order's first phase, 5 Oct 2026: Repeat line 20 on both
     pages, Match whole words 20, the opener 20, a one-line line of the shifter's transcript
     42). Each takes the rest from the room around it, and takes it where no other control
     stands, so none is paid for out of a neighbour's. Match whole words: all of it upward,
     over the 8px above it and the empty left end of the line the count and the two steps close
     at the right; nothing downward, where the opener stood under it at 360 wide. The opener
     (since round 5's stage H the landing demo's alone: the instrument shows the replace part in
     every state and has none): the 8px between it and the steps over it and no more, and 17
     under it, which is the frame's own padding and the gap beyond. Repeat line: the 8px between the transport's
     lines, never into the line over it, where the speeds stand at 375 and 360, and 17 under
     it, the bar's own padding and the top of the row over the lines, where the count stands
     under it (Follow along, which stood under it at the row's other end and took the last 9
     back while it showed, stands at the row's left end since the phone pass, below, and takes
     none of it). (The line is 19.5 tall, so 25 more makes 44.5.) A line of the
     shifter's transcript: 3px under it, of the 16 between two lines.
     The room is taken by strips outside each control's box, a pseudo-element over it, under
     it or both, and not by padding against a negative margin as the panel's older controls
     are built: the box is the box it was, so the ring the keyboard's focus draws stays on the
     control's words (around a padded Repeat line it ran through the speeds' line over it and
     into the row under it), a press on the words lands on what it landed on, and everything
     that reads these boxes reads what it read. A press on a strip is a press on the control.
     On record, not 44, and why: the six speeds, which stand 6px apart on a 20px line and
     cannot each be 44 wide or tall in a row of six (a folded control is Corey's to settle, as
     it has been since the shifter's player); and a line's time on the standalone editor, 17px
     directly over the line's own field in a paint-contained row, whose 44px target for changing
     the time is the `edit` control beside it since round 5's stage H (the editor rows' phone
     rules, further down); the time's own press, which plays with a recording, stays 16.5. */
  /* A strip is positioned, so it lies over whatever is not, the row over the lines among it; and
     Follow along, in that row and after the bar in the document, is positioned too, so its own
     box is over any strip and its target is whole (since the phone pass it stands clear of
     Repeat line's, at the row's left end; below). */
  .tool-find .toggle, .tool-find .tool-find-open, .tool-player-bar .toggle, .tool-cues .cue, .tool-cues-head .player-follow-along { position: relative; }
  .tool-find .toggle::before, .tool-find .tool-find-open::before, .tool-player-bar .toggle::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 8px; }
  .tool-find .toggle::before { height: 25px; }
  .tool-find .tool-find-open::after, .tool-player-bar .toggle::after, .tool-cues .cue::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 17px; }
  .tool-cues .cue::after { height: 3px; }
  /* The house scrubber (stage C4), 14px tall on the transport's first line, takes its 44 the
     same way: 24 over it, which is the line's own 2.75 of slack, the bar's 10 of padding and 11
     of the caption strip or the picture's foot, where nothing is a control (a video's caption
     takes no pointer and the picture has no controls of its own), and 6 under it, inside the 8
     between the transport's two lines, so it reaches no part of the speeds' or Repeat line's
     boxes; where Repeat line's own strip over it shares those 8 the toggle's, later in the
     document, is the one on top. */
  .tool-player-bar .player-scrub--house::before, .tool-player-bar .player-scrub--house::after { content: ''; position: absolute; left: 0; right: 0; }
  .tool-player-bar .player-scrub--house::before { bottom: 100%; height: 24px; }
  .tool-player-bar .player-scrub--house::after { top: 100%; height: 6px; }
  /* The download row under the keyboard's focus carries the ring here. Its focus is the yellow
     and a 10px indent, and the phone's stacked row takes the indent away (the download page's
     rule, further down), which left the colour alone: the name from the cream to the yellow and
     the size from the grey to it, 2.38:1 at most, and no pixel of the row changed by 3:1
     (focused by a real Tab at 390x844 against the focus off the page, the verification of the
     order's first phase, 5 Oct 2026). The ring is the one the panel's other controls carry. In
     the panel only: the done screen's rows and the download page's are the same class and are
     not this order's. */
  .tool-panel .dl-row:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
  /* The note keeps the label's size, which is 11 here. */
  .tool-monitor-note { font-size: 11px; }
  /* A phone's head with a video in it carries no hint, and its floor is the head's own parts
     without one. The picture is what makes that head tall (363 of an 844 window with a 16:9
     clip), and with the page scrolled until the standalone editor's find field is in view the
     window shows 90px of the list under it, which holds a two-line line (76.2) with 14 to
     spare: the hint's 26 would leave 64, the end of every two-line line past the list's end for
     as long as it played (the defect the fix round over stage B4 answered at 8.7px). An audio
     head is 84 shorter and carries its hint here as everywhere. The second and last place the
     hint gives way, with the window under 480 tall (above). */
  .tool { --head-floor-video: 270px; }
  .tool-monitor-head:has(.media-frame[data-kind="video"]) .tool-monitor-hint { display: none; }
  /* The phone pass (round 5, stage K). A finger's 44 for three controls that fell short, each
     without moving a box or a pixel of anything else but where said.
     The marked lines: a row is 20.8 on its 13px line and they stood 8 apart, so no row could give
     its remove 44 without crossing the next row's (two rows' 44 targets need a 44 pitch). The
     rows stand 44 apart here, 23.2 between them, and each remove takes 11.6 over and under its
     line: its target is exactly its row's share and meets the next row's at a line. Cost: 15.2
     a mark after the first in CORRECTION's height (2 marks 15.2, the cap's 10 marks 136.8). The
     first row's 11.6 over it lies on the list's label and the last row's under it in the zone's
     gap, neither a control. */
  .tool-mark-row + .tool-mark-row { margin-top: 23.2px; }
  .tool-mark-remove { padding: 11.6px 0; margin: -11.6px 0; }
  /* Play on the monitor's transport stood 20.5 (19.5 and the line's own half pixel), the one
     control of the head every visit uses. It takes 18.5 over its box, the bar's 10 of padding
     and 8.5 of the caption strip or the picture's foot (no control: the scrubber beside it
     takes 24 there for the same reason), and 6 under it, inside the 8 between the transport's
     two lines, so it reaches nothing of the speeds under it. */
  .tool-player-bar .player-toggle { position: relative; }
  .tool-player-bar .player-toggle::before, .tool-player-bar .player-toggle::after { content: ''; position: absolute; left: 0; right: 0; }
  .tool-player-bar .player-toggle::before { bottom: 100%; height: 18.5px; }
  .tool-player-bar .player-toggle::after { top: 100%; height: 6px; }
  /* Follow along and Repeat line. Repeat line's target reaches 17 under its box, into the bar's
     10 of padding and 7 of the row over the lines; Follow along stood at that row's right end,
     under Repeat line from 390 wide up (the speeds and the toggle share the transport's second
     line there), and its own padded 44 began 9 above the row: where both showed, a press in
     those 9 was Follow along's and Repeat line answered over 35.5 of its 44 (the round-5 stage C
     report; measured again at 390x844). Two 44 targets stacked there need 88 between Repeat
     line's strip and the list, and the row and the bar hold 79.3, so the two are put side by
     side instead. Follow along goes to the row's left end (the count, which takes no press, to
     the right end, so it never moves when Follow along comes and goes), under the speeds, which
     carry no strips (on record as short: six of them on a 20px line); Repeat line goes to the
     right end of whichever line it stands on, which it already was at 390 (2.6 short of the end)
     and was not at 375 and 360, where it has the third line to itself and stood at its left,
     over where Follow along now is. Follow along takes its 44 from 19 of the 20 between the
     speeds' boxes and its own (the bar's padding and the row's) and 4.2 under its line, inside
     the row, never into the list; its box is its words, so the focus ring is too. 19 and not the
     whole 20: with 20 its strip began where the speeds' boxes end and, with the browser's
     rounding of the pseudo-element's edge, answered half a pixel inside them (measured at 390,
     414 and 480: from 503.75 under speeds ending at 504.25); the pixel goes under its line
     instead, where 7.3 now stand between its target and the list at 390 (8.3 before; fix
     round 4, item 3d). Repeat line keeps its own strips. The two targets share no point at any width from 360 to 480 (the phone walk,
     src/client/phonePass.chrome.test.ts, scans both). Follow along is the row's one control,
     so its place before the count changes no focus order. */
  .tool-cues-head { justify-content: flex-end; }
  .tool-cues-head .player-follow-along { order: -1; margin: 0 auto 0 0; padding: 0; }
  .tool-cues-head .player-follow-along::before, .tool-cues-head .player-follow-along::after { content: ''; position: absolute; left: 0; right: 0; }
  .tool-cues-head .player-follow-along::before { bottom: 100%; height: 19px; }
  .tool-cues-head .player-follow-along::after { top: 100%; height: 4.2px; }
  .tool-player-bar .toggle { margin-left: auto; }
}

/* ---- Download page (design screen 09, src/web/routes/download.ts) ----
   The token path top right, the mono 14 meta line, the two download rows, the expiry note and
   the "send me a new link" form. The field rules are shared with the done screen's block. */

.doc-token { color: var(--dim); word-break: break-all; }
.doc-meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.dl-rows { margin-top: 36px; }
.dl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  text-decoration: none;
  transition: color 250ms var(--ease), padding-left 250ms var(--ease);
}
.dl-row:hover, .dl-row:focus-visible {
  color: var(--caption);
  padding-left: 10px;
  outline: none;
}
.dl-name {
  font-size: 17px;
  /* The name is middle-truncated to a character budget in JS (src/client/format.ts
     middleTruncateFileName, follow-scroll spec item 3), so wrapping mid-word is no longer the
     normal case; this is only the last-resort fallback for a name with no spaces that somehow
     still overflows the row. */
  overflow-wrap: anywhere;
}
/* The extension, split into its own span so it can never wrap onto a second line even under the
   fallback above: a broken extension read as a rendering fault, which is the defect item 3
   exists to close, and nowrap is what actually guarantees it now, not just the budget leaving
   room. */
.dl-ext { white-space: nowrap; }
.dl-right {
  display: flex;
  gap: 28px;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
.dl-size { color: var(--muted); transition: color 250ms var(--ease); }
.dl-row:hover .dl-size, .dl-row:focus-visible .dl-size { color: var(--caption); }
.dl-go { color: var(--caption); }

.dl-note {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.dl-resend { margin-top: 0; }
.dl-resend .dl-note { margin-top: 12px; }
.dl-status {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  text-wrap: pretty;
}

/* A labelled email field and its button, on the download page and on the done screen. */
.field-label {
  display: block;
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.field-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.field-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color var(--base);
}
.field-input::placeholder { color: var(--dim); }
.field-input:focus { outline: none; border-color: var(--caption); }
.field-input:disabled { color: var(--muted); }
.field-row .btn-secondary {
  width: auto;
  padding: 0 20px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .dl-rows { margin-top: 28px; }
  .dl-row, .dl-rows--stage .dl-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 16px 0;
  }
  .dl-row:hover, .dl-row:focus-visible { padding-left: 0; }
  .dl-name { font-size: 15px; }
  .dl-right {
    justify-content: space-between;
    font-size: 13px;
  }
  .dl-note { margin-top: 24px; font-size: 14px; }
  .field-row { flex-direction: column; }
  .field-row .btn-secondary { width: 100%; height: 46px; }
}

/* ---- 08 Done: the "send it again" block under the line, and the Next column's link ---- */

.resend {
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
}
.resend .link { color: var(--text-2); }
.resend .link:hover, .resend .link:focus-visible { color: var(--caption); }
.resend-form .field-label { margin-top: 0; }
.resend-form .field-input { background: var(--surface); }
.resend-status { color: var(--text); }
.resend-form .resend-status { margin-top: 12px; }
.side-link { font-size: 14px; }

@media (max-width: 480px) {
  .resend { margin-top: 20px; font-size: 14px; }
}

/* ---- 08b The caption editor (item 5, remediated 14 Sep 2026) ----
   The editor is a mode of the done card, not a panel under it: the same section on the same
   surface at the card's own left edge, its content swapped for a header row (the file's name and
   the cue count, Revert to original, Done), then the hint, the status line and every cue at its
   natural height in a list sized to the viewport (the scale build, 14 Sep 2026): the page does
   not scroll while the editor is open, the list does, so the site header, the card's header and
   the right column stay put on a 2-hour file (about 1,950 cues, 180,000px of cues). One scroll
   region on the screen, which is the standard editor layout, not the nested scroller removed
   before (that was a scroller inside a page that also scrolled). No fade: the scrollbar is the
   affordance, styled in the muted grey on a transparent track. Under 280px of room (a short
   viewport) the list is its content again and the page scrolls, the header sticky. Rows carry
   content-visibility: auto so off-screen rows are not laid out, with the row heights measured
   by src/client/editorDom.ts as their placeholder size. Cue text is in the cream; the yellow is
   the focused field's edge and the number of a cue that carries an edit. "Fix a word" is a block
   of its own under the file rows (the copy pass, 17 Sep 2026): the control in the row's type with
   the arrow in the accent, and one line under it saying what it opens. Not a row, so it never
   reads as a third file; its own rule below closes the block off from .done-line's paragraph the
   way .dl-rows--stage's rule above opens it, so the section reads as standing between two rules
   rather than running into what follows it (the follow-scroll spec, item 5). */

.fix-block { margin-top: 24px; max-width: 600px; padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); }
.fix-open { font-size: 17px; font-weight: 500; color: var(--text); text-decoration: none; }
.fix-open:hover, .fix-open:focus-visible { color: var(--caption); text-decoration: underline; }
.fix-arrow { color: var(--caption); margin-left: 4px; }
.fix-line {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* The stage's own horizontal padding, so the sticky header can run edge to edge inside it. */
.stage { --stage-pad: 32px; }
/* The paid editor's card (.stage--editing, its sticky .editor-header grid, the name row with Revert
   and Done, the toolbar, the player's band, the fitted height) is gone since the round-5 one-editor
   build (10 Oct 2026): the done card's editor is the tool pages' instrument (the rules further
   down, "The standalone editor") inside the editor grid (the rules after the demo's). What is left
   here is the list and its rows, which every home shares. */
.editor-cues {
  position: relative; /* the rows' offset parent, so a row's offsetTop is its place in the list */
  /* In the demo's slot, the rest of the box, whatever the controls took: min-height 0 so it may shrink below its content. */
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px var(--stage-pad) 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.editor-cues::-webkit-scrollbar { width: 8px; }
.editor-cues::-webkit-scrollbar-track { background: transparent; }
.editor-cues::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 4px; }
/* A row the browser may skip: its placeholder height is the measured one or two-line row (the
   variables are set on the list by fitEditorList; these are the desktop values it measures). The
   field bleeds --field-bleed to the left of the text column; the row pads by the same amount so
   paint containment does not clip it. */
.cue--edit {
  --field-bleed: 8px;
  content-visibility: auto;
  contain-intrinsic-size: auto var(--cue-h1, 66px);
  margin-left: calc(-1 * var(--field-bleed));
  padding-left: var(--field-bleed);
}
.cue--edit.cue--l2 { contain-intrinsic-size: auto var(--cue-h2, 91px); }
/* A row whose lines wrap (phone round 3, item 5) holds the height it will be drawn at, measured by
   fitEditorList (--cue-ph, set on that row alone), so the page's height is honest before it is drawn. */
.cue--edit[style*="--cue-ph"] { contain-intrinsic-size: auto var(--cue-ph); }
.editor-hint {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.editor-status {
  min-height: 20px;
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.cue--edit:hover { background: transparent; box-shadow: none; }
.cue--edit .cue-meta { align-items: baseline; }
.cue-edited { color: var(--caption); font-size: 12px; }
.cue--edit.is-edited .cue-n { color: var(--caption); }
/* The word "edited" where the row's meta line cannot hold it beside the number, the time and
   `edit` (round 5, stage H; scoped by the row's own width in fix round 2): the line is clipped by
   the row, so the word is kept in the row for a reader of the page's text and taken out of sight,
   and the yellow number is the edited treatment's mark there. The row is the query's container,
   so the same rule judges every home (/srt-editor, the paid card, the demo) by what its rows
   actually have. Measured in Chrome with the word shown on all three homes alike (the meta line's
   11px mono under 481 wide, the gap 14): the line needs 309.7px with a one-digit number, 316.2
   with two, 322.9 with three and 329.5 with four (MAX_EDITOR_CUES is 7,200), and a row's content
   box is 278 at 360 wide, 308 at 390, 332 at 414 and 348 at 430; from 481 up the meta is 13px
   and needs 366.1 with three digits and 373.9 with four, against 375 at 481. So under 330 the
   word cannot be promised whatever the number (it fits no number at 390 and 360, short by 1.7 to
   44.9), and from 330 it fits every one. Stage H clipped it at every width up to 480, where the
   rows from 414 to 480 had 9.1 to 88.3 to spare. Its own line box is held to its type (line-height
   1, as the monitor's rows already had it), so a word shown in the demo's 11px meta line does not
   make that line 1.5px taller (76.19 to 77.69 measured on the demo's rows at 414 to 480). */
.cue--edit { container-type: inline-size; }
.cue--edit .cue-meta .cue-edited { flex: none; line-height: 1; white-space: nowrap; }
@container (width < 330px) {
  .cue-meta .cue-edited { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* The cue's field, text or textarea (the highlight remediation, item 1): one rule for both, so the
   swap on focus moves no pixel. Everything that sizes text is set here and nothing is left to the
   textarea's defaults: the font, the size, the leading, the spacing, the padding, the border, the
   box, the width, and white-space, so an authored line break is a line in both. The textarea's
   rows are the cue's lines, so its height is the lines' too.

   A line wider than the field wraps, at every width (phone round 3, item 5, Corey's reversal of
   24 Oct 2026; it scrolled sideways inside the field with no sign, so the cut read as the line's
   end). The text form hangs each line's continuation 2ch in (each-line: an authored break starts
   a line flush, so a wrap never reads as a line of the file's). The textarea cannot carry that:
   Chrome lays a textarea's text as one paragraph and indents an authored second line as if it
   were a continuation (measured, Chrome 155). So the open field wraps flush and marks each
   continuation outside its left border instead (a 2px bar in its left padding until phone round
   4, which read as the caret), drawn and sized by fitCueField (src/client/cueField.ts) from the
   field's own measured lines. From 481 wide a line that fits is unchanged in both forms, so
   opening it moves nothing; opening a wrapped line moves its continuation 2ch left and, where the
   2ch decides a wrap, the row's height by a line. On the phone the open field is a larger type
   than the read rows (the 480 block, phone round 4), so opening any line enlarges it. */
.cue-edit {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 8px;
  padding: 6px 8px;
  margin-left: calc(-1 * var(--field-bleed));
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.45;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  text-align: left;
  tab-size: 8;
  transition: border-color var(--fast), background var(--fast);
}
/* The text form is at least the cue's lines tall, the height the textarea's rows give it, so a refused draft a line short or emptied moves no row. 14px is the padding and the two borders. */
/* The open field's continuation marks (phone round 4, item 2, 25 Oct 2026; fitCueField in
   src/client/cueField.ts): a ↳ in the muted grey beside each continuation, outside the field's left
   border and level with its row, so nothing inside the border reads as the caret, as round 3's bar
   in the left padding did. The row holding them is their containing block, and its paint reaches
   16px past its box (overflow-clip-margin, which paints nothing of its own) so a mark beside the
   field is drawn: the row is paint-contained (content-visibility) and the field's border is its
   left edge. Placed by the script from measured lines; none where nothing beside the border is
   painted. Only while a line is open, which no two-column screenshot holds. */
.cue--edit:has(> .cue-wraps) { position: relative; overflow-clip-margin: 16px; }
.cue-wraps { position: absolute; pointer-events: none; user-select: none; color: var(--muted); font-family: var(--font-mono); font-size: 13px; }
.cue-wrap { position: absolute; left: 0; white-space: nowrap; }
.cue-edit--text { cursor: text; min-height: calc(1.45em + 14px); text-indent: 2ch hanging each-line; }
.cue--l2 .cue-edit--text { min-height: calc(2.9em + 14px); }
.cue-edit--text:focus { outline: none; }
.cue-edit:hover { border-color: var(--line); }
.cue-edit--field:focus { outline: none; border-color: var(--caption); background: var(--cue-hover); }
/* The word marks inside a text row: the matches on a cream tint, and the one find is on set solid
   on the house yellow with its text dark (the shifter and editor order, 3 Oct 2026, plan 3.4).
   The current one was a 30% yellow tint over a cream underline, "neither on the yellow alone",
   and in the pixels Chrome painted on the card that came to rgb(81,72,15) beside the others'
   rgb(47,46,43): 1.48:1, where telling which match is the current one is a state and needs 3:1
   (the review's 1.44 is the same two tints laid over the page's ground rather than the card's).
   Solid, it reads 9.1:1 against the others' fill, its text 13.2:1 on it and theirs 10.9:1 on
   the tint, and it no longer changes with the ground under it (the demo's hovered stage and a
   playing row are --cue-hover, where the tint was lighter). The state is carried by the fill's
   luminance and by the text turning dark, not by the hue alone; one word at a time is yellow,
   so the yellow still announces once. Only the fill and the colour differ between the two
   marks: no padding, border, font or leading, so the mark's box is the text's own and the swap
   to the textarea still moves nothing. The others' tint is as the highlight remediation set it,
   quiet on purpose: 1.45:1 against the card's ground, measured and not raised by this order.
   src/client/editorFind.chrome.test.ts reads all of this off a screenshot; put the old tint
   back on the current mark and it fails at 1.48:1. */
.find-mark { background: rgba(235, 230, 216, .16); color: inherit; border-radius: 0; }
.find-mark--current { background: var(--caption); color: var(--screen); }
/* The refused control carries the yellow edge: the field holding the words where its change was
   refused (its aria-invalid, which the paid homes set with the row's class every time), and on
   the standalone editor the timecode where the time was (stage C3), drawn as its frame is, on
   its own edge inside its box; the words' field stays as it is for a time it had no part in. */
.cue--edit.has-error .cue-edit[aria-invalid="true"] { border-color: var(--caption); }
.tool[data-tool="editor"] .editor-cues .cue-tc[aria-invalid="true"] { outline: 1px solid var(--caption); outline-offset: -1px; }
.tool[data-tool="editor"] .editor-cues .cue-tc[aria-invalid="true"]:focus-visible { outline: 2px solid var(--caption); outline-offset: -2px; }
.cue-error {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--caption);
}
.find-input { min-width: 0; padding: 4px 8px; background: var(--cue-hover); border: 1px solid var(--line-soft); border-radius: 0; color: var(--text); font-family: var(--font-mono); font-size: 13px; line-height: 1.5; }
.find-input::placeholder { color: var(--dim); }
.find-input:focus { outline: none; border-color: var(--caption); }
/* The count slot: the count, never clipped (up to "1984 of 1984") and never grown past it, since
   the slack belongs to the field; or a message for a moment (out of range, not a time, nothing to
   replace), which lies over the whole line so it is never clipped either (the panel's own rule,
   further down, wraps it). The paid toolbar these were written for (the find cluster left, the
   jump cluster right behind a divider, the checkbox in the replace row, the phone's Time toggle)
   is gone since the round-5 one-editor build: every home has the find and replace control below. */
.find-count { flex: 0 0 auto; min-width: 7ch; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); font-variant-numeric: tabular-nums; }
.find-count[data-message] { position: absolute; inset: 0 0 10px 0; z-index: 1; display: flex; align-items: center; min-width: 0; background: var(--screen); color: var(--text); }
.jump-label { color: var(--muted); }
.time-input { width: calc(7ch + 18px); }
/* The variant list under the find field: the distinct forms that matched, count descending, capped at eight. */
.find-variants { display: flex; flex-wrap: wrap; gap: 2px 18px; padding: 0 0 8px; font-size: 13px; line-height: 1.4; }
.find-variants[hidden] { display: none; }
.find-variant { display: inline-flex; gap: 10px; align-items: baseline; padding: 0; background: none; border: 0; color: var(--text-2); font: inherit; cursor: pointer; }
.find-variant:hover .find-variant-form, .find-variant:focus-visible .find-variant-form { color: var(--caption); }
.find-variant:focus { outline: none; }
.find-variant:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
.find-variant-form { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.find-variant-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.find-variants-more { color: var(--dim); }
/* The rows holding a match (the live highlight while typing), the current match, and the jump's
   flash: DOM-only, never state; bars at the row's left, cream-grey, never the yellow, which is
   the edge of the cue being edited and, in the text, the word find is on (.find-mark--current).
   Measured in painted pixels with the word marks (the shifter and editor order, 3 Oct 2026) and
   left as they were: a hit row's bar reads 2.90:1 against the card, the current row's 5.55:1 and
   the playing row's 9.38:1, so 1.92:1 and 1.69:1 between neighbours, under the 3:1 the word marks
   now clear. A current bar 3:1 over the hit bar would have to read 8.7:1 against the card, and
   the tokens up there are --text-2, which is the playing bar itself, --text, 1.68:1 from it and
   1.19:1 from the subtitle shifter's yellow playing bar (the shifter draws this same mark beside
   that bar, on the line its button will act on), and the yellow. So the row keeps its ramp, hit
   under current under playing, and the word carries which match is the current one.
   src/client/editorFind.chrome.test.ts holds the ramp, its order and that no find bar is yellow. */
.cue--edit[data-find-hit] { box-shadow: inset 2px 0 0 var(--dim); }
.cue--edit[data-find-current] { box-shadow: inset 2px 0 0 var(--muted); }
.cue--edit[data-jump] { background: var(--cue-hover); box-shadow: inset 3px 0 0 var(--text-2); transition: background var(--slow), box-shadow var(--slow); }
/* The synced player's active row in the editor: the jump flash's treatment, held while the cue plays; the editor's rows have no hover spread. */
.cue--edit[data-playing] { background: var(--cue-hover); box-shadow: inset 3px 0 0 var(--text-2); }
/* A playing row that is also a find hit, the current match or the jump's landing carries both marks: the
   player's ground and its 3px bar, with the find or jump bar stacked outside it (a later inset shadow paints
   under an earlier one, so the wider bar shows as a 2px strip beside the player's). The single-attribute
   rules above tie on specificity, so without these the one written last won and a playing row lost its
   find or jump marker. No yellow. */
.cue--edit[data-find-hit][data-playing] { background: var(--cue-hover); box-shadow: inset 3px 0 0 var(--text-2), inset 5px 0 0 var(--dim); }
.cue--edit[data-find-current][data-playing] { background: var(--cue-hover); box-shadow: inset 3px 0 0 var(--text-2), inset 5px 0 0 var(--muted); }
.cue--edit[data-jump][data-playing] { background: var(--cue-hover); box-shadow: inset 3px 0 0 var(--text-2), inset 5px 0 0 var(--muted); transition: background var(--slow), box-shadow var(--slow); }
.cue-edit::selection { background: rgba(242, 211, 27, .35); color: var(--text); }
/* The match find has landed on is a selection, not a mark: a step focuses the cue, the cue is the
   textarea for as long as it holds the focus, and a textarea shows no markup, so the occurrence
   is selected in it. Left on the tint above, the match the customer had just stepped to painted
   rgb(99,88,19), 1.90:1 against the other matches' fill, and the current mark's fix stopped at
   the first Enter. So the selection that is the current match is drawn as the current mark is,
   and the word is the same yellow under the same dark text before the step and after it, in the
   same columns (a selection fills its line's height where a mark fills the text's own, so its
   block stands a pixel proud of the mark's above or below, as the tint's always did). Keyed on
   the field, and on the selection being the one find made: the find session puts
   data-find-landed on the textarea when a step selects the occurrence in it and takes it off
   for good the first time the selection is anything else (setLanded and keepLanded in
   src/client/editorFind.ts). Every selection the customer makes keeps the tint, 4.8:1 under the
   current match, in the row find is on as in any other and over the match's own word too, so
   while a search is open a solid block in the list is the current match and never a stretch of
   text the customer happened to select. The first build keyed this on the row
   (.cue--edit[data-find-current]), which a search marks from its first keystroke: a word
   dragged over or double-clicked in that row painted rgb(242,211,27), 1.00:1 against the
   current match's own treatment, while the match itself, its cue now the textarea, was not
   painted at all (the fix round, 3 Oct 2026; the test's hand-selection case fails at 1.00:1
   with that rule back). */
.cue-edit[data-find-landed]::selection { background: var(--caption); color: var(--screen); }
/* And the current mark keeps its own treatment under a selection. A cue that is still text can be
   selected over (a drag with the button down, before the mouse-up makes it the textarea; the
   page's select-all), and the tint's cream text would land on the mark's solid yellow at 1.19:1.
   The row-keyed rule had covered that by drawing every selection in the row solid; with it gone
   the mark carries its own, and its text reads 13.2:1 selected or not, while the text around it
   takes the tint. */
.find-mark--current::selection { background: var(--caption); color: var(--screen); }
/* The replace-all confirmation: a real dialog over the page, local DOM. */
.find-dialog-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 11, 10, .72); }
.find-dialog { max-width: 440px; width: 100%; padding: 22px 24px; background: var(--screen); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; line-height: 1.6; }
.find-dialog-title { margin: 0 0 12px; color: var(--text); font-size: 15px; line-height: 1.5; }
.find-dialog-note { margin: 0 0 8px; }
.find-dialog-actions { display: flex; justify-content: flex-end; gap: 24px; margin-top: 18px; }
.find-dialog .link { color: var(--text-2); font-size: 13px; }
.find-dialog .link:hover, .find-dialog .link:focus-visible { color: var(--caption); }
.find-dialog .find-dialog-ok { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .cue--edit[data-jump], .cue--edit[data-jump][data-playing] { transition: none; }
}

/* ---- The demo's editor (the editable demo, 17 Sep 2026; on the shared controls since the round-5
   one-editor build, 10 Oct 2026) ----
   The real editor, in the idle stage's cue slot once the clip has ended: absolute over the
   marketing stack exactly as the transcript was, so the stack keeps defining the slot and the
   frame is the same box in the default, playing and editable states at every width (the r6 rule).
   A flex column: the "Try it" line and the EDIT controls every home has (the find and replace
   control with its frame and the jump line, Undo all changes, the status line) take what they
   need (the replace part open, the variant list, a message) and the cue list flexes into the rest
   and scrolls, so every growth of the controls is paid for out of the cue area and the stage never
   grows. Never fitEditorList: the slot is the height, not the viewport. The demo's own measures:
   no zone labels (the control's own label is kept in the tree for its name and not shown), the
   controls' rhythm at 8px (the frame's own) where the panel's is 20, tighter rows, no
   content-visibility (nine rows), and the stage's pointer cursor off inside it. The cost, measured
   on the built page (the one-editor build's record): the control is about 120px taller than the
   toolbar it replaces, and the list has what the slot leaves; flagged with the build. */
.demo-editor {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  cursor: default;
  animation: sc-fade-in var(--slow) ease;
}
/* The line is read whole, wrapping on the phone rather than truncating at "Nothing here is…". */
.demo-editor-head { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.demo-editor-head:focus { outline: none; }
.demo-editor-head:focus-visible { outline: 2px solid var(--caption); outline-offset: -2px; }
.demo-edit { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.demo-edit .tool-find > .tool-zone-label { display: none; }
/* No Jump to line on the demo: the review names the paired find and replace, Undo all changes and
   the status line as the demo's controls, and the line's 37px is a line of the clip's transcript
   in a slot that holds about one (measured at 1512x801: the list 73 with the line, 110 without). */
.demo-edit .tool-jump { display: none; }
/* The frame's own padding and the list's top padding are two and six pixels tighter here than in the
   panel (8 and 10): in the slot every pixel of the controls is one less of the clip's lines, and
   at 1512x801 with a one-letter search (the variant list two lines) the first line's marks ran
   2.7px past the list's bottom at the panel's spacing (measured, the one-editor build). */
.demo-edit .tool-find-frame { padding: 6px; }
.demo-edit .tool-undo-line { align-self: flex-start; }
.demo-edit .tool-undo, .demo-edit .tool-undo-all { padding: 0; }
.demo-edit .editor-status { min-height: 0; margin: 0; }
.demo-edit .editor-status:empty { display: none; }
.demo-editor .editor-cues { padding: 4px 0 8px; }
.demo-editor .cue--edit { content-visibility: visible; }
.demo-editor .cue { margin-bottom: 14px; }
.demo-editor .cue:last-child { margin-bottom: 0; }

/* ---- The paid editor on the done screen and /d:token (the round-5 one-editor build, 10 Oct 2026,
   review section 1) ----
   The editor's instrument (the panel and the monitor, "The standalone editor" below) in the card's
   place while the editor is open, inside the tool pages' grid wrapper (.tool-grid > .tool-main >
   .tool), which is what the working layout above is scoped on: two columns from 1200 (the panel
   stuck in the flexible track, the monitor 680, the transcript in the page's flow), one column
   below (the monitor first, the bounded list, the panel after). The wrapper is capped to the
   content block as the landing grid is, and to the stage's 680 below 1200 (the band rule above,
   and .page > * below the collapse), so the instrument stands where the card stood. The panel's
   FILES zone holds the job's row: the kind, the file's name with its count and its length, and
   Done under them in the row's action slot (the row's grid is the editor page's two-column one,
   .tool-file-row above); DOWNLOAD holds the delivered card's four rows, the card's own rows
   (.dl-row) without the card's top margin and with the hairline between them, and one quiet line
   under them. The wrapper's own cap is set with the grid's rules above. */
.tool-job-row .tool-file-name { font-size: 13px; line-height: 1.6; }
/* Save and Cancel under an open line on a touch screen (src/client/cueField.ts; the Android review,
   20 Oct 2026): a finger's 44 each, Save in the cream of an action, Cancel quiet. */
.cue-actions { display: flex; gap: 24px; margin-top: 4px; }
.cue-actions .cue-action { min-height: 44px; font-size: 14px; color: var(--text-2); }
.cue-actions .cue-action--save { color: var(--text); }

/* The paid panel's way back to the downloads, first in the panel over a hairline (the Android review,
   20 Oct 2026: "Done" beside the file's name read as a status). A 44 target from its 20.8 line. */
.tool-back-row { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.tool-back-row .editor-done { font-size: 13px; line-height: 1.6; color: var(--text); padding: 12px 0; margin: -12px 0; }
.tool-back-row .editor-done:hover, .tool-back-row .editor-done:focus-visible { color: var(--caption); }
.dl-rows--zone { margin-top: 0; }
.dl-rows--zone .dl-row { padding: 14px 0; }
.dl-rows--zone .dl-row:first-child { padding-top: 0; }
.dl-rows--zone .dl-row:last-child { border-bottom: 0; padding-bottom: 0; }
.tool-formats-together { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---- The standalone editor (/srt-editor, the pages wave, step B3; on the tool pages' layout
   since the shifter and editor order, 3 Oct 2026, plan 4.1 and 3.5) ----
   The editor's third home. The tool document's #app holds the drop control (the .tool rules
   above, the same box the converters have) until a file is dropped, then the instrument the
   subtitle shifter has: a panel and a monitor, laid out by the working layout above. It was the
   paid editor's card in the drop control's place, fitted to the viewport, with the page's
   eyebrow, heading, prose and foot hidden while it was open (the pages wave kept the page's
   overflow at 0 that way); those rules are gone, and the page keeps everything it is served with
   in every state, the prose after the instrument row as on the shifter.

   The panel is the shifter's (.tool-panel, .tool-zone, the mono labels, the hairlines, the one
   gap): FILES, EDIT, DOWNLOAD. It stands in the flexible track here, 386 to 520 wide, and is
   the phone's width in one column, so what is inside it is set for that width. The monitor is
   the shifter's too: the head while a recording is ready, over the transcript, which is the paid
   editor's own list (.editor-cues, the same rows, fields, marks and edited marks) as the
   monitor's body. Its padding reads --stage-pad, which the paid card's .stage defines; here the
   monitor does. */
.tool-app { margin-top: 32px; }
.tool-app .tool { margin-top: 0; }
.tool-monitor { --stage-pad: 32px; }
/* The list is a block in the monitor (or, in one column, an item of the tool's flex column),
   never the flexing part of a fitted card: it keeps the height the layout gives it. */
.tool-monitor > .editor-cues { flex: none; }
/* The hint is the first line of the transcript; the paid list's status line, which gave it its
   distance from the first cue, is in the panel's EDIT zone here. */
.tool-monitor .editor-hint { margin: 0 0 24px; }
/* The two file rows at the panel's width: the kind, then the name on a line of its own with the
   row's action under it, where the shifter's 680 panel has the three side by side. At 386 wide
   the action beside the name left the name 118px, and a file's name with its extension and its
   count does not fit that. The caption file's row is the drop zone in its collapsed shape, as on
   the shifter (the way to another file: a click on it, a file dropped on it, and "Choose a
   different file" in it), so both selectors are named. */
.tool[data-tool="editor"] .tool-file-row,
.tool[data-tool="editor"] .tool-panel .tool-drop { grid-template-columns: 68px minmax(0, 1fr); row-gap: 4px; }
.tool[data-tool="editor"] .tool-file-row > .link,
.tool[data-tool="editor"] .tool-panel .tool-drop > .link { grid-column: 2; justify-self: start; }
/* The offer and the line a file opens on are two lines here as well: the words, then the control
   on a line of its own 4px under them, as a row's action stands under its name. Each is then the
   height of the file's row that takes its place (45.6), so nothing under the FILES zone moves
   for a recording. On one line the offer was 20.8 and the row 45.6, and with a recording added
   in two columns, where the panel itself stands still, the find field, Jump to, Undo all
   changes and the DOWNLOAD zone went 24.8px down, and back up on Remove (the verification of
   the shifter and editor order's first phase, 5 Oct 2026). The control keeps its 44px of
   target, 8 of it over the words above now, which are no control. */
.tool[data-tool="editor"] .tool-media-open { display: block; margin: -8px 0 -12px; }
.tool-file-name { margin: 0; min-width: 0; color: var(--text); }
.tool-file-count { color: var(--muted); white-space: nowrap; }
/* The name cell takes the focus when a file opens and after every change is undone: a stable
   place for a keyboard to start from, shown with the ring when the keyboard put it there. */
.tool-file-name:focus { outline: none; }
.tool-file-name:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
/* EDIT. Find and replace is one control (the shifter and editor order, 3 Oct 2026, plan 3.2;
   toolFindMarkup in src/client/editorFind.ts). It was the paid editor's header rows set down in
   the panel, and measured at the panel's widths with the replace row open it read as two things:
   the replace field stood 53 to 111px under the find field with the Jump to field between them,
   147 to 180px wide beside a find field of 120 to 262, with Match whole words beside it. Now a
   group under one mono label, FIND AND REPLACE, and one frame, the 1px boundary in the muted grey
   the house toggle's edge is (5.55:1 on the panel in the pixels Chrome paints; the hairline the
   zones are divided by reads 1.28:1, and a control's boundary needs 3:1), around two parts.

   The find part: the find field with the count, Prev and Next on its line; under it the find's
   setting, Match whole words, with the control that opens the replace part at the line's other
   end; then the variant list when more than one form matched. The replace part, when open: the
   replace field with Replace and Replace all on its line, and the reason they are off while the
   find field is empty. The two parts stand one gap apart, the panel's one spacing value, and
   what belongs to a field (its buttons where they stand under it, its setting, its variant list,
   its reason) is 8px from it, the toolbar's own row gap, so each field reads as owning its lines.

   One grid lays out both lines, which is what makes the two fields one left edge and one width
   whatever stands beside them: the first track is the fields', the second the buttons', as wide
   as its widest occupant and never under the replace line's own two (18 characters and a gap,
   152.4px in the mono 13), so the track is the same width whether the replace part is open or
   not and the find field's box does not change by a pixel when it opens. A count past seven
   characters ("100 of 412") widens that track for both lines at once. From 480 down there is one
   track: each field is the frame's width and its buttons are the next line under it, at the
   line's end, rather than a field squeezed to a few characters beside them.

   A message of the control's own (nothing to replace, a replacement too long) takes the find
   line for a moment, as on the paid toolbar; the jump field's two are said on its own line.
   Either lies over its line and is through to it: a click on the sentence is a click on the
   field or the step under it. */
.tool-find { display: flex; flex-direction: column; gap: 8px; }
.tool-find-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(calc(18ch + 12px), auto);
  column-gap: 12px;
  row-gap: var(--tool-gap);
  padding: 8px;
  border: 1px solid var(--muted);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
/* A part and a line take the frame's two tracks as their own (a browser without subgrid lays each
   line on the same two tracks by itself, which differs only while a long count widens one). */
.tool-find-part, .tool-find-line {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(calc(18ch + 12px), auto);
  column-gap: 12px;
  row-gap: 8px;
  align-items: center;
}
@supports (grid-template-columns: subgrid) {
  .tool-find-part, .tool-find-line { grid-template-columns: subgrid; }
}
/* The fields in the control and the jump field under it (the shifter and editor order, plan
   4.6). They are the paid toolbar's field: a ground one step off the card's inside the hairline,
   and on the panel that edge read 1.18:1 against the field's own ground and 1.28:1 against the
   panel's, in the pixels Chrome painted, so nothing said where a field began or ended until it
   had the focus. The edge is the muted grey here, 5.55:1 against the panel and 5.13:1 against
   the field's ground, at rest and under the pointer; under the focus it is the yellow as it
   was, said again because this rule comes after the toolbar's and weighs the same. The frame
   around them is the same grey, a box holding boxes: the frame says the two fields are one
   control, and each field's own edge says where to type. */
.tool-panel .find-input { border-color: var(--muted); }
.tool-panel .find-input:focus { border-color: var(--caption); }
.tool-find-part[hidden] { display: none; }
.tool-find-part > * { grid-column: 1 / -1; min-width: 0; margin: 0; }
.tool-find-line { position: relative; }
.tool-find-line > .find-input { grid-column: 1; width: 100%; }
.tool-find-line > .tool-find-actions { grid-column: 2; }
.tool-find-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; white-space: nowrap; }
.tool-find-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
/* The variant list is a row of the find part here, in the document's order; on the paid header it is a named area of that header's grid. */
.tool-find .find-variants { grid-area: auto; grid-column: 1 / -1; padding: 0; }
/* While the find field holds a search (data-find-search, set by the find session; round 5,
   stage C, review 2.1; tied to the search, not the focus, since fix round 2) the list keeps one
   line of its height with nothing to show, so a form picked that leaves one form and a search
   that finds one or none take no height out from under the pointer: nothing under the list moves
   (the replace part, Jump to, Undo, the status line, DOWNLOAD; on the demo, the lines). The line
   is taken up and let go only at the keystroke that fills or empties the field, under the field
   being typed in, never at a blur or a press's release, so a click from the find field to Jump
   to, Undo or a download lands where it was aimed. One line: a list of eight forms that wraps is
   taller and still gives back its extra lines as it goes. Invisible, so nothing in it is read or
   reached. */
.tool-find[data-find-search] .find-variants { min-height: 1.4em; }
.tool-find[data-find-search] .find-variants[hidden] { display: flex; visibility: hidden; }
.tool-find .link { color: var(--text-2); font-size: 13px; flex-shrink: 0; }
.tool-find .link:hover, .tool-find .link:focus-visible { color: var(--caption); }
.tool-find .link:disabled, .tool-find .link:disabled:hover { color: var(--dim); cursor: default; text-decoration-thickness: 1px; }
/* The opener while the replace part is open: the cream, as the shifter's drift disclosure is. The
   landing demo's alone since round 5's stage H. */
.tool-find .tool-find-open[aria-expanded="true"] { color: var(--text); }
.tool-find .tool-find-open[aria-expanded="true"]:hover, .tool-find .tool-find-open[aria-expanded="true"]:focus-visible { color: var(--caption); }
/* The control's own message over the find line. The pointer goes through it: a visitor told
   there is nothing to replace, or that the replacement is too long, goes straight back to the
   find field, and a real click there landed on the sentence, which is no control, so the focus
   went to the document and the next keys nowhere for the rest of its 2.5 s (measured at four
   widths with the too-long refusal standing; the jump line's own sentence had the same defect
   and the same answer, below).

   And it is whole there at every panel width. The line is as wide as the frame's inside, 322px
   in the narrowest two-column panel and 294 on a 390 phone, and the longer sentence is 374 in
   the mono 13: held to one line (the buttons' side is nowrap, and the message is its child) in
   a box that clips, it read "This change would exceed the cue's length" at 1200x800 and "...the
   cue's ler" at 390x844, 52 and 80px of it cut off. So it wraps, and the box is the line with
   5px over and under it, the room two lines of 19.5 need over a line of 29.5: inside the
   frame's 8 of padding above and the 8 between the line and the setting below, over nothing but
   the find line, its two lines balanced so the second is not one word. Should a sentence ever
   need a third line the box grows down for it and still clips nothing. */
.tool-panel .find-count[data-message] { inset: -5px 0 auto; min-height: calc(100% + 10px); white-space: normal; text-wrap: balance; pointer-events: none; }
@media (max-width: 480px) {
  .tool-find-frame, .tool-find-part, .tool-find-line { grid-template-columns: minmax(0, 1fr); }
  .tool-find-line > .tool-find-actions { grid-column: 1; }
}
/* The jump field on a line of its own under the control, its label before it; the phone's "Time"
   toggle, which folds it in the paid header, has nothing to fold here. What the jump has to say
   (a time it cannot read, a moment past the end) takes this line for a moment, as a message
   takes the find line inside the frame: each control's sentence on its own line. */
.tool-jump { position: relative; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tool-jump .jump-label { display: inline; }
/* Over the line and through to it: a click on the sentence is a click on the field under it, which typing in then clears the sentence from. */
.tool-jump-message { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; background: var(--screen); color: var(--text); pointer-events: none; }
.tool-jump-message:empty { display: none; }
/* The house toggle: a button that says whether it is pressed (aria-pressed), drawn as a 14px
   square (a 1px muted edge on the screen ground, no radius, an 8px square of the yellow when
   on) with its label beside it, and the yellow ring under keyboard focus. One class, for every
   on-or-off setting in the tools' instruments, Match whole words here and Repeat line in the
   transport of both pages: a native checkbox is the only rounded, OS-coloured thing on a
   zero-radius page. */
.toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; text-align: left; cursor: pointer; }
.toggle-box { flex: none; display: inline-grid; place-content: center; width: 14px; height: 14px; border: 1px solid var(--muted); border-radius: 0; background: var(--screen); }
.toggle-box::before { content: ''; width: 8px; height: 8px; background: var(--caption); transform: scale(0); }
.toggle[aria-pressed="true"] .toggle-box::before { transform: scale(1); }
.toggle:hover { color: var(--caption); }
.toggle:focus { outline: none; }
.toggle:focus-visible { outline: 2px solid var(--caption); outline-offset: 2px; }
/* Under a forced-colours theme (Windows' contrast themes) the browser paints every background in
   the theme's own colours, and the pressed square is a background: the box read the same pressed
   and not, in the pixels, to the last one (the verification of the shifter and editor order's
   first phase, 5 Oct 2026, under emulated forced colours: 0 pixels of the box differed between
   the two states for Repeat line on both pages and for Match whole words, where the native
   checkbox this replaced on the standalone editor changed 121 of them by 3:1 or more). So there
   the square is exempted from the theme's repainting and drawn in the button's own text colour
   from the theme, which is what a native checkbox's mark is drawn in. */
@media (forced-colors: active) {
  .toggle[aria-pressed="true"] .toggle-box::before { forced-color-adjust: none; background: ButtonText; }
}
/* The same theme takes two more states off the two tool pages' transcripts, both there before
   the order and both told by a shadow or a tint: the line being played and the words find has
   found. The playing line's bar is an inset shadow and its ground a background, and a
   forced-colours theme draws no shadow and paints the ground its own: under emulated forced
   colours the playing row and the row before it were the same pixels, 0 different. A match's
   tint keeps its alpha when the theme recolours it, so a found word that is not the current one
   stood in the theme's mark text colour on a sixth of its mark colour, black on (41,41,0),
   1.41:1 (the verification of the order's first phase, 5 Oct 2026). So there, on these two
   pages: the playing line carries a bar of its own in the theme's highlight colour where its
   bar is (outside the row's edge on the subtitle shifter, in the halo's place; inside it on the
   standalone editor, whose rows are paint-contained); and the marks keep the shape they have
   everywhere else, the current match the solid one: it is the theme's mark colours at full
   strength, and every other match is the page's own text on the page's own ground inside a
   1px line of the mark colour, which lays out nothing. The paid editor's and the demo's lists
   are not in a monitor and are as they were. */
@media (forced-colors: active) {
  .tool-monitor .cue[data-playing] { position: relative; }
  .tool-monitor .cue[data-playing]::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: Highlight; forced-color-adjust: none; }
  .tool-cues .cue[data-playing]::before { left: -8px; }
  .tool-monitor .find-mark { background: Canvas; color: CanvasText; outline: 1px solid Mark; }
  .tool-monitor .find-mark--current { background: Mark; color: MarkText; outline: 0; }
}
/* The two ways back on one line (round 5, stage B): Undo, which names the step it takes back,
   then Undo all changes, the quiet link the header's Revert was, in the toolbar's register, each
   on a 44px line box. The zone's gap is the line's margin, less the padding that makes the
   targets; the line wraps where the panel cannot hold both, each row its own 44. */
.tool-undo-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 20px; }
.tool-undo, .tool-undo-all { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); padding: 12px 0; }
.tool-panel .tool-zone > .tool-undo-line { margin: calc(var(--tool-gap) - 12px) 0 -12px; }
.tool-undo:hover, .tool-undo:focus-visible, .tool-undo-all:hover, .tool-undo-all:focus-visible { color: var(--caption); }
.tool-undo:disabled, .tool-undo:disabled:hover, .tool-undo-all:disabled, .tool-undo-all:disabled:hover { color: var(--dim); cursor: default; text-decoration-thickness: 1px; }
/* Retiming one line with a recording (stage C3, plan 3.3): the hint over the cream button that
   names the line it will act on, the subtitle shifter's own block (.tool-marks-hint and
   .tool-mark above) as one element of the EDIT zone, the zone's gap between its two lines and
   around it. Hidden without a recording; the zone keeps its shape either way. */
.tool-retime[hidden] { display: none; }
/* The button's row is nothing of its own here (phone round 6: in one column it is the strip fixed over the bar, above). */
.tool-retime > .tool-retime-row { display: contents; }
.tool-retime .tool-mark { margin-top: var(--tool-gap); }
/* Phone round 5: the line and the button take turns (the line with no line selected, the button with one), so the button stands where the line stood. */
.tool-retime > .tool-marks-hint[hidden] + .tool-retime-row > .tool-mark { margin-top: 0; }
/* The editor's status line in the panel: a line when it says something, no space when it does
   not, as the FILES zone's status line is. In flow either way, so the region is there to change. */
.tool-panel .editor-status { min-height: 0; margin-bottom: 0; }
.tool-panel .tool-zone > .editor-status:empty { margin-top: 0; }
/* DOWNLOAD. One download, in the format the file was opened in, in the done rows' Download
   treatment (the yellow with the arrow), and the other format quiet beside it: never two equal
   buttons (plan 3.5). */
.tool-downloads { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; font-size: 13px; }
.tool-download { font-size: 15px; color: var(--caption); padding: 12px 0; margin: -12px 0; }
.tool-download:hover, .tool-download:focus-visible { color: var(--caption); }
.tool-download-alt { color: var(--text-2); padding: 12px 0; margin: -12px 0; }
.tool-download-alt:hover, .tool-download-alt:focus-visible { color: var(--caption); }

/* The /d page with nothing to show: the black stage, the eyebrow in the muted grey, the sentence, the way back. */
.stage--links .eyebrow { color: var(--muted); }

/* The <noscript> block the download page carries for a browser without scripts (src/web/routes/download.ts). */
.dl-noscript { padding: 24px var(--page-x); font-size: 15px; line-height: 1.6; }
.dl-noscript a { color: var(--caption); }

@media (max-width: 480px) {
  .stage, .tool-monitor { --stage-pad: 20px; }
  /* A line's read rows at 13, the preview's size, and its open field at 16 (Corey's call of 25 Oct
     2026, phone round 4, item 1, where 9e0e327 had both at 16 to keep the swap rule). At 16 the
     transcript is read one or two words to a row: 16px mono is 9.6px a character, so at 390 wide
     the field holds 31 and at 360 27, and a large share of an ordinary transcript's lines wrapped.
     At 13 (7.8px a character) the field holds 38 at 390 and 34 at 360. The open field stays 16 so
     Safari on an iPhone does not zoom the page when it takes the focus. So opening a line on the
     phone enlarges that line and the rows under it move: the swap rule gives way here, for the open
     line alone; the caret still lands on the character tapped (an offset, not a point), and a find
     step lands its row after the swap (editorFind's goTo). Lines too wide for either form wrap
     (the base rule): the text form hangs a continuation 2ch in, the open field marks it outside its
     left border (fitCueField). The note this replaces, under round 3's 16px rows, also corrected
     an older one: 42 characters at 13px never fitted the field at 360 (328px of a 312px field). */
  .cue--edit { --field-bleed: 4px; }
  .cue-edit { font-size: 16px; padding: 6px 4px; }
  .cue-edit--text { font-size: 13px; }
  /* Every other text field that can take the focus on the phone, at 16 for the same reason (item 6):
     find, replace and Jump to (13 at every width), Send it again (15), and a line's start time,
     which takes its row's meta size (11 here) and so stands a little taller than the time it
     replaces while it is open. The word hints, the code box and the contact form were already 16. */
  .find-input, .field-input, .cue-time-input { font-size: 16px; }
  /* A finger's 44px for the `edit` control beside a line's time (round 5, stage H), made the
     house way, by strips outside its box so the box, the word and the ring are unchanged, and
     taken where no control stands: 16 over it, the gap between this line and the one before (a
     row's bottom margin here), and 11.5 under it, the 8 between the meta row and the field and
     3.5 of the field's own top edge and padding, which hold no text (the field's first line
     starts 7px into it). The control's line is 16.5, so 16 + 16.5 + 11.5 is 44. The time beside
     it stays its 16.5: this control is the line's 44px target for changing the time, and the
     time's own press plays (with a recording) or opens the same field (without one).
     A row is paint-contained (content-visibility), and paint containment clips hit-testing as
     well as painting to the row's box: a strip in the gap above the row was measured unreachable
     in Chrome (elementFromPoint gave the list). overflow-clip-margin moves that edge out by the
     gap, which Chrome honours for the containment content-visibility applies (measured: the strip
     hit with it, the list without); the row draws nothing out there itself, its treatments being
     inset. Safari has no overflow-clip-margin, so there the strip over the control is clipped and
     the target is the 28 under and on it: flagged, no device has seen it. */
  .cue--edit { overflow-clip-margin: 16px; }
  .cue-meta .cue-time-open { position: relative; }
  .cue-meta .cue-time-open::before, .cue-meta .cue-time-open::after { content: ''; position: absolute; left: 0; right: 0; }
  .cue-meta .cue-time-open::before { bottom: 100%; height: 16px; }
  .cue-meta .cue-time-open::after { top: 100%; height: 11.5px; }
  .fix-block { margin-top: 24px; }
  .fix-open { font-size: 15px; }
  .fix-line { font-size: 14px; }
  /* The paid toolbar's phone rules (the Time toggle, the two-row toolbar, Revert and Done on a line
     of their own) went with the toolbar (the round-5 one-editor build): the find and replace
     control's own phone rules are with it, further down. */
}
