/* the site's fonts (from public/site/wix.css) */
@font-face {font-family: 'madefor-text'; font-style: normal; font-weight: 400; src: url('/fonts/fonts-v2-f73e760d-c6b3-4659-9a8c-9ce1d76c1173-madefor-text.var.original.woff2') format('woff2-variations'), url('/fonts/fonts-v2-f73e760d-c6b3-4659-9a8c-9ce1d76c1173-v1-madefor-text.woff2') format('woff2'); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A5, U+00A7-00B4, U+00B6-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-013E, U+0141-0148, U+014A-014B, U+0150-0155, U+0158-015B, U+015E-016B, U+016E-017E, U+01A0-01A1, U+01AF-01B0, U+0218-021B, U+0237, U+02C6-02C7, U+02D8-02DD, U+0400-045F, U+0462-0463, U+0472-0475, U+0490-0491, U+1E24-1E25, U+1E36-1E37, U+1E80-1E85, U+1E9E, U+1EA0-1EF9, U+2000-200B, U+2010-2015, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2070, U+2074-2079, U+2080-2089, U+20AB-20AC, U+20B4, U+20B9-20BA, U+20BD, U+2116, U+2122, U+2190-2193, U+2212, U+25B2, U+25B6, U+25BC, U+25C0, U+FEFF;font-display: swap;
}
@font-face {font-family: 'madefor-text'; font-style: italic; font-weight: 400; src: url('/fonts/fonts-v2-19247d19-0454-4de8-b907-b818135794bd-madefor-text.var.original.woff2') format('woff2-variations'), url('/fonts/fonts-v2-19247d19-0454-4de8-b907-b818135794bd-v1-madefor-text.woff2') format('woff2'); unicode-range: U+0000, U+000D, U+0020-007E, U+00A0-00A5, U+00A7-00B4, U+00B6-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-012B, U+012E-0133, U+0136-013E, U+0141-0148, U+014A-014B, U+0150-0155, U+0158-015B, U+015E-016B, U+016E-017E, U+0218-021B, U+0237, U+02C6-02C7, U+02D8-02DD, U+1E24-1E25, U+1E36-1E37, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2000-200B, U+2010-2015, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+2070, U+2074-2079, U+2080-2089, U+20AC, U+20B9-20BA, U+20BD, U+2122, U+2190-2193, U+2212, U+25B2, U+25B6, U+25BC, U+25C0, U+FEFF;font-display: swap;
}
@font-face {font-family: 'syne-extrabold'; font-style: normal; font-weight: 800; src: url('/fonts/googlefont-woff2-s-syne-v22-8vIS7w4qzmVxsWxjBZRjr0FKM-24vg6gTY-vDE5YfqXtUw.woff2') format('woff2'); unicode-range: U+0370-03FF;font-display: swap;
}
@font-face {font-family: 'syne-extrabold'; font-style: normal; font-weight: 800; src: url('/fonts/googlefont-woff2-s-syne-v22-8vIS7w4qzmVxsWxjBZRjr0FKM-24vg6tTY-vDE5YfqXtUw.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;font-display: swap;
}
@font-face {font-family: 'syne-extrabold'; font-style: normal; font-weight: 800; src: url('/fonts/he-googlefont-woff2-s-syne-v22-8vIS7w4qzmVxsWxjBZRjr0FKM-24vg6jTY-vDE5YfqU.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;font-display: swap;
}
/* src/styles/ssp/tokens.css */
/* Studio Slate Pro | Budgeting — app styles.
 * Dark, dense, touch-friendly on iPad. */

:root{
  --bg:#0e1114; --bg2:#151a1f; --bg3:#1c232a; --bg4:#232c34;
  --line:#2c363f; --line2:#3a4650;
  --tx:#e8edf2; --tx2:#a7b4c0; --tx3:#919fad;
  --acc:#e0a83c; --acc2:#f0c46b;
  --good:#4ea87a; --good2:#6bc496; --bad:#d9694f; --info:#5b9bd5;
  --budgetname:#8fd9a8;
  /* Text/stroke that's normally just "the brand color itself" (a yellow
   * label, a yellow focus ring) — in every appearance except light mode
   * these equal the real brand var, so nothing here changes anywhere else.
   * Light mode overrides them below to a very dark gray (text) / pure
   * black (stroke), because the bright fills that brief called for read
   * fine as button backgrounds but fail contrast as plain text or a hairline
   * ring on a white/light page. */
  --acc-text:var(--acc); --good-text:var(--good); --info-text:var(--info);
  --acc2-text:var(--acc2);
  --acc-stroke:var(--acc);
  /* Text that sits ON a solid --good / --info / --acc fill (a stripboard strip).
   * The fills darken in light mode, so their text flips to white there. */
  --on-good:#06240f; --on-info:#06172a; --on-acc:#20160a; --on-bad:#20160a;
  /* The three break colours: a warm off-white (Day break), a medium grey (Meal
   * break) and a light purple (Company move). The same in every appearance, like
   * the near-black Ext/Night strip, with dark text on all three. Used by the
   * break buttons and their strips and cards, and by nothing else. */
  --brk-day:#ece5d3; --brk-meal:#8d97a1; --brk-move:#b8a5e6; --on-brk:#1c1810;
  /* The top bar is brand furniture, not document surface: it holds the logo,
   * the production name and the file buttons, and it stays dark in every
   * appearance so the brand reads the same way whatever the rest is doing. */
  --hdr-bg:#151a1f; --hdr-line:#2c363f; --hdr-tx:#e8edf2; --hdr-tx3:#a7b4c0;
  --hdr-btn:#1c232a; --hdr-btn-line:#3a4650;
  --radius:8px;
  --mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;height:100%}
body{background:var(--bg);color:var(--tx);font:14px/1.45 var(--sans);
  -webkit-text-size-adjust:100%;overscroll-behavior:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
a{color:var(--acc2-text)}

/* Every native scrollbar — vertical or horizontal, anywhere in the app —
 * carries the same green the horizontal scrub handles use, instead of the
 * OS default. The custom scrub bars sit on top of their own tables/boards
 * for the deliberate drag control; this covers everything else (day
 * columns, scene panels, modals, menus, the scrub's own track included). */
*{scrollbar-width:thin;scrollbar-color:var(--good) var(--bg2)}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--bg2)}
::-webkit-scrollbar-thumb{background:var(--good);border-radius:999px;border:2px solid var(--bg2)}
::-webkit-scrollbar-thumb:hover{background:var(--good2)}

/* ── Layout ─────────────────────────────────────────── */
#app{display:flex;flex-direction:column;height:100vh;height:100dvh}
/* 1fr / auto / 1fr keeps the project title dead-centre on the bar no matter
 * how many nav links or module actions sit on either side of it — same
 * technique as the tab strip's own centred back/undo/redo group below. */
header.topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:14px;
  padding:10px 16px;background:var(--bg2);border-bottom:1px solid var(--line);flex:0 0 auto}
.brand{grid-column:1;justify-self:start;font-weight:700;letter-spacing:.06em;font-size:12px;
  color:var(--acc-text);white-space:nowrap}
.brand small{display:block;font-weight:400;letter-spacing:.02em;color:var(--tx3);font-size:10px}
.proj-title{grid-column:2;justify-self:center;display:block;height:19px;color:#fff;
  font:700 19px/1 var(--font-outfit,'Outfit'),var(--sans);letter-spacing:-.01em;
  text-transform:uppercase;align-self:center}
.proj-title:empty::before{content:"UNTITLED PROJECT";color:#fff;font-weight:500}
/* .proj-title's own grid-column:2 above only works while it's a direct
 * .topbar grid child on its own — the Dashboard hub/Settings/Team pages
 * also render {showNavGroup && <HeaderNavGroup>} right after it (the
 * .navgroup Back/Undo/Redo group), and a second auto-placed grid item with
 * no explicit column of its own claimed column 3/row 1 ahead of
 * .modactions, pushing the name+flag corner down onto its own second row.
 * Wrapping both in one flex row, itself the single column-2 grid child,
 * keeps title+navgroup side by side and leaves column 3 exclusively
 * .modactions's, on every page whether showNavGroup is set or not. */
.topbar-center{grid-column:2;justify-self:center;display:flex;align-items:center;gap:14px;min-width:0}
/* Below 1280px the logo + Dashboard/Start Page/Switch Projects group, the
 * title and the right-hand corner no longer fit on one line (the title
 * slid under Switch Projects and the person's name ran off the edge), so
 * the bar takes two rows: the logo group on its own first row, then the
 * title centred with the corner on the right. The empty ::before and the
 * corner share the second row's spare width equally, which is what keeps
 * the title centred; the corner never shrinks below its own buttons, so
 * where it's the wider side the title steps left instead of under it. */
@media (max-width:1279px){
  header.topbar{display:flex;flex-wrap:wrap;row-gap:8px}
  header.topbar > .brand{flex:0 0 100%}
  header.topbar::before{content:"";order:1;flex:1 1 0}
  header.topbar > .topbar-center{order:2;flex:0 1 auto}
  header.topbar > .modactions{order:3;flex:1 1 0;min-width:max-content;justify-content:flex-end}
}

/* Tab strip carries the back/undo/redo group in the centre of the same line.
 * The 1fr / auto / 1fr grid keeps the group on the bar's centre line whenever
 * the tabs fit their half; when they don't (a long stage, a long language),
 * the tab column grows only as far as it must, so no tab is ever cut off and
 * the group moves over just that much. Below 1280px the tabs scroll instead
 * and the search keeps its width. */
.tabs{display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);align-items:end;
  background:var(--bg2);border-bottom:1px solid var(--line);
  padding:6px 10px;flex:0 0 auto}
.tablist{display:flex;gap:2px;min-width:0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.tabs .navgroup{grid-column:2;justify-self:center;margin:0 0 4px;padding:0 14px}
.tabs .searchwrap{grid-column:3;justify-self:end;position:relative;margin:0 0 5px;min-width:0}
.tabs button{padding:9px 14px;font-size:13px;color:var(--tx2);
  border:1px solid var(--acc-stroke);border-bottom:2px solid transparent;white-space:nowrap;border-radius:6px 6px 0 0}
.tabs button:hover{color:var(--tx);background:rgba(224,168,60,.12)}
.tabs button.on{color:var(--acc-text);border-color:var(--acc-stroke);border-bottom-color:var(--acc-stroke);font-weight:600}
@media (max-width:1279px){.tabs{grid-template-columns:minmax(0,1fr) auto max-content}}

main{flex:1;overflow:auto;-webkit-overflow-scrolling:touch}
/* width:100% (not the auto default) so this stays full-width inside a flex
   column ancestor (#app, .modroot) — otherwise margin:auto's cross-axis
   free-space absorption shrinks it down to its content's width and centers
   it, which only stays invisible on pages whose own content is already
   wide (a budget table) and shows up everywhere content is narrower (a
   module's shared Project card, a shorter list). max-width still caps it. */
.wrap{width:100%;max-width:1400px;margin:0 auto;padding:18px 16px 80px;box-sizing:border-box}

/* ── Buttons ────────────────────────────────────────── */
.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:6px;
  background:var(--bg3);border:1px solid var(--acc-stroke);color:var(--tx);font-size:13px;
  min-height:34px;text-decoration:none}
.btn:hover{background:rgba(224,168,60,.14);border-color:var(--acc2)}
.btn.primary{background:var(--acc);border-color:var(--acc-stroke);color:#20160a;font-weight:600}
.btn.primary:hover{background:var(--acc2)}
.btn.ghost{background:transparent;border-color:var(--acc-stroke)}
.btn.sm{padding:4px 9px;font-size:12px;min-height:28px}
/* Every delete/remove button reads as red at rest, not just on hover — a
 * button that looks perfectly neutral until you happen to hover it hides
 * the one piece of information (this is destructive) a person needs before
 * they click, not after. */
.btn.danger{background:transparent;border-color:var(--bad);color:var(--bad)}
.btn.danger:hover{background:rgba(217,105,79,.12);border-color:#e8927c;color:#e8927c}
/* A solid-fill twin of .btn.danger — Clear Budget wants to read as a real,
 * committed red button rather than the usual outline-only "this is
 * destructive" treatment every other delete/remove control uses. */
.btn.danger.solid{background:var(--bad);border-color:var(--bad);color:#20160a;font-weight:600}
.btn.danger.solid:hover{background:#e8927c;border-color:#e8927c}
.btn.info.solid{background:var(--info);border-color:var(--info);color:#0c1a2a;font-weight:600}
.btn.info.solid:hover{background:#86bbe6;border-color:#86bbe6}
/* Every Cancel button, site-wide, reads as a real box at rest — a white
 * stroke around it regardless of whatever else its own variant class
 * (ghost/done/etc.) sets for border-color. */
.btn.cancel{border-color:#fff}
.btn.cancel:hover{border-color:#fff}
/* A neutral, non-committal action (Cancel, back out) that still wants a
 * color of its own rather than reading as another shade of gray-ghost —
 * the third leg of Cancel/Archive/Delete's blue/yellow/red trio. */
.btn.info{background:transparent;border-color:var(--info);color:var(--info-text)}
.btn.info:hover{background:rgba(91,155,213,.14);border-color:var(--info);color:#8dbdea}
.btn[disabled]{opacity:.4;pointer-events:none}
/* Reached by keyboard, a button wears a ring in its own colour — gold, red on
 * a delete, green on a go-ahead, blue on the blue ones (Cancel/back-out,
 * Back/Undo/Redo) — as PreVis Pro's purple buttons do, instead of the
 * browser's plain white one. */
.btn:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
.btn.info:focus-visible,.navgroup .btn:focus-visible{outline-color:var(--info)}
.btn.success:focus-visible,.navgroup .btn.success:focus-visible{outline-color:var(--good)}
.btn.danger:focus-visible,.navgroup .btn.danger:focus-visible{outline-color:var(--bad)}
.btn.previs-fill:focus-visible{outline-color:var(--pvb)}
.navgroup{display:flex;gap:4px;margin-right:4px}
/* Back/Undo/Redo read as their own cluster, distinct from every other
 * yellow-stroked control on the page — a little blue instead, everywhere
 * this group appears (AppHeader's own copy inside header.topbar — hence
 * that duplicate, higher-specificity selector below to beat
 * `header.topbar .btn`'s own border-color — and each module's own tab
 * strip, where ScheduleTabs.tsx's Lock/Unlock Schedule button also happens
 * to live in this same `.navgroup` row; the two rules after this one give
 * that button's own danger/success color back, since `.navgroup .btn`'s
 * flat border-color would otherwise win the tie against `.btn.danger`/
 * `.btn.success` by simply coming later in the file). */
.navgroup .btn,
header.topbar .navgroup .btn{border-color:var(--info)}
.navgroup .btn:hover,
header.topbar .navgroup .btn:hover{border-color:var(--info);background:rgba(91,155,213,.14)}
.navgroup .btn.danger{border-color:var(--bad)}
.navgroup .btn.danger:hover{border-color:#e8927c;background:rgba(217,105,79,.12)}
.navgroup .btn.success{border-color:var(--good)}
.navgroup .btn.success:hover{border-color:var(--good2);background:var(--good2)}
/* Back's own arrow is a plain text node (no span wrapper like Undo/Redo's
 * own inline `color:#fff`), so it was inheriting `.btn`'s regular
 * `var(--tx)` text color instead — a faint, but real, mismatch against the
 * other two. One rule, not five files: covers Back directly and Undo/Redo
 * redundantly (already `#fff` inline). */
.navgroup .btn.icon{color:#fff}
.btn.icon{min-width:32px;padding:4px 8px;justify-content:center;font-size:15px;line-height:1}
/* The ⏪️ "return to Start Page" button (2026-09-28: white stroke, bold
 * light gray text, hover highlight, matching ◀️ Dashboard and 🔄 Switch
 * Projects beside it exactly — no blue fill, no blue text, same in light
 * and dark mode, since all three sit on the header, which stays the same
 * dark chrome in every appearance). */
.btn.blue{background:transparent;border-color:#fff;color:var(--hdr-tx3);font-weight:600}
.btn.blue:hover{background:rgba(255,255,255,.14)}
/* Font-weight was never set on the ◀️ Dashboard button's own .ghost variant,
 * so it silently inherited whatever its parent happened to set — bold
 * inside AppHeader's .brand (font-weight:700), normal-weight everywhere
 * .navreturn sits outside a .brand (OrgPageHeader's org-level pages). Set
 * explicitly here so the pair reads identically everywhere it appears. */
.navreturn{display:flex;align-items:center;gap:8px;font-weight:600}
/* The thin divider before the top bar's Contacts button (ContactsHeaderButton.tsx): even space either side. */
.navreturn-sep{flex:none;width:2px;height:20px;margin:0 6px;border-radius:1px;background:var(--acc)}

/* ── Cards ──────────────────────────────────────────── */
.card{background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);
  margin-bottom:16px;overflow:hidden}
.card > h2{margin:0;padding:11px 14px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--tx2);background:var(--bg3);border-bottom:1px solid var(--line);font-weight:700}
.card > h2.hd-accent{color:var(--acc-text)}
.scenegroupsub{margin-top:14px}
.scenegroupsub:first-of-type{margin-top:0}
.scenegroupsub h3{margin:0 0 6px;font-size:12.5px;color:var(--tx2);text-transform:uppercase;letter-spacing:.03em}
.scenegroupcard{position:relative;margin-bottom:7px}
.scenegroupcard .scenecard{margin:0}
.scenegroupday{position:absolute;top:8px;right:10px;font-family:var(--mono)}
.card-body{padding:14px}

.meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px 16px}
.field{display:flex;flex-direction:column;gap:3px}
.field label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3);font-weight:600}
/* A label long enough to wrap pushes its input below its neighbours'; in a grid of
 * one-input fields, sit the fields on their bottom edge so the inputs line up.
 * (Grids with multi-input fields — name/address/phone stacks — keep top alignment.) */
.meta:not(:has(> .field > :is(input,select,textarea) ~ :is(input,select,textarea))) > .field{justify-content:flex-end}
.field input,.field select,.field textarea{background:var(--bg);border:1px solid var(--line);
  border-radius:5px;padding:7px 9px;min-height:34px;width:100%}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--acc-stroke);
  box-shadow:0 0 0 2px rgba(224,168,60,.15)}
/* A locked Project Type reads as plain text, not a disabled control with a
 * dropdown arrow that implies it might still open — same box shape/height
 * as the input/select it replaces, just nothing to click. */
.field-static{background:var(--bg);border:1px solid var(--line);border-radius:5px;
  padding:7px 9px;min-height:34px;width:100%;box-sizing:border-box;color:var(--tx);
  display:flex;align-items:center}

/* ── Tables ─────────────────────────────────────────── */
.tw{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;font-size:13px}
th{text-align:left;padding:7px 9px;font-size:12px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--tx3);font-weight:700;border-bottom:1px solid var(--line);background:var(--bg2);
  position:sticky;top:0;z-index:2;white-space:nowrap}
td{padding:4px 9px;border-bottom:1px solid var(--line);vertical-align:middle}
tr:hover > td{background:rgba(255,255,255,.02)}
.num{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums;white-space:nowrap}
.acct-code{font-family:var(--mono);color:var(--tx3);font-size:12px;white-space:nowrap}
.muted{color:var(--tx3)}
.neg{color:var(--bad)}
.pos{color:var(--good-text)}

td input,td select{background:transparent;border:1px solid transparent;border-radius:4px;
  padding:4px 6px;width:100%;min-height:30px}
td input:hover,td select:hover{border-color:var(--line2);background:var(--bg)}
td input:focus,td select:focus{outline:none;border-color:var(--acc-stroke);background:var(--bg)}
td input.num{text-align:right;font-family:var(--mono)}
td input.glob{color:var(--info-text);font-weight:600;text-align:left;font-family:var(--sans);font-size:12px}
td select:disabled{opacity:.4}
td input::placeholder,.field input::placeholder{color:var(--tx3);opacity:.6}
/* An editable field inside an otherwise read-only table row (Call Sheets'
 * Email dialog: "add the missing email", "link an actor"): the .field box,
 * since nothing else in the row says it can be typed in. Opt-in by class,
 * so the budget/schedule tables' borderless cell inputs are untouched. */
td input.cell-field{background:var(--bg);border-color:var(--line)}
td input.cell-field:hover{border-color:var(--line2)}
td input.cell-field:focus{border-color:var(--acc-stroke);box-shadow:0 0 0 2px rgba(224,168,60,.15)}
:root[data-theme="light"] td input.cell-field{background:var(--bg2)}
@media (prefers-color-scheme:light){:root[data-theme="system"] td input.cell-field{background:var(--bg2)}}

/* ── Topsheet ───────────────────────────────────────── */
.ts-section td{background:var(--bg3);font-weight:700;font-size:12px;letter-spacing:.09em;
  text-transform:uppercase;color:var(--acc-text);padding:9px}
.ts-total td{border-top:1px solid var(--line2);font-weight:700;background:rgba(255,255,255,.03)}
.ts-grand td{border-top:2px solid var(--acc);border-bottom:2px solid var(--acc);
  font-size:16px;font-weight:800;background:rgba(224,168,60,.08);padding:12px 9px}
.ts-net td{font-size:15px;font-weight:700;color:var(--good-text)}
.ts-row td:first-child{padding-left:18px}
.grp-row td{background:var(--bg3);font-weight:600;color:var(--tx2)}
.clickable{cursor:pointer}
.clickable:hover td:nth-child(2){color:var(--acc2-text);text-decoration:underline}

/* ── Dept view ──────────────────────────────────────── */
.dept-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:4px}
.dept-head h1{margin:0;font-size:22px;font-weight:700}
.dept-head .code{font-family:var(--mono);color:var(--acc-text);font-size:16px}
.dept-sub{color:var(--tx3);font-size:12px;margin-bottom:14px}
.dept-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;align-items:center}
.subtotal-bar{display:flex;gap:26px;flex-wrap:wrap;padding:12px 14px;background:var(--bg3);
  border:1px solid var(--line);border-radius:var(--radius);margin-top:14px}
.sb-item{display:flex;flex-direction:column;gap:2px}
.sb-item .k{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3);font-weight:700}
.sb-item .v{font-family:var(--mono);font-size:18px;font-weight:700}
.sb-item.tot .v{color:var(--acc-text)}


/* ── Modal ──────────────────────────────────────────── */
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.72);z-index:100;
  display:flex;align-items:center;justify-content:center;padding:16px}
/* A popup drawn inside the thing that opens it (a table cell, a drop zone…) took that spot's text settings: the
   Elements tab's Remove sat in a number cell and came out in typewriter type on one line that ran off the box. A popup
   starts from the page's own plain text wherever it is drawn. */
.modal-bg{font-family:var(--sans);font-weight:400;font-style:normal;font-variant-numeric:normal;white-space:normal;
  text-align:start;text-transform:none;letter-spacing:normal;cursor:auto}
.modal{background:var(--bg2);border:1px solid var(--line2);border-radius:12px;
  width:100%;max-width:720px;max-height:88vh;display:flex;flex-direction:column;
  box-shadow:0 24px 70px rgba(0,0,0,.6)}
.modal.sm{max-width:480px}
/* Half of sm. For a warning that is one sentence and a tick box, 480px is a
   banner across the screen for something that does not deserve one. */
/* A short warning: the width of sm, half the height. Narrowing one of these
   does not shrink it — the same words just stand taller, and at 240px this
   box was 666px tall against 395px at full width. Height comes out of the
   word count, so these dialogs say one thing and stop. Type size is not a
   lever: every popup in this app holds a 12pt floor. */
.modal.xs{max-width:480px}
.modal.xs header{padding:9px 16px}
.modal.xs .card-body{padding:11px 16px}
.modal.xs footer{padding:8px 16px}
.modal.xs footer .btn{padding:6px 13px}
.modal.xs .warn{margin-bottom:0;padding:8px 10px}
.modal.xs .hint{margin:8px 0 0}
.modal.xs .tog{margin-top:8px}
/* One line when it fits. The subtitle beside it was pushing the title to wrap, which cost a whole line of header on a
   dialog this short, so the subtitle only gets the room left over. A title that can't fit (a long file name: "Import "…pdf"?") wraps
   inside the box instead of pushing the box's Cancel out past its edge. */
.modal.xs header h3{min-width:0;overflow-wrap:anywhere}
.modal.xs header>div:has(h3){min-width:0}
.modal.xs header .sub{flex:1 1 0}
.modal.xs header>.btn{flex-shrink:0}
.modal header{display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}
.modal header h3{margin:0}
.modal header .sub{color:var(--tx3)}
.modal .search{padding:10px 16px;border-bottom:1px solid var(--line)}
.modal .search input{width:100%;background:var(--bg);border:1px solid var(--line);
  border-radius:6px;padding:9px 11px;min-height:38px}
.modal .list{overflow:auto;-webkit-overflow-scrolling:touch;flex:1;padding:6px 0}
.modal .card-body{overflow:auto}
.modal footer{border-top:1px solid var(--line);display:flex;
  gap:8px;align-items:center;flex-wrap:wrap}
.modal footer .custom{flex:1;min-width:200px;background:var(--bg);border:1px solid var(--line);
  border-radius:6px;padding:9px 11px;min-height:38px}
.pick{display:flex;align-items:center;gap:10px;padding:9px 16px;cursor:pointer;min-height:42px}
.pick:hover{background:var(--bg3)}
.pick input[type=checkbox]{width:16px;height:16px;accent-color:var(--acc);flex:0 0 auto;margin:0;pointer-events:none}
.pick .nm{flex:1}
.pick .un{font-size:11px;color:var(--tx3);font-family:var(--mono)}
.pick .add{color:var(--acc-text);font-size:12px;font-weight:600;opacity:0;white-space:nowrap}
.pick:hover .add{opacity:1}
.pick.added .nm{color:var(--tx3)}
.pick.added .add{opacity:1;color:var(--good-text)}
.pick-head{padding:9px 16px 5px;font-size:12px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--tx3);font-weight:700;border-top:1px solid var(--line);margin-top:6px}
.pick-head:first-child{border-top:0;margin-top:0}
.pickernote{padding:9px 16px;font-size:14px;color:var(--tx2);border-top:1px solid var(--line);
  line-height:1.5;background:var(--bg)}

/* ── Controls ───────────────────────────────────────── */
.tog{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none}
.tog input{width:18px;height:18px;accent-color:var(--acc)}
.tog.block{display:flex;padding:6px 2px}
.seg{display:inline-flex;border:1px solid var(--line2);border-radius:6px;overflow:hidden}
.seg button{padding:6px 12px;font-size:12px;color:var(--tx2);min-height:32px}
.seg button.on{background:var(--acc);color:#20160a;font-weight:600}

/* Explanatory prose — a hint, a note, a tooltip, anything meant to be READ
 * as a sentence rather than scanned as a label or a badge — sits no smaller
 * than this and no dimmer than --tx2. It used to go as low as 11px at --tx3
 * (barely above the disabled-control opacity), which made the exact text
 * that most needs reading the hardest text in the app to read. Chrome that
 * is scanned rather than read (table headers, tab labels, badges, mono
 * data) keeps its own, smaller sizes — this rule is only for the family of
 * classes below that carry real sentences: .hint (and .hint.xs),
 * .pickernote, .tablefoot, .stagenote, .gempty, .cmpbarnote,
 * .dayflag. */
.hint{font-size:14px;color:var(--tx2);margin-top:6px;line-height:1.55}
.hint.accenttext{color:var(--acc-text)}
.warn{background:rgba(217,105,79,.1);border:1px solid rgba(217,105,79,.4);
  border-radius:6px;padding:10px 12px;font-size:12px;color:#f0b8a8;margin-bottom:12px;line-height:1.55}
.warn.caution{display:flex;gap:11px;align-items:flex-start}
.cautionico{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;background:var(--bad);color:#fff;
  font-size:13px;font-weight:700;line-height:1;margin-top:-1px}
/* ── Collapsible sitewide schedule warnings (ScheduleWarningsBanner) ─────
 * Each kind of warning is its own .disclose row, the caution icon sitting
 * right on the row itself so a collapsed section still reads as a warning
 * — never mistaken for a clean one — with the day-by-day .warn.caution
 * list underneath only while it's open. The summary sentence is its own
 * class rather than .dtitle/.dsum: those are sized for a short fixed label
 * and a single truncated line, and this is a full warning sentence that
 * needs to read normally and wrap. */
.warnsection{margin-bottom:4px}
.warnsection .disclose{gap:8px}
.disclose .warnsummary{font-size:12px;color:#f0b8a8;white-space:normal;
  text-align:left;flex:1 1 auto;min-width:0;line-height:1.4}
.badge{display:inline-block;padding:1px 7px;border-radius:20px;font-size:12px;font-weight:700;
  letter-spacing:.05em;text-transform:uppercase;background:var(--bg4);color:var(--tx2)}
.badge.g{background:rgba(78,168,122,.18);color:#8fd9b3}
.badge.bad{background:rgba(217,105,79,.2);color:#f0b8a8}
/* A badge that is also a link (Schedule → Locations' day badges, CallSheetEditParts DayBadges): a gold outline on
   hover and focus, drawn inset so the pill keeps its size. */
.badge.badge-link{cursor:pointer;box-shadow:inset 0 0 0 1px transparent;transition:box-shadow .12s,color .12s}
.badge.badge-link:hover,.badge.badge-link:focus-visible{color:var(--acc-text);box-shadow:inset 0 0 0 1px var(--acc-stroke);outline:none}
.badge.badge-link:focus-visible{box-shadow:inset 0 0 0 1px var(--acc-stroke),0 0 0 2px rgba(224,168,60,.35)}
.empty{padding:40px 20px;text-align:center;color:var(--tx3)}
.empty p{margin:0 0 14px}

/* ── Qty / Number-of cells with a global picker ─────── */
.cellpair{display:flex;align-items:center;gap:2px}
.cellpair input{flex:1;min-width:0}
.cellpair .phsplit,.cellpair .gpick{flex:0 0 auto}
/* A table holding a formula of several globals (a merged phase line: "Prep weeks + Shoot weeks + Wrap weeks +
 * Post weeks") gets a Number-of column wide enough for the whole thing, every word showing — the table already
 * scrolls sideways, so nothing is squeezed or cut off (budget/[code]/page.tsx adds .widenum). */
table.lines.widenum th.c-num,table.lines.widenum td.c-num{width:calc(var(--c-num) + 330px)}
table.lines.widenum .c-num .gtag{max-width:none}
select.gpick{width:26px;flex:0 0 26px;padding:2px;text-align:center;
  border:1px solid transparent;border-radius:4px;color:var(--tx3);
  font-size:12px;background:transparent;-webkit-appearance:none;appearance:none}
select.gpick:hover{border-color:var(--line2);background:var(--bg);color:var(--acc-text)}
select.gpick:focus{outline:none;border-color:var(--acc-stroke);background:var(--bg)}

/* ── Fringe & per-diem cells ────────────────────────── */
.fringecell{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.fringecell input[type=checkbox]{width:17px;height:17px;accent-color:var(--acc);flex:0 0 auto;margin:0}
.fringecell .off{color:var(--tx3);opacity:.55}
.pdcell input.num{flex:1;min-width:0}

.tablefoot{padding:9px 14px;border-top:1px solid var(--line);font-size:14px;
  color:var(--tx2);line-height:1.6;background:var(--bg2)}
.tablefoot b{color:var(--tx2);font-weight:600}

/* ── Stage bar ──────────────────────────────────────── */
.stagebar{display:flex;align-items:center;gap:12px;padding:8px 16px;background:var(--bg);
  border-bottom:1px solid var(--line);flex:0 0 auto;overflow-x:auto;-webkit-overflow-scrolling:touch}
.stagechips{display:flex;align-items:center;gap:3px}
.stagechip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:20px;
  font-size:12px;color:var(--tx2);border:1px solid var(--line);white-space:nowrap;background:var(--bg2)}
.stagechip .n{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;
  border-radius:50%;background:var(--bg4);font-size:12px;font-weight:700;color:var(--tx2)}
.stagechip:not(:disabled):hover{border-color:var(--tx3);color:var(--tx)}
.stagechip.on{background:var(--acc);border-color:var(--acc-stroke);color:#20160a;font-weight:700}
.stagechip.on .n{background:rgba(0,0,0,.22);color:#20160a}
.stagechip.off{opacity:.38}
.stagechip.frozen:not(.on){border-style:dashed}
.stagearrow{color:var(--tx3);font-size:13px}
.stagemeta{font-size:12px;color:var(--budgetname);white-space:nowrap;font-weight:600}
/* Lock again / Unlock / Send to … keep their one line: on a narrow window the bar scrolls sideways (above) instead
   of squeezing them into a three-line stack. */
.stagebar .btn{flex:none;white-space:nowrap}
.masterpanel-body{padding:4px 0 2px 34px}
/* The same master open/collapse card around Schedule's warnings
 * (ScheduleWarningsBanner, between the module bar and the tab strip, kept
 * compact with 10px either side) and the Day Board's tools (DayBoard). */
.wrap.masterpanel-wrap{padding-top:10px;padding-bottom:10px}
.masterpanel-wrap > .card{margin-bottom:0}
.masterpanel-body > :last-child{margin-bottom:0}
.schedlockbar{display:flex;align-items:center;gap:10px;margin:-8px 0 16px}
.daycol.locked .daycol-head{cursor:default}
.daycol.locked .daydate{opacity:.6;cursor:not-allowed}
.stagenote{background:var(--bg2);border:1px solid var(--line);border-left:3px solid var(--acc);
  border-radius:6px;padding:10px 13px;font-size:14px;color:var(--tx2);margin-bottom:16px;line-height:1.55}
.stagenote b{color:var(--acc2-text)}

/* ── Contingency guard ──────────────────────────────── */
.guard{display:flex;gap:16px;align-items:center;padding:13px 15px;border-radius:var(--radius);
  border:1px solid var(--line);background:var(--bg2);margin-bottom:16px}
.guard.warn{border-color:rgba(224,168,60,.55);background:rgba(224,168,60,.07)}
.guard.stop{border-color:var(--bad);background:rgba(217,105,79,.1)}
.gmsg{font-size:13px;line-height:1.5;margin-bottom:9px;display:flex;align-items:flex-start;gap:9px}
.gbar{position:relative;height:8px;border-radius:5px;background:var(--bg4);overflow:hidden}
.gfill{height:100%;background:var(--good);transition:width .2s}
.gfill.warn{background:var(--acc)}
.gfill.stop{background:var(--bad)}
.gstats{display:flex;gap:20px;flex-wrap:wrap;margin-top:9px;font-family:var(--mono);font-size:12px}
.gstats i{font-style:normal;color:var(--tx3);text-transform:uppercase;font-size:12px;
  letter-spacing:.08em;display:block;font-family:var(--sans);font-weight:700}

/* ── Weekly cost report ─────────────────────────────── */
.weektabs{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:14px}
.wtab{padding:7px 13px;border-radius:7px;border:1px solid var(--line);background:var(--bg2);
  color:var(--tx2);font-size:13px;display:flex;flex-direction:column;align-items:flex-start;
  gap:1px;min-width:96px}
.wtab .wt{font-family:var(--mono);font-size:12px;color:var(--tx3)}
.wtab:hover{border-color:var(--tx3)}
.wtab.on{background:var(--acc);border-color:var(--acc-stroke);color:#20160a;font-weight:700}
.wtab.on .wt{color:rgba(32,22,10,.75)}
.wtab.locked{border-style:dashed}
.wtab.add{align-items:center;justify-content:center;color:var(--acc-text);min-width:74px}
.weekhead{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin-bottom:14px}
.lockweek{padding:7px 12px;border:1px solid var(--line2);border-radius:7px;background:var(--bg2)}
.acctstat{float:right;font-family:var(--mono);font-size:12px;color:var(--tx3);
  text-transform:none;letter-spacing:0;font-weight:400}
.minibar{height:6px;border-radius:4px;background:var(--bg4);overflow:hidden;margin-bottom:3px}
.minibar .mf{height:100%;background:var(--good)}
.minibar .mf.over{background:var(--bad)}
td.bad,.num.bad{color:var(--bad)}
td.good,.num.good{color:var(--good-text)}
.overnote{margin-left:6px;font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--bad);white-space:nowrap}

/* ── Key/value tables ───────────────────────────────── */
table.kv{width:100%;margin:12px 0}
table.kv th{position:static;background:none;text-transform:none;letter-spacing:0;font-size:13px;
  color:var(--tx2);font-weight:400;text-align:left;padding:5px 9px;border-bottom:1px solid var(--line)}
table.kv td{font-family:var(--mono);padding:5px 9px;border-bottom:1px solid var(--line)}
table.kv tr.hl th,table.kv tr.hl td{background:rgba(224,168,60,.09);font-weight:700;color:var(--tx)}

/* ── Utilities ──────────────────────────────────────── */
.grow{flex:1}
.m0{margin:0}
.mt6{margin-top:6px}
.mt12{margin-top:12px}
.mt14{margin-top:14px}
.xs{font-size:12px}
.nowrap{white-space:nowrap}
.hidden{display:none}
.w120{width:120px}.w170{width:170px}.w250{width:250px}
.w60{width:60%}.w20{width:20%}
.rule{border:0;border-top:1px solid var(--line);margin:16px 0}
.rowflex{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.stack{display:flex;flex-direction:column;gap:3px;margin-bottom:12px}
.fgrp{margin-bottom:18px}
.key{font-family:var(--mono);text-transform:none;font-size:12px}
h4.mh{margin:0 0 6px;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--tx2)}
.addonrow{align-items:flex-end;margin-bottom:10px}

/* ── Print document ─────────────────────────────────── */
.print-doc{max-width:none}
.print-head{display:flex;justify-content:space-between;align-items:baseline;
  border-bottom:2px solid var(--line2);padding-bottom:6px;margin:0 0 12px;font-size:12px}
.p-meta{width:auto;margin-bottom:16px}
.p-meta th{position:static;background:none;text-transform:none;letter-spacing:0;
  font-size:12px;color:var(--tx3);padding-right:10px;border:0}
.p-meta td{border:0;padding-right:28px;font-weight:600}
.p-acct{margin-bottom:14px;break-inside:avoid}
.acct-banner{background:var(--bg3) !important;color:var(--acc-text) !important;
  font-size:12px;letter-spacing:.08em}
.print-doc table{margin-bottom:18px}

@media print{
  :root{--bg:#fff;--bg2:#fff;--bg3:#f2f4f6;--bg4:#e9edf1;
        --line:#c8d0d8;--line2:#aab4be;--tx:#101418;--tx2:#3d4a55;--tx3:#6b7883;--acc:#8a6410}
  body{background:#fff;color:#000;font-size:10pt}
  .topbar,.tabs,.stagebar,.weektabs,.weekhead,.guard,.dept-actions,.btn,.tablefoot,
  .navgroup,.no-print{display:none !important}
  main{overflow:visible;height:auto}
  .wrap{max-width:none;padding:0}
  .card{break-inside:avoid;border-color:#c8d0d8;margin-bottom:10px}
  th{position:static;background:#f2f4f6 !important;color:#3d4a55 !important}
  .page-break{break-before:page}
  .lines{min-width:0}
  td input,td select{border:0 !important;background:none !important;
    -webkit-appearance:none;appearance:none;padding:0}
  tr:hover > td{background:none}
  .print-head{border-color:#333}
  .acct-banner{background:#f2f4f6 !important;color:#3d4a55 !important}
  .print-doc .ts-grand td{border-color:#333}
  @page{margin:12mm 10mm}
}

/* ── Responsive / iPad ──────────────────────────────── */
@media (max-width:820px){
  .wrap{padding:14px 10px 70px}
  .dept-head h1{font-size:19px}
  .subtotal-bar{gap:16px}
  .sb-item .v{font-size:16px}
  table{font-size:12px}
  td,th{padding:4px 6px}
  .guard{flex-direction:column;align-items:stretch}
}
@media (hover:none){
  .pick .add{opacity:1}
  td input,td select{border-color:var(--line)}
}

/* ── Branding ───────────────────────────────────────── */
/* ── Brand: logo lockup + the app name this build carries ───────────────
 * The company mark is one product family; the word after the bar is the
 * app. Sizing is driven by height so the banner keeps its proportions and
 * occupies the same strip the old wordmark did. */
/* The logo sets the height of the bar. "Budgeting" and the production name
 * are one unit: bottom-aligned to each other, and that unit centred against
 * the logo rather than hanging off its baseline. */
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;white-space:nowrap}
.blogo{height:30px;width:auto;display:block}

/* ── Add Department bar ─────────────────────────────── */
.adddeptbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:10px 14px;margin-bottom:16px;background:var(--bg2);
  border:1px solid var(--line);border-radius:var(--radius)}

/* ── Picker steppers ────────────────────────────────── */
.stepper{display:flex;align-items:center;gap:2px;flex:0 0 auto}
.stepbtn{width:26px;height:26px;border-radius:6px;border:1px solid var(--line2);
  background:var(--bg3);color:var(--tx);font-size:15px;line-height:1;
  display:flex;align-items:center;justify-content:center}
.stepbtn:hover{background:var(--bg4);border-color:var(--tx3)}
.stepbtn.plus{color:var(--acc-text);border-color:var(--acc-stroke)}
.stepbtn[disabled]{opacity:.3;pointer-events:none}
.stepper .cnt{min-width:22px;text-align:center;font-family:var(--mono);font-size:13px;font-weight:700}
.pick .add{min-width:74px;text-align:right}

/* ── Light-green Done button ────────────────────────── */
.btn.done{background:#8fd9a8;border-color:#8fd9a8;color:#123521;font-weight:700}
.btn.done:hover{background:#a6e6bb;border-color:#a6e6bb}

/* ── Unlock button ──────────────────────────────────── */
.unlockbtn{border-color:var(--acc-stroke);color:var(--acc2-text)}
.unlockbtn:hover{background:rgba(224,168,60,.14)}

/* ── Language & currency picker ─────────────────────── */
/* Wide enough for the longest English language name (Portuguese) plus two
 * territory flags, so nothing spills past the chip edge. A third row is
 * fine — legibility beats a tidy two-row grid. */
.langgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(196px,1fr));gap:7px}
.langchip{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:8px;
  border:1px solid var(--line);background:var(--bg);text-align:left;min-height:46px}
.langchip:hover{border-color:var(--tx3)}
.langchip.on{border-color:var(--acc-stroke);background:rgba(224,168,60,.1)}
.langchip .flag{font-size:18px;line-height:1;flex:0 0 auto;letter-spacing:1px;white-space:nowrap}
.langchip .ltext{min-width:0;flex:1 1 auto}
.langchip .lname{font-size:13px;color:var(--tx);display:block;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.langchip .lsub{font-size:12px;color:var(--tx3);display:block;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.langchip.on .lname{color:var(--acc2-text);font-weight:600}

/* ── Per-diem cell (rate x count x period) ──────────── */
.pdcell{display:flex;align-items:center;gap:4px}
.pdcell input[type=checkbox]{width:16px;height:16px;accent-color:var(--acc);flex:0 0 auto;margin:0}
.pdcell .pdrate{min-width:0}
.pdcell .pdcount{min-width:0}
.pdcell .pdx{color:var(--tx3);font-size:12px;flex:0 0 auto}
.pdcell .pdper{font-size:12px;padding:2px 3px}

.w320{width:320px}



/* Tighter page gutters so the budget table gets the width */
.wrap{padding-left:8px;padding-right:8px}
@media (min-width:1500px){ .wrap{max-width:1680px} }

/* Horizontal scrolling belongs to the wide table, not the whole page —
   otherwise the top bar and the top sheet slide off with it. */
main{overflow-x:hidden}
.wrap{min-width:0}
.card{max-width:100%}
.tw{max-width:100%;width:100%}

/* Fixed layout so the column widths above are honoured. With auto layout the
   browser renegotiates them by content and squeezes Unit and Fringe group. */
table.lines{table-layout:fixed}

table.lines td,table.lines th{overflow:hidden}
.pdcell .pdrate{flex:1 1 62px}
.pdcell .pdcount{flex:1 1 46px}

.pdcell .pdper{flex:0 0 84px}

/* ── Light appearance ───────────────────────────────────
 * Same structure, inverted surfaces. The gold is darkened, because the
 * dark-mode gold fails contrast on white; the light-green budget name gets
 * the same treatment. Applied by [data-theme="light"], and by the system
 * preference when the user has chosen "System". */
/* --bg3/--bg4 are the surface a button or panel-header strip sits on top
 * of --bg2's white card — dark mode gets its sense of depth from those
 * being clearly different steps, so light mode needs the same real
 * separation rather than three near-identical near-whites. --line2 (the
 * edge on an outlined button or an input) is darkened for the same reason:
 * a border you can only see if you already know it's there isn't a border.
 * --tx3 (hint/muted body copy, not just short labels) is darkened a step
 * too — legible on a phone-brightness screen, not just on a lab monitor. */
/* Light mode (2026-09-28 redesign): the page itself is plain white —
 * --bg2 (every card/field surface) carries the soft gray the whole page
 * used to be, so content reads as raised panels against a white page
 * instead of everything sitting at one flat gray. Brand colors go the
 * other direction from the original light-mode pass: that version
 * deliberately DARKENED --acc/--good/--info/--bad for WCAG contrast on
 * white. This one is a different, explicit brief — bright yellow, light
 * green, light blue, pure #ff0000 red, every one of them ringed in a
 * black stroke instead of a same-color one, so a light-mode button reads
 * as a distinct colored chip rather than blending into the page. --on-*
 * (text sitting ON a solid fill) flips to black to stay legible against
 * these much lighter fills. */
:root[data-theme="light"]{
  --bg:#ffffff; --bg2:#f3f5f8; --bg3:#e3e8ef; --bg4:#d3dbe5;
  --line:#d9dfe7; --line2:#a9b6c4;
  --tx:#182029; --tx2:#4b5866; --tx3:#454f58;
  --acc:#ffcc00; --acc2:#ffe066;
  --good:#7cdb8f; --good2:#9bebac; --bad:#ff0000; --info:#7ec8f2;
  --budgetname:#2f8a52;
  --on-good:#000000; --on-info:#000000; --on-acc:#000000; --on-bad:#000000;
  /* No yellow/green/blue text anywhere on the now-white/light page: the
   * bright fills above are for solid chips and button backgrounds only —
   * as plain text or a hairline ring they read as a very dark, near-black
   * gray instead, and any yellow stroke goes fully black. */
  --acc-text:#2b2f33; --good-text:#2b2f33; --info-text:#2b2f33; --acc2-text:#2b2f33;
  --acc-stroke:#000000;
}
@media (prefers-color-scheme:light){
  :root[data-theme="system"]{
    --bg:#ffffff; --bg2:#f3f5f8; --bg3:#e3e8ef; --bg4:#d3dbe5;
    --line:#d9dfe7; --line2:#a9b6c4;
    --tx:#182029; --tx2:#4b5866; --tx3:#454f58;
    --acc:#ffcc00; --acc2:#ffe066;
    --good:#7cdb8f; --good2:#9bebac; --bad:#ff0000; --info:#7ec8f2;
    --budgetname:#2f8a52;
    --on-good:#000000; --on-info:#000000; --on-acc:#000000; --on-bad:#000000;
    --acc-text:#2b2f33; --good-text:#2b2f33; --info-text:#2b2f33; --acc2-text:#2b2f33;
    --acc-stroke:#000000;
  }
}
/* A run of hardcoded pastel hover/warning colors — never a var(), so none
 * of the token overrides above reach them — that read fine as light text
 * against dark mode's own dark surfaces, but the same pastels on light
 * mode's now-white/light surfaces are just as illegible as the branded
 * yellow/green/blue ones already handled. Each one here sits on a themed
 * (light-in-light-mode) background, not a fixed-dark chip — the fixed-dark
 * ones (status pills, the Stripboard's own END OF DAY bars, etc.) already
 * keep their own light text untouched, on purpose, because their
 * background never goes light either. */
:root[data-theme="light"] .warn,
:root[data-theme="light"] .disclose .warnsummary,
:root[data-theme="light"] .badge.bad{color:#5c2a20}
@media (prefers-color-scheme:light){:root[data-theme="system"] .warn,
:root[data-theme="system"] .disclose .warnsummary,
:root[data-theme="system"] .badge.bad{color:#5c2a20}}
:root[data-theme="light"] .badge.g{color:#1f4a30}
@media (prefers-color-scheme:light){:root[data-theme="system"] .badge.g{color:#1f4a30}}
:root[data-theme="light"] .cmpnums b.good,
:root[data-theme="light"] .hint b.good{color:#1f4a30}
@media (prefers-color-scheme:light){:root[data-theme="system"] .cmpnums b.good,
:root[data-theme="system"] .hint b.good{color:#1f4a30}}
:root[data-theme="light"] .hint b.bad,
:root[data-theme="light"] .scenenote .notedel:hover{color:#5c2a20}
@media (prefers-color-scheme:light){:root[data-theme="system"] .hint b.bad,
:root[data-theme="system"] .scenenote .notedel:hover{color:#5c2a20}}
:root[data-theme="light"] .btn.danger:hover,
:root[data-theme="light"] .btn.danger.outline:hover{color:#5c2a20;border-color:#a53a24}
@media (prefers-color-scheme:light){:root[data-theme="system"] .btn.danger:hover,
:root[data-theme="system"] .btn.danger.outline:hover{color:#5c2a20;border-color:#a53a24}}
:root[data-theme="light"] .btn.info:hover{color:var(--info-text);border-color:var(--info)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .btn.info:hover{color:var(--info-text);border-color:var(--info)}}
/* An admin warning announcement across the top of the app (AnnouncementBanner.tsx), on its pale coral tint. */
.announcewarn{color:#f0b8a8}
:root[data-theme="light"] .announcewarn{color:var(--tx)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .announcewarn{color:var(--tx)}}
/* The Start Page's org-name heading and its edit pencil were white on the
 * assumption they sit on a dark hero strip — they don't; .startorgrow's own
 * ancestor chain is fully transparent down to <body>, so in light mode this
 * was white text directly on the white page, genuinely invisible, not just
 * low-contrast. */
:root[data-theme="light"] .startorgname{color:var(--tx)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .startorgname{color:var(--tx)}}
:root[data-theme="light"] .orgeditbtn{border-color:var(--tx);color:var(--tx)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .orgeditbtn{border-color:var(--tx);color:var(--tx)}}
:root[data-theme="light"] .orgeditbtn:hover{background:rgba(24,32,41,.08)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .orgeditbtn:hover{background:rgba(24,32,41,.08)}}
/* Every field surface (input/select/textarea) reads as var(--bg) in every
 * OTHER appearance — dark mode's darkest layer, deliberately recessed
 * below the card around it. Light mode inverts which layer is darker (the
 * page, not the card), so fields have to be pinned to --bg2 explicitly
 * here rather than inheriting the generic `.field input{background:var(
 * --bg)}` rule, which would otherwise make them match the new white page
 * instead of the gray card they sit in. */
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea{background:var(--bg2)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .field input,
:root[data-theme="system"] .field select,
:root[data-theme="system"] .field textarea{background:var(--bg2)}}
/* Every branded yellow/green/blue/red surface gets a black stroke instead
 * of its own color's stroke, in light mode only — the buttons/chips/tabs
 * this covers already source their fill/text from --acc/--good/--info/
 * --bad above, so only the border itself needs overriding here. */
:root[data-theme="light"] .btn.primary,
:root[data-theme="light"] .btn.ghost,
:root[data-theme="light"] .btn:not(.ghost):not(.primary):not(.danger):not(.info):not(.blue):not(.success):not(.cancel),
:root[data-theme="light"] .btn.success,
:root[data-theme="light"] .btn.success.outline,
:root[data-theme="light"] .btn.info,
:root[data-theme="light"] .btn.danger,
:root[data-theme="light"] .btn.danger.solid,
:root[data-theme="light"] .btn.accent-outline,
:root[data-theme="light"] .tabs button,
:root[data-theme="light"] .tabs button.on,
:root[data-theme="light"] .stagechip.on{border-color:#000}
@media (prefers-color-scheme:light){:root[data-theme="system"] .btn.primary,
:root[data-theme="system"] .btn.ghost,
:root[data-theme="system"] .btn:not(.ghost):not(.primary):not(.danger):not(.info):not(.blue):not(.success):not(.cancel),
:root[data-theme="system"] .btn.success,
:root[data-theme="system"] .btn.success.outline,
:root[data-theme="system"] .btn.info,
:root[data-theme="system"] .btn.danger,
:root[data-theme="system"] .btn.danger.solid,
:root[data-theme="system"] .btn.accent-outline,
:root[data-theme="system"] .tabs button,
:root[data-theme="system"] .tabs button.on,
:root[data-theme="system"] .stagechip.on{border-color:#000}}
:root[data-theme="light"] .navgroup .btn{border-color:#000}
@media (prefers-color-scheme:light){:root[data-theme="system"] .navgroup .btn{border-color:#000}}
/* A button whose fill is close in value to the page still needs to read as
 * a raised control, the way dark mode's own contrast does for free. */
:root[data-theme="light"] .btn{box-shadow:0 1px 2px rgba(24,32,41,.08)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .btn{box-shadow:0 1px 2px rgba(24,32,41,.08)}}
:root[data-theme="light"] .btn.ghost{box-shadow:none}
@media (prefers-color-scheme:light){:root[data-theme="system"] .btn.ghost{box-shadow:none}}
:root[data-theme="light"] .btn.primary{box-shadow:0 1px 2px rgba(154,108,12,.25)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .btn.primary{box-shadow:0 1px 2px rgba(154,108,12,.25)}}
/* The green scrollbar thumb needs a darker step here too, plus a track
 * that isn't pure white, so there's something to see it against even
 * before you're actively scrolling. */
:root[data-theme="light"]{scrollbar-color:var(--good) var(--bg3)}
@media (prefers-color-scheme:light){:root[data-theme="system"]{scrollbar-color:var(--good) var(--bg3)}}
:root[data-theme="light"] ::-webkit-scrollbar-track{background:var(--bg3)}
@media (prefers-color-scheme:light){:root[data-theme="system"] ::-webkit-scrollbar-track{background:var(--bg3)}}
:root[data-theme="light"] ::-webkit-scrollbar-thumb{border-color:var(--bg3)}
@media (prefers-color-scheme:light){:root[data-theme="system"] ::-webkit-scrollbar-thumb{border-color:var(--bg3)}}

/* Header furniture pinned to its own palette in every appearance. */
header.topbar{background:var(--hdr-bg);border-bottom-color:var(--hdr-line)}
header.topbar .proj-title{color:#fff}
header.topbar .proj-title:empty::before{color:#fff}
header.topbar .btn{background:var(--hdr-btn);border-color:var(--hdr-btn-line);color:var(--hdr-tx)}
header.topbar .btn:hover{background:#28323b}
/* --hdr-btn stays a near-black fill in every appearance (the header itself
 * never goes light) — against the rest of light mode's now-bright/white
 * palette, any header button that's still genuinely dark (◀️ Dashboard,
 * ⏪️/🔄/etc. — everything except .modactions's own yellow-stroked Print/
 * Export cluster and the solid-blue Start Page button, both already
 * correct) needs an explicit pure white label and a pure black stroke
 * instead of the header's own subtler off-white/dark-navy pairing, to
 * read as intentional rather than washed-out. */
:root[data-theme="light"] header.topbar .btn:not(.blue),
:root[data-theme="light"] .orgheader .btn:not(.blue){color:#fff;border-color:#000}
@media (prefers-color-scheme:light){:root[data-theme="system"] header.topbar .btn:not(.blue),
:root[data-theme="system"] .orgheader .btn:not(.blue){color:#fff;border-color:#000}}
/* .navreturn (Dashboard/Start Page/Switch Projects) stays white-stroked
 * with bold light gray text in every appearance, including light mode —
 * the black-stroke/pure-white-text rule right above this is for every
 * OTHER header button, not this group, so both are overridden back here
 * at higher specificity. */
:root[data-theme="light"] header.topbar .navreturn .btn,
:root[data-theme="light"] .orgheader .navreturn .btn{border-color:#fff;color:var(--hdr-tx3)}
@media (prefers-color-scheme:light){:root[data-theme="system"] header.topbar .navreturn .btn,
:root[data-theme="system"] .orgheader .navreturn .btn{border-color:#fff;color:var(--hdr-tx3)}}
/* .modactions's own Print/Export are ghost buttons (transparent
 * background), so they sit directly on the dark header strip like every
 * other header button — an earlier pass here gave them a dark-gray label
 * on the mistaken assumption they had a light fill of their own, which
 * made them unreadable against the actual dark header behind them. The
 * rule right above already gives every header button #fff, so nothing
 * further is needed for this cluster specifically. */
/* Back/Undo/Redo's own glyphs (HeaderNavGroup.tsx) are ghost buttons —
 * transparent background, so outside the header they sit directly on
 * light mode's now-white/light page, and their white icon color (plain
 * CSS for Back, an inline style on Undo/Redo's own span that only
 * `!important` can beat) goes invisible. Wherever this group is actually
 * inside the dark header, though, white is still correct — same as every
 * other header icon — so that copy is put back explicitly, at higher
 * specificity so it wins over the general rule right above it. */
/* LanguageSwitcher's own name label (an inline style before this, so it
 * couldn't react to theme at all) renders on both the plain themed page
 * (Start Page's utility row) and the fixed-dark header/org strips — same
 * split as Back/Undo/Redo just above, same fix. */
.langswitcher-name{color:var(--info)}
:root[data-theme="light"] .langswitcher-name{color:var(--info-text)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .langswitcher-name{color:var(--info-text)}}
:root[data-theme="light"] header.topbar .langswitcher-name,
:root[data-theme="light"] .orgheader .langswitcher-name{color:var(--info)}
@media (prefers-color-scheme:light){:root[data-theme="system"] header.topbar .langswitcher-name,
:root[data-theme="system"] .orgheader .langswitcher-name{color:var(--info)}}
/* The corner name + avatar (AccountLink) — one link to My Account from every page. */
.acctlink{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
.acctavatar{display:block;width:28px;height:28px;border-radius:50%;object-fit:cover;flex:none;background:var(--bg3)}
:root[data-theme="light"] .navgroup .btn.icon{color:#000}
@media (prefers-color-scheme:light){:root[data-theme="system"] .navgroup .btn.icon{color:#000}}
:root[data-theme="light"] .navgroup .btn.icon span{color:#000 !important}
@media (prefers-color-scheme:light){:root[data-theme="system"] .navgroup .btn.icon span{color:#000 !important}}
:root[data-theme="light"] header.topbar .navgroup .btn.icon,
:root[data-theme="light"] header.topbar .navgroup .btn.icon span{color:#fff !important}
@media (prefers-color-scheme:light){:root[data-theme="system"] header.topbar .navgroup .btn.icon,
:root[data-theme="system"] header.topbar .navgroup .btn.icon span{color:#fff !important}}
header.topbar .btn.ghost{background:transparent}
header.topbar .btn.ghost:hover{background:var(--hdr-btn)}
header.topbar .btn.danger{color:#e8927c;border-color:var(--bad)}
/* Dashboard/Start Page/Switch Projects (NavReturnButtons.tsx's own
 * `.navreturn` group), 2026-09-28: white stroke, bold light gray text
 * (var(--hdr-tx3) — the header's own muted-text token; plain white read as
 * too stark, and --hdr-tx itself turned out too close to white to read as
 * "gray" at all), a hover highlight, no fill — the same in every
 * appearance, since this group sits on the header, which stays the same
 * dark chrome whether the rest of the page is in light or dark mode.
 * Overrides the generic header.topbar .btn rule's own border (higher
 * specificity than a plain .btn.ghost would have), same in both places
 * this group appears. */
header.topbar .navreturn .btn,
.orgheader .navreturn .btn{background:transparent;border-color:#fff;color:var(--hdr-tx3);font-weight:600}
header.topbar .navreturn .btn:hover,
.orgheader .navreturn .btn:hover{background:rgba(255,255,255,.14)}
/* Print/Export/etc. — the header's own `.modactions` corner — read as the
 * header's dark chrome by the generic `header.topbar .btn` rule above,
 * same as every other header button; a yellow stroke here specifically
 * (higher specificity than that rule, so it wins) makes this cluster of
 * real actions easier to spot at a glance against the header. */
header.topbar .modactions .btn{border-color:var(--acc-stroke)}
header.topbar .modactions .btn:hover{border-color:var(--acc2)}
/* Start Page (.btn.blue) is always inside .navreturn (NavReturnButtons.tsx
 * is its only user) — the .navreturn rule above already gives it the same
 * white-stroke/white-text/hover treatment as its two neighbors, in every
 * appearance, so nothing further is needed for it here. */

/* Light mode wants a lighter shadow and a visible card edge. */
:root[data-theme="light"] .card{box-shadow:0 1px 2px rgba(16,24,32,.06)}
@media (prefers-color-scheme:light){:root[data-theme="system"] .card{box-shadow:0 1px 2px rgba(16,24,32,.06)}}

/* ── Union block ─────────────────────────────────────────────────────── */
.unionblock .togrow{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding-top:4px}
.mt8{margin-top:8px}.mt10{margin-top:10px}.mb10{margin-bottom:10px}.mb14{margin-bottom:14px}

.warn.caution button.btn{margin-left:auto;flex:0 0 auto;align-self:flex-start}

/* A committed project type reads like a committed budget stage: the same
 * light green, and the control closed once the medium can no longer change. */
select.committed{color:var(--budgetname);font-weight:700}
select.committed:disabled{opacity:1;color:var(--budgetname);
  border-color:color-mix(in srgb, var(--budgetname) 45%, transparent)}
.hint.xs{font-size:14px}
.w420{width:420px;max-width:100%}

/* ── Department picker: select-all controls ─────────────────────────── */
.pick-head{display:flex;align-items:center;gap:12px}
.pick-head > span:first-child{flex:0 0 auto}
.selall{display:inline-flex;align-items:center;gap:6px;margin-left:auto;
  font-size:12px;font-weight:500;color:var(--tx2);text-transform:none;
  letter-spacing:0;cursor:pointer;white-space:nowrap}
.selall input{width:14px;height:14px;accent-color:var(--acc);margin:0;flex:0 0 auto}
.selall:hover{color:var(--tx)}
.masterbar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:8px 14px;border-bottom:1px solid var(--line);background:var(--bg)}
.selall.master{margin-left:0;font-size:12px;font-weight:600;color:var(--tx)}

/* ── Per-diem column heading ─────────────────────────────────────────
 * The label sits left-justified directly over the per-diem checkbox, with a
 * bracket running from it to the edge of the column, so it is obvious that
 * the rate, the count and the period all belong to per diem rather than to
 * the Fringe Group column beside them. */
th.pdhead{text-align:center !important;vertical-align:bottom;padding-bottom:4px}
th.pdhead .pdlabel{display:block;text-align:center}
/* Equal margins so the bracket's centre and the label's centre coincide. */
th.pdhead .pdrule{display:block;position:relative;height:5px;margin-top:3px;
  margin-left:5px;margin-right:5px;border-top:1px solid var(--line2)}
th.pdhead .pdrule::before,th.pdhead .pdrule::after{content:"";position:absolute;top:0;
  width:1px;height:5px;background:var(--line2)}
th.pdhead .pdrule::before{left:0}
th.pdhead .pdrule::after{right:0}

/* The rate cell holds a fill-the-minimum button as well as the field, so it is
   a row. It wraps, because the below-minimum warning underneath is a third
   item that has to sit on its own line. */
.ratecell{display:flex;flex-wrap:wrap;align-items:center;gap:4px}
/* flex-basis 0, not auto. The field carries width:100% from the table rules,
   which as a flex-basis is the whole cell — so the icon beside it had nowhere
   to sit and wrapped onto its own line, making every row with one half again
   as tall as the rest. */
.ratecell input{width:auto;flex:1 1 0;min-width:0}
/* This line's own currency, when it's priced differently from the project's
 * default — a feature the original app doesn't have at all (its currency is
 * one global display setting for the whole budget), so there's no original
 * markup to match; sized to sit beside the rate input without stealing its
 * width the way the ↧ minimum-fill icon doesn't. */
.linecur{flex:0 0 auto;width:auto;font-size:12px;padding:2px 4px;min-height:0;
  background:var(--bg3);border:1px solid var(--line);border-radius:5px;color:var(--tx2)}
.linecur-conv{margin-top:2px}
.minico{flex:0 0 auto;width:17px;height:17px;line-height:15px;text-align:center;
  font-size:12px;border-radius:5px;border:1px solid var(--acc-stroke);
  background:none;color:var(--acc-text);padding:0;cursor:pointer}
.minico:hover{background:var(--bg4);border-color:var(--line2)}
.minico:focus-visible{outline:2px solid var(--acc);outline-offset:1px}
/* The one in the column heading is a key to the icon, not a control. */
th .minico{cursor:default;color:var(--tx3);border-color:transparent}
th .minico:hover{background:none;border-color:transparent}

/* ── Disclosure row (union & agreements on the top sheet) ───────────── */
.disclose{display:flex;align-items:center;gap:10px;width:100%;padding:9px 2px;
  text-align:left;color:var(--tx2);border-radius:6px}
.disclose:hover{color:var(--tx);background:var(--bg3)}
/* The caret sits in an outlined box so the control reads as a control, not
 * as decoration — this section sets every union floor beneath it and should
 * not be something the eye slides past. */
.disclose .caretbox{display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;width:22px;height:22px;border:1px solid var(--acc-stroke);border-radius:6px;
  background:none;transition:background .12s ease}
.disclose:hover .caretbox{background:rgba(224,168,60,.12)}
.disclose .caret{display:block;font-size:15px;line-height:1;color:var(--acc-text);
  transition:transform .12s ease;transform:translateX(1px)}
.disclose.open .caret{transform:rotate(90deg)}
.disclose .dtitle{font-size:12px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--acc-text);flex:0 0 auto}
.disclose .dsum{font-size:12px;color:var(--tx2);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;min-width:0}
.disclose.open .dsum{color:var(--tx3)}

/* A rate reads as money, and keeps its digits legible while being typed. */
td input.num.rate{font-variant-numeric:tabular-nums}

/* What the per-diem inputs come to, beside them. */
.pdamt{font-size:12px;font-weight:600;color:var(--tx2);white-space:nowrap;margin-left:6px}
.pdamt .pddays{font-weight:400;color:var(--tx3);font-size:12px}
.pdamt .pdzero{font-weight:400;color:var(--bad);font-size:12px}

/* ── Global search ──────────────────────────────────────────────────── */
.gsearch{display:flex;align-items:center;gap:7px;padding:5px 9px;border-radius:7px;
  background:var(--bg);border:1px solid var(--acc-stroke);cursor:text;
  transition:border-color .12s ease,width .12s ease}
.gsearch:focus-within{border-color:var(--acc-stroke)}
.gicon{width:14px;height:14px;flex:0 0 auto;color:var(--tx3)}
.gsearch:focus-within .gicon{color:var(--acc-text)}
.gsearch input{width:190px;min-width:0;background:none;border:0;outline:none;
  font-size:12.5px;color:var(--tx);padding:0}
.gsearch input::placeholder{color:var(--tx3)}
.gsearch input::-webkit-search-cancel-button{-webkit-appearance:none}
.gsearch:focus-within input{width:290px}
.gkey{font-size:12px;color:var(--tx3);border:1px solid var(--line2);border-radius:4px;
  padding:1px 4px;flex:0 0 auto}
.gsearch:focus-within .gkey{display:none}

.gresults{position:absolute;top:calc(100% + 6px);right:0;width:520px;max-width:92vw;
  max-height:min(68vh,560px);overflow-y:auto;z-index:60;
  background:var(--bg2);border:1px solid var(--line2);border-radius:10px;
  box-shadow:0 18px 44px rgba(0,0,0,.5)}
.gresults .ghead{position:sticky;top:0;background:var(--bg2);padding:8px 12px 5px;
  font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--tx3);border-bottom:1px solid var(--line)}
.gresult{display:flex;align-items:center;gap:10px;padding:8px 12px;cursor:pointer;
  border-bottom:1px solid var(--line)}
.gresult:last-child{border-bottom:0}
.gresult:hover,.gresult.sel{background:var(--bg3)}
.gresult.sel{box-shadow:inset 2px 0 0 var(--acc)}
.gresult .gcode{font:600 12px/1 var(--mono);color:var(--tx3);flex:0 0 auto;width:46px}
.gresult .gmain{flex:1 1 auto;min-width:0}
.gresult .gname{display:block;font-size:13px;color:var(--tx);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.gresult .gname mark{background:rgba(224,168,60,.28);color:var(--acc2-text);border-radius:2px;
  padding:0 1px}
.gresult .gwhere{display:block;font-size:12px;color:var(--tx3);white-space:nowrap;overflow:hidden;
  text-overflow:ellipsis}
.gresult .gact{font-size:12px;color:var(--tx3);flex:0 0 auto;border:1px solid var(--line2);
  border-radius:4px;padding:1px 5px}
.gresult.sel .gact{color:var(--acc-text);border-color:var(--acc-stroke)}
.gempty{padding:22px 14px;text-align:center;color:var(--tx2);font-size:14px}
.gfoot{position:sticky;bottom:0;background:var(--bg2);border-top:1px solid var(--line);
  padding:6px 12px;font-size:12px;color:var(--tx3);display:flex;gap:14px}

/* The row a search result led you to. */
@keyframes foundflash{0%,100%{background:transparent}18%,60%{background:rgba(224,168,60,.22)}}
tr.found > td{animation:foundflash 1.6s ease 1}

@media (max-width:900px){
  .gsearch input{width:120px}
  .gsearch:focus-within input{width:170px}
  .gresults{width:min(480px,92vw)}
}

/* Globals, grouped by species. */
.gsection + .gsection{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}
.gsectitle{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--acc-text);margin-bottom:4px}

/* Departments page: the section band carries its own select-all. */
.secrow{display:flex;align-items:center;gap:12px;width:100%}
.secrow > span:first-child{flex:0 0 auto}
tr.clickable.added td{background:rgba(224,168,60,.055)}
tr.clickable td input[type=checkbox]{width:15px;height:15px;accent-color:var(--acc);margin:0}

/* ── Line table: column widths by density ───────────────────────────────
 * Widths live here rather than inline so a density change is one attribute
 * on the root. Every preset is a set of widths known to fit its contents —
 * nothing is ever squeezed to the point of truncation, which is the whole
 * reason this is presets and not free dragging. */
/* c-num/c-rate rebalanced from their original 250/110 (comfortable) split —
 * Number-of's real content (a short number + a "#" global-picker + at most
 * one word like "Shoot days") never needed 250px, while 110px genuinely
 * wasn't enough room for a real rate plus its currency select, truncating
 * a value like 2,896 down to "2,". Total column-set width is unchanged,
 * just redistributed between these two.
 * c-desc is wide enough for a full character/crew name plus its gray
 * position label ("Weekly performer, lead role") side by side — neither
 * is ever cut off; the table scrolls sideways instead. */
:root{
  --c-acct:74px;  --c-desc:440px; --c-qty:150px; --c-unit:96px;  --c-num:160px;
  --c-rate:180px; --c-pd:330px;   --c-fg:186px;  --c-sub:112px;  --c-fr:138px;
  --c-tot:116px;  --c-act:148px;  --c-ph:112px;
  --c-id:64px;    --c-actor:220px;
  --line-fs:13px; --line-pad:7px;
}
:root[data-density="compact"]{
  --c-acct:62px;  --c-desc:410px; --c-qty:130px; --c-unit:86px;  --c-num:145px;
  --c-rate:160px; --c-pd:280px;   --c-fg:150px;  --c-sub:100px;  --c-fr:118px;
  --c-tot:104px;  --c-act:148px;  --c-ph:98px;
  --c-id:56px;    --c-actor:200px;
  --line-fs:12.5px; --line-pad:5px;
}
:root[data-density="condensed"]{
  --c-acct:54px;  --c-desc:380px; --c-qty:112px; --c-unit:78px;  --c-num:130px;
  --c-rate:140px; --c-pd:240px;   --c-fg:126px;  --c-sub:92px;   --c-fr:104px;
  --c-tot:96px;   --c-act:146px;  --c-ph:88px;
  --c-id:50px;    --c-actor:180px;
  --line-fs:12px; --line-pad:4px;
}

/* Top Sheet's own resizable columns — a plain, unclassed <table> before
 * this, so it never had table-layout:fixed or per-column widths at all
 * (only ACCT had a one-off inline width). Scoped to .topsheet, entirely
 * separate from table.lines' --c-* vars above, since Top Sheet's columns
 * (Category/Department/Subtotal/Fringes/Total) don't correspond to
 * LineRow's at all. */
:root{
  --ts-acct:80px; --ts-category:180px; --ts-department:180px;
  --ts-subtotal:130px; --ts-fringes:130px; --ts-total:130px;
}
/* width:100% keeps the table filling the card exactly like the original
 * unclassed <table> did (a real regression to fix if this ever narrows the
 * card again). One side effect: because the six columns' width totals
 * don't fill every viewport, table-layout:fixed redistributes any leftover
 * space proportionally across all of them, so a drag-resize moves a column
 * by roughly, not exactly, the distance dragged — a real but secondary
 * imprecision, not worth trading the correct full-width layout for. */
table.topsheet{table-layout:fixed;width:100%}
table.topsheet th{position:relative}
table.topsheet th.ts-acct,table.topsheet td.ts-acct{width:var(--ts-acct)}
table.topsheet th.ts-category,table.topsheet td.ts-category{width:var(--ts-category)}
table.topsheet th.ts-department,table.topsheet td.ts-department{width:var(--ts-department)}
table.topsheet th.ts-subtotal,table.topsheet td.ts-subtotal{width:var(--ts-subtotal)}
table.topsheet th.ts-fringes,table.topsheet td.ts-fringes{width:var(--ts-fringes)}
table.topsheet th.ts-total,table.topsheet td.ts-total{width:var(--ts-total)}

table.lines th.c-acct,table.lines td.c-acct{width:var(--c-acct)}
table.lines th.c-desc,table.lines td.c-desc{width:var(--c-desc)}
table.lines th.c-qty, table.lines td.c-qty {width:var(--c-qty)}
table.lines th.c-unit,table.lines td.c-unit{width:var(--c-unit)}
table.lines th.c-ph,  table.lines td.c-ph  {width:var(--c-ph)}
table.lines th.c-num, table.lines td.c-num {width:var(--c-num)}
table.lines th.c-rate,table.lines td.c-rate{width:var(--c-rate)}
table.lines th.c-pd,  table.lines td.c-pd  {width:var(--c-pd)}
table.lines th.c-fg,  table.lines td.c-fg  {width:var(--c-fg)}
table.lines th.c-sub, table.lines td.c-sub {width:var(--c-sub)}
table.lines th.c-fr,  table.lines td.c-fr  {width:var(--c-fr)}
table.lines th.c-tot, table.lines td.c-tot {width:var(--c-tot)}
table.lines th.c-act, table.lines td.c-act {width:var(--c-act)}
/* Cast and crew accounts (budget/[code]/page.tsx): the cast/crew ID after
 * ACCT, and the actor (cast) or the person on the line (crew) after
 * DESCRIPTION. */
table.lines th.c-id,  table.lines td.c-id  {width:var(--c-id)}
table.lines th.c-actor,table.lines td.c-actor{width:var(--c-actor)}

/* Script Breakdown's Scenes table (SceneList.tsx) — its own column widths,
 * scoped to .scenestable so they never touch table.lines' other user (the
 * Budget line-item tables, which size columns via the --c-* vars above).
 * table-layout:fixed with no per-column width otherwise divides the row
 * evenly across all 8 columns regardless of content — technically
 * "equal," but Slugline's long text and Scene/Int-Ext/D-N's short badges
 * end up looking randomly spaced. Explicit widths here, sized to what each
 * column actually holds, is what makes the spacing read as even. Slugline
 * (3rd column) is deliberately left unset so it absorbs whatever width
 * the other seven don't need. */
table.scenestable th:nth-child(1),table.scenestable td:nth-child(1){width:40px}
table.scenestable th:nth-child(2),table.scenestable td:nth-child(2){width:64px}
table.scenestable th:nth-child(4),table.scenestable td:nth-child(4){width:72px}
table.scenestable th:nth-child(5),table.scenestable td:nth-child(5){width:96px}
table.scenestable th:nth-child(6),table.scenestable td:nth-child(6){width:72px}
table.scenestable th:nth-child(7),table.scenestable td:nth-child(7){width:108px}
/* Below this the Slugline column would be squeezed to nothing; the table
 * scrolls sideways inside its .tw instead, with the branded scrub bar
 * TableScrub.tsx mounts above any .tw that overflows. */
table.scenestable{min-width:760px}
table.scenestable th:nth-child(8),table.scenestable td:nth-child(8){width:140px}

:root[data-density="compact"] table.lines td input,
:root[data-density="compact"] table.lines td select,
:root[data-density="condensed"] table.lines td input,
:root[data-density="condensed"] table.lines td select{font-size:var(--line-fs)}
:root[data-density="compact"] table.lines td,
:root[data-density="condensed"] table.lines td{padding-top:var(--line-pad);padding-bottom:var(--line-pad)}

/* The row's own buttons stay reachable however far the table scrolls —
 * otherwise the split, duplicate and delete controls sit hundreds of pixels
 * off the right edge and may as well not exist. */
table.lines th.c-act,table.lines td.c-act{position:sticky;right:0;z-index:3;
  background:var(--bg2);border-left:1px solid var(--line)}
table.lines tr:hover td.c-act{background:var(--bg3)}
table.lines thead th.c-act{background:var(--bg3);z-index:4}

/* The global a field follows, named beside the number it resolved to. */
.gtag{display:inline-flex;align-items:center;max-width:96px;padding:2px 6px;
  border:1px solid color-mix(in srgb, var(--info) 45%, transparent);border-radius:5px;
  background:color-mix(in srgb, var(--info) 12%, transparent);
  font-size:12px;line-height:1.3;color:var(--info-text);white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;cursor:help;flex:0 0 auto}
.gtag.ro{cursor:default}
:root[data-density="condensed"] .gtag{max-width:74px;font-size:12px;padding:1px 4px}

/* ── Phase column: Pr / S / W / Po ───────────────────────────────────── */
th.c-ph{text-align:center !important}
th.c-ph .phcol,td.c-ph .phcol{display:inline-block;width:25%;text-align:center;
  font-size:12px;letter-spacing:.04em}
th.c-ph .phcol{color:var(--tx3);font-weight:700}
td.c-ph .phcol{font:600 12px/1.4 var(--mono);color:var(--tx2)}
td.c-ph .phcol.on{color:var(--acc-text);font-weight:700}
td.c-ph .phcol.off{color:var(--line2)}
td.c-ph .phcol.zero{color:var(--tx3);opacity:.5}

/* ── A folded split group ────────────────────────────────────────────── */
.groupname{display:flex;align-items:center;gap:6px;min-width:0}
.groupname > span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.groupname input{flex:1;min-width:190px}

/* A plain (non-grouped) line's description cell — same input-plus-label
 * shape as .groupname, just without the fold/merge buttons. */
.desccell{display:flex;align-items:center;gap:6px;min-width:0}
.desccell input{flex:1;min-width:190px}

/* The catalog position ("Grip", "Cast") a line was added as, next to its
 * description input — same treatment as .acct-code (gray, 12px) so it
 * reads as reference text, not data you'd edit here. Only ever shown
 * once it differs from the current description (LineRow.tsx), i.e. once
 * the placeholder position has actually been overwritten with a name.
 * Never truncated: the label always shows in full (Target Budget's SAG
 * tier labels, "Weekly performer, lead role", run far longer than a crew
 * position's "Grip"), and the input's own min-width keeps the name next
 * to it readable — --c-desc is sized for both. */
.poslabel{flex:0 0 auto;white-space:nowrap;color:var(--tx3);font-size:12px}
.disc{flex:0 0 auto;width:18px;height:18px;display:inline-flex;align-items:center;
  justify-content:center;border:1px solid var(--acc-stroke);border-radius:5px;color:var(--acc-text);
  font-size:13px;line-height:1;transition:transform .12s ease,background .12s ease}
.disc:hover{background:rgba(224,168,60,.14)}
.disc.open{transform:rotate(90deg)}
.phasecount{font-size:12px;color:var(--tx3);border:1px solid var(--line2);
  border-radius:4px;padding:1px 4px;flex:0 0 auto}
tr.grouprow td{background:rgba(224,168,60,.05)}
/* font-family reset is the fix here, not decoration — this button sits
 * inside a td.c-num.num cell, and .num's font-family:var(--mono) otherwise
 * cascades onto it and renders the ⋔ symbol as
 * a near-illegible glyph. The rest of the app's UI (var(--sans)) renders
 * it cleanly. */
.phsplit{padding:2px 5px;margin-left:5px;font-size:12px;line-height:1;flex:0 0 auto;font-family:var(--sans)}

/* ── Horizontal scrubber ────────────────────────────────
 * A deliberate, visible way to pan a table that is wider than the window —
 * yellow track, green handle. TableScrub.tsx mounts one above every .tw
 * (and #scBoard) and toggles .hidden on it whenever the table fits. */
.scrub{padding:0 0 8px}
.scrub.hidden{display:none}
/* Schedule's own scrub sits right between the legend above and the day
 * board below, with nothing else providing breathing room — 8px on both
 * sides so it doesn't crowd either. */
.scrub:has(+ #scBoard){margin:8px 0}
.scrubtrack{position:relative;height:14px;border:1.5px solid var(--acc);
  border-radius:999px;background:none}
.scrubgrip{position:absolute;top:2px;left:0;height:8px;min-width:36px;
  border-radius:999px;background:var(--good);cursor:grab;touch-action:none}
.scrub.dragging .scrubgrip{cursor:grabbing;background:var(--acc2)}
.scrubgrip:hover{filter:brightness(1.15)}

/* The group controls — fold, and unsplit — sit together at the head of a
 * split line, ahead of its name. */
.groupname .disc.merge{font-size:12px}

/* A folded group reads as a line item, so its read-only cells borrow the
 * shape of the editable ones rather than collapsing to bare text. */
tr.grouprow .c-num .cellpair{justify-content:flex-end;gap:6px}
tr.grouprow .gnum{font-variant-numeric:tabular-nums}
.pdcell.folded{display:flex;align-items:center;gap:5px}
.pdcell.folded .ro{color:var(--tx2);font-variant-numeric:tabular-nums}
.pdcell.folded .pdper{font-size:12px;color:var(--tx3)}
.pdnone{font-size:12px}
.c-act .disc{vertical-align:middle}

/* The production name at the top of the window is white. Not themed, not
 * derived from a token that an appearance could redefine, not grey while it is
 * still a placeholder — white, in every mode, always. Pinned here at the end
 * of the stylesheet with !important so nothing added later can quietly take it
 * back; the placeholder is told apart by its lighter weight instead. */
.proj-title, header.topbar .proj-title{color:#FFFFFF !important}
.proj-title:empty::before, header.topbar .proj-title:empty::before{color:#FFFFFF !important}
/* ProjectInfoTitle.tsx — in the three modules the title is a button that
 * opens Project Info in a popup. Still white (the rule above), underlined so
 * it reads as clickable, and on hover the underline turns brand gold over a
 * faint gold wash. The negative margin cancels the padding so the title
 * sits exactly where the plain one does. */
header.topbar .proj-title.projtitlebtn{height:auto;padding:3px 7px;margin:-3px -7px;border-radius:6px;
  text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;
  text-decoration-color:rgba(255,255,255,.55);cursor:pointer;
  transition:background .12s ease,text-decoration-color .12s ease}
header.topbar .proj-title.projtitlebtn:hover{background:rgba(224,168,60,.16);text-decoration-color:#e0a83c}
header.topbar .proj-title.projtitlebtn:focus-visible{outline:2px solid #e0a83c;outline-offset:2px}
/* The popup itself: wide enough for the Project fields' grid, the body
 * scrolls inside .modal's 88vh cap. Kept mounted while closed (hidden) so a
 * half-finished edit survives Close — [hidden] has to beat .modal-bg's flex. */
.modal-bg.projinfo-modal[hidden]{display:none}
.modal.projinfo-dialog{max-width:1100px}
.modal.projinfo-dialog .card-body{flex:1 1 auto;min-height:0}

/* The way out at the foot of Union & agreements. Smaller than the heading it
 * closes, in the same brand gold, on its own line. */
.collapselink{display:inline-block;margin:14px 0 2px;padding:0 0 1px;
  font:600 12px/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;
  color:var(--acc-text);background:none;border:0;border-bottom:1px solid var(--acc);cursor:pointer}
.collapselink:hover{color:var(--acc2-text);text-decoration:underline}

/* ── Popup type size ────────────────────────────────────────────────────
 * Every popup reads at 12pt or larger. A dialog is where the consequential
 * questions get asked — remove a department and its line items, send a budget
 * forward and freeze it, authorise an overage — and those are not the place
 * for 10px labels. The floor is 16px, which is 12pt at the browser's default
 * 96dpi; headings sit above it, nothing sits below.
 *
 * Scoped to .modal so the dense line tables underneath are untouched: a budget
 * grid needs to fit a lot of columns, a dialog does not. */
.modal{font-size:16px;line-height:1.5}
.modal .hint,
.modal .sub,
.modal header .sub,
.modal .warn,
.modal .pickernote,
.modal .muted,
.modal .xs,
.modal .un,
.modal .add,
.modal label,
.modal .tog,
.modal .field label,
.modal .btn,
.modal .btn.sm,
.modal input,
.modal select,
.modal textarea,
.modal table,
.modal td,
.modal .lname,
.modal .pick-head,
.modal .card-body,
.modal footer,
.modal p, .modal li, .modal div, .modal span{font-size:16px}
.modal h3, .modal header h3{font-size:20px}
.modal h4, .modal .mh{font-size:17px;letter-spacing:.04em}
/* A group's label (PreVis Export's Where to / What to export, a contact's
 * Address) at the size of the field labels beside it, not 12px under them. */
.modal fieldset legend{font-size:16px}
.modal th{font-size:13px;letter-spacing:.07em}
.modal .acct-code{font-size:16px}
.modal .badge{font-size:13px}
.modal .flag{font-size:20px}
.modal .caretbox,.modal .caret{font-size:inherit}
/* The gaps have to grow with the type or the dialog reads as a wall. */
.modal .card-body{padding:16px}
.modal header{padding:16px 18px}
.modal footer{padding:14px 18px}
.modal .tog{line-height:1.5}

/* The script-import progress popup (AiBreakdownStatus.tsx). Its header is
 * brand furniture like the top bar — dark in every appearance, logo and a
 * gold clock — so the logo reads the same way on a light page. */
.aiprog header{background:var(--hdr-bg);border-bottom-color:var(--hdr-line);border-radius:11px 11px 0 0;justify-content:space-between}
.aiprog .aiprog-logo{height:28px;width:auto;display:block}
.modal .aiprog-time{font:700 20px/1 var(--mono);color:var(--acc);letter-spacing:.02em}
.aiprog h3{margin:0 0 12px}
.aiprog-bar{position:relative;height:10px;border-radius:999px;background:var(--bg3);overflow:hidden}
.aiprog-bar>span{display:block;height:100%;background:var(--acc);border-radius:inherit;transition:width .6s ease}
.aiprog-bar.live::after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);animation:aiprogsweep 1.8s linear infinite}
@keyframes aiprogsweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.modal .aiprog-phase{margin:10px 0 0}
.aiprog-rows{list-style:none;margin:12px 0 0;padding:0}
.aiprog-rows li{display:flex;align-items:center;gap:10px;padding:5px 0;border-top:1px solid var(--line)}
.aiprog-rows li:first-child{border-top:0}
/* The twelve categories sit in two columns, so the whole popup fits a
 * laptop or iPad screen without scrolling. */
.aiprog-rows.cats{display:grid;grid-template-columns:1fr 1fr;column-gap:28px;margin-top:0}
.aiprog-rows.cats li,.aiprog-rows.cats li:first-child{border-top:1px solid var(--line)}
@media (max-width:640px){.aiprog-rows.cats{grid-template-columns:1fr}}
.aiprog-rows .nm{flex:1;min-width:0}
.aiprog-rows .ct{font-family:var(--mono);color:var(--tx2);text-align:right}
.aiprog-rows .st{min-width:92px;text-align:right;color:var(--tx3)}
.aiprog-rows li.working .st{color:var(--acc-text)}
.aiprog-rows li.done .st,.aiprog-rows li.done .aiprog-ico{color:var(--good-text)}
.aiprog-ico{flex:0 0 16px;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.aiprog-spin{width:14px;height:14px;border-radius:50%;border:2px solid var(--line2);border-top-color:var(--acc);animation:aiprogspin .8s linear infinite}
@keyframes aiprogspin{to{transform:rotate(360deg)}}
.aiprog-dot{width:8px;height:8px;border-radius:50%;background:var(--line2)}
.modal .aiprog-done{margin:10px 0 0;font-weight:600;color:var(--good-text)}
.modal .aiprog-msg{margin:10px 0 0}
@media (prefers-reduced-motion:reduce){.aiprog-spin,.aiprog-bar.live::after{animation:none}}

/* The shortcut sheet. */
kbd{display:inline-block;min-width:34px;text-align:center;padding:3px 8px;
  font:600 14px/1.3 var(--mono);color:var(--tx);
  background:var(--bg3);border:1px solid var(--line2);border-bottom-width:2px;border-radius:6px}

/* ── Incentive comparison ───────────────────────────────────────────────
 * Comparison chips are questions, not steps in the chain, so they read
 * differently from the stage chips they sit between: no number badge fill,
 * a dashed edge, and the brand gold reserved for the one you are looking at. */
.incbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.incbar-cmps{display:flex;flex-wrap:wrap;gap:10px}
/* "Compare side by side" popup: the baseline plus each comparison, two to a row. */
.modal.sbs-modal{max-width:min(1100px,96vw);width:100%;max-height:92vh;display:flex;flex-direction:column}
.sbs-modal header{display:flex;align-items:center;gap:12px}
.sbs-modal .card-body{overflow-y:auto;padding:20px 22px}
.sbs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
@media (max-width:700px){.sbs-grid{grid-template-columns:minmax(0,1fr)}}
.sbs-col{border:1px solid var(--line2);border-radius:10px;padding:18px 20px;display:flex;flex-direction:column;gap:14px;min-width:0;background:var(--bg3)}
/* The original (baseline) budget: an 8px brand-blue bar down its left edge. */
.sbs-col.base{border-left:8px solid var(--info)}
.sbs-col h4{margin:0;font-size:15px;color:var(--acc-text)}
.sbs-col.base h4{color:var(--info)}
.sbs-nums{display:grid;grid-template-columns:1fr auto;gap:10px 18px;margin:0;font-size:14px}
.sbs-nums dt{color:var(--tx2)}
.sbs-nums dd{margin:0;text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.sbs-nums dd.good{color:var(--good-text)}
.sbs-nums dd.hero{color:var(--acc-text)}
.sbs-applied{margin:0;padding-left:18px;font-size:13px;line-height:1.5;flex:1}
.sbs-applied li{margin:4px 0}
.sbs-actions{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);padding-top:14px}
.stagechip.cmp{border-style:dashed}
.stagechip.cmp .n{background:transparent;border:1px solid var(--line2);color:var(--tx2)}
.stagechip.cmp.on .n{background:var(--acc);border-color:var(--acc-stroke);color:#171a1d}
.stagechip.cmp.base{border-style:solid}

.cmpcount{font-weight:600}
.cmpfresh{color:var(--tx3);font-size:12px}
.cmplist .pick.cmp{display:flex;align-items:center;gap:8px;cursor:pointer;min-width:0}
.cmplist .pick.dead{opacity:.45}
.cmplist .pick.cmp .nm{flex:0 0 auto;font-weight:600}
/* The rate line is the part that gives way when the row runs out of room —
 * the pills are the whole point of the row and must never be pushed off. */
.cmphead{color:var(--tx2);font-size:12px;margin-left:auto;text-align:right;
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmplist .statuspill{flex:0 0 auto}
.statuspill{font-size:12px;font-weight:700;letter-spacing:.04em;
  padding:2px 7px;border-radius:20px;white-space:nowrap;text-transform:uppercase}
.statuspill.available{background:#1d3a2c;color:#8fd9a8}
/* Status pills keep their own fixed dark chip background in every
 * appearance (unlike everything else on the light-mode page), so their
 * text stays the light gold that reads against it, not --acc2-text. */
.statuspill.limited,.statuspill.confirm{background:#3a3320;color:var(--acc2)}
.statuspill.none,.statuspill.paused{background:#3a2622;color:#e8927c}

.cmppanel{border-color:var(--acc-stroke)}
.cmpnums{display:flex;gap:26px;flex-wrap:wrap}
.cmpnums .sb-item b{font-size:20px;font-variant-numeric:tabular-nums}
.cmpnums b.good{color:#8fd9a8}
.cmpnums b.hero{color:var(--acc2-text)}

/* Pills in the incentive picker stay small on purpose: they are status marks,
 * not sentences, and the 12pt floor is about text a person has to read. */
.modal .statuspill{font-size:12px}
.modal .cmphead{font-size:12px}
.modal .cmplist .pick.cmp{font-size:14px}

/* A rule between two buttons that do different jobs — build the budget by
 * department, or build it by crew. The gap alone read as one group. */
/* A hairline at --line2 disappeared against the panel; this is the dimmed
 * text tone, which is legible in both appearances without shouting. */
.vsep{align-self:stretch;width:1px;min-height:28px;background:var(--tx3);
  opacity:.75;flex:0 0 auto}
.adddeptbar .vsep,.masterbar .vsep{margin:0 2px}

/* The catalogue-wide crew picker: positions grouped under the department each
 * one would open. */
.crewlist .pick-head .badge{background:#3a3320;color:var(--acc2);margin-left:6px}

/* What is already on the budget, pinned to the top of the crew picker so a
 * position can be taken off without hunting it down a list of six hundred. */
.pick-head.sticky{position:sticky;top:0;z-index:2;background:var(--bg2);
  border-bottom:1px solid var(--line)}
.hint-inline{text-transform:none;letter-spacing:0;font-weight:400;color:var(--tx3)}
.pick.mine{background:rgba(224,168,60,.06)}
.pick.mine .nm{font-weight:600}
.pick.mine .un{color:var(--tx3)}

/* The destructive buttons on a comparison. Outlined in red with no fill: a
 * filled button invites the thumb and neither of these should. */
.cmpactions{gap:10px}
.cmpactions .vsep{margin:0 2px}
.btn.danger.outline{background:transparent;border-color:var(--bad);color:var(--bad);
  justify-content:center}
.btn.danger.outline:hover{background:rgba(217,105,79,.12);border-color:#e8927c;color:#e8927c}

/* ── The comparison bar ─────────────────────────────────────────────────
 * Its own row under the tabs. Comparisons are not stages — nothing sends
 * forward from one — so they sit apart from the chain rather than inside it,
 * and read as a set of alternatives with a way back to the baseline. */
.cmpbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;
  padding:8px 16px;background:var(--bg2);border-bottom:1px solid var(--line)}
.cmpbarlabel{font-size:12px;letter-spacing:.09em;text-transform:uppercase;
  color:var(--tx3);font-weight:700;margin-right:2px}
.cmpbarnote{font-size:14px;color:var(--tx2)}
.cmpchip{display:inline-flex;align-items:center;gap:7px;padding:5px 11px;
  border:1px dashed var(--line2);border-radius:20px;color:var(--tx2);
  font-size:12px;font-weight:600;background:transparent;cursor:pointer;white-space:nowrap}
.cmpchip:hover{border-color:var(--acc-stroke);color:var(--tx)}
.cmpchip .n{display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:18px;padding:0 5px;border-radius:10px;
  border:1px solid var(--line2);font-size:12px;font-weight:700;color:var(--tx3)}
.cmpchip.on{border-style:solid;border-color:var(--acc-stroke);color:#171a1d;background:var(--acc)}
.cmpchip.on .n{background:#171a1d;border-color:#171a1d;color:var(--acc)}
.cmpchip.base{border-style:solid}
@media print{.cmpbar{display:none !important}}
.hint code{font-family:var(--mono);font-size:.92em;color:var(--tx2);word-break:break-all}
.hint b.good{color:#8fd9a8}
.hint b.bad{color:#e8927c}

/* Producers: one per line, the field growing as they are added. */
.field.producers{display:flex;flex-direction:column}
.prodrow{display:flex;align-items:center;gap:6px}
.prodrow + .prodrow{margin-top:6px}
.prodrow input{flex:1;min-width:0}
.prodbtn{flex:0 0 auto;width:30px;height:30px;display:inline-flex;align-items:center;
  justify-content:center;border:1px solid var(--line2);border-radius:6px;
  background:var(--bg3);color:var(--tx2);font-size:16px;line-height:1;cursor:pointer}
.prodbtn:hover{border-color:var(--acc-stroke);color:var(--acc-text)}
.prodbtn.add{border-color:var(--acc-stroke);color:var(--acc-text)}
.prodbtn.add:hover{background:var(--acc);color:#171a1d}
.prodbtn[disabled]{opacity:.35;pointer-events:none}

.rowflex > .tog{align-self:center}

/* ── Module shell: Budgeting / Breakdown / Schedule ──────────────────────
 * The three modules sit as plain nav links beside the logo — no menu to
 * open, just a click to switch. The header itself never changes appearance —
 * same fixed dark furniture rule as everything else up here. */
.modnav{display:flex;align-items:center;gap:2px;margin-left:2px}
/* The module switcher's own full-width row, below .topbar and above
 * whatever the page renders next (a stage bar, a module's own tab strip)
 * — always left-justified, always in the same position no matter which
 * module is active, instead of sharing the topbar's line with the logo. */
.modnavbar{display:flex;align-items:center;gap:2px;padding:6px 16px;
  background:var(--hdr-bg);border-top:2px solid var(--info);border-bottom:2px solid var(--info);flex:0 0 auto}
/* Fixed dark header furniture (see comment above) — stays brand yellow in
 * every appearance, not the light-mode-only darkened --acc-text, because
 * this strip's own background never goes light. */
.navsep{color:var(--acc);font-weight:300;opacity:.7}
.modlink{background:transparent;border:0;padding:7px 10px;border-radius:6px;
  font:600 14.5px/1 var(--font-outfit,'Outfit'),var(--sans);letter-spacing:.01em;color:var(--hdr-tx3);cursor:pointer;
  white-space:nowrap}
.modlink:hover{color:var(--hdr-tx);background:rgba(255,255,255,.06)}
.modlink.on{color:var(--acc)}
.modactions{grid-column:3;justify-self:end;display:flex;align-items:center;gap:10px}
.modactions.hidden{display:none}

/* Each module owns the whole column below the header — its own tab strip
 * and its own scrolling main area. */
.modroot{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}

/* The resting state, before any script is imported, IS the dropzone — not a
 * button buried in a generic empty-state message. Dragging a file onto it
 * imports directly; the button underneath is the explicit fallback for
 * picking a file the normal way, never the only way in. */
.importzone{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;padding:72px 20px;border:2px dashed var(--line2);border-radius:var(--radius);
  text-align:center;background:var(--bg2)}
.importzone .iz-icon{font-size:34px;line-height:1;color:var(--tx3)}
.importzone .iz-title{margin:0;font-size:15px;font-weight:600;color:var(--tx)}
.importzone .iz-sub{margin:0;font-size:12px;color:var(--tx3)}
.importzone.over{border-color:var(--good);background:rgba(78,168,122,.08)}
/* The shared upload popup (components/UploadDialog.tsx) */
.upload-dialog{max-width:620px;width:calc(100vw - 32px)}
.upload-dialog .importzone{padding:56px 20px}
.upload-current{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px}
.upload-current img{width:72px;height:72px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}
/* Profile photo popup (components/ProfilePhotoDialog.tsx): three ways to add a photo, side by side, then a round crop. */
.photo-dialog .photo-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.photo-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:28px 12px;
  border:2px dashed var(--line2);border-radius:var(--radius);background:var(--bg2);text-align:center;color:var(--tx);font:inherit;cursor:pointer}
button.photo-option{border-style:solid}
button.photo-option:hover:not(:disabled){border-color:var(--acc-stroke)}
.photo-option .iz-icon{color:var(--acc-text);line-height:0}
.photo-option .iz-title{font-size:14px;font-weight:600}
.photo-option .iz-sub{font-size:12px;color:var(--tx3)}
.photo-option.drop.over{border-color:var(--good);background:rgba(78,168,122,.08)}
@media (max-width:600px){.photo-dialog .photo-options{grid-template-columns:1fr}}
.photo-crop{position:relative;overflow:hidden;border-radius:50%;border:2px solid var(--acc-stroke);cursor:grab;user-select:none;touch-action:none}
.photo-crop:active{cursor:grabbing}
/* The camera on the photo in My Account → Profile (placed inside Clerk's avatar). */
.cl-profileSection__profile .cl-userPreviewAvatarContainer{position:relative;overflow:visible}
.photo-camera{position:absolute;right:-6px;bottom:-6px;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  padding:0;border:2px solid var(--bg2);background:var(--acc);color:#111;cursor:pointer;box-shadow:0 1px 4px rgba(0,0,0,.4)}
.photo-camera:hover{background:var(--acc2)}

/* ── Script Breakdown ─────────────────────────────────────────────────── */
.scenenum{display:inline-flex;align-items:center;justify-content:center;
  min-width:30px;height:22px;padding:0 6px;border-radius:6px;
  background:var(--bg4);color:var(--tx2);font:700 12px/1 var(--mono)}
/* Same four colors as the Schedule legend (Int/Day, Ext/Day, Int/Night,
 * Ext/Night), applied to the scene number badge itself wherever a scene
 * number appears outside the Day Board — the Scenes list and the version
 * comparison table — so a scene's time-of-day reads at a glance everywhere,
 * not just once it's been scheduled. */
.scenenum.ct-int-day{background:var(--good);color:#06240f}
.scenenum.ct-ext-day{background:var(--info);color:#06172a}
.scenenum.ct-int-night{background:var(--acc);color:#20160a}
/* Unlike its three siblings above, Ext/Night's own fill is a fixed near-
 * black rather than a themed brand color, so it needs a fixed light text
 * color of its own too (matching .strip.ct-ext-night's own #e8edf2) — the
 * generic var(--tx) it used before tracked dark mode's own light --tx by
 * coincidence, and went dark-on-dark the moment light mode gave --tx a
 * dark value instead. */
.scenenum.ct-ext-night{background:#0a0a0c;color:#e8edf2;border:1px solid var(--line2)}
tr.scenerow{cursor:pointer}
tr.scenerow:hover td{background:rgba(255,255,255,.02)}
tr.scenedetail td{background:var(--bg);padding:14px 16px}
/* Same legend colors as the scene number badge and Schedule's cards, wrapped
 * around the expanded detail box itself so the code stays visible even once
 * you're looking at the scene's own content rather than its list row. */
.scenedetailbox{border:1px solid var(--line2);border-radius:8px;padding:12px 14px;
  max-height:calc(100vh - 300px);overflow-y:auto}
.scenedetailbox.ct-int-day{border-color:var(--good)}
.scenedetailbox.ct-ext-day{border-color:var(--info)}
.scenedetailbox.ct-int-night{border-color:var(--acc-stroke)}
.scenedetailbox.ct-ext-night{border-color:#0a0a0c}
.tagcat{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:9px}
.tagcat .catlabel{font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--tx3);font-weight:700;flex:0 0 118px}
.tagcat .badge{display:inline-flex;align-items:center;gap:5px}
.tagcat .badge .untag{color:var(--tx3);font-weight:400;cursor:pointer}
.tagcat .badge .untag:hover{color:var(--bad)}
.refnum{color:var(--acc2-text);font-family:var(--mono);font-weight:700;font-size:.92em}
.badge .refnum{font-size:inherit}
.pick .ref{font-family:var(--mono);color:var(--acc2-text);font-weight:700;margin-left:8px}

/* Character names read as all caps everywhere they appear, the way a
 * breakdown sheet always has — regardless of how the name happened to be
 * typed or extracted. Scoped to Characters specifically (.ucname marks that
 * one table's Name column) so Props, Vehicles, and everything else keep
 * whatever case was actually typed. Sluglines the same, in Schedule's cards. */
.badge-cast, .uc-list .nm, .ucname { text-transform:uppercase }
.scenecard .sc-slug { text-transform:uppercase }

/* ── Full script reader ───────────────────────────────────────────────── */
.scriptreader h2{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.scripttitle{flex:1;min-width:120px;color:var(--acc-text);font-weight:700}
/* The version the script is worked from, after FULL SCRIPT ("REV 2 • PINK") — ScriptPanel.tsx. */
.scripttitle:has(.scriptrev){display:inline-flex;align-items:center;flex:1 0 auto}
.scripttitle .scriptrev{margin-left:14px;letter-spacing:normal;text-transform:none}
.scriptclose{font-size:16px;line-height:1;color:var(--acc-text);background:none;
  border:1.5px solid var(--acc);border-radius:6px;cursor:pointer;
  width:26px;height:26px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center}
.scriptclose:hover{background:rgba(224,168,60,.12);color:var(--acc2-text);border-color:var(--acc2)}
/* My Account: the same × sits in the top-right corner of Clerk's profile card. */
.acct-window{position:relative;align-self:flex-start}
.acct-window .acct-close{position:absolute;top:14px;right:14px;z-index:2}
/* The × hides the window the instant it's clicked, while the page behind loads (AccountCloseButton). */
main[data-closing] .acct-window,main[data-closing] .tfa-banner{display:none}
/* My Account's own pages inside Clerk's window (Contact details, Plan & billing). */
.acct-page{color:var(--tx);font-size:14px;line-height:1.5}
.acct-page .acct-h{font-size:17px;font-weight:700;margin:0 0 6px;color:var(--tx);letter-spacing:0;text-transform:none}
.acct-page .hint{margin:0 0 14px}
.acct-row{display:flex;gap:16px;padding:12px 0;border-top:1px solid var(--line);align-items:baseline}
.acct-row .acct-k{flex:0 0 160px;color:var(--tx2);font-weight:600}
.acct-row .acct-v{flex:1;min-width:0;color:var(--tx)}
.acct-actions{gap:10px;flex-wrap:wrap;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
@media (max-width:640px){.acct-row{flex-direction:column;gap:2px}.acct-row .acct-k{flex:none}}
/* Your data → Delete account: the danger row and the three-step confirm. */
.acct-row.acct-danger{border-top-color:rgba(217,105,79,.45)}
.acct-steps{margin:0 0 16px;padding-left:22px;display:flex;flex-direction:column;gap:14px}
.acct-steps > li{padding-left:4px}
.acct-steps > li.done > b::after{content:" ✓";color:var(--good-text)}
.acct-consequences{margin:6px 0 10px;padding-left:18px;color:var(--tx2)}
.acct-consequences li{margin:3px 0}
/* My Account → Help chats (components/AccountHelpChats.tsx): one .disclose row per chat, the conversation under it. */
.acct-helpchat{border-top:1px solid var(--line)}
.acct-helpchat .disclose{align-items:flex-start;padding:10px 4px}
.acct-helpchat .disclose .caretbox{margin-top:1px}
.acct-helpchat-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.acct-helpchat-q{font-size:14px;color:var(--tx);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.acct-helpchat-when{font-size:12px;color:var(--tx3)}
.acct-helpchat-rating{flex:0 0 auto;display:flex;gap:6px;align-items:center}
.statuspill.acct-helpchat-up{background:rgba(78,168,122,.18);color:var(--good-text)}
.statuspill.acct-helpchat-down{background:rgba(217,105,79,.2);color:var(--bad)}
.acct-helpchat-convo{padding:4px 4px 12px 36px;display:flex;flex-direction:column;gap:12px}
.acct-helpchat-who{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:4px;font-size:13px}
.acct-helpchat-who .muted{font-size:12px}
.acct-helpchat-text{color:var(--tx);overflow-wrap:anywhere}
.acct-helpchat-typed{white-space:pre-wrap}
.acct-helpchat-text p{margin:4px 0}
.acct-helpchat-text ol,.acct-helpchat-text ul{margin:6px 0;padding-left:1.5em}
.acct-helpchat-text code{font-family:var(--mono);font-size:13px;background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:0 4px}
.acct-helpchat-text a{color:var(--acc2-text);text-decoration:underline}
@media (max-width:640px){.acct-helpchat-convo{padding-left:8px}}
/* Two-step sign-in (2026-10-02): the red RECOMMENDED stroke until it's on —
 * a strip above My Account, the box on its own page, and the new-sign-up step. */
.acct-card-wrap{position:relative}
.tfa-tag{display:inline-block;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:#fff;background:var(--bad);border-radius:4px;padding:3px 8px;line-height:1.3}
.tfa-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:12px 16px;
  border:3px solid var(--bad);border-radius:var(--radius);background:rgba(217,105,79,.08)}
.tfa-banner-text{flex:1;min-width:200px;font-size:14px;font-weight:600;color:var(--tx)}
.tfa-reco{border:3px solid var(--bad);border-radius:var(--radius);padding:16px 18px;background:rgba(217,105,79,.08);margin:6px 0 4px}
.tfa-reco-title{margin:10px 0 6px;font-size:17px;font-weight:700;color:var(--tx)}
.card.tfa-welcome{border:3px solid var(--bad)}
.tfa-welcome .tfa-tag{margin-bottom:12px}
.tfa-box{border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px;margin:6px 0 4px;background:var(--bg2)}
.tfa-qrwrap{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:10px}
.tfa-qr{display:block;border-radius:6px;flex:0 0 auto}
.tfa-secret{font-family:var(--mono);font-size:14px;color:var(--tx);margin-top:6px;word-break:break-all;user-select:all}
.tfa-code{width:130px;font-family:var(--mono);font-size:18px;letter-spacing:.15em;text-align:center}
.tfa-codes{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px;margin-top:8px}
.tfa-codes code{font-family:var(--mono);font-size:14px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:var(--bg3);text-align:center}
/* Register for the beta (/beta-access). */
.beta-shell{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:6vh 16px 32px;background:var(--bg)}
.beta-logo{display:block;flex-shrink:0;width:240px;max-width:60vw;height:auto;margin:0 auto 22px}
.beta-card{width:100%;max-width:760px;flex-shrink:0}
.beta-title{margin:0 0 12px;font-size:24px;line-height:1.25;color:var(--tx)}
.beta-lede{margin:0 0 12px;font-size:16px;line-height:1.6;color:var(--tx2)}
.btn.beta-cta{font-size:16px;font-weight:700;letter-spacing:.06em;padding:12px 26px;min-height:48px}
/* Studio Slate Pro for Mac's pages (/desktop/connect, /desktop/online). */
.beta-cta-row{display:flex;flex-wrap:wrap;gap:10px}
.beta-error{margin:12px 0 0;font-size:14px;line-height:1.5;color:var(--bad)}
/* Privacy Policy / Terms of Service (/privacy, /terms): long-form reading text in the beta card. */
.beta-card.legal{max-width:820px}
.legal .legal-date{margin:0 0 18px;color:var(--tx3);font-size:13px}
.legal p,.legal li{font-size:15px;line-height:1.65;color:var(--tx2)}
.legal p{margin:0 0 12px}
.legal h2{margin:24px 0 8px;font-size:17px;font-weight:700;color:var(--tx);letter-spacing:0;text-transform:none}
.legal ul{margin:0 0 12px;padding-left:22px}
.legal li{margin:4px 0}
.legal b{color:var(--tx)}
.legal a{color:var(--acc-text)}
.legal .legal-links{margin:28px 0 0;padding-top:16px;border-top:1px solid var(--line);font-size:13px;color:var(--tx3)}
.legal .legal-tr-note{margin:0 0 18px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--bg3);font-size:14px;line-height:1.5;color:var(--tx2)}
/* The AI-credit top-up popup's packs and its embedded Stripe Checkout. */
.btn.topup-pack{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px 16px;font-size:15px;min-height:48px}
.btn.topup-pack b{color:var(--acc-text)}
.topup-checkout{min-height:420px;border-radius:8px;overflow:hidden;background:#fff}
.scriptscroll{max-height:calc(100vh - 220px);overflow-y:auto}

/* ── Screenplay-format script body ────────────────────────────────────────
 * Standard WGA-manuscript margins, scaled to the reading pane rather than a
 * fixed page width: action full width, cue and dialogue centred in an
 * indented column, transitions right-aligned — the same layout the
 * screenplay PDF export lays real pages out with. */
.spscene{margin-bottom:22px;font-family:var(--mono);font-size:13px;line-height:1.6}
/* Every line type shares ONE left edge — .spscene's own left padding, which
 * stands in for the page's 1.5in action margin — and is offset from THAT
 * same origin by the same proportions the screenplay PDF export uses
 * (1.5in action / 2.5in dialogue / 2.75in parenthetical from the page
 * edge). Centering dialogue and the character cue with `margin:auto`
 * instead centers them in the whole reading pane's width, which is much
 * wider than a real page and pushes them far to the right of the action
 * text above them — this keeps everything anchored to the one left edge
 * the way an actual screenplay page does. */
/* Standard format numbers a scene in both margins, not just the left — the
 * right number sits right after the heading text with the same small gap
 * the left number has before it, not stretched out to the far edge of the
 * reading pane (a real page is only 6in wide; this pane is much wider). */
.sp-heading{font-weight:700;text-transform:uppercase;color:var(--acc-text);margin-bottom:10px}
.sp-heading-num{margin-right:8px}
.sp-heading-num-r{margin-right:0;margin-left:8px}
.sp-action{max-width:600px}
/* A screenplay page leaves a blank line before every action paragraph — after
 * dialogue, a parenthetical, a transition or another action paragraph — the
 * same 10px gap a character cue gets; the scene heading's own margin covers
 * the first one. (The PDF writer's paginate.ts already does this.) */
.sp-action+.sp-action,.sp-dialogue+.sp-action,.sp-paren+.sp-action,.sp-trans+.sp-action,.sp-character+.sp-action{margin-top:10px}
.sp-character{max-width:350px;margin:10px 0 0 100px;text-align:center;text-transform:uppercase}
.sp-dialogue{max-width:350px;margin:0 0 0 100px}
.sp-paren{max-width:300px;margin:0 0 0 125px;color:var(--tx2);font-style:italic}
.sp-trans{max-width:600px;text-align:right;text-transform:uppercase;margin-top:10px}
/* Editable lines get a visible hover/focus affordance since a plain
 * contenteditable div otherwise looks identical to read-only text. */
.spscene.editing [contenteditable]{outline:none;border-radius:3px;cursor:text;
  min-height:1.2em;transition:background .1s}
.spscene.editing [contenteditable]:hover{background:rgba(255,255,255,.04)}
.spscene.editing [contenteditable]:focus{background:rgba(224,168,60,.1);box-shadow:0 0 0 1px var(--acc)}

/* Edit Script's "Tags" switch (ScriptPanel.tsx): paints every tagged
 * element in the script with a soft yellow highlight through the CSS Custom
 * Highlight API — ranges, not wrapper elements, so the editable text itself
 * is never touched. The ::highlight(script-elements) rule itself is added at
 * runtime by lib/useElementHighlights.ts (the CSS build's parser doesn't
 * recognise ::highlight yet); --el-hl is its color. */
:root{--el-hl:rgba(255,214,10,.26)}
:root[data-theme="light"]{--el-hl:rgba(255,222,80,.55)}
@media (prefers-color-scheme:light){:root[data-theme="system"]{--el-hl:rgba(255,222,80,.55)}}
.scriptreader .elswitch{display:inline-flex;align-items:center;gap:10px;font-size:12px;font-weight:600;
  color:var(--tx2);cursor:pointer;user-select:none;min-height:28px;position:relative}
.scriptreader .elswitch input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.scriptreader .elswitch .track{width:30px;height:17px;border-radius:9px;background:var(--bg4);
  border:1px solid var(--line2);position:relative;flex:none;transition:background .15s,border-color .15s}
.scriptreader .elswitch .track::after{content:"";position:absolute;top:1px;left:1px;width:13px;height:13px;
  border-radius:50%;background:var(--tx2);transition:transform .15s,background .15s}
.scriptreader .elswitch input:checked + .track{background:var(--acc);border-color:var(--acc-stroke)}
.scriptreader .elswitch input:checked + .track::after{transform:translateX(13px);background:var(--on-acc)}
.scriptreader .elswitch input:focus-visible + .track{box-shadow:0 0 0 2px var(--acc)}
@media (prefers-reduced-motion:reduce){.scriptreader .elswitch .track,.scriptreader .elswitch .track::after{transition:none}}

/* A plain on/off switch, reusable anywhere (first used by the Fringes page's
 * "Fringes by line", FringeLineSwitches.tsx): a real checkbox, visually
 * hidden, followed by the track — <label class="switch"><input
 * type="checkbox" role="switch"><span class="track"></span></label>. Same
 * look as Edit Script's .elswitch above, which stays scoped to its own
 * panel. */
.switch{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--tx2);cursor:pointer;
  user-select:none;min-height:28px;position:relative;vertical-align:middle}
.switch input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.switch .track{width:30px;height:17px;border-radius:9px;background:var(--bg4);
  border:1px solid var(--line2);position:relative;flex:none;transition:background .15s,border-color .15s}
.switch .track::after{content:"";position:absolute;top:1px;left:1px;width:13px;height:13px;
  border-radius:50%;background:var(--tx2);transition:transform .15s,background .15s}
.switch input:checked + .track{background:var(--acc);border-color:var(--acc-stroke)}
.switch input:checked + .track::after{transform:translateX(13px);background:var(--on-acc)}
.switch input:focus-visible + .track{box-shadow:0 0 0 2px var(--acc)}
.switch input:disabled + .track{opacity:.5}
.switch:has(input:disabled){cursor:default}
@media (prefers-reduced-motion:reduce){.switch .track,.switch .track::after{transition:none}}

/* Editing pulls every scene in from the window's left edge, and opens a
 * dedicated column to the right of the text — a fixed 100px gap, not a
 * margin note squeezed in beside the dialogue — for a per-scene note that
 * lines up with that scene's slugline (same grid row) without touching
 * the screenplay layout's own margins at all. */
.editingscroll{padding-left:100px}
.spscene.editing{display:grid;grid-template-columns:600px 330px;column-gap:120px;align-items:start}
.spscene.editing .sp-heading{grid-column:1;grid-row:1}
.spscene.editing .sp-lines{grid-column:1;grid-row:2}
/* Revision stars (ScriptEditor.tsx): a line changed since the version the script is worked from carries an asterisk
 * in the right margin, level with its first line, the way a revised screenplay page does — 16px past the 600px text
 * column, inside the gap before the notes. Drawn by CSS, so it's never part of the editable text. */
.spscene.editing .sp-heading,.spscene.editing .sp-lines{position:relative}
.spscene.editing .sp-heading[data-rev]::before,.spscene.editing .sp-lines>[data-rev]::before{content:"*";position:absolute;
  left:616px;font:700 16px/1.3 var(--mono);color:var(--acc-text);pointer-events:none}
.spscene.editing .sp-notesrail{grid-column:2;grid-row:1/span 2;align-self:start;
  display:flex;flex-direction:column;gap:8px;font-family:var(--sans)}
.notesadd{align-self:flex-start}
.scenenote{display:flex;align-items:flex-start;gap:6px;background:var(--bg3);
  border:1px solid var(--line2);border-radius:6px;padding:6px 8px;font-size:12px}
.scenenote.seen{opacity:.55}
.scenenote .notecheck{flex:0 0 auto;padding-top:2px}
.scenenote .notetext{flex:1;min-width:0;word-break:break-word;outline:none;border-radius:3px}
.scenenote .notetext:focus{background:rgba(224,168,60,.1);box-shadow:0 0 0 1px var(--acc)}
.scenenote .notedel{flex:0 0 auto;color:var(--bad);font-size:15px;line-height:1;cursor:pointer;
  background:none;border:0;padding:0}
.scenenote .notedel:hover{color:#e8927c}
.notenew textarea{width:100%;background:var(--bg);border:1px solid var(--line2);border-radius:6px;
  color:var(--tx);font:12px/1.4 var(--sans);padding:6px 8px;resize:vertical}
.notenew textarea:focus{outline:none;border-color:var(--acc-stroke)}
.spgoto{display:flex;align-items:center;gap:6px}
.spgoto input{width:140px;background:var(--bg);border:1px solid var(--good);border-radius:6px;
  padding:6px 9px;font-size:12.5px}
.spgoto input:focus{outline:none;border-color:var(--good)}
.spgoto input.sppage{width:90px}

/* The source document's page numbers beside the script (ScriptPageGutter.tsx)
 * — an overlay over the scenes, each number at the line its page starts on.
 * View Script: a gray "PAGE NO." column 100px right of the 600px text, the
 * numbers 120px right of the text. Edit Script: no column (the notes rail
 * is there, 120px right of the text); the numbers sit 40px left of it. */
.sp-paged{position:relative}
.sp-paged.view{padding-top:34px}
.sp-pagelayer{position:absolute;inset:0;pointer-events:none}
.sp-pagecol{position:absolute;top:0;bottom:0;left:700px;width:80px;background:var(--bg3);border-radius:6px}
.sp-pagecol-head{position:sticky;top:0;padding:8px 0;text-align:center;font:600 12px/1.4 var(--sans);
  letter-spacing:.04em;color:var(--tx2);background:var(--bg3);border-radius:6px 6px 0 0}
.sp-pageno{position:absolute;left:720px;font:600 12px/20.8px var(--sans);color:var(--tx2);white-space:nowrap}
.sp-pagelayer.edit .sp-pageno{left:680px}

/* A found scene block flashes the same amber as a search hit's table row —
 * .found already animates `tr > td`; this covers the div-based screenplay
 * blocks and the original-PDF modal's page canvas frame the same way. */
.found:not(tr){animation:foundflash 1.6s ease 1;border-radius:6px}

/* The wide dialog (AnalyzeDialog.tsx, ReorganizeDialog.tsx). */
.modal.lg{max-width:960px}

/* ── Version comparison ───────────────────────────────────────────────── *
 * The left-edge pipe carries the scene's own Int/Ext-Day/Night code (same
 * four colors as everywhere else a scene appears) rather than same/changed
 * status — the background tint below is what shows status instead, so
 * both pieces of information stay visible without competing for the same
 * one stripe of color. */
tr.cmprow{cursor:pointer}
/* A scene that reads differently in any of the versions compared (VersionsPanel.tsx). */
.cmp-star{margin-left:6px;font:700 16px/1 var(--mono);color:var(--acc-text)}
tr.cmp-partial td{background:rgba(224,168,60,.13)}
tr.cmp-changed td{background:rgba(217,105,79,.15)}
tr.cmp-same td{color:var(--tx2)}
tr.cmprow.ct-int-day td{box-shadow:inset 3px 0 0 var(--good)}
tr.cmprow.ct-ext-day td{box-shadow:inset 3px 0 0 var(--info)}
tr.cmprow.ct-int-night td{box-shadow:inset 3px 0 0 var(--acc)}
tr.cmprow.ct-ext-night td{box-shadow:inset 3px 0 0 #0a0a0c}
.cmp-detailrow td{background:var(--bg);padding:0}
.cmp-detailwrap{display:flex;gap:0;flex-wrap:wrap;border:1px solid var(--line2);border-radius:8px}
.cmp-detailwrap.ct-int-day{border-color:var(--good)}
.cmp-detailwrap.ct-ext-day{border-color:var(--info)}
.cmp-detailwrap.ct-int-night{border-color:var(--acc-stroke)}
.cmp-detailwrap.ct-ext-night{border-color:#0a0a0c}
.cmp-detailcol{flex:1 1 240px;min-width:220px;padding:12px 14px;
  border-right:1px solid var(--line);font-size:12px}
.cmp-detailcol:last-child{border-right:0}
.cmp-detaillabel{font-size:12px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--acc-text);font-weight:700;margin-bottom:8px}
.addtag{font-size:12px;color:var(--acc-text);font-weight:600;cursor:pointer;
  padding:2px 8px;border:1px dashed var(--line2);border-radius:20px;background:none}
.addtag:hover{border-color:var(--acc-stroke);background:rgba(224,168,60,.1)}
.bdstat{display:flex;gap:22px;flex-wrap:wrap;padding:10px 14px;background:var(--bg2);
  border:1px solid var(--acc-stroke);border-radius:var(--radius);margin-bottom:14px;font-size:12px;color:var(--tx2)}
.bdstat b{font-family:var(--mono);color:var(--good-text)}
.comparehint{display:flex;align-items:center;gap:14px;margin:14px 0 8px;font:700 12px/1 var(--mono);
  color:var(--acc-text)}

/* ── Day Board ────────────────────────────────────────────────────────────
 * Columns, not strips: one card-column per shoot day, scene cards stacked
 * inside it. A different shape from a spreadsheet-row schedule on purpose —
 * see DESIGN_SYSTEM.md. Scrolls sideways with the same yellow scrub the
 * budget's wide tables use, so a long shoot behaves like everything else
 * in this app rather than inventing its own scrollbar language. */
.dayboard{display:flex;gap:12px;align-items:flex-start;overflow-x:auto;
  padding-bottom:10px;-webkit-overflow-scrolling:touch}
/* Invisible to layout — its children (the day columns) behave as if they
 * sat directly in .dayboard's flex row. It exists only so the day-reorder
 * dragger has a container that holds days and nothing else: not the pool,
 * not the add-day button, so a dragged day can never land among them. */
.daysrow{display:contents}
.daycol{flex:0 0 480px;min-width:0;background:var(--bg2);border:1px solid var(--line);
  border-radius:var(--radius);display:flex;flex-direction:column;max-height:calc(100vh - 220px)}
/* max-width backs up flex-grow:0 explicitly — with .daysrow's display:contents
 * holding few or zero day columns (a manual build starting empty, or right
 * after Clear), the flex layout otherwise miscalculates available space and
 * lets the pool balloon to roughly double its intended width. */
.daycol.pool{flex:0 0 260px;max-width:260px;border-color:var(--line2)}
.daycol-head{padding:10px 12px;border-bottom:1px solid var(--line);
  display:flex;align-items:flex-start;gap:6px;flex-wrap:nowrap;cursor:grab}
.daycol.pool .daycol-head{cursor:default}
.daycol-head:active{cursor:grabbing}
/* Everything but the close button wraps as a group, so a long date/weekday/
 * count combination breaks onto a second line without ever pushing the ×
 * out of its fixed top-right corner — that button sits outside this wrapper
 * so it never takes part in the wrap. */
.dayhead-info{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:1;min-width:0}
.daycol-head .dlabel{font-weight:700;font-size:13px}
.daycol-head .dmeta{margin-left:auto;margin-right:15px;font-size:11px;color:var(--tx3);font-family:var(--mono)}
.daycol-head button{flex:0 0 auto}
.daycol-head .scdel{align-self:center}
.daydate{background:var(--bg);border:1px solid var(--line);border-radius:4px;
  color:var(--tx2);font-size:12px;padding:2px 4px;width:118px;flex:0 0 auto}
.daydate:focus{outline:none;border-color:var(--acc-stroke)}
.daywd{font-size:12px;font-weight:700;color:var(--acc2);text-transform:uppercase;flex:0 0 auto}
.dayfmt{font-size:10px;color:var(--tx3);font-family:var(--mono);flex:0 0 auto}
.daycol-body{flex:1;overflow-y:auto;padding:8px;display:flex;flex-direction:column;gap:7px;min-height:60px}
.daycol-foot{padding:8px 12px;border-top:1px solid var(--line)}

.scenecard{background:var(--bg3);border:1px solid var(--line2);border-left-width:4px;
  border-radius:6px;padding:8px 10px 8px 8px;cursor:grab;touch-action:none;
  user-select:none;-webkit-user-select:none}
.scenecard:active{cursor:grabbing}
.scenecard .sc-top{margin-bottom:3px}
.scenecard .sc-top .scenenum{min-width:26px;height:20px;font-size:12px}
.scenecard .sc-slug{font-size:12px;color:var(--tx);overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;flex:1;min-width:0}
.scenecard .sc-meta{font-size:10.5px;color:var(--tx3);display:flex;gap:8px}
.scenecard.dragging{opacity:.9;box-shadow:0 14px 30px rgba(0,0,0,.5),inset 0 0 0 1px var(--acc)}

/* ── Stripboard color coding ──────────────────────────────────────────────
 * Carried as a left-edge accent rather than a full-card fill — a fully
 * painted card in each of four hues would fight the app's own dark,
 * gold-accented palette, while an accent stripe reads just as fast and
 * stays inside it. Mapping is deliberately not the traditional paper
 * scheme: Int/Day green, Ext/Day blue, Int/Night gold, Ext/Night the
 * darkest mark available (near-black, the one hue this palette doesn't
 * already use elsewhere) — chosen for this app rather than inherited. */
/* The whole card outline now carries the legend color, not just the left
 * edge — same color, just wrapped all the way around, so the code reads at
 * a glance even in a dense column of cards. */
.scenecard.ct-int-day{border-color:var(--good);border-left-color:var(--good)}
.scenecard.ct-ext-day{border-color:var(--info);border-left-color:var(--info)}
.scenecard.ct-int-night{border-color:var(--acc-stroke);border-left-color:var(--acc)}
.scenecard.ct-ext-night{border-color:#0a0a0c;border-left-color:#0a0a0c}
/* Revision badges use the actual paper colors of the film/TV revision
 * convention — always dark text, since every one of those colors is a
 * pastel meant to stay legible with plain black type on real paper. */
.revbadge{display:inline-flex;align-items:center;padding:3px 9px;border-radius:20px;
  font:700 12px/1.3 var(--sans);color:#20160a;white-space:nowrap}
.revsrc{font:700 12px/1 var(--mono);color:var(--acc-text);border:1px solid var(--acc-stroke);
  border-radius:4px;padding:2px 5px;vertical-align:1px;letter-spacing:.04em;margin-left:10px}
/* Each version is its own bordered box (branded yellow) rather than a plain
 * table row, and the column labels above them read in the same green used
 * for headings elsewhere once color got added back into this module. */
.verlist{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.verrow{display:grid;grid-template-columns:22px 1fr 170px 90px auto;align-items:center;gap:14px;
  padding:11px 14px;background:var(--bg2);border:1px solid var(--acc-stroke);border-radius:8px}
.verrow-head{background:transparent;border:0;padding:0 14px}
.verrow-head .vh{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--good-text);font-weight:700}
.verrow-actions{display:flex;gap:8px;justify-content:flex-end}
.btn.success.outline{background:transparent;border-color:var(--good);color:var(--good-text)}
.btn.success.outline:hover{background:rgba(78,168,122,.2);border-color:var(--good);color:var(--tx)}
.btn.success{background:var(--good);border-color:var(--good);color:#0c1a13;font-weight:600}
.btn.success:hover{background:var(--good2);border-color:var(--good2)}
.btn.accent-outline{background:transparent;border-color:var(--acc-stroke);color:var(--acc-text)}
.btn.accent-outline:hover{background:rgba(224,168,60,.15);border-color:var(--acc2);color:var(--acc2-text)}
.scenelegend{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px}
/* Its own line between the Schedule Tools card and the break buttons (or the
 * board/calendar), so the key is always in view, card open or collapsed. */
.scenelegend.standalone{margin:-4px 2px 12px}
/* The right end of Script Breakdown's Scenes stat bar, at the bar's own size. */
.bdstat .scenelegend.inbar{margin:0 0 0 auto;font-size:inherit;line-height:inherit;color:inherit}
.lg-item{white-space:nowrap}
.lg-swatch{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;
  border:1px solid var(--line2);vertical-align:-1px}
.lg-swatch.ct-int-day{background:var(--good);border-color:var(--good)}
.lg-swatch.ct-ext-day{background:var(--info);border-color:var(--info)}
.lg-swatch.ct-int-night{background:var(--acc);border-color:var(--acc-stroke)}
.lg-swatch.ct-ext-night{background:#0a0a0c;border-color:var(--line2)}

.addday{flex:0 0 46px;display:flex;align-items:center;justify-content:center;position:relative}
.adddaymenu{position:absolute;top:100%;left:0;margin-top:4px;min-width:170px;
  background:var(--bg3);border:1px solid var(--line2);border-radius:8px;
  box-shadow:0 12px 30px rgba(0,0,0,.5);padding:5px;z-index:50}
.adddaymenu button{display:block;width:100%;text-align:left;padding:8px 10px;
  border-radius:6px;font-size:13px;color:var(--tx2);white-space:nowrap}
.adddaymenu button:hover{background:rgba(255,255,255,.06);color:var(--tx)}
.addday button{width:38px;height:38px;border-radius:50%;font-size:18px}

/* ── Scene card expand/collapse ───────────────────────────────────────── */
.scenecard .sc-top{display:flex;align-items:center;gap:6px}
.scdisc{flex:0 0 auto;width:16px;height:16px;display:inline-flex;align-items:center;
  justify-content:center;color:var(--tx3);font-size:13px;line-height:1;
  border:1px solid var(--acc-stroke);border-radius:3px;
  transition:transform .12s ease,background .12s ease}
.scdisc:hover{background:rgba(224,168,60,.12)}
.scdisc.open{transform:rotate(90deg);color:var(--acc-text)}
.scdel{flex:0 0 auto;margin-left:auto;width:16px;height:16px;display:inline-flex;
  align-items:center;justify-content:center;color:var(--tx3);font-size:15px;
  line-height:1;border:1px solid var(--acc-stroke);border-radius:3px}
.scdel:hover{color:var(--bad);background:rgba(217,105,79,.15)}
.sc-detail{margin-top:7px;padding-top:7px;border-top:1px solid var(--line)}
.scenecard.expanded{cursor:default}

/* ── Removed-days tray ─────────────────────────────────────────────────
 * Setting a day aside is not deleting it: the day lands here, compact and
 * unmistakably "not part of the shoot right now," until it's tapped back
 * into the working row (its scenes went to Unscheduled). A tap, not a drag,
 * so it reads as a button: pointer, dashed outline turning gold on hover;
 * its date on one line, with no room kept for a × it doesn't have. */
.removedtray{margin-top:16px;padding-top:12px;border-top:1px dashed var(--line2)}
.removedtray-label{margin-bottom:8px}
.removedtray-row{display:flex;gap:10px;flex-wrap:wrap}
.daycol.stashed{flex:0 0 auto;min-width:150px;opacity:.75;cursor:pointer;border-style:dashed;
  transition:opacity .12s ease,border-color .12s ease,background .12s ease}
.daycol.stashed:hover{opacity:1;border-color:var(--acc-stroke);background:rgba(224,168,60,.06)}
.daycol.stashed .daycol-head{cursor:pointer;border-bottom:0}
.daycol.stashed .dlabel{white-space:nowrap}
.daycol.stashed .dmeta{margin-left:8px;margin-right:0}

/* ── Stripboard ──────────────────────────────────────────────────────────
 * One solid-colour strip per scene, stacked in shooting order, an END OF
 * DAY bar closing each day — the paper board's shape, in this app's own four
 * colours (Int/Day green, Ext/Day blue, Int/Night gold, Ext/Night near-black). */
.stripboard{display:flex;gap:16px;align-items:flex-start}
/* Same capped height as .strippool beside it, and scrolling on its own
 * rather than leaving the whole page to do it — the board's own native
 * scrollbar then renders on stripmain's own right edge, which is exactly the
 * 16px gap between it and the pool: a branded (see the scrollbar rules at
 * the top of this file) vertical scrollbar sitting right at the boundary
 * between the two, not off at the far edge of the window. */
.stripmain{flex:1 1 auto;min-width:0;background:var(--bg2);border:1px solid var(--line);
  border-radius:var(--radius);max-height:calc(100vh - 290px);overflow-y:auto;overflow-x:hidden}
.strippool{flex:0 0 340px;position:sticky;top:64px;display:flex;flex-direction:column;
  max-height:calc(100vh - 290px);background:var(--bg2);border:1px solid var(--line2);
  border-radius:var(--radius);overflow:hidden}
.strippool .stripzone{flex:1 1 auto;overflow-y:auto}
.stripzone{display:flex;flex-direction:column;min-height:46px}
.stripzone:empty{background:rgba(255,255,255,.02)}
.stripzone:empty::before{content:"Drag a strip here";padding:14px 16px;font-size:12px;color:var(--tx3)}

.strip{display:grid;grid-template-columns:56px 60px 46px minmax(0,1fr) 84px 66px 92px 150px;
  align-items:center;column-gap:10px;min-height:46px;padding:6px 14px 6px 0;
  border-bottom:2px solid #0a0a0c;cursor:grab;touch-action:none;
  user-select:none;-webkit-user-select:none}
.strip:active{cursor:grabbing}
.strip.dragging{opacity:.92;box-shadow:0 14px 30px rgba(0,0,0,.5),inset 0 0 0 2px var(--acc)}
.strip-num{font:800 20px/1 var(--sans);text-align:center}
.strip-ie,.strip-tod{font-size:12px;font-weight:600}
.strip-loc{font-size:13px;font-weight:700;text-transform:uppercase;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.strip-pg,.strip-cast{font:600 12px/1.2 var(--mono);white-space:nowrap}
.strip-clock{font:600 11px/1 var(--mono);text-align:center;opacity:.8}
.strip-pg{text-align:right}
.strip-cast{overflow:hidden;text-overflow:ellipsis}
.strip.ct-int-day{background:var(--good);color:var(--on-good)}
.strip.ct-ext-day{background:var(--info);color:var(--on-info)}
.strip.ct-int-night{background:var(--acc);color:var(--on-acc)}
.strip.ct-ext-night{background:#0a0a0c;color:#e8edf2;border-bottom-color:var(--line2)}

.stripend{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:16px;
  padding:8px 18px;background:#0a0a0c;color:#fff;text-align:center}
.stripdate{width:132px;flex:0 0 auto}
.stripend-tot{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;align-items:flex-end;
  gap:2px;font:600 12px/1.45 var(--mono);color:#fff}
.stripend-tot .btn{margin-top:4px;color:#c9d2db;border-color:#3a4650}
.stripend-title{grid-column:1;font:800 16px/1.3 var(--sans);letter-spacing:.06em;color:#f0c46b}
.stripend-pg{grid-column:2;grid-row:1 / span 2;font:600 12px/1 var(--mono);color:#fff}
.stripend.pool{display:flex;justify-content:space-between;text-align:left;padding:10px 16px}
.stripend.pool .stripend-title{font-size:13px}
.strippool .strip{grid-template-columns:44px 40px minmax(0,1fr) 78px;padding-right:10px}
.strippool .strip-num{grid-column:1}
.strippool .strip-tod,.strippool .strip-cast,.strippool .strip-clock{display:none}
@media (max-width:1100px){
  .stripboard{flex-direction:column}
  .strippool{flex:0 0 auto;position:static;width:100%;max-height:none}
  .strip{grid-template-columns:48px 52px minmax(0,1fr) 80px}
  .strip-ie,.strip-tod,.strip-cast{display:none}
}

/* ── DOODs ───────────────────────────────────────────────────────────────
 * Solid brand colours, so a row reads at a glance: green where a role works,
 * the brand gold where it is being paid to wait. Blue is for the other paid
 * days (travel, rehearsal, fitting ...), grey for idle, red for unavailable.
 * The name column stays put while the days scroll under it; the yellow
 * scrubber drives the sideways travel. */
.dchip{display:inline-flex;justify-content:center;min-width:30px;padding:1px 6px;
  border-radius:4px;font:700 12px/1.5 var(--mono);color:var(--tx)}
.v-work{background:var(--good);color:var(--on-good)}
.v-hold{background:var(--acc);color:var(--on-acc)}
.v-prep{background:var(--info);color:var(--on-info)}
.v-idle{background:var(--bg4);color:var(--tx2)}
.v-unavail{background:var(--bad);color:var(--on-bad)}

.doodkey{margin-bottom:12px}
.doodkey-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding:6px 2px 6px 34px;
  border-bottom:1px solid var(--line)}
.doodkey-sec{flex:0 0 150px;font-size:12px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--tx3)}
.doodkey-item{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--tx2);cursor:help}
.doodkey .hint{padding:8px 2px 0 34px}

.doodwrap{overflow-x:auto;overflow-y:hidden}
table.dood{width:auto;min-width:100%;border-collapse:separate;border-spacing:0}
table.dood th,table.dood td{white-space:nowrap;border-right:1px solid var(--line)}
table.dood th{text-align:center;padding:5px 2px;font-family:var(--mono);color:var(--tx2)}
table.dood th.dc-label{position:sticky;left:0;z-index:4;text-align:left;min-width:230px;
  padding:5px 9px;font-family:var(--sans);border-right:1px solid var(--line2)}
table.dood th.dc-n{color:var(--tx);font-size:12px}
table.dood .dc-col{width:40px;min-width:40px;font-size:12px}
table.dood .dc-off{background:var(--bg3);color:var(--tx3)}
table.dood td.dcell{text-align:center;padding:4px 2px;font:700 11px/1.4 var(--mono);
  color:var(--tx);border-bottom:1px solid var(--line)}
table.dood td.dcell.off{background:var(--bg3)}
table.dood td.dcell.v-work{background:var(--good);color:var(--on-good)}
table.dood td.dcell.v-hold{background:var(--acc);color:var(--on-acc)}
table.dood td.dcell.v-prep{background:var(--info);color:var(--on-info)}
table.dood td.dcell.v-idle{background:var(--bg4);color:var(--tx2)}
table.dood td.dcell.v-unavail{background:var(--bad);color:var(--on-bad)}
table.dood td.dcell[data-dkey]{cursor:pointer}
table.dood td.dcell[data-dkey]:hover{box-shadow:inset 0 0 0 2px var(--tx)}
table.dood td.dc-name{position:sticky;left:0;z-index:1;min-width:230px;background:var(--bg2);
  font-weight:600;border-right:1px solid var(--line2)}
table.dood .dc-id{margin-left:10px;vertical-align:1px}
table.dood th.dc-tot,table.dood td.dc-tot{min-width:52px;padding-left:8px;padding-right:8px;text-align:right}
table.dood td.dc-tot{font:600 12px var(--mono);color:var(--tx2)}
table.dood td.dc-sum{font-weight:700;color:var(--acc-text)}

/* ── DOOD analysis: a suggestion and its Apply button ───────────────────── */
.saveitem{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;
  padding:12px 14px;margin-bottom:10px;background:var(--bg);
  border:1px solid var(--line2);border-radius:8px}
.saveitem .sv-title{font-weight:600}
.saveitem .sv-save{color:var(--good-text);font-weight:700}
.saveitem .sv-note{color:var(--tx3);font-size:14px;line-height:1.5}

/* ── Reorganize to Maximize Budget: the proposal ───────────────────────── */
.proposal-title{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--acc-text);margin-bottom:6px}
.proposal-text{font-size:13px;color:var(--tx2);line-height:1.55}
.proposal-stats{display:flex;flex-wrap:wrap;gap:6px 24px;margin-top:10px;font-size:13px;color:var(--tx2)}
.proposal-stats b{font-family:var(--mono);color:var(--tx)}
.proposal-list{margin:4px 0 0;padding:0 0 0 34px;font-size:13px;line-height:1.7;color:var(--tx2)}
.proposal-list b{color:var(--tx)}


/* ── Breaks: meal breaks, company moves, day breaks ──────────────────────
 * Breaks read as different from scenes at a glance: each break type has its
 * own flat colour (--brk-day / --brk-meal / --brk-move, see :root), and the
 * Day Break chip is the END OF DAY bar in miniature, in the same off-white.
 * The tentative company-move row is dashed gold: not real until added. */
.brktool{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px}
.brktray-label{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.brktray-zone,.stripzone.brktray-zone{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;min-height:0;
  align-items:center}
.brktray-zone .brk{display:inline-flex;align-items:center;grid-template-columns:none;min-height:32px;
  padding:4px 14px;border-radius:6px;cursor:grab}

.brk-name{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.strip.brk{grid-template-columns:56px 130px minmax(0,1fr) 28px;background:var(--brk-meal);color:var(--on-brk);
  box-shadow:inset 0 0 0 1px var(--line2)}
.strip.brk.brk-meal{background:var(--brk-meal)}
.strip.brk.brk-move{background:var(--brk-move)}
.strip.brk.brk-day,.brkcard.brk-day{background:var(--brk-day);color:var(--on-brk);box-shadow:none}
.strip.brk .scdel,.brkcard .scdel{justify-self:end;color:inherit}
.brkcard.brk-meal{background:var(--brk-meal);border-color:var(--brk-meal);color:var(--on-brk)}
.brkcard.brk-move{background:var(--brk-move);border-color:var(--brk-move);color:var(--on-brk)}
.brkcard.brk-day{border-color:var(--brk-day)}
.brkcard .sc-meta{color:inherit;opacity:.75}

.brksuggest{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 12px;
  border:1px dashed var(--acc);background:rgba(224,168,60,.08);color:var(--tx2);font-size:12px;
  border-radius:6px}
.brksuggest b{color:var(--tx)}
.stripzone > .brksuggest{border-radius:0;border-width:1px 0}


/* ── Shooting time ───────────────────────────────────────────────────────
 * A scene's time is a box you can type in, wherever the scene is drawn: the
 * strip, the card, the Breakdown table — the same two-part box everywhere
 * (SceneTimeInput.tsx): hours, then minutes, each a bare number with a fixed
 * "h"/"m" after it. A scene with a time of its own is marked (underlined on a
 * strip or card, gold in the table); the rest show the estimate from pages.
 * The timing panel is the working day's settings. */
.durpair{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;box-sizing:border-box;
  min-height:24px;padding:1px 5px;border:1px solid transparent;border-radius:4px;background:transparent;
  color:inherit;font:600 12px/1.2 var(--mono);white-space:nowrap;cursor:text}
.durpair-seg{display:inline-flex;align-items:baseline;gap:1px;margin:0;cursor:inherit;font:inherit;
  color:inherit;letter-spacing:0;text-transform:none}
.durpair .durpair-u{opacity:.75}
/* td input carries the table's own cell padding/stroke/min-height — none of
 * which belongs on the two bare number fields inside this box. */
.durpair input.durpair-n,td .durpair input.durpair-n{width:2.4ch;min-width:0;min-height:0;padding:0 1px;
  border:0;border-radius:2px;background:transparent;color:inherit;font:inherit;text-align:right;outline:none;box-shadow:none}
.durpair input.durpair-n:focus,td .durpair input.durpair-n:focus{background:rgba(128,128,128,.22)}
/* Cards and strips are user-select:none so a drag never selects text; the
 * time box inside them still has to take a caret and typing. */
.durpair,.durpair input.durpair-n{-webkit-user-select:text;user-select:text}
/* Same for the open part card's Pages on this day box (carry-over):
 * WebKit inherits the card's none, and an input left with it takes no caret on iPad. */
.scenecard .sc-detail .field input{-webkit-user-select:text;user-select:text}
.durpair.disabled{cursor:default}
.durpair.own{box-shadow:inset 0 -2px 0 currentColor}
.durpair-strip{justify-self:end}
/* Where the strip's grid drops columns (the Unscheduled pool, narrow
 * windows) the box wraps onto a second line under the scene number — start
 * it there, so it grows into the empty row instead of off the strip's edge. */
.strippool .durpair-strip{justify-self:start}
@media (max-width:1100px){ .strip .durpair-strip{justify-self:start} }
.durpair-strip:not(.disabled):hover,.durpair-strip:focus-within{border-color:currentColor}
.durpair-card{color:var(--tx2)}
.scenecard .sc-meta{align-items:center}
.durpair-table.own{box-shadow:none;color:var(--acc-text);font-weight:700}
/* On a scene card and in the Breakdown table the box always carries a medium
 * gray stroke so it reads as something to type in, turning yellow on hover
 * and while typing (not on a strip, whose coloured fills include that
 * yellow). Locked/read-only boxes stay plain. */
.durpair-card:not(.disabled),.durpair-table:not(.disabled){border-color:var(--tx3)}
.durpair-card:not(.disabled):hover,.durpair-card:focus-within,
.durpair-table:not(.disabled):hover,.durpair-table:focus-within{border-color:var(--acc)}

.timingpanel{margin:8px 0 6px}
/* Bottom-aligned, so a label that wraps onto two lines (Turnaround at least, or a long language) never drops its box below the row's others. */
.timinggrid{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 18px;padding:6px 2px 4px 34px}
.timinggrid .field{width:160px}
.timingin{display:flex;align-items:center;gap:6px}
.timingin input{flex:1;min-width:0}
/* The panels' own hints line up under their fields; a note a panel opens (DayDateNotSavedModal) keeps the modal's own spacing. */
.timingpanel > .hint{padding:2px 2px 0 34px;max-width:none}
.timingtotals{display:flex;flex-wrap:wrap;gap:4px 22px;padding:8px 2px 2px 34px;font-size:12px;color:var(--tx2)}
.timingtotals b{font-family:var(--mono);color:var(--tx)}

.stripcall{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#c9d2db}
.stripcall input{width:104px;background:var(--bg);color:var(--tx);border:1px solid var(--line);
  border-radius:4px;padding:2px 4px;font-size:11px}
.stripend-flags{grid-column:1 / span 2;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:8px}
.stripend-flags .dayflag{background:rgba(217,105,79,.2);border-color:rgba(217,105,79,.55);color:#f0b8a8}
.dayflag{font-size:14px;line-height:1.4;padding:3px 9px;border-radius:6px;text-align:left;
  background:rgba(217,105,79,.1);border:1px solid rgba(217,105,79,.4);color:var(--bad)}
.dayflags{display:flex;flex-direction:column;gap:4px;padding:6px 8px;border-bottom:1px solid var(--line)}


/* ── Break buttons: solid, always in reach ───────────────────────────────
 * The tray is three solid buttons — off-white Day break, grey Meal break,
 * purple Company move — and it sticks to the top of the board as it scrolls, so a
 * break can be dragged in from anywhere without scrolling back up. The
 * tray is take-only: dragging a button out never shuffles the others. */
.brktool{position:sticky;top:0;z-index:30;background:var(--bg);padding:8px 0;margin:2px 0 10px;
  box-shadow:0 1px 0 var(--line)}
.brktool .brktray-zone .brk{border:0;box-shadow:none;min-height:34px;padding:6px 16px;border-radius:6px;
  font-weight:700;transition:filter .1s ease}
.brktool .brktray-zone .brk:hover{filter:brightness(1.1)}
.brktool .brktray-zone .brk .brk-name{color:inherit;font-size:12px}
.brktool .brktray-zone .brk.brk-day{background:var(--brk-day);color:var(--on-brk)}
.brktool .brktray-zone .brk.brk-meal{background:var(--brk-meal);color:var(--on-brk)}
.brktool .brktray-zone .brk.brk-move{background:var(--brk-move);color:var(--on-brk)}

/* ── The day, top to bottom ──────────────────────────────────────────────
 * The bar that opens a day says which day it is, when, from what call time,
 * and what it adds up to. The bar that closes it says only END OF DAY and
 * holds the one destructive control, in the brand's red outline. */
.stripstart{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px 16px;
  padding:9px 18px;background:#0a0a0c;color:#fff;border-top:1px solid #2c363f}
.stripstart-id{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.stripstart-day{font:800 16px/1 var(--sans);letter-spacing:.06em;color:#f0c46b;margin-right:6px}
/* The day number is a box (Stripboard.tsx): type another day's number to bring that day to the top. Dark in both
 * themes, like the bar it sits on. */
.stripstart-day:has(.stripdaynum){display:inline-flex;align-items:center;gap:6px}
.stripdaynum{font:inherit;letter-spacing:inherit;color:inherit;background:#14181d;border:1px solid #3a4650;
  border-radius:4px;padding:2px 5px;min-width:2.2em;field-sizing:content;text-align:center}
.stripdaynum:focus{outline:none;border-color:#f0c46b}
.stripdaynum.bad{border-color:var(--bad)}
.stripstart .stripend-tot{grid-column:2;grid-row:1}
.stripend.day{grid-template-columns:1fr auto 1fr;padding:8px 18px;background:var(--brk-day);color:var(--on-brk)}
.stripend.day .stripend-title{grid-column:2;color:var(--on-brk)}
.stripend.day .btn.danger.outline{color:#a53a24;border-color:#a53a24;background:transparent}
.stripend.day .btn.danger.outline:hover{background:rgba(165,58,36,.12)}
/* Off-white on a light page needs an edge. */
:root[data-theme="light"] .stripend.day,
:root[data-theme="light"] .brktool .brktray-zone .brk.brk-day{box-shadow:inset 0 0 0 1px rgba(28,24,16,.22)}
@media (prefers-color-scheme:light){
  :root[data-theme="system"] .stripend.day,
  :root[data-theme="system"] .brktool .brktray-zone .brk.brk-day{box-shadow:inset 0 0 0 1px rgba(28,24,16,.22)}
}
.stripend-act{grid-column:3;justify-self:end}

/* ── Call Sheets ─────────────────────────────────────────────────────────
 * The tab reuses the app's own cards, fields, tables and .disclose rows. */
.dept-actions .field{min-width:260px}
.dept-actions .field select{min-height:34px}

/* ── Calendar ────────────────────────────────────────────────────────────
 * A month grid reading of the same schedule the Day Board, Stripboard and
 * DOODs already read — nothing here is a second copy of the data, only a
 * different layout of it. Same flex-row-plus-sticky-sidebar shape as the
 * Stripboard (`.stripboard`: `.stripmain` + `.strippool`), reused rather
 * than inventing a new page layout for one more view. */
.calboard{display:flex;gap:16px;align-items:flex-start}
.calmain{flex:1 1 auto;min-width:0}
.calpool{flex:0 0 300px;position:sticky;top:64px;display:flex;flex-direction:column;gap:14px;
  max-height:calc(100vh - 290px)}
/* One box, same shape as .strippool's own single scrolling zone: a day with
 * scenes but no date yet (.calundated, only rendered when one exists) sits
 * above the loose scenes, inside the one "Unscheduled" card, rather than a
 * second card of its own — see Calendar.tsx. */
.calpool-sec{background:var(--bg2);border:1px solid var(--line2);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.calpool-sec .daycol-head{flex:0 0 auto}
/* The one scrolling region for the whole box — undated day-cards (if any)
 * and loose scenes both flow inside it and scroll together, rather than
 * each trying to bound and scroll on its own: a flex child that refuses to
 * shrink below its own content height (.calundated, wrapping to as many rows
 * as there are undated days) can still force its OWN box taller than the
 * space available, even with min-height:0 on everything around it — giving
 * the whole stack one shared scrollbar sidesteps that instead of fighting it. */
.calpool-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;padding:8px}

.calbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.calbar .calmonth{font:800 17px/1 var(--sans);letter-spacing:.01em;min-width:170px}
.calbar .grow{flex:1}

.calgrid{display:grid;grid-template-columns:repeat(7,1fr);gap:1px;background:var(--line);
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.calwd{background:var(--bg3);color:var(--tx3);text-align:center;padding:7px 4px;
  font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
/* min-width:0: a grid track otherwise sizes to its widest child's own
 * intrinsic width, so one long, unbreakable line (a day/night mix that wraps
 * to a wide row of badges, say) can force that one weekday's column wider
 * than the other six instead of wrapping inside its own 1fr share. */
.calcell{background:var(--bg2);min-height:112px;min-width:0;padding:5px;display:flex;flex-direction:column;gap:4px}
.calcell.calcell-other{background:var(--bg);opacity:.5}
.calcell.calcell-other .caldate{cursor:pointer}
.calcell.today{box-shadow:inset 0 0 0 2px var(--acc)}
.caldate{font:700 11px/1 var(--mono);color:var(--tx3);align-self:flex-end}
.calcell.today .caldate{color:var(--acc-text)}
/* An empty cell is itself the drop target that creates a new shoot day. */
.calcell.calcell-empty:hover{background:var(--bg3)}

.calday-card{background:var(--bg3);border:1px solid var(--line2);border-radius:6px;padding:5px 6px;
  display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-height:0;min-width:0}
.calday-card.dragging{opacity:.9;box-shadow:0 14px 30px rgba(0,0,0,.5),inset 0 0 0 1px var(--acc)}
/* The one part of the card that drags the whole day — not the scene chips
 * beneath it, which have their own, finer-grained drag (see .calscene). */
/* In a narrow cell (a small window, the browser pane) the count line drops
 * under "Day N" and cuts off with an ellipsis, never spilling into the next
 * date's cell or breaking "Day N" over two lines. */
.calday-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 6px;cursor:grab;min-width:0;touch-action:none}
.calday-head:active{cursor:grabbing}
.calday-num{font:800 11px/1 var(--sans);letter-spacing:.04em;color:var(--acc-text);white-space:nowrap}
.calday-meta{font-size:9.5px;color:var(--tx3);white-space:nowrap;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
/* A small window: the Unscheduled box gives the month grid some of its width, so a day card still fits "Day 30". */
@media (max-width:960px){
  .calpool{flex-basis:190px}
  .calday-card{padding:5px 4px}
}
.calday-scenes{display:flex;flex-wrap:wrap;gap:3px;min-height:16px}
/* Reuses .scenenum + the .ct-* legend colors exactly as they already exist
 * (see the Day Board / Stripboard section above) — just shrunk. */
/* touch-action:none (as on .scenecard / .strip): a finger drags a chip, or a day by its head, as soon as it moves (TouchDragBridge). */
.calscene.scenenum{min-width:16px;height:16px;font-size:12px;padding:0 3px;cursor:grab;touch-action:none}
.calscene.scenenum:active{cursor:grabbing}
.calscene.dragging{box-shadow:0 6px 16px rgba(0,0,0,.5)}

/* Only ever rendered when there's at least one undated day, so no :empty
 * placeholder text is needed here the way .stripzone has one. */
.calundated{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:8px;margin-bottom:8px;
  border-bottom:1px solid var(--line)}
.calundated .calday-card{flex:0 0 128px}
.calpool-scenes{display:flex;flex-direction:column;gap:7px}

/* Collision refusal: same brief flash the schedule already uses to say
 * "that didn't happen" without a modal for something this quick to undo. */
.calcell.calrefuse{animation:calrefuse .4s ease 1}
@keyframes calrefuse{0%,100%{box-shadow:none}30%,70%{box-shadow:inset 0 0 0 2px var(--bad)}}

/* ── Platform: the Start Page and the per-project Dashboard hub ──────────
 * Both are a centred heading over a grid of big rectangular tiles — the
 * Start Page's tiles are Projects + "Start a New Project", the Dashboard's
 * are the five modules (Budgeting, Scheduling, Script Upload & Breakdown,
 * Globals, Settings). One pattern, two callers, same as .langgrid/.langchip
 * is one pattern shared by every picker. A tile the platform hasn't built
 * yet (Scheduling, Breakdown, Settings' real content) renders for real —
 * dimmed, disabled, with a tooltip — never a link to nothing. */
.hubwrap{width:100%;max-width:1040px;margin:0 auto;padding:32px 20px 60px;display:flex;
  flex-direction:column;align-items:center}
/* The Start Page's own corner logo (top-left, matching every other page's
 * .brand/.blogo placement) plus its big centred org-name lockup and the
 * always-visible inline language grid beneath it — the first choice on the
 * page, not a click behind a flag icon. */
/* The corner logo plus the page's own small label — "Start Page" is this
 * page's name the way a project's title sits next to AppHeader's own logo
 * everywhere else. A flex group instead of two independently-guessed
 * absolute offsets, so the label always lands right after the logo
 * whatever the logo's actual rendered width turns out to be. */
.startbrand{position:absolute;top:16px;left:20px;display:flex;align-items:center;gap:14px;z-index:1}
.startlogo{height:30px;width:auto;display:block}
.startpagetag{font:700 12px/1 var(--font-outfit,'Outfit'),var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.startorgrow{display:flex;align-items:center;justify-content:center;gap:10px;margin:4px 0 28px}
.startorgname{text-align:center;font:800 22px/1.3 var(--font-outfit,'Outfit'),var(--sans);color:#fff;
  margin:0;letter-spacing:-.01em}
/* The pencil-in-a-box next to the org name — white stroke/icon so it reads
 * against the dark header regardless of theme, only shown to the Owner
 * seat. Opens OrgNameHeading's own rename modal. The ✏️ glyph's own tip
 * points down-and-right by default; the box is a symmetric square, so
 * rotating the whole button 180° flips only the glyph — tip now points
 * up-and-left — without changing how the box itself looks. */
.orgeditbtn{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;
  border:1.5px solid #fff;border-radius:6px;background:transparent;color:#fff;font-size:13px;
  cursor:pointer;flex:0 0 auto;line-height:1;transform:rotate(180deg)}
.orgeditbtn:hover{background:rgba(255,255,255,.14)}
.startlanglabel{text-align:center;font:700 12px/1.3 var(--font-outfit,'Outfit'),var(--sans);color:var(--tx3);
  text-transform:uppercase;letter-spacing:.1em;margin-bottom:10px}
.startlangwrap{width:100%;max-width:1040px;margin-bottom:36px}
/* InlineLanguageGrid.tsx's collapsible heading: a .disclose row shrunk to
 * its content and centred, keeping .startlanglabel's own type. The hidden
 * twin caret box on the right balances the visible one on the left so the
 * word LANGUAGE stays on the page's centre line. */
.startlanglabel .disclose.startlangtoggle{display:inline-flex;width:auto;padding:2px 4px;gap:8px;
  font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit}
.startlanglabel .disclose.startlangtoggle:hover{color:var(--tx)}
.startlanglabel .startlangspacer{visibility:hidden}
/* The caret keeps the app-wide glyph, not the heading's Outfit one (smaller). */
.startlanglabel .startlangtoggle .caret{font-family:var(--sans);font-weight:400}
.hubhead{text-align:center;font:700 24px/1.3 var(--font-outfit,'Outfit'),var(--sans);color:var(--tx);
  margin:0 0 20px;letter-spacing:-.01em}
/* The row above the tile grid: the section title on the left, the primary
 * action on the right — the grid itself stays pure content, so a button
 * doesn't have to masquerade as a tile once there are dozens of real ones. */
.hubtoolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;
  width:100%;max-width:1100px;margin-bottom:18px}
.hubtoolbar h2{margin:0;font:700 15px/1.3 var(--font-outfit,'Outfit'),var(--sans);color:var(--acc-text);text-align:left}
/* The Start Page's own corner utility links (Billing/Contacts/Team/My
 * Account/Help) and OrgPageHeader's copy of the same row — plain text
 * links with no hover feedback at all before this. */
.startutil-link{color:var(--tx3);font-size:12px;text-decoration:none;white-space:nowrap;
  border-bottom:1px solid var(--acc);transition:color .12s ease}
.startutil-link:hover{color:var(--tx)}
.orgnav-link{color:var(--hdr-tx3);font-size:12px;text-decoration:none;white-space:nowrap;
  border-bottom:1px solid var(--acc);transition:color .12s ease}
.orgnav-link:hover{color:var(--hdr-tx)}
/* OrgPageHeader's own strip is fixed dark furniture like header.topbar —
 * plain brand yellow, not the light-mode-darkened --acc-text/--acc2-text. */
.orgnav-link.on{color:var(--acc);font-weight:700}
.orgnav-link.on:hover{color:var(--acc2)}
.hubgrid{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;width:100%;max-width:720px}
/* The Start Page's project grid: a strict 5-per-row layout. Projects are
 * grouped into rows of up to 4 in dashboard/page.tsx, oldest first, with
 * the "+ New Project" tile appended only to the last such row — so it
 * always sits immediately after the most recently created project,
 * wherever that lands, instead of being pinned to row one's 5th cell. */
.hubgrid-5{display:grid;grid-template-columns:repeat(5,1fr);max-width:1100px;justify-content:initial}
.hubgrid-5 + .hubgrid-5{margin-top:16px}
/* The rows' own wrapper (dashboard/page.tsx): nothing of its own on a
 * desktop, where each row stays its own 5-across grid. On narrower
 * screens the rows flow together as one grid of fewer tiles across, so a
 * phone isn't squeezed to 5 tiles with clipped names and buttons. */
.hubrows{width:100%}
@media (max-width:760px){
  .hubrows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .hubrows>.hubgrid-5{display:contents}
  .hubtile .hubactions{flex-wrap:wrap}
}
@media (max-width:520px){.hubrows{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* A member on no projects who can't start one (dashboard/page.tsx). */
.hub-noprojects{margin:4px 0 0;text-align:center}
/* Archived projects: laid out exactly like All Projects above (same
 * toolbar heading, same 5-across grid), set off by a rule the width of
 * the grid — only rendered when there are archived projects. */
.hubarchived{width:100%;max-width:1100px;margin-top:56px}
.hubarchived-rule{border:0;border-top:1px solid var(--line2);margin:0 0 40px}
.hubtile{display:flex;flex-direction:column;flex:0 1 200px;border-radius:var(--radius);
  overflow:hidden;background:var(--bg2);border:1px solid var(--line);text-align:left;
  color:inherit;text-decoration:none;transition:border-color .12s ease,transform .12s ease}
a.hubtile:hover{border-color:var(--acc-stroke);transform:translateY(-1px)}
.hubtile[disabled],.hubtile.stub{opacity:.5;cursor:not-allowed}
.hubtile .hubimg{height:104px;background:var(--bg3);display:flex;align-items:center;
  justify-content:center;color:var(--tx3);font-size:28px}
.hubtile .hubimg img{width:100%;height:100%;object-fit:cover;display:block}
/* The project grid's image area keeps the crop tool's exact 2:1 frame
 * (ProjectImageUpload's 480×240 output) at every column width, so the
 * thumbnail shows exactly what was cropped. A fixed 104px height only
 * matched at the grid's full 1100px width; narrower, object-fit:cover
 * trimmed the sides. min-height:0 stops the image's own size from
 * stretching the box past the ratio. */
.hubgrid-5 .hubtile .hubimg{height:auto;min-height:0;aspect-ratio:2/1}
.hubtile .hubbody{padding:12px 14px}
.hubtile .hubname{display:block;font:600 14.5px/1.3 var(--font-outfit,'Outfit'),var(--sans);color:var(--tx)}
.hubtile .hubsub{display:block;font-size:12px;color:var(--tx3);margin-top:2px}
.hubtile .hubarchive{align-self:flex-end;margin:auto 10px 10px 0;padding-top:8px}
/* margin-top:auto pushes this to the bottom of .hubtile's flex column
   regardless of how much text sits above it (a production company
   subtitle or not) — every tile in a row is already the same height
   (the grid's own default row-stretch), so without this, tiles with less
   content above just left the extra space below the buttons instead of
   above them, and the buttons landed at different heights row to row. */
.hubtile .hubactions{display:flex;justify-content:space-between;gap:8px;margin:8px 10px 10px;margin-top:auto}
/* The "+ New Project" tile — same shape as every other tile, but a dashed
 * accent stroke and accent-coloured text/glyph so it reads as the one
 * action in a grid of destinations, never mistaken for an existing project. */
.hubtile.newproject{border:2px dashed var(--acc-stroke);background:transparent;cursor:pointer;
  font:inherit;width:100%;text-align:center}
.hubtile.newproject .hubimg{background:transparent;color:var(--acc-text);font-size:34px;font-weight:700}
.hubtile.newproject .hubname{color:var(--acc-text)}
.hubtile.newproject:hover{border-color:var(--acc2);transform:translateY(-1px)}
/* Light mode's own brief for this one tile is literal black, not the
 * dark-gray --acc-text every other yellow label gets — dotted black
 * stroke, black glyph, black label, so "add a project" reads as a plain
 * outline action rather than another colored chip. */
:root[data-theme="light"] .hubtile.newproject{border-color:#000}
@media (prefers-color-scheme:light){:root[data-theme="system"] .hubtile.newproject{border-color:#000}}
:root[data-theme="light"] .hubtile.newproject .hubimg,
:root[data-theme="light"] .hubtile.newproject .hubname{color:#000}
@media (prefers-color-scheme:light){:root[data-theme="system"] .hubtile.newproject .hubimg,
:root[data-theme="system"] .hubtile.newproject .hubname{color:#000}}
/* The image-placeholder box (no photo uploaded yet) is a light gray fill
 * with no border of its own — nested inside the tile's own border, but
 * still its own visibly separate panel, so light mode gives it a stroke
 * the way every other light/white box on the page has one. */
:root[data-theme="light"] .hubtile .hubimg{border:1px solid #000}
@media (prefers-color-scheme:light){:root[data-theme="system"] .hubtile .hubimg{border:1px solid #000}}
/* The per-project Dashboard hub's two equal columns: project info on the
 * left, "where would you like to begin?" on the right — replaces the old
 * single centred column now that both halves need to sit side by side. */
.dashcols{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start;
  max-width:1400px;margin:0 auto;padding:18px 16px 80px}
/* Half-width is this page's own rule regardless of window size — module
 * pages (Budget/Schedule/Breakdown) never get this split, their own
 * ModuleProjectInfoCard stays full-width, stacked above their content, same
 * as before this pass. Only collapse to one column on a genuinely narrow
 * (phone-width) viewport, not an ordinary desktop window. */
@media (max-width:640px){.dashcols{grid-template-columns:1fr}}
/* Without this, the left column's own .meta field grid (minmax(230px,1fr)
 * × 3) has a min-content width wider than half the page, so the grid item
 * refuses to shrink and blows out over the right column instead of letting
 * .meta reflow to fewer columns. */
.dashcols>*{min-width:0}
.dashcols .wrap{max-width:100%;padding:0}
.dashcols .hubwrap{max-width:100%;padding:0}

/* Clerk's own embedded UserProfile page (My Account) hardcodes a lot of its
 * own text white and its own accent text --acc's full-brightness yellow,
 * regardless of the `variables`/`elements.headerTitle` appearance config
 * passed in layout.tsx — those reach some of the widget (most labels,
 * field values) but not the page title/subtitle, section headings, the
 * signed-in name, or the active nav tab/section-edit links, so each is
 * caught here too, scoped to Clerk's own stable (non-hashed, documented)
 * classnames rather than its per-render internal hash ones, which change
 * whenever the appearance config itself changes. !important because
 * Clerk's generated styles carry their own specificity this has to beat
 * reliably, not just usually. */
:root[data-theme="light"] .cl-rootBox h1,
:root[data-theme="light"] .cl-rootBox .cl-navbar p,
:root[data-theme="light"] .cl-rootBox .cl-profileSectionTitleText,
:root[data-theme="light"] .cl-rootBox .cl-userPreviewMainIdentifierText,
:root[data-theme="light"] .cl-rootBox .cl-profileSectionItem p{color:var(--tx) !important}
@media (prefers-color-scheme:light){:root[data-theme="system"] .cl-rootBox h1,
:root[data-theme="system"] .cl-rootBox .cl-navbar p,
:root[data-theme="system"] .cl-rootBox .cl-profileSectionTitleText,
:root[data-theme="system"] .cl-rootBox .cl-userPreviewMainIdentifierText,
:root[data-theme="system"] .cl-rootBox .cl-profileSectionItem p{color:var(--tx) !important}}
:root[data-theme="light"] .cl-rootBox .cl-navbarButtonText,
:root[data-theme="light"] .cl-rootBox .cl-profileSectionPrimaryButton,
:root[data-theme="light"] .cl-rootBox .cl-formButtonPrimary{color:var(--acc-text) !important}
@media (prefers-color-scheme:light){:root[data-theme="system"] .cl-rootBox .cl-navbarButtonText,
:root[data-theme="system"] .cl-rootBox .cl-profileSectionPrimaryButton,
:root[data-theme="system"] .cl-rootBox .cl-formButtonPrimary{color:var(--acc-text) !important}}

/* A cast line's performer type (LineRow): the same quiet label, as a picker. */
select.posselect{width:auto;max-width:210px;min-height:0;padding:2px 4px;background:transparent;border:1px solid transparent;
  border-radius:4px;text-align:right;cursor:pointer}
select.posselect:hover:not(:disabled),select.posselect:focus{border-color:var(--line2);background:var(--bg)}
/* Call sheet reading view: a scene's cast, one "ID · CHARACTER · Actor" per line. */
.scenecast{white-space:nowrap;line-height:1.45}

/* ── Print: the page's content, not the web page ─────────────────────────
 * The header Print button (PrintButton.tsx / ExportButtons.tsx) and the
 * browser's own Ctrl/Cmd+P both land here. What prints is the module's
 * content laid out the way it looks on screen — the budget tables, the
 * scene list, the screenplay, the Day Board's columns, the stripboard's
 * strips, the calendar's month grid with its scene numbers — and none of
 * the app around it: top bar, module bar, episode strip, tab strip, stage
 * bar, search, every button, the Schedule warnings/tools panels, drag
 * trays, popups and the Feedback button. Open sections print their
 * contents under their title; collapsed ones are left out.
 *
 * Paper is always white, so every appearance prints with the light
 * palette, and the colours that carry meaning (strip/scene colours, the
 * DOOD's status chips, break strips, the legend swatches) print exactly
 * rather than being dropped by the browser's "save ink" default.
 *
 * Wide boards (Filming Schedule, Stripboard, Calendar, DOODs, a budget
 * account's line table, the Scenes table) go onto landscape pages via the
 * named page below; everything else stays portrait. Pinned at the end of
 * the stylesheet so it outranks the appearance blocks above it. */
@media print{
  :root,:root[data-theme]{
    --bg:#ffffff; --bg2:#ffffff; --bg3:#eef1f5; --bg4:#e3e8ef;
    --line:#c8d0d8; --line2:#a9b6c4;
    --tx:#101418; --tx2:#3d4a55; --tx3:#5b6670;
    --acc:#ffcc00; --acc2:#ffe066;
    --good:#7cdb8f; --good2:#9bebac; --bad:#d40000; --info:#7ec8f2;
    --budgetname:#2f8a52;
    --on-good:#000000; --on-info:#000000; --on-acc:#000000; --on-bad:#000000;
    --acc-text:#2b2f33; --good-text:#2b2f33; --info-text:#2b2f33; --acc2-text:#2b2f33;
    --acc-stroke:#000000;
    color-scheme:light;
  }
  *{-webkit-print-color-adjust:exact !important;print-color-adjust:exact !important}
  /* The light appearance's own text fixes for its pale warning/badge tints. */
  .warn,.disclose .warnsummary,.badge.bad,.hint b.bad{color:#5c2a20}
  .badge.g,.cmpnums b.good,.hint b.good{color:#1f4a30}
  html,body{height:auto !important;min-height:0 !important;max-width:none !important;overflow:visible !important;background:#fff !important}
  body{display:block !important;color:var(--tx)}
  #app,.modroot{display:block !important;height:auto !important;min-height:0 !important}
  main{overflow:visible !important;height:auto !important}
  .wrap{max-width:none !important;padding:0 !important;margin:0 !important}

  /* The app around the content. */
  .topbar,.modnavbar,.tabs,.stagebar,.navgroup,.searchwrap,.gsearch,.btn,.no-print,
  .modal-bg,.masterpanel-wrap,.brktool,.brksuggest,.strippool,.calpool,
  .daycol.pool,.daycol.stashed,.removedtray,.scenegroupbar,.dept-actions,.adddeptbar,
  .incbar,.tablefoot,.scdel,.scdisc,.scrub,.scenerow .disc,.scriptclose,.spgoto{display:none !important}
  /* Section titles stay as headings over what they hold; the caret box that
   * opened them and any section left collapsed do not print. */
  .disclose .caretbox{display:none !important}
  .disclose{background:none !important;cursor:default}
  .card > .disclose{padding-left:14px}
  .disclose:not(.open){display:none !important}
  .card:has(> .disclose:not(.open):only-child),
  .card:has(> .card-body:only-child > .disclose:not(.open):only-child){display:none !important}
  /* Explanatory hint prose sitting loose in the page is guidance for the
   * screen, not part of the document. */
  main .wrap > p.hint,main .wrap > .hint:not(.scenelegend){display:none !important}

  /* Scroll boxes and pinned bits flatten so everything they hold prints. */
  .tw,.dayboard,.daycol,.daycol-body,.doodwrap,.stripmain,.stripzone,.scriptscroll,.scenedetailbox,.card-body,.calgrid,.lines{
    overflow:visible !important;max-height:none !important;height:auto !important}
  th,thead th,.brktool,table.lines th.c-act,table.lines td.c-act,
  table.dood th.dc-label,table.dood td.dc-name{position:static !important}
  thead{display:table-header-group}
  .card{break-inside:auto;box-shadow:none !important}
  tr,.strip,.stripstart,.stripend,.scenecard,.calday-card,.calcell,.doodkey-row,.spscene .sp-heading,
  .sp-character,.sp-paren{break-inside:avoid}
  .sp-heading,.sp-character,.stripstart{break-after:avoid}

  /* Inputs read as the values they hold. */
  input,select,textarea{border-color:transparent !important;background:transparent !important;
    box-shadow:none !important;-webkit-appearance:none;appearance:none;color:inherit !important}
  input::placeholder,textarea::placeholder{color:transparent !important}
  input[type="checkbox"],input[type="radio"]{-webkit-appearance:auto;appearance:auto}
  ::-webkit-calendar-picker-indicator{display:none}

  /* A landscape page is ~1000px wide, under the 1100px breakpoint that
   * folds the stripboard down for a narrow window — print keeps the full
   * strip (Int/Ext, time of day, cast, duration) the way a desktop shows it. */
  .stripboard{flex-direction:row}
  .strip:not(.brk){grid-template-columns:56px 60px 46px minmax(0,1fr) 84px 66px 92px 150px}
  .strip-ie,.strip-tod,.strip-cast{display:revert}

  /* Filming Schedule's day columns scroll sideways on screen; on paper they
   * wrap onto as many rows as the page needs, each column its screen width. */
  .dayboard{flex-wrap:wrap}

  /* A table wider than the page (the DOOD's day columns, a budget
   * account's line items) is zoomed down to the page width rather than
   * having its right-hand columns cut off — lib/print-fit.ts records its
   * full width as --print-w just before printing; 100cqw is the width the
   * print layout actually gives it (less a little: print widens a table a
   * few pixels over its on-screen width). */
  .tw,.doodwrap{container-type:inline-size}
  .tw > table,.doodwrap > table{zoom:min(1, calc(0.96 * 100cqw / var(--print-w, 96cqw)))}
  .doodkey .dsum,.doodkey > .hint{display:none !important}

  /* A budget account's line items: the row-actions column (all buttons)
   * goes, and the columns take the Condensed density widths (sized so no
   * value is ever truncated) — the same rules as .print-measure below, so
   * the table needs as little shrinking as possible to fit the page. */
  :root,:root[data-density]{
    --c-acct:54px;  --c-desc:380px; --c-qty:112px; --c-unit:78px;  --c-num:130px;
    --c-rate:140px; --c-pd:240px;   --c-fg:126px;  --c-sub:92px;   --c-fr:104px;
    --c-tot:96px;   --c-ph:88px;    --c-id:50px;   --c-actor:180px;
    --line-fs:12px; --line-pad:4px;
  }
  table.lines th.c-act,table.lines td.c-act{display:none}
  td input{padding:0 2px !important}

  /* The calendar: one month to a page, as the grid shows it. */
  .calgrid{break-inside:avoid}
  .calcell{min-height:88px}

  /* Landscape for the wide boards. */
  body:has(.dayboard,.stripboard,.calboard,table.dood,table.lines,table.scenestable){page:wide}
}
@page{margin:10mm}
@page wide{size:landscape;margin:8mm}
/* lib/print-fit.ts measures each table's narrowest printable width a moment
 * before printing by putting this class on <html> for one layout pass — so
 * the column rules here must stay the same as the line-item rules inside
 * @media print above. */
:root.print-measure,:root.print-measure[data-density]{
  --c-acct:54px;  --c-desc:380px; --c-qty:112px; --c-unit:78px;  --c-num:130px;
  --c-rate:140px; --c-pd:240px;   --c-fg:126px;  --c-sub:92px;   --c-fr:104px;
  --c-tot:96px;   --c-ph:88px;    --c-id:50px;   --c-actor:180px;
  --line-fs:12px; --line-pad:4px;
}
:root.print-measure table.lines th.c-act,:root.print-measure table.lines td.c-act{display:none}
:root.print-measure .tw > table,:root.print-measure .doodwrap > table{width:min-content !important;min-width:0 !important}
/* Contacts: a person's mailing address (ContactForm.tsx AddressFields) — street lines full width, then city/region and postal code/country in pairs. */
.contactaddr{border:0;padding:0;margin:4px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.contactaddr legend{padding:0;margin-bottom:6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.contactaddr .field{margin:0}
.contactaddr .field label{font-size:12px}
.contactaddr .field.wide{grid-column:1 / -1}
.contactaddr.compact{margin-top:10px;grid-template-columns:repeat(4,minmax(0,1fr))}
.contactaddr.compact .field.wide{grid-column:span 2}
@media (max-width:700px){.contactaddr.compact{grid-template-columns:1fr 1fr}}
/* Contact page: "Attach to project" under the project list. */
.attachproject{display:flex;flex-direction:column;gap:6px;max-width:640px;margin-top:16px}
.attachproject > label{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.attachproject select{min-width:260px;max-width:100%}

/* ── Call sheet editor (Call Sheets → Edit) ─────────────────────────────
   Scoped to .cs-editor only. Every box a person can type in reads as a
   field (a visible stroke on the page background, accent on focus), and
   what can't be edited here (script location names, scene numbers) is in
   lighter text — table inputs elsewhere stay borderless on purpose. */
.cs-editor input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),
.cs-editor select,.cs-editor textarea{background:var(--bg);border:1px solid var(--tx2);border-radius:5px;color:var(--tx)}
.cs-editor input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):hover,
.cs-editor select:hover,.cs-editor textarea:hover{border-color:var(--tx)}
.cs-editor input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):focus,
.cs-editor select:focus,.cs-editor textarea:focus{outline:none;border-color:var(--tx);box-shadow:0 0 0 2px rgba(232,237,242,.16)}
.cs-editor ::placeholder{color:var(--tx3);opacity:1}
.cs-editor td.muted,.cs-editor .cs-readonly{color:var(--tx3)}
/* View only (Schedule → Locations): boxes that can't be typed in read as plain values, not fields. */
.cs-editor.cs-view input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),.cs-editor.cs-view textarea{background:var(--bg2);border-color:var(--line);cursor:default}
.cs-editor.cs-view input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):hover,.cs-editor.cs-view input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):focus,.cs-editor.cs-view textarea:hover,.cs-editor.cs-view textarea:focus{border-color:var(--line);box-shadow:none}
/* Locations: the slugline reads at full brightness (it's what you match against the script), its scenes as the Scenes list's Int/Ext · Day/Night badges. */
/* The call sheet on screen: secondary text (notes, addresses, descriptions) at the lighter secondary color and the 12px floor, not .muted/.xs's dim 11px. */
.cs-print .muted{color:var(--tx2)}
.cs-print .xs{font-size:12px}
.cs-editor .cs-loc-cell .cs-loc-title{color:var(--tx);font-weight:600}
.cs-editor .cs-loc-scenes{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.cs-editor .cs-loc-scenes .scenenum{min-width:26px;height:20px;padding:0 5px}
.cs-editor .cs-loc-more{color:var(--tx2);font-size:12px;align-self:center;margin-left:2px}
.cs-editor > h2.cs-editor-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cs-editor-head .grow{flex:1}
.cs-editor-status{font-size:12px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--tx2)}
.cs-editor-status.dirty{color:var(--acc-text)}
.cs-editor-status.saved{color:var(--good-text)}
.cs-editor tr.cs-loc-details > td{background:var(--bg3)}
.cs-loc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px;padding:8px 2px}
.cs-loc-grid .field input,.cs-loc-grid .field textarea{width:100%;box-sizing:border-box;padding:6px 8px;min-height:32px}
.cs-loc-grid .field label{font-size:12px}
/* An address as Street / City / State / ZIP boxes on one wrapping row (components/AddressFields.tsx). */
.cs-addr{display:flex;flex-wrap:wrap;gap:6px}
.cs-addr input,.cs-loc-grid .field .cs-addr input{width:auto;box-sizing:border-box}
.field > input + .cs-addr,.field > .cs-addr + input{margin-top:4px}
/* `paired` (the Locations table's Address column): Street + City and State + ZIP as two pairs, all four on one line
   when the column fits both pairs, else one pair per line; the longer box of each pair gets the larger share. The
   split follows the State and ZIP labels ("State / province / region", "ZIP / postal code"), the longest and the boxes'
   only labels, so they show whole at 800px (265px is the most the column can have there before the table scrolls
   sideways) and the two pairs line up as one grid; State + ZIP also get the wider pair when all four share a line.
   From 1280px, where they share a line in both tables, Street takes more of its pair, for the street typed in it. */
.cs-addr.paired{min-width:265px}
.cs-addr-pair{flex:1 1 240px;min-width:0;display:grid;grid-template-columns:minmax(0,15fr) minmax(0,11fr);gap:6px}
.cs-addr-pair + .cs-addr-pair{flex-basis:280px}
@media (min-width:1280px){.cs-addr-pair:first-child{grid-template-columns:minmax(0,5fr) minmax(0,3fr)}}
.cs-addr.paired input{width:100%}
/* A location's Look up (its address, its crew parking) and what it found, under the address boxes: the button, then
   "Found: …" beside it when there's room, else on the line below. */
.cs-loc-lookup{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:10px}
.cs-loc-lookup:empty{display:none}
/* The Locations table's rows: 8px above and below, and a thin yellow line under the headings and between one location and the
 * next (above each location after the first, so a location's open Details stays with it). */
.tw table.cs-loc-table > tbody > tr > td{padding-top:8px;padding-bottom:8px;border-bottom:0}
.tw table.cs-loc-table > tbody > tr.cs-loc-row:not(:first-child) > td{border-top:1px solid var(--acc)}
.tw table.cs-loc-table > thead > tr > th{border-bottom:1px solid var(--acc)}
.cs-loc-lookup > .btn.sm{white-space:nowrap}
/* The call sheet's maps (CallSheetView CallSheetMaps): full-width maps stacked in .cs-maps, each with its title above
   and its pins' key under it (two columns when it has more than one pin); on each map its addresses' plates at top
   left (only with 4 pins or fewer) and a north arrow at top right. */
.cs-maps{display:flex;flex-direction:column;gap:22px;max-width:910px}
.cs-map-frame{min-width:0;display:flex;flex-direction:column;gap:8px}
.cs-map-title{font-weight:700;font-size:14px;color:var(--acc-text)}
.cs-map-key.two{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.cs-map-pic{position:relative;width:100%}
.cs-map-img{width:100%;height:auto;border:1px solid var(--line);border-radius:6px;display:block}
/* A map moved by hand (the Locations panel's Preview map): the hand cursor, the image and the plain map around it moving together under the plates. */
.cs-map-pan{position:relative;overflow:hidden;width:100%;border:1px solid var(--line);border-radius:10px;background:var(--bg3);cursor:grab;touch-action:none;user-select:none}
.cs-map-pan.dragging{cursor:grabbing}
.cs-map-pan-layer{position:absolute;inset:0}
.cs-map-pan .cs-map-img{position:relative;width:100%;height:100%;border:0;border-radius:0}
.cs-map-around{position:absolute;max-width:none;pointer-events:none}
.cs-map-key{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;min-width:0}
.cs-map-key li{display:flex;gap:8px;align-items:flex-start;font-size:13px}
.cs-map-key .cs-map-addr{display:block}
.cs-map-notes{display:block;color:#e06a6f;font-size:13px;margin-top:2px}
/* Special instructions' pastel red is for dark surfaces; on a light page and on paper it is the location pin's own
   red, which still reads as a warning and passes contrast on white. */
:root[data-theme="light"] .cs-map-notes{color:#c71721}
@media (prefers-color-scheme:light){:root[data-theme="system"] .cs-map-notes{color:#c71721}}
@media print{.cs-map-notes{color:#c71721}}
.cs-map-pin{flex:0 0 auto;width:20px;height:20px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff}
.cs-map-pin.sq{border-radius:3px;width:18px;height:18px}
.cs-map-pin.location{background:#c71721}
.cs-map-pin.parking{background:#13212d;box-shadow:0 0 0 1px rgba(255,255,255,.35)}
.cs-map-plates{position:absolute;top:6px;left:6px;right:52px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;pointer-events:none}
.cs-map-plate{display:flex;gap:6px;align-items:center;max-width:100%;background:#fff;color:#16191d;border:1px solid #9ea9b4;border-radius:3px;padding:3px 7px 3px 4px;font-size:12px;line-height:1.25}
.cs-map-plate strong,.cs-map-plate .cs-map-addr{display:block;overflow-wrap:anywhere}
.cs-map-north{position:absolute;top:6px;right:6px;display:flex;gap:4px;align-items:center;background:#fff;color:#16191d;border:1px solid #9ea9b4;border-radius:3px;padding:2px 6px;font-size:13px;font-weight:700}
/* The call sheet's day picker (CallSheetDayPicker): a button like the app's selects, opening a list of day links —
   upcoming first, past days greyed under their group label; scrolls (the app's green scrollbar) when long. */
.cs-daypick{position:relative}
.cs-daypick-btn{display:inline-flex;align-items:center;gap:10px;max-width:100%;background:var(--bg);color:var(--tx);border:1px solid var(--line2);border-radius:8px;padding:7px 12px;min-height:36px;font-size:14px;font-weight:600;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.cs-daypick-btn > span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cs-daypick-btn:hover,.cs-daypick-btn[aria-expanded="true"]{border-color:var(--acc-stroke);box-shadow:0 0 0 3px rgba(224,168,60,.12)}
.cs-daypick-btn:focus-visible{outline:none;border-color:var(--acc-stroke);box-shadow:0 0 0 3px rgba(224,168,60,.25)}
/* Its chevron is drawn (CallSheetDayPicker), so it reads at the same weight as the label. */
.cs-daypick-caret{display:inline-flex;align-items:center;font-size:12px;color:var(--acc-text);transition:transform .15s}
.cs-daypick-btn[aria-expanded="true"] .cs-daypick-caret{transform:rotate(180deg)}
.cs-daypick-list{position:absolute;top:calc(100% + 6px);left:0;z-index:40;min-width:100%;max-width:calc(100vw - 32px);max-height:360px;overflow-y:auto;background:var(--bg2);border:1px solid var(--line2);border-radius:12px;box-shadow:0 14px 36px rgba(0,0,0,.4);padding:6px}
.cs-daypick-item{display:block;padding:7px 10px;border-radius:8px;font-size:14px;color:var(--tx);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cs-daypick-item:hover,.cs-daypick-item:focus-visible{background:var(--bg3);outline:none}
.cs-daypick-item.current{color:var(--acc-text);font-weight:600;background:rgba(224,168,60,.1);box-shadow:inset 3px 0 0 var(--acc)}
.cs-daypick-item.past{color:var(--tx3)}
.cs-daypick-item.past.current{color:var(--acc-text)}
.cs-daypick-group{padding:10px 10px 4px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3);border-top:1px solid var(--line);margin-top:6px}
/* The same pick in Carry Over's dialog (CarryOverDialog): it opens in the dialog's own flow, since a list floating
   out of the dialog's scrolling body would be cut off, and its days are buttons, not links. */
.cs-daypick.in-flow .cs-daypick-list{position:static;margin-top:6px;box-shadow:none}
button.cs-daypick-item{width:100%;text-align:left}
.cs-loc-wide{grid-column:span 2}
@media (max-width:560px){.cs-loc-wide{grid-column:auto}}
/* Hints and headings in the editor and on the sheet keep the gaps their utility classes ask for: .mb6 isn't a site-wide
   utility, and h4.mh's own margin outranks .mt10/.mt14. */
.cs-editor .mb6{margin-bottom:6px}
.cs-editor h4.mh.mt10,.cs-print h4.mh.mt10{margin-top:16px}
.cs-editor h4.mh.mt14{margin-top:18px}
/* The editor's (and Schedule → Locations') title bar: the gold of a card being edited. */
.cs-editor > h2.cs-editor-head{color:var(--acc-text);box-shadow:inset 4px 0 0 var(--acc)}
.cs-editor.cs-view > h2.cs-editor-head{color:var(--tx2);box-shadow:none}
/* An opened row under its location (Details, or a "This day only" address): one gold edge down the row's left, not
   one per cell. Its buttons stay on one line in a narrow column ("▸ Details (3)"). */
.cs-editor tr.cs-loc-details > td:first-child{box-shadow:inset 3px 0 0 var(--acc)}
.cs-editor td > .btn.sm{white-space:nowrap}
/* Schedule → Locations: a day that gives the location an address of its own, as a gold-edged note under its badges. */
.cs-day-own{margin-top:6px;padding:3px 8px;border-left:3px solid var(--acc);border-radius:0 8px 8px 0;background:rgba(224,168,60,.08);color:var(--tx)}
/* Nothing to show yet (no shoot days, no locations): a gold-ringed mark over the line, like Sent emails' empty list. */
.empty.cs-empty{padding:36px 20px 40px}
.empty.cs-empty p{margin:0 auto;max-width:460px;font-size:14px;line-height:1.5;color:var(--tx2)}
.cs-empty-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:0 auto 12px;border-radius:50%;border:1px solid rgba(224,168,60,.35);background:rgba(224,168,60,.12);color:var(--acc-text)}
/* The call sheet on screen (CallSheetView CallSheetPrint), in the house style: a masthead with a gold day badge, the
   day's at-a-glance lines each with its mark (the emergency line in red), the places as small cards, location
   logistics as a band under their first scene, breaks in gold, and the day's quote set off. */
.cs-sheet-banner{margin-bottom:12px}
.cs-sheet-banner img{display:block;width:100%;max-height:140px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.cs-sheet-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px 20px;flex-wrap:wrap;padding:16px 18px;border-radius:14px;border:1px solid rgba(224,168,60,.35);border-left:4px solid var(--acc);background:radial-gradient(120% 140% at 0% 0%,rgba(224,168,60,.14),transparent 60%),var(--bg3)}
.cs-sheet-title{min-width:0}
.cs-sheet-title h2{margin:0;font-size:24px;line-height:1.2;font-weight:800;color:var(--tx);overflow-wrap:anywhere}
.cs-sheet-prod{margin-top:4px;font-size:14px;color:var(--tx2)}
.cs-sheet-when{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right;margin-left:auto}
.cs-sheet-day{display:inline-flex;align-items:center;padding:4px 12px;border-radius:999px;background:var(--acc);color:var(--on-acc);font-size:13px;font-weight:800;letter-spacing:.02em;white-space:nowrap;box-shadow:0 6px 18px rgba(224,168,60,.22)}
.cs-sheet-date{font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--tx2)}
.cs-print .bdstat{margin:12px 0 0;border-radius:12px;gap:8px 22px;align-items:baseline;font-size:13px}
.cs-facts{display:grid;gap:6px;margin-top:10px}
.cs-facts:empty{display:none}
.cs-fact{display:flex;gap:10px;align-items:flex-start;padding:8px 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg3);font-size:13px;line-height:1.5;color:var(--tx2)}
.cs-fact b{color:var(--tx)}
.cs-fact-ic{flex:none;width:22px;height:22px;margin-top:-1px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;background:rgba(224,168,60,.14);color:var(--acc-text)}
.cs-fact.alert{border-color:rgba(217,105,79,.45);box-shadow:inset 3px 0 0 var(--bad)}
.cs-fact.alert .cs-fact-ic{background:var(--bad);color:var(--on-bad)}
.cs-print tr.cs-loc-band > td{font-size:12px;line-height:1.5;color:var(--tx2);background:var(--bg3);box-shadow:inset 3px 0 0 rgba(224,168,60,.55)}
.cs-print tr.cs-break > td{padding:7px 9px;text-align:center;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--acc-text);background:rgba(224,168,60,.08)}
.cs-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.cs-tiles:empty{display:none}
.cs-tile{min-width:0;padding:10px 12px;border-radius:10px;border:1px solid var(--line);border-left:3px solid var(--acc);background:var(--bg3);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.cs-tile.alert{border-left-color:var(--bad)}
.cs-tile-k{margin-bottom:3px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.cs-tile-name{color:var(--tx);font-weight:600}
.cs-tile-sub{color:var(--tx2);font-size:12px}
.cs-quote{margin:12px 0 0;padding:10px 14px;border-left:3px solid var(--acc);border-radius:0 10px 10px 0;background:rgba(224,168,60,.07);font-size:14px;font-style:italic;color:var(--tx)}
.cs-quote-by{font-style:normal;color:var(--tx2)}
.cs-map-img{border-radius:10px}
/* No map yet (nothing looked up, or the maps still being found): a dashed gold box with a pin, not a bare line. */
.cs-maps-empty{display:flex;gap:12px;align-items:center;padding:12px 16px;border:1px dashed rgba(224,168,60,.45);border-radius:12px;background:rgba(224,168,60,.05);font-size:14px;line-height:1.5;color:var(--tx2)}
.cs-maps-empty .cs-fact-ic{width:32px;height:32px;margin:0;border-radius:50%}
.cs-maps-empty.pending .cs-fact-ic{animation:cs-map-wait 1.4s ease-in-out infinite}
@keyframes cs-map-wait{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.cs-maps-empty.pending .cs-fact-ic{animation:none}}

/* Phone number with its country code (components/PhoneField.tsx). */
.phonefield{display:flex;flex-direction:column;gap:4px;min-width:0}
.phonefield-row{display:flex;gap:8px;min-width:0}
.phonefield-row select{flex:0 0 auto;width:170px;max-width:45%}
.phonefield-row input{flex:1;min-width:0}
.phonefield-err{font-size:12px;color:var(--bad)}
/* A required field left empty on submit (/beta-access request form): outlined red until it's filled in. */
.field.bad input,.field.bad select,.field.bad textarea{border-color:var(--bad);box-shadow:0 0 0 1px var(--bad)}

/* Project Team & invites (dashboard/projects/[id]/team): contacts on the left, team and invites on the right,
   gold headings and a thin gold edge on each card — the brand, without shouting. */
.tmp{flex:1;width:100%;max-width:1320px;margin:0 auto;padding:24px;box-sizing:border-box}
.tmp-top{margin:0 0 18px}
.tmp-top h1{margin:0 0 4px;font:700 26px/1.15 var(--font-outfit,'Outfit'),var(--sans);letter-spacing:.01em;color:var(--acc-text)}
.tmp-top p{margin:0;font-size:13px;color:var(--tx3)}
.tmp-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;align-items:start}
@media (max-width:1000px){.tmp-grid{grid-template-columns:minmax(0,1fr)}}
.tmp-col{display:flex;flex-direction:column;gap:20px;min-width:0}
.tmp-card{min-width:0;overflow:hidden;background:var(--bg2);border:1px solid var(--line);border-radius:var(--radius);box-shadow:inset 0 2px 0 var(--acc)}
.tmp-card-head{padding:14px 16px 12px;background:var(--bg3);border-bottom:1px solid var(--line)}
.tmp-card-head h2{display:flex;align-items:center;gap:9px;margin:0;font:600 18px/1.2 var(--font-outfit,'Outfit'),var(--sans);letter-spacing:.02em;color:var(--acc-text)}
.tmp-card-head p{margin:4px 0 0;font-size:13px;color:var(--tx3)}
.tmp-count{font:600 12px/1 var(--mono);color:var(--tx2);background:var(--bg);border:1px solid var(--line);border-radius:99px;padding:3px 8px}
.tmp-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--line)}
.tmp-row:last-of-type{border-bottom:0}
.tmp-id{min-width:40px;font:700 13px var(--mono);color:var(--acc-text)}
.tmp-av{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--bg);border:1px solid var(--acc);font:600 13px var(--font-outfit,'Outfit'),var(--sans);color:var(--acc-text)}
.tmp-who{flex:1 1 180px;min-width:0;color:inherit;text-decoration:none}
.tmp-name{font-size:14px;font-weight:600;color:var(--tx);overflow-wrap:anywhere}
a.tmp-who:hover .tmp-name{color:var(--acc-text)}
.tmp-meta{margin-top:2px;font-size:12px;color:var(--tx3);overflow-wrap:anywhere}
.tmp-empty{padding:22px 16px;font-size:13px;color:var(--tx3)}
.tmp-add{padding:14px 16px 16px;background:var(--bg);border-top:1px solid var(--line)}
.tmp-add .cadd{padding:0;border-top:0;background:transparent}
.tmp-add-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.tmp-add-head h3{margin:0;font:600 13px var(--font-outfit,'Outfit'),var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--acc-text)}
.tmp-tabs{display:inline-flex;overflow:hidden;border:1px solid var(--line);border-radius:8px}
.tmp-tabs button{min-height:32px;padding:6px 12px;background:transparent;border:0;font-size:13px;color:var(--tx2);cursor:pointer}
.tmp-tabs button+button{border-left:1px solid var(--line)}
.tmp-tabs button.on{background:var(--acc);color:#20160a;font-weight:600}
.tmp-attach{display:flex;flex-wrap:wrap;gap:8px}
.tmp-revoke{min-height:28px;padding:4px 9px;background:transparent;border:1px solid var(--bad);border-radius:6px;font-size:12px;color:var(--bad);cursor:pointer}
.tmp-invite-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.tmp-invite-grid .tmp-span2{grid-column:1 / -1}
.tmp-invite-foot{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:10px}
.tmp-hint{margin:0;font-size:12px;color:var(--tx3)}
/* PostPro's post-only seats (lib/postpro/post-seats.ts): the count beside "Invite someone", and the invite form's "all used" box. PostPro orange. */
.tmp-postseats{--pps:#f58727;display:inline-flex;align-items:center;min-height:26px;padding:3px 11px;border-radius:99px;font-size:12px;font-weight:700;color:var(--pps);border:1px solid var(--pps);background:color-mix(in srgb,var(--pps) 14%,transparent)}
.tmp-postseats.full{background:var(--pps);color:#2a1300}
.tmp-postseat-box{--pps:#f58727;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 14px;margin-top:12px;padding:12px 14px;border:1px solid var(--pps);border-left-width:4px;border-radius:8px;background:color-mix(in srgb,var(--pps) 10%,var(--bg2))}
.tmp-postseat-box p{flex:1 1 240px;margin:0;font-size:13px;line-height:1.45;color:var(--tx)}
:root[data-theme="light"] .tmp-postseats,:root[data-theme="light"] .tmp-postseat-box{--pps:#a54d0b}
:root[data-theme="light"] .tmp-postseats.full{color:#fff}
@media (max-width:520px){.tmp{padding:16px}.tmp-invite-grid{grid-template-columns:minmax(0,1fr)}}

/* Step 1 inside Admin's "Delete account" popup: the required export (admin/_components/ExportFirstStep.tsx). */
.exportfirst{border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px;background:var(--bg2)}
.exportfirst-title{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx2);margin-bottom:8px}
.exportfirst-ok{font-size:13px;font-weight:600;color:var(--good-text)}

/* Team → Company email, simplified (app/dashboard/team/CompanyEmailCard.tsx):
 * folded to one optional line until asked for, then two big plain choices. */
.cemail-fold{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:760px;margin-bottom:20px}
.cemail-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.cemail-choice{display:flex;flex-direction:column;gap:6px;text-align:left;padding:16px 18px;border:2px solid var(--line2);border-radius:var(--radius);
  background:var(--bg3);color:var(--tx);cursor:pointer;font:inherit;transition:border-color .12s ease,background .12s ease}
.cemail-choice b{font-size:15px;color:var(--tx)}
.cemail-choice span{font-size:13px;line-height:1.45;color:var(--tx2)}
.cemail-choice:hover{border-color:var(--acc-stroke)}
.cemail-choice.on{border-color:var(--acc);background:rgba(224,168,60,.08)}
.cemail-panel{display:flex;flex-direction:column;gap:10px;margin-top:12px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--bg)}
.cemail-panel > .btn{align-self:flex-start}
.cemail-steps{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--tx)}
/* BackToDashboardButton: the big way back in the org pages' title rows. */
.btn.backbar-btn{display:inline-flex;align-items:center;gap:8px;padding:7px 15px;font-size:14px;font-weight:700;background:var(--acc);border-color:var(--acc);color:var(--on-acc,#fff);border-radius:8px;box-shadow:0 2px 8px color-mix(in srgb,var(--acc) 30%,transparent)}
.btn.backbar-btn:hover{filter:brightness(1.08)}
.btn.backbar-btn span{font-size:15px}
.titlerow{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.titlerow .backbar-btn,.cdir-title .backbar-btn{margin-left:auto}
/* Org pages' header (OrgPageHeader): Dashboard / Start Page / Switch Projects keep their one-line size, and the links
   beside them wrap instead — they used to squeeze each button onto two lines at every window width. */
.orgheader .navreturn{flex:none}
.orgheader .navreturn .btn{white-space:nowrap}
/* Org pages' header in a narrower window: the logo row, then the links on their own row. */
@media (max-width:1000px){
  header.orgheader{flex-wrap:wrap;row-gap:10px}
  header.orgheader>nav{flex:1 1 100%;justify-content:flex-start!important}
}

/* An email box after a successful send (EmailPdfDialog.tsx): a plain "Sent" in place of the form. */
.emailsent{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:36px 24px}
.emailsent-mark{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;
  background:var(--good);color:#fff;font:700 26px/1 var(--sans)}
.emailsent h4{margin:4px 0 0;font-size:20px}

/* An announcement strip's close (components/AnnouncementBanner.tsx): a plain ×, in the strip's own colour. */
.announceclose{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;
  font:400 20px/1 var(--sans);color:inherit;opacity:.75;cursor:pointer}
.announceclose:hover{opacity:1;background:rgba(255,255,255,.08)}
/* Studio Slate Pro for Mac: Sync with Cloud in the header, and the "they don't match" popup (components/desktop). */
.ssp-cloud{display:inline-flex;align-items:center;gap:10px}
.ssp-cloud-note{font-size:12px;color:var(--tx3);white-space:nowrap}
.ssp-cloud-note.bad{color:var(--bad);cursor:help}
.ssp-cloud .btn{white-space:nowrap}
.modal.ssp-conflicts{max-width:760px;width:100%;border-top:3px solid var(--acc)}
.modal.ssp-conflicts>header .sub{margin:4px 0 0;font-size:14px}
.ssp-conflict-list{max-height:min(62vh,640px);overflow:auto;display:flex;flex-direction:column;gap:14px}
.ssp-conflict{border:1px solid var(--line);border-radius:10px;padding:14px 16px;background:var(--bg)}
.ssp-conflict h4{margin:0 0 10px;font-size:16px}
.ssp-conflict h4 .ssp-conflict-part{color:var(--tx3);font-weight:600}
.ssp-conflict-sides{display:flex;gap:14px;flex-wrap:wrap}
.ssp-conflict-side{flex:1 1 240px;min-width:0}
.ssp-conflict-side .ssp-conflict-label{margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.ssp-conflict-side ul{margin:0;padding-left:18px;font-size:14px;line-height:1.5}
.ssp-conflict-choices{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ssp-choice{padding:7px 14px;border-radius:8px;border:1.5px solid color-mix(in srgb,var(--acc) 60%,transparent);background:none;color:var(--tx);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.ssp-choice:hover:not(:disabled){background:color-mix(in srgb,var(--acc) 12%,transparent)}
.ssp-choice.on{background:var(--acc);border-color:var(--acc);color:var(--on-acc)}
.ssp-choice.del{border-color:color-mix(in srgb,var(--bad) 60%,transparent)}
.ssp-choice.del:hover:not(:disabled){background:color-mix(in srgb,var(--bad) 12%,transparent)}
.ssp-choice.del.on{background:var(--bad);border-color:var(--bad);color:#fff}
.ssp-conflict-count{font-size:13px;color:var(--tx3)}
.ssp-sync-notes{margin:0;padding-left:18px;font-size:14px;line-height:1.5;color:var(--tx2)}

/* Edit Script's line-type buttons, centred in the Full Script bar (ScriptPanel.tsx): the title and the controls on the
   right share the rest of the row equally, so the buttons sit in the middle. */
/* While editing, the Full Script bar is a grid: title | line-type buttons | controls | ×, the buttons in the true centre
   (the two sides share the rest equally). When the card is too narrow for one row (container queries below), the
   title and controls stay on top where they always are, and the buttons get a centred row of their own. */
.sp-barwrap{container:spbar / inline-size;flex:1 1 auto;min-width:0}
.sp-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.sp-bar:has(.sp-linetypes){display:grid;grid-template-columns:1fr auto 1fr auto auto;column-gap:10px;row-gap:6px;align-items:center}
.sp-bar:has(.sp-linetypes) .scripttitle{min-width:max-content;white-space:nowrap}
.sp-linetypes{display:flex;align-items:flex-start;gap:6px;flex-wrap:wrap;justify-content:center;max-width:100%}
/* Each button over its key; the shared modifier keys ("⌥ + ⌘ +") sit on the keys' row, left of them. */
.sp-lt{display:flex;flex-direction:column;align-items:center;gap:3px}
.sp-lt-key{font-size:12px;line-height:1.2;font-weight:600;letter-spacing:normal;text-transform:none;color:var(--tx3);white-space:nowrap}
.sp-lt-mod{padding-top:31px;margin-right:2px}
/* The divider between the line types and Caps: as tall as the buttons, with the same breathing room either side. */
.sp-lt-divider{align-self:flex-start;width:2px;height:28px;border-radius:1px;background:var(--acc);margin:0 8px}
.sp-editctl{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:max-content}
@container spbar (max-width:1560px){
  .sp-bar:has(.sp-linetypes){grid-template-columns:1fr auto auto auto}
  .sp-bar:has(.sp-linetypes) .scripttitle{grid-row:1;grid-column:1}
  .sp-bar:has(.sp-linetypes) .sp-editctl{grid-row:1;grid-column:2}
  .sp-bar:has(.sp-linetypes) .sp-focusbtn{grid-row:1;grid-column:3}
  .sp-bar:has(.sp-linetypes) .scriptclose{grid-row:1;grid-column:4}
  .sp-bar:has(.sp-linetypes) .sp-linetypes{grid-row:2;grid-column:1/-1;justify-self:center;margin-top:4px}
}
@container spbar (max-width:900px){
  .sp-bar:has(.sp-linetypes){grid-template-columns:1fr auto auto}
  .sp-bar:has(.sp-linetypes) .sp-focusbtn{grid-row:1;grid-column:2}
  .sp-bar:has(.sp-linetypes) .scriptclose{grid-row:1;grid-column:3}
  .sp-bar:has(.sp-linetypes) .sp-editctl{grid-row:2;grid-column:1/-1;justify-self:end;min-width:0;flex-wrap:wrap}
  .sp-bar:has(.sp-linetypes) .sp-linetypes{grid-row:3}
}
/* Focus Mode (ScriptPanel.tsx): only the script card, filling the screen; the script scrolls inside it. */
.sp-focusbtn svg{flex:0 0 auto}
.scriptreader.sp-focus{position:fixed;inset:0;z-index:900;margin:0;border-radius:0;display:flex;flex-direction:column;background:var(--bg2);overflow:hidden}
.scriptreader.sp-focus>.scriptscroll{flex:1 1 auto;max-height:none;min-height:0}
.scriptreader.sp-focus:fullscreen{width:100vw;height:100vh}
/* Edit Script's instructions, with room above the buttons' key row. */
.sp-edithint{margin-top:14px;padding:0 14px}

/* src/styles/ssp/globals.css */

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--tx);
  background: var(--bg);
  font: 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
}

html {
  color-scheme: dark;
}

/* Instant loading placeholder (components/PageLoading.tsx, every loading.tsx). */
.page-loading{display:flex;flex-direction:column;gap:14px;padding:28px 24px;max-width:1100px}
.page-loading-bar{height:14px;border-radius:var(--radius);background:linear-gradient(90deg,var(--bg3) 0%,var(--bg4) 50%,var(--bg3) 100%);background-size:200% 100%;animation:page-loading-shimmer 1.2s ease-in-out infinite}
.page-loading-bar:first-child{height:22px;margin-bottom:6px}
@keyframes page-loading-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media (prefers-reduced-motion:reduce){.page-loading-bar{animation:none}}

/* Help page How-to guides (components/HelpGuides.tsx). Each module gets its
   own accent, from the shared tokens so light/dark both follow. */
.howto{margin:8px 0 28px}
.howto-breakdown{--howto-acc:var(--info);--howto-on:var(--on-info)}
.howto-budget{--howto-acc:var(--good);--howto-on:var(--on-good)}
.howto-schedule{--howto-acc:var(--acc);--howto-on:var(--on-acc)}
/* PreVis Pro's guide in PreVis Pro's own blue-violet (the hub band's colors); Accounting's in the brand green. */
.howto-previs{--howto-acc:#8b9cff;--howto-on:#0b0d1f}
:root[data-theme="light"] .howto-previs{--howto-acc:#4b5bd6;--howto-on:#fff}
@media (prefers-color-scheme:light){:root[data-theme="system"] .howto-previs{--howto-acc:#4b5bd6;--howto-on:#fff}}
.howto-postpro{--howto-acc:#f58727;--howto-on:#2a1300}
:root[data-theme="light"] .howto-postpro{--howto-acc:#a54d0b;--howto-on:#fff}
@media (prefers-color-scheme:light){:root[data-theme="system"] .howto-postpro{--howto-acc:#a54d0b;--howto-on:#fff}}
.howto-accounting{--howto-acc:var(--good);--howto-on:var(--on-good)}
.howto-start{--howto-acc:var(--acc);--howto-on:var(--on-acc)}
/* A guide's "go do it" button after its last card (Accounting's Connect now), filled in the guide's own color, beside the software panel. */
.howto-cta-cell{display:flex;align-items:center;justify-content:flex-start;align-self:stretch;min-height:60px}
.howto-soft .howto-cta-cell{min-height:0;justify-content:flex-end;margin-top:16px}
/* Accounting's software panel: a card-sized grid of small icons, each opening that system's own steps (HelpGuides + SoftwareMark). */
.howto-soft-head{margin:0 0 12px;font-size:16px;color:var(--tx)}
.howto-soft-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
/* The panel is two cards wide, beside the last card and the same height as it, each group's six icons on one row; narrow screens go back to three a row. */
.howto-card.howto-soft{grid-column:span 2;align-self:stretch;display:flex;flex-direction:column}
.howto-card.howto-soft .howto-cta-cell{margin-top:auto;padding-top:16px}
.howto-card.howto-soft .howto-cta{padding:6.3px 14.4px;font-size:12.6px}
.howto-grid > .howto-card:has(+ .howto-soft){align-self:stretch}
@media (max-width:720px){.howto-soft-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.howto-soft-group + .howto-soft-group{margin-top:14px}
.howto-soft-sub{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--howto-acc)}
.howto-soft-phase + .howto-soft-phase{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.howto-soft-phase h4{display:flex;align-items:center;gap:9px;margin:0 0 10px;font-size:15px;color:var(--tx)}
.howto-soft-phase h4::before{content:"";flex:none;width:3px;height:15px;border-radius:2px;background:var(--howto-acc)}
.howto-soft-btn{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 3px 8px;border-radius:10px;border:1px solid var(--line);background:var(--bg2);color:var(--tx);font:inherit;cursor:pointer;min-width:0;transition:border-color .15s,background .15s,transform .15s}
.howto-soft-btn:hover{border-color:var(--howto-acc);background:var(--bg3);transform:translateY(-1px)}
.howto-soft-btn:focus-visible{outline:2px solid var(--howto-acc);outline-offset:2px}
.howto-soft-name{font-size:12px;line-height:1.25;color:var(--tx2);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.softmark{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:9px;font:800 12px/1 var(--sans);letter-spacing:.01em;flex:none;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.softmark.file{background:transparent;border:1.5px dashed var(--good);color:var(--good);box-shadow:none}
.softmark.sm{width:28px;height:28px;border-radius:7px;margin-right:10px}
.howto-soft-modal header{display:flex;align-items:center}
/* An outside system's steps popup (Help → Accounting, and each Integrations tile's "?"): a stripe and a soft wash of the guide's own color across the top. */
.howto-soft-modal{border-top:3px solid var(--howto-acc)}
.howto-soft-modal.howto-accounting header{border-radius:9px 9px 0 0;background:radial-gradient(120% 180% at 0% 0%,rgba(78,168,122,.14),transparent 60%)}
/* The "?" in an Integrations tile's corner: opens that system's how-to (components/HelpGuides.tsx SoftwareHowTo). */
.help-q{margin-left:auto;flex:none;width:30px;height:30px;border-radius:50%;border:1.5px solid var(--acc-stroke);background:transparent;color:var(--acc-text);font-size:16px;font-weight:800;line-height:1;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s,color .15s}
.help-q:hover,.help-q:focus-visible{background:var(--acc);color:var(--on-acc)}
/* Integrations (dashboard/integrations/IntegrationsBoard.tsx): each group's title with a gold tick, and a card per outside
   system. A connected one carries the gold left accent and glow of the house's notes (.export-mail-from), an unhealthy one the same in red. */
.integ-group-h{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:16px;color:var(--tx)}
.integ-group-h::before{content:"";flex:none;width:4px;height:16px;border-radius:2px;background:var(--acc)}
.integ-tile{background:var(--bg2);border:1px solid var(--line);border-radius:12px;transition:border-color .15s,box-shadow .15s}
.integ-tile:hover{border-color:var(--line2);box-shadow:0 6px 18px rgba(0,0,0,.18)}
.integ-tile.on{border-color:rgba(224,168,60,.35);box-shadow:inset 4px 0 0 var(--acc);background:radial-gradient(120% 140% at 0% 0%,rgba(224,168,60,.1),transparent 60%),var(--bg2)}
.integ-tile.on:hover{box-shadow:inset 4px 0 0 var(--acc),0 6px 18px rgba(0,0,0,.18)}
.integ-tile.bad{border-color:var(--bad);box-shadow:inset 4px 0 0 var(--bad);background:radial-gradient(120% 140% at 0% 0%,rgba(217,105,79,.12),transparent 60%),var(--bg2)}
.integ-method{display:inline-flex;align-items:center;padding:1px 9px;border-radius:999px;border:1px solid var(--line2);background:var(--bg3);color:var(--tx2);font-size:12px;font-weight:600;line-height:1.6;white-space:nowrap}
.integ-tile.on .integ-method{border-color:rgba(224,168,60,.35);background:rgba(224,168,60,.1);color:var(--acc-text)}
.integ-dot{flex:none;width:8px;height:8px;border-radius:50%}
.integ-dot.good{box-shadow:0 0 0 3px rgba(78,168,122,.22)}
.integ-dot.bad{box-shadow:0 0 0 3px rgba(217,105,79,.22)}
.integ-waiting{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:6px 10px;border-radius:10px;border:1px solid rgba(224,168,60,.35);background:rgba(224,168,60,.08);font-size:13px;color:var(--acc-text)}
.integ-waiting a{color:var(--acc-text);font-weight:700}
/* Above the tiles: how a sign-in round trip ended (gold note when cancelled, green when connected, red when it went wrong), and a connection that needs attention. */
.integ-result{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px;padding:10px 14px;border-radius:12px;border:1px solid rgba(224,168,60,.35);border-left:4px solid var(--acc);background:radial-gradient(120% 160% at 0% 0%,rgba(224,168,60,.1),transparent 60%),var(--bg3);color:var(--tx);font-size:14px;line-height:1.45}
.integ-result.good{border-color:rgba(78,168,122,.45);border-left-color:var(--good);background:radial-gradient(120% 160% at 0% 0%,rgba(78,168,122,.14),transparent 60%),var(--bg3)}
.integ-result.bad{border-color:rgba(217,105,79,.5);border-left-color:var(--bad);background:radial-gradient(120% 160% at 0% 0%,rgba(217,105,79,.14),transparent 60%),var(--bg3)}
.integ-result-icon{flex:none;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;font-style:normal;background:var(--acc);color:var(--on-acc)}
.integ-result.good .integ-result-icon{background:var(--good);color:var(--on-good)}
.integ-result.bad .integ-result-icon{background:var(--bad);color:var(--on-bad)}
.integ-steps{list-style:none;padding:0;margin:6px 0 16px}
.integ-steps li{display:flex;gap:10px;margin-bottom:8px;font-size:14px;color:var(--tx2);line-height:1.45}
.integ-steps li > span:first-child{flex:none;width:22px;height:22px;margin-top:1px;border-radius:50%;background:var(--acc);color:var(--on-acc);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
@media (prefers-reduced-motion:reduce){.integ-tile{transition:none}}
/* Review import's notes above the totals (dashboard/integrations/review/[batchId]/page.tsx): a Bring in that reached the outside system's cap, corrections listed first. */
.integ-note{display:flex;gap:10px;align-items:flex-start;max-width:760px;margin:0 0 18px;padding:10px 14px;border-radius:12px;border:1px solid rgba(224,168,60,.35);border-left:4px solid var(--acc);background:radial-gradient(120% 160% at 0% 0%,rgba(224,168,60,.12),transparent 60%),var(--bg3);color:var(--tx);font-size:14px;line-height:1.45}
.integ-note-icon{flex:none;color:var(--acc-text);font-size:16px;line-height:1.3}
/* Review import's totals, lists and rows (ReviewImport.tsx): gold-tinted stat cards like a vendor's totals (.vnd-stat), the one still
   needing accounts with the gold left accent; the lists and the rows' table on rounded cards, the table's heading row tinted and sticky;
   a discarded import, whose rows are gone, says so inside the table with the house's empty-state icon instead of an empty grid. */
.integ-stats{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 18px}
.integ-stat{flex:1 1 160px;min-width:150px;padding:12px 16px;border:1px solid rgba(224,168,60,.22);border-radius:12px;background:radial-gradient(120% 140% at 0% 0%,rgba(224,168,60,.09),transparent 60%),var(--bg2)}
.integ-stat.warn{border-color:rgba(224,168,60,.5);box-shadow:inset 4px 0 0 var(--acc)}
.integ-stat-k{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.integ-stat-v{margin-top:4px;font-size:24px;font-weight:700;line-height:1.25;font-variant-numeric:tabular-nums;color:var(--tx)}
.integ-stat.good .integ-stat-v{color:var(--good-text)}
.integ-stat.warn .integ-stat-v{color:var(--acc-text)}
.integ-stat-sub{margin-top:2px;font-size:13px;color:var(--tx3)}
.integ-box{background:var(--bg2);border:1px solid var(--line);border-radius:12px}
.integ-box-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid var(--line)}
.integ-box-row:last-child{border-bottom:0}
.integ-table{width:100%;border-collapse:collapse;min-width:640px}
.integ-table th{position:sticky;top:0;z-index:1;text-align:left;padding:9px 10px;background:var(--bg3);border-bottom:1px solid rgba(224,168,60,.3);color:var(--tx3);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.integ-table td{padding:8px 10px;border-bottom:1px solid var(--line);font-size:13px;color:var(--tx2);vertical-align:top}
.integ-table tbody tr:last-child td{border-bottom:0}
.integ-table tbody tr:hover td{background:rgba(224,168,60,.05)}
.integ-table th.integ-amt{text-align:right}
.integ-empty{padding:30px 20px 34px;text-align:center}
.integ-empty p{margin:0 auto;max-width:420px;font-size:14px;line-height:1.5;color:var(--tx2)}
.integ-empty-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0 auto 12px;border-radius:50%;border:1px solid rgba(224,168,60,.35);background:rgba(224,168,60,.12);color:var(--acc-text)}
/* My Account → Email (components/AccountEmailPanel.tsx): the provider list, like Mac Mail's "Add Account". */
.mailbox-hero{display:flex;gap:16px;align-items:flex-start;padding:18px 18px 16px;margin:0 0 20px;border-radius:14px;border:1px solid rgba(224,168,60,.35);border-left:4px solid var(--acc);background:radial-gradient(120% 140% at 0% 0%,rgba(224,168,60,.15),transparent 60%),var(--bg3)}
.mailbox-hero-icon{flex:none;width:44px;height:44px;border-radius:12px;background:var(--acc);color:var(--on-acc);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(224,168,60,.25)}
.mailbox-hero-text{margin:6px 0 0;font-size:15px;line-height:1.5;color:var(--tx)}
/* Export dialogs' Email through the person's own mailbox (components/ExportEmail.tsx): who it's from and what's attached. */
.export-mail-from{display:flex;gap:12px;align-items:center;padding:12px 14px;margin:0 0 14px;border-radius:12px;border:1px solid rgba(224,168,60,.35);border-left:4px solid var(--acc);background:radial-gradient(120% 140% at 0% 0%,rgba(224,168,60,.12),transparent 60%),var(--bg3);font-size:14px;line-height:1.45;color:var(--tx)}
.export-mail-icon{flex:none;width:34px;height:34px;border-radius:10px;background:var(--acc);color:var(--on-acc);display:flex;align-items:center;justify-content:center;font-size:17px}
.export-mail-files{margin-top:2px;color:var(--tx2);font-size:13px;overflow-wrap:anywhere}
.pv-modal .export-mail-from{border-color:color-mix(in srgb,var(--pv-acc) 40%,transparent);border-left-color:var(--pv-acc);background:radial-gradient(120% 140% at 0% 0%,color-mix(in srgb,var(--pv-acc) 14%,transparent),transparent 60%),var(--bg3)}
.pv-modal .export-mail-icon{background:var(--pv-acc);color:var(--pv-on)}
/* PDF import previews (components/ImportBudgetButton.tsx, ImportScheduleButton.tsx): what was read from the PDF on the
   left in gold, what it becomes in Studio Slate Pro on the right in green — a branded summary card like the email
   notes above, then tables with those two headings, each row a PDF account / line / day beside where it lands. */
.pdfimp-hero{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px 14px;align-items:center;padding:14px 16px;margin:0 0 14px;border-radius:14px;border:1px solid rgba(224,168,60,.35);border-left:4px solid var(--acc);background:radial-gradient(120% 140% at 0% 0%,rgba(224,168,60,.16),transparent 60%),radial-gradient(120% 140% at 100% 100%,rgba(78,168,122,.14),transparent 60%),var(--bg3)}
.pdfimp-side{min-width:0}
.pdfimp-label{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.pdfimp-label.pdf{color:var(--acc-text)}
.pdfimp-label.ssp{color:var(--good-text)}
.pdfimp-big{font-size:20px;font-weight:700;line-height:1.25;font-variant-numeric:tabular-nums;color:var(--tx);margin-top:2px;overflow-wrap:anywhere}
.pdfimp-small{font-size:13px;color:var(--tx2);margin-top:2px}
.pdfimp-arrow{width:34px;height:34px;border-radius:50%;background:var(--acc);color:var(--on-acc);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;box-shadow:0 6px 18px rgba(224,168,60,.25)}
.pdfimp-badge{grid-column:1/-1;justify-self:start;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 10px;border-radius:20px}
.pdfimp-badge.ok,.pdfimp-pill.ok,.pdfimp-pill.labor{background:#1d3a2c;color:#8fd9a8}
.pdfimp-badge.warn,.pdfimp-pill.warn{background:#3a2622;color:#e8927c}
.pdfimp-table{border:1px solid var(--line2);border-radius:12px;overflow:hidden;margin:0 0 14px;background:var(--bg3)}
.pdfimp-head,.pdfimp-row{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:10px;align-items:start;padding:9px 12px}
.pdfimp-head{align-items:center;background:var(--bg4);border-bottom:2px solid var(--acc-stroke)}
.pdfimp-row{border-top:1px solid var(--line)}
.pdfimp-head + .pdfimp-row{border-top:0}
.pdfimp-row.leftout{background:var(--bg2)}
.pdfimp-row.leftout .pdfimp-name{color:var(--tx2)}
.pdfimp-name{font-size:14px;line-height:1.4;color:var(--tx);overflow-wrap:anywhere}
.pdfimp-meta{font-size:13px;line-height:1.4;color:var(--tx2);margin-top:4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pdfimp-to{color:var(--acc-text);font-size:16px;font-weight:700;text-align:center;line-height:1.4}
.pdfimp-code{display:inline-block;font-family:var(--mono);font-size:12px;font-weight:700;line-height:1.5;color:var(--on-acc);background:var(--acc);border-radius:6px;padding:0 6px;margin-right:7px}
.pdfimp-code.ssp{background:var(--good);color:var(--on-good)}
.pdfimp-pill{display:inline-block;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:2px 8px;border-radius:20px;white-space:nowrap}
.pdfimp-pill.muted{background:var(--bg4);color:var(--tx2)}
.pdfimp-pill.set,.pdfimp-pill.purchase{background:#3a3320;color:var(--acc2)}
.pdfimp-pill.set{white-space:normal;border-radius:10px;line-height:1.35;padding:3px 9px}
.pdfimp-pill.rental{background:#1c2c3d;color:#9cc9ef}
.pdfimp-row select{width:100%;max-width:100%;background:var(--bg);color:var(--tx);border:1px solid var(--line2);border-radius:8px;padding:6px 10px;min-height:36px;font-size:14px}
.pdfimp-row select:focus-visible{outline:2px solid var(--acc-stroke);outline-offset:1px}
.pdfimp-person{display:flex;align-items:center;gap:7px;margin-top:5px;font-size:14px;color:var(--tx);overflow-wrap:anywhere}
.pdfimp-person-label{flex:none;font-size:12px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;padding:1px 7px;border-radius:6px;background:rgba(91,155,213,.18);color:var(--info-text)}
.pdfimp-scene{display:inline-block;font-family:var(--mono);font-size:12px;line-height:1.5;padding:0 6px;border-radius:6px;margin:3px 4px 0 0;background:rgba(78,168,122,.2);color:var(--good-text)}
.pdfimp-scene.missing{background:transparent;border:1px dashed var(--bad);color:var(--bad);text-decoration:line-through}
@media (max-width:560px){
  .pdfimp-hero{grid-template-columns:1fr}
  .pdfimp-arrow{transform:rotate(90deg)}
  .pdfimp-head,.pdfimp-row{grid-template-columns:1fr;gap:6px}
  .pdfimp-head span:empty,.pdfimp-to{display:none}
}
/* Export dialogs' "Where to" note under Email it: where the email goes out from (components/ExportEmail.tsx ExportDestination). */
.export-dest-hint{display:flex;align-items:center;gap:10px;margin:10px 0 0;padding:8px 12px;border-radius:10px;border:1px solid rgba(224,168,60,.35);background:rgba(224,168,60,.08);color:var(--tx);font-size:14px;line-height:1.45;overflow-wrap:anywhere}
.export-dest-icon{flex:none;width:24px;height:24px;border-radius:7px;background:var(--acc);color:var(--on-acc);display:flex;align-items:center;justify-content:center;font-size:13px}
.pv-modal .export-dest-hint{margin:0;border-color:color-mix(in srgb,var(--pv-acc) 40%,transparent);background:color-mix(in srgb,var(--pv-acc) 10%,transparent)}
.pv-modal .export-dest-icon{background:var(--pv-acc);color:var(--pv-on)}
/* Both notes are at least two lines tall — "Sends from your email" has one, "No email connected" two with its link —
   so the one that arrives after the mailbox lookup takes exactly the place its stand-in held (components/EmailNotes.tsx
   MailNotePending): nothing below it moves. Two lines of text, the gap between them, padding and border. */
.export-mail-from{min-height:calc(2.9em + 28px)}
.export-dest-hint{min-height:calc(2.9em + 18px)}
/* The stand-in's lines: the note's gold (PreVis purple inside PreVis Pro), shimmering like a page that's loading (.page-loading-bar). */
.mail-note-lines{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}
.mail-note-bar{display:block;height:12px;width:min(340px,80%);border-radius:6px;background:linear-gradient(90deg,rgba(224,168,60,.12) 0%,rgba(224,168,60,.3) 50%,rgba(224,168,60,.12) 100%);background-size:200% 100%;animation:page-loading-shimmer 1.2s ease-in-out infinite}
.mail-note-bar.short{width:min(220px,50%)}
.pv-modal .mail-note-bar{background-image:linear-gradient(90deg,color-mix(in srgb,var(--pv-acc) 12%,transparent) 0%,color-mix(in srgb,var(--pv-acc) 32%,transparent) 50%,color-mix(in srgb,var(--pv-acc) 12%,transparent) 100%)}
@media (prefers-reduced-motion:reduce){.mail-note-bar{animation:none}}
/* Inside PreVis Pro the email fields' focus ring is PreVis purple, never the app's gold */
.pv-modal .field input:focus,.pv-modal .field select:focus,.pv-modal .field textarea:focus{border-color:var(--pv-acc);box-shadow:0 0 0 2px color-mix(in srgb,var(--pv-acc) 18%,transparent)}
.pv-modal .hint.accenttext,.pv-cs .hint.accenttext{color:var(--pv-acc)}
.mailbox-hero-sub{margin:12px 0 0;font-size:13px;line-height:1.5;color:var(--tx2)}
/* No mailbox connected (components/EmailNotes.tsx MailAppNote): the note's "Connect your email" link, gold like the
   box's edge (PreVis purple inside PreVis Pro). */
.export-mail-connect{color:var(--acc-text);font-weight:600;text-decoration:none}
.export-mail-connect:hover,.export-mail-connect:focus-visible{text-decoration:underline}
.export-mail-files .export-mail-connect{font-size:14px}
.pv-modal .export-mail-connect{color:var(--pv-acc)}
/* Call Sheets' Email without a mailbox (components/CallSheetEmailDialog.tsx): each ticked person's email, opened in
   their own email app one click at a time; an opened row keeps a green edge. Scrolls (the app's green scrollbar) when long. */
.mailapp-drafts{list-style:none;margin:0;padding:0;max-height:min(52vh,460px);overflow-y:auto;border:1px solid var(--line2);border-radius:12px;background:var(--bg3)}
.mailapp-draft{display:flex;align-items:center;gap:12px;padding:10px 14px;border-top:1px solid var(--line);transition:box-shadow .15s}
.mailapp-draft:first-child{border-top:0}
.mailapp-draft.opened{box-shadow:inset 4px 0 0 var(--good)}
.mailapp-draft .btn{flex:none}
.mailapp-draft-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.mailapp-draft-who b{color:var(--tx);font-size:14px;overflow-wrap:anywhere}
.mailapp-draft-email{color:var(--tx2);font-size:13px;overflow-wrap:anywhere}
.mailapp-draft-status{font-size:13px;font-weight:600}
@media (max-width:520px){.mailapp-draft{flex-wrap:wrap}.mailapp-draft .btn{width:100%}}
.mailbox-chips{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.mailbox-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:rgba(224,168,60,.12);border:1px solid rgba(224,168,60,.35);color:var(--acc-text);font-size:13px;font-weight:600}
.mailbox-providers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mailbox-provider{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;border:1px solid var(--line2);background:var(--bg3);color:var(--tx);font-size:15px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}
.mailbox-provider:hover:not(:disabled),.mailbox-provider:focus-visible{border-color:var(--acc-stroke);transform:translateY(-1px);box-shadow:0 6px 16px rgba(224,168,60,.15)}
.mailbox-provider:disabled{opacity:.55;cursor:default}
/* A provider picked before an address was typed: its steps and an address box (AccountEmailPanel). */
.mailbox-picked{margin-top:6px;padding:16px 18px;border-radius:14px;border:1px solid var(--line2);background:var(--bg3)}
.mailbox-picked-head{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:700;color:var(--tx);margin-bottom:10px}
.mailbox-mark{flex:none;width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:800;line-height:1}
.mailbox-mark.icloud{background:linear-gradient(180deg,#5ac8fa,#2f7cf6);color:#fff}
.mailbox-mark.google{background:#fff;color:#4285f4;font-family:Arial,Helvetica,sans-serif}
.mailbox-mark.other{background:rgba(224,168,60,.16);color:var(--acc-text)}
.mailbox-mark.ms{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:6px;background:#fff}
.mailbox-mark.ms i{display:block;width:100%;height:100%}
.mailbox-steps{--howto-acc:var(--acc);margin:12px 0 0}
.mailbox-signin{margin:14px 0 4px}
.mailbox-signin .btn{font-size:15px;padding:10px 18px}
.linkbtn{background:none;border:0;padding:0;color:var(--acc-text);font:inherit;text-decoration:underline;cursor:pointer}
/* The Start Page's welcome popup (components/WelcomePopup.tsx): small logo on top, a few short lines, three steps. */
.welcome-bg{backdrop-filter:blur(3px)}
.welcome{position:relative;width:min(440px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow-y:auto;padding:30px 28px 22px;border-radius:20px;border:1px solid var(--line2);background:radial-gradient(120% 60% at 50% 0%,rgba(224,168,60,.16),transparent 60%),var(--bg2);box-shadow:0 24px 60px rgba(0,0,0,.45);text-align:center}
.welcome-x{position:absolute;top:12px;right:12px;width:32px;height:32px;border-radius:50%;border:1px solid var(--line2);background:transparent;color:var(--tx2);font-size:20px;line-height:1;cursor:pointer}
.welcome-x:hover{border-color:var(--acc-stroke);color:var(--acc-text)}
.welcome-logo{display:block;height:34px;width:auto;margin:0 auto 16px}
.welcome-title{margin:0;font-size:24px;line-height:1.25;color:var(--tx);font-weight:800}
.welcome-tag{margin:8px 0 18px;font-size:16px;color:var(--acc-text);font-weight:600}
.welcome-points{list-style:none;margin:0 auto 20px;padding:0;display:grid;gap:10px;text-align:left;max-width:330px}
.welcome-points li{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.4;color:var(--tx)}
.welcome-points li span{flex:none;width:34px;height:34px;border-radius:10px;background:var(--bg3);display:flex;align-items:center;justify-content:center;font-size:18px}
.welcome-start{margin:0 0 10px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--acc-text);font-weight:800}
.welcome-steps{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:8px}
.welcome-steps a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;border:1px solid var(--line2);background:var(--bg3);color:var(--tx);text-decoration:none;font-size:15px;font-weight:600;text-align:left;transition:border-color .15s,transform .15s}
.welcome-steps a:hover,.welcome-steps a:focus-visible{border-color:var(--acc-stroke);transform:translateY(-1px)}
.welcome-num{flex:none;width:26px;height:26px;border-radius:50%;background:var(--acc);color:var(--on-acc);font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center}
.welcome-step{flex:1}
.welcome-arrow{color:var(--acc-text);font-weight:800}
.welcome-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.welcome-never{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--tx2);cursor:pointer}
.welcome-never input{accent-color:var(--acc)}
/* Start Page (app/dashboard/page.tsx) in a narrow window: the project-type chips wrap instead of running off both edges,
   and a tile's Delete / Archive buttons stack rather than being cut off. Wide windows look exactly as before. */
.hubtypes{flex-wrap:wrap;justify-content:center;row-gap:6px;max-width:100%}
.hubtile .hubactions{flex-wrap:wrap}
/* Sent emails' selection bar stays in view while emails are ticked; -24px lets it settle flush with the top of <main>, over its 24px padding. */
.sent-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;min-height:54px;padding:10px 20px;border-bottom:1px solid var(--line);background:var(--bg3);position:sticky;top:-24px;z-index:2}
.sent-bar-all{display:flex;gap:10px;align-items:center;font-size:14px;color:var(--tx2);cursor:pointer}
.sent-bar-all input{width:16px;height:16px;margin:0;accent-color:var(--acc)}
.sent-bar-sep{width:1px;height:22px;background:var(--line2);margin:0 2px}
.sent-note{color:var(--good-text);font-size:13px;font-weight:600}
.sent-empty{padding:36px 20px 40px;color:var(--tx2);font-size:14px;text-align:center}
.sent-empty-icon{display:flex;align-items:center;justify-content:center;width:52px;height:52px;margin:0 auto 12px;border-radius:50%;border:1px solid rgba(224,168,60,.35);background:rgba(224,168,60,.12);color:var(--acc-text)}
/* Sent emails' list: a tick box, then one row of fixed, left-aligned columns. */
.sent-row,.sent-headrow{display:flex;align-items:flex-start;border-bottom:1px solid var(--line)}
.sent-row{transition:background .12s}
.sent-row:hover{background:color-mix(in srgb,var(--tx) 2.5%,transparent)}
.sent-row:has(.sent-pick:checked){background:rgba(224,168,60,.07)}
/* An email opened to its details carries the house's gold left edge, so its row and details read as one. */
.sent-row:has(.sent-item[open]){box-shadow:inset 3px 0 0 var(--acc)}
.sent-pick,.sent-headpad{flex:none;width:16px;height:16px;margin:24px 0 0 20px;cursor:pointer;accent-color:var(--acc)}
.sent-headpad{height:1px;margin-top:0}
.sent-item{flex:1;min-width:0}
.sent-sum,.sent-head{display:grid;grid-template-columns:150px 136px minmax(0,1fr) 160px 180px;column-gap:20px;align-items:center;justify-items:start;padding:14px 20px 14px 16px}
/* Everyone's emails add a Sender column: on a narrower window (iPad landscape) Project and Sender give up width before
   To and subject do, and every track is still fixed by the row's width alone, so the rows and the header stay aligned. */
.sent-sum.with-sender,.sent-head.with-sender{grid-template-columns:150px 136px minmax(130px,1fr) minmax(76px,150px) minmax(76px,150px) 180px}
.sent-sum{list-style:none;cursor:pointer}
.sent-sum::-webkit-details-marker{display:none}
.sent-head{flex:1;padding-top:11px;padding-bottom:11px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.sent-item[open]>.sent-sum{background:color-mix(in srgb,var(--tx) 2.5%,transparent)}
.sent-when{color:var(--tx3);font-size:13px;white-space:nowrap}
/* The Type and Status pills stay inside their columns: a long translation ends in an ellipsis, with the full text as its tooltip. */
.sent-type-cell,.sent-status{min-width:0;max-width:100%}
.sent-type{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;border:1px solid rgba(224,168,60,.35);background:rgba(224,168,60,.1);color:var(--acc-text);font-size:12px;font-weight:600;white-space:nowrap;max-width:100%;box-sizing:border-box;overflow:hidden}
.sent-type-label{min-width:0;overflow:hidden;text-overflow:ellipsis}
/* A PreVis email's type tag (and its "Showing" chip) in PreVis purple, never the app's gold — the same purple as the header's PreVis link.
   Its light-mode purple is set with the PreVis stroke buttons' own, further down. */
.sent-type.previs,.sent-chip.previs{--pvb:#8b9cff;border-color:color-mix(in srgb,var(--pvb) 45%,transparent);background:color-mix(in srgb,var(--pvb) 12%,transparent);color:var(--pvb)}
.sent-main{display:flex;flex-direction:column;gap:4px;min-width:0;width:100%}
.sent-to{color:var(--tx);font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sent-to-k{color:var(--tx3);font-weight:500}
.sent-subject{color:var(--tx2);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sent-project,.sent-sender{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.sent-project{color:var(--tx2)}
.sent-sender{color:var(--info-text)}
.sent-status span{display:inline-block;font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;white-space:nowrap;max-width:100%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.sent-detail{padding:2px 20px 20px 16px;font-size:13px;color:var(--tx2)}
@media (max-width:980px){
.sent-headrow{display:none}
/* Narrow: who and what first with its status, then one line of details. */
.sent-sum,.sent-sum.with-sender{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.sent-main{order:0;flex:1 1 calc(100% - 180px);width:auto}
.sent-status{order:1;margin-left:auto}
.sent-when{order:2}
.sent-type-cell{order:3}
.sent-project{order:4}
.sent-sender{order:5}
}
.sent-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}
.sent-filters input,.sent-filters select{height:40px;box-sizing:border-box;border-radius:8px;border:1px solid var(--line2);background:var(--bg);color:var(--tx);font-size:14px;padding:0 12px}
.sent-filters input:focus,.sent-filters select:focus{outline:none;border-color:var(--acc-stroke);box-shadow:0 0 0 2px rgba(224,168,60,.15)}
.sent-filters .btn{height:40px}
.sent-tabs{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.sent-filtered{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;border-radius:12px;border:1px solid rgba(224,168,60,.35);border-left:4px solid var(--acc);background:radial-gradient(120% 160% at 0% 0%,rgba(224,168,60,.12),transparent 60%),var(--bg3)}
.sent-back{display:inline-flex;align-items:center;gap:6px;height:27px;padding:0 11px;border-radius:999px;background:var(--acc);color:var(--on-acc);font-size:12px;font-weight:700;text-decoration:none;transition:filter .15s,transform .15s}
.sent-back:hover,.sent-back:focus-visible{filter:brightness(1.08);transform:translateY(-1px)}
.sent-filtered-k{color:var(--tx3);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin-left:4px}
.sent-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;border:1px solid rgba(224,168,60,.35);background:rgba(224,168,60,.1);color:var(--acc-text);font-size:13px;font-weight:600;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Sent emails' delete dialog (SentEmailsBulk.tsx): a red stripe and a faint red wash across the top, like the how-to popups' own color. */
.modal.sent-del-modal{border-top:3px solid var(--bad)}
.modal.sent-del-modal>header{border-radius:9px 9px 0 0;background:radial-gradient(120% 180% at 0% 0%,color-mix(in srgb,var(--bad) 14%,transparent),transparent 60%)}
.sent-del-steps{display:flex;gap:8px;margin:0 0 14px}
.sent-del-steps span{width:26px;height:26px;border-radius:50%;border:1px solid var(--line2);color:var(--tx3);font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center}
.sent-del-steps span.on{background:var(--bad);border-color:var(--bad);color:var(--on-bad)}
/* The delete dialog's tick and delete-word box speak in its red, not the app's gold. */
.sent-del-understand{display:flex;gap:10px;align-items:center;cursor:pointer}
.sent-del-understand input{flex:none;width:16px;height:16px;margin:0;accent-color:var(--bad)}
.sent-del-word input{width:100%;box-sizing:border-box;font-weight:600;letter-spacing:.06em}
.sent-del-word input:focus{border-color:var(--bad);box-shadow:0 0 0 2px rgba(217,105,79,.2)}
.howto-soft-modal .card-body{padding:16px 18px 18px;overflow-y:auto}
.howto-soft-intro{margin:0 0 14px;font-size:14px;line-height:1.55;color:var(--tx2)}
/* A "Connect directly" tile that doesn't connect yet: grayed out, with a "coming soon" note on hover. */
.howto-soft-btn.soon{position:relative}
.howto-soft-btn.soon .softmark{filter:grayscale(1);opacity:.4}
.howto-soft-btn.soon .howto-soft-name{opacity:.5}
.howto-soft-btn.soon:hover{border-color:var(--line);transform:none}
.howto-soft-btn.soon::after{content:attr(data-soon);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;padding:5px 10px;border-radius:6px;border:1px solid var(--line);background:var(--bg3);color:var(--tx);font-size:12px;font-weight:700;letter-spacing:.06em;box-shadow:0 4px 14px rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:opacity .12s;z-index:5}
.howto-soft-btn.soon:last-child::after{left:auto;right:0;transform:none}
/* Three a row on narrow screens: the note lines up with the tile's own edge in the outer columns instead of hanging past the card. */
@media (max-width:720px){.howto-soft-btn.soon:nth-child(3n+1)::after{left:0;transform:none}.howto-soft-btn.soon:nth-child(3n)::after{left:auto;right:0;transform:none}}
.howto-soft-btn.soon:hover::after,.howto-soft-btn.soon:focus-visible::after{opacity:1}
/* The tile still focused after its popup closes keeps its note up for the keyboard; the one under the mouse wins, so two never overlap. */
.howto-soft-grid:hover .howto-soft-btn.soon:not(:hover)::after{opacity:0}
.howto-soft-btn.soon::after{border-color:var(--howto-acc,var(--line))}
@media (prefers-reduced-motion:reduce){.howto-soft-btn{transition:none}.howto-soft-btn:hover{transform:none}}
.howto-cta{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:999px;background:var(--howto-acc);color:var(--howto-on);font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap;transition:filter .15s,box-shadow .15s}
.howto-cta:hover{filter:brightness(1.08);box-shadow:0 0 0 3px color-mix(in srgb,var(--howto-acc) 30%,transparent)}
.howto-cta:focus-visible{outline:2px solid var(--howto-acc);outline-offset:3px}
/* The module tabs: all of them in a row, then the row count HelpGuides gives for a narrower page (3 a row, or 2 + 2), 2 a
   row on a phone — never an empty slot, however many modules a person has. */
.howto-tiles{display:grid;grid-template-columns:repeat(var(--howto-cols,6),minmax(0,1fr));gap:12px;margin-bottom:18px}
/* A full row of six needs about 1260px of content: from a 1620px window, after the Help page's 180px insets (help/page.tsx). */
@media (max-width:1619px){.howto-tiles{grid-template-columns:repeat(var(--howto-mid,3),minmax(0,1fr))}}
@media (max-width:620px){.howto-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.howto-tiles .howto-tile{flex-direction:column;align-items:flex-start;gap:6px;padding:12px}}
.howto-tile{display:flex;align-items:center;gap:12px;text-align:left;padding:12px 16px;border-radius:12px;border:1px solid var(--line);border-top:3px solid var(--howto-acc);background:var(--bg2);color:var(--tx);cursor:pointer;font:inherit;transition:background .15s,border-color .15s,transform .15s}
.howto-tile:hover{background:var(--bg3);transform:translateY(-1px)}
/* The open guide: only its lighter background marks it — every tile keeps just its coloured top edge (owner, 2026-11-13). */
.howto-tile.on{background:var(--bg3)}
.howto-tile:focus-visible{outline:2px solid var(--howto-acc);outline-offset:2px}
.howto-tile-icon{font-size:22px;line-height:1}
.howto-tile-text{display:flex;flex-direction:column;gap:3px}
.howto-tile-name{font-size:15px;font-weight:700}
.howto-tile-tag{font-size:13px;color:var(--tx2);line-height:1.35}
.howto-module{border-radius:14px;background:var(--bg2);border:1px solid var(--line);padding:20px}
.howto-intro{margin:0 0 14px;font-size:15px;line-height:1.6;color:var(--tx);max-width:760px;padding-left:12px;border-left:3px solid var(--howto-acc)}
.howto-jump{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 18px}
.howto-jump-label{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3);margin-right:4px}
.howto-jump a{font-size:13px;padding:4px 10px;border-radius:999px;background:var(--bg3);border:1px solid var(--line);color:var(--tx2);text-decoration:none}
.howto-jump a:hover{color:var(--tx);border-color:var(--howto-acc)}
.howto-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;align-items:start}
.howto-card{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:16px;scroll-margin-top:90px}
.howto-card-head{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
.howto-card-head h3{margin:0 0 3px;font-size:16px;color:var(--tx)}
.howto-card-head p{margin:0;font-size:13px;line-height:1.45;color:var(--tx2)}
.howto-num{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--howto-acc);color:var(--howto-on);font-size:13px;font-weight:800}
.howto-steps{margin:0;padding:0;list-style:none;counter-reset:howto}
.howto-steps li{counter-increment:howto;position:relative;padding:0 0 9px 30px;font-size:14px;line-height:1.5;color:var(--tx)}
.howto-steps li:last-child{padding-bottom:0}
.howto-steps li::before{content:counter(howto);position:absolute;left:0;top:1px;width:20px;height:20px;border-radius:50%;border:1px solid var(--howto-acc);color:var(--tx2);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.howto-tip{display:flex;gap:8px;margin:12px 0 0;padding:10px 12px;border-radius:10px;background:var(--bg3);font-size:13px;line-height:1.5;color:var(--tx2)}
.howto-tip strong{color:var(--tx)}
@media (max-width:600px){.howto-module{padding:14px}.howto-grid{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.howto-tile{transition:none}.howto-tile:hover{transform:none}}

/* Contacts directory (app/dashboard/contacts, components/ContactsDirectory.tsx). */
.cdir-header{margin-bottom:18px}
.cdir-title{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cdir-title h1{margin:0;font-size:20px;color:var(--tx)}
.cdir-header p{margin:4px 0 0;font-size:13px;color:var(--tx3)}
.cdir-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.cdir-search{flex:1 1 260px;display:flex;align-items:center;gap:8px;background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:0 14px;min-height:38px}
.cdir-search:focus-within{border-color:var(--acc)}
.cdir-search-icon{font-size:13px;opacity:.7}
.cdir-search input{flex:1;border:0;background:transparent;color:var(--tx);font-size:14px;outline:none;padding:8px 0;min-width:0}
.cdir-sort{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.cdir-sort select{background:var(--bg);border:1px solid var(--line);border-radius:8px;color:var(--tx);font-size:13px;padding:7px 9px;min-height:36px;text-transform:none;letter-spacing:0;font-weight:400}
.cdir-view{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.cdir-view button{background:var(--bg);color:var(--tx2);border:0;padding:7px 12px;font-size:13px;cursor:pointer;min-height:36px}
.cdir-view button+button{border-left:1px solid var(--line)}
.cdir-view button.on{background:var(--bg3);color:var(--tx);box-shadow:inset 0 -2px 0 var(--acc)}
.cdir-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:12px 16px;border-bottom:1px solid var(--line)}
.cdir-tab{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--tx2);font-size:13px;cursor:pointer}
.cdir-tab:hover{color:var(--tx);border-color:var(--line2)}
.cdir-tab.on{background:var(--acc);border-color:var(--acc);color:var(--on-acc);font-weight:600}
.cdir-tab.dim{opacity:.5}
.cdir-count{font-size:12px;padding:0 6px;border-radius:999px;background:var(--bg3);color:var(--tx2);min-width:12px;text-align:center}
.cdir-tab.on .cdir-count{background:rgba(0,0,0,.18);color:var(--on-acc)}
.cdir-body{padding:4px 0 8px}
.cdir-empty{margin:0;padding:40px 20px;text-align:center;color:var(--tx3);font-size:14px}
.cdir-head{display:flex;align-items:center;gap:8px;margin:0;padding:8px 16px;background:var(--bg3);border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx2)}
.cdir-section:first-child .cdir-head{border-top:0}
.cdir-head span{font-weight:600;color:var(--tx3);letter-spacing:0}
.cdir-list{display:flex;flex-direction:column}
.cdir-row{display:grid;grid-template-columns:34px minmax(180px,1.4fr) minmax(110px,.7fr) minmax(150px,1fr) minmax(110px,.6fr);align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.cdir-row:last-child{border-bottom:0}
.cdir-row:hover{background:var(--bg3)}
.cdir-avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:var(--bg4);color:var(--acc-text);font-size:12px;font-weight:700;letter-spacing:.04em;flex:none}
.cdir-avatar.lg{width:44px;height:44px;font-size:15px}
.cdir-who{display:flex;flex-direction:column;gap:2px;min-width:0}
.cdir-name{font-size:14px;font-weight:600;color:var(--tx);overflow:hidden;text-overflow:ellipsis}
.cdir-role{font-size:12px;font-weight:600;color:var(--acc-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cdir-chip{justify-self:start;align-self:flex-start;font-size:12px;padding:2px 9px;border-radius:999px;background:var(--bg3);border:1px solid var(--line);color:var(--tx2);white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.cdir-meta{font-size:13px;color:var(--tx2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cdir-account{margin-left:8px;font-size:12px;font-weight:500;color:var(--info-text)}
.cdir-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;padding:14px 16px}
.cdir-tile{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:12px;background:var(--bg);border:1px solid var(--line);color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}
.cdir-tile:hover{border-color:var(--acc);transform:translateY(-1px)}
.cdir-tile-top{display:flex;align-items:center;gap:12px;min-width:0}
.cdir-tile-meta{display:flex;flex-direction:column;gap:3px;font-size:13px;color:var(--tx2);min-width:0}
.cdir-tile-meta span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cdir-tile .cdir-account{margin-left:0}
.cdir>form{border-top:1px solid var(--line)}
.cimport-hint{margin:14px 2px 0;font-size:13px;line-height:1.55;color:var(--tx2)}
.cimport-done{display:flex;gap:12px;align-items:flex-start}
.cimport-done p{margin:0;font-size:14px;line-height:1.55;color:var(--tx)}
.cimport-done-icon{flex:none;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--good);color:var(--on-good);font-weight:800}
@media (max-width:760px){
  .cdir-row{grid-template-columns:34px 1fr;row-gap:4px}
  .cdir-row .cdir-chip,.cdir-row .cdir-meta{grid-column:2}
  .cdir-row .cdir-meta:empty{display:none}
}
@media (prefers-reduced-motion:reduce){.cdir-tile{transition:none}.cdir-tile:hover{transform:none}}

/* Thank-you popup for new accounts (components/WelcomeEmailNotice.tsx). */
.welcome-mail{max-width:500px;text-align:center}
.welcome-mail .card-body{padding:28px 26px 24px}
.welcome-mail-icon{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:var(--bg3);font-size:26px;margin-bottom:12px}
.welcome-mail h3{margin:0 0 8px;font-size:20px;color:var(--tx)}
.welcome-mail p{margin:0 0 14px;font-size:14px;line-height:1.55;color:var(--tx2)}
.welcome-mail-address{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:0 0 16px;padding:10px 12px;border-radius:10px;background:var(--bg);border:1px solid var(--line)}
.welcome-mail-address code{font-family:var(--mono);font-size:14px;color:var(--acc-text);word-break:break-all}
.welcome-mail .welcome-mail-tip{font-size:13px;color:var(--tx3)}
.welcome-mail-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:6px}

/* Contacts Add row (ContactForm.tsx ContactAddRow): who · where · what. */
.cadd{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-top:1px solid var(--line);background:var(--bg)}
.cadd-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cadd-row>input,.cadd-row>select{min-width:0;width:0}
.cadd-phone{flex:1 1 280px;min-width:0}
.cadd .phonefield-row select,.cadd .phonefield-row input{background:var(--bg);border:1px solid var(--line);border-radius:5px;padding:7px 9px;min-height:34px;color:var(--tx);box-sizing:border-box}
.cadd .phonefield-row select{width:190px}

/* ── PreVis Pro (app/previs) ─────────────────────────────────────────────
   Its own accent and top bar so it reads as a separate app; the shared
   theme tokens underneath so light/dark follow the person's setting. */
.pv{--pv-acc:#8b9cff;--pv-acc2:#c39bff;--pv-on:#0b0d1f;min-height:100vh;background:var(--bg);color:var(--tx)}
:root[data-theme="light"] .pv{--pv-acc:#4b5bd6;--pv-acc2:#7b4fd6;--pv-on:#ffffff}
@media (prefers-color-scheme:light){:root[data-theme="system"] .pv{--pv-acc:#4b5bd6;--pv-acc2:#7b4fd6;--pv-on:#ffffff}}
/* PreVis popups rendered outside the page (the upload popup is portaled to <body>) carry the same purple. */
.pv-modal{--pv-acc:#8b9cff;--pv-acc2:#c39bff;--pv-on:#0b0d1f}
:root[data-theme="light"] .pv-modal{--pv-acc:#4b5bd6;--pv-acc2:#7b4fd6;--pv-on:#ffffff}
@media (prefers-color-scheme:light){:root[data-theme="system"] .pv-modal{--pv-acc:#4b5bd6;--pv-acc2:#7b4fd6;--pv-on:#ffffff}}
/* PreVis's branded upload zones (the app's shared .importzone layout) in PreVis purple instead of the app's yellow. */
.pv .importzone .btn.primary,.pv-modal .importzone .btn.primary{background:var(--pv-acc);border-color:var(--pv-acc);color:var(--pv-on);font-weight:700}
.pv .importzone .btn.primary:hover:not(:disabled),.pv-modal .importzone .btn.primary:hover:not(:disabled){filter:brightness(1.08)}
.pv .importzone.over,.pv-modal .importzone.over{border-color:var(--pv-acc);background:color-mix(in srgb,var(--pv-acc) 10%,transparent)}
.pv .importzone .iz-icon,.pv-modal .importzone .iz-icon{color:var(--pv-acc)}
.pv-main{max-width:1180px;margin:0 auto;padding:24px}
.pv-main-wide{max-width:none}
.pv-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;min-height:34px;border-radius:8px;border:1px solid var(--line2);background:var(--bg2);color:var(--tx);font-size:13px;cursor:pointer;white-space:nowrap}
.pv-btn:hover:not(:disabled){border-color:var(--pv-acc)}
.pv-btn:disabled{opacity:.5;cursor:default}
.pv-btn.on{border-color:var(--pv-acc);background:var(--bg3);color:var(--pv-acc)}
.pv-btn-primary{background:var(--pv-acc);border-color:var(--pv-acc);color:var(--pv-on);font-weight:700}
.pv-btn-primary:hover:not(:disabled){filter:brightness(1.08)}
.pv-btn-lg{padding:11px 20px;font-size:15px}
.pv-btn-ghost{background:transparent;border-color:transparent;color:var(--tx2)}
.pv-btn-danger{border-color:var(--bad);color:var(--bad);background:transparent;align-self:flex-start}
/* A red PreVis button stays red under the pointer (the plain .pv-btn hover would turn its edge purple), with
   the faint red wash Studio Slate Pro's own .btn.danger gets; reached by keyboard, a PreVis-purple (red) ring. */
.pv-btn-danger:hover:not(:disabled){border-color:var(--bad);background:color-mix(in srgb,var(--bad) 12%,transparent)}
.pv-btn-dangerfill:hover:not(:disabled){border-color:var(--bad);filter:brightness(1.08)}
.pv-btn:focus-visible{outline:2px solid var(--pv-acc);outline-offset:2px}
.pv-btn-danger:focus-visible,.pv-btn-dangerfill:focus-visible{outline-color:var(--bad)}
.pv-icon{border:0;background:transparent;color:var(--tx2);font-size:14px;padding:4px 6px;border-radius:6px;cursor:pointer;min-width:28px;min-height:28px}
.pv-icon:hover:not(:disabled){background:var(--bg3);color:var(--tx)}
.pv-icon:disabled{opacity:.3;cursor:default}
.pv-icon-danger:hover:not(:disabled){color:var(--bad)}
.pv-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pv-stack{display:flex;flex-direction:column;gap:14px}
.pv-hint{margin:0;font-size:13px;color:var(--tx3);line-height:1.5}
.pv-error{margin:6px 0;font-size:13px;color:var(--bad)}
.pv-empty{margin:24px 0;padding:36px 20px;text-align:center;color:var(--tx3);font-size:14px;border:1px dashed var(--line2);border-radius:14px}
.pv-field{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.pv-field input,.pv-field select{text-transform:none;letter-spacing:0;font-weight:400;font-size:14px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px;min-height:38px}
/* Focused: PreVis purple, as Studio Slate Pro's own .field boxes go gold (and PreVis popups' .field ones already go purple). */
.pv-field input:focus,.pv-field select:focus{outline:none;border-color:var(--pv-acc);box-shadow:0 0 0 2px color-mix(in srgb,var(--pv-acc) 18%,transparent)}
.pv-field-inline{flex-direction:row;align-items:center;gap:8px}
.pv-field-inline input[type=color]{width:40px;height:32px;padding:2px;min-height:0}
.pv-field-inline code{font-family:var(--mono);font-size:13px;color:var(--tx2);text-transform:none}
.pv-modal header h3{margin:0}
/* Home */
.pv-hero{padding:24px 0 8px}
.pv-hero h1{margin:0 0 6px;font-size:26px}
.pv-hero>p{margin:0 0 18px;max-width:640px;color:var(--tx2);font-size:15px;line-height:1.55}
.pv-newform{max-width:560px;display:flex;flex-direction:column;gap:12px;padding:18px;border-radius:14px;background:var(--bg2);border:1px solid var(--line)}
.pv-newform h2{margin:0;font-size:17px}
.pv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin-top:24px}
.pv-card{display:flex;flex-direction:column;border-radius:14px;overflow:hidden;background:var(--bg2);border:1px solid var(--line);color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}
.pv-card:hover{border-color:var(--pv-acc);transform:translateY(-2px)}
/* A card with no frame drawn yet: a faint PreVis-purple glow behind its mark (a cover image replaces the glow). */
.pv-card-cover{aspect-ratio:16/9;background:radial-gradient(120% 90% at 50% 0%,color-mix(in srgb,var(--pv-acc) 12%,transparent),transparent 70%) center/cover no-repeat var(--bg3);display:flex;align-items:center;justify-content:center;font-size:40px;color:color-mix(in srgb,var(--pv-acc) 40%,var(--line2))}
/* Reached by keyboard: the same purple border as hovering it. */
.pv-card-link:focus-visible{outline:none}
.pv-card:has(.pv-card-link:focus-visible){border-color:var(--pv-acc);box-shadow:0 0 0 2px color-mix(in srgb,var(--pv-acc) 30%,transparent)}
.pv-card-body{padding:12px 14px}
.pv-card-body h2{margin:0 0 4px;font-size:16px}
.pv-card-body p{margin:2px 0;font-size:13px;color:var(--tx2)}
.pv-card-src{color:var(--pv-acc)!important}
.pv-card-date{color:var(--tx3)!important}
/* A card is its link plus, with edit rights, Delete / Archive under it — the Start Page tile's layout. */
.pv-card-link{display:flex;flex-direction:column;flex:1;color:inherit;text-decoration:none}
.pv-card-actions{display:flex;justify-content:space-between;gap:8px;padding:0 14px 12px}
.pv-card-actions-end{justify-content:flex-end}
/* Unarchive with its error (PrevisProjectActions PrevisUnarchiveButton): the message stacks under the button, right-aligned. */
.pv-unarchive{display:flex;flex-direction:column;align-items:flex-end}
.pv-unarchive .pv-error{margin:6px 0 0;text-align:right}
.pv-card-archived{opacity:.6}
.pv-card-archived:hover{transform:none;border-color:var(--line)}
.pv-btn-sm{padding:4px 10px;min-height:30px;font-size:13px}
.pv-btn-outline{background:transparent;border-color:var(--pv-acc);color:var(--pv-acc)}
.pv-archived{margin-top:56px}
.pv-archived-rule{border:0;border-top:1px solid var(--line2);margin:0 0 32px}
/* The Start Page's Archived Projects heading (.hubtoolbar h2), in PreVis purple. */
.pv-archived h2{margin:0;font:700 15px/1.3 var(--font-outfit,'Outfit'),var(--sans);color:var(--pv-acc)}
.pv-archived .pv-grid{margin-top:16px}
/* The LUT library link: the house accent box (.export-mail-from) in PreVis purple — left stripe, faint glow, icon tile. */
.pv-lutbanner{display:flex;align-items:center;gap:14px;margin-top:28px;padding:12px 18px 12px 14px;border-radius:12px;border:1px solid color-mix(in srgb,var(--pv-acc) 30%,var(--line));border-left:4px solid var(--pv-acc);background:radial-gradient(120% 140% at 0% 0%,color-mix(in srgb,var(--pv-acc) 12%,transparent),transparent 60%),var(--bg2);color:var(--tx2);text-decoration:none;font-size:14px;line-height:1.45;transition:border-color .15s}
.pv-lutbanner:hover,.pv-lutbanner:focus-visible{border-color:var(--pv-acc);outline:none}
.pv-lutbanner strong{color:var(--tx)}
.pv-lutbanner>span:nth-child(2){flex:1}
.pv-lutbanner>span:last-child{color:var(--pv-acc);font-weight:700;transition:transform .15s}
.pv-lutbanner:hover>span:last-child{transform:translateX(3px)}
.pv-lutbanner-icon{flex:none;width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--pv-acc) 16%,transparent);font-size:22px;color:var(--pv-acc)}
/* The PreVis home with no projects showing: its own mark above the line. */
.pv-home-empty{border-color:color-mix(in srgb,var(--pv-acc) 35%,var(--line2))}
.pv-home-empty::before{content:"◐";display:block;margin:0 auto 10px;font-size:30px;line-height:1;color:var(--pv-acc)}
/* The project bar's ⚙ (Project settings): an icon-sized square button, the glyph big enough to read. */
.pv-btn.pv-pbar-gear{justify-content:center;min-width:36px;padding:7px 9px;font-size:17px;line-height:1}
/* Project bar + tabs */
.pv-pbar{padding:14px 24px 0;border-bottom:1px solid var(--line);background:var(--bg)}
.pv-pbar-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.pv-switch{font-size:16px;font-weight:700;background:var(--bg2);color:var(--tx);border:1px solid var(--line);border-radius:8px;padding:6px 10px;min-height:36px;max-width:340px}
.pv-pbar-sync{display:flex;gap:8px;align-items:center;flex:1;min-width:260px}
.pv-pbar-sync select{background:var(--bg2);color:var(--tx);border:1px solid var(--line);border-radius:8px;padding:6px 10px;min-height:34px;max-width:260px;font-size:13px}
.pv-pbar-actions{display:flex;gap:8px}
.pv-pbar-msg{margin:8px 0 0;font-size:12px;color:var(--tx3)}
/* A series: which episode is being worked on — the same row of episode buttons as Studio Slate Pro's modules. */
.pv-eprow{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.pv-tabs{display:flex;gap:4px;margin-top:12px;overflow-x:auto}
.pv-tab{padding:9px 14px;font-size:14px;color:var(--tx2);text-decoration:none;border-bottom:2px solid transparent;white-space:nowrap}
.pv-tab:hover{color:var(--tx)}
.pv-tab.on{color:var(--tx);border-bottom-color:var(--pv-acc);font-weight:600}
/* Overview */
.pv-overview h1{margin:4px 0 2px;font-size:24px}
.pv-begin{margin:18px 0 14px;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.pv-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.pv-tile{display:flex;flex-direction:column;gap:6px;padding:20px;border-radius:14px;background:var(--bg2);border:1px solid var(--line);color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}
.pv-tile:hover{border-color:var(--pv-acc);transform:translateY(-2px)}
.pv-tile-icon{font-size:30px;color:var(--pv-acc)}
.pv-tile-title{font-size:17px;font-weight:700}
.pv-tile-sub{font-size:13px;color:var(--tx2);line-height:1.45}
.pv-tile-stat{margin-top:6px;font-size:12px;color:var(--tx3)}
/* Storyboard */
.pv-sb{position:relative;display:grid;grid-template-columns:var(--pv-list-w,260px) 1fr;gap:20px;align-items:start}
/* The list's drag handle (ListResizer), in the middle of the 20px gap; the grip stays mid-screen while the page scrolls. */
.pv-split{position:absolute;top:0;bottom:0;left:calc(var(--pv-list-w,260px) + 4px);width:12px;cursor:col-resize;z-index:2;touch-action:none;outline:none}
.pv-split::before{content:"";position:absolute;top:0;bottom:0;left:5px;width:2px;border-radius:1px;background:transparent}
.pv-split:hover::before,.pv-split.on::before,.pv-split:focus-visible::before{background:var(--pv-acc)}
.pv-split-grip{position:sticky;top:calc(50vh - 14px);display:block;width:4px;height:28px;margin:0 auto;border-radius:2px;background:var(--line2)}
.pv-split:hover .pv-split-grip,.pv-split.on .pv-split-grip,.pv-split:focus-visible .pv-split-grip{background:var(--pv-acc)}
.pv-sb-empty{display:block}
.pv-sb-scenes{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto;padding:12px;border-radius:12px;background:var(--bg2);border:1px solid var(--line)}
.pv-sb-scenes h2{margin:2px 4px 8px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.pv-sb-scenes ol,.pv-sb-scenes ul{list-style:none;margin:0;padding:0}
.pv-sb-scene,.pv-mb-pick{display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:7px 8px;border:0;border-radius:8px;background:transparent;color:var(--tx2);font-size:13px;cursor:pointer}
.pv-sb-scene:hover,.pv-mb-pick:hover{background:var(--bg3);color:var(--tx)}
.pv-sb-scene.on,.pv-mb-pick.on{background:var(--bg3);color:var(--tx);box-shadow:inset 3px 0 0 var(--pv-acc)}
/* Scenes are color coded exactly as in Scheduling (lib/scene-color.ts, SceneLegend): the number is the same
   .scenenum badge, and every row carries the scene card's left bracket in its color. */
.pv-sb-scene .scenenum{flex:none}
.pv-sb-scene.ct-int-day{box-shadow:inset 3px 0 0 var(--good)}
.pv-sb-scene.ct-ext-day{box-shadow:inset 3px 0 0 var(--info)}
.pv-sb-scene.ct-int-night{box-shadow:inset 3px 0 0 var(--acc)}
.pv-sb-scene.ct-ext-night{box-shadow:inset 3px 0 0 #0a0a0c}
.pv-sb-scene-head,.pv-mb-pick-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv-sb-scene-count{flex:none;font-size:12px;color:var(--tx3)}
/* Scenes with storyboard panels (or shots): a PreVis-purple count; scenes without are dimmed. */
.pv-sb-badge{flex:none;font-size:12px;font-weight:600;line-height:1.5;padding:0 7px;border-radius:999px;color:var(--pv-acc);background:color-mix(in srgb,var(--pv-acc) 14%,transparent);border:1px solid color-mix(in srgb,var(--pv-acc) 45%,transparent)}
.pv-sb-scene-empty .pv-sb-scene-head{opacity:.5}
.pv-sb-addscene{margin-top:10px;width:100%;justify-content:center}
.pv-sb-newscene{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.pv-sb-newscene input{flex:1 1 120px;min-width:0;background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:6px;padding:6px 8px;font-size:13px}
.pv-sb-newscene .pv-sb-num{flex:0 0 52px}
.pv-sb-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.pv-sb-head h1{margin:0 0 4px;font-size:20px;text-transform:uppercase;letter-spacing:.02em}
.pv-sb-head p{margin:0;max-width:720px;color:var(--tx2);font-size:14px;line-height:1.5}
.pv-sb-headnum{margin-right:10px;color:var(--pv-acc)}
.pv-sb-headnum.scenenum{vertical-align:middle}
/* Storyboard: up to 3 frames per row (4th and later start a new row); 2 on narrower screens, 1 on phones. */
.pv-frames{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:14px}
@media (max-width:1180px){.pv-frames{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:700px){.pv-frames{grid-template-columns:minmax(0,1fr)}}
.pv-frame{display:flex;flex-direction:column;border-radius:12px;background:var(--bg2);border:1px solid var(--line);overflow:hidden}
.pv-frame.on{border-color:var(--pv-acc);box-shadow:0 0 0 1px var(--pv-acc)}
.pv-frame-img{position:relative;background:#f4f4f2;display:flex;align-items:center;justify-content:center;overflow:hidden}
:root:not([data-theme="light"]) .pv-frame-img{background:#1a1d22}
.pv-frame-img.over{outline:2px dashed var(--pv-acc);outline-offset:-6px}
.pv-frame-pic{width:100%;height:100%;object-fit:cover;display:block}
.pv-frame-empty{font-size:13px;color:var(--tx3)}
.pv-frame-drop{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:12px}
.pv-frame-n{position:absolute;left:8px;top:8px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:rgba(0,0,0,.6);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
/* A frame's tools show only while the pointer is in the picture's upper-right corner, where they sit (the padding
   widens that corner a little), or a tool has keyboard focus — not over the rest of the picture, and not just
   because the frame is selected. */
.pv-frame-tools{position:absolute;right:0;top:0;display:flex;gap:4px;padding:6px 6px 14px 20px;opacity:0;transition:opacity .15s}
.pv-frame-tools:hover,.pv-frame-tools:has(:focus-visible){opacity:1}
.pv-frame-tools button{width:30px;height:30px;border-radius:8px;border:0;background:rgba(0,0,0,.65);color:#fff;font-size:14px;cursor:pointer}
/* Phones and tablets (no hover): tap a frame to show its tools, tap another to hide them — hidden ones can't be tapped by mistake. */
@media (hover:none){.pv-frame-tools{visibility:hidden}.pv-frame.on .pv-frame-tools{visibility:visible;opacity:1}}
.pv-frame-fields{display:flex;flex-direction:column;gap:6px;padding:10px}
/* Shot / Angle / Movement / Lens: each wide enough to show its whole value — they wrap to a second line rather than cut text off. */
.pv-frame-sels{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px 8px}
.pv-fsel{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--tx3)}
.pv-fsel select,.pv-fsel input{width:100%;min-width:0;background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:6px;padding:4px 6px;font-size:13px;min-height:30px}
.pv-frame-fields textarea{width:100%;box-sizing:border-box;resize:vertical;background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:6px;padding:6px 8px;font-size:13px;line-height:1.45;font-family:inherit}
.pv-frame-fields textarea.pv-dialogue{font-style:italic}
.pv-frame-foot{display:flex;align-items:center;gap:6px 4px;flex-wrap:wrap}
.pv-frame-foot select{background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:6px;padding:3px 6px;font-size:12px;flex:0 1 auto;min-height:28px}
.pv-frame-add{align-items:center;justify-content:center;gap:6px;min-height:180px;border-style:dashed;background:transparent;color:var(--tx3);font-size:14px;cursor:pointer}
.pv-frame-add span{font-size:30px;color:var(--pv-acc)}
.pv-frame-add:hover{border-color:var(--pv-acc);color:var(--tx)}
.pv-frame-ghost{align-items:center;justify-content:center;min-height:180px;color:var(--tx3);font-size:13px}
/* Draw */
.pv-draw{max-width:min(1200px,96vw);width:96vw}
.pv-draw header{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.pv-draw-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pv-draw-sep{width:1px;height:24px;background:var(--line)}
.pv-dot{width:24px;height:24px;border-radius:50%;border:2px solid var(--line2);cursor:pointer;padding:0}
.pv-dot.on{border-color:var(--pv-acc);box-shadow:0 0 0 2px var(--pv-acc)}
.pv-draw-size{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--tx2)}
.pv-draw-size select{background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:6px;padding:4px}
.pv-draw-stage{padding:12px;background:var(--bg3);display:flex;justify-content:center}
.pv-draw-canvas{width:100%;max-height:70vh;object-fit:contain;background:#fff;border-radius:4px;touch-action:none;cursor:crosshair;box-shadow:0 2px 16px rgba(0,0,0,.25)}
/* Mood boards */
.pv-mb{position:relative;display:grid;grid-template-columns:var(--pv-list-w,260px) 1fr;gap:20px;align-items:start}
.pv-mb-film{margin-bottom:6px;font-weight:700}
.pv-mb-group{margin-top:12px}
.pv-mb-group h3{margin:0 4px 6px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.pv-mb-add{width:100%;justify-content:flex-start;font-size:13px}
.pv-mb-new{display:flex;gap:6px;margin-top:6px}
.pv-mb-new input{flex:1;min-width:0;background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:6px;padding:6px 8px;font-size:13px}
.pv-mini-pal{display:inline-flex;border-radius:4px;overflow:hidden;flex:none}
.pv-mini-pal i{display:block;width:10px;height:14px}
.pv-pal-strip{display:flex;flex-wrap:wrap;gap:0;margin-top:8px;border-radius:8px;overflow:hidden;width:max-content;max-width:100%}
.pv-pal-strip span{padding:6px 10px;font-family:var(--mono);font-size:12px}
.pv-mb-empty{margin-top:14px}
.pv-mb-zone{margin-top:14px}
.pv-masonry{columns:3 240px;column-gap:14px;margin-top:14px}
.pv-mood{break-inside:avoid;margin:0 0 14px;border-radius:12px;overflow:hidden;background:var(--bg2);border:1px solid var(--line)}
.pv-mood img{display:block;width:100%;height:auto}
.pv-mood figcaption{display:flex;align-items:center;gap:6px;padding:6px 8px}
.pv-mood figcaption input{flex:1;min-width:0;border:0;background:transparent;color:var(--tx);font-size:13px;padding:4px}
.pv-mood figcaption input:focus{outline:1px solid var(--line2);border-radius:4px}
.pv-mood-tools{display:flex}
/* Color script */
.pv-cs-ribbon{display:flex;gap:4px;overflow-x:auto;padding:12px;border-radius:14px;background:var(--bg2);border:1px solid var(--line);margin-top:10px}
.pv-cs-ribbon-sm{padding:10px}
.pv-cs-col{flex:0 0 46px;display:flex;flex-direction:column;align-items:center;gap:6px;border:0;background:transparent;cursor:pointer;padding:4px;border-radius:8px;color:var(--tx3)}
.pv-cs-col:hover{background:var(--bg3)}
.pv-cs-col.on{background:var(--bg3);box-shadow:0 0 0 2px var(--pv-acc)}
.pv-cs-bars{display:flex;flex-direction:column;width:38px;height:150px;border-radius:6px;overflow:hidden}
.pv-cs-ribbon-sm .pv-cs-bars{height:90px}
.pv-cs-bars i{flex:1}
.pv-cs-none{background:repeating-linear-gradient(45deg,var(--bg3),var(--bg3) 5px,var(--bg4) 5px,var(--bg4) 10px)}
.pv-cs-label{font-size:12px;font-weight:700;color:var(--tx2);max-width:46px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv-cs-subjects{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;margin-top:16px}
.pv-cs-subjects h2,.pv-cs-edit h2,.pv-cs-tool h3{margin:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.pv-cs-subjects .pv-cs-col{flex-basis:70px}
.pv-cs-subjects .pv-cs-label{max-width:70px}
.pv-cs-edit{margin-top:20px;padding:18px;border-radius:14px;background:var(--bg2);border:1px solid var(--line)}
/* Previs AI (owner-only): style/model bar, sheet and frame generation (components/previs/AiControls.tsx) */
.pv-ai-bar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 14px;margin:0 0 14px;padding:10px 12px;border-radius:10px;border:1px solid var(--pv-acc);background:color-mix(in srgb,var(--pv-acc) 8%,transparent)}
.pv-ai-badge{align-self:center;font-size:13px;font-weight:800;letter-spacing:.06em;color:var(--pv-acc)}
.pv-ai-bar .pv-fsel select{min-width:180px}
.pv-ai-sheet{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.pv-ai-sheet>input{flex:1 1 260px;min-width:0;font-size:14px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:7px 10px}
.pv-ai-slot{color:var(--pv-acc)!important}
.pv-ai-dialog{max-width:560px;width:calc(100vw - 32px)}
.pv-ai-dialog header{padding:12px 16px;border-bottom:1px solid var(--line)}
.pv-ai-dialog textarea{font:inherit;font-size:14px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px;text-transform:none;letter-spacing:0;font-weight:400}
.pv-ai-chars{border:1px solid var(--line);border-radius:10px;padding:8px 12px;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px 12px;max-height:220px;overflow:auto}
/* Long dialogs scroll as a whole; boxes inside never get squashed to fit (their own scroll made them shrink). */
.pv-modal .pv-stack>*{flex-shrink:0}
.pv-ai-chars legend{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3);padding:0 4px}
.pv-ai-char{display:flex;align-items:center;gap:8px;font-size:14px;padding:3px 0}
.pv-ai-char small{margin-left:auto;font-size:12px;color:var(--tx3)}
.pv-ai-char .pv-mini-pal{margin-left:auto}
/* PreVis Pro character reference sheets (components/previs/CharacterSheets.tsx) */
.pv-sheets-body{position:relative;display:grid;grid-template-columns:var(--pv-list-w,260px) 1fr;gap:20px;align-items:start}
.pv-sheets-list{position:sticky;top:12px;max-height:calc(100vh - 160px);overflow:auto}
.pv-sheet{display:flex;flex-direction:column;gap:14px;min-width:0}
.pv-sheet h2{margin:0;font-size:22px}
.pv-sheet h3{margin:6px 0 0;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3)}
.pv-sheet textarea{font:inherit;font-size:14px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px;text-transform:none;letter-spacing:0;font-weight:400;resize:vertical}
.pv-sheet-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:12px}
.pv-sheet-slot{margin:0;display:flex;flex-direction:column;gap:6px}
.pv-sheet-pic{display:flex;align-items:center;justify-content:center;aspect-ratio:3/4;border-radius:10px;border:1px dashed var(--line2);background:var(--bg2);overflow:hidden;cursor:pointer;padding:0;color:var(--tx3)}
.pv-sheet-pic:hover,.pv-sheet-pic:focus-visible{border-color:var(--pv-acc)}
.pv-sheet-pic img{width:100%;height:100%;object-fit:cover}
.pv-sheet-slot figcaption{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;color:var(--tx2)}
.pv-sheet-extras{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.pv-sheet-extra{margin:0;display:flex;flex-direction:column;gap:6px}
.pv-sheet-extra img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.pv-sheet-extra-pic{display:block;padding:0;border:0;background:none;cursor:zoom-in;border-radius:10px}
.pv-sheet-extra-pic img{display:block}
.pv-sheet-extra-pic:hover img,.pv-sheet-extra-pic:focus-visible img{border-color:var(--pv-acc)}
.pv-sheet-extra figcaption{display:flex;gap:4px;align-items:center}
.pv-sheet-extra input{flex:1;min-width:0;font-size:13px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:5px 8px}
.pv-sheet-add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;aspect-ratio:4/3;border-radius:10px;border:1px dashed var(--line2);background:transparent;color:var(--tx2);font-size:14px;cursor:pointer}
.pv-sheet-add small{font-size:12px;color:var(--tx3)}
.pv-sheet-add:hover{border-color:var(--pv-acc);color:var(--pv-acc)}
@media (max-width:760px){.pv-sheets-body{grid-template-columns:1fr}.pv-sheets-list{position:static;max-height:240px}.pv-sheets-body>.pv-split{display:none}}
/* PreVis Pro color picker (components/previs/ColorPicker.tsx) */
.pv-picker-anchor{position:relative;display:inline-flex}
.pv-picker{position:absolute;z-index:60;top:calc(100% + 8px);left:0;width:300px;padding:12px;border-radius:12px;background:var(--bg2);border:1px solid var(--line2);box-shadow:0 18px 50px -12px rgba(0,0,0,.6);display:flex;flex-direction:column;gap:10px;color:var(--tx);text-transform:none;letter-spacing:0;font-weight:400}
.pv-picker-sv{position:relative;height:170px;border-radius:8px;cursor:crosshair;touch-action:none}
.pv-picker-sv::before{content:"";position:absolute;inset:0;border-radius:8px;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0))}
.pv-picker-sv i,.pv-picker-hue i{position:absolute;width:16px;height:16px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.5);transform:translate(-50%,-50%);pointer-events:none}
.pv-picker-hue{position:relative;height:14px;border-radius:7px;cursor:ew-resize;touch-action:none;background:linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
.pv-picker-hue i{top:50%;background:transparent}
.pv-picker-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pv-picker-chip{width:34px;height:34px;border-radius:8px;border:1px solid var(--line2);flex:none}
.pv-picker-hex{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--tx3)}
.pv-picker-hex input{width:86px;font-family:var(--mono);font-size:14px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:6px 8px}
.pv-picker-books{display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--line);padding-top:10px}
.pv-picker-booksbar{display:flex;gap:6px;align-items:center}
.pv-picker-booksbar select{flex:1;min-width:0;font-size:13px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:6px 8px}
.pv-picker-search{font-size:13px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:6px 8px}
.pv-picker-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;max-height:150px;overflow:auto;padding:2px}
.pv-picker-sw-wrap{position:relative}
.pv-picker-sw{display:block;width:100%;aspect-ratio:1;border-radius:6px;border:1px solid rgba(0,0,0,.25);cursor:pointer}
.pv-picker-sw:hover{outline:2px solid var(--pv-acc);outline-offset:1px}
.pv-picker-sw-x{position:absolute;top:-5px;right:-5px;width:16px;height:16px;border-radius:50%;border:0;background:rgba(0,0,0,.7);color:#fff;font-size:12px;line-height:16px;padding:0;cursor:pointer;display:none}
.pv-picker-sw-wrap:hover .pv-picker-sw-x{display:block}
.pv-picker-foot{display:flex;justify-content:flex-end}
.pv-base-chip{width:40px;height:32px;border-radius:8px;border:1px solid var(--line2);cursor:pointer;padding:0}
.pv-frame-actions{display:inline-flex;align-items:center;gap:4px;margin-left:auto}
.pv-frame-mix{display:inline-flex;align-items:center;gap:6px;flex:1 1 140px}
.pv-frame-mix input[type=range]{flex:1;min-width:60px}
.pv-swatch-name{position:absolute;top:8px;left:8px;right:30px;font-size:12px;font-weight:600;line-height:1.2;pointer-events:none;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.pv-swatch-open{position:absolute;inset:0;border:0;background:transparent;cursor:pointer;border-radius:12px}
.pv-swatches{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0 12px}
.pv-swatch{position:relative;width:110px;height:110px;border-radius:12px;display:flex;align-items:flex-end;padding:8px;box-sizing:border-box;border:1px solid rgba(0,0,0,.15)}
.pv-swatch input[type=color]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.pv-swatch-hex{font-family:var(--mono);font-size:12px;font-weight:700;pointer-events:none}
.pv-swatch-x{position:absolute;top:6px;right:6px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.35);color:#fff;font-size:12px;cursor:pointer;z-index:1}
.pv-swatch-add{align-items:center;justify-content:center;background:transparent;border:2px dashed var(--line2);color:var(--tx3);font-size:28px;cursor:pointer}
.pv-cs-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:18px}
.pv-cs-tool{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:12px;background:var(--bg);border:1px solid var(--line)}
.pv-cs-tool select{background:var(--bg2);color:var(--tx);border:1px solid var(--line);border-radius:8px;padding:6px 8px;min-height:34px}
.pv-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:6px;max-height:160px;overflow:auto}
.pv-thumb{padding:0;border:1px solid var(--line);border-radius:6px;overflow:hidden;cursor:pointer;aspect-ratio:16/10;background:var(--bg3)}
.pv-thumb:hover{border-color:var(--pv-acc)}
.pv-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pv-harmonies{display:flex;flex-direction:column;gap:6px}
.pv-harmony{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px;border:1px solid var(--line);background:var(--bg2);color:var(--tx2);font-size:13px;cursor:pointer;text-align:left}
.pv-harmony:hover{border-color:var(--pv-acc);color:var(--tx)}
.pv-harmony .pv-mini-pal i{width:16px;height:18px}
/* LUTs */
.pv-luts-body{display:grid;grid-template-columns:280px 1fr;gap:20px;align-items:start;margin-top:12px}
.pv-lut-list{list-style:none;margin:0;padding:8px;border-radius:12px;background:var(--bg2);border:1px solid var(--line)}
.pv-lut-list li{display:flex;align-items:center;gap:2px;border-radius:8px}
.pv-lut-list li.on{background:var(--bg3);box-shadow:inset 3px 0 0 var(--pv-acc)}
.pv-lut-pick{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px;border:0;background:transparent;color:var(--tx);cursor:pointer;text-align:left;min-width:0}
.pv-lut-name{font-size:14px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pv-lut-size{font-size:12px;color:var(--tx3)}
.pv-lut-controls{margin-bottom:12px}
.pv-lut-controls select{background:var(--bg2);color:var(--tx);border:1px solid var(--line);border-radius:8px;padding:6px 8px}
.pv-ba{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pv-ba figure{margin:0}
.pv-ba canvas{width:100%;height:auto;display:block;border-radius:10px;background:var(--bg3)}
.pv-ba figcaption{margin-top:6px;font-size:12px;color:var(--tx3);text-align:center}
.pv-choice{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:6px}
.pv-choice legend{margin-bottom:6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.pv-choice-opt{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;border:1px solid var(--line);font-size:14px;cursor:pointer}
.pv-choice-opt.on{border-color:var(--pv-acc);background:var(--bg3)}
@media (max-width:900px){
  .pv-sb,.pv-mb,.pv-luts-body{grid-template-columns:1fr}
  .pv-sb-scenes{position:static;max-height:240px}
  .pv-sb>.pv-split,.pv-mb>.pv-split{display:none}
  .pv-ba{grid-template-columns:1fr}
  .pv-main,.pv-pbar{padding-left:16px;padding-right:16px}
}
@media (prefers-reduced-motion:reduce){.pv-card,.pv-tile{transition:none}.pv-card:hover,.pv-tile:hover{transform:none}}
/* Previs print pages (components/previs/PrevisPrint.tsx) */
.pvp{color:#111;background:#fff;padding:12px 4px;font-size:12px}
.pvp-wait{color:#666}
.pvp-title{margin:0 0 12px;font-size:20px}
.pvp-scene{margin:0 0 18px;break-inside:auto}
.pvp-scene h2{margin:0 0 4px;font-size:14px;text-transform:uppercase;border-bottom:1px solid #ccc;padding-bottom:4px;break-after:avoid}
.pvp-scene h2 span{margin-right:8px}
.pvp-syn{margin:0 0 8px;color:#444}
.pvp-frames{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pvp-frame{margin:0;break-inside:avoid}
.pvp-img{position:relative;border:1px solid #999;background:#fafafa;overflow:hidden}
.pvp-img img,.pvp-img canvas{width:100%;height:100%;object-fit:cover;display:block}
.pvp-n{position:absolute;left:4px;top:4px;background:#111;color:#fff;font-size:12px;padding:1px 6px;border-radius:8px}
.pvp-frame figcaption{display:flex;flex-direction:column;gap:2px;margin-top:4px;line-height:1.35}
.pvp-ribbon{display:flex;gap:3px;flex-wrap:wrap;margin-bottom:14px}
.pvp-col{display:flex;flex-direction:column;align-items:center;gap:2px}
.pvp-bars{display:flex;flex-direction:column;width:26px;height:110px;border:1px solid #ccc}
.pvp-bars i{flex:1}
.pvp-none{background:#eee}
.pvp-paltable{width:100%;border-collapse:collapse}
.pvp-paltable th{text-align:left;font-weight:600;padding:4px 8px 4px 0;vertical-align:top;width:40%}
.pvp-paltable td{padding:3px 0}
.pvp-chips{display:flex;flex-wrap:wrap;gap:4px;margin:4px 0 8px}
.pvp-chip{display:inline-block;padding:3px 8px;margin:0 4px 4px 0;font-family:var(--mono);font-size:12px;border:1px solid #ccc}
.pvp-moods{columns:3;column-gap:8px}
.pvp-moods figure{margin:0 0 8px;break-inside:avoid}
.pvp-moods img{width:100%;display:block}
.pvp-moods figcaption{font-size:12px;color:#444}
@media print{
  .pv-pbar,.no-print{display:none!important}
  .pv,.pv-main{background:#fff!important;padding:0!important;max-width:none!important}
}
/* Landscape only for Previs printouts — a named page, so no other print in the app is affected. */
.pvp{page:previs}
@page previs{size:landscape;margin:0.4in}
/* The PreVis Pro doorway on a project hub (only for people with access). */
.pv-dialog-msg{margin:0;font-size:15px;line-height:1.5;color:var(--tx)}
.pv-dialog-input{background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-size:14px;min-height:38px}
.pv-btn-dangerfill{background:var(--bad);border-color:var(--bad);color:var(--on-bad);font-weight:700}
/* A module guide's standout point (help/<lang>.json "highlight"). */
.howto-highlight{display:flex;gap:14px;align-items:flex-start;margin:0 0 18px;padding:16px 18px;border-radius:12px;border:1px solid var(--howto-acc);background:linear-gradient(135deg,color-mix(in srgb,var(--howto-acc) 16%,transparent),transparent 70%)}
.howto-highlight-icon{flex:none;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:var(--howto-acc);color:var(--howto-on);font-size:20px}
.howto-highlight h3{margin:0 0 4px;font-size:17px;color:var(--tx)}
.howto-highlight p{margin:0;font-size:14px;line-height:1.55;color:var(--tx2)}
.pv-lut-group{padding:12px 8px 4px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.pv-lut-list li.pv-lut-group:first-child{padding-top:4px}
.pv-lut-list li.pv-lut-filmhead:first-child{padding-top:4px}
/* LUT library headings (MY LUTS, STUDIO LUTS, FILMMAKER LUTS): bold capitals, PreVis purple with a gray outline in dark mode, plain black in light mode; each director's name on a chip. */
.pv-lut-filmhead{padding:18px 8px 6px;text-align:left;font-size:15px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--pv-acc);-webkit-text-stroke:.6px #8a919c;paint-order:stroke fill}
/* Under FILMMAKER LUTS: the looks are inspired by the films, not the filmmakers' own LUTs. */
.pv-lut-filmnote{padding:0 8px 6px;font-size:13px;line-height:1.45;color:var(--tx3)}
.pv-lut-group.filmmaker{padding:10px 0 4px}
.pv-lut-group.filmmaker span{display:block;flex:1 1 auto;width:100%;box-sizing:border-box;background:#000;color:var(--tx2);padding:6px 8px;border-radius:6px}
:root[data-theme="light"] .pv-lut-group.filmmaker span{background:#fff}
:root[data-theme="light"] .pv-lut-filmhead{color:#000;-webkit-text-stroke:0}
@media (prefers-color-scheme:light){:root[data-theme="system"] .pv-lut-filmhead{color:#000;-webkit-text-stroke:0}}
@media (prefers-color-scheme:light){:root[data-theme="system"] .pv-lut-group.filmmaker span{background:#fff}}
.pv-lut-about{margin:0 0 12px;padding:10px 12px;border-radius:10px;background:var(--bg2);border:1px solid var(--line)}
.pv-lut-about p{margin:0;font-size:14px}
.pv-lut-about p+p{margin-top:6px}
.pv-lut-about a{color:var(--pv-acc)}
/* Wide windows: the list is exactly as tall as the preview beside it and scrolls inside (green scrollbar, tokens.css). */
@media (min-width:901px){
  .pv-luts-body{align-items:stretch}
  .pv-lut-list{height:0;min-height:max(100%,420px);overflow-y:auto;scrollbar-gutter:stable}
}
@media (max-width:900px){.pv-lut-list{max-height:45vh;overflow-y:auto}}
/* Shot list */
.pvs-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.pvs-shot{padding:12px;border-radius:12px;background:var(--bg2);border:1px solid var(--line)}
.pvs-shot.done{opacity:.7}
.pvs-shot-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.pvs-num{width:56px;flex:none;font-size:16px;font-weight:700;text-align:center;color:var(--pv-acc);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:6px}
.pvs-sum{flex:1 1 200px;min-width:0;font-size:14px;font-weight:600;color:var(--tx)}
.pvs-done{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--tx2);cursor:pointer}
.pvs-tools{display:flex;gap:2px}
.pvs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px 10px}
.pvs-field.pvs-long{grid-column:1/-1}
.pvs-field textarea{width:100%;min-width:0;background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:6px;padding:6px 8px;font:inherit;font-size:14px;resize:vertical}
.pvs-sec{border:0;border-top:1px solid var(--line);margin:0 0 10px;padding:10px 0 0}
.pvs-sec:first-of-type{border-top:0;padding-top:0}
.pvs-sec legend{padding:0 0 6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--pv-acc)}
.pvs-shot-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.pvs-shot-foot .pv-btn:last-child{margin-left:auto}
.pvs-msg{color:var(--pv-acc)}
.pvs-picker{width:min(860px,calc(100vw - 32px));max-height:calc(100vh - 48px);display:flex;flex-direction:column}
.pvs-picker header{display:flex;align-items:center;justify-content:space-between}
.pvs-picker .card-body{overflow:auto}
.pvs-picker-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.pvs-groups{display:flex;flex-wrap:wrap;gap:4px;flex:1 1 auto}
.pvs-group{padding:6px 10px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--tx2);font-size:13px;cursor:pointer}
.pvs-group.on{border-color:var(--pv-acc);color:var(--tx);background:var(--bg3)}
.pvs-search{flex:1 1 180px;background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:8px;padding:7px 10px;font-size:14px}
.pvs-setups{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.pvs-setup{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--bg2)}
.pvs-setup-main{flex:1;min-width:0}
.pvs-setup-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.pvs-abbr{font-family:var(--mono);font-size:12px;font-weight:700;padding:2px 6px;border-radius:6px;background:var(--bg3);color:var(--pv-acc)}
.pvs-setup-group{font-size:12px;color:var(--tx3)}
.pvs-setup p{margin:4px 0;font-size:14px;color:var(--tx2);line-height:1.45}
.pvs-setup-lens{font-size:12px;color:var(--tx3)}
.pv-frame-shot{max-width:none!important;flex-basis:100%!important}
.pvs-print{display:none}
@media print{
  .pvs-screen{display:none!important}
  .pvs-print{display:block;color:#000;font-family:var(--sans,sans-serif)}
  .pvs-print h1{font-size:18px;margin:0 0 8px}
  .pvs-print h2{font-size:14px;margin:14px 0 4px}
  .pvs-print table{width:100%;border-collapse:collapse;font-size:12px}
  .pvs-print th,.pvs-print td{border:1px solid #bbb;padding:3px 5px;text-align:left;vertical-align:top}
  .pvs-print th{background:#eee}
  .pvs-print-scene{break-inside:auto}
  .pvs-print tr{break-inside:avoid}
}
/* During the beta the Feedback bubble covers the bottom-right, so the shot's buttons line up on the left. */
.pvs-shot-foot.pvs-foot-left .pv-btn:last-child{margin-left:0}
.pvs-chars{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.pvs-char{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:10px;border:1px solid var(--line);background:var(--bg2)}
.pvs-char-pic{aspect-ratio:3/4;border-radius:8px;overflow:hidden;background:var(--bg3);display:flex;align-items:center;justify-content:center}
.pvs-char-pic img{width:100%;height:100%;object-fit:cover;display:block}
.pvs-char-pic span{font-size:40px;font-weight:700;color:var(--tx3)}
.pvs-char-name{font-size:14px;color:var(--tx)}
.pvs-char-btns{display:flex;gap:6px;flex-wrap:wrap}
.pvs-char-btns .pv-btn{flex:1 1 auto;justify-content:center}
/* PreVis tab row: Back/Undo/Redo, then the tabs. */
/* Tabs on the left, Back/Undo/Redo on the row's centre line (like the Studio Slate Pro modules' tab strip), the ✦ AI chip on the right. */
.pv-tabrow{display:grid;grid-template-columns:minmax(max-content,1fr) auto minmax(max-content,1fr);align-items:center;gap:12px;margin-top:12px;min-width:0}
.pv-tabrow .pv-tabs{grid-column:1;grid-row:1;margin-top:0;min-width:0}
.pv-tabrow .navgroup{grid-column:2;grid-row:1;justify-self:center;flex:none}
.pv-tabrow .pv-spend-chip{grid-column:3;grid-row:1;justify-self:end}
/* AI drawing safeguards: conflicts shown before drawing, test drawings, the after-drawing check, and what was sent. */
.pv-conflicts-bg{z-index:110}
.pv-conflicts-modal{max-width:540px;width:calc(100vw - 32px);border:1.5px solid #e0a23a}
.pv-conflicts-modal>header{padding:12px 16px;border-bottom:1px solid var(--line)}
.pv-conflicts-modal>header h3{color:#e0a23a}
.pv-conflicts-modal .card-body{display:flex;flex-direction:column;gap:10px;max-height:60vh;overflow:auto}
.pv-conflicts-lede{margin:0;font-size:14px;line-height:1.5;color:var(--tx)}
.pv-conflicts-list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.45;color:var(--tx)}
.pv-conflicts-modal>footer{display:flex;align-items:center;gap:8px;padding:10px 16px;border-top:1px solid var(--line)}
.pv-frame-cost.draft b{margin-right:6px;padding:1px 6px;border-radius:4px;background:#e0a23a;color:#111;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.pv-frame-aistrip{padding:8px 12px 0;display:flex;flex-direction:column;gap:6px}
.pv-frame-aistrip-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pv-check{display:inline-flex;align-items:center;gap:4px;box-sizing:border-box;height:34px;margin:0;font:inherit;font-size:13px;font-weight:600;line-height:1;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:transparent}
/* Check badge + its tiny dismiss ×; Fix and Make final sit at the same 34px height on every panel. */
.pv-check-wrap{position:relative;display:inline-flex;align-items:center;align-self:center;height:34px}
.pv-dismiss{position:absolute;top:-6px;right:-6px;width:16px;height:16px;border-radius:50%;border:0;padding:0;background:#000;color:#fff;font:700 12px/16px system-ui,sans-serif;text-align:center;cursor:pointer;box-shadow:0 0 0 1px rgba(255,255,255,.25)}
.pv-dismiss:hover{background:#333}
.pv-frame-aistrip-row .pv-btn{box-sizing:border-box;height:34px;display:inline-flex;align-items:center;align-self:center;padding-top:0;padding-bottom:0}
.pv-check.ok{color:#5cc28a;border-color:color-mix(in srgb,#5cc28a 50%,transparent)}
.pv-check.warn{color:#e0a23a;border-color:#e0a23a;cursor:pointer}
.pv-check-list{margin:0;padding-left:18px;font-size:13px;line-height:1.45;color:var(--tx)}
.pv-make-final{margin-left:auto}
.pv-sent{margin:0 16px 14px;border:1px solid var(--line);border-radius:8px;padding:8px 12px;max-height:40vh;overflow:auto;font-size:13px;color:var(--tx)}
.pv-sent summary{cursor:pointer;font-weight:600;color:var(--tx2)}
.pv-sent h4{margin:10px 0 4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.pv-sent ul,.pv-sent ol{margin:0;padding-left:18px;line-height:1.45}
.pv-sent pre{margin:0;white-space:pre-wrap;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--tx2)}
/* AI spend & balance (owner): a chip at the right end of the tab row, and its dialog. */
.pv-spend-chip{flex:none;display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13px;font-weight:600;color:var(--pv-acc);background:transparent;border:1.5px solid var(--pv-acc);border-radius:999px;padding:5px 12px;cursor:pointer;white-space:nowrap}
.pv-spend-chip:hover{color:var(--tx);background:var(--bg2)}
.pv-spend-chip.low{border-color:#e0a23a;color:#e0a23a}
@media (max-width:1000px){.pv-tabrow{display:flex;flex-wrap:wrap;justify-content:space-between}.pv-tabrow .pv-tabs{order:3;flex-basis:100%}}
.pv-spend{max-width:560px;width:calc(100vw - 32px)}
.pv-spend>header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line)}
.pv-spend-card{border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.pv-spend-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.pv-spend-head h4{margin:0;font-size:16px}
.pv-spend-head a{font-size:13px;color:var(--tx2)}
.pv-spend-left{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.pv-spend-left span{font-size:13px;color:var(--tx2)}
.pv-spend-left strong{font-size:22px}
.pv-spend-left.low strong{color:#e0a23a}
.pv-spend-set{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
.pv-spend-set label{display:flex;flex-direction:column;gap:4px;flex:1 1 220px;font-size:13px;color:var(--tx2)}
.pv-spend-set input{font:inherit;font-size:14px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:7px 10px}
.pv-spend-table{width:100%;border-collapse:collapse;font-size:13px}
.pv-spend-table th,.pv-spend-table td{padding:5px 6px;text-align:right;border-top:1px solid var(--line);font-weight:400}
.pv-spend-table thead th{color:var(--tx3);font-size:12px;border-top:0}
.pv-spend-table th[scope=row]{text-align:left;color:var(--tx);text-transform:none;letter-spacing:0;font-size:13px}
.pv-spend-chip.setup{background:var(--pv-acc);color:var(--pv-on)}
.pv-spend-intro{margin:0;font-size:14px;line-height:1.5;color:var(--tx)}
.pv-spend-card.todo{border-style:dashed}
.pv-spend-opt{margin-left:8px;font-size:12px;font-weight:600;color:var(--tx3);text-transform:uppercase;letter-spacing:.06em}
.pv-key-saved{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pv-key-saved span{flex:1 1 auto;font-size:14px;color:#5cc28a;font-weight:600}
/* Bring-your-own-key setup: numbered steps, a link to each page, and a drawing of the button to look for. */
.pv-key-guide{display:flex;flex-direction:column;gap:12px}
.pv-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.pv-steps li{display:flex;gap:12px;align-items:flex-start}
.pv-step-n{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:700;background:var(--pv-acc);color:var(--pv-on)}
.pv-step-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;padding-top:3px}
.pv-step-body p{margin:0;font-size:14px;line-height:1.45;color:var(--tx)}
.pv-step-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pv-step-link{text-decoration:none;font-size:13px}
.pv-step-mock{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--tx3)}
.pv-step-mock-btn{display:inline-block;padding:5px 12px;border-radius:6px;background:#fff;color:#111;font:600 13px/1.2 system-ui,-apple-system,sans-serif;box-shadow:0 0 0 1px rgba(0,0,0,.15),0 0 0 3px var(--pv-acc)}
.pv-step-note{font-size:13px!important;color:#e0a23a!important}
.pv-key-form{display:flex;gap:8px;flex-wrap:wrap}
.pv-key-form input{flex:1 1 240px;min-width:0;font:inherit;font-size:14px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px}
/* Shot list white balance: a square of each temperature's light color. */
.pvs-kelvin{position:relative}
.pvs-kelvin>input{width:100%;padding-left:28px!important}
.pvs-k-sw{display:inline-block;flex:none;width:14px;height:14px;border-radius:3px;border:1px solid rgba(255,255,255,.35);box-shadow:inset 0 0 0 1px rgba(0,0,0,.25)}
.pvs-kelvin>.pvs-k-sw{position:absolute;left:8px;top:50%;transform:translateY(-50%);pointer-events:none}
.pvs-k-none{background:repeating-linear-gradient(45deg,var(--bg3) 0 3px,transparent 3px 6px);border-style:dashed}
.pvs-k-list{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);list-style:none;margin:0;padding:4px;border-radius:8px;background:var(--bg2);border:1px solid var(--line);box-shadow:0 10px 30px rgba(0,0,0,.45);max-height:260px;overflow:auto}
.pvs-k-list button{display:flex;align-items:center;gap:10px;width:100%;padding:7px 8px;border:0;border-radius:6px;background:transparent;color:var(--tx);font-size:14px;text-align:left;cursor:pointer}
.pvs-k-list button:hover,.pvs-k-list button.on{background:var(--bg3)}
/* Looks (wardrobe): outfit cards on the Characters page; look pickers on frames, shots and the AI dialog. */
.pv-look-pic{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:3/4;padding:0;border-radius:10px;border:1px solid var(--line);background:var(--bg3);color:var(--tx2);font-size:14px;cursor:pointer;overflow:hidden}
.pv-look-pic img{width:100%;height:100%;object-fit:cover;display:block}
.pv-look-pic:hover{border-color:var(--pv-acc)}
.pv-looks .pv-sheet-add{aspect-ratio:3/4}
.pv-look-notes{font-size:13px;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:5px 8px;min-width:0}
.pv-wardrobe{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:6px 0 2px}
.pv-wardrobe-label{font-size:12px;color:var(--tx3)}
.pv-look-sel{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--tx2)}
.pv-look-sel select,.pv-wardrobe-add{background:var(--bg);color:var(--tx);border:1px solid var(--line);border-radius:6px;padding:3px 6px;font-size:12px;min-height:28px;max-width:200px}
.pv-look-list{display:flex;flex-direction:column;gap:8px}
.pv-look-list .pv-look-sel{justify-content:space-between}
.pv-look-list .pv-look-sel span{font-weight:600;color:var(--tx)}
/* Storyboard: the ✦ AI button outlined in the PreVis accent (the dashboard tiles' color) — as are the other AI buttons (Test draw, ✎ Fix); an AI frame's cost; click-to-enlarge. */
.pv-frame-tools button.pv-ai-tool,.pv-btn.pv-ai-tool{box-shadow:inset 0 0 0 1.5px var(--pv-acc);color:var(--pv-acc)}
/* The frame's ✨ Draw with AI button: a bigger icon than the other frame tools. */
.pv-frame-tools button.pv-ai-tool{font-size:20px;line-height:1}
.pv-frame-cost{position:absolute;left:8px;bottom:8px;max-width:calc(100% - 16px);padding:2px 8px;border-radius:11px;background:rgba(0,0,0,.65);color:#fff;font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
.pv-frame-cost{transition:opacity .6s}
.pv-frame-cost.faded{opacity:0}
.pv-frame-img:hover .pv-frame-cost.faded{opacity:1}
.pv-zoomable{cursor:zoom-in}
.pv-lightbox-bg{display:flex;align-items:center;justify-content:center;padding:16px}
.pv-lightbox{display:flex;flex-direction:column;gap:10px;max-width:100%;max-height:100%;padding:12px 14px;border-radius:14px;background:var(--bg2);border:1px solid var(--line);box-shadow:0 20px 60px rgba(0,0,0,.6)}
.pv-lightbox-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pv-lightbox-head h3{margin:0;font-size:15px;color:var(--tx)}
.pv-lightbox-stage{overflow:auto;border-radius:10px;background:#000}
.pv-lightbox-pic{position:relative;margin:0 auto}
.pv-lightbox-pic .pv-frame-pic{width:100%;height:100%;display:block;object-fit:contain}
.pv-lightbox-zoom{display:flex;justify-content:center;align-items:center;gap:8px}
.pv-lightbox-zoom .pv-btn{min-width:44px;justify-content:center;font-size:16px}
/* AI dialog: "Match frame N" continuity choice, with a thumbnail of that frame. */
.pv-ai-continuity{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--bg);cursor:pointer}
.pv-ai-continuity img{width:72px;aspect-ratio:16/9;object-fit:cover;border-radius:6px;flex:none}
.pv-ai-continuity span{display:flex;flex-direction:column;gap:2px;min-width:0}
.pv-ai-continuity strong{font-size:14px;color:var(--tx)}
.pv-ai-continuity small{font-size:12px;color:var(--tx3);line-height:1.4}
/* AI dialog: Same side / Reverse camera choice. */
.pv-ai-camera{display:grid;grid-template-columns:1fr 1fr;gap:8px;border:0;margin:0;padding:0}
.pv-ai-camera legend{margin-bottom:6px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.pv-ai-camera label{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--bg);cursor:pointer}
.pv-ai-camera label.on{border-color:var(--pv-acc);box-shadow:inset 0 0 0 1px var(--pv-acc)}
.pv-ai-camera input{margin-top:3px}
.pv-ai-camera span{display:flex;flex-direction:column;gap:2px}
.pv-ai-camera strong{font-size:14px;color:var(--tx)}
.pv-ai-camera small{font-size:12px;color:var(--tx3);line-height:1.4}
@media (max-width:560px){.pv-ai-camera{grid-template-columns:1fr}}
/* AI dialog: the 180° line (held by default; amber when crossed on purpose). */
.pv-ai-line{display:flex;gap:10px;align-items:flex-start;padding:8px 10px;border-radius:10px;border:1px solid var(--line);background:var(--bg);cursor:pointer}
.pv-ai-line input{margin-top:3px}
.pv-ai-line span{display:flex;flex-direction:column;gap:2px}
.pv-ai-line strong{font-size:14px;color:var(--tx)}
.pv-ai-line small{font-size:12px;color:var(--tx3);line-height:1.4}
.pv-ai-line.crossed{border-color:var(--acc)}
.pv-ai-line.crossed small{color:var(--acc)}
/* AI dialog: draw in the Color Script palettes — each ticked character's and the location's, as small strips. */
.pv-ai-palettes{display:flex;flex-direction:column;gap:6px}
.pv-ai-line.off{cursor:default;opacity:.75}
.pv-ai-pal-list{display:flex;flex-direction:column;gap:6px;padding:0 10px 0 36px}
.pv-ai-pal-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:14px;color:var(--tx)}
.pv-ai-pal-row>span:first-child{min-width:110px}
.pv-ai-pal-row small{font-size:12px;color:var(--tx3)}
.pv-ai-pal-row select{font-size:14px;max-width:220px}
/* Character sheet: draw in the character's palette. */
.pv-ai-sheet-pal{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-basis:100%;font-size:14px;color:var(--tx);cursor:pointer}
.pv-ai-sheet-pal.off{cursor:default;opacity:.75}
.pv-ai-sheet-pal small{font-size:12px;color:var(--tx3)}
/* Punch in: the picture zoomed and re-centred inside its frame (frame, enlarged view, printout). */
.pv-crop{position:absolute;inset:0;transform-origin:center;will-change:transform}
.pv-crop>img,.pv-crop>canvas{width:100%;height:100%;object-fit:cover;display:block}
.pv-lightbox-pic{overflow:hidden}
.pv-frame-tools button.on{box-shadow:inset 0 0 0 1.5px var(--pv-acc);color:var(--pv-acc)}
/* 🎨 Look panel: floats under the picture's upper-right corner (the frame and the large view clip their contents). */
.pv-look-panel{position:fixed;z-index:150;width:min(320px,calc(100vw - 16px));max-height:min(560px,calc(100vh - 24px));overflow:auto;display:flex;flex-direction:column;gap:10px;padding:10px 12px 12px;border-radius:12px;border:1px solid var(--line2);background:var(--bg2);color:var(--tx);box-shadow:0 12px 40px rgba(0,0,0,.45);cursor:default}
.pv-look-panel header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.pv-look-panel header strong{font-size:14px}
.pv-look-panel section{display:flex;flex-direction:column;gap:6px}
.pv-look-panel h4{margin:0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--tx3)}
.pv-look-layers{display:flex;flex-direction:column;gap:6px}
.pv-look-top{align-self:flex-start;font-size:12px;font-weight:700;color:var(--pv-acc)}
.pv-look-layer{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:8px;border-radius:10px;border:1px solid var(--line);background:var(--bg)}
.pv-look-layers .pv-look-layer:first-of-type{border-color:var(--pv-acc)}
.pv-look-layer-name{font-size:12px;color:var(--tx3);min-width:84px}
.pv-look-layer select{flex:1 1 140px;min-width:0;font-size:13px}
.pv-look-mix{display:flex;align-items:center;gap:6px;flex-basis:100%}
.pv-look-mix input[type=range]{flex:1;min-width:60px;accent-color:var(--pv-acc)}
.pv-look-swap{align-self:center;min-height:30px;padding:4px 12px;font-size:13px}
.pv-look-slider{display:grid;grid-template-columns:86px 1fr 40px;align-items:center;gap:8px;font-size:13px}
.pv-look-slider input[type=range]{width:100%;accent-color:var(--pv-acc)}
.pv-look-slider output{font-size:12px;color:var(--tx2);text-align:right;font-variant-numeric:tabular-nums}
.pv-look-panel footer{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;padding-top:4px;border-top:1px solid var(--line)}
/* Clone look: the banner while it's on, "Paste look here" over every other frame, and a tag on the frame it came from. */
.pv-clone-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding:8px 12px;border-radius:10px;border:1px solid var(--pv-acc);background:color-mix(in srgb,var(--pv-acc) 12%,transparent);font-size:14px}
/* Apply look over the picture: only its button takes clicks, so the corner tools (and the 🎨 panel) still work. */
.pv-paste-look{position:absolute;inset:0;z-index:3;display:grid;place-items:center;background:rgba(0,0,0,.35);pointer-events:none}
.pv-paste-look .pv-btn{pointer-events:auto}
.pv-frame-img:has(.pv-paste-look) .pv-frame-tools{z-index:4}
.pv-clone-source{position:absolute;left:8px;bottom:8px;z-index:3;padding:3px 8px;border-radius:10px;background:var(--pv-acc);color:var(--pv-on);font-size:12px;font-weight:700}
.pv-zoom-stage{position:relative;overflow:hidden;margin:0 auto;border-radius:10px;background:#000;touch-action:none;user-select:none;max-width:100%}
.pv-zoom-stage.can-drag{cursor:grab}
.pv-zoom-stage.can-drag:active{cursor:grabbing}
.pv-zoom-hint{margin:0;text-align:center}
.pv-zoom-controls{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.pv-zoom-slider{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--tx2)}
.pv-zoom-slider input{width:min(320px,60vw)}
.pv-zoom-slider output{min-width:44px;font-variant-numeric:tabular-nums;color:var(--tx)}
.pv-zoom-foot{display:flex;justify-content:flex-end;gap:8px}
/* Storyboard drag and drop: grab a panel anywhere outside its fields; a bar shows where it will land. */
.pv-frame{cursor:grab}
.pv-frame input,.pv-frame textarea,.pv-frame select,.pv-frame button{cursor:auto}
.pv-frame button{cursor:pointer}
.pv-frame.dragging{opacity:.4}
.pv-frame.drop-before{box-shadow:-5px 0 0 0 var(--pv-acc)}
.pv-frame.drop-after{box-shadow:5px 0 0 0 var(--pv-acc)}
/* Shot list drag and drop: the same cues, above or below the card. */
.pvs-shot.dragging{opacity:.4}
.pvs-shot.drop-before{box-shadow:0 -5px 0 0 var(--pv-acc)}
.pvs-shot.drop-after{box-shadow:0 5px 0 0 var(--pv-acc)}
.pvs-shot[draggable="true"]{cursor:grab}
/* PreVis Pro tile on the project hub: full width under the three-across module tiles, in PreVis Pro's blue-violet. */
/* PreVis-branded buttons outside PreVis Pro (e.g. admin's Give / Remove PreVis Pro access): purple fill, or purple stroke. */
.previs-hdrbtn{--pvb:#8b9cff;display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;border:1.5px solid var(--pvb);color:var(--pvb);font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap;line-height:1.4}
.previs-hdrbtn:hover{background:color-mix(in srgb,var(--pvb) 16%,transparent)}
.btn.previs-fill{--pvb:#8b9cff;background:var(--pvb);border-color:var(--pvb);color:#0b0d1f;font-weight:700}
.btn.previs-fill:hover:not(:disabled){background:#a3b1ff;border-color:#a3b1ff}
.btn.previs-stroke{--pvb:#8b9cff;background:transparent;border:1.5px solid var(--pvb);color:var(--pvb);font-weight:700}
.btn.previs-stroke:hover:not(:disabled){background:color-mix(in srgb,var(--pvb) 14%,transparent)}
:root[data-theme="light"] .btn.previs-fill{--pvb:#4b5bd6;color:#fff}
@media (prefers-color-scheme:light){:root[data-theme="system"] .btn.previs-fill{--pvb:#4b5bd6;color:#fff}}
:root[data-theme="light"] .btn.previs-fill:hover:not(:disabled){background:#3d4cc4;border-color:#3d4cc4}
@media (prefers-color-scheme:light){:root[data-theme="system"] .btn.previs-fill:hover:not(:disabled){background:#3d4cc4;border-color:#3d4cc4}}
:root[data-theme="light"] .btn.previs-stroke,:root[data-theme="light"] .sent-type.previs,:root[data-theme="light"] .sent-chip.previs{--pvb:#4b5bd6}
@media (prefers-color-scheme:light){:root[data-theme="system"] .btn.previs-stroke,:root[data-theme="system"] .sent-type.previs,:root[data-theme="system"] .sent-chip.previs{--pvb:#4b5bd6}}
/* PreVis Pro button at the right end of a project's module row (AddonNavButtons) — the tile's blue-violet. */
.modnavbar .previs-navbtn{margin-left:auto;display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap;--pvt:#8b9cff;--pvt2:#c39bff;color:var(--pvt);border:1.5px solid var(--pvt);background:linear-gradient(120deg,color-mix(in srgb,var(--pvt) 22%,transparent),color-mix(in srgb,var(--pvt2) 14%,transparent));transition:box-shadow .15s,color .15s}
.modnavbar .previs-navbtn:hover{color:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--pvt) 30%,transparent)}
/* Accounting button in the module row (AddonNavButtons): PreVis Pro's button in the brand green. It takes the
   right end when it shows, and PreVis Pro sits just after it. */
.modnavbar .acct-navbtn{margin-left:auto;display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap;--act:#4ea87a;--act2:#6bc496;color:var(--act2);border:1.5px solid var(--act);background:linear-gradient(120deg,color-mix(in srgb,var(--act) 22%,transparent),color-mix(in srgb,var(--act2) 14%,transparent));transition:box-shadow .15s,color .15s}
.modnavbar .acct-navbtn:hover{color:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--act) 30%,transparent)}
:root[data-theme="light"] .modnavbar .acct-navbtn{--act:#1f8a55;--act2:#1f8a55}
:root[data-theme="light"] .modnavbar .acct-navbtn:hover{color:#0b3d24}
.modnavbar .acct-navbtn + .previs-navbtn{margin-left:10px}
/* The hub's full-width bands under the module tiles — Accounting (green) above PreVis Pro (blue-violet). Half the height
   they used to be: the mark, name and description as one paragraph running the width, and Open floated to the bottom
   right of the last line. */
.hubtile.hubband{--bd:#8b9cff;--bd2:#c39bff;flex:0 1 632px;flex-direction:row;align-items:center;padding:10px 18px;border:1.5px solid var(--bd);background:linear-gradient(120deg,color-mix(in srgb,var(--bd) 22%,var(--bg2)),color-mix(in srgb,var(--bd2) 14%,var(--bg2)) 60%,var(--bg2));text-decoration:none;color:inherit;transition:border-color .15s,transform .15s,box-shadow .15s}
.hubtile.hubband:hover{border-color:var(--bd2);transform:translateY(-1px);box-shadow:0 8px 28px color-mix(in srgb,var(--bd) 30%,transparent)}
.hubtile.previs-tile{--bd:#8b9cff;--bd2:#c39bff}
:root[data-theme="light"] .hubtile.previs-tile{--bd:#4b5bd6;--bd2:#7b4fd6}
@media (prefers-color-scheme:light){:root[data-theme="system"] .hubtile.previs-tile{--bd:#4b5bd6;--bd2:#7b4fd6}}
.hubtile.acct-tile{--bd:#4ea87a;--bd2:#6bc496}
:root[data-theme="light"] .hubtile.acct-tile{--bd:#1f8a55;--bd2:#2fa56a}
.hubband-icon{display:inline-block;vertical-align:-4px;margin-right:8px;color:var(--bd)}
.hubband-icon svg{display:block}
.hubband-text{display:block;flex:1;min-width:0;font-size:14px;line-height:21px;color:var(--tx2)}
.hubband-name{font:700 17px/21px var(--font-outfit,'Outfit'),var(--sans);color:var(--bd);margin-right:4px}
.hubband-go{float:right;margin-left:14px;font-size:14px;font-weight:600;color:var(--bd);white-space:nowrap}
@media (prefers-reduced-motion:reduce){.hubtile.hubband{transition:none}.hubtile.hubband:hover{transform:none}}
/* AI dialog: the editable continuity checklist ("Keep exactly"). */
.pv-ai-keep textarea{font-size:13px;line-height:1.5;min-height:110px;text-transform:none;letter-spacing:0;font-weight:400;color:var(--tx);background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:8px 10px;font-family:inherit;resize:vertical}
.pv-ai-keep small{text-transform:none;letter-spacing:0;font-weight:400}

/* The shared footer on the Start Page (the sales page styles its own in site.css): links lined up with the project
   tiles' left edge, under the last row; the copyright line centred below. */
.hub-footer{width:100%;align-self:stretch;box-sizing:border-box;margin-top:48px;padding-top:20px;border-top:1px solid var(--line);color:var(--tx3);font-size:13px}
.hub-footer .site-footer-links{display:flex;flex-wrap:wrap;gap:10px 22px;justify-content:flex-start}
.hub-footer a{color:var(--tx2);text-decoration:none}
.hub-footer a:hover{color:var(--tx)}
.hub-footer .site-footer-copy{margin:24px 0 8px;text-align:center;font-size:13px;color:var(--tx3)}
/* Privacy Policy / Terms of Service popups (FooterLink) — on the Start Page and the sales page. */
.legal-pop-bg{position:fixed;inset:0;z-index:200;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.legal-pop{width:min(760px,100%);max-height:calc(100vh - 32px);display:flex;flex-direction:column;background:#12161b;color:#eef2f6;border:1px solid #262e37;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.5);text-align:left}
.legal-pop-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 22px 12px;border-bottom:1px solid #262e37}
.legal-pop-head h2{margin:0;font-size:20px;line-height:1.3}
.legal-pop-date{margin:4px 0 0;font-size:13px;color:#a9b5c1}
.legal-pop-x{flex:none;width:32px;height:32px;border-radius:50%;border:1px solid #262e37;background:transparent;color:#eef2f6;font-size:20px;line-height:1;cursor:pointer}
.legal-pop-x:hover{background:#1a2027}
.legal-pop-body{overflow:auto;padding:16px 22px;font-size:14px;line-height:1.6;color:#d6dde4}
.legal-pop-body a{color:#e9b04a}
.legal-pop-body h2,.legal-pop-body h3{color:#eef2f6;margin:20px 0 6px;font-size:16px}
.legal-pop-loading{color:#a9b5c1}
.legal-pop-note{margin:0 0 14px;padding:10px 12px;border:1px solid #262e37;border-radius:8px;background:#1a2027;font-size:14px;line-height:1.5;color:#d6dde4}
.legal-pop-foot{display:flex;justify-content:flex-end;padding:12px 22px;border-top:1px solid #262e37}
.legal-pop-close{font:inherit;font-size:14px;font-weight:600;padding:8px 18px;border-radius:8px;border:1px solid #e9b04a;background:transparent;color:#e9b04a;cursor:pointer}
.legal-pop-close:hover{background:rgba(233,176,74,.12)}
/* The beta signup page's welcome message (written in Manage Front End): paragraphs look like the page's lede. */
.beta-welcome-body p,.beta-welcome-body li{margin:0 0 12px;font-size:16px;line-height:1.6;color:var(--tx2)}
.beta-welcome-body a{color:var(--acc)}
/* In the editor: the welcome and the sign-up form side by side, so every word on the page can be edited. */
.beta-editor-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:20px;width:100%;max-width:1560px;align-items:start}
.beta-editor-steps .beta-card{max-width:none}
/* The beta NDA (/nda, components/site/blocks.tsx NdaPage + NdaSignForm.tsx): the agreement in its own scroll box with the
   signing card right under it; signatures on a white "paper" card in dark ink, in every theme. */
.nda-shell .beta-card{max-width:820px}
.nda-shell .beta-card+.beta-card,.nda-shell .beta-card+form.beta-card,.nda-shell form.beta-card+.beta-card{margin-top:16px}
.nda-tag{margin-bottom:12px}
.nda-intro p{margin:0 0 14px;font-size:16px;line-height:1.6;color:var(--tx2)}
.nda-doc{max-height:min(52vh,560px);overflow-y:auto;border:1px solid var(--line);border-radius:10px;padding:12px 18px 6px;background:var(--bg)}
.nda-doc:focus-visible{outline:2px solid var(--acc-stroke);outline-offset:2px}
.legal ol{margin:0 0 12px;padding-left:24px}
.nda-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 16px;margin:4px 0 18px}
.nda-grid .field input,.nda-grid .field select{width:100%;min-height:38px;font-size:15px}
.nda-sign-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.nda-sign-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3);font-weight:600}
.nda-paper{position:relative;display:flex;align-items:center;justify-content:center;min-height:120px;padding:8px 18px 20px;background:#fff;border:1px solid var(--line2);border-radius:8px}
.nda-paper::after{content:"";position:absolute;left:24px;right:24px;bottom:22px;border-bottom:1px solid #c5cdd5;pointer-events:none}
.nda-paper-pad{padding:0}
.nda-pad{position:relative;z-index:1;display:block;width:100%;height:150px;touch-action:none;cursor:crosshair}
.nda-sig-typed{position:relative;z-index:1;font-family:var(--font-signature),"Snell Roundhand","Segoe Script","Brush Script MT",cursive;font-size:40px;font-weight:600;line-height:1.25;color:#1b2430;text-align:center;overflow-wrap:anywhere}
.nda-sig-img{position:relative;z-index:1;display:block;max-width:100%;max-height:140px}
.nda-pad-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:6px}
.nda-accept{display:flex;gap:12px;align-items:flex-start;margin-top:18px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--bg2);cursor:pointer;font-size:15px;line-height:1.5;color:var(--tx)}
.nda-accept input{flex:none;width:18px;height:18px;margin:3px 0 0;accent-color:var(--acc)}
.nda-error{margin:12px 0 0;font-size:14px;color:var(--bad)}
.nda-check{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:12px;border-radius:50%;background:var(--good);color:#fff;font-size:24px;font-weight:800}
.nda-signed-grid{margin-top:8px;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.nda-signed-row{display:grid;grid-template-columns:200px 1fr;gap:12px;align-items:start;padding:10px 14px;font-size:14px}
.nda-signed-row+.nda-signed-row{border-top:1px solid var(--line)}
.nda-signed-k{padding-top:2px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--tx3);font-weight:600}
.nda-signed-v{color:var(--tx);overflow-wrap:anywhere}
.nda-paper-shown{justify-content:flex-start;min-height:96px;max-width:440px}
.nda-continue{text-transform:uppercase}
/* The "sign the NDA first" popup over the app (components/NdaRequiredPopup.tsx): above everything, nothing behind it reachable. */
.nda-popup-bg{z-index:1000}
.nda-popup-title{text-transform:uppercase;letter-spacing:.04em}
.nda-popup-body{margin:12px 0 0;font-size:16px;line-height:1.55;color:var(--tx2)}
.nda-popup-body p{margin:0 0 8px}.nda-popup-body p:last-child{margin:0}
.nda-popup-btn{margin-top:22px;text-transform:uppercase}
.nda-popup-preview{margin:0 auto;max-height:none}
/* Words typed in the page editor (Admin → Front end) keep their line breaks wherever the pages show them: the sales
   and legal pages (.site), the beta signup and NDA pages (.beta-shell) and the NDA popup. Rich text (.s-rt) and other
   saved HTML lays itself out as HTML. */
.site,.beta-shell,.nda-popup{white-space:pre-line}
.s-rt,.legal-body,.beta-welcome-body{white-space:normal}
/* Admin "View as": a note on the popup saying it's what that person sees. */
.nda-popup-preview-note{margin:0 0 14px;padding:8px 12px;border:1px dashed var(--line2);border-radius:8px;font-size:14px;line-height:1.45;color:var(--tx2)}
@media (max-width:640px){.nda-grid{grid-template-columns:1fr}.nda-signed-row{grid-template-columns:1fr;gap:4px}.nda-sig-typed{font-size:32px}}
@media print{.nda-noprint{display:none!important}.nda-doc{max-height:none!important;overflow:visible!important;border:0;padding:0}}
/* The public pages' language picker (components/site/SiteLanguagePicker.tsx): the flag + "Select language" in the
   page's language; the app's own language chips (.langgrid/.langchip) open below it. Sales page header and beta page. */
.langpick{position:relative;display:inline-flex}
.langpick-btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--line);color:var(--tx2);font-size:14px;line-height:1;white-space:nowrap}
.langpick-btn:hover,.langpick-btn[aria-expanded="true"]{color:var(--tx);border-color:var(--tx3)}
.langpick-flag{font-size:18px;line-height:1}
.langpick-caret{font-size:12px;color:var(--tx3)}
.langpick-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:60;box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:min(70vh,560px);overflow-y:auto;padding:14px;border-radius:12px;background:var(--bg2);border:1px solid var(--line);box-shadow:0 24px 60px -20px rgba(0,0,0,.7);text-align:left}
.langpick-title{margin:0 0 10px;font-size:14px;font-weight:600;color:var(--tx2)}
.langpick-menu .langgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.langpick-menu .langchip{width:100%}
.langpick-center .langpick-menu{right:auto;left:50%;transform:translateX(-50%)}
.beta-langpick{display:flex;justify-content:center;margin:0 0 18px}
.site .langpick-btn{border-color:var(--s-line);color:var(--s-tx2)}
.site .langpick-btn:hover,.site .langpick-btn[aria-expanded="true"]{color:var(--s-tx);border-color:var(--s-tx3)}
.site .langpick-menu{background:var(--s-bg2);border-color:var(--s-line)}
/* A narrower header keeps just the flag; on a phone the chips open across the screen under the header. */
@media (max-width:999px){.s-header .langpick-label{display:none}.s-header .langpick-btn{padding:0 12px}}
@media (max-width:759px){.s-header .langpick-menu{position:fixed;top:72px;left:16px;right:16px;width:auto}}

/* Every dropdown shows all of its chosen words, everywhere (2026-10-05): never narrower than its own
   text, and never with the text right up against its outline. The icon-only pickers (select.gpick)
   and the borderless in-table dropdowns keep their own sizing. Layouts that hold dropdowns make room
   for this (wrapping rows, wider grid columns) rather than cutting the words off. */
select:not(.gpick){field-sizing:content;min-width:max-content!important}
select:not(.gpick):not(td select):not(.posselect){padding-left:8px}

/* ── Schedule → Pipeline (animated projects): components/AnimationPipelineView.tsx ── */
.anp-card{margin-bottom:16px}
.anp-intro{margin:0 0 12px;max-width:900px}
.anp-error{margin:0 0 12px;padding:8px 12px;border:1px solid var(--bad);border-radius:6px;color:var(--bad);font-size:13px}
.anp-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.anp-toolbar .grow{flex:1}
.anp-field{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--tx2)}
.anp-field input{background:var(--bg);border:1px solid var(--line2);border-radius:6px;color:var(--tx);padding:4px 8px;font:inherit;font-size:13px;min-height:28px}
.anp-total{font-size:13px;color:var(--tx2);font-weight:600}
.anp-add{background:transparent;border:1px solid var(--acc-stroke);border-radius:6px;color:var(--tx);padding:4px 9px;font:inherit;font-size:12px;min-height:28px;cursor:pointer}
.anp-add option{background:var(--bg2);color:var(--tx)}
.anp-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:6px;background:var(--bg)}
.anp-grid{position:relative;min-width:100%}
.anp-row{display:flex;align-items:stretch;border-bottom:1px solid var(--line);min-height:34px}
.anp-row:last-child{border-bottom:0}
.anp-row.anp-over{box-shadow:inset 0 2px 0 var(--acc)}
.anp-head{min-height:28px;background:var(--bg2)}
.anp-name{position:sticky;left:0;z-index:2;flex:0 0 240px;width:240px;display:flex;align-items:center;gap:7px;padding:0 8px;background:var(--bg2);border-right:1px solid var(--line);font-size:13px;color:var(--tx);user-select:none}
.anp-name[draggable="true"]{cursor:grab}
.anp-name-head{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--tx2);font-weight:700}
.anp-grip{color:var(--tx3);font-size:13px;line-height:1}
.anp-swatch{flex:0 0 10px;width:10px;height:10px;border-radius:3px}
.anp-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.anp-rename{flex:1;min-width:0;background:var(--bg);border:1px solid var(--acc);border-radius:4px;color:var(--tx);font:inherit;font-size:13px;padding:2px 6px}
.anp-x{flex:0 0 auto;background:transparent;border:0;color:var(--tx3);font-size:16px;line-height:1;cursor:pointer;padding:0 2px;opacity:0;transition:opacity .12s}
.anp-name:hover .anp-x,.anp-seq:hover .anp-x,.anp-x:focus-visible{opacity:1}
.anp-x:hover{color:var(--bad)}
.anp-track{position:relative;flex:0 0 auto;background-image:repeating-linear-gradient(to right,var(--line) 0 1px,transparent 1px 64px)}
.anp-head .anp-track{background-image:none}
.anp-tick{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding-left:4px;border-left:1px solid var(--line2);font-size:12px;color:var(--tx2);white-space:nowrap}
.anp-bar{position:absolute;top:6px;bottom:6px;border-radius:5px;display:flex;align-items:center;justify-content:center;overflow:hidden;color:#0e1114;font-size:12px;font-weight:700;box-shadow:0 1px 2px rgba(0,0,0,.35);touch-action:none}
.anp-bar-edit{cursor:grab}
.anp-bar-edit:active{cursor:grabbing}
.anp-bar-text{pointer-events:none;white-space:nowrap;padding:0 8px}
.anp-edge{position:absolute;top:0;bottom:0;width:8px;cursor:ew-resize;touch-action:none}
.anp-edge-l{left:0}
.anp-edge-r{right:0}
.anp-edge:hover{background:rgba(0,0,0,.18)}
.anp-dragging{opacity:.45}
.anp-empty{padding:18px;font-size:14px;color:var(--tx2);text-align:center}
.anp-board{display:flex;gap:10px;padding:10px;min-width:max-content}
.anp-col{flex:0 0 190px;width:190px;display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--bg2);min-height:120px}
.anp-col-over{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}
.anp-col-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:var(--tx2);padding:0 2px 4px;border-bottom:1px solid var(--line)}
.anp-count{font-size:12px;color:var(--tx3);font-weight:600}
.anp-seq{background:var(--bg3);border:1px solid var(--line2);border-radius:6px;padding:7px 9px;cursor:grab;user-select:none}
.anp-seq-over{box-shadow:0 -3px 0 var(--acc)}
.anp-seq-top{display:flex;align-items:center;gap:6px}
.anp-seq-name{flex:1;min-width:0;font-size:13px;font-weight:700;color:var(--tx);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.anp-seq-meta{display:flex;justify-content:space-between;gap:8px;margin-top:3px;font-size:12px;color:var(--tx2)}
.anp-drop{flex:1;display:flex;align-items:center;justify-content:center;border:1px dashed var(--line2);border-radius:6px;font-size:12px;color:var(--tx3);min-height:48px}

/* Touch screens (iPad): no hover, so anything that only appeared on hover
   shows all the time, and press-and-hold to drag (TouchDragBridge) doesn't
   open the text/image callout or start a text selection. */
@media (hover:none){
  .anp-x{opacity:1}
  .pv-picker-sw-x{display:block}
  [draggable="true"]{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
}

/* Globals → Global Rate: the rate, per day / per week, and Prefill on one line (wrapping on a narrow screen). */
.grate{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px}
.grate > .field{flex:1 1 160px;max-width:240px}
.grate-tog{padding-bottom:9px;white-space:nowrap}

/* A catering line's "Select from list" (LineVendorPick.tsx): the picker and its ↻ stay together, and a description
   cell too narrow for them (a long vendor name and total, a narrow window) wraps them under the description, at its
   right edge, instead of pushing the ↻ into the Qty column. */
.desccell:has(> .lvp){flex-wrap:wrap;row-gap:4px}
.lvp{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;max-width:100%;margin-left:auto}

/* Budget department rows: the green ↕ drag handle (DragHandleCell.tsx / SortableLines.tsx) and where a dragged row will land. */
th.c-drag,td.c-drag{width:27px;padding-left:6px!important;padding-right:0!important}
.drag-handle{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;box-sizing:border-box;border-radius:4px;background:transparent;border:1.5px solid var(--good);color:var(--good);font-size:12px;font-weight:700;line-height:1;cursor:grab;user-select:none;touch-action:none}
.drag-handle:hover{background:color-mix(in srgb,var(--good) 15%,transparent)}
.drag-handle:active{cursor:grabbing}
tr.drag-src{opacity:.45}
tr.drop-before > td{box-shadow:inset 0 3px 0 0 var(--good)}
tr.drop-after > td{box-shadow:inset 0 -3px 0 0 var(--good)}
body.row-dragging,body.row-dragging *{cursor:grabbing!important;user-select:none}

/* Project Settings' Danger zone card: the same red as its Clear All Data button, on the card's edge and heading, so the
   one destructive section reads as such before anything in it is clicked. */
.card.dangerzone{border-color:color-mix(in srgb,var(--bad) 45%,transparent);border-left:4px solid var(--bad)}
.card.dangerzone > h2{color:var(--bad);background:color-mix(in srgb,var(--bad) 8%,var(--bg3));border-bottom-color:color-mix(in srgb,var(--bad) 30%,transparent)}

/* A project's last Delete check (ProjectRemoveFlow.tsx — the Start Page's and PreVis Pro's): what goes, as the house
   note with its stripe in red, so the one step that can't be undone doesn't read like an ordinary hint. */
.remove-final-note{margin:0;padding:2px 0 2px 12px;border-left:3px solid var(--bad);color:var(--tx);line-height:1.55}

/* Email preferences page (app/email-preferences): one box per kind of email, marketing's topics under it. */
.prefs-group{border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin-top:12px;background:var(--bg)}
.prefs-head{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:6px;font-size:16px}
label.prefs-head{justify-content:flex-start}
.prefs-on{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;background:var(--good);color:var(--on-good)}
.prefs-topics{margin-top:10px;padding-left:4px;font-size:16px}
.prefs-saved{margin-top:14px;padding:10px 14px;border-radius:8px;border:1px solid var(--good);color:var(--good-text);font-size:14px}
.prefs-sub{display:block;margin:8px 0 4px;font-size:15px}
.prefs-warn{margin:0 0 14px;padding:10px 14px;border-radius:8px;border:1px solid var(--acc-stroke);color:var(--tx);font-size:14px;line-height:1.45}

/* Refer & Earn before joining: How it works (components/ReferHowItWorks.tsx) and the sign-up box under the Affiliate Terms (components/AffiliateJoinBox.tsx). */
.refer-how{margin:0 0 8px}
.refer-how-title{margin:0 0 4px;font-size:18px;color:var(--tx)}
.refer-how-intro{margin:0 0 14px;font-size:14px;line-height:1.5;color:var(--tx2)}
.refer-how .howto-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
@media (max-width:600px){.refer-how .howto-grid{grid-template-columns:1fr}}
.refer-signup{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px}
.refer-signup .hint{margin:0;font-size:13px;color:var(--tx2)}
.refer-join{box-sizing:border-box;width:100%;max-width:820px;flex-shrink:0;margin:20px auto 48px;padding:20px;border:1px solid var(--line2);border-radius:12px;background:var(--bg2);color:var(--tx)}
.refer-join h3{margin:0 0 6px;font-size:18px}
.refer-join p{margin:0 0 12px;font-size:14px;line-height:1.5;color:var(--tx2)}
.refer-join-agree{display:flex;gap:8px;align-items:flex-start;margin:0 0 14px;font-size:14px;cursor:pointer}
.refer-join-agree input{margin-top:3px}
.refer-join-btns{display:flex;flex-wrap:wrap;gap:10px}
.refer-join .refer-join-error{margin:10px 0 0;color:var(--bad)}
/* My Account → Your data → IMPORT DATA (components/ImportDataWizard.tsx): warnings, progress, the choices table. */
.import-data-btn{font-weight:800;letter-spacing:.04em;padding:9px 20px}
.import-warn{display:block;padding:10px 12px;border-radius:8px;border:1px solid color-mix(in srgb,var(--acc) 55%,transparent);background:color-mix(in srgb,var(--acc) 12%,transparent);color:var(--tx);font-size:13px;line-height:1.5}
.import-warn b{display:block;margin-bottom:4px}
.import-warn p{margin:0}
.import-wizard{max-width:720px;width:calc(100vw - 32px)}
.import-wizard .card-body{max-height:calc(100vh - 140px);overflow:auto}
.import-list{margin:0;padding-left:20px;line-height:1.55;font-size:13px}
.import-list li{margin:3px 0}
.import-error{color:var(--bad);margin:12px 0 0}
.import-bar{height:10px;border-radius:999px;background:var(--bg4);overflow:hidden}
.import-bar span{display:block;height:100%;background:var(--acc);transition:width .2s}
.import-table{width:100%;border-collapse:collapse;font-size:13px}
.import-table th{text-align:left;font-size:12px;color:var(--tx2);font-weight:700;padding:6px 8px;border-bottom:1px solid var(--line)}
.import-table td{padding:8px;border-bottom:1px solid var(--line);vertical-align:middle}
.import-table select{min-width:190px}
.import-here{color:var(--acc-text);font-weight:700}
.import-groups{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.import-groups label{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:13px}
.import-summary{margin-top:14px;padding:10px 12px;border-radius:8px;background:var(--bg3);font-size:13px}
.import-warn-line{margin:6px 0 0;color:var(--acc-text);font-weight:700}
@media (max-width:600px){.import-table select{min-width:0;width:100%}.import-table th:nth-child(2),.import-table td:nth-child(2){display:none}}

/* ── PostPro (app/dashboard/projects/[projectId]/postpro) ─────────────────────────────────────────────────────────
   PostPro orange (#F58727, owner 2026-11-13): its own accent. Any PostPro button anywhere is PostPro orange (fill or
   stroke). Tokens on .pp (the module) and .pp-modal (popups portaled to <body>); the module
   row button and the hub band live here because they show outside PostPro. The rest is postpro/postpro.css. */
.pp,.pp-modal{--pp-acc:#f58727;--pp-acc2:#ffb574;--pp-on:#2a1300}
:root[data-theme="light"] .pp,:root[data-theme="light"] .pp-modal{--pp-acc:#a54d0b;--pp-acc2:#7f3a06;--pp-on:#ffffff}
@media (prefers-color-scheme:light){:root[data-theme="system"] .pp,:root[data-theme="system"] .pp-modal{--pp-acc:#a54d0b;--pp-acc2:#7f3a06;--pp-on:#ffffff}}
.modnavbar .postpro-navbtn{margin-left:10px;display:inline-flex;align-items:center;gap:8px;padding:6px 14px;border-radius:999px;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap;--ppt:#f58727;--ppt2:#ffb574;color:var(--ppt);border:1.5px solid var(--ppt);background:linear-gradient(120deg,color-mix(in srgb,var(--ppt) 22%,transparent),color-mix(in srgb,var(--ppt2) 14%,transparent));transition:box-shadow .15s,color .15s}
.modnavbar .postpro-navbtn:first-child,.modnavbar .modlink + .postpro-navbtn,.modnavbar span + .postpro-navbtn{margin-left:auto}
.modnavbar .postpro-navbtn:hover,.modnavbar .postpro-navbtn.on{color:#fff;box-shadow:0 0 0 3px color-mix(in srgb,var(--ppt) 30%,transparent)}
.modnavbar .postpro-navbtn.on{background:var(--ppt);color:#2a1300}
:root[data-theme="light"] .modnavbar .postpro-navbtn{--ppt:#a54d0b;--ppt2:#7f3a06}
:root[data-theme="light"] .modnavbar .postpro-navbtn.on{color:#fff}
.hubtile.postpro-tile{--bd:#f58727;--bd2:#ffb574}
:root[data-theme="light"] .hubtile.postpro-tile{--bd:#a54d0b;--bd2:#7f3a06}
@media (prefers-color-scheme:light){:root[data-theme="system"] .hubtile.postpro-tile{--bd:#a54d0b;--bd2:#7f3a06}}
.hubtile.postpro-tile.off{opacity:.75;cursor:default}
.hubtile.postpro-tile.off:hover{transform:none;box-shadow:none;border-color:var(--bd)}
.btn.postpro-fill{background:#f58727;border-color:#f58727;color:#2a1300;font-weight:700}
.btn.postpro-fill:hover:not(:disabled){filter:brightness(1.08)}
.btn.postpro-stroke{background:transparent;border:1.5px solid #f58727;color:#f58727;font-weight:600}
.btn.postpro-stroke:hover:not(:disabled){background:color-mix(in srgb,#f58727 14%,transparent)}
:root[data-theme="light"] .btn.postpro-fill{background:#a54d0b;border-color:#a54d0b;color:#fff}
:root[data-theme="light"] .btn.postpro-stroke{border-color:#a54d0b;color:#a54d0b}
.postpro-hdrbtn{--ppb:#f58727;display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;border:1.5px solid var(--ppb);color:var(--ppb);font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap;line-height:1.4}
.postpro-hdrbtn:hover{background:color-mix(in srgb,var(--ppb) 16%,transparent)}
:root[data-theme="light"] .postpro-hdrbtn{--ppb:#a54d0b}
/* PostPro's bell (components/postpro/PostProBell.tsx), in the PostPro header. */
.pp-bell{position:relative;display:inline-flex}
.pp-bell-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--tx2);cursor:pointer}
.pp-bell-btn:hover{color:var(--pp-acc,#f58727);border-color:var(--pp-acc,#f58727)}
.pp-bell-n{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#f58727;color:#2a1300;font-size:12px;font-weight:800;line-height:18px;text-align:center}
.pp-bell-pop{position:absolute;right:0;top:40px;width:min(360px,90vw);max-height:420px;overflow:auto;background:var(--bg2);border:1.5px solid #f58727;border-radius:12px;box-shadow:0 18px 50px rgba(0,0,0,.45);z-index:950}
.pp-bell-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--line)}
.pp-bell-pop ul{list-style:none;margin:0;padding:0}
.pp-bell-pop li{display:flex;flex-direction:column;gap:2px;padding:9px 12px;border-bottom:1px solid var(--line);font-size:13px}
.pp-bell-pop li.unread{background:color-mix(in srgb,#f58727 8%,transparent)}
.pp-bell-pop li a{color:var(--tx);text-decoration:none}
.pp-bell-pop li a:hover{color:#f58727}
.pp-bell-pop li small{color:var(--tx3);font-size:12px}
/* With Accounting, PreVis Pro and PostPro all in the module row, a narrow window wraps the add-on buttons onto a second
   line instead of pushing the page sideways. When they fit, nothing moves. */
.modnavbar{flex-wrap:wrap;row-gap:6px}
/* The add-on buttons (components/AddonNavButtons.tsx): one group at the right end of the second header row, the same
   on project pages, the Start Page, the company pages and PreVis Pro. */
.modnavbar .addon-btns{margin-left:auto;display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}
.modnavbar .addon-btns>a{margin-left:0!important}
.modnavbar .previs-navbtn.on{background:var(--pvt);color:#0b0d1f;box-shadow:0 0 0 3px color-mix(in srgb,var(--pvt) 30%,transparent)}
.modnavbar .acct-navbtn.on{background:var(--act);color:#fff}


/* src/app/site.css */
/* Public sales site (components/site). Everything is scoped under .site so
   none of it reaches the app. Dark and cinematic by design, whatever the
   visitor's theme: the brand's amber on deep charcoal. Mobile first. */
.site{--s-bg:#0b0d10;--s-bg2:#12161b;--s-bg3:#1a2027;--s-line:#262e37;--s-tx:#eef2f6;--s-tx2:#a9b5c1;--s-tx3:#7f8c99;--s-acc:#e9b04a;--s-acc2:#f6cf7c;--s-on:#1a1206;--s-good:#5cc28e;--s-r:16px;
  background:var(--s-bg);color:var(--s-tx);font:400 16px/1.6 var(--sans);min-height:100vh;overflow-x:clip;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.site h1,.site h2,.site h3{font-family:var(--font-outfit,'Outfit'),var(--sans);letter-spacing:-.02em;color:var(--s-tx);margin:0}
.site a{color:inherit}
.s-wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.s-narrow{max-width:780px}
.s-narrow-wide{max-width:980px}
.s-center{text-align:center}
.s-eyebrow{margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--s-acc)}
.s-lede{margin:14px 0 0;font-size:18px;line-height:1.65;color:var(--s-tx2)}
.s-note{margin:14px 0 0;font-size:14px;color:var(--s-tx3)}
.s-footnote{margin:16px 0 0;font-size:13px;color:var(--s-tx3)}
.s-sec{position:relative;padding:72px 0}
.s-head{margin:0 auto 44px;text-align:center}
/* Each heading/intro keeps the 760px column unless its own width is set (textWidths). */
.site .s-head>*{max-width:760px;margin-left:auto;margin-right:auto}
.s-head h2{font-size:clamp(30px,4.4vw,46px);line-height:1.1}

/* Buttons */
.s-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.s-ctas-center{justify-content:center}
.s-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 26px;border-radius:999px;background:linear-gradient(135deg,var(--s-acc),var(--s-acc2));color:var(--s-on)!important;font:700 16px/1 var(--font-outfit,'Outfit'),var(--sans);text-decoration:none;box-shadow:0 10px 30px -10px rgba(233,176,74,.55);transition:transform .15s,box-shadow .15s}
.s-btn:hover{transform:translateY(-1px);box-shadow:0 16px 36px -12px rgba(233,176,74,.7)}
.s-btn-ghost{background:transparent;color:var(--s-tx)!important;border:1px solid var(--s-line);box-shadow:none}
.s-btn-ghost:hover{border-color:var(--s-acc);box-shadow:none}

/* Editor "look" settings: a frame around a section, and the cards/boxes inside it */
.s-frame{border-radius:var(--s-r)}
.s-k-bd :is(.s-card,.s-steps li,.s-plan,.s-faq-item,.s-badge,.s-band,.s-compare-scroll,.s-pt-scroll,.s-mock){border:var(--k-bd)}
.s-k-bg :is(.s-card,.s-steps li,.s-plan,.s-faq-item,.s-badge,.s-band,.s-compare-scroll,.s-pt-scroll,.s-mock){background:var(--k-bg);box-shadow:none}
.s-k-tx :is(.s-card,.s-steps li,.s-plan,.s-faq-item,.s-badge,.s-band) :is(p,h3,h2,li,span,strong){color:var(--k-tx)}
.s-k-r :is(.s-card,.s-steps li,.s-plan,.s-faq-item,.s-badge,.s-band,.s-compare-scroll,.s-pt-scroll,.s-mock){border-radius:var(--k-r)}
.s-k-pad :is(.s-card,.s-steps li,.s-plan,.s-faq-item,.s-badge,.s-band){padding:var(--k-pad)}
/* A button with its own border/fill: drop the built-in gradient and glow so the chosen look shows exactly. */
.s-btn-custom{background-image:none;box-shadow:none}
.s-btn-custom[style*="--b-tx"]{color:var(--b-tx)!important}
.s-btn-custom:hover{box-shadow:none;filter:brightness(1.08)}
.s-btn-custom[style*="--b-hover-bg"]{transition:transform .15s,background-color .15s}
.s-btn-custom[style*="--b-hover-bg"]:hover{background:var(--b-hover-bg)!important;filter:none}

/* A lone button between sections */
.s-btnblock-row{display:flex;justify-content:center}
.s-align-left{justify-content:flex-start}.s-align-right{justify-content:flex-end}

/* Editor-only resize handles (Admin → Front end). Never rendered on the live page. */
.s-editing>.s-wrap{position:relative}
.s-h{position:absolute;z-index:6;opacity:0;transition:opacity .15s}
.s-h::after{content:"";position:absolute;border-radius:3px;background:var(--s-acc)}
.s-editing:hover>.s-h,.s-editing:hover>div>.s-h,.s-editing[data-size] .s-h{opacity:1}
.s-h-top,.s-h-bottom{left:0;right:0;height:12px;cursor:ns-resize}
.s-h-top{top:0}.s-h-bottom{bottom:0}
.s-h-top::after,.s-h-bottom::after{left:50%;width:56px;height:4px;margin-left:-28px;top:4px}
.s-h-left,.s-h-right{top:0;bottom:0;width:12px;cursor:ew-resize}
.s-h-left{left:-6px}.s-h-right{right:-6px}
.s-h-left::after,.s-h-right::after{top:50%;height:56px;width:4px;margin-top:-28px;left:4px}
.s-editing[data-size]::before{content:attr(data-size);position:absolute;top:8px;right:8px;z-index:7;padding:4px 10px;border-radius:999px;background:var(--s-acc);color:var(--s-on);font:700 12px/1.2 var(--sans)}

/* Editor only: a section or list item switched off with "Show on the page" (lib/site/visibility.ts) — dimmed, with a
   "Hidden" tag, so it can be switched back on. The live page never draws it. */
.s-hid{outline:2px dashed rgba(233,176,74,.6);outline-offset:-2px}
.s-hid>:not(.s-hid-tag),.s-hid-item>:not(.s-hid-tag),.s-hid-in{opacity:.4}
.s-hid-item{outline:1px dashed rgba(233,176,74,.6);outline-offset:3px}
tr.s-hid-item>th{opacity:1}
.s-hid-tag{display:inline-flex;align-items:center;gap:4px;margin:0 0 0 8px;padding:2px 9px;border-radius:999px;background:var(--s-acc);color:var(--s-on);font:800 12px/1.35 var(--sans);letter-spacing:.04em;text-transform:none;white-space:nowrap;vertical-align:middle;pointer-events:none}
.s-hid>.s-hid-tag{position:absolute;top:10px;left:10px;z-index:8;margin:0}
.s-plan.s-hid-item>.s-hid-tag{position:absolute;top:-12px;right:20px;margin:0}
.s-card.s-hid-item>.s-hid-tag,.s-steps li.s-hid-item>.s-hid-tag,.s-faq-item.s-hid-item>.s-hid-tag{position:absolute;top:10px;right:10px;margin:0}
.s-card.s-hid-item,.s-steps li.s-hid-item,.s-faq-item.s-hid-item{position:relative}
.s-trust-row :is(.s-hid-in,.s-hid-tag)::before{content:none}

/* Header / footer */
.s-header{position:sticky;top:0;z-index:20;background:rgba(11,13,16,.78);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid rgba(255,255,255,.06)}
.s-header .s-wrap{display:flex;align-items:center;gap:20px;min-height:66px}
.s-logo{display:flex;align-items:center;gap:10px;text-decoration:none;font:800 17px/1 var(--font-outfit,'Outfit'),var(--sans);letter-spacing:.02em}
.s-logo img{height:34px;width:auto}
.s-nav{display:flex;gap:22px;margin-left:auto;font-size:15px}
.s-nav a{color:var(--s-tx2);text-decoration:none}
.s-nav a:hover{color:var(--s-tx)}
.s-header-ctas{display:flex;gap:10px;align-items:center}
.s-header-ctas .s-btn{min-height:40px;padding:0 18px;font-size:14px}
.s-signin{font-size:15px;color:var(--s-tx2)!important;text-decoration:none}
.s-footer{border-top:1px solid var(--s-line);padding:32px 0 40px;color:var(--s-tx3);font-size:14px}
.s-footer nav{display:flex;flex-wrap:wrap;gap:10px 22px;justify-content:flex-start}
.s-footer a{color:var(--s-tx2);text-decoration:none}
.s-footer a:hover{color:var(--s-tx)}
.s-footer .site-footer-copy{margin:28px 0 0;text-align:center;font-size:13px;color:var(--s-tx3)}

/* Hero */
.s-hero{position:relative;padding:64px 0 40px;overflow:hidden}
.s-hero-glow{position:absolute;inset:-30% -10% auto;height:120%;background:radial-gradient(60% 50% at 70% 30%,rgba(233,176,74,.22),transparent 70%),radial-gradient(40% 40% at 15% 10%,rgba(91,155,213,.16),transparent 70%);pointer-events:none}
.s-hero-grid{position:relative;display:grid;gap:44px;align-items:center}
.s-hero h1{font-size:clamp(40px,7vw,72px);line-height:1.02}
.s-hero h1 .s-eyebrow{display:block;font-family:var(--sans);line-height:1.6;letter-spacing:.16em}
.s-hero-copy .s-lede{font-size:clamp(17px,2.2vw,20px);max-width:600px}
.s-hero-visual{min-width:0}
.s-shot{display:block;width:100%;height:auto;border-radius:var(--s-r);border:1px solid var(--s-line);box-shadow:0 40px 80px -30px rgba(0,0,0,.8)}
.s-video{position:relative;aspect-ratio:16/9;border-radius:var(--s-r);overflow:hidden;border:1px solid var(--s-line);box-shadow:0 40px 80px -30px rgba(0,0,0,.8);background:#000}
.s-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Trust bar */
.s-trust{padding:14px 0 6px}
.s-trust-row{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px;font-size:14px;color:var(--s-tx3)}
.s-trust-row span::before{content:"✦ ";color:var(--s-acc)}

/* Feature grid */
.s-grid{display:grid;gap:16px;grid-template-columns:1fr}
/* Columns (the editor's Layouts): side by side from tablet width, stacked on phones; blocks inside sit closer than full-width sections. */
.s-cols-row{position:relative;display:grid;gap:var(--s-gap,32px);grid-template-columns:1fr;align-items:start}
.s-col{min-width:0}
@media (min-width:760px){.s-cols-row{grid-template-columns:var(--cols,1fr)}}
/* The editor's column edge (edit-handles.tsx ColumnEdge) — the email builder's: a blue bar with a white grip; shown on hover, always on touch screens. */
.s-coledge{position:absolute;top:0;bottom:0;width:24px;margin-left:-12px;z-index:5;cursor:ew-resize;touch-action:none;display:flex;justify-content:center;opacity:0;transition:opacity .15s}
.s-coledge::before{content:"";width:4px;border-radius:2px;background:var(--info,#5b9bd5);opacity:.85;pointer-events:none}
.s-coledge::after{content:"";position:absolute;top:50%;width:12px;height:28px;margin-top:-14px;border-radius:4px;background:#fff;border:2px solid var(--info,#5b9bd5);box-sizing:border-box;pointer-events:none}
.s-cols:hover .s-coledge,.s-coledge.on{opacity:1}
.s-coledge-badge{position:absolute;top:-30px;font:700 12px/1 system-ui,sans-serif;padding:5px 8px;border-radius:6px;background:#111827;color:#fff;white-space:nowrap;pointer-events:none}
.s-coledge-badge:empty{display:none}
@media (hover:none){.s-coledge{opacity:1}}
@media (max-width:759px){.s-coledge{display:none}}
.s-card{padding:26px;border-radius:var(--s-r);background:linear-gradient(180deg,var(--s-bg2),rgba(18,22,27,.4));border:1px solid var(--s-line);transition:border-color .2s,transform .2s}
.s-card:hover{border-color:rgba(233,176,74,.45);transform:translateY(-2px)}
.s-card-icon{display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:rgba(233,176,74,.12);font-size:22px;margin-bottom:14px}
.s-card h3{font-size:20px;margin-bottom:6px}
.s-card p{margin:0;color:var(--s-tx2);font-size:15px}

/* Feature rows */
.s-row{display:grid;gap:40px;align-items:center}
.s-row h2{font-size:clamp(28px,3.8vw,42px);line-height:1.12}
.s-row-visual{min-width:0}
/* Hero "Full width, below": the words centered above a picture as wide as the page (blocks.tsx Hero pictureSize). */
.s-hero-grid.s-hero-full{grid-template-columns:minmax(0,1fr)!important;gap:48px}
.s-hero-full .s-hero-copy{text-align:center}
.s-hero-full .s-hero-copy .s-lede{margin-left:auto;margin-right:auto;max-width:760px}
.s-hero-full .s-ctas{justify-content:center}
.s-hero-full .s-note{margin-left:auto;margin-right:auto;max-width:640px}
/* Headings and intros never leave one word alone on the last line (a text's own "Line breaks" choice wins). */
.site :is(h1,h2,h3,.s-lede){text-wrap:pretty}
/* "Caption under the picture" (Hero, Feature with picture). */
.s-caption{margin:14px 0 0;font-size:15px;line-height:1.5;color:var(--s-tx3);text-align:center}
/* Feature with picture: "Full width" puts the words above a picture as wide as the page (blocks.tsx FeatureRow pictureSize). */
.s-row.s-row-full{grid-template-columns:minmax(0,1fr)!important;gap:40px}
.s-row-full .s-row-copy{order:0!important;text-align:center}
.s-row-full .s-row-copy>:not(.s-checks){max-width:820px;margin-left:auto;margin-right:auto}
.s-row-full .s-checks{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 28px}
.s-checks{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:10px}
.s-checks li{position:relative;padding-left:30px;color:var(--s-tx2);font-size:16px}
.s-checks li::before{content:"✓";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:rgba(92,194,142,.16);color:var(--s-good);font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;margin-top:3px}

/* Steps */
.s-steps{list-style:none;margin:0;padding:0;display:grid;gap:16px;counter-reset:s}
.s-steps li{position:relative;padding:26px;border-radius:var(--s-r);background:var(--s-bg2);border:1px solid var(--s-line)}
.s-step-n{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--s-acc);color:var(--s-on);font-weight:800;margin-bottom:12px}
.s-steps h3{font-size:19px;margin-bottom:4px}
.s-steps p{margin:0;color:var(--s-tx2);font-size:15px}

/* Comparison */
.s-compare-scroll{overflow-x:auto;border-radius:var(--s-r);border:1px solid var(--s-line);background:var(--s-bg2);-webkit-overflow-scrolling:touch}
/* Column widths come from the editor; text never wraps, and a column never gets narrower than its own words (so nothing overlaps). */
.s-compare{border-collapse:collapse;font-size:15px;table-layout:auto}
.s-compare th,.s-compare td{padding:14px 16px;white-space:nowrap;border-bottom:1px solid var(--s-line);text-align:center;vertical-align:middle;text-transform:none;letter-spacing:normal}
.s-compare thead th{position:relative;font:700 15px/1.25 var(--font-outfit,'Outfit'),var(--sans);color:var(--s-tx);background:var(--s-bg3)}
.s-compare th>span:first-child{display:inline-block}
.s-compare tbody tr:last-child th,.s-compare tbody tr:last-child td{border-bottom:0}
.s-compare-feat{text-align:left!important;font-weight:500;color:var(--s-tx2);position:sticky;left:0;background:var(--s-bg2);z-index:1;box-shadow:inset -1px 0 0 var(--s-line)}
.s-compare thead .s-compare-feat{background:var(--s-bg3);z-index:2}
/* Our column's highlight is the cell's own background — it stays inside the column. */
.s-compare .s-ours{background:rgba(233,176,74,.08);box-shadow:inset 1px 0 0 rgba(233,176,74,.35),inset -1px 0 0 rgba(233,176,74,.35)}
.s-compare thead .s-ours{color:var(--s-acc);background:rgba(233,176,74,.14)}
.s-yes{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:rgba(92,194,142,.16);color:var(--s-good);font-weight:800}
.s-no{color:var(--s-tx3);font-size:18px}
.s-cell{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.s-part-dot{color:var(--s-acc2);font-size:16px}
.s-cell-text{font-size:14px;color:var(--s-tx2)}
.s-cell-partial .s-cell-text{color:var(--s-acc2)}
.s-cell-text:only-child{color:var(--s-tx)}
.s-colh{position:absolute;top:0;right:-5px;bottom:0;width:10px;cursor:col-resize;z-index:3}
.s-colh::after{content:"";position:absolute;top:6px;bottom:6px;left:4px;width:2px;border-radius:2px;background:var(--s-acc);opacity:.35;transition:opacity .15s}
.s-colh:hover::after,.s-colh:active::after{opacity:1}
/* "What's included" (blocks.tsx PlanTable): one big table, every plan a column. Wide screens: the table fits the page,
   and the plans' header row sticks under the site header while the page scrolls. Narrower screens: the table scrolls
   sideways inside its own box (never the page), the header row sticks to the top of that box and the features stay on
   the left. Each module row has its own color (--g); add-ons are in theirs (PreVis Pro purple, PostPro orange). */
.s-pt-gold{--g:#e9b04a}.s-pt-green{--g:#5cc28e}.s-pt-blue{--g:#6ea8ff}.s-pt-teal{--g:#3cc8b4}.s-pt-coral{--g:#ff8b73}
.s-pt-pink{--g:#f080b5}.s-pt-sky{--g:#56c2f0}.s-pt-sand{--g:#d8b98a}.s-pt-previs{--g:#8b9cff}.s-pt-postpro{--g:#f58727}
.s-pt-scroll{border-radius:var(--s-r);border:1px solid var(--s-line);background:var(--s-bg2);overflow:clip}
/* The page's <main> is a scroll box in the app (globals.css main{overflow:auto}), which would hold the sticky header row
   in place; on a page with this table it only clips sideways, so the row sticks to the window. */
.site main:has(.s-pt){overflow:clip visible}
.s-pt{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:15px}
.s-pt th,.s-pt td{padding:13px 12px;border-bottom:1px solid var(--s-line);text-align:center;vertical-align:middle;text-transform:none;letter-spacing:normal;font-weight:400;white-space:normal;overflow-wrap:break-word}
.s-pt thead th{position:sticky;top:67px;z-index:3;padding:20px 10px 16px;vertical-align:bottom;background:var(--s-bg3);border-bottom:1px solid var(--s-line)}
.s-pt thead th.s-pt-feat{z-index:4}
.s-pt-feat{width:32%;text-align:left!important;color:var(--s-tx2);font-weight:500!important;line-height:1.4;background:var(--s-bg2)}
.s-pt-name{display:block;font:700 17px/1.2 var(--font-outfit,'Outfit'),var(--sans);color:var(--s-tx)}
.s-pt-price{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:2px;margin-top:8px}
.s-pt-price strong{font:800 26px/1.05 var(--font-outfit,'Outfit'),var(--sans);color:var(--s-tx);letter-spacing:-.02em}
.s-pt-price span{font-size:13px;color:var(--s-tx3)}
.s-pt-note{display:block;margin-top:6px;font-size:13px;line-height:1.35;color:var(--s-acc2)}
.s-pt-flag{display:inline-block;margin:0 0 10px;padding:3px 10px;border-radius:999px;background:var(--s-acc);color:var(--s-on);font-size:12px;font-weight:800;letter-spacing:.04em;white-space:nowrap}
.s-pt thead th.s-pt-featured{background:linear-gradient(180deg,rgba(233,176,74,.22),rgba(233,176,74,.10)),var(--s-bg3);box-shadow:inset 0 3px 0 var(--s-acc)}
.s-pt thead th.s-pt-featured .s-pt-name{color:var(--s-acc)}
.s-pt td.s-pt-featured{background:rgba(233,176,74,.07)}
.s-pt tbody tr:last-child>*{border-bottom:0}
.s-pt-group:not(:last-child) tr:last-child>*{border-bottom:1px solid var(--s-line)}
.s-pt-head th{padding:12px 16px;text-align:left;background:linear-gradient(90deg,color-mix(in srgb,var(--g) 24%,var(--s-bg2)),color-mix(in srgb,var(--g) 7%,var(--s-bg2)));box-shadow:inset 4px 0 0 var(--g)}
.s-pt-head-in{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px 14px;max-width:100%}
.s-pt-gtitle{font:700 16px/1.3 var(--font-outfit,'Outfit'),var(--sans);color:var(--g);letter-spacing:.01em}
.s-pt-gnote{font-size:14px;line-height:1.4;color:var(--s-tx)}
.s-pt-addon .s-pt-head th{padding:15px 16px;background:linear-gradient(90deg,color-mix(in srgb,var(--g) 34%,var(--s-bg2)),color-mix(in srgb,var(--g) 10%,var(--s-bg2)))}
.s-pt-addon .s-pt-gtitle{font-size:17px}
.s-pt-addon .s-yes{background:color-mix(in srgb,var(--g) 20%,transparent);color:var(--g)}
.s-pt-addon td.s-pt-featured{background:color-mix(in srgb,var(--g) 7%,transparent)}
.s-pt tbody tr:not(.s-pt-head):hover>*{background-color:color-mix(in srgb,var(--s-tx) 4%,var(--s-bg2))}
.s-pt .s-cell{flex-wrap:wrap;max-width:100%}
.s-pt .s-cell-text{font-size:14px;line-height:1.35}
.s-pt-section .s-footnote{max-width:820px;margin-left:auto;margin-right:auto}
/* The editor only: a hidden plan's tag above its name; its cells dimmed like its header; a blank the live page fills in
   ({planMonthly:PRO}, {projectLimit:PRO}) as a small chip that fits its column, not a 26px price broken over lines. */
.s-pt thead th>.s-hid-tag{display:table;margin:0 auto 8px}
.s-pt td.s-pt-hidcol>.s-cell{opacity:.4}
.s-pt thead th>span>[class*="_InlineTextField"]{max-width:100%}
.s-pt .s-pt-note.s-pt-tagged{overflow-wrap:anywhere}
.s-pt .s-pt-tagged:is(strong),.s-pt td.s-pt-tagged .s-cell-text{display:inline-block;max-width:100%;padding:2px 7px;border-radius:6px;border:1px dashed color-mix(in srgb,var(--s-acc) 55%,transparent);background:color-mix(in srgb,var(--s-acc) 10%,transparent);color:var(--s-acc);font:600 13px/1.35 var(--sans);letter-spacing:0;overflow-wrap:anywhere}
@media (max-width:959px){
  .s-pt-scroll{overflow:auto;max-height:min(82vh,780px);overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .s-pt{min-width:calc(190px + var(--pt-cols,5) * 128px)}
  .s-pt thead th{top:0}
  .s-pt-feat{width:190px;position:sticky;left:0;z-index:2;box-shadow:inset -1px 0 0 var(--s-line)}
  .s-pt td.s-pt-feat{z-index:1}
  .s-pt-head th{position:static}
  .s-pt-head-in{position:sticky;left:16px}
  .s-pt-price strong{font-size:22px}
  .s-pt th,.s-pt td{padding:12px 8px}
  .s-pt-feat{font-size:14px}
}
@media (orientation:landscape) and (max-height:500px) and (min-width:960px){.s-pt thead th{top:53px}}
.s-badge{display:flex;gap:18px;align-items:flex-start;margin-top:28px;padding:26px;border-radius:var(--s-r);background:linear-gradient(135deg,rgba(233,176,74,.12),rgba(233,176,74,.03));border:1px solid rgba(233,176,74,.35)}
.s-badge-icon{flex:none;display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:50%;background:var(--s-acc);color:var(--s-on);font-size:24px}
.s-badge h3{font-size:22px;margin-bottom:6px}
.s-badge p{margin:0;color:var(--s-tx2)}

/* Statement */
.s-statement{text-align:center;background:radial-gradient(50% 80% at 50% 0%,rgba(233,176,74,.10),transparent 70%)}
.s-statement h2{font-size:clamp(30px,4.6vw,50px);line-height:1.1}

/* Pricing */
.s-plans{display:grid;gap:16px;grid-template-columns:1fr}
.s-plan{position:relative;display:flex;flex-direction:column;padding:28px;border-radius:var(--s-r);background:var(--s-bg2);border:1px solid var(--s-line)}
.s-plan-featured{border-color:var(--s-acc);box-shadow:0 30px 60px -30px rgba(233,176,74,.45);background:linear-gradient(180deg,rgba(233,176,74,.10),var(--s-bg2) 40%)}
.s-plan-flag{position:absolute;top:-12px;left:28px;padding:4px 12px;border-radius:999px;background:var(--s-acc);color:var(--s-on);font-size:12px;font-weight:800;letter-spacing:.04em}
.s-plan h3{font-size:22px}
.s-plan-tag{margin:2px 0 0;font-size:14px;color:var(--s-tx3);font-style:italic}
.s-price{margin:16px 0 0;display:flex;align-items:baseline;gap:6px}
.s-price strong{font:800 42px/1 var(--font-outfit,'Outfit'),var(--sans)}
.s-price > span{color:var(--s-tx3);font-size:15px}
.s-plan-annual{margin:6px 0 0;font-size:14px;color:var(--s-acc2)}
.s-plan-trial{align-self:flex-start;margin:10px 0 0;padding:4px 10px;border-radius:999px;background:rgba(92,194,142,.14);color:var(--s-good);font-size:13px;font-weight:700}
.s-plan .s-checks{flex:1;margin-bottom:24px}
.s-plan .s-btn{width:100%}

/* FAQ */
.s-faq{display:grid;gap:10px}
.s-faq-item{border-radius:12px;background:var(--s-bg2);border:1px solid var(--s-line);padding:0 20px}
.s-faq-q{cursor:pointer;list-style:none;padding:18px 28px 18px 0;font:600 17px/1.4 var(--font-outfit,'Outfit'),var(--sans);position:relative}
.s-faq-open .s-faq-q{cursor:text}
.s-faq summary::-webkit-details-marker{display:none}
.s-faq summary::after{content:"+";position:absolute;right:0;top:14px;font-size:24px;color:var(--s-acc);transition:transform .2s}
.s-faq details[open] summary::after{transform:rotate(45deg)}
.s-faq-item p{margin:0 0 18px;color:var(--s-tx2)}

/* CTA band */
.s-band{text-align:center;padding:56px 24px;border-radius:24px;background:radial-gradient(70% 120% at 50% 0%,rgba(233,176,74,.25),transparent 70%),var(--s-bg2);border:1px solid rgba(233,176,74,.3)}
.s-band h2{font-size:clamp(30px,4.4vw,48px)}
.s-band p{margin:12px auto 0;max-width:620px;color:var(--s-tx2);font-size:18px}

/* Product previews drawn in code */
.s-mock{border-radius:var(--s-r);background:#141920;border:1px solid #2a333d;box-shadow:0 50px 90px -40px rgba(0,0,0,.9),0 0 0 1px rgba(255,255,255,.02) inset;overflow:hidden;font-size:13px;color:#cfd8e1;font-family:var(--sans)}
.s-mock-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;background:#0f1318;border-bottom:1px solid #222a33}
.s-mock-bar i{width:10px;height:10px;border-radius:50%;background:#2c3540}
.s-mock-bar i:first-child{background:#e0695a}.s-mock-bar i:nth-child(2){background:#e9b04a}.s-mock-bar i:nth-child(3){background:#5cc28e}
.s-mock-bar span{margin-left:10px;font-size:12px;color:#8b98a6;font-weight:600}
.s-mock-body{padding:16px}
.s-mock-row{display:grid;grid-template-columns:44px 1fr 90px 80px;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid #1f2731}
.s-mock-row b{color:#e9b04a;font-family:var(--mono);font-size:12px}
.s-mock-row em{height:6px;border-radius:3px;background:linear-gradient(90deg,#e9b04a,#f6cf7c)}
.s-mock-row strong{text-align:right;font-family:var(--mono);font-size:12px}
.s-mock-total{display:flex;justify-content:space-between;padding:12px 0 2px;font-weight:700;color:#fff}
.s-mock-total strong{font-family:var(--mono);color:#f6cf7c}
/* Live actuals preview: an import waiting for review, then accounts with their variance. */
.s-act-src{display:flex;align-items:center;gap:10px;padding:9px 12px;margin-bottom:8px;border:1px dashed #3a4654;border-radius:8px;font-size:12px;color:#aab6c2}
.s-act-src span{flex:1;min-width:0}
.s-act-src b{font-family:var(--mono);font-weight:600;color:#5cc28e;white-space:nowrap}
.s-act-src em{font-style:normal;font-weight:700;color:#1d1606;background:#e9b04a;border-radius:5px;padding:2px 9px;white-space:nowrap}
.s-act-under strong{color:#5cc28e}
.s-act-over strong{color:#e0695a}
.s-act-over em{background:linear-gradient(90deg,#e9b04a 70%,#e0695a)}
.s-strip{display:grid;grid-template-columns:30px 1fr 64px;gap:10px;align-items:center;padding:7px 10px;margin-bottom:3px;border-radius:4px;font-weight:600;font-size:12px;color:#14181d}
.s-strip i{font-style:normal;font-family:var(--mono);opacity:.7;text-align:right}
.s-strip-int-day{background:#f4f1e7}.s-strip-ext-day{background:#f2d36b}.s-strip-int-night{background:#7aa5d8}.s-strip-ext-night{background:#5f8f6a;color:#fff}
.s-strip-day{display:block;text-align:center;background:#0b0d10;color:#8b98a6;border:1px dashed #3a4650;font-size:12px;letter-spacing:.08em}
.s-cs-top{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}
.s-cs-top div{padding:10px;border-radius:8px;background:#1b222b;display:flex;flex-direction:column;gap:2px}
.s-cs-top b{font-size:12px;color:#8b98a6;font-weight:600;text-transform:uppercase;letter-spacing:.06em}
.s-cs-top strong{font-size:15px;color:#fff}
.s-cs-line{display:flex;justify-content:space-between;padding:7px 2px;border-bottom:1px solid #1f2731}
.s-cs-line em{font-style:normal;color:#f6cf7c}
.s-cs-cast{display:grid;grid-template-columns:24px 1fr 50px;gap:8px;padding:7px 2px;border-bottom:1px solid #1f2731}
.s-cs-cast b{color:#e9b04a}
.s-cs-cast em{font-style:normal;text-align:right;font-family:var(--mono)}
.s-bd{font-family:var(--mono);font-size:13px;line-height:1.7}
.s-bd-head{margin:0 0 8px;color:#e9b04a;font-weight:700}
.s-bd p{margin:0 0 12px}
.s-bd mark{border-radius:3px;padding:0 3px;color:#10141a}
.s-tag-cast{background:#f2d36b}.s-tag-prop{background:#8fd9a8}.s-tag-ward{background:#b8a5e6}.s-tag-ext{background:#7ec8f2}
.s-bd-chips{display:flex;flex-wrap:wrap;gap:6px;font-family:var(--sans)}
.s-bd-chips span{padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700;color:#10141a}
.s-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.s-cal-day{min-width:0;overflow:hidden;aspect-ratio:1/.8;border-radius:6px;background:#1b222b;padding:5px;display:flex;flex-direction:column;justify-content:space-between;font-size:12px;color:#8b98a6}
.s-cal-day.on{background:linear-gradient(135deg,rgba(233,176,74,.35),rgba(233,176,74,.12));color:#fff}
.s-cal-day em{font-style:normal;font-weight:700;font-size:12px;color:#f6cf7c}

@media (min-width:760px){
  .s-grid{grid-template-columns:repeat(2,1fr)}
  .s-steps{grid-template-columns:repeat(2,1fr)}
  .s-plans{grid-template-columns:repeat(2,1fr)}
  .s-sec:not(.s-hero):not(.s-trust){padding:96px 0}
}
@media (min-width:1000px){
  .s-hero{padding:96px 0 64px}
  .s-hero-grid{grid-template-columns:1.05fr 1fr}
  /* Side by side, the headline gets half the width: size it to the column, not the screen. */
  .s-hero h1{font-size:clamp(46px,5.2vw,72px)}
  .s-row{grid-template-columns:1fr 1.1fr;gap:64px}
  .s-row-flip .s-row-copy{order:2}
  /* "Large": the picture gets about two thirds of the row, the words a narrower column. */
  .s-row.s-row-large{grid-template-columns:minmax(0,.62fr) minmax(0,1.38fr);gap:56px}
  .s-row.s-row-large.s-row-flip{grid-template-columns:minmax(0,1.38fr) minmax(0,.62fr)}
  .s-grid{grid-template-columns:repeat(3,1fr)}
  .s-steps{grid-template-columns:repeat(4,1fr)}
  .s-plans{grid-template-columns:repeat(var(--plan-cols,4),1fr);row-gap:28px}
}
@media (max-width:759px){
  .s-nav{display:none}
  .s-signin{display:none}
  .s-header-ctas{margin-left:auto}
  .s-badge{flex-direction:column}
  .s-lede{font-size:17px}
}
@media (prefers-reduced-motion:reduce){.s-btn,.s-card{transition:none}.s-btn:hover,.s-card:hover{transform:none}}

@media (max-width:759px){
  .s-compare{font-size:14px}
  .s-compare th,.s-compare td{padding:12px 10px}
  .s-cal-day em{font-size:12px;letter-spacing:-.02em}
  .s-mock-row{grid-template-columns:40px 1fr 50px 70px}
}
/* Phones turned sideways (short, wide screens): slimmer header, a headline that fits, the buttons on
   the first screen, and on wider phones the words beside the preview. Applies the moment the phone turns. */
@media (orientation:landscape) and (max-height:500px){
  .s-header .s-wrap{min-height:52px}
  .s-logo img{height:28px}
  .s-header-ctas .s-btn{min-height:36px}
  .s-hero{padding:24px 0 20px}
  .s-hero h1{font-size:clamp(28px,4.4vw,42px);line-height:1.05}
  .s-hero-copy .s-lede{font-size:16px;margin-top:10px}
  .s-hero .s-ctas{margin-top:18px}
  .s-hero .s-btn{min-height:44px}
  .s-sec:not(.s-hero):not(.s-trust){padding:56px 0}
  .s-head{margin-bottom:28px}
  .s-head h2,.s-row h2{font-size:clamp(26px,4vw,36px)}
}
@media (orientation:landscape) and (max-height:500px) and (min-width:700px){
  .s-hero-grid{grid-template-columns:1.1fr 1fr;gap:28px}
  .s-row{grid-template-columns:1fr 1fr;gap:32px}
  .s-row-flip .s-row-copy{order:2}
}
/* The beta's floating Feedback button is for app users, not visitors reading the sales page. */
body:has(.site) [data-feedback-fab],body:has(.site) [data-help-launcher]{display:none}
/* Header/footer words typed on the page in the editor */
.s-roottext{outline:none;border-radius:4px;cursor:text}
.s-roottext:hover{box-shadow:0 0 0 1px rgba(233,176,74,.5)}
.s-roottext:focus{box-shadow:0 0 0 2px var(--s-acc)}

/* Text with its own width (textWidths): centered text narrows around its middle. */
.site .s-tw-c{margin-left:auto;margin-right:auto}
/* Editor only: the text's side handles. */
.s-tw-edit{position:relative}
.s-th{position:absolute;top:0;bottom:0;width:12px;z-index:6;cursor:ew-resize;opacity:0;transition:opacity .15s;user-select:none}
.s-th::after{content:"";position:absolute;top:50%;left:4px;width:4px;height:min(48px,80%);transform:translateY(-50%);border-radius:3px;background:var(--s-acc)}
.s-th-left{left:-6px}.s-th-right{right:-6px}
.s-tw-edit:hover>.s-th,.s-tw-edit[data-size]>.s-th{opacity:1}
.s-tw-edit[data-size]::after{content:attr(data-size);position:absolute;top:-26px;right:0;padding:2px 8px;border-radius:6px;background:var(--s-acc);color:#1a1206;font-size:12px;font-weight:700;letter-spacing:0;text-transform:none;line-height:1.6}

/* The page scrolls the window, not the body: html/body's overflow-x:hidden (globals.css) would otherwise make the body the "scroller" and stop the sticky header from sticking. */
html:has(.site),html:has(.site) body{overflow-x:clip}
/* The page is a flex column (globals.css body); with overflow clipped the site would otherwise shrink to one screen tall and the sticky header would scroll away after it. */
.site{flex-shrink:0}
/* Space between columns, when a section sets it (blocks.tsx Section, --s-gap). */
.s-gapset .s-grid,.s-gapset .s-plans,.s-gapset .s-row,.s-gapset .s-steps,.s-gapset .s-hero-grid{column-gap:var(--s-gap)!important}
.s-gapset .s-trust-row{column-gap:var(--s-gap)!important}
/* "Heading on one line": FitText.tsx shrinks it to fit. */
.s-fit,.s-fit *{white-space:nowrap!important}
/* Its column keeps its own width (a one-line heading shrinks instead of widening the column). */
.s-row>*,.s-hero-grid>*{min-width:0}
.s-fit{overflow:visible}

/* Touch screens: resize handles show without hover, and a finger on one
   resizes instead of panning the page (which cancels the drag). */
.s-h,.s-th,.s-colh{touch-action:none}
@media (hover:none){.s-editing .s-h,.s-tw-edit>.s-th{opacity:1}.s-colh::after{opacity:1}}

/* A section's "Spacing & look" (blocks.tsx Box): text color, text sizes and alignment reach its texts through variables — not the product previews. */
.site .s-bx-tx :is(h1,h2,h3,p,li,dt,dd,td,th,.s-lede,.s-note,.s-footnote,.s-eyebrow):not(.s-mock *){color:var(--bx-tx)}
.site .s-bx-fs :is(p,li,dd,td,th,.s-lede):not(.s-mock *){font-size:var(--bx-fs)}
.site .s-bx-hs :is(h1,h2,h3):not(.s-mock *){font-size:min(var(--bx-hs),12vw)}
.site .s-bx-ta :is(.s-head,h1,h2,h3,p,li,.s-btnblock-row):not(.s-mock *){text-align:var(--bx-ta)}
/* A picture at its own width (img.w): centered, never wider than its place, height in proportion. */
.site .s-shot-w{max-width:100%;margin-left:auto;margin-right:auto}

/* Editor only: a picture's box, an empty picture's place, and the picture/button size handles (edit-handles.tsx BoxHandles). */
.s-imgbox{position:relative;display:block;max-width:100%;margin:0 auto}
.s-imgbox>.s-shot{width:100%}
.s-imgempty{display:flex;align-items:center;justify-content:center;min-height:200px;padding:24px;border:2px dashed var(--s-line);border-radius:var(--s-r);color:var(--s-tx3);font-size:15px;text-align:center}
.s-imgempty:hover,[data-se-img].se-filedrop{border-color:var(--s-acc);color:var(--s-acc2)}
[data-se-img].se-filedrop{outline:2px dashed var(--s-acc);outline-offset:4px}
[data-se-img].se-uploading{opacity:.5}
.s-bx-edit{position:relative}
.s-bh{position:absolute;z-index:8;width:12px;height:12px;background:#fff;border:2px solid var(--s-acc);border-radius:3px;box-sizing:border-box;touch-action:none;opacity:0;transition:opacity .15s}
.s-bh-nw{left:-7px;top:-7px;cursor:nwse-resize}.s-bh-ne{right:-7px;top:-7px;cursor:nesw-resize}
.s-bh-sw{left:-7px;bottom:-7px;cursor:nesw-resize}.s-bh-se{right:-7px;bottom:-7px;cursor:nwse-resize}
.s-bh-n{left:50%;top:-7px;margin-left:-10px;width:20px;cursor:ns-resize}.s-bh-s{left:50%;bottom:-7px;margin-left:-10px;width:20px;cursor:ns-resize}
.s-bx-edit:hover>.s-bh,.s-bx-edit[data-size]>.s-bh,.s-editing:hover .s-imgbox>.s-bh{opacity:1}
.s-bx-edit[data-size]::after{content:attr(data-size);position:absolute;top:-30px;left:50%;transform:translateX(-50%);z-index:9;white-space:nowrap;padding:2px 8px;border-radius:6px;background:var(--s-acc);color:#1a1206;font:700 12px/1.6 var(--sans);letter-spacing:0;text-transform:none}
/* Editor only: a section's corner handles (its content width) and a text's top/bottom handles (its space above/below). */
.s-hc{width:12px;height:12px;background:#fff;border:2px solid var(--s-acc);border-radius:3px;box-sizing:border-box;touch-action:none}
.s-hc::after{display:none}
.s-hc-nw{left:-7px;top:-7px;cursor:nwse-resize}.s-hc-ne{right:-7px;top:-7px;cursor:nesw-resize}
.s-hc-sw{left:-7px;bottom:-7px;cursor:nesw-resize}.s-hc-se{right:-7px;bottom:-7px;cursor:nwse-resize}
.s-tv{position:absolute;left:0;right:0;height:10px;z-index:6;cursor:ns-resize;opacity:0;transition:opacity .15s;user-select:none;touch-action:none}
.s-tv::after{content:"";position:absolute;left:50%;top:3px;width:40px;height:4px;margin-left:-20px;border-radius:3px;background:var(--s-acc)}
.s-tv-top{top:-8px}.s-tv-bottom{bottom:-8px}
.s-tw-edit:hover>.s-tv,.s-tw-edit[data-size]>.s-tv{opacity:1}
/* Editor only: the handles of whatever the pointer is over (canvas-assist.tsx marks it .se-hot). */
.s-editing.se-hot>.s-h,.s-editing.se-hot>div>.s-h,.s-bx-edit.se-hot>.s-bh,.s-editing.se-hot .s-imgbox>.s-bh,.s-tw-edit.se-hot>.s-th,.s-tw-edit.se-hot>.s-tv{opacity:1}
@media (hover:none){.s-bh,.s-tw-edit>.s-tv{opacity:1}}

/* A section's Type, link color (blocks.tsx Box) and the whole page's look (chrome.tsx, design.ts siteLookProps) — through
   variables, like the rest of Spacing & look; never the product previews. */
.site .s-bx-ff :is(p,li,dt,dd,td,th,.s-lede,.s-note,.s-footnote,.s-eyebrow,.s-btn):not(.s-mock *){font-family:var(--bx-ff)}
.site .s-bx-hf :is(h1,h2,h3):not(.s-mock *){font-family:var(--bx-hf)}
.site .s-bx-fw :is(p,li,dd,td,th,.s-lede,.s-note):not(.s-mock *){font-weight:var(--bx-fw)}
.site .s-bx-hw :is(h1,h2,h3):not(.s-mock *){font-weight:var(--bx-hw)}
.site .s-bx-lh :is(p,li,dd,td,th,.s-lede,.s-note):not(.s-mock *){line-height:var(--bx-lh)}
.site .s-bx-ls :is(h1,h2,h3,p,li,dd,td,th,.s-lede,.s-note):not(.s-mock *){letter-spacing:var(--bx-ls)}
.site .s-bx-lk a:not(.s-btn){color:var(--bx-lk)}
.site.s-pl-ff{font-family:var(--pl-ff)}
.site.s-pl-hf :is(h1,h2,h3):not(.s-mock *){font-family:var(--pl-hf)}
.site.s-pl-lk a:not(.s-btn):not(.s-logo){color:var(--pl-lk)}
.site .s-imglink{display:block}
/* Blocks inside a column (above): closer together than full-width sections, at every width (after the media rules so they win; a block's own spacing still wins). */
.s-cols-row .s-col .s-sec{padding:12px 0}
.s-cols-row .s-col .s-wrap{padding-left:0;padding-right:0}

/* src/components/site/page-look.css */
/* Manage Front End → "Page look" for the beta signup and legal pages (components/site/design.ts pageLookProps): each
   setting switches on with its own class, so whatever isn't set keeps the built-in look. Lives on .beta-shell, both on
   the live pages (app/beta-access/BetaRegister.tsx, blocks.tsx LegalDoc) and in the editor's canvas (blocks.tsx BetaPage). */
.beta-shell.pl-ff,.beta-shell.pl-ff :is(p,li,dd,td,th,label,input,select,textarea,button,.btn,.hint,.beta-lede,.beta-welcome-body,.modal-bg){font-family:var(--pl-ff)}
.beta-shell.pl-hf :is(h1,h2,h3,.beta-title){font-family:var(--pl-hf)}
.beta-shell.pl-bg{background:var(--pl-bg)}
.beta-shell.pl-tx :is(.beta-lede,.beta-welcome-body,.beta-welcome-body p,.beta-welcome-body li,.legal p,.legal li,.legal b,.legal h2,.hint,label){color:var(--pl-tx)}
.beta-shell.pl-lk a:not(.btn){color:var(--pl-lk)}
.beta-shell.pl-cbg .beta-card{background:var(--pl-cbg)}
.beta-shell.pl-cbd .beta-card{border:var(--pl-cbd)}
.beta-shell.pl-cr .beta-card{border-radius:var(--pl-cr);overflow:hidden}
.beta-shell.pl-cp .beta-card>.card-body{padding:var(--pl-cp)}
.beta-shell.pl-cw .beta-card{max-width:var(--pl-cw)}
.beta-shell.pl-ts .beta-title{font-size:var(--pl-ts)}
.beta-shell.pl-tc .beta-title{color:var(--pl-tc)}
.beta-shell.pl-tw .beta-title{font-weight:var(--pl-tw)}
.beta-shell.pl-bs :is(.beta-lede,.beta-welcome-body,.beta-welcome-body p,.beta-welcome-body li,.legal p,.legal li){font-size:var(--pl-bs)}
.beta-shell.pl-lh :is(.beta-title,.beta-lede,.beta-welcome-body,.beta-welcome-body p,.beta-welcome-body li,.legal p,.legal li){line-height:var(--pl-lh)}
.beta-shell.pl-ls :is(.beta-title,.beta-lede,.beta-welcome-body p,.beta-welcome-body li,.legal p,.legal li,.legal h2){letter-spacing:var(--pl-ls)}
.beta-shell.pl-bb .btn.primary{background:var(--pl-bb);border-color:var(--pl-bb)}
.beta-shell.pl-bt .btn.primary{color:var(--pl-bt)}
.beta-shell.pl-br .btn{border-radius:var(--pl-br)}

/* src/components/site/ja-look.css */
/* SSP's editor blocks in this site's own look (Jordan, Nov 20, 2026): pages like Books keep the Wix page's header,
   menu and footer, and the blocks between them take the site's colours and fonts — the charcoal #131514, the cream
   #EFF0EB, the blue #74C4F3, Syne ExtraBold headings and Madefor body text (measured on the home page).
   Only SSP's own variables change; the blocks' layout is SSP's (src/app/site.css). Bundled into
   public/site/site-blocks.css by scripts/site-look.mjs. */
.ja-ssp.site{
  --sans:'madefor-text',helveticaneuew01-45ligh,helveticaneuew02-45ligh,helveticaneuew10-45ligh,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,monospace;
  --font-outfit:'syne-extrabold';
  --s-bg:#131514;--s-bg2:#1b1e1c;--s-bg3:#232624;--s-line:#323633;
  --s-tx:#eff0eb;--s-tx2:#c2c4bd;--s-tx3:#8f928b;
  --s-acc:#74c4f3;--s-acc2:#a9dcfa;--s-on:#071b27;--s-good:#5cc28e;
  min-height:0;width:100%;grid-area:auto;box-sizing:border-box;
  /* Room for the site's header, which sits over the top of the page (Wix: 90px high at every width). */
  padding-top:90px;
}
/* Book pages and the products shown in the checkout (Jordan, Nov 23, 2026: Syne "doesn't feel modern and cool and
   professional... hard to read, especially the numbers"; he picked Inter Tight, for the book pages only). Inter Tight
   ExtraBold, kept with the site's own fonts (public/fonts), for every heading and button weight, as Syne ExtraBold was.
   Home, and the Wix menu and footer, keep Syne. The class comes from BlocksPage (components/wix/wix-render.tsx). */
@font-face{font-family:'ja-inter-tight';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/inter-tight-800-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'ja-inter-tight';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/inter-tight-800-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
.ja-ssp.site.ja-book{--font-outfit:'ja-inter-tight'}
/* Inter Tight in every weight, for the editor's font menus (design.ts SITE_FONTS "inter-tight"; Jordan, Nov 23, 2026). */
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/inter-tight-var-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter Tight';font-style:normal;font-weight:100 900;font-display:swap;src:url('/fonts/inter-tight-var-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter Tight';font-style:italic;font-weight:100 900;font-display:swap;src:url('/fonts/inter-tight-var-italic-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter Tight';font-style:italic;font-weight:100 900;font-display:swap;src:url('/fonts/inter-tight-var-italic-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* Short pages: the space below the footer stays the site's charcoal, not white. */
html:has(.ja-ssp),body:has(.ja-ssp){background:#131514}
/* An offer page inside the checkout's frame: no site header above it. */
.ja-ssp.site.ja-bare{padding-top:0}
.ja-ssp.site *,.ja-ssp.site *::before,.ja-ssp.site *::after{box-sizing:border-box}
.ja-ssp .s-btn{box-shadow:0 10px 30px -10px rgba(116,196,243,.5)}
.ja-ssp .s-hero-glow{opacity:.55;filter:hue-rotate(160deg)}

/* Books list (components/site/blocks.tsx BookList): SSP's card grid with a cover on top. */
.site .s-book-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.site .s-book{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.site .s-book-cover{display:block;width:100%;margin:0 0 6px}
.site .s-book-cover img{display:block;width:100%;height:auto;border-radius:10px}
.site .s-book h3{font-size:22px;line-height:1.2}
.site .s-book p{margin:0;color:var(--s-tx2)}
.site .s-book .s-book-price{color:var(--s-tx);font-size:18px}
.site .s-book .s-book-price s{color:var(--s-tx3);font-size:15px;margin-right:4px}
.site .s-book .s-btn{margin-top:auto}
.site .s-book-badge{margin:0}
.site .s-books-empty{text-align:center;color:var(--s-tx3);padding:24px;border:1px dashed var(--s-line);border-radius:var(--s-r)}

/* Backgrounds behind a section or a whole page (blocks.tsx BgMedia): a picture or a silent looping video, with a tint. */
.site .s-has-bg{isolation:isolate;overflow:clip}
.site .s-bgmedia{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.site .s-bgmedia-page{position:fixed}
.site .s-bg-img{position:absolute;inset:0;width:100%;height:100%;display:block}
.site .s-bg-embed{position:absolute;top:50%;left:50%;width:max(100%,177.78vh);height:max(100%,56.25vw);transform:translate(-50%,-50%);border:0}
.site .s-bg-tint{position:absolute;inset:0}
.ja-ssp.site{position:relative;isolation:isolate}

/* A light page (its background set to a light colour in the page settings, e.g. a white sales page): the same blocks
   with dark words, light cards and a deeper blue that reads on white. */
.ja-ssp.site.ja-light{
  --s-bg2:#f5f5f2;--s-bg3:#ecece7;--s-line:#e0e0da;
  --s-tx:#131514;--s-tx2:#4a4d48;--s-tx3:#777a74;
  --s-acc:#1b86c6;--s-acc2:#3fa9e6;--s-on:#ffffff;
}
.ja-ssp.ja-light .s-card{background:#fff;box-shadow:0 1px 2px rgba(19,21,20,.04),0 12px 32px -18px rgba(19,21,20,.25)}
.ja-ssp.ja-light .s-btn{box-shadow:0 10px 26px -12px rgba(27,134,198,.55)}
.ja-ssp.ja-light .s-btn-ghost{color:var(--s-tx)!important}
.ja-ssp.ja-light .s-hero-glow{display:none}
html:has(.ja-light),body:has(.ja-light){background:var(--ja-page-bg,#fff)}
/* On a light page, pictures get a soft shadow instead of the dark page's deep one; the hero's picture (often a 3D
   book render with its own shadow) sits on the page with no frame. */
.ja-ssp.ja-light .s-shot{box-shadow:0 30px 60px -32px rgba(19,21,20,.38)}
.ja-ssp.ja-light .s-hero .s-shot{border:0;box-shadow:none;border-radius:0}

/* Banner (blocks.tsx Banner): a bar of words — an emoji, a main line, a second line, a countdown and a button —
   in its own colours. Full width sits edge to edge; boxed sits in the page's content width. */
.site .s-banner-sec{position:relative}
.site .s-banner-full{width:100%}
.site .s-banner-sticky{position:sticky;top:0;z-index:30}
/* Under the site's header, which stays at the top of the screen (90px high); an offer page has no header above it. */
.ja-ssp.site .s-banner-sticky{top:90px}
.ja-ssp.site.ja-bare .s-banner-sticky{top:0}
.site .s-banner{position:relative;display:flex;align-items:center;padding:14px 24px;color:var(--bn-tx);overflow:hidden}
.site .s-banner-in{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;width:100%;max-width:1200px;margin:0 auto}
.site .s-banner-center{justify-content:center;text-align:center}
.site .s-banner-left{justify-content:flex-start;text-align:left}
.site .s-banner-right{justify-content:flex-end;text-align:right}
.site .s-banner-icon{font-size:22px;line-height:1}
.site .s-banner-words{display:flex;flex-direction:column;gap:2px;min-width:0}
.site .s-banner .s-banner-text,.site .s-banner .s-banner-sub{margin:0;color:inherit;max-width:none}
.site .s-banner .s-banner-text{font-size:18px;line-height:1.25}
.site .s-banner .s-banner-sub{font-size:14px;line-height:1.35;opacity:.85;text-transform:none;letter-spacing:0;font-weight:400}
.site .s-banner-count{display:inline-flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums;text-transform:none;letter-spacing:0}
.site .s-banner-count-label{font-size:13px;opacity:.85}
.site .s-banner-unit{display:inline-flex;flex-direction:column;align-items:center;min-width:42px;padding:4px 6px;border-radius:6px;background:color-mix(in srgb,var(--bn-tx) 14%,transparent)}
.site .s-banner-unit b{font-size:18px;line-height:1.1;font-weight:800}
.site .s-banner-unit i{font-style:normal;font-size:10px;text-transform:uppercase;letter-spacing:.08em;opacity:.8}
.site .s-banner .s-btn:not(.s-btn-custom){background:var(--bn-tx)!important;color:var(--bn-bg)!important;box-shadow:none;padding:9px 18px;font-size:14px;text-transform:none;letter-spacing:0}
.site .s-banner-tag{position:absolute;top:4px;left:6px;font-size:10px;line-height:1;padding:3px 6px;border-radius:4px;background:rgba(0,0,0,.55);color:#fff;letter-spacing:0;text-transform:none;font-weight:500;z-index:2}
.site .s-savedbanner{position:relative}
.site .s-banner-tag-r{left:auto;right:6px}
.site .s-banner-tag-in{font-size:12px;opacity:.75;text-transform:none;letter-spacing:0}
@media (max-width:750px){
  .site .s-banner{padding:12px 16px}
  .site .s-banner-in{gap:8px 14px}
  .site .s-banner .s-banner-text{font-size:16px}
  .site .s-banner-unit{min-width:36px}
}

/* The Terms and Privacy pages (blocks.tsx LegalDoc): SSP's legal card with this site's logo and blue links, as on
   the checkout (checkout.css .co). */
.beta-shell.ja-legal{--acc:#74c4f3;--acc2:#a9dcfa;--acc-text:#74c4f3;--acc-stroke:#74c4f3;--on-acc:#071b27}
.beta-shell.ja-legal .beta-logo{width:84px;border-radius:50%}

/* Pages in the site's look keep the window as the thing that scrolls (SSP's site.css clips html, which would make the
   body scroll instead): the Wix header's script watches the window to turn the phone header charcoal on scroll. */
html:has(.ja-ssp.site){overflow-x:visible}

/* Blog and Classes lists (blocks.tsx SectionList): the Books list's cards, with a date and a whole-card link. */
.site .s-item h3 a{color:inherit;text-decoration:none}
.site .s-item h3 a:hover{color:var(--s-acc)}
.site .s-item-date{font-size:13px;color:var(--s-tx3);letter-spacing:.02em}
.site .s-item-cover img{aspect-ratio:16/10;object-fit:cover}
.site .s-items-none{border-style:solid}
/* Press (blocks.tsx PressList): one card per mention, the outlet and date on top, then the headline and a quote. */
.site .s-press-list{display:grid;gap:18px;max-width:880px;margin:0 auto}
.site .s-press-item{display:flex;flex-direction:column;gap:10px;align-items:flex-start;text-align:left}
.site .s-press-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.site .s-press-logo{height:28px;width:auto;max-width:140px;object-fit:contain}
.site .s-press-outlet{margin:0}
.site .s-press-item h3{font-size:22px;line-height:1.25;margin:0}
.site .s-press-quote{margin:0;padding-left:14px;border-left:3px solid var(--s-acc);color:var(--s-tx2);font-style:italic;font-size:16px;line-height:1.55}
.site .s-press-link{font-size:14px;font-weight:600;color:var(--s-acc);text-decoration:none}
.site .s-press-link:hover{text-decoration:underline}
.site .s-item .s-btn{white-space:nowrap}

/* ── Classes: a class's prices, and the members area (PLAN.md 13.19, Nov 21, 2026) ───────────────────────────────── */
.site .s-mem-prices{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));max-width:1040px;margin:0 auto}
.site .s-mem-prices.n1{max-width:360px}
.site .s-mem-prices.n2{max-width:720px}
.site .s-mem-price{display:flex;flex-direction:column;gap:10px;align-items:flex-start;text-align:left;position:relative}
.site .s-mem-price.best{border-color:var(--s-acc);box-shadow:0 0 0 1px var(--s-acc)}
.site .s-mem-or{margin:34px auto 16px;text-align:center;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--s-tx2)}
.site .s-mem-price.all{background:color-mix(in srgb,var(--s-acc) 8%,var(--s-bg2))}
.site .s-mem-price .s-eyebrow{margin:0}
.site .s-mem-amount{display:flex;align-items:baseline;gap:6px}
.site .s-mem-amount b{font-size:40px;line-height:1;font-weight:800;color:var(--s-tx)}
.site .s-mem-amount span{color:var(--s-tx3);font-size:15px}
.site .s-mem-price p{margin:0;color:var(--s-tx2);font-size:15px;line-height:1.5;flex:1}
.site .s-mem-price .s-btn{width:100%;justify-content:center}

.site .s-mem-card{text-align:left}
.site .s-mem-card h3{margin:0 0 12px;font-size:20px}
.site .s-mem-narrow{max-width:460px;margin:0 auto}
.site .s-mem-empty{text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.site .s-mem-empty p{margin:0;color:var(--s-tx2)}
.site .s-mem-welcome{margin:0 0 14px;padding:10px 12px;border-radius:var(--s-r);background:color-mix(in srgb,var(--s-good,#4caf7d) 14%,transparent);color:var(--s-tx);font-weight:600}
.site .s-mem-signin{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.site .s-mem-signin .s-btn{justify-content:center}
.site .s-mem-field{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--s-tx2)}
.site .s-mem-field input{font:inherit;font-size:16px;color:var(--s-tx);background:var(--s-bg);border:1px solid var(--s-line);border-radius:8px;padding:11px 12px;width:100%;box-sizing:border-box}
.site .s-mem-field input:focus{outline:2px solid var(--s-acc);outline-offset:1px}
.site .s-mem-code{letter-spacing:.4em;font-size:22px !important;text-align:center}
.site .s-mem-note{margin:0;color:var(--s-tx2);font-size:15px;line-height:1.5}
.site .s-mem-fine{margin:0;color:var(--s-tx3);font-size:13px;line-height:1.5}
.site .s-mem-err{margin:0;color:#ff6b6b;font-size:14px}
.site .s-mem-link{background:none;border:0;padding:0;font:inherit;font-size:14px;color:var(--s-acc);cursor:pointer;text-decoration:none}
.site .s-mem-link:hover{text-decoration:underline}

.site .s-mem-classes{grid-template-columns:repeat(auto-fit,minmax(280px,360px));justify-content:center}
.site .s-mem-class{display:flex;flex-direction:column;gap:10px;align-items:stretch;text-align:left}
.site .s-mem-class h3{margin:0;font-size:20px}
.site .s-mem-class h3 a{color:inherit;text-decoration:none}
.site .s-mem-class p{margin:0;color:var(--s-tx2)}
.site .s-mem-class .s-btn{align-self:flex-start}
.site .s-mem-cover{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:calc(var(--s-r) - 2px);display:block}
.site .s-mem-cover-blank{display:grid;place-items:center;background:var(--s-bg3,#1c2128);color:var(--s-tx3);font-size:30px}
.site .s-mem-next{font-size:14px;color:var(--s-tx3) !important}
.site .s-mem-progress{display:flex;flex-direction:column;gap:6px}
.site .s-mem-track{height:8px;border-radius:4px;background:var(--s-line);overflow:hidden}
.site .s-mem-track span{display:block;height:100%;background:var(--s-acc);border-radius:4px;transition:width .3s}
.site .s-mem-pct{font-size:13px;color:var(--s-tx3)}

.site .s-mem-wide{max-width:1280px}
.site .s-mem-lesson{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start;text-align:left}
.site .s-mem-lesson.no-outline{grid-template-columns:minmax(0,1fr)}
.site .s-mem-main{display:flex;flex-direction:column;gap:16px;min-width:0}
.site .s-mem-crumbs{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:14px;color:var(--s-tx3)}
.site .s-mem-title{margin:0;font-size:clamp(24px,3vw,34px);line-height:1.2;display:flex;flex-direction:column;gap:6px}
.site .s-mem-title .s-eyebrow{margin:0;font-size:13px}
.site .s-mem-video{display:flex;flex-direction:column;gap:10px}
.site .s-mem-player{width:100%;aspect-ratio:16/9;background:#000;border-radius:var(--s-r);display:block}
.site .s-mem-novideo{display:grid;place-items:center;color:#c9d1d9;font-size:16px;padding:20px;text-align:center;box-sizing:border-box}
.site .s-mem-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.site .s-mem-done{font:inherit;font-size:14px;font-weight:600;border-radius:999px;padding:8px 16px;border:1px solid var(--s-line);background:transparent;color:var(--s-tx);cursor:pointer}
.site .s-mem-done.on{background:var(--s-good,#3fb950);border-color:var(--s-good,#3fb950);color:#fff}
.site .s-mem-speeds{display:inline-flex;border:1px solid var(--s-line);border-radius:999px;overflow:hidden}
.site .s-mem-speeds button{font:inherit;font-size:13px;background:none;border:0;color:var(--s-tx2);padding:6px 10px;cursor:pointer}
.site .s-mem-speeds button.on{background:var(--s-acc);color:var(--s-on,#fff)}
.site .s-mem-cheer{margin:0;padding:12px 14px;border-radius:var(--s-r);background:color-mix(in srgb,var(--s-acc) 14%,transparent);font-weight:600}
.site .s-mem-nav{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.site .s-mem-nav .off{opacity:.35;pointer-events:none}
.site .s-mem-files{display:flex;flex-direction:column;gap:4px;align-items:stretch;text-align:left}
.site .s-mem-files h3{margin:0 0 6px;font-size:18px}
.site .s-mem-file{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--s-line);color:var(--s-tx);text-decoration:none;font-weight:600}
.site .s-mem-file:hover{color:var(--s-acc)}
.site .s-mem-size{color:var(--s-tx3);font-weight:400;font-size:14px;white-space:nowrap}
.site .s-mem-written .s-sec{padding-left:0;padding-right:0}
.site .s-mem-written .s-wrap{padding-left:0;padding-right:0;max-width:none}
.site .s-mem-outline{position:sticky;top:110px;display:flex;flex-direction:column;gap:14px;align-items:stretch;text-align:left;max-height:calc(100vh - 130px);overflow:auto}
.site .s-mem-outline h3{margin:0;font-size:18px}
.site .s-mem-outline h4{margin:0 0 6px;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--s-tx3)}
.site .s-mem-outline ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.site .s-mem-outline li > *{display:flex;gap:8px;padding:8px 10px;border-radius:8px;color:var(--s-tx2);text-decoration:none;font-size:15px;line-height:1.35}
.site .s-mem-outline li a:hover{background:var(--s-bg3,rgba(255,255,255,.05));color:var(--s-tx)}
.site .s-mem-outline li.current > *{background:color-mix(in srgb,var(--s-acc) 16%,transparent);color:var(--s-tx);font-weight:600}
.site .s-mem-outline li.done i{color:var(--s-good,#3fb950)}
.site .s-mem-outline li i{font-style:normal;width:16px;flex:none}
.site .s-mem-outline li em{margin-left:auto;font-style:normal;font-size:12px;color:var(--s-tx3);white-space:nowrap}
.site .s-mem-outline li.locked > *{opacity:.6}
.site .s-mem-cert{justify-content:center}
@media (max-width:900px){
  .site .s-mem-lesson{grid-template-columns:minmax(0,1fr)}
  .site .s-mem-outline{position:static;max-height:none}
}

.site .s-mem-acct{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;max-width:1000px;margin:0 auto;align-items:start}
@media (max-width:820px){.site .s-mem-acct{grid-template-columns:minmax(0,1fr)}}
.site .s-mem-acct .s-mem-card{display:flex;flex-direction:column;gap:12px;align-items:stretch}
.site .s-mem-place{display:flex;flex-direction:column;gap:6px;padding:14px 0;border-top:1px solid var(--s-line)}
.site .s-mem-place:first-of-type{border-top:0;padding-top:0}
.site .s-mem-place-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.site .s-mem-place-head a{color:inherit;text-decoration:none}
.site .s-mem-place-head a:hover{color:var(--s-acc)}
.site .s-mem-pill{font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;border:1px solid var(--s-line);color:var(--s-tx2);white-space:nowrap}
.site .s-mem-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.site .s-mem-confirm{display:flex;flex-wrap:wrap;gap:10px;padding:12px;border-radius:var(--s-r);border:1px solid var(--s-line)}
.site .s-mem-confirm p{flex-basis:100%}
.site .s-mem-confirm p{margin:0;color:var(--s-tx2)}
.site .s-mem-danger{background:#d64545 !important;border-color:#d64545 !important;color:#fff !important}
.site .s-mem-name{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}
.site .s-mem-name .s-mem-field{flex:1;min-width:200px}

/* Wix's page frame (.c1dmp-container) turns clicks off for what's inside it and its own parts turn them back on; the
   blocks in the site's look (Books, classes, the members area) turn them back on too, or their buttons can't be clicked. */
.site.ja-ssp{pointer-events:auto}
.site .s-mem-acct .s-btn{max-width:100%;white-space:normal;text-align:center;font-size:14px;padding:10px 18px;min-height:0}
.site .s-mem-written .s-sec{padding-top:12px;padding-bottom:24px}
.site .s-mem-cert{white-space:nowrap}
