/* The four-pane shell (web/shell.py, PAP-81).

   Under the title bar, left to right: the nav (1), Indy (2), the page (3)
   and the controls (4); with ?chat=rhs (kept per browser) Indy sits on the
   right: nav, page, controls, Indy. The canvas's widths are the defaults; a
   drag on a splitter sets --sh-nav / --sh-indy / --sh-ctl on <html>
   (shell.js), and a fold is a class on <html> (sh-fold-nav, ip-closed for
   Indy, sh-fold-ctl) that narrows the pane's COLUMN (--sh-*-col) to a
   strip whatever width was dragged. Both come back before the first paint
   from localStorage 'indy.shell'.

   The page keeps the document's own scroll, as every room expects (sticky
   inspectors, keep-place.js): the side panes stick under the header and
   scroll inside themselves. A full-bleed tool (body.page-canvas) keeps its
   100vh column; the shell then fills what the header leaves. */

:root {
  --sh-nav: 248px; --sh-indy: clamp(280px, calc(50vw - 360px), 360px); --sh-ctl: 320px; --sh-fold: 48px; --sh-gap: 7px; --sh-top: 0px;
  --sh-nav-col: var(--sh-nav); --sh-indy-col: var(--sh-indy); --sh-ctl-col: var(--sh-ctl);
}
html.sh-fold-nav { --sh-nav-col: var(--sh-fold); }
html.ip-closed  { --sh-indy-col: var(--sh-fold); }
html.sh-fold-ctl { --sh-ctl-col: var(--sh-fold); }
/* The controls pane is there only when a page has controls (Didier,
   2026-10-14): a shot's bench, the board's inspector once a panel is
   picked, the scene's and the picture's inspectors, the script's notes. It
   comes in open; a fold lasts the page. Empty, it and its splitter are gone. */
html.sh-ctl-none .shell {
  grid-template-columns: var(--sh-nav-col) var(--sh-gap) var(--sh-indy-col) var(--sh-gap) minmax(0, 1fr);
  grid-template-areas: "nav s1 indy s2 page";
}
html.sh-ctl-none.sh-chat-rhs .shell {
  grid-template-columns: var(--sh-nav-col) var(--sh-gap) minmax(0, 1fr) var(--sh-gap) var(--sh-indy-col);
  grid-template-areas: "nav s1 page s2 indy";
}
html.sh-ctl-none .shell-ctl, html.sh-ctl-none .shell-split[data-split="s3"] { display: none; }
/* Before sign-in (shell.build_signed_out): the nav and the page, no Indy. */
html.sh-out .shell {
  grid-template-columns: var(--sh-nav-col) var(--sh-gap) minmax(0, 1fr);
  grid-template-areas: "nav s1 page";
}
html.sh-out .shell-indy, html.sh-out .shell-split[data-split="s2"] { display: none; }
/* the sign-in card (login.html), in the shell's own type and paper button */
.signin {
  max-width: 24rem; margin: 16vh auto 2rem; padding: 1.75rem 1.75rem 1.5rem; box-sizing: border-box;
  background: var(--g2); border: 1px solid var(--line); border-radius: 10px;
}
.signin h1 { margin: 0 0 .6rem; font: 500 1.35rem/1.25 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); }
.signin p { margin: 0; font: 400 .92rem/1.5 var(--body); color: var(--ink-dim); }
.signin .signin__go { display: flex; justify-content: center; width: 100%; margin-top: 1.25rem; box-sizing: border-box; }
.signin p.signin__note { margin-top: 1rem; font-size: .8rem; color: var(--ink-faint); }

/* ---- the frame ----------------------------------------------------------- */
/* No title bar under the shell (Didier, 2026-10-14): pane 1 carries the
   mark, the film's name, the parts and your account. */
html body.has-shell > .site-header { display: none; }
.shell {
  display: grid; align-items: start;
  grid-template-columns: var(--sh-nav-col) var(--sh-gap) var(--sh-indy-col) var(--sh-gap) minmax(0, 1fr) var(--sh-gap) var(--sh-ctl-col);
  grid-template-areas: "nav s1 indy s2 page s3 ctl";
  min-height: calc(100vh - var(--sh-top));
}
/* the chat on the right (?chat=rhs): nav, the page, the controls, Indy */
html.sh-chat-rhs .shell {
  grid-template-columns: var(--sh-nav-col) var(--sh-gap) minmax(0, 1fr) var(--sh-gap) var(--sh-ctl-col) var(--sh-gap) var(--sh-indy-col);
  grid-template-areas: "nav s1 page s2 ctl s3 indy";
}
.shell-nav { grid-area: nav; } .shell-indy { grid-area: indy; } .shell-page { grid-area: page; } .shell-ctl { grid-area: ctl; }
.shell-split[data-split="s1"] { grid-area: s1; } .shell-split[data-split="s2"] { grid-area: s2; } .shell-split[data-split="s3"] { grid-area: s3; }
/* The page-flow pages (script, brief, develop, flow) are a viewport-tall
   column like the canvas: body.page-flow hides the window's scroll, so the
   shell must fit the window and the paper scrolls inside it. Without this the
   page pane grows to the whole script and nothing scrolls (2026-10-16). */
body.page-canvas .shell, body.page-flow .shell { flex: 1; min-height: 0; align-items: stretch; }
.shell-pane { min-width: 0; box-sizing: border-box; }
.shell-nav, .shell-indy, .shell-ctl {
  position: sticky; top: var(--sh-top); height: calc(100vh - var(--sh-top));
  overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: transparent transparent;
  display: flex; flex-direction: column;
  background: var(--g2); color: var(--ink); font-family: var(--body);
}
.shell-nav:hover, .shell-indy:hover, .shell-ctl:hover { scrollbar-color: rgba(239,230,214,.22) transparent; }
.shell-page { display: flex; flex-direction: column; min-height: calc(100vh - var(--sh-top)); }
body.page-canvas .shell-page, body.page-flow .shell-page { min-height: 0; }
body.page-canvas .shell-page > main, body.page-flow .shell-page > main { flex: 1; min-height: 0; }

/* the page's own width rule holds inside its pane */
body.has-shell main { width: 100%; }

/* ---- the splitters ------------------------------------------------------- */
.shell-split {
  position: sticky; top: var(--sh-top); height: calc(100vh - var(--sh-top));
  cursor: col-resize; background: var(--g1); user-select: none; touch-action: none;
  box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line);
}
.shell-split:hover, .shell-split:focus-visible, .shell-split.is-live { background: var(--g4); outline: none; }
.shell-split.is-idle { cursor: default; }
body.sh-dragging { cursor: col-resize; user-select: none; }
body.sh-dragging iframe, body.sh-dragging canvas { pointer-events: none; }

/* ---- a pane's head and fold ---------------------------------------------- */
.shell-head {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 44px; padding: 0 .5rem 0 1rem; flex: none;
  border-bottom: 1px solid var(--line);
  font: 500 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim);
}
.shell-head__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-fold {
  flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px;
  background: none; color: var(--ink-faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.shell-fold:hover { background: var(--g4); color: var(--ink); }
.shell-fold:focus-visible { outline: 2px solid var(--chrome); outline-offset: -2px; }
.shell-fold .icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The chevron points at the edge the pane folds to; folded, away from it,
   as the way back. The glyph points right. The nav is always on the left,
   the controls on the right, Indy on whichever side the chat is. */
.shell-nav .shell-fold .icon { transform: rotate(180deg); }
html.sh-fold-nav .shell-nav .shell-fold .icon { transform: none; }
.shell-ctl .shell-fold .icon { transform: none; }
html.sh-fold-ctl .shell-ctl .shell-fold .icon { transform: rotate(180deg); }
.shell-indy .shell-fold .icon { transform: rotate(180deg); }
html.ip-closed .shell-indy .shell-fold .icon { transform: none; }
html.sh-chat-rhs .shell-indy .shell-fold .icon { transform: none; }
html.sh-chat-rhs.ip-closed .shell-indy .shell-fold .icon { transform: rotate(180deg); }

/* folded: the head stands on end, the rest is gone */
html.sh-fold-nav .shell-nav > :not(.shell-head):not(.shell-film):not(.shell-foot),
html.ip-closed .shell-indy > :not(.shell-head),
html.sh-fold-ctl .shell-ctl > :not(.shell-head) { display: none; }
html.sh-fold-nav .shell-nav .shell-head,
html.ip-closed .shell-indy .shell-head,
html.sh-fold-ctl .shell-ctl .shell-head { flex-direction: column; justify-content: flex-start; padding: .5rem 0; border-bottom: 0; gap: .75rem; }
html.sh-fold-nav .shell-nav .shell-head__name,
html.ip-closed .shell-indy .shell-head__name,
html.sh-fold-ctl .shell-ctl .shell-head__name { writing-mode: vertical-rl; order: 2; max-height: 40vh; }

/* Indy's head carries the tally light, pushed against the fold. Folded, the
   head stands on end: the fold, the light (a dot, no count), the name. */
.shell-indy .shell-head .tally-anchor { display: inline-flex; margin-left: auto; }
.shell-indy .shell-head .tally { height: 28px; }
html.ip-closed .shell-indy .shell-head .tally-anchor { margin-left: 0; order: 1; }
html.ip-closed .shell-indy .shell-head .tally-count { display: none; }

/* ---- 1 · the nav ---------------------------------------------------------- */
/* first row: the mark, the fold */
.shell-top { padding-left: .75rem; gap: .35rem; }
.shell-brand { display: inline-flex; align-items: center; margin-right: auto; opacity: .9; }
.shell-brand:hover { opacity: 1; }
.shell-brand img { display: block; width: 22px; height: 22px; }
/* The side menu's type (Brett, 2026-11-17, vault/196 direction A): one family
   (Barlow, numbers tabular, no mono), four sizes (15, 14, 13, 11 px), two lines.
   Keycaps, scene numbers and the mark start on the first line (--nv-gut); every
   word starts on the second (--nv-txt), pictures included. Every chevron sits at
   the right edge, a count just before it, shown only while its group is folded.
   Capitals only on the parts. */
.shell-nav { --nv-gut: 1rem; --nv-mk: 1.25rem; --nv-gap: .625rem; --nv-txt: calc(var(--nv-gut) + var(--nv-mk) + var(--nv-gap)); --nv-end: calc(.55rem + 6px); }
/* the film's name, a menu: overview, all films, rename */
.shell-film { flex: none; border-bottom: 1px solid var(--line); }
.shell-film__name {
  list-style: none; display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  min-height: 48px; padding: 0 var(--nv-end) 0 var(--nv-gut); cursor: pointer;
  font: 600 .9375rem/1.25 var(--body); color: var(--paper-ink);
}
.shell-film__name::-webkit-details-marker { display: none; }
.shell-film__name:hover { background: var(--g3); }
.shell-film__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-film__caret { flex: none; width: 12px; height: 12px; fill: none; stroke: var(--ink-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform .15s; }
.shell-film[open] > .shell-film__name .shell-film__caret, .shell-account[open] > .shell-account__name .shell-film__caret { transform: rotate(-90deg); }
.shell-film__menu { display: flex; flex-direction: column; padding: 0 0 .5rem; }
.shell-film__item {
  display: block; width: 100%; box-sizing: border-box; text-align: left; padding: .375rem 1rem .375rem var(--nv-txt); border: 0; background: none; cursor: pointer;
  color: var(--ink); text-decoration: none; font: 400 .875rem/1.3 var(--body);
}
.shell-film__item:hover { background: var(--g3); color: var(--paper-ink); }
/* the seven parts: one open, the rest a name */
.shell-parts { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: .25rem 0 .75rem; scrollbar-width: thin; scrollbar-color: transparent transparent; }
.shell-parts:hover { scrollbar-color: rgba(239,230,214,.22) transparent; }
.shell-part { border-top: 1px solid rgba(239,230,214,.06); }
.shell-part:first-child { border-top: 0; }
/* the head: the part's name (a link to its overview) and, beside it, the
   chevron that opens or folds the part on the page you are on */
.shell-part__bar { display: flex; align-items: center; padding-right: .55rem; }
.shell-part__bar:hover { background: var(--g3); }
.shell-part__head {
  display: flex; align-items: center; gap: var(--nv-gap); flex: 1 1 auto; min-width: 0; box-sizing: border-box;
  padding: .625rem .25rem .625rem var(--nv-gut); border: 0; background: none; cursor: pointer; text-align: left; text-decoration: none;
  font: 600 .6875rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim);
}
.shell-part__head.is-later { cursor: default; color: var(--ink-ghost); }
.shell-part__head.is-later:hover { color: var(--ink-ghost); }
.shell-part__head:hover { color: var(--ink); }
.shell-part__head:focus-visible, .shell-part__fold:focus-visible { outline: 2px solid var(--chrome); outline-offset: -2px; }
.shell-part__head[aria-current] { color: var(--paper-ink); }   /* the part you are in, open or folded */
.shell-part.is-later .shell-part__head { color: var(--ink-ghost); }
/* the part's key, a keycap like the ? list's (.shell-keys kbd), lit on the part you are in */
.shell-part__key {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--nv-mk); height: 18px; padding: 0; box-sizing: border-box;
  border: 1px solid var(--line-strong, var(--line)); border-bottom-width: 2px; border-radius: 4px; background: var(--g1);
  color: inherit; font: 500 .6875rem/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: 0; text-transform: none;
}
.shell-part__head[aria-current] .shell-part__key { border-color: var(--paper-dim); }
.shell-part__head.is-later .shell-part__key { border-color: var(--line); background: none; }
.shell-part__fold {
  flex: none; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0;
  border: 0; border-radius: 5px; background: none; color: var(--ink-dim); cursor: pointer;
}
.shell-part__fold:hover { background: var(--g4); color: var(--paper-ink); }
.shell-part__caret { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: none; transition: transform .15s; opacity: .7; }
.shell-part.is-open .shell-part__caret { transform: rotate(90deg); }
.shell-part__body { padding: 0 0 .5rem; }
.shell-part__body[hidden] { display: none; }
.shell-rooms { list-style: none; margin: 0 0 .25rem; padding: 0; }
.shell-room {
  display: block; padding: .375rem 1rem .375rem var(--nv-txt); color: var(--ink); text-decoration: none;
  font: 400 .875rem/1.3 var(--body);
}
a.shell-room:hover { background: var(--g3); }
.shell-room.is-here { color: var(--paper-ink); box-shadow: inset 2px 0 0 var(--paper-ink); }
.shell-room.is-later { color: var(--ink-ghost); }
/* the foot: the workspace, your account */
.shell-foot { flex: none; border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.shell-foot__row {
  display: flex; align-items: center; gap: var(--nv-gap); min-height: 40px; padding: 0 var(--nv-end) 0 var(--nv-txt);
  color: var(--ink); text-decoration: none; font: 400 .875rem/1.3 var(--body); cursor: default;
}
a.shell-foot__row, summary.shell-foot__row { cursor: pointer; }
a.shell-foot__row:hover, summary.shell-foot__row:hover { background: var(--g3); color: var(--paper-ink); }
.shell-foot__text { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-foot__kind { flex: none; font: 500 .6875rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.shell-account { border-top: 1px solid rgba(239,230,214,.06); }
.shell-account__name { list-style: none; min-height: 44px; padding-left: var(--nv-gut); }
.shell-account__name::-webkit-details-marker { display: none; }
.shell-avatar { flex: none; width: var(--nv-mk); height: var(--nv-mk); border-radius: 999px; background: var(--g4); display: inline-flex; align-items: center; justify-content: center; font: 500 .6875rem/1 var(--body); color: var(--paper-ink); }
.shell-account__menu .shell-film__item { padding-left: var(--nv-txt); }
/* the reading language (INDY_LANGUAGES=1): the title bar's toggle, here
   because the shell hides the bar (partials/ui_lang_toggle.html) */
.shell-lang .ui-lang-toggle { margin: 0; }
.shell-lang .ui-lang-toggle__opt { font-family: var(--body); font-size: .6875rem; }   /* the nav's one family, its 11px */
/* folded: the strip keeps the mark, the light, the fold, the film's name
   on end and the account's avatar at the foot */
html.sh-fold-nav .shell-nav .shell-top { flex-direction: column; justify-content: flex-start; padding: .5rem 0; border-bottom: 0; gap: .6rem; }
html.sh-fold-nav .shell-nav .shell-brand { margin-right: 0; }
html.sh-fold-nav .shell-nav .shell-film { border-bottom: 0; }
html.sh-fold-nav .shell-nav .shell-film__name { padding: .25rem 0; justify-content: center; }
html.sh-fold-nav .shell-nav .shell-film__text { writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim); max-height: 40vh; }
html.sh-fold-nav .shell-nav .shell-film__caret, html.sh-fold-nav .shell-nav .shell-film__menu { display: none; }
html.sh-fold-nav .shell-nav .shell-foot { margin-top: auto; border-top: 0; }
html.sh-fold-nav .shell-nav .shell-foot__row:not(.shell-account__name) { display: none; }
html.sh-fold-nav .shell-nav .shell-account { border-top: 0; }
html.sh-fold-nav .shell-nav .shell-account__name { justify-content: center; padding: .5rem 0; }
html.sh-fold-nav .shell-nav .shell-account__name .shell-foot__text, html.sh-fold-nav .shell-nav .shell-account__name .shell-film__caret, html.sh-fold-nav .shell-nav .shell-account__menu { display: none; }
.shell-index { list-style: none; margin: 0; padding: 0 0 .25rem; }
.shell-index__kids { list-style: none; margin: .1rem 0 .3rem; padding: 0; }
/* A scene's shots under it: stepped in, smaller and dimmer, on a thin rule,
   so the scenes read as the index and the shots as what each holds
   (Didier, 2026-10-18). */
.shell-index__row--kid { padding-left: var(--nv-txt); font-size: .8125rem; color: var(--ink-dim, var(--ink)); position: relative; }
.shell-index__row--kid::before { content: ""; position: absolute; left: calc(var(--nv-gut) + var(--nv-mk) / 2); top: 0; bottom: 0; border-left: 1px solid var(--line, #333); }
.shell-index__row--kid .shell-index__n { min-width: 1.875rem; font-size: .8125rem; color: var(--ink-faint); }
.shell-index__row--kid.is-here { color: var(--ink); }
/* A shot under its scene answers the pointer as a scene does (Didier,
   2026-10-29): the row's ground, the link's colour. Holding it to the ink
   left only the link's underline, which read as a different control. */
.shell-index__row--kid:hover { color: var(--chrome); }
/* A shot cut from the film: still listed (its page opens it, marked cut),
   struck through and tagged, so it never reads as one of the film's shots. */
.shell-index__row--kid.is-cut .shell-index__n { text-decoration: line-through; opacity: .6; }
.shell-index__row--kid.is-cut .shell-index__meta { opacity: .55; }
.shell-index__cut {
  flex: 0 0 auto; padding: 0 .3rem; border: 1px solid var(--warn); border-radius: 3px;
  color: var(--warn); font: 500 .6875rem/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase;
}
.shell-index__label {
  margin: .5rem 0 .125rem; padding: 0 var(--nv-end) 0 var(--nv-txt); font: 500 .8125rem/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink-dim);
}
/* the label is the group's fold: the part's chevron, smaller, at its end;
   folded, the label carries how many rows it holds */
.shell-index__label:has(> .shell-index__fold) { margin: .5rem 0 0; padding: 0; }
.shell-index__fold {
  display: flex; align-items: center; gap: var(--nv-gap); width: 100%; min-height: 26px; padding: .25rem var(--nv-end) .25rem var(--nv-txt);
  border: 0; border-radius: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
}
.shell-index__fold:hover { color: var(--ink); background: var(--g3); }
.shell-index__fold:focus-visible { outline: 2px solid var(--chrome); outline-offset: -2px; }
.shell-index__lbl { flex: 0 1 auto; min-width: 0; margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* sentence case: some groups are named in lower case (key cast, extras) */
.shell-index__lbl::first-letter { text-transform: uppercase; }
.shell-index__cnt { flex: none; font: 400 .8125rem/1 var(--body); color: var(--ink-faint); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.shell-index__fold[aria-expanded="true"] .shell-index__cnt { display: none; }
.shell-index__caret { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform .15s; opacity: .7; }
.shell-index__fold[aria-expanded="false"] .shell-index__caret { transform: none; }
.shell-index[hidden] { display: none; }

/* A part's scene tree (Scenes, Blocking; Brett, 2026-11-05: "clean up the
   look of the expanded menu"). Numbers on the keycap's line, words on the
   words' line. Its folds (Shots, All scenes) are group labels like any other
   (2026-11-17: the chevron moved to the right edge with the rest). The
   scene's heading, written in capitals by the script, is set at the parts'
   11px ("the scene text is way too big"). A scene's shots step in: code,
   then their words dimmed, on a hairline that drops from the number. */
.shell-index__label.shell-index__label--tree { margin: .25rem 0 0; }
.shell-index__label--tree .shell-index__fold:hover { background: var(--g3); color: var(--ink); }
.shell-index--tree { padding: 0 0 .15rem; }
.shell-index--tree .shell-index__row {
  display: grid; grid-template-columns: var(--nv-mk) minmax(0, 1fr); column-gap: var(--nv-gap); align-items: baseline;
  padding: .375rem var(--nv-end) .375rem var(--nv-gut); font: 400 .6875rem/1.3 var(--body); letter-spacing: .05em;
}
.shell-index--tree .shell-index__n {
  min-width: 0; text-align: center; font: 400 .6875rem/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--ink-faint);
}
.shell-index--tree .shell-index__row.is-here .shell-index__n { color: var(--paper-dim); }
.shell-index--tree .shell-index__kids { margin: 0; }
.shell-index--tree .shell-index__row--kid {
  grid-template-columns: var(--nv-mk) 1.875rem minmax(0, 1fr) auto; padding-left: var(--nv-gut); font-size: .8125rem; letter-spacing: 0; color: var(--ink-dim);
}
.shell-index--tree .shell-index__row--kid::before { left: calc(var(--nv-gut) + var(--nv-mk) / 2); top: 0; bottom: 0; }
.shell-index--tree .shell-index__row--kid .shell-index__n { grid-column: 2; grid-row: 1; text-align: left; font-size: .8125rem; opacity: 1; color: var(--ink-faint); }
.shell-index--tree .shell-index__row--kid .shell-index__meta { grid-column: 3; grid-row: 1; }
.shell-index--tree .shell-index__row--kid .shell-index__cut { grid-column: 4; grid-row: 1; }
.shell-index--tree .shell-index__row--kid.is-here { color: var(--paper-ink); background: var(--g3); }
.shell-index--tree .shell-index__row--kid.is-here .shell-index__n { color: var(--paper-dim); }
/* with the Shots fold open the shot is lit in it: its copy under the scene goes */
.shell-part__body:has(.shell-index__label--tree [data-group-fold$=":Shots"][aria-expanded="true"]) .shell-index--tree .shell-index__kids { display: none; }
.shell-index ul { list-style: none; margin: 0; padding: 0; }
.shell-index__row {
  display: flex; gap: .55rem; align-items: baseline; padding: .375rem var(--nv-end) .375rem var(--nv-txt); color: var(--ink); text-decoration: none;
  font: 400 .875rem/1.3 var(--body); overflow: hidden; white-space: nowrap;
}
.shell-index__row:hover { background: var(--g3); }
.shell-index__row.is-here { color: var(--paper-ink); box-shadow: inset 2px 0 0 var(--paper-ink); }
.shell-index__n { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
/* a count on a row (All props 10): the right column, as a folded group's */
.shell-index__meta--count { margin-left: auto; flex: none; font: 400 .8125rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--ink-faint); }
.shell-index__row.is-here .shell-index__n { color: inherit; }
.shell-index__meta { overflow: hidden; text-overflow: ellipsis; }
/* the character page's own rail, kept: a picture and a name per row */
.shell-index__row--pic { display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--nv-gap); align-content: center; align-items: center; min-height: 44px; padding: .3125rem var(--nv-end) .3125rem var(--nv-txt); white-space: normal; }
.shell-index__thumb { grid-row: 1 / span 2; width: 32px; height: 32px; border-radius: 4px; overflow: hidden; background: var(--g3); position: relative; }
.shell-index__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shell-index__empty { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink-ghost); font-size: .9375rem; }
.shell-index__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell-index__row--pic .shell-index__name { line-height: 1.25; }
.shell-index__row--pic:not(:has(.shell-index__meta)) .shell-index__name { grid-column: 2; grid-row: 1 / span 2; }
.shell-index__row--pic .shell-index__meta { grid-column: 2; font-size: .8125rem; line-height: 1.25; color: var(--ink-faint); }
.shell-ways { list-style: none; margin: .35rem 0 .25rem; padding: 0; }
.shell-way {
  display: block; padding: .375rem 1rem .375rem var(--nv-txt); color: var(--ink); text-decoration: none;
  font: 400 .875rem/1.3 var(--body);
}
a.shell-way:hover { background: var(--g3); }
.shell-way.is-here { color: var(--paper-ink); box-shadow: inset 2px 0 0 var(--paper-ink); }
/* the page's own tools, moved in by shell.js: the board's header controls */
.shell-tools:empty { display: none; }
.shell-tools { padding: .25rem .9rem .6rem; }
.shell-tools .shell-adopted.page-head-actions { flex-wrap: wrap; align-items: center; gap: .4rem; }
body.has-shell #board-head.shell-away-tools { display: none; }
/* the board's controls beside the page's title (Didier, 2026-10-14) */
.pane-bar__tools { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: .5rem; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.pane-bar__tools:empty { display: none; }
.pane-bar__tools .shell-adopted.page-head-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: nowrap; }
.pane-bar__tools .page-head-actions .btn, .pane-bar__tools .page-head-actions button, .pane-bar__tools .page-head-actions summary.btn { height: 28px; min-height: 0; }
/* + (new shot) and bring a board in drop from their own button, right edge
   under it, never centred over the bar (the centring shift put the form over
   its own button and past the window's right edge) */
.pane-bar__tools .new-shot-pop:not(.board-cut-pop) { position: relative; }
.pane-bar__tools .new-shot-pop:not(.board-cut-pop)[open] > form { position: absolute; top: calc(100% + .4rem); right: 0; left: auto; transform: none; max-width: calc(100vw - 2rem); }
/* the cut list drops from its button, under the bar, never off the top */
.pane-bar__tools .board-cut-pop[open] > form { top: 3rem; right: 1rem; left: auto; transform: none; }
/* ---- the character page (Didier, 2026-10-14) ------------------------------
   Pictures in the middle, in the order the work happens: the look first and
   largest with its ring beside it, the turnaround and the model side by
   side, then the voice. Words and levers on the right: who they are, the
   cast tier, then the look's inspector. The head bar goes: its byline sits
   beside the title, its buttons beside that. */
.pane-bar__sub { color: var(--ink-faint); margin-left: -.4rem; }
.pane-bar__sub:empty { display: none; }
.pane-bar__sub .shell-adopted.room-byline { margin: 0; font: inherit; }
body.has-shell .room-head { display: none; }
.pane-bar__tools .shell-adopted.room-actions { display: flex; align-items: center; gap: .4rem; margin: 0; }
.pane-bar__tools .room-actions .room-back-btn, .pane-bar__tools .room-actions [data-open-brief],
.pane-bar__tools .room-actions a[href*="/canvas"] { display: none; }
.pane-bar__tools .room-actions .btn, .pane-bar__tools .room-actions summary.btn { height: 28px; min-height: 0; }
.pane-bar__tools .room-actions .add-drawer-body { text-transform: none; letter-spacing: 0; font-size: .9rem; }
/* who they are, then the cast, then the inspector, in the controls */
.shell-ctl .shell-adopted#st-who { padding: .9rem 1rem .6rem; border-bottom: 1px solid var(--line); }
.shell-ctl .shell-adopted#st-who .stn-head { margin: 0 0 .6rem; }
.shell-ctl .shell-adopted#st-who .stn-head h2 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.shell-ctl .shell-adopted#st-who .stn-num, .shell-ctl .shell-adopted#st-who .stn-sub { display: none; }
/* the words in their squircle, 20px inside it, room between the fields and
   the footer ruled off (vault/86 step 10) */
.shell-ctl .shell-adopted#st-who .room-desc {
  margin: 0; padding: 20px 20px 16px; border: 0; border-radius: 15px; background: var(--box-bg);
  box-shadow: 0 8px 14px -6px rgba(0,0,0,.34), 0 26px 34px -18px rgba(0,0,0,.3), inset 0 0 0 1px var(--box-line);
}
.shell-ctl .shell-adopted#st-who .room-kv { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
.shell-ctl .shell-adopted#st-who .room-kv dt { margin: 0 0 6px; font-size: 10.5px; letter-spacing: .14em; color: var(--ink-faint); }
.shell-ctl .shell-adopted#st-who .room-kv dd { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; margin: 0 0 18px; max-width: none; font-size: 14px; font-weight: 400; line-height: 1.55; letter-spacing: 0; color: var(--ink); }
.shell-ctl .shell-adopted#st-who .room-kv dd:first-of-type { font-size: 17px; color: var(--display-ink); }
.shell-ctl .shell-adopted#st-who .room-fold { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.shell-ctl .shell-adopted.room-tier { display: flex; flex-direction: column; gap: .4rem; margin: 0; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.shell-ctl .shell-adopted.room-tier::before { content: "Cast"; font: 500 .74rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.shell-ctl .shell-adopted.room-tier .dd-select { width: 100%; }
/* In scenes, in the inspector (Didier, 2026-11-12). Adopted pieces are made
   position: static, and this box draws its glass face on a pseudo-element
   laid over its nearest positioned parent: left static, that face covered
   the whole pane above it. So it stays its own positioned box, flat. */
.shell-ctl .shell-adopted#gallery { position: relative !important; margin: 0; padding: .8rem 1rem; border-bottom: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; }
.shell-ctl .shell-adopted#gallery::before, .shell-ctl .shell-adopted#gallery::after { display: none; }
.shell-ctl .shell-adopted#gallery .scene-pills { display: none; }
/* the page, one column (vault/86): the design (the look and the
   turnaround as one), its Variations line, the model, then the voice */
body.has-shell .shell-page { container-type: inline-size; }
/* No :has() here. `main:has(> #st-look) > *` restyled main's children on every
   change to any page's tree: 75 of the 85 ms a tree change cost on NOMAN's
   Timeline (vault/148). What precedes the look under the shell is not drawn. */
body.has-shell main > :is(#st-look, #st-look ~ *) { min-width: 0; }
/* the roll-out line and the status line that stood above the look are not
   drawn under the shell (Didier, 2026-10-14): Indy's pane says what the
   design still needs, and roll out has its own page */
body.has-shell main > .rail-said, body.has-shell main > .room-needs { display: none; }
/* no rule and no gap above the look: it is the top of the page */
body.has-shell #st-look { border-top: 0; margin-top: 0; padding-top: .25rem; }
/* the stations are not numbered under the shell: the words moved to the
   inspector, so the count no longer runs 01 to 05 down the page */
body.has-shell .stn-num { display: none; }
/* the look: the hero with its verdict under it, as wide as the page allows
   up to a portrait of 560px; the ring of pictures is Variations below */
body.has-shell .work-2up { container-type: inline-size; grid-template-columns: minmax(0, 1fr); }
/* the look's inspector is not drawn: the note on the picture (the brush
   under the hero, the feedback modal) is the way to change it (Didier,
   2026-10-14). Its form stays in the page for the modal to send. */
body.has-shell .work-2up > .pane-insp { display: none; }
/* the hero at the full width of the page, its own height, no frame and no
   bars around it (Didier, 2026-10-14): the fixed-height viewer box is the
   old three-pane room's, not this page's */
body.has-shell .work.work-2up { height: auto; min-height: 0; border: 0; background: transparent; margin: 0 0 1rem; }
body.has-shell .work-2up > .pane-view { padding: 0; overflow: visible; }
body.has-shell .work-2up > .pane-view > .well-focus { display: block; max-width: none; aspect-ratio: auto; height: auto; padding: 0; background: transparent; overflow: visible; }
body.has-shell .work-2up > .pane-view > .well-focus > a { display: block; max-height: none; }
body.has-shell .work-2up > .pane-view > .well-focus img.thumb { display: block; width: 100%; height: auto; max-height: none; border-radius: 6px; }
/* Talk it through, on the page: once the panes are in, the three doors go;
   the chat sits in Indy's pane and the card in the inspector, and what is
   left of the panes on the page takes no room */
body.has-shell #talk-panes:empty { display: none; }
body.has-shell #start:has(#talk-panes:not(:empty)) > .start-doors,
body.has-shell #start:has(#talk-panes:not(:empty)) > .room-start-sub { display: none; }
body.has-shell #talk-panes > .dev-cols.shell-away-talk.shell-away-card { display: none; }
body.has-shell #talk-panes > .dev-cols { height: auto; min-height: 0; }
body.has-shell #start.is-writing > .start-doors, body.has-shell #start.is-writing > .room-start-sub { display: none; }
body.has-shell #write-panes.shell-away-write { display: none; }
.shell-indy .shell-adopted.dev-chat { height: auto; min-height: 0; }
.shell-indy .shell-adopted .write-composer { display: flex; flex-direction: column; gap: .6rem; margin-top: .75rem; }
.shell-indy .shell-adopted .write-composer textarea { min-height: 8rem; }
.shell-indy .shell-adopted .write-composer .btn { align-self: flex-start; height: auto; min-height: 44px; }
.shell-indy .shell-adopted.dev-chat > h3 { display: none; }
.shell-ctl .shell-adopted.dev-rail { height: auto; min-height: 0; padding: .8rem 1rem; }
.shell-ctl .shell-adopted.dev-rail .box { padding: 0; border: 0; background: none; }
/* Variations: one closed line under the design (vault/86 step 5); open,
   the tray as it was */
.stn-head--fold { cursor: pointer; list-style: none; }
.stn-head--fold::-webkit-details-marker { display: none; }
.stn-fold__caret { width: 14px; height: 14px; fill: none; stroke: var(--ink-faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); transition: transform .15s; }
.stn-fold[open] > .stn-head--fold .stn-fold__caret { transform: rotate(-90deg); }
body.has-shell #variations-slot > .tray { border-top: 0; padding-top: 0; margin: 0; }
body.has-shell .tray-filter { flex-wrap: wrap; row-gap: .4rem; }
body.has-shell .tray-strip { --tray-th: 132px; display: block; overflow: visible; }
body.has-shell .tray-strip .tgroup { margin: 0 0 1rem; }
body.has-shell .tray .grid { grid-template-columns: repeat(auto-fill, minmax(var(--tray-th), 1fr)); gap: 12px; }
/* the strip's own rule makes its rows a flex line that never wraps, so a
   group wider than the page ran off its right edge: here they wrap */
body.has-shell .tray-strip .grid { display: grid; }

/* ---- the character page, mock B (vault/86, Brett 2026-10-14) -------------
   The look and the turnaround as one unit with one sign-off; Variations as
   one closed line under it; the model the page's width; the voice as a card
   that plays a real line. Sizes, type and spacing are the mock's. */
body.has-shell #st-look .stn-head, body.has-shell #st-model .stn-head, body.has-shell #st-voice .stn-head { margin: 0 0 16px; }
body.has-shell #st-model, body.has-shell #st-voice { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stn.is-opt .stn-state { color: var(--ink-faint); }
/* the quiet press and the paper one, the mock's two buttons beside the plain */
body.has-shell .btn.btn-quiet, body.has-shell .btn-quiet { background: none; border-color: transparent; box-shadow: none; color: var(--ink-dim); }
body.has-shell .btn-quiet:hover:not(:disabled) { color: var(--ink); border-color: var(--btn-line); }
body.has-shell .btn.btn-paper { background: var(--paper-ink); border-color: var(--paper-ink); color: #161616; box-shadow: none; }
body.has-shell .btn.btn-paper:hover:not(:disabled) { background: var(--display-ink); border-color: var(--display-ink); color: #161616; }
body.has-shell :is(#st-look, #st-variations, #st-model, #st-voice) .btn .icon { width: 16px; height: 16px; }
/* the unit: one frame, one seam, its own words under each plate */
body.has-shell .work-2up > .pane-view:has(> .du) { display: block; }
.du { border-radius: 18px; background: var(--g2); overflow: hidden;
  box-shadow: 0 8px 14px -6px rgba(0,0,0,.34), 0 26px 34px -18px rgba(0,0,0,.3), inset 0 0 0 1px var(--box-line); }
.du-pair, .du-caps { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7917fr); gap: 3px; }
.du-pair { background: #0f0f0f; }
.du-plate { display: block; min-width: 0; background: #7d7d7d; }
.du-look { aspect-ratio: 4 / 5; }
.du-turn { aspect-ratio: 1376 / 768; }
.du-plate > a { display: block; width: 100%; height: 100%; }
.du-plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.du-look img { object-position: 50% 40%; }
/* a place or a prop: the look alone, at most 70vh tall and the page wide
   (vault/86 step 4), never the full width at its own height */
.du-solo-plate { display: flex; justify-content: center; background: #0f0f0f; }
.du-solo-plate > a { width: auto; height: auto; max-width: 100%; }
.du-solo-plate img { width: auto; height: auto; max-width: 100%; max-height: 70vh; object-fit: contain; }
.du-solo .du-cap .vstrip { flex-wrap: nowrap; }
.du-turn.is-empty { background: var(--g1); display: grid; place-items: center; }
.du-well { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px; text-align: center; }
.du-well p { margin: 0; max-width: 34ch; font-size: 13.5px; line-height: 1.55; color: var(--ink-faint); }
.du-cap { min-width: 0; padding: 12px 14px; }
.du-cap .ident { margin: 0; gap: 4px 10px; font-size: 13px; color: var(--ink-faint); }
.du-cap .ident b { font-family: var(--label); font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.du-cap .ident span { font-size: 13px; color: var(--ink-faint); }
.du-cap .ident .ident-not { color: var(--warn); }
.du-cap .vstrip { margin-top: 10px; }
/* the verdict strip under the left plate: ONE row of icons at any width the
   plate has (Brett, 2026-10-14). The master tick is its box alone, its name
   in the tooltip and for a screen reader. */
.du-caps > .du-cap:first-child { padding-left: 12px; padding-right: 12px; }
/* vault/116: the turnaround's heading row carries the redraw icon; under it,
   whether it is new and the one it replaced, then its notes and Edit. All of
   it below the picture, none on it (UI-3). Notes are feedback wanted, so the
   one colour here is --warn. */
/* Both captions start on one line (Didier, 2026-11-12): the head rows are
   the same height and their labels sit at the top, so a "draw again" in the
   turnaround's row does not push its label below the look's. */
.du-turn-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 34px; }
.du-turn-head .ident { padding-top: 2px; line-height: 1.5; }
.du-turn-head .ident b { display: inline-block; line-height: 1.5; vertical-align: top; }
.du-caps > .du-cap:first-child .du-turn-head .ident { padding-top: 4px; }
.du-turn-head .du-make { margin: 0; flex: none; }
.du-turn-head .du-make .btn { margin-left: 0; }
.du-turn-head .du-make .btn.btn-icon { padding: 0; width: 26px; height: 26px; justify-content: center; }
.du-turn-head .ident { flex: 1; min-width: 0; }
.du-turn-state { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.du-new { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); flex: none; }
.du-before-form { margin: 0; display: inline-flex; }
.vstrip .du-new { margin: 0 4px; }
.vstrip .du-before { width: 22px; height: 32px; }
.du-before { display: block; width: 36px; height: 52px; padding: 0; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; background: var(--g2); cursor: pointer; }
.du-before img { display: block; width: 100%; height: 100%; object-fit: cover; }
.du-before:hover:not(:disabled) { border-color: var(--paper-dim); }
.du-before:disabled { opacity: .45; cursor: default; }
.sheet-notes { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sn-note { display: flex; align-items: flex-start; gap: 8px; padding: 7px 4px 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--g2); font-size: 13px; color: var(--ink); }
.sn-note form { margin: 0 0 0 auto; }
.sn-text { flex: 1; min-width: 0; overflow-wrap: anywhere; padding-top: 1px; }
.sn-who { color: var(--ink-faint); font-size: 11px; white-space: nowrap; padding-top: 3px; }
.sn-del { padding: 2px; opacity: .55; }
.sn-del:hover { opacity: 1; }
.sn-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; font: 600 10.5px/1 var(--label); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 9px; color: var(--ink-dim); }
.sn-chip b { background: var(--warn); color: #161616; border-radius: 999px; min-width: 15px; height: 15px; padding: 0 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; letter-spacing: 0; }
.sn-add { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sn-views { display: flex; flex-wrap: wrap; gap: 6px; }
.sn-pick { cursor: pointer; }
.sn-pick input { position: absolute; opacity: 0; pointer-events: none; }
.sn-pick:has(input:checked) { border-color: var(--warn); color: var(--ink); }
.sn-pick:has(input:focus-visible) { outline: 2px solid var(--chrome); outline-offset: 2px; }
.sn-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sn-line .sn-input { flex: 1 1 120px; }
.du-caps > .du-cap:first-child .du-turn-head .ident { flex-direction: column; align-items: flex-start; }
.sn-input { flex: 1; min-width: 0; background: var(--g1); border: 1px solid var(--line-strong); border-radius: 7px; color: var(--ink); padding: 7px 10px; font: 400 13px/1.3 var(--body); }
.sn-input:focus { outline: none; border-color: var(--paper-dim); }
.sn-err { margin: 0; font-size: 12.5px; color: var(--warn); }
.sn-edit { margin: 2px 0 0; }
.sn-price { opacity: .6; font-weight: 500; letter-spacing: .04em; margin-left: 4px; }
.du-caps > .du-cap .vstrip { flex-wrap: nowrap; gap: 2px; }
.du-caps > .du-cap .vstrip-sep { display: none; }
.du-caps > .du-cap .vstrip :is(.btn-icon, .master-tick, .more-menu > summary) { width: 24px; min-width: 24px; height: 24px; min-height: 0; padding: 0; gap: 0; justify-content: center; }
.du-caps > .du-cap .vstrip :is(.btn-icon, .more-menu > summary) .icon { width: 14px; height: 14px; }
.du-caps > .du-cap .vstrip .master-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.du-cap .du-make { margin-top: 10px; }
.du-cap .du-make .btn { padding: 0 12px; margin-left: -12px; }
.du-cap .iter-results:empty { display: none; }
.du-sign { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.du-sign form { margin: 0; display: inline-flex; }
.du.du-sign-only { margin-top: 14px; }
.du.du-sign-only .du-sign { border-top: 0; }
.du-said { margin-right: auto; font-size: 13.5px; line-height: 1.45; color: var(--ink-dim); }
.du-said b { color: var(--ok); font-weight: 500; }
/* Variations, closed: three small, how many, swap the look */
/* The picture rail (Didier, 2026-11-12): one plain row of every picture,
   as the viewer's rail reads; the one on the stage is ringed. */
.du-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 2px; }
.du-rail-pic { display: block; height: 64px; border-radius: 6px; overflow: hidden; opacity: .7; box-shadow: 0 0 0 1px var(--line); line-height: 0; }
.du-rail-pic img { height: 64px; width: auto; display: block; }
.du-rail-pic:hover { opacity: 1; }
.du-rail-pic.is-on { opacity: 1; box-shadow: 0 0 0 2px var(--chrome); }
.du-rail-add-form { margin: 0; }
.du-rail-add { width: 64px; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--g1); box-shadow: 0 0 0 1px var(--line-strong) inset; color: var(--ink-dim); }
.du-rail-add:hover { color: var(--ink); }
/* A place before it is laid out (place_world.html, pw-plain): the cast
   page's shape. The picture the full width, the rail, the row of presses. */
.pw-plain { display: flex; flex-direction: column; gap: 12px; }
.pw-plain .pw-wide { width: 100%; max-width: none; margin: 0; }
.pw-plain .pw-wide img { width: 100%; height: auto; display: block; }
.pw-plain .du-rail { margin-top: 0; }
.pw-plain .pw-controls { display: flex; align-items: center; gap: 10px; }
.pw-plain .iter-results:empty { display: none; }
.du-making { margin-top: 10px; }
.du-making:not(:has(.gen-tile:not(.htmx-indicator), .gen-card:not(.htmx-indicator), .prompt-card)) { margin: 0; }
.du-others { margin-top: 14px; }
.du-others-line { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--g2); box-shadow: inset 0 0 0 1px var(--box-line); }
.du-others-line::-webkit-details-marker { display: none; }
.du-others-strip { display: flex; gap: 6px; flex: none; }
.du-others-strip img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; opacity: .85; }
.du-others-said { font-size: 13.5px; color: var(--ink-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-others-swap { margin-left: auto; flex: none; }
.du-others .du-when-open, .du-others[open] .du-when-shut { display: none; }
.du-others[open] .du-when-open { display: inline; }
.du-others[open] > .stn-body { margin-top: 16px; }
/* the model: the viewer the page's width, one bar under it */
.mv { border-radius: 18px; overflow: hidden; background: radial-gradient(120% 90% at 50% 35%, #2b2b2b 0%, #161616 60%, #0e0e0e 100%);
  box-shadow: 0 8px 14px -6px rgba(0,0,0,.34), 0 26px 34px -18px rgba(0,0,0,.3), inset 0 0 0 1px var(--box-line); }
.mv-view { width: 100%; height: clamp(360px, 55vh, 600px); margin: 0; }
.mv-view canvas { display: block; }
.mv.is-empty .mv-view { height: 160px; display: grid; place-items: center; }
.mv-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--g2); }
.mv-bar form { margin: 0; display: inline-flex; }
/* the set's words under the model bar keep the bar's inset (vault/92) */
.mv-bar + .set-said { padding: 0 18px 14px; }
.mv-file { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 14px; color: var(--ink); white-space: nowrap; }
.mv-bar > .btn, .mv-bar > form { flex: none; }
#shell .mv-variants .chip.is-current { color: var(--display-ink); box-shadow: inset 0 0 0 1px var(--paper-dim); border-color: var(--paper-dim); }
.mv-how { flex: 1 1 0; min-width: 3em; font-size: 13px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#shell .mv-bar .drop-zone { aspect-ratio: auto; height: var(--control-h); flex-direction: row; gap: 8px; padding: 0 14px; border: 1px solid transparent; background: none;
  font-family: var(--label); font-weight: 600; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap; }
#shell .mv-bar .drop-zone .icon { width: 16px; height: 16px; }
#shell .mv-bar .drop-zone.is-over { color: var(--ink); border-color: var(--line-strong); }
.mv-variants { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 12px; background: var(--g2); }
/* The slot's one line of progress is the hairline between the viewer and its
   bar (the front door's reading bar: line under, ink over). A copy fills it;
   a lighter copy being made sweeps it. While a copy runs its figure stands
   where the how-line stood, and the press it came from rests. */
.mv-bar { position: relative; }
.mv-meter { position: absolute; left: 0; right: 0; top: -1px; height: 1px; overflow: hidden; pointer-events: none; }
.mv-meter span { display: block; width: 0; height: 1px; background: var(--ink); transition: width .2s ease; }
.mv.is-making .mv-meter span { width: 24%; animation: mv-sweep 2.4s ease-in-out infinite; }
.mv.is-copying .mv-meter span { animation: none; }
@keyframes mv-sweep { from { transform: translateX(-100%); } to { transform: translateX(420%); } }
@media (prefers-reduced-motion: reduce) {
  .mv.is-making .mv-meter span { animation: none; width: 100%; opacity: .35; }
}
.mv-fig { flex: 1 0 auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mv-fig .icon { width: 14px; height: 14px; flex: none; }
.mv-fig[hidden], .mv-said[hidden] { display: none; }
.mv.is-copying .mv-how, .mv.is-copying .mv-bar > .grow { display: none; }
/* The copy in hand is said once, on the bar: its own row in the list rests. */
.mv.is-copying .model-progress-row.is-arriving { display: none; }
#shell .mv-bar .btn.mv-ico { padding: 0; width: var(--control-h); justify-content: center; }
.mv-bar > .grow { flex: 1 1 0; }
.mv > details.pw-fold:last-child { margin-bottom: 14px; }
.mv-view canvas { cursor: grab; }
.mv-view canvas:active { cursor: grabbing; }
.mv.is-copying .mv-bring .drop-zone { pointer-events: none; opacity: .45; }
#shell .mv.is-retrying .mv-fig { color: var(--warn); }
.mv.is-retrying .mv-meter span { background: var(--warn); }
.mv-said { margin: .5rem 18px 0; color: var(--warn); }
#shell .mv-hold { gap: 10px; }
.mv-size { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0; text-transform: none; }
/* The slot's list of models on their way keeps the slot's own gutter. */
.mv > .model-progress:has(.model-progress-row) { padding: 12px 18px 2px; }
/* the status under the bar takes room only when it says something */
.mv > div:empty, .mv #model-status:not(:has(> *)) { display: none; }
.mv #model-status:has(> *) { padding: 0 18px 12px; background: var(--g2); }
/* A brought-in set's slot (mock A, vault/192): one cap under the viewer.
   The name, the picture row (.pr), the rail of versions, what still needs
   the person, the fold. The hairline (.mv-meter) is the cap's top edge. */
.mv-cap { position: relative; padding: 14px 18px 18px; background: rgb(28,28,28); border-top: 1px solid var(--line); }
.mv-cap .ident { margin: 0; }
.mv-cap .pr { margin-top: 8px; }
.mv-cap a.pr-b, .mv-cap label.pr-b { color: var(--ink-dim); }
.mv-cap .pr-say { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.mv-cap .pr-say .icon { width: 12px; height: 12px; }
.mv-cap .pr-say.is-warn { color: var(--warn); }
.mv-cap .mv-fig { flex: 0 0 auto; font: 500 .72rem/1.15 var(--mono); }
.mv-cap .mv-fig[hidden], .mv.is-copying .mv-state { display: none; }
.mv-cap .mv-said { margin: .5rem 0 0; }
.mv-cap > div:empty { display: none; }
/* the list holds nothing: no gap for it (:empty misses a div with a line break in it) */
.mv-cap > .mv-trouble:not(:has(> *)) { margin: 0; }
/* the check, lit: the row's own disabled dimming would grey the one thing it says */
.mv-cap .pr-yes.is-on:disabled { opacity: 1; cursor: default; }
.mv-cap .du-rail { margin-top: 16px; gap: 10px; align-items: flex-start; padding: 2px; }
.mv-tile { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mv-tile.is-aside { opacity: .35; }
.mv-tile .du-rail-pic { width: 64px; height: 64px; background: var(--g1); display: grid; place-items: center; color: var(--ink-faint); }
.mv-tile .du-rail-pic img { width: 64px; height: 64px; object-fit: cover; }
.mv-tile .du-rail-pic > .icon { width: 18px; height: 18px; }
.mv-n { font: 500 .68rem/1 var(--mono); color: var(--ink-faint); display: inline-flex; gap: 4px; align-items: center; height: 11px; }
.mv-n .icon { width: 11px; height: 11px; color: var(--ok); }
.mv-n i { font-style: normal; color: var(--chrome); }
.mv-tile.is-on .mv-n { color: var(--ink); }
.mv-add form { margin: 0; }
.mv-tile .du-rail-add { width: 64px; height: 64px; border-radius: 6px; }
.mv-tile .du-rail-add .icon { width: 16px; height: 16px; }
.mv-add .mv-up { display: none; }
/* the plus tile while a file copies: dashed, upload glyph, first in the rail */
.mv-count .du-rail-add { width: 64px; height: 64px; border-radius: 6px; opacity: 1; }
.mv-count .du-rail-add .icon { width: 16px; height: 16px; }
.mv-count .mv-n { white-space: nowrap; }
.mv.is-copying .mv-add { order: -1; }
.mv.is-copying .mv-add .du-rail-add { box-shadow: none; border: 1px dashed var(--line-strong); background: none; box-sizing: border-box; }
.mv.is-copying .mv-add .mv-plus { display: none; }
.mv.is-copying .mv-add .mv-up { display: block; }
/* the list of files that still need the person */
.mv-trouble { margin-top: 14px; display: grid; gap: 6px; }
.mv-trouble .pr { margin: 0; flex-wrap: nowrap; }
.mv-trouble .mv-name { font: 500 .78rem/1 var(--mono); color: var(--ink-dim); margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.mv-trouble .mp-meter { margin-left: 8px; }
/* the fold sits inside the cap, last */
.mv-cap > details.pw-fold { margin: 16px 0 0; padding: 0; }
/* the voice: the cast card */
.vs .vc { border-radius: 18px; background: var(--box-bg); padding: 22px 24px 18px;
  box-shadow: 0 8px 14px -6px rgba(0,0,0,.34), 0 26px 34px -18px rgba(0,0,0,.3), inset 0 0 0 1px var(--box-line); }
.vc-top { display: flex; align-items: center; gap: 16px; }
.vc-play, .vaud-play { flex: none; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; }
.vc-play { width: 52px; height: 52px; border: 0; background: var(--paper-ink); color: #161616; }
.vc-play:hover { background: var(--display-ink); color: #161616; }
.vc-play.is-off { background: var(--g4); color: var(--ink-faint); cursor: default; }
.vplay-ico { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.vplay-ico .is-pause, .is-playing > .vplay-ico .is-play { display: none; }
.is-playing > .vplay-ico .is-pause { display: inline; }
.vc-name { min-width: 0; font-size: 24px; font-weight: 400; line-height: 1.15; color: var(--display-ink); }
.vc-name small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-dim); }
.vwave { position: relative; display: flex; align-items: center; gap: 2px; height: 72px; margin: 20px 0 6px; cursor: pointer; }
.vwave[hidden] { display: none; }
.vwave i { flex: 1 1 0; min-width: 1px; border-radius: 2px; background: var(--ink-ghost); transition: background .08s; }
.vwave i.on { background: var(--paper-ink); }
.vwave:not([data-drawn]) { background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.vwave-head { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; border-radius: 1px; background: var(--chrome); opacity: 0; pointer-events: none; }
.vwave.is-playing .vwave-head { opacity: 1; }
.vwave-sm { height: 34px; margin: 12px 0 4px; gap: 1.5px; }
.vc-cap { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-dim); }
.vc-cap q { color: var(--ink); quotes: none; }
.vc-shot { margin-right: .6em; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.vc-t { font-size: 12.5px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.vc-acts { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.vc-acts form { margin: 0; display: inline-flex; }
.vc-acts .grow { flex: 1 1 auto; }
.vc-said { font-size: 13px; color: var(--warn); }
.vc-said:empty { display: none; }
.vc.is-uncast .vc-top .vc-said { margin-left: auto; }
/* what you're after, and what the search read in it */
.vfind { margin-top: 10px; }
/* Folded under the voice's card (Didier, 2026-11-12): one quiet line, the
   search opens under it; the card itself opens it too. */
.vs .vc { cursor: pointer; }
.vs .vc .vfind { cursor: auto; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.vfind-sum { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px; cursor: pointer; list-style: none; color: var(--ink-dim); font-size: 14px; }
.vfind-sum::-webkit-details-marker { display: none; }
.vfind-sum .icon { width: 12px; height: 12px; transition: transform .15s; }
.vfind[open] > .vfind-sum .icon { transform: rotate(90deg); }
.vfind-sum:hover { color: var(--ink); }
.vfind[open] > .vfind-sum { margin-bottom: 10px; }
.vfind h3 { margin: 0 0 10px; font-family: var(--body); font-size: 16px; font-weight: 500; letter-spacing: .01em; text-transform: none; color: var(--display-ink); }
.vbrief { border-radius: 18px; background: var(--g2); box-shadow: inset 0 0 0 1px var(--box-line); padding: 18px 20px 16px; }
.vbrief-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.vbrief-head label { font-size: 13px; color: var(--ink-faint); }
.vbrief-said { margin-left: auto; font-size: 13px; color: var(--warn); }
.vbrief textarea { display: block; width: 100%; min-height: calc(5 * 1.55em); resize: none; overflow: hidden; border: 0; outline: 0; padding: 0; background: transparent; box-shadow: none;
  color: var(--ink); font: inherit; font-size: 16px; line-height: 1.55; }
.vbrief-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.vbrief-read { margin-right: 4px; font-size: 13px; color: var(--ink-faint); }
.vchip { position: relative; display: inline-flex; align-items: center; height: 30px; border-radius: 15px; background: var(--g3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.vchip select, .vchip input { height: 30px; margin: 0; padding: 0 28px 0 12px; border: 0; border-radius: 15px; outline: 0; background: transparent; box-shadow: none;
  -webkit-appearance: none; appearance: none; font: 400 13.5px/1 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.vchip input { width: 9em; padding-right: 12px; cursor: text; text-transform: capitalize; }
.vchip input::placeholder { color: var(--ink-faint); text-transform: none; }
.vchip .icon { position: absolute; right: 10px; width: 12px; height: 12px; transform: rotate(90deg); color: var(--ink-faint); pointer-events: none; }
.vchip.is-ghost { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.vchip.is-ghost select, .vchip.is-ghost input { color: var(--ink-faint); }
.vbrief-go { margin-left: auto; display: flex; gap: 8px; }
.vsearched { margin: 12px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-faint); }
/* the auditions, two across */
.vauds { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vauds:empty { display: none; }
.vaud-empty { grid-column: 1 / -1; margin: 0; font-size: 13.5px; color: var(--ink-faint); }
.vaud { display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 14px; border-radius: 16px; background: var(--g2); box-shadow: inset 0 0 0 1px var(--box-line); }
.vaud[hidden] { display: none; }
.vaud.is-cast { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 55%, transparent); }
.vaud-top { display: flex; align-items: center; gap: 12px; }
.vaud-play { width: 38px; height: 38px; border: 0; background: var(--g4); color: var(--display-ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.vaud-play .vplay-ico { width: 14px; height: 14px; }
.vaud-play:hover { color: var(--display-ink); background: var(--g4); box-shadow: inset 0 0 0 1px var(--ink-faint); }
.vaud-name { min-width: 0; font-size: 15.5px; line-height: 1.25; color: var(--display-ink); overflow-wrap: anywhere; }
.vaud-name small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-faint); }
.vaud-desc, .vaud-none { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vaud-none { margin-top: 12px; color: var(--ink-faint); }
.vaud-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.vaud-foot .vc-t { margin-right: auto; }
.vaud-foot form { margin: 0; }
.vaud-now { font-family: var(--label); font-weight: 600; font-size: 11.2px; letter-spacing: .14em; text-transform: uppercase; color: var(--ok); }
.vaud.vaud-more { height: auto; min-height: 120px; justify-content: center; align-items: center; background: none; border: 0; box-shadow: inset 0 0 0 1px var(--line);
  font: 400 13.5px/1.4 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink-faint); white-space: normal; }
.vaud.vaud-more:hover { color: var(--ink); }
/* the room's line under the voice: In scenes, one quiet row as in the mock;
   the scene numbers are in the fold, not on the row */
body.has-shell #gallery { margin-top: 44px; border: 0; border-radius: 14px; background: var(--g2); box-shadow: inset 0 0 0 1px var(--box-line); --gl-r: 14px; }
body.has-shell #gallery > summary { min-height: 0; padding: 14px 18px; gap: 14px; }
body.has-shell #gallery > summary b { font: 400 13.5px/1.3 var(--body); letter-spacing: 0; text-transform: none; color: var(--ink-dim); }
body.has-shell #gallery > summary .meta { font-size: 13.5px; }
body.has-shell #gallery > summary .scene-pills { display: none; }

/* the timeline's right column (its inspector over the docked shot bench) in the controls */
body.has-shell #tl-app.shell-away-tlr { grid-template-columns: minmax(0, 1fr) 0; }
.shell-ctl .shell-adopted#tl-right { border-left: 0; flex: 1 1 auto; min-height: 0; }
/* the script's and the brief's page title ("Script", "Brief") says what the
   lit room already says; their paper's acts sit under Story the same way */
body.has-shell .flow-page-head { display: none; }
body.has-shell .flow { padding-top: 1rem; }
/* the script's and the brief's acts beside the page's title (Didier, 2026-10-14) */
.pane-bar__tools .shell-adopted.paper__acts {
  --pp-bg: var(--g2); --pp-ink: var(--paper-ink); --pp-dim: var(--paper-dim);
  display: flex; align-items: center; gap: .9rem;
}
.pane-bar__tools .shell-adopted.paper__acts .paper__link { font-size: .66rem; }
.pane-bar__tools .shell-adopted.paper__acts .paper__refine, .pane-bar__tools .shell-adopted.paper__acts .paper__save { height: 28px; padding: 0 .7rem 0 .35rem; font-size: .64rem; gap: .4rem; order: 1; }
.pane-bar__tools .shell-adopted.paper__acts .paper__refine img { width: 20px; height: 20px; }
body.has-shell .paper__head--title.shell-away-acts .paper__title { align-items: flex-start; text-align: left; }
body.has-shell .paper__head--title.shell-away-acts .paper__eyebrow { justify-content: flex-start; }

/* the tally's panel, the Running strip at the top of Indy's pane (not a
   floating modal: Didier, 2026-10-14) */
.shell-running { display: block; flex: none; }
.shell-running:empty { display: none; }
.shell-running .tally-panel { position: static; width: auto; max-width: none; margin: .6rem .6rem 0; border-radius: 8px; animation: none; }
.shell-running .tally-scroll { max-height: 40vh; }
/* the strip itself: one row per job */
.shell-running .tally-strip { border-color: rgba(217,164,65,.35); background: #1a1813; padding: 0; max-height: 46vh; overflow-y: auto; scrollbar-width: thin; }
.shell-running .tally-strip::before { display: none; }
.strip-head { display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; font: 500 .66rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.strip-head.is-live { color: #d9a441; }
.strip-dot { width: 7px; height: 7px; border-radius: 999px; background: currentColor; opacity: .5; }
.strip-head.is-live .strip-dot { opacity: 1; animation: strip-breathe 2.4s ease-in-out infinite; }
@keyframes strip-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.strip-n { color: var(--ink-faint); }
.strip-close { margin-left: auto; width: 24px; height: 24px; border: 0; border-radius: 6px; background: none; color: var(--ink-faint); font-size: 1rem; line-height: 1; cursor: pointer; }
.strip-close:hover { background: var(--g4); color: var(--ink); }
.strip-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .6rem; align-items: baseline; padding: .5rem .75rem .6rem; border-top: 1px solid rgba(239,230,214,.08); font-size: .84rem; }
.strip-what { color: var(--paper-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.strip-what:hover { text-decoration: underline; }
.strip-code { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.strip-when { color: var(--ink-dim); font-size: .76rem; white-space: nowrap; }
.strip-sub { grid-column: 1 / -1; color: var(--ink-faint); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strip-why { color: var(--warn, #d98a5a); white-space: normal; }
.strip-line { grid-column: 1 / -1; display: block; height: 2px; border-radius: 2px; background: rgba(239,230,214,.12); overflow: hidden; margin-top: .2rem; }
.strip-line__fill { display: block; height: 100%; width: 40%; background: #d9a441; animation: strip-run 1.6s ease-in-out infinite; }
.strip-line__fill.is-waiting { width: 100%; background: rgba(239,230,214,.18); animation: none; }
@keyframes strip-run { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.strip-stop { grid-column: 2; justify-self: end; margin: 0; }
.strip-mini { border: 1px solid rgba(239,230,214,.25); background: none; color: var(--ink-dim); border-radius: 999px; font-size: .66rem; padding: .1rem .5rem; cursor: pointer; }
.strip-mini:hover { color: var(--ink); border-color: var(--ink); }
.strip-grp { padding: .5rem .75rem .1rem; border-top: 1px solid rgba(239,230,214,.08); font: 500 .62rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.strip-row.is-landed .strip-what { color: var(--ink); }
.strip-new { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: #d9a441; margin-left: .3rem; }
.strip-empty, .strip-err { margin: 0; padding: .4rem .75rem .7rem; font-size: .8rem; color: var(--ink-faint); border-top: 1px solid rgba(239,230,214,.08); }
.strip-err { color: var(--warn, #d98a5a); }
.strip-money { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .5rem .75rem .6rem; border-top: 1px solid rgba(239,230,214,.08); font-size: .7rem; color: var(--ink-faint); }

/* ---- 2 · Indy: the panel sits in its pane, not over the page -------------- */
html body.has-shell.has-indy-panel, html body.has-shell.has-indy-panel:has(> .design-rail) { padding-left: 0; --frame-left: 0px; }
html body.has-shell.has-indy-panel > .site-header { margin-left: 0; }
html body.has-shell .site-header > .brand--tab { width: auto; margin-right: 0; }
body.has-shell > .design-rail { display: none; }
body.has-shell .indy-panel {
  position: static; width: auto; height: auto; flex: 1; min-height: 0;
  border-right: 0; box-shadow: none; background: none;
}
html.ip-closed body.has-shell .indy-panel, body.has-shell .indy-panel[hidden] { display: none !important; }
body.has-shell .shell-indy .shell-head__name { color: var(--paper-ink); }

/* a page's own pieces, moved into the panes (shell.js adopt): the
   conversation into Indy's, the notes and the inspector into the controls */
.shell-indy .shell-adopted {
  display: flex; flex-direction: column; flex: 1; min-height: 0; max-width: none;
  padding: .75rem 1rem 1rem; opacity: 1 !important; overflow: visible;
}
.shell-indy .shell-adopted > * { min-width: 0; }
.shell-indy .shell-adopted .dev-log { flex: 1; min-height: 0; height: auto; max-height: none; }
.shell-indy .shell-adopted .dev-msg { max-width: none; }
.shell-indy .shell-adopted .dev-composer { margin-top: .75rem; }
.shell-indy .shell-adopted .done-chat__head { margin-bottom: .5rem; }
.shell-ctl .shell-adopted {
  flex: none; width: auto !important; max-width: none; height: auto !important; max-height: none !important;
  position: static !important; padding: .75rem 1rem 1rem; overflow: visible; border: 0; box-sizing: border-box;
}
.shell-ctl .shell-adopted.draft-notes { gap: 1.25rem; }
.shell-ctl .shell-adopted.pane-insp { background: none; }
body.has-shell .flow-cols.shell-away-chat,
body.has-shell .flow-cols--angle.shell-away-chat,
body.has-shell .flow-cols.shell-away-notes,
body.has-shell .flow-cols--draft.shell-away-chat.shell-away-notes { grid-template-columns: minmax(0, 1fr); }
body.has-shell .flow-cols--draft.shell-away-chat:not(.shell-away-notes) { grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); }
body.has-shell .flow-cols--draft.shell-away-notes:not(.shell-away-chat) { grid-template-columns: minmax(17rem, 22rem) minmax(0, 1fr); }
body.has-shell .done-grid.shell-away-chat, body.has-shell .done-grid.is-refining.shell-away-chat { grid-template-columns: minmax(0, 1fr); }
body.has-shell .done-grid.shell-away-chat .flow-paper { padding: 0; }
/* the character room's frame stays inside its pane; its inspector is pane 4 */
body.has-shell .work { width: auto; margin: 1rem 0 1.5rem; }
body.has-shell .work.work-2up.shell-away-insp { grid-template-columns: minmax(0, 1fr); }
.shell-ctl .shell-adopted.pane-insp .pane-h { position: static; }
/* the board's inspector (rooms-board.js fills it): pane 4, not a fixed column */
.shell-ctl .shell-adopted.rv-ins { z-index: auto; background: none; border-left: 0; }
body.has-shell.board-rooms main, body.has-shell.board-rooms.rv-ins-open main { padding-right: var(--page-gutter); }
html:not(.ip-closed) body.has-shell.has-indy-panel.board-rooms.rv-ins-open { padding-right: 0; }
html:not(.ip-closed) body.has-shell.has-indy-panel.board-rooms.rv-ins-open > .site-header { margin-right: 0; }
/* the shot bench's side column, the scene's and the reference's inspectors */
body.has-shell .bench-body.shell-away-bench { grid-template-columns: minmax(0, 1fr); }
.shell-ctl .shell-adopted.bench-side { top: auto; }
/* The script is half the page by default (Didier, 2026-11-12), the shots the
   other half; dragging its edge still sizes it (--sd-w). */
body.has-shell .sd.shell-away-sdins { grid-template-columns: minmax(14rem, calc(50% * var(--sd-w, 1))) minmax(0, 1fr); }
/* two columns here even where rooms.css stacks the scene, so the sheet keeps
   its edge to drag (rooms.css .sd-grip); the drag sizes the column only */
@container scene (max-width: 844px) {
  body.has-shell .sd.shell-away-sdins .sd-script { position: relative; }
  body.has-shell .sd.shell-away-sdins .sd-grip { display: flex; }
}
body.has-shell .rd.shell-away-rdins { grid-template-columns: minmax(0, 1fr); }
.shell-ctl .shell-adopted.sd-ins { border: 0; border-radius: 0; background: none; }
/* rails the global left pane now carries: the research folders, the canvas's sidebar */
body.has-shell .rail-sticky, body.has-shell .canvas-sidebar { display: none; }

/* ---- 3 · the page's bar --------------------------------------------------- */
.pane-bar {
  position: sticky; top: var(--sh-top); z-index: 60; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 44px; padding: 0 var(--page-gutter);
  background: var(--g2); border-bottom: 1px solid var(--line);
  font: 500 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-dim);
}
body.page-canvas .pane-bar { position: static; }
.pane-bar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.pane-switch {
  display: inline-flex; flex: none; padding: 2px; border-radius: 7px; background: var(--g1); box-shadow: inset 0 0 0 1px var(--line);
}
.pane-switch__opt {
  padding: .3rem .7rem; border-radius: 5px; color: var(--ink-dim); text-decoration: none;
  font: 500 .7rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
}
.pane-switch__opt:hover { color: var(--ink); }
.pane-switch__opt.is-current { background: var(--g4); color: var(--paper-ink); }
body.has-shell .flashes { margin: .75rem var(--page-gutter) 0; }
body.has-shell .site-footer { margin-top: auto; }

/* ---- 4 · controls ---------------------------------------------------------- */
.shell-ctl__body { padding: 1rem; font-size: .9rem; }
.shell-empty { margin: 1rem; color: var(--ink-faint); font: 400 .85rem/1.4 var(--body); }

/* ---- narrow windows: the panes stack under the page ----------------------- */
@media (max-width: 1100px) {
  .shell { display: flex; flex-direction: column; min-height: 0; align-items: stretch; }
  .shell-split { display: none; }
  .shell-nav, .shell-indy, .shell-ctl { position: static; height: auto; max-height: 50vh; width: auto; }
  .shell-nav { order: 1; max-height: none; }
  .shell-page { order: 2; min-height: 0; }
  .shell-indy { order: 3; }
  .shell-ctl { order: 4; }
  html.sh-fold-nav .shell-nav .shell-tools { display: none; }
html.sh-fold-nav .shell-nav .shell-head, html.ip-closed .shell-indy .shell-head, html.sh-fold-ctl .shell-ctl .shell-head { flex-direction: row; padding: 0 .5rem 0 1rem; }
  html.sh-fold-nav .shell-nav .shell-head__name, html.ip-closed .shell-indy .shell-head__name, html.sh-fold-ctl .shell-ctl .shell-head__name { writing-mode: horizontal-tb; order: 0; max-height: none; }
  .pane-bar { position: static; }
}

/* rename, on the overview's bar */
.pane-rename { position: relative; flex: none; }
.pane-rename > summary { list-style: none; cursor: pointer; display: inline-block; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; color: var(--ink-dim); }
.pane-rename > summary::-webkit-details-marker { display: none; }
.pane-rename > summary:hover { color: var(--ink); border-color: var(--ink-faint); }
.pane-rename__form {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 80; width: 320px; padding: .8rem; box-sizing: border-box;
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  background: var(--g2); border: 1px solid var(--line-strong, var(--line)); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  text-transform: none; letter-spacing: 0; font: 400 .9rem/1.3 var(--body);
}
.pane-rename__form input[type=text] { flex: 1 1 160px; min-width: 0; font: inherit; padding: .4rem .5rem; background: var(--g1); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; }
.pane-rename__form .btn { flex: none; }
.pane-rename__note { flex: 1 1 100%; font-size: .74rem; color: var(--ink-faint); }

/* ---- the keyboard (?) ----------------------------------------------------- */
.shell-keys {
  position: fixed; top: 12px; right: 12px; z-index: 300; width: 320px; max-width: calc(100vw - 24px);
  background: var(--g2); color: var(--ink); border: 1px solid var(--line-strong, var(--line)); border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45); font-family: var(--body);
}
.shell-keys[hidden] { display: none; }
.shell-keys__head { display: flex; align-items: center; justify-content: space-between; padding: .6rem .6rem .6rem 1rem; border-bottom: 1px solid var(--line); font: 500 .68rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.shell-keys__close { width: 26px; height: 26px; border: 0; border-radius: 6px; background: none; color: var(--ink-faint); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.shell-keys__close:hover { background: var(--g4); color: var(--ink); }
.shell-keys__list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem .9rem; margin: 0; padding: .9rem 1rem .5rem; font-size: .84rem; line-height: 1.4; }
.shell-keys__list dt { white-space: nowrap; color: var(--ink-dim); }
.shell-keys__list dd { margin: 0; color: var(--ink); }
.shell-keys kbd { display: inline-block; min-width: 1.3em; padding: .05em .4em; border: 1px solid var(--line-strong, var(--line)); border-bottom-width: 2px; border-radius: 4px; background: var(--g1); color: var(--paper-ink); font: 500 .78rem/1.4 var(--mono, monospace); text-align: center; }
.shell-keys__note { margin: 0; padding: .3rem 1rem .9rem; font-size: .74rem; color: var(--ink-faint); }

/* ---- the character page under glass (INDY_GLASS): the same corners and the
   mock's two buttons. Glass draws every corner from --gl-r and every control
   as a glass face, so the page names its own radii and keeps the paper fill
   and the quiet press (vault/86). */
body.glass :is(.du, .mv, .vs .vc, .vbrief) { --gl-r: 18px; }
body.glass .vaud { --gl-r: 16px; }
body.glass :is(.shell-ctl .shell-adopted#st-who .room-desc) { --gl-r: 15px; }
body.glass :is(.du-others-line) { --gl-r: 12px; }
body.glass :is(.vchip, .vchip select, .vchip input) { --gl-r: 15px; }
body.glass :is(.du-others-strip img) { --gl-r: 6px; }
body.glass :is(.vwave i) { --gl-r: 2px; }
body.glass :is(.vc-play, .vaud-play) { --gl-r: 999px; }
body.glass.glass-squircle :is(.vc-play, .vaud-play, .vchip, .vchip select, .vchip input) { corner-shape: round; }
/* #shell twice: glass's control rule holds an #id in its :is() (#solo button), so a single #shell
   lost to it and the paper press drew the dark glass face under its dark ink (unreadable). */
body.glass #shell#shell .btn.btn-paper, body.glass #shell .vc-play:not(.is-off) {
  background: var(--paper-ink) !important; border-color: var(--paper-ink) !important; box-shadow: none !important; color: #161616;
}
body.glass #shell#shell .btn.btn-paper:hover:not(:disabled), body.glass #shell .vc-play:not(.is-off):hover {
  background: var(--display-ink) !important; border-color: var(--display-ink) !important; color: #161616;
}
body.glass #shell .btn.btn-quiet { background: none !important; border-color: transparent !important; box-shadow: none !important; }
body.glass #shell .btn.btn-quiet:hover:not(:disabled) { background: var(--g3) !important; }
body.glass #shell .vaud-play { background: var(--g4) !important; border: 0 !important; box-shadow: inset 0 0 0 1px var(--line-strong) !important; }
body.glass #shell :is(.vbrief textarea, .vchip select, .vchip input) { box-shadow: none; background: transparent; }

/* The scene page under the shell at 1280 (auto-block rounds 1 + 2), kept as
   an override at the end so it reads the sheet width from the width-only
   drag, --sd-w (the old shared scale went with indy#136). */
body.has-shell .sd.shell-away-sdins { grid-template-columns: minmax(10rem, calc(50% * var(--sd-w, 1))) minmax(9rem, 1fr); }
/* At 1280 the three columns (the script, the shots and cast, the controls)
   did not fit: the controls pane covered the shots and cast (auto-block
   round 2). Indy's pane gives first below 1440 (360 px there, 280 at 1280:
   --sh-indy above), then the script column, down to 10rem; the shots and
   cast keep their 9rem. The 1440 look is unchanged. */
/* the shots and cast column keeps 9rem, so a chip or a shot's picture never
   runs under the controls pane (auto-block round 1: "Chandle", a thumb cut) */
body.has-shell .sd.shell-away-sdins .sd-main { min-width: 0; }
body.has-shell .sd.shell-away-sdins .shot-card-thumb { max-width: 100%; }
body.has-shell .sd.shell-away-sdins .shot-card-thumb img { max-width: 100%; height: auto; }
body.has-shell .sd.shell-away-sdins .scene-cast-chip { max-width: 100%; min-width: 0; flex-wrap: wrap; }
body.has-shell .sd.shell-away-sdins .shot-card { flex-wrap: wrap; }
body.has-shell .sd.shell-away-sdins .shot-card-body { flex: 1 1 100%; min-width: 0; }

/* The closed picture line as icons (Brett, 2026-10-22): every picture small
   in its own shape, gold the master, green kept, a count and an arrow. */
.du-others--icons .du-others-pics { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.du-others--icons .du-others-pics img { height: 44px; width: auto; border-radius: 6px; display: block; }
.du-others--icons .du-others-pics img.is-master { box-shadow: 0 0 0 2px var(--bench); }
.du-others--icons .du-others-pics img.is-kept { box-shadow: 0 0 0 2px var(--ok); }
.du-others--icons[open] .du-others-pics { display: none; }
.du-others-cnt { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-dim); padding: 3px 8px; border-radius: 999px; background: var(--g3, rgba(255,255,255,.06)); flex: none; }
.du-others-arrow { margin-left: auto; flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--box-line); color: var(--ink-dim); }
.du-others-arrow .icon { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .15s; }
.du-others--icons[open] .du-others-arrow .icon { transform: rotate(-90deg); }
.du-others--icons .du-others-line:hover .du-others-arrow { color: var(--ink); }
/* Open: every group's pictures in one wrapping row, each in its own shape,
   the pin always there (dim until held), and the line itself just the arrow. */
.du-others--icons[open] .du-others-line { background: none; box-shadow: none; padding: 0; }
.du-others--icons[open] .du-others-cnt { display: none; }
.du-others--icons[open] > .stn-body { margin-top: 8px; }
.tray--icons .tray-strip, body.has-shell .tray--icons .tray-strip { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; overflow: visible; }
.tray--icons .tray-strip .tgroup, .tray--icons .tray-strip .tgroup .grid,
body.has-shell .tray--icons .tray-strip .tgroup, body.has-shell .tray--icons .tray-strip .grid { display: contents; }
.tray--icons .tray-strip .tgroup[hidden], body.has-shell .tray--icons .tray-strip .tgroup[hidden] { display: none; }
.tray--icons .tray-strip .th { width: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tray--icons .th-pic { width: auto; height: 150px; background: none !important; border-radius: 8px; }
.tray--icons .th-pic img { position: static !important; width: auto !important; height: 100% !important;
  max-width: none !important; left: auto !important; top: auto !important; object-fit: contain !important; opacity: 1; }
.tray--icons .th-pic.state-approved, .tray--icons .th-pic.state-benchmark { box-shadow: 0 0 0 2px var(--ok); }
.tray--icons .th-chosen .th-pic { box-shadow: 0 0 0 2px var(--bench); }
.tray--icons .th-state { display: none; }
.tray--icons .tray-strip .th-acts { position: static; opacity: .75; pointer-events: auto; background: none; border: 0; padding: 0; margin: 0; }
.tray--icons .tray-strip .th.is-held .th-acts { opacity: 1; }
.tray--icons .th-hold { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--box-line); }
.tray--icons .tray-strip .iter-results { width: auto; }
/* the room's crop-to-subject mask would cut a turnaround to one view, and
   the glass sheen greys a picture shown at its own shape */
.tray--icons .th-pic img { -webkit-mask-image: none !important; mask-image: none !important; }
.tray--icons .th-pic::after { content: none !important; }
body .tray--icons .tray-strip .th .th-pic::after { content: none !important; }
body .tray--icons .tray-strip .th .th-acts { box-shadow: none !important; }
body .tray--icons .tray-strip .th .th-acts::after { content: none !important; }

/* The tray as icons (Brett, 2026-10-22): group filters are icons with the
   name in title=, "hold on to" is a pin, no legend and no captions. */
.tray--icons .tfilt { display: inline-flex; align-items: center; gap: 6px; }
.tray--icons .tfilt .icon { width: 15px; height: 15px; }
.tray--icons .th-hold { display: inline-grid; place-items: center; cursor: pointer; }
.tray--icons .th-hold input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tray--icons .th-hold .icon { width: 15px; height: 15px; }
.tray--icons .more a { display: inline-flex; align-items: center; gap: 6px; }
.tray--icons .more .icon { width: 15px; height: 15px; }
