/* The review room's wireframes: page layout only. Every colour, size, weight, radius, shadow and
   space is a Signal OSX variable; check-system-values.cjs must pass on this folder. Parts that every
   product could use are proposed to the system in system/signal-osx/proposed/, not written here. */

html, body { margin: 0; height: 100%; }
.fr-tool .sx-app { height: 100vh; }
.fr-tool .sx-body { position: relative; }
.fr-search { width: 260px; }

/* A page's head: title and lede on the left, its actions on the right. */
.fr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sx-space-6); }
.fr-head > div:first-child { display: flex; flex-direction: column; gap: var(--sx-space-2); min-width: 0; }
.fr-head .sx-actions { flex: none; }
.fr-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-space-2); }
.fr-row--between { justify-content: space-between; }
.fr-row--wide { gap: var(--sx-space-4); }
.fr-section { display: flex; flex-direction: column; gap: var(--sx-space-3); min-width: 0; }
.fr-section > .sx-title { display: flex; align-items: baseline; gap: var(--sx-space-3); }
.fr-cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-4); }
.fr-cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sx-space-4); }
.fr-cols-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sx-space-4); }
.fr-cols-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sx-space-4); }
.fr-card { display: flex; flex-direction: column; gap: var(--sx-space-3); padding: var(--sx-space-5); border-radius: var(--sx-radius-card);
  background: var(--sx-raised); box-shadow: var(--sx-shadow-card); min-width: 0; }
.fr-card > :is(h2, h3) { margin: 0; font-size: var(--sx-size-label); font-weight: var(--sx-weight-medium); letter-spacing: var(--sx-tracking-caps);
  text-transform: uppercase; color: var(--sx-muted); }
.fr-card p { margin: 0; }
.fr-big { font-size: var(--sx-size-title); font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.fr-list { display: flex; flex-direction: column; gap: var(--sx-space-2); margin: 0; padding: 0; list-style: none; color: var(--sx-text-2); }
.fr-list li { display: flex; align-items: flex-start; gap: var(--sx-space-2); }
.fr-list li > .sx-icon { flex: none; margin-top: var(--sx-space-1); color: var(--sx-muted); }
.fr-list strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.fr-sub { display: block; font-size: var(--sx-size-label); font-weight: var(--sx-weight-regular); color: var(--sx-muted); }
.fr-muted { color: var(--sx-muted); }
.fr-dim { color: var(--sx-text-2); }
.fr-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fr-nowrap { white-space: nowrap; }
.fr-gap { flex: 1; }
.fr-meter { width: 120px; }
.fr-icon-text { display: inline-flex; align-items: center; gap: var(--sx-space-1); }
.fr-table-actions { text-align: right; white-space: nowrap; }

/* A placeholder for a picture. */
.fr-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sx-space-2); padding: var(--sx-space-4);
  text-align: center; background: var(--sx-raised); border: 1px dashed var(--sx-line-control); color: var(--sx-muted); font-size: var(--sx-size-label); }
.fr-ph--16x9 { aspect-ratio: 16 / 9; }
.fr-ph--fill { position: absolute; inset: 0; border: 0; }
.fr-ph--card { border-style: solid; border-color: var(--sx-line-box); }

/* The piece in the well. */
.fr-stage { display: flex; flex-direction: column; align-items: center; gap: var(--sx-space-3); }
.fr-still { position: relative; width: 880px; aspect-ratio: 16 / 9; }
.fr-caption-line { width: 880px; display: flex; align-items: baseline; gap: var(--sx-space-3); color: var(--sx-text-2); font-size: var(--sx-size-data); }
.fr-caption-line .sx-caption { flex: none; }
.fr-well-top { position: absolute; top: var(--sx-space-4); left: var(--sx-space-4); right: var(--sx-space-4); display: flex; align-items: center; gap: var(--sx-space-3); }
.fr-well-scroll { align-items: flex-start; overflow: auto; padding: var(--sx-space-8) var(--sx-space-6); }
.fr-subtitle { position: absolute; left: 50%; bottom: var(--sx-space-6); transform: translateX(-50%); width: 70%; padding: var(--sx-space-2) var(--sx-space-3);
  border-radius: var(--sx-radius-control); background: var(--sx-scrim); color: var(--sx-text); text-align: center; font-size: var(--sx-size-data); }

/* The notes panel. */
.fr-panel { overflow: hidden; }
/* The notes list scrolls inside its panel, as the system's list does; longer German and Thai notes reach it first. */
.fr-label { margin: var(--sx-space-2) 0 0; font-size: var(--sx-size-label); font-weight: var(--sx-weight-medium); letter-spacing: var(--sx-tracking-caps);
  text-transform: uppercase; color: var(--sx-muted); }

/* The gate page. */
.fr-locks { display: flex; flex-direction: column; gap: var(--sx-space-2); }
.fr-lock { display: flex; align-items: center; gap: var(--sx-space-3); padding: var(--sx-space-2) var(--sx-space-3); border-radius: var(--sx-radius-control);
  background: var(--sx-selected); }
.fr-lock .fr-ph { width: 96px; aspect-ratio: 16 / 9; padding: 0; }
.fr-lock .fr-ph .sx-icon, .fr-lock .fr-ph span { display: none; }

/* The beat shape on a format. */
.fr-beats { display: grid; gap: var(--sx-space-1); }
.fr-beat { display: flex; flex-direction: column; gap: var(--sx-space-1); padding: var(--sx-space-3); border-radius: var(--sx-radius-control);
  background: var(--sx-selected); min-width: 0; }
.fr-beat strong { font-weight: var(--sx-weight-medium); color: var(--sx-text); }
/* A beat's time wraps between its two numbers when the beat is narrow ("68 to 75 s" at 1024 wide), never past the edge. */
.fr-beat .fr-num { white-space: normal; }

/* Sheets that show several pictures side by side (phones, the mark-up pattern). */
.fr-sheet { min-height: 100%; padding: var(--sx-space-8) var(--sx-space-10); display: flex; flex-direction: column; gap: var(--sx-space-6); background: var(--sx-bg); }
.fr-phones { display: flex; gap: var(--sx-space-8); align-items: flex-start; }
.fr-phone { display: flex; flex-direction: column; gap: var(--sx-space-3); }
.fr-phone iframe { display: block; width: 390px; height: 844px; border: 0; border-radius: var(--sx-radius-card); box-shadow: var(--sx-shadow-card); }
.fr-phone p { margin: 0; max-width: 390px; color: var(--sx-text-2); }
.fr-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sx-space-4); }
.fr-kind { display: flex; flex-direction: column; gap: var(--sx-space-3); min-width: 0; }
.fr-kind .fr-pic { position: relative; aspect-ratio: 16 / 9; }
.fr-kind p { margin: 0; color: var(--sx-text-2); }
.fr-flow { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: center; gap: var(--sx-space-3); }
.fr-flow > .sx-icon { color: var(--sx-muted); }
.fr-ends { display: flex; flex-direction: column; gap: var(--sx-space-3); }
.fr-mini-timeline { position: relative; display: flex; flex-direction: column; gap: var(--sx-space-1); padding: var(--sx-space-3);
  border-radius: var(--sx-radius-control); background: var(--sx-surface); aspect-ratio: 16 / 9; justify-content: center; }
.fr-mini-timeline .sx-timeline__lane { position: relative; }
.fr-mini-lines { display: flex; flex-direction: column; justify-content: center; aspect-ratio: 16 / 9; padding: var(--sx-space-3); border-radius: var(--sx-radius-control);
  background: var(--sx-raised); overflow: hidden; }
.fr-static { position: relative; }
.fr-static .sx-composer, .fr-static .sx-dialog { position: static; }
.fr-static .sx-scrim { position: relative; inset: auto; padding: var(--sx-space-6); border-radius: var(--sx-radius-card); }

/* Phone width: one column, the panel becomes a bottom sheet. */
@media (max-width: 767px) {
  .fr-head { flex-direction: column; align-items: stretch; }
  .fr-cols-2, .fr-cols-3, .fr-cols-4, .fr-cols-5 { grid-template-columns: minmax(0, 1fr); }
  .fr-phone-hide { display: none !important; }
  .fr-still { width: 100%; }
  .fr-caption-line { width: 100%; }
}

/* Small helpers used by the pages above. */
.fr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fr-mine { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.fr-group th { padding: var(--sx-space-2) var(--sx-space-5); background: var(--sx-surface); color: var(--sx-text-2); font-weight: var(--sx-weight-medium); }
.fr-note-text { color: var(--sx-text) !important; }
.fr-notes-table td:first-child { width: 48px; }
.fr-notes-table td:nth-child(5) { width: 32px; color: var(--sx-muted); }
.fr-well-flat { align-items: stretch; justify-content: stretch; }
.fr-well-flat > * { flex: 1; }
.fr-menu-row { justify-content: space-between; }
.fr-phone-body { flex-direction: column; }
.fr-phone-well { padding: var(--sx-space-4); }

/* Wireframe shapes inside a placeholder, and the placeholder's caption in its corner. */
.fr-ph--fill { overflow: hidden; }
.fr-ph__cap { position: absolute; left: var(--sx-space-3); bottom: var(--sx-space-2); display: inline-flex; align-items: center; gap: var(--sx-space-2);
  font-size: var(--sx-size-label); color: var(--sx-muted); text-align: left; }
.fr-ph--cap-end .fr-ph__cap { left: auto; right: var(--sx-space-3); }
.fr-nw { display: contents; white-space: nowrap; } /* kept whole without becoming a box of its own, so a flex row adds no gap */
.fr-shape { position: absolute; display: flex; align-items: center; justify-content: center; border: 1px solid var(--sx-line-control);
  border-radius: var(--sx-radius-control); background: var(--sx-selected); color: var(--sx-text-2); font-size: var(--sx-size-label); text-align: center; }
.fr-more { display: inline-flex; align-items: center; gap: var(--sx-space-2); font-size: var(--sx-size-label); color: var(--sx-text-2) !important; text-decoration: none; }
.fr-list li.fr-ok > .sx-icon { color: var(--sx-accent); }
.fr-list li.fr-warn > .sx-icon { color: var(--sx-attention-mark); }
.fr-table-actions a, .fr-lock { text-decoration: none; }
.fr-lock { color: var(--sx-text) !important; }
.fr-lock strong { font-weight: var(--sx-weight-medium); }
.fr-kind .sx-notes__list { flex: none; }
.fr-flow { align-items: stretch; }
.fr-flow > .sx-icon { align-self: center; }
.fr-phone-context { flex: none; margin: 0; display: flex; align-items: center; gap: var(--sx-space-2); min-height: 44px; padding: 0 var(--sx-space-4);
  background: var(--sx-surface); border-bottom: 1px solid var(--sx-line); }
.fr-phone-context a { display: inline-flex; color: var(--sx-text-2); }
.fr-phone-well { flex: none !important; align-items: flex-start; }
.fr-sheet-half { max-height: 52%; }
.fr-people { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-space-2) var(--sx-space-4); font-size: var(--sx-size-label); color: var(--sx-text-2); }
.fr-person { display: inline-flex; align-items: center; gap: var(--sx-space-2); }
.fr-avatar-sm { width: 24px; height: 24px; font-size: var(--sx-size-label); }

/* The overview: the flow of gates, stages and parts, then four summaries. */
.fr-overview { display: flex; flex-direction: column; gap: var(--sx-space-4); }
.fr-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sx-space-4); }
.fr-card__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sx-space-1) var(--sx-space-3); }
.fr-card__head :is(h2, h3) { margin: 0; font-size: var(--sx-size-label); font-weight: var(--sx-weight-medium); letter-spacing: var(--sx-tracking-caps); text-transform: uppercase; color: var(--sx-muted); }

/* The picture's cross: "a picture goes here". */
.fr-ph__x { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--sx-line-box); }

/* A viewer's picture fills the well at 16:9, as large as the room allows. */
.sx-well.fr-fit { container-type: size; padding: var(--sx-space-6); }
.fr-fit .fr-stage { width: min(100cqw, (100cqh - 40px) * 16 / 9); }
.fr-fit .fr-stage > .fr-still { width: 100%; }
.fr-fit .fr-caption-line { width: 100%; }
.fr-fit > .fr-still { width: min(100cqw, 100cqh * 16 / 9); }

/* Second panels (shown from 1920 pixels by the system's .sx-panel--second). */
.fr-panel2 { overflow: hidden; }
.fr-scene-pic { position: relative; aspect-ratio: 16 / 9; border-radius: var(--sx-radius-control); overflow: hidden; }
/* Labels and values (a scene's purpose and look, an asset's run) use the system's facts list, .sx-facts (0.6). */
.fr-wide-only { display: none !important; }

/* The notes page's preview of the chosen note, in its place. */
.fr-notes-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sx-space-4); align-items: start; }
.fr-preview { display: none; }

/* The gate page's pieces across. */
.fr-gate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sx-space-4); align-items: start; }
.fr-gate-grid > .sx-decide, .fr-gate-grid > .fr-stills-card { grid-column: 1 / -1; }
.fr-stills { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--sx-space-2); }
.fr-stills figure { margin: 0; display: flex; flex-direction: column; gap: var(--sx-space-1); font-size: var(--sx-size-label); color: var(--sx-text-2); }
.fr-stills .fr-pic { position: relative; aspect-ratio: 16 / 9; border-radius: var(--sx-radius-control); overflow: hidden; border: 1px solid var(--sx-line-box); }
.fr-stills-card .fr-stills { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: var(--sx-space-4); }

/* Comparing two storyboard versions: both stills large, and under them one strip of every pair. */
.fr-compare-stack { display: flex; flex-direction: column; justify-content: safe center; min-height: 0; overflow-y: auto; }
.fr-compare-stack > .sx-compare { flex: none; }
.fr-compare-foot { padding: var(--sx-space-4) var(--sx-space-6) var(--sx-space-6); border-top: 1px solid var(--sx-line); }
.fr-pairs { min-width: 0; display: flex; flex-direction: column; gap: var(--sx-space-3); }
.fr-pairs__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: var(--sx-space-3); row-gap: var(--sx-space-1); }
.fr-pairs__head > * { white-space: nowrap; }
.fr-pair { display: flex; flex-direction: column; gap: var(--sx-space-1); padding: var(--sx-space-1); border-radius: var(--sx-radius-control); border: 1px solid transparent; color: var(--sx-text-2); font-size: var(--sx-size-label); text-decoration: none; }
.fr-pair .fr-pic { position: relative; aspect-ratio: 16 / 9; border-radius: var(--sx-radius-control); overflow: hidden; }
.fr-pair--changed { border-color: var(--sx-accent); }
.fr-pair[aria-current="true"] { background: var(--sx-selected); }
.fr-pair__line { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sx-space-1); }

@media (min-width: 1920px) {
  .fr-wide-only { display: flex !important; }
  .fr-overview { display: grid; grid-template-columns: minmax(0, 1fr) 400px; align-items: start; }
  .fr-summary { grid-template-columns: minmax(0, 1fr); grid-column: 2; grid-row: 1 / span 2; }
  .fr-activity { grid-column: 1; grid-row: 2; }
  .fr-notes-layout { grid-template-columns: minmax(0, 1fr) 800px; }
  .fr-preview { display: flex; position: sticky; top: 0; }
  .fr-gate-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.5fr); align-items: stretch; }
  .fr-narrow-only { display: none !important; }
  .fr-compare-stack { justify-content: flex-start; }
  .fr-compare-foot { display: flex; flex-direction: column; gap: var(--sx-space-4); }
  .fr-changed .sx-notes__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-4); }
  .fr-gate-grid > .sx-decide { grid-column: 4; grid-row: 2; }
  .fr-notes-table tr[aria-current="true"] td { background: var(--sx-selected); }
}
@media (max-width: 767px) {
  .fr-summary, .fr-gate-grid { grid-template-columns: minmax(0, 1fr); }
}
.fr-fold { display: flex; align-items: center; justify-content: space-between; gap: var(--sx-space-3); }
.fr-fold strong { font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.fr-fold > .sx-icon { flex: none; color: var(--sx-muted); }

/* Gate 2: the example stills (source/art.mjs) fill the picture boxes the wireframes left grey. */
.fr-art { position: absolute; inset: 0; display: block; }
.fr-art .fk-still { display: block; width: 100%; height: 100%; }
.fr-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: var(--sx-radius-control); overflow: hidden; }
/* The overview: a picture part shows its current version, and "Where it is" shows the stills waiting for a decision. */
.fr-cover { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--sx-radius-control); overflow: hidden; margin-bottom: var(--sx-space-1); }
.fr-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sx-space-1); margin-top: var(--sx-space-2); }
.fr-mosaic .fr-pic { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--sx-radius-control); overflow: hidden; }
.fr-mosaic .fr-pic:focus-visible { outline: 2px solid var(--sx-focus); outline-offset: 2px; }
/* Notes: what each note was left on, as a small picture (or the script line's number). */
.fr-left-on { display: flex; align-items: center; gap: var(--sx-space-3); }
.fr-left-on .fr-thumb { width: 88px; }
.fr-thumb--line { display: flex; align-items: center; justify-content: center; background: var(--sx-well); border: 1px solid var(--sx-line-box); color: var(--sx-text-2); font-size: var(--sx-size-label); font-variant-numeric: tabular-nums; }
/* Compare, at 1440: each side's line under the still wraps inside its half, and a change label wraps inside its pair. */
.sx-compare__side .fr-caption-line { width: 100%; }
.fr-pair .sx-change { white-space: normal; align-items: flex-start; }
.fr-pair .sx-change .sx-icon { flex: none; }
/* Coordinator's notes on round 1: the player's picture shows where its 16:9 frame ends; the film page's picture
   parts use a film's wide crop, so the wide page stays one screen; the notes preview lists the other notes on its still. */
.fr-stage > .fr-still, .fr-fit > .fr-still { outline: 1px solid var(--sx-line-box); }
.fr-cover { aspect-ratio: 2.4 / 1; }
.fr-also { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sx-space-3); }
.fr-also li { display: flex; align-items: flex-start; gap: var(--sx-space-3); color: var(--sx-text-2); }
.fr-also strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.fr-also .fr-sub { display: block; }
/* Compare on a wide screen: each change in "What changed" reads on two lines, the note it answers beside it. */
.fr-changed .sx-note { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sx-space-6); align-items: center; }
.fr-changed .sx-note__head { grid-column: 1 / -1; }
.fr-changed .sx-note__foot { border-top: 0; padding-top: 0; align-items: center; }
/* Under 1280 pixels the header keeps to one line: search becomes a button, and words the page already shows fold away. */
.fr-search-button { display: none; }
@media (max-width: 1279px) {
  .fr-hide-md { display: none !important; }
  .sx-header__end .fr-search { display: none; }
  .fr-search-button { display: inline-flex; }
}
/* From 768 to 1279 pixels: a compare head stacks its picker over its line, and the strip of pairs runs in two rows of six. */
@media (max-width: 1279px) {
  .sx-compare__head { flex-direction: column; align-items: flex-start; gap: var(--sx-space-1); }
  .fr-pairs .fr-stills { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: var(--sx-space-3); }
}
/* Under 1280 pixels the film's flow keeps its 1440 proportions and scrolls sideways inside its box, gate 4 (the one
   waiting) in view; a stage name never breaks inside a word. */
@media (max-width: 1279px) {
  .fr-flow-scroll { overflow-x: auto; scrollbar-width: none; }
  .fr-film-flow .sx-track { min-width: 1120px; }
}
/* A stage's column is never narrower than its name's longest word (source/pages.mjs); the parts and the gates under
   and over it wrap to whatever width the stages leave, so they never widen a column themselves. */
.fr-film-flow .sx-track__parts, .fr-film-flow .sx-track__gate { contain: inline-size; }
/* The phone compositions (source/phone.mjs), 390 pixels wide. Parts every product could use (the sheet's three
   heights, a row that scrolls sideways, a card list's lines) are candidates for the system's review parts at handoff. */
.fr-sheet-bar { max-height: none; }
.fr-sheet-bar .sx-sheet__body { padding-bottom: var(--sx-space-4); }
.fr-scroll-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.fr-scroll-row > * { flex: none; }
.fr-phone-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-3); }
.fr-phone-pair .fr-card { padding: var(--sx-space-4); gap: var(--sx-space-2); }
.fr-phone-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sx-space-2); }
.fr-phone-actions .sx-button { justify-content: center; }
.fr-phone-column { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--sx-space-4); padding: var(--sx-space-4) var(--sx-space-4) var(--sx-space-8); }
.fr-phone-caption { margin: 0; display: flex; flex-direction: column; gap: var(--sx-space-1); padding: 0 var(--sx-space-4) var(--sx-space-3); background: var(--sx-well); color: var(--sx-text-2); font-size: var(--sx-size-data); }
.fr-phone-well .fr-still { width: 100%; }
.fr-phone-doc { padding: 0; }
.fr-phone-doc .sx-doc { padding: var(--sx-space-4); gap: var(--sx-space-3); border-radius: 0; box-shadow: none; }
.fr-phone-doc .sx-line { grid-template-columns: 40px minmax(0, 1fr); row-gap: var(--sx-space-1); }
.fr-phone-doc .sx-line__meta { grid-column: 2; flex-wrap: wrap; min-height: 0; }
.fr-phone-doc .sx-line__meta:empty { display: none; }
.fr-phone-timeline { grid-template-columns: minmax(0, 1fr); }
.fr-phone-timeline .sx-clip { padding: 0; }
/* The overview's gates as a list. */
.fr-gate-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fr-gate-row { display: flex; flex-direction: column; gap: var(--sx-space-1); padding: var(--sx-space-3) 0; border-top: 1px solid var(--sx-line-row); }
.fr-gate-row:first-child { border-top: 0; padding-top: 0; }
.fr-gate-row__head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sx-space-1) var(--sx-space-2); }
.fr-gate-row__head strong { font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.fr-gate-row__no { font-size: var(--sx-size-label); color: var(--sx-muted); }
.fr-gate-row__locks { font-size: var(--sx-size-label); color: var(--sx-text-2); }
.fr-gate-row--current { padding: var(--sx-space-3); border-radius: var(--sx-radius-control); background: var(--sx-selected);
  border-left: 2px solid var(--sx-accent); border-top-color: transparent; gap: var(--sx-space-2); }
.fr-gate-row--current + .fr-gate-row { border-top-color: transparent; }
.fr-cover-card { display: flex; flex-direction: column; gap: var(--sx-space-1); font-size: var(--sx-size-label); color: var(--sx-text-2) !important; text-decoration: none; }
.fr-cover-card strong { font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.fr-cover-card .fr-cover { margin: 0; aspect-ratio: 16 / 9; }
/* Card lists: each card's lines say what they are. */
.fr-phone-cards .fr-group th { display: block; padding: var(--sx-space-2) var(--sx-space-4); text-align: left; }
.fr-phone-cards td { display: flex !important; flex-direction: column; gap: var(--sx-space-1); }
.fr-phone-what { color: var(--sx-text); }
.fr-phone-what strong { font-weight: var(--sx-weight-medium); }
.fr-phone-note { display: flex; flex-direction: column; gap: var(--sx-space-2); }
.fr-phone-note .fr-note-text { margin: 0; }
.fr-phone-note .fr-left-on .fr-thumb { width: 72px; }
.fr-tight { gap: var(--sx-space-1); align-items: flex-start; }
.fr-phone-outcome { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sx-space-1) var(--sx-space-2); }
.fr-phone-outcome .fr-sub { width: 100%; }
.fr-phone-cards tr[aria-current="true"] { background: var(--sx-selected); border-left: 2px solid var(--sx-mark); }
.fr-phone-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sx-space-2); }
/* Strips that scroll sideways: the pairs on compare, the stills on a gate. */
.fr-phone-strip { display: flex; gap: var(--sx-space-2); overflow-x: auto; scrollbar-width: none; }
.fr-phone-strip > .fr-pair { flex: none; width: 104px; }
.fr-phone-strip--stills > .fr-pair { width: 136px; }
.fr-phone-strip--stills .fr-pic { border: 1px solid var(--sx-line-box); }
.fr-phone-strip--stills .sx-frame__count { position: absolute; right: var(--sx-space-1); bottom: var(--sx-space-1); }
.fr-phone-version { margin: 0; display: flex; flex-direction: column; gap: var(--sx-space-2); }
.fr-phone-version figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sx-space-2); }
.fr-phone-version strong { font-weight: var(--sx-weight-medium); }
.fr-phone-fold { align-self: flex-start; }
/* The beat shape as a list. */
.fr-beat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sx-space-3); }
.fr-beat-list li { display: flex; flex-direction: column; gap: var(--sx-space-1); }
.fr-beat-list strong { font-weight: var(--sx-weight-medium); }
.fr-beat-bar { position: relative; display: block; height: 6px; border-radius: var(--sx-radius-pill); background: var(--sx-selected); }
.fr-beat-bar span { position: absolute; top: 0; bottom: 0; border-radius: var(--sx-radius-pill); background: var(--sx-accent); }
.fr-phone-body { min-height: 0; }
.fr-phone-body > .sx-work { min-height: 0; overflow: hidden; }
.fr-phone-doc { flex: 1; min-height: 0; }
.fr-phone-cards tr.fr-group { padding: 0; background: var(--sx-surface); }
.fr-phone-cards tr.fr-group th { background: transparent; }
.fr-phone-timeline .sx-clip { overflow: hidden; }
.fr-phone-timeline .sx-clip .fr-art { opacity: 0.85; }
.fr-phone-timeline .sx-clip[aria-current="true"] .fr-art { opacity: 1; }
.fr-phone-scene { margin: 0; padding: var(--sx-space-2) var(--sx-space-4) 0; color: var(--sx-text-2); font-size: var(--sx-size-label); background: var(--sx-surface); }
/* The text viewer's second panel from 1920 pixels: the facts the lines stand on. */
.fr-facts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.fr-facts-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--sx-space-2); padding: var(--sx-space-2) var(--sx-space-3); border-radius: var(--sx-radius-control); font-size: var(--sx-size-data); }
.fr-facts-list li[aria-current="true"] { background: var(--sx-selected); border-left: 2px solid var(--sx-mark); }
.fr-fact-text { display: block; color: var(--sx-text); }
/* A choice of two in the header never breaks a word onto a second line. */
.sx-header__end .sx-seg button { white-space: nowrap; }
/* Design Director's notes on round 2. */
/* Films: each film's newest picture, or a plain box until it has one. */
.fr-thumb--none { display: flex; align-items: center; justify-content: center; background: var(--sx-well); border: 1px dashed var(--sx-line-control); color: var(--sx-muted); }
/* The script takes the stage's height, as a page does, rather than floating as a card. */
.fr-well-scroll > .sx-doc { min-height: 100%; }
/* A format's beat shape is one bar on a time ruler. */
.fr-beats { gap: 0; }
.fr-beat { border-radius: 0; border-left: 1px solid var(--sx-line-box); }
.fr-beat:first-child { border-left: 0; border-radius: var(--sx-radius-control) 0 0 var(--sx-radius-control); }
.fr-beat:last-child { border-radius: 0 var(--sx-radius-control) var(--sx-radius-control) 0; }
.fr-ruler { position: relative; height: 20px; border-top: 1px solid var(--sx-line-box); font-size: var(--sx-size-label); color: var(--sx-muted); font-variant-numeric: tabular-nums; }
.fr-ruler span { position: absolute; top: 4px; transform: translateX(-50%); white-space: nowrap; }
.fr-ruler span:first-child { transform: none; }
.fr-ruler span:last-child { transform: translateX(-100%); }
/* Marks that would touch on a timeline: the later one sits in a second row, each at its own time. */
.fr-phone-timeline .sx-timeline__lane--marks { height: 48px; }
.fr-phone-timeline .sx-timeline__lane--marks .sx-mark { top: 22px; }
.fr-phone-timeline .sx-timeline__lane--marks .sx-mark.fr-mark-up { top: 0; }
/* On a phone the playhead starts under the notes lane, so its handle never sits among the marks. */
.fr-phone-timeline .sx-playhead { top: 56px; }
.sx-empty a.sx-button { text-decoration: none; }

/* Other states of the film page and the gate page (source/states.mjs). */
.fr-pic--waiting { background: var(--sx-well); border: 1px dashed var(--sx-line-box); }
.fr-pic-tag { position: absolute; left: var(--sx-space-1); top: var(--sx-space-1); }
.fr-stale .fr-art { opacity: 0.5; }
.fr-band__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--sx-space-5); }
.fr-band__grid > div { display: flex; flex-direction: column; gap: var(--sx-space-2); min-width: 0; }
.fr-band__grid .fr-label, .fr-dialog .fr-label { margin: 0; }
.fr-checks { margin-top: var(--sx-space-3); }
.fr-thumb--tall { width: 30px; aspect-ratio: 9 / 16; }
.fr-renditions { margin: 0; padding: 0; list-style: none; }
.fr-history { display: flex; flex-direction: column; gap: var(--sx-space-2); margin: 0; padding: 0; list-style: none; color: var(--sx-text-2); }
.fr-history li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--sx-space-2); }
.fr-history strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.fr-dialog { width: 560px; display: flex; flex-direction: column; gap: var(--sx-space-4); }
.fr-versus { max-width: 960px; }
.fr-versus figure { margin: 0; display: flex; flex-direction: column; gap: var(--sx-space-1); font-size: var(--sx-size-label); color: var(--sx-text-2); }
.fr-versus .fr-pic { position: relative; aspect-ratio: 16 / 9; border-radius: var(--sx-radius-control); overflow: hidden; border: 1px solid var(--sx-line-box); }
@media (max-width: 1279px) { .fr-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* A page drawn with a confirmation open: one screen high, the page behind it still. */
.fr-modal, .fr-modal .sx-app { height: 100vh; overflow: hidden; }

/* Views (DEC-FILM-20261116-02): the same page without the header and left menu, built from 320 pixels to full screen.
   A view's file holds the page at both of its layouts, the wide one from 768 pixels and the one-column one below it,
   and shows the one its width calls for; the build makes one page that lays itself out (container queries). */
.fr-at-wide, .fr-at-narrow { display: contents; }
@media (max-width: 767px) { .fr-at-wide { display: none; } }
@media (min-width: 768px) { .fr-at-narrow { display: none; } }
/* The fact behind the chosen line, open under it (the text viewer beside the chat). */
.fr-fact-open { grid-column: 2 / -1; display: flex; flex-direction: column; gap: var(--sx-space-1); margin: var(--sx-space-2) 0 var(--sx-space-1);
  padding: var(--sx-space-3); border-radius: var(--sx-radius-control); background: var(--sx-raised); border: 1px solid var(--sx-line-box); }
.fr-fact-open p { margin: 0; color: var(--sx-text); font-size: var(--sx-size-data); }
.fr-fact-open__head { display: flex; align-items: center; gap: var(--sx-space-2); font-size: var(--sx-size-label); color: var(--sx-text-2); }
.fr-fact-open__head strong { font-weight: var(--sx-weight-medium); color: var(--sx-text); }
@media (min-width: 1920px) { .fr-fact-open { display: none; } }
.fr-phone-doc .fr-fact-open { grid-column: 1 / -1; }
/* A view in one column (beside the chat, 320 to 767 pixels): the picture keeps to about a third of the height, so the
   transport, the strip and the notes sheet stay in view at any width; the bar never wraps, the version tag folding
   away on the narrowest; a compared line sets its words under its number, as a script does on a phone. */
.sx-view .fr-phone-well .fr-still { width: min(100%, 36vh * 16 / 9); }
.fr-phone-context .fr-context-title { flex: 0 1 auto; min-width: 0; }
/* In the one-column bar the way to the web is its icon alone, a square target, and the spacer costs no gap, so a
   part's name fits beside its two-way switch at 320 pixels. */
.sx-view .fr-phone-context .sx-viewbar__web { flex: none; width: var(--sx-target, var(--sx-control-height)); padding: 0; justify-content: center; }
.fr-phone-context .fr-gap { display: none; }
.fr-phone-context > .fr-gap + * { margin-left: auto; }
.fr-phone-context .sx-tag { white-space: nowrap; }
@media (max-width: 399px) { .sx-view .fr-phone-context .sx-tag { display: none; } }
.fr-phone-column .sx-line { grid-template-columns: 40px minmax(0, 1fr); row-gap: var(--sx-space-1); }
.fr-phone-column .sx-line__meta { grid-column: 2; min-height: 0; }

/* A tool in a sheet's bar (phone, and a view under 768 pixels) carries a short word beside its icon, so it is named
   on screen as well as to a screen reader; still 40 pixels high. The bar's caption gives way first. */
.sx-tool.fr-sheet-tool { width: auto; gap: var(--sx-space-1); padding: 0 var(--sx-space-3); font-size: var(--sx-size-label); font-weight: var(--sx-weight-medium); }
.sx-sheet__bar .sx-caption { flex: 0 1 auto; min-width: 0; }

/* The last 21 states (source/states-more.mjs). */
/* A part read as a document (the brief, the sources, the facts): its sections as paragraphs, lists and the one line to remember. */
.fr-doc-text { margin: 0; color: var(--sx-text); font-size: var(--sx-size-body); line-height: var(--sx-leading); }
.fr-doc-list { color: var(--sx-text); font-size: var(--sx-size-body); }
.fr-doc-quote { margin: 0; padding: var(--sx-space-3) var(--sx-space-4); border-left: 2px solid var(--sx-accent); border-radius: 0 var(--sx-radius-control) var(--sx-radius-control) 0;
  background: var(--sx-selected); color: var(--sx-text); font-size: var(--sx-size-body); line-height: var(--sx-leading); }
.fr-doc-cols { gap: var(--sx-space-6); }
.fr-doc-cols > div { display: flex; flex-direction: column; gap: var(--sx-space-3); }
.fr-doc-wide { max-width: 1080px; }
.fr-strong { display: block; color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.fr-warn-text { color: var(--sx-attention-text); }
.fr-notes-none { padding: var(--sx-space-3) 0; }
.fr-notes-none p { margin: 0; font-size: var(--sx-size-data); }
.fr-gate-needs { font-size: var(--sx-size-data); }
/* Shots as a list: the chosen shot opens its prompt under it, across the line. */
.fr-shot .sx-line__text { min-width: 0; }
.fr-prompt { grid-column: 2 / -1; display: flex; flex-direction: column; gap: var(--sx-space-3); margin: var(--sx-space-2) 0 var(--sx-space-2);
  padding: var(--sx-space-4); border-radius: var(--sx-radius-control); background: var(--sx-raised); border: 1px solid var(--sx-line-box); }
.fr-prompt__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sx-space-1) var(--sx-space-2); color: var(--sx-text); font-size: var(--sx-size-data); }
.fr-prompt__head > .sx-icon { align-self: center; color: var(--sx-muted); }
.fr-prompt__head strong { font-weight: var(--sx-weight-medium); }
.fr-prompt__head .fr-sub { display: inline; }
.fr-prompt__text { font-size: var(--sx-size-data); }
/* The wireframe: a grey card per scene, what is on screen as labelled boxes. Never a picture. */
.fr-grey { position: absolute; inset: 0; background: var(--sx-well); }
.fr-grey--big { position: relative; inset: auto; width: 100%; height: 100%; border-radius: var(--sx-radius-control); }
.fr-grey--big .fr-shape { border-radius: var(--sx-radius-control); padding: var(--sx-space-1); }
/* The paper cut: one card per beat, its words and one line of picture, never a still. */
.fr-paper { display: flex; flex-direction: column; gap: var(--sx-space-3); padding: var(--sx-space-4); border-radius: var(--sx-radius-control);
  background: var(--sx-raised); border: 1px solid var(--sx-line-box); }
.fr-paper--big { position: absolute; inset: 0; justify-content: center; gap: var(--sx-space-5); padding: var(--sx-space-10); }
.fr-paper__head { display: flex; align-items: baseline; gap: var(--sx-space-3); font-size: var(--sx-size-label); font-weight: var(--sx-weight-medium);
  letter-spacing: var(--sx-tracking-caps); text-transform: uppercase; color: var(--sx-muted); }
.fr-paper__head > :last-child { margin-left: auto; }
.fr-paper__words { margin: 0; color: var(--sx-text); font-size: var(--sx-size-title); line-height: var(--sx-leading-tight); }
.fr-paper--big .fr-paper__words { font-size: var(--sx-size-display); font-weight: var(--sx-weight-light); }
.fr-paper__picture { display: flex; align-items: center; gap: var(--sx-space-2); margin: 0; color: var(--sx-text-2); font-size: var(--sx-size-body); }
.fr-paper__picture > .sx-icon { flex: none; color: var(--sx-muted); }
.fr-paper-mini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--sx-space-1);
  background: var(--sx-raised); color: var(--sx-text-2); font-size: var(--sx-size-label); }
/* Audio only: the voice's wave across the stage, the line under the playhead beneath it. */
.fr-audio { width: 100%; display: flex; flex-direction: column; gap: var(--sx-space-4); padding: var(--sx-space-8); border-radius: var(--sx-radius-card);
  background: var(--sx-raised); border: 1px solid var(--sx-line-box); }
.fr-audio__wave { position: relative; height: 160px; }
.fr-audio__head { position: absolute; top: calc(-1 * var(--sx-space-2)); bottom: calc(-1 * var(--sx-space-2)); width: 2px; transform: translateX(-50%); background: var(--sx-accent); }
.fr-audio__line { display: flex; align-items: baseline; gap: var(--sx-space-3); margin: 0; color: var(--sx-text); font-size: var(--sx-size-title); }
.fr-audio__line .sx-caption { flex: none; }
.fr-fit > .fr-audio { max-width: 1080px; }
/* An asset's run, in the panel. */
.fr-run { margin-bottom: var(--sx-space-4); }
/* A library item's steps, in order, as one row. */
.fr-steps { display: grid; gap: var(--sx-space-3); margin: 0; padding: 0; list-style: none; }
.fr-step { position: relative; display: flex; flex-direction: column; gap: var(--sx-space-1); padding: var(--sx-space-4); border-radius: var(--sx-radius-card);
  background: var(--sx-raised); border: 1px solid var(--sx-line-box); font-size: var(--sx-size-data); }
.fr-step strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.fr-step__no { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-bottom: var(--sx-space-1); border-radius: var(--sx-radius-pill);
  border: 1px solid var(--sx-line-control); color: var(--sx-text-2); font-size: var(--sx-size-label); font-variant-numeric: tabular-nums; }
/* A style profile's colours: each a swatch of the film's own colour (film-skin.css), its name and what it is for. */
.fr-swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--sx-space-4); }
.fr-swatch { display: flex; flex-direction: column; gap: var(--sx-space-1); font-size: var(--sx-size-data); }
.fr-swatch strong { color: var(--sx-text); font-weight: var(--sx-weight-medium); }
.fk-swatch { display: block; aspect-ratio: 3 / 2; margin-bottom: var(--sx-space-2); border-radius: var(--sx-radius-control); border: 1px solid var(--sx-line-box); }
.fr-frame-fig { margin: 0; display: flex; flex-direction: column; gap: var(--sx-space-2); font-size: var(--sx-size-label); color: var(--sx-text-2); }
.fr-frame-fig .fr-scene-pic { border: 1px solid var(--sx-line-box); }
/* The paper cut's card filling a small picture (a view beside the chat). */
.fr-paper--fill { position: absolute; inset: 0; justify-content: center; gap: var(--sx-space-2); padding: var(--sx-space-4); border-radius: 0; border: 0; }
.fr-paper--fill .fr-paper__words { font-size: var(--sx-size-body); }
.fr-paper--fill .fr-paper__picture { font-size: var(--sx-size-label); }
.fr-phone-doc .fr-prompt { grid-column: 1 / -1; }
/* Gate 5: the cut large with its checks beside it, a bar under it to play it and see where the notes were. */
.fr-cut-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: var(--sx-space-6); align-items: start; }
.fr-cut-play { display: flex; flex-direction: column; gap: var(--sx-space-3); }
.fr-cut { position: relative; aspect-ratio: 16 / 9; border-radius: var(--sx-radius-control); overflow: hidden; border: 1px solid var(--sx-line-box); }
.fr-cut--narrow .fr-subtitle { bottom: var(--sx-space-2); width: 90%; font-size: var(--sx-size-label); }
.fr-cut-bar { display: flex; align-items: center; gap: var(--sx-space-3); min-width: 0; }
.fr-cut-bar__track { position: relative; flex: 1; min-width: 48px; height: 4px; border-radius: var(--sx-radius-pill); background: var(--sx-line-control); }
.fr-cut-bar__track > span:first-child { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--sx-accent); }
.fr-cut-bar__track .sx-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); }
.fr-cut-bar .sx-button { flex: none; text-decoration: none; }
.fr-cut-checks { display: flex; flex-direction: column; gap: var(--sx-space-3); }
.fr-cut-checks .fr-label { margin: 0; }
@media (max-width: 1023px) { .fr-cut-split { grid-template-columns: minmax(0, 1fr); } }
/* Beside the chat at its narrowest, the player's time keeps to one line: the time now, without the length. */
@media (max-width: 399px) { .sx-view .sx-transport__time { white-space: nowrap; } .sx-view .sx-transport__time > span { display: none; } }
/* A note being written on a line opens under it, across the line, inside the text column at any width. */
.sx-line > .fr-line-composer { grid-column: 2 / -1; margin: var(--sx-space-2) 0 var(--sx-space-1); }
.fr-phone-doc .sx-line > .fr-line-composer { grid-column: 1 / -1; }
.fr-line-composer .sx-composer__foot { flex-wrap: wrap; }
/* Inside an assistant the one-column bar drops its way back too (the assistant's own bar closes the view); closing a
   compare keeps its words, so it is never taken for the assistant's close. */
.sx-host .fr-phone-context > a:first-child { display: none; }
.fr-host-words { display: none; }
.sx-host .sx-icon-button.fr-close-compare { width: auto; gap: var(--sx-space-1); padding: 0 var(--sx-space-2); white-space: nowrap; flex: none; }
.sx-host .fr-close-compare .fr-host-words { display: inline; }
/* A tool's name drawn showing, as when pointed at (the board viewer's view shows it once, for the picture). The
   rule itself is in signal-osx-views.css. */
.sx-rail .sx-tool.fr-tip-shown::after { content: attr(aria-label); position: absolute; z-index: 20; left: calc(100% + var(--sx-space-3)); top: 50%;
  transform: translateY(-50%); padding: var(--sx-space-1) var(--sx-space-2); border-radius: var(--sx-radius-control); background: var(--sx-raised); box-shadow: var(--sx-shadow-menu);
  color: var(--sx-text); font-size: var(--sx-size-label); font-weight: var(--sx-weight-regular); white-space: nowrap; pointer-events: none; }
/* In a view one column wide, with the notes sheet half open, the picture keeps to under a quarter of the height and
   the sheet to under half, so the caption and the strip stay above the sheet in an assistant's shorter frame. */
.sx-view .fr-sheet-half { max-height: 44%; }
/* In a view one column wide the sheet sits in the flow under the work, not over it, and the picture's stage takes the
   height that is left: nothing hides under the sheet, and no band is left empty, in a frame of any height. The picture
   fits its stage both ways (container units); a paper cut's card, being words, fills it. */
.sx-view .fr-phone-body > .sx-work { flex: 1 1 auto; display: flex; flex-direction: column; }
.sx-view .fr-phone-body > .sx-work > :not(.fr-phone-well):not(.fr-well-scroll):not(.fr-phone-column) { flex: none; }
.sx-view .fr-phone-body > .sx-work > .fr-well-scroll { flex: 1 1 auto; min-height: 0; }
/* A one-column page in a view (compare) scrolls under its bar, which stays at the top. */
.sx-view .fr-phone-body > .sx-work > .fr-phone-column { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sx-view .fr-phone-body > .sx-sheet { position: relative; flex: 0 1 auto; }
.sx-view .fr-phone-body > .sx-work > .fr-phone-well { flex: 1 1 auto !important; min-height: 25%; container-type: size; display: flex; align-items: center; justify-content: center; }
.sx-view .fr-phone-body > .sx-work > .fr-phone-well .fr-still { width: min(100cqw, 100cqh * 16 / 9); }
.sx-view .fr-phone-body > .sx-work > .fr-phone-well .fr-still:has(> .fr-paper--fill) { width: 100cqw; height: 100cqh; aspect-ratio: auto; }
/* A note being written in a view one column wide: its field is as tall as the note's own lines and grows as the note
   does, so no line is ever cut (field-sizing). In a frame
   under 700 pixels high (a phone, full screen in an assistant) the play controls and the timeline fold away until the
   note is saved or cancelled, so the picture keeps the width and the pin it is about stays large enough to see; the
   note's time is in its head. */
.sx-view .fr-phone-body .sx-composer--docked .sx-textarea { min-height: 0; field-sizing: content; }
@media (max-height: 699px) { .sx-view .fr-phone-body:has(.sx-composer--docked) .fr-fold-writing { display: none; } }
/* A compared line, one column: one label says the version and whether it is before or after. */
.fr-phone-column .sx-line.fr-versioned { grid-template-columns: minmax(0, 1fr); }
.fr-phone-column .sx-line.fr-versioned .sx-line__meta { grid-column: 1; }
/* Gate 5 in a view: the cut and its play controls fit the first screen above the assistant's message box (the edges
   it covers, --sx-safe-top and --sx-safe-bottom), with the page's head above them; the checks keep their column. */
@media (min-width: 1024px) {
  .sx-view .fr-cut-split { display: flex; align-items: flex-start; }
  .sx-view .fr-cut-split > .fr-cut-play { flex: none; min-width: 40%; max-width: 66%;
    width: calc((100vh - var(--sx-safe-top, 0vh) - var(--sx-safe-bottom, 0vh) - var(--sx-space-10) * 9) * 16 / 9); }
  .sx-view .fr-cut-split > .fr-cut-checks { flex: 1 1 0; min-width: 0; }
  /* Nothing starts behind the message box: the card after the cut begins a box's height lower, below the first
     screen, so what follows reads as more to scroll and never as a heading cut off by the box. */
  .sx-view .fr-cut-card { margin-bottom: var(--sx-safe-bottom, 0vh); }
}
/* A chosen line opened into view keeps a little room above it. */
.sx-line--noted { scroll-margin-top: var(--sx-space-4); }
/* The film page scrolls as one page. From 1280 pixels (where the flow does not scroll sideways in its own box) the
   flow's stage line stays at the top of the screen while the parts move up beneath it, so every part stays under its
   stage; the gates above it scroll away with the page's head. Under 1280 the line scrolls with the page. */
@media (min-width: 1280px) {
  /* The band behind the line reaches above and below each stage only, never sideways: a band that reached sideways
     painted over the end of the stage name beside it (the Thai stage 3 and 7, 16 November 2026). */
  .fr-film-flow .sx-track__step { position: sticky; top: var(--sx-space-2); z-index: 3; background: var(--sx-raised);
    box-shadow: 0 calc(0px - var(--sx-space-2)) 0 var(--sx-raised), 0 var(--sx-space-2) 0 var(--sx-raised); }
}
/* The parts sheets (source/parts.mjs): each proposed part on its own, named with the classes a build uses and its one
   rule, in the dark and the light look. */
.fr-spec-sheet { gap: var(--sx-space-8); }
.fr-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-8) var(--sx-space-10); align-items: start; }
.fr-spec { display: flex; flex-direction: column; gap: var(--sx-space-3); min-width: 0; }
.fr-spec--wide { grid-column: 1 / -1; }
.fr-spec__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sx-space-1) var(--sx-space-3); }
.fr-spec__classes { color: var(--sx-muted); }
.fr-spec__body { min-width: 0; }
.fr-spec__rule { margin: 0; max-width: 72ch; color: var(--sx-text-2); }
.fr-spec-box { border: 1px solid var(--sx-line-box); border-radius: var(--sx-radius-card); background: var(--sx-raised); overflow: hidden; }
.fr-film-flow.fr-spec-box { padding: var(--sx-space-4); }
.fr-spec-doc { box-shadow: none; border: 1px solid var(--sx-line-box); }
.fr-spec-compare { padding: 0; border-radius: var(--sx-radius-card); overflow: hidden; }
.fr-spec-versions { display: flex; flex-direction: column; gap: var(--sx-space-3); }
.fr-spec-label { margin: 0; display: flex; align-items: baseline; gap: var(--sx-space-2); min-width: var(--sx-space-10); font-size: var(--sx-size-label); font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.fr-spec-versions .fr-spec-label { width: calc(var(--sx-space-10) * 2); }
.fr-spec-strip { overflow: hidden; }
.fr-spec-rail { display: flex; align-items: stretch; gap: var(--sx-space-8); }
.fr-spec-rail .sx-rail { min-height: calc(var(--sx-space-10) * 9); border: 1px solid var(--sx-line-box); border-radius: var(--sx-radius-card); }
.fr-spec-icon { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sx-space-2); }
.fr-spec-icon__big .sx-icon { width: var(--sx-space-10); height: var(--sx-space-10); color: var(--sx-text); }
.fr-spec-menu-box { position: relative; }
.fr-spec-menu { position: static; width: auto; max-width: calc(var(--sx-space-10) * 9); }
.fr-spec-checks { display: flex; flex-direction: column; gap: var(--sx-space-3); max-width: 560px; }
.fr-spec-sum { margin: 0; }
.fr-spec-values { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-4); }
.fr-spec-values li { display: flex; align-items: flex-start; gap: var(--sx-space-3); }
.fr-spec-values li > span:last-child { display: flex; flex-direction: column; gap: var(--sx-space-1); }
.fr-spec-values code { font-size: var(--sx-size-label); color: var(--sx-text); }
.fr-spec-value__mark { position: relative; flex: none; width: var(--sx-mark-size); height: var(--sx-mark-size); display: inline-flex; }
.fr-spec-value__mark .sx-mark { position: static; transform: none; }
.fr-spec-fill { width: var(--sx-mark-size); height: var(--sx-mark-size); border: 1px solid var(--sx-mark); background: var(--sx-mark-fill); }
.fr-spec-steps { font-weight: var(--sx-weight-medium); color: var(--sx-text); }
.fr-framed { overflow: hidden; border: 1px solid var(--sx-line-box); border-radius: var(--sx-radius-card); }
.fr-framed iframe { display: block; border: 0; transform-origin: 0 0; }
.fr-spec-bars { display: flex; flex-direction: column; gap: var(--sx-space-2); }
.fr-spec-bar { border: 1px solid var(--sx-line-box); border-radius: var(--sx-radius-control); overflow: hidden; background: var(--sx-bg); }
.fr-spec-bar .sx-viewbar { position: static; }
.fr-spec-bar--narrow { width: calc(var(--sx-space-10) * 8); }
.fr-spec-bars .sx-caption + .fr-spec-bar { margin-top: var(--sx-space-2); }
.fr-spec-stage { border-radius: var(--sx-radius-card); overflow: hidden; }
.fr-spec-well { padding: var(--sx-space-4); }
.fr-spec-stage .fr-still { width: 100%; }
.fr-spec-stage .fr-phone-caption { padding-top: 0; }
.fr-spec-wholes { display: grid; grid-template-columns: repeat(2, max-content); gap: var(--sx-space-3) var(--sx-space-8); }
.fr-spec-whole { display: flex; flex-direction: column; gap: var(--sx-space-1); }
.fr-spec-whole > div { padding: var(--sx-space-1) var(--sx-space-2); border: 1px dashed var(--sx-line-field); border-radius: var(--sx-radius-control); box-sizing: content-box; }
.fr-spec-width { font-size: var(--sx-size-label); color: var(--sx-muted); }
.fr-spec-clip { padding: 0 var(--sx-space-1); border: 1px solid var(--sx-line-control); border-radius: var(--sx-radius-control); font-size: var(--sx-size-label); }
.fr-spec-hscroll { width: calc(var(--sx-space-10) * 10); }
.fr-spec-states { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sx-space-6) var(--sx-space-8); align-items: start; }
.fr-spec-state { display: flex; flex-direction: column; gap: var(--sx-space-2); min-width: 0; }
.fr-spec-state .fr-static .sx-dialog { max-width: none; width: auto; }
.fr-spec--rules .fr-list { max-width: 120ch; }
.fr-spec-railbox { padding-left: var(--sx-space-2); border: 1px solid var(--sx-line-box); border-radius: var(--sx-radius-card); background: var(--sx-raised); }
.fr-spec-rail .sx-rail { min-height: calc(var(--sx-space-10) * 7); border: 0; border-radius: 0; }
.fr-spec-values code { font-family: inherit; font-weight: var(--sx-weight-medium); }
.fr-spec--values .fr-spec-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fr-spec-stack { display: flex; flex-direction: column; gap: var(--sx-space-8); min-width: 0; }
.fr-spec-bars .fr-framed { border-radius: var(--sx-radius-control); }
