/* Create Studio: black and platinum (DESIGN.md, approved 2026-10-29). Dark only. One family, Archivo, served from this
   site (the Privacy Policy promises nothing loads from other websites). Platinum only on a screen's main action, the
   active tab, the mark and progress bars. Light comes from above. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 300 800; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-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: "Archivo"; font-style: normal; font-weight: 300 800; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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; }

:root {
  --bg: #0A0A0B;
  --panel: #141416;
  --raise: #1C1C1F;
  --menu: #18181B;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.3);
  --text: #EDEDEF;
  --text-2: #9C9CA3;
  --text-3: #82828A;
  --neg: #E8735E;
  --chrome: linear-gradient(180deg, #FAFAFB 0%, #D4D5D8 30%, #9A9CA1 50%, #C9CACD 64%, #EDEDEF 82%, #A9ABB0 100%);
  --on-chrome: #111113;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: max(24px, env(safe-area-inset-left, 0px));
  --pop: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 48px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, input, select, textarea { font: inherit; color: inherit; font-variation-settings: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--text); outline-offset: 3px; }
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
code { font-family: inherit; font-weight: 560; color: var(--text); background: var(--raise); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.num, .stepper, table.people, .viewer-details, .phead .meta { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }

/* Light from above, and grain */
.spot { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(70% 55% at 50% -12%, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0) 70%); }
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.045; mix-blend-mode: screen; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>"); }

/* Type roles */
.wide { font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; }
.caps { font-variation-settings: "wdth" 112; font-weight: 520; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }

/* Platinum: the one material */
.plat, .tab.active, .tab-trigger.on, .pill-btn.primary, .generate {
  position: relative; overflow: hidden; background: var(--chrome); color: var(--on-chrome);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.plat::after, .pill-btn.primary::after, .generate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.75) 48%, transparent 66%); transform: translateX(-120%); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .btn.plat:hover::after, .pill-btn.primary:hover:not(:disabled)::after, .generate:hover:not(:disabled)::after { transform: translateX(120%); transition: transform 650ms var(--ease); }
}
.mark { display: block; flex: none; }

/* Buttons */
.btn, .pill-btn.primary, .generate { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 22px; border-radius: 999px; font-variation-settings: "wdth" 112; font-weight: 620; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; text-decoration: none; transition: transform 140ms var(--ease); }
.btn:active, .pill-btn:active:not(:disabled), .generate:active:not(:disabled) { transform: scale(0.97); }
.btn-ghost { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 520; font-size: 13px; white-space: nowrap; text-decoration: none; color: var(--text); transition: transform 140ms var(--ease), box-shadow 150ms ease, background-color 150ms ease; }
.pill-btn.primary { height: 38px; padding: 0 18px; font-size: 11.5px; }
.pill-btn svg, .btn svg, .generate svg { flex: none; }
.pill-btn.ghost { box-shadow: inset 0 0 0 1px var(--line-2); }
.pill-btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--line-3); transition-duration: 0ms; }
.pill-btn.danger { color: var(--neg); }
.pill-btn:disabled, .generate:disabled { opacity: 0.45; cursor: not-allowed; }
/* A pill button working through a count (Open in editor): full strength, the count in its label, and the tiles' thin
   chrome line filling along its bottom edge, inside the pill. */
.pill-btn.busy { position: relative; overflow: hidden; font-variant-numeric: tabular-nums; }
.pill-btn.busy:disabled { opacity: 1; cursor: progress; }
.pill-btn .btn-line { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; pointer-events: none; }
.pill-btn .btn-line i { position: absolute; inset: 0; background: var(--chrome); transform-origin: left; transform: scaleX(0.02); transition: transform 300ms var(--ease); }
.link-btn { color: var(--text-2); font-size: 13px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); text-decoration-color: var(--text); }

/* Fields */
.field { height: 44px; border: 0; border-radius: 12px; padding: 0 16px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line-2); outline: none; color: var(--text); font-size: 14px; }
.field::placeholder { color: var(--text-3); }
.field:focus { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.field.area { height: auto; padding: 12px 16px; resize: vertical; line-height: 1.5; }
select.field { appearance: none; -webkit-appearance: none; padding-right: 34px; background: rgba(255, 255, 255, 0.02) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239C9CA3' stroke-width='2' stroke-linecap='round'><path d='m7 10 5 5 5-5'/></svg>") no-repeat right 14px center; cursor: pointer; }
select.field option { background: var(--menu); color: var(--text); }

/* Quotes: words rise out of a blur, then one light band crosses the line (reveal.js) */
.q { position: relative; }
.q .qw { display: inline-block; opacity: 0; }
.q.q-in .qw { animation: qIn 560ms var(--ease) both; }
@keyframes qIn { from { opacity: 0; transform: translateY(0.45em); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
.q::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0;
  background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 100% 0; }
.q.q-swept::after { animation: qSweep 900ms var(--ease) both; }
@keyframes qSweep { 0% { opacity: 1; background-position: 100% 0; } 99% { opacity: 1; } 100% { opacity: 0; background-position: 0% 0; } }
/* A tile being made: the letters themselves carry a light band that crosses them, first to last, about 1.8s a pass with
   a short rest, until the tile finishes. The fill eases a step below the text color first so the band reads. */
@property --qbase { syntax: "<color>"; inherits: false; initial-value: #EDEDEF; }
.q.q-loading { --qbase: #A9A9B0; color: transparent; -webkit-text-fill-color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, var(--qbase) 0%, var(--qbase) 44%, #FFFFFF 50%, var(--qbase) 56%, var(--qbase) 100%); background-size: 300% 100%; background-repeat: no-repeat; background-position: 100% 0;
  animation: qBase 600ms ease both, qShine 2300ms linear 200ms infinite; }
.q.q-loading.q-held { animation: qShine 2300ms linear infinite; }
.q.q-loading .qw { animation: none; opacity: 1; }
.q.q-loading::after { content: none; }
@keyframes qBase { from { --qbase: #EDEDEF; } to { --qbase: #A9A9B0; } }
@keyframes qShine { 0% { background-position: 100% 0; } 78%, 100% { background-position: 0% 0; } }

/* ============================== Top bar ============================== */
.sub-banner { position: relative; z-index: 21; padding: 10px var(--gutter); text-align: center; font-size: 13.5px; color: var(--text); background: var(--panel); box-shadow: inset 0 -1px 0 var(--line); }
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 0 var(--gutter); background: rgba(10, 10, 11, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text); text-decoration: none; justify-self: start; white-space: nowrap; }
.tabs { display: flex; gap: 4px; min-width: 0; }
.tab { flex: none; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: var(--text-2); white-space: nowrap; transition: color 150ms ease; }
.tab:hover { color: var(--text); transition-duration: 0ms; }
.tab.active, .tab.active:hover, .tab-trigger.on, .tab-trigger.on:hover { font-weight: 600; color: var(--on-chrome); }
.top-right { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-width: 0; }
/* The tip under the status and under the Auto mode switch. The balances and their pop-up left the bar for the
   membership card (D-87), so the right side holds only the status, the switch and the account icon. */
.top-tip { position: absolute; right: 0; top: calc(100% + 18px); width: 300px; padding: 14px 16px; border-radius: 14px; background: var(--menu); box-shadow: var(--pop); white-space: normal; font-size: 13px; line-height: 1.5; color: var(--text-2);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 150ms ease, transform 150ms var(--ease); z-index: 40; }
.top-tip strong { display: block; color: var(--text); font-weight: 560; font-size: 14px; }
.top-tip span { display: block; }
.top-tip strong + span { margin-top: 2px; }
/* Auto mode (D-83): one switch for the whole app, in the bar's quiet text (13px, the quiet text colour). Its track
   turns to the one material when it is on, as the active tab does. */
.auto { position: relative; flex: none; display: flex; }
.auto:hover .top-tip, .auto-switch:focus-visible + .top-tip { opacity: 1; transform: none; }
.auto-switch { display: inline-flex; align-items: center; gap: 9px; height: 34px; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; transition: color 150ms ease; } /* darker and bolder so it reads at a glance (Christian, 2026-12-03) */
.auto-switch:hover { color: var(--text); transition-duration: 0ms; }
.auto-switch[aria-checked="true"] { color: var(--text); }
.auto-switch:disabled { cursor: progress; }
.auto-track { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: var(--line-2); box-shadow: inset 0 0 0 1.5px var(--text-3); transition: background-color 150ms ease; }
.auto-track i { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); translate: 0 0; transition: translate 420ms var(--spring, var(--ease)), background-color 150ms ease; }
.auto-switch[aria-checked="true"] .auto-track { background: var(--chrome); box-shadow: var(--chrome-edge, inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.5)); }
.auto-switch[aria-checked="true"] .auto-track i { translate: 12px 0; background: var(--on-chrome); }
/* Is the person's AI listening right now (D-86): a dot and its words beside the switch, set like its words. The dot
   is a quiet ring when it is not and a full dot when it is, and the words take the text colour as the switch's do.
   Each wording is given the width of its longer state, so the bar does not move when the status changes. */
.listen { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; outline: none; cursor: default; }
.listen > i { flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--text); transition: background-color 150ms ease, box-shadow 150ms ease; }
.listen[data-state="on"] { color: var(--text); }
.listen[data-state="on"] > i { background: var(--text); box-shadow: 0 0 0 3px var(--line-2); }
/* Their agent is waiting on their answer in the AI chat (ask_user): the brightest the dot gets. */
.listen[data-state="ask"] { color: var(--text); }
.listen[data-state="ask"] > i { background: var(--chrome); box-shadow: 0 0 0 3px var(--line-3); }
.asks-list { margin: 2px 0 0; padding-left: 20px; color: var(--text); font-size: 13px; }
.asks-list li { margin: 2px 0; }
/* A swipe's winning ad, small, beside its name; and its script on the Plan page, as written. */
.plan-ref-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-script-text { margin: 8px 0 0; white-space: pre-wrap; color: var(--text); font-size: 13px; line-height: 1.55; }
#plan-new-swipe { margin-left: 8px; }
.listen:hover .top-tip, .listen:focus-visible .top-tip { opacity: 1; transform: none; }
/* The Pronunciation dictionary button beside the status (D-174): a quiet pill with a hairline edge, in the bar's 13px
   words, so it reads as a button and not as status. Its full words give way to "Pronunciations" when the bar is tight
   (FIT_STEPS 'pron', after the status has gone to its dot) and on a phone. */
.pron-top { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--text-2); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line-2); transition: color 150ms ease, box-shadow 150ms ease; }
.pron-top:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--text-3); transition-duration: 0ms; }
.pron-top:active { scale: 0.97; }
/* Filled like the main buttons, so the dictionary is easy to find (Christian, 2026-12-03). */
.pron-top.plat { color: var(--on-chrome); font-weight: 620; }
.pron-top.plat:hover { color: var(--on-chrome); }
@media (hover: hover) { .pron-top.plat:hover::after { transform: translateX(120%); transition: transform 650ms var(--ease); } }
.pron-top-short { display: none; }
.listen-long, .listen-short { display: inline-grid; }
.listen-long::after, .listen-short::after { content: attr(data-wide); height: 0; overflow: hidden; visibility: hidden; }
.listen-short { display: none; }
/* Where the right side would run under the tab pill, the status gives way, in this order (app.js fitTopBar,
   FIT_STEPS): its full words for its short ones, then those for the dot alone (the words stay in its tip), then the
   tab pill, which scrolls as it does on a phone. That last step never happens at 1280 or 1440 wide. The words
   "Auto mode" are never hidden, at any width (D-84). */
.topbar.short .listen-long { display: none; }
.topbar.short .listen-short { display: inline-grid; }
.topbar.dot .listen-short { display: none; }
.topbar.pron .pron-top-long { display: none; }
.topbar.pron .pron-top-short { display: inline; }
.topbar.tight .tab { padding: 0 11px; }
.topbar.narrow .tab { padding: 0 7px; }
.topbar.slim .tab { padding: 0 5px; }
.topbar.snug .tab { padding: 0 3px; font-size: 13px; }
.topbar.squeeze { grid-template-columns: auto minmax(0, 1fr) auto; }
.topbar.squeeze .tabs { overflow-x: auto; scrollbar-width: none; scroll-padding: 0 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent); }
.topbar.squeeze .tabs::-webkit-scrollbar { display: none; }
/* From 860px down the tab pill always scrolls, as on a phone, so the status stays the dot it already was by then
   (its words gave way before the pill had to scroll) and never comes back as the window narrows. A phone has room for
   the dot, the switch with its words and the avatar; the status's words are in its tip. */
@media (max-width: 860px) { .top-right { gap: 12px; } .topbar .listen-long, .topbar .listen-short, .topbar.short .listen-short { display: none; } }
@media (max-width: 600px) { .pron-top { padding: 0 10px; } .pron-top .pron-top-long { display: none; } .pron-top .pron-top-short { display: inline; } }
.account { position: relative; }
/* A low or empty balance, a missing key or a balance KIE could not send: a dot on the account icon, since the bar no
   longer shows the number that went red (D-87). The reason is the icon's tooltip, and the card says the rest. */
.avatar.warn { position: relative; }
.avatar.warn::after { content: ""; position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--neg); box-shadow: 0 0 0 2px var(--frame, var(--bg)); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; text-transform: uppercase; color: var(--text); background: #18181B; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.avatar:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1); }

/* Menus: composer settings, the @mention picker */
.menu { position: absolute; z-index: 40; min-width: 230px; padding: 6px; border-radius: 14px; background: var(--menu); box-shadow: var(--pop); }
.menu:not([hidden]) { animation: menuIn 170ms var(--ease) both; }
@keyframes menuIn { from { opacity: 0; transform: scale(0.97) translateY(4px); } to { opacity: 1; transform: none; } }
.menu .option, .menu > button { display: flex; align-items: center; gap: 24px; width: 100%; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--text-2); text-align: left; }
.menu .option:hover, .menu > button:hover { background: var(--raise); color: var(--text); }
.menu .option.on { color: var(--text); font-weight: 560; }
.menu .option .hint { color: var(--text-3); font-weight: 400; font-size: 12px; white-space: nowrap; }

/* The membership card (the account menu) */
.acct { position: absolute; right: -2px; top: calc(100% + 12px); z-index: 40; width: 340px; padding: 14px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px rgba(0, 0, 0, 0.6); transform-origin: top right;
  /* The card holds the balances and their notes (D-87), so on a short window it scrolls inside itself and Log out stays in reach. */
  max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.acct:not([hidden]) { animation: acctIn 180ms var(--ease) both; }
@keyframes acctIn { from { opacity: 0; transform: scale(0.97) translateY(-4px); } to { opacity: 1; transform: none; } }
.card { position: relative; aspect-ratio: 1.586; border-radius: 14px; overflow: hidden; padding: 18px 18px 16px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 90% at 20% 0%, #2A2A2E 0%, #121214 55%, #0B0B0C 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 30px rgba(0, 0, 0, 0.6); }
.card::before { content: ""; position: absolute; inset: 7px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); pointer-events: none; }
.card::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.09) 50%, transparent 58%); transform: translateX(-30%); pointer-events: none; }
.acct:not([hidden]) .card::after { animation: cardSweep 900ms var(--ease) both; }
@keyframes cardSweep { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
.card .t, .card .b { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card .b { align-items: flex-end; }
.card .chip { position: relative; width: 34px; height: 26px; border-radius: 5px; background: var(--chrome); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); opacity: 0.9; }
.card .nm { position: relative; font-variation-settings: "wdth" 125; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; color: #E4E4E7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card .who { font-size: 12px; letter-spacing: 0.16em; }
.card .since { flex: none; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); text-align: right; line-height: 1.5; }
.card .since b { display: block; font-size: 13px; color: #D4D4D8; letter-spacing: 0.1em; font-weight: 600; }
.acct .rows { display: grid; margin-top: 12px; font-variant-numeric: tabular-nums; }
.acct .rows > div, .acct .rows > button { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 10px 6px; font-size: 13.5px; color: var(--text-2); border-radius: 8px; text-align: left; }
.acct .rows > button:hover { background: var(--raise); color: var(--text); }
/* Log out stays at the bottom of the card while the rows above it scroll, whatever the window's height and however
   many rows the card has (Pronunciations made it taller than a 900px window for the owner, 2026-12-02). */
.acct .rows > #logout { position: sticky; bottom: 0; z-index: 1; background: var(--glass-read, var(--panel)); }
.acct .rows > #logout:hover { background: var(--raise); }
.acct .rows b { color: var(--text); font-weight: 500; text-align: right; }
.acct .rows b.neg { color: var(--neg); }
.acct .rows .chev { color: var(--text-3); }
.acct .rows .sep { height: 1px; padding: 0; margin: 4px 6px; background: var(--line); }
/* Under each balance, what its pop-up in the top bar used to say (D-87). */
.acct .rows .acct-note { margin: -4px 6px 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }

/* ============================== Page header ============================== */
main { position: relative; z-index: 1; padding: 0 0 80px; }
main > section { padding: 0 var(--gutter); }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 30px var(--gutter) 18px; }
.phead h1 { margin: 0; font-size: 30px; line-height: 1; }
.phead .meta { margin-top: 10px; color: var(--text-3); font-size: 13px; }
.phead .meta.note { margin-top: 4px; }
/* The 40ch cap is on the quote, not the whole column: the tools row (Watch tutorial, Clear all, tile size) is wider
   than 40ch, and with the cap on the column it spilled out of it and pushed the quote past the page's edge (2026-11-21). */
.ph-right { display: grid; justify-items: end; gap: 12px; text-align: right; min-width: 0; }
.ph-qotd { display: grid; justify-items: end; gap: 6px; max-width: 40ch; }
.ph-quote-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.ph-quote { font-variation-settings: "wdth" 118; font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); text-wrap: balance; }

/* Clear all sits just left of the tile size slider: a quiet ghost pill, never platinum */
.ph-tools { display: flex; align-items: center; gap: 16px; }
.pill-btn.clear-all { height: 28px; padding: 0 12px; font-size: 12px; color: var(--text-2); }
.pill-btn.clear-all:hover { color: var(--text); }

/* Zoom: five tile sizes */
.zoom { display: flex; align-items: center; gap: 10px; color: var(--text-3); }
.zoom input { -webkit-appearance: none; appearance: none; width: 104px; height: 2px; border-radius: 2px; background: var(--line-2); outline: none; cursor: pointer; }
.zoom input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.zoom input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; }
.zoom input:focus-visible { outline: 1px solid var(--text); outline-offset: 6px; }
/* Hidden on tabs without tiles, but it keeps its room so the header quote doesn't jump between tabs. */
.ph-right .zoom[hidden] { display: flex !important; visibility: hidden; }

/* Toolbars inside a page */
.library-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.segmented { display: inline-flex; gap: 2px; }
.segmented button { height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13px; color: var(--text-2); transition: color 150ms ease, background-color 150ms ease; }
.segmented button:hover { color: var(--text); transition-duration: 0ms; }
.segmented button.on { color: var(--text); background: var(--raise); font-weight: 560; }
.dash-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dash-head h2 { margin: 0; font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.dash-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.empty-note { padding: 64px 0 40px; text-align: center; color: var(--text-3); }
.empty-note p { margin: 14px auto 0; max-width: 46ch; }
.empty-q { font-size: clamp(18px, 2.2vw, 26px); line-height: 1.15; color: var(--text); text-wrap: balance; max-width: 26ch; margin: 0 auto; }
.sentinel { height: 40px; }

/* ============================== Tiles ============================== */
.grid { --row-h: 230px; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 calc(6px - var(--gutter)); }
.grid::after { content: ""; flex-grow: 1000000; }
.tile { --ar: 1; position: relative; flex: var(--ar) 1 calc(var(--ar) * var(--row-h)); aspect-ratio: var(--ar); min-width: 0; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--panel); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; transition: box-shadow 150ms ease; }
.tile:hover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); transition-duration: 0ms; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.reveal img, .tile.reveal video { animation: develop 520ms var(--ease) both; }
@keyframes develop { from { opacity: 0; filter: brightness(1.6) blur(6px); } to { opacity: 1; filter: none; } }
.tile .overlay { position: absolute; inset: 0; opacity: 0; transition: opacity 150ms ease; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 28%, transparent 58%, rgba(0, 0, 0, 0.78)); }
.tile:hover .overlay, .tile:focus-within .overlay { opacity: 1; transition-duration: 0ms; }
.icon-btn { position: absolute; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 10, 11, 0.6); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); text-decoration: none; }
.icon-btn:hover { background: rgba(10, 10, 11, 0.85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.icon-btn.download { top: 10px; right: 10px; }
.icon-btn.trash { top: 10px; right: 48px; }
.icon-btn.use-ref { top: 10px; right: 86px; }
.overlay .pill-btn.recreate { position: absolute; left: 10px; bottom: 10px; height: 30px; padding: 0 12px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(10, 10, 11, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.overlay .pill-btn.recreate:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.tile .meta { position: absolute; right: 12px; bottom: 16px; max-width: calc(100% - 150px); color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile[data-state="success"] { cursor: zoom-in; }
/* Dashboard Select: a ring on every finished clip, filled with a check when picked; the hover buttons step aside. */
.tile .pick-mark { display: none; position: absolute; top: 10px; right: 10px; z-index: 4; width: 22px; height: 22px; border-radius: 50%; place-items: center; background: rgba(10, 10, 11, 0.45); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); pointer-events: none; }
.grid.selecting { user-select: none; -webkit-user-select: none; }
.grid.selecting .tile[data-state="success"] { cursor: pointer; }
.grid.selecting .tile .pick-mark { display: grid; }
.grid.selecting .tile .overlay { display: none; }
.grid.selecting .tile.picked::after { box-shadow: inset 0 0 0 2px var(--text); }
.tile.picked .pick-mark { background: var(--text); box-shadow: none; }
.tile.picked .pick-mark::before { content: "✓"; color: var(--bg); font-size: 12px; font-weight: 700; }
#dash-select[aria-pressed="true"] { color: var(--bg); background: var(--text); }
/* Audio tiles: a square card with the cover (or the plain panel), the clip name and a player along the bottom. */
.tile.audio .audio-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; }
.tile.audio .audio-card img { position: absolute; inset: 0; z-index: 0; }
.tile.audio .audio-name { position: relative; z-index: 1; font-size: 13px; font-weight: 560; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.tile.audio audio { position: relative; z-index: 4; width: 100%; height: 34px; }
.tile.audio .overlay { pointer-events: none; }
.tile.audio .overlay a, .tile.audio .overlay button { pointer-events: auto; }
.tile.audio .meta { bottom: auto; top: 16px; }
.audio-view { display: grid; gap: 16px; justify-items: center; width: min(520px, 100%); }
.audio-view img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.audio-view audio { width: 100%; }
.pick-audio { display: grid; place-items: center; width: 100%; height: 100%; font-size: 28px; color: var(--text-2); background: var(--panel); }
/* The composer's song style box and the voice menu's play buttons. */
.control.song-style input { height: 34px; width: 220px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--raise); color: var(--text); font: inherit; font-size: 13px; }
.control.voice-control .menu { max-height: 360px; overflow-y: auto; }
.voice-row .play { margin-left: auto; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 999px; background: var(--raise); color: var(--text-2); font-size: 10px; cursor: pointer; }
.voice-row .play:hover, .voice-row .play.on { color: var(--text); background: var(--line-2); }
.voice-error { padding: 10px; font-size: 13px; color: var(--text-2); }
.voice-error p { margin: 0 0 6px; }
/* Fidelity with no OpenAI key: greyed out; its pop-up says why, with a button to the key. */
.control.locked > button { opacity: 0.45; }
.control.locked > button:hover, .control.locked > button[aria-expanded="true"] { opacity: 0.7; }
.menu.locked-note { width: 280px; padding: 16px; }
.locked-note strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.locked-note p { margin: 6px 0 14px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.locked-note .pill-btn { width: 100%; height: 38px; }

/* Being made: a line from the board, a timer, a platinum bar */
.tile.pending { background: linear-gradient(180deg, #17171A, #111113); cursor: default; }
.tile.pending .mk-top { position: absolute; left: 14px; right: 14px; top: 13px; font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile.pending .qq { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); text-align: center; font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(13px, 1.4vw, 19px); line-height: 1.15; color: var(--text); text-wrap: balance; }
.tile.pending .st { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile.pending .st span:last-child { overflow: hidden; text-overflow: ellipsis; }
.progress { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress i { position: absolute; inset: 0; background: var(--chrome); transform-origin: left; transform: scaleX(0.02); transition: transform 1s linear; }
.tile.failed { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; color: var(--text-2); font-size: 12px; }
.tile.failed strong { color: var(--neg); font-size: 13px; font-weight: 600; }
.tile.failed .why { overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.tile.failed .icon-btn.trash { top: 10px; right: 10px; opacity: 0; transition: opacity 150ms ease; }
.tile.failed:hover .icon-btn.trash { opacity: 1; transition-duration: 0ms; }
.tile.expired { display: grid; place-items: center; color: var(--text-3); font-size: 12px; text-align: center; padding: 16px; }

/* "Last downloaded", "Last viewed", "Waiting for Claude" */
.tile-badge { position: absolute; z-index: 2; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 10px; border-radius: 999px;
  background: rgba(10, 10, 11, 0.72); color: var(--text); font-size: 11px; font-weight: 560; white-space: nowrap; pointer-events: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.tile-badge i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.badge-downloaded { top: 10px; left: 50%; transform: translateX(-50%); }
.badge-viewed { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.badge-viewed i { background: none; box-shadow: inset 0 0 0 1.5px var(--text); width: 8px; height: 8px; }
.badge-regen { top: 10px; left: 10px; pointer-events: auto; }
/* An uploaded photo 7 days or less from deletion (web/shared/uploads.js) */
.badge-deletes { top: 10px; left: 10px; }
#page-library.dragging { outline: 1px dashed var(--line-3); outline-offset: 6px; border-radius: 16px; }
.tile.is-last-viewed::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(10, 10, 11, 0.5); pointer-events: none; transition: opacity 150ms ease; }
.tile.is-last-viewed:hover::before, .tile.is-last-viewed:hover .badge-viewed { opacity: 0; }
.tile:hover .badge-downloaded { opacity: 0; }

/* ============================== Composer ============================== */
#page-create { padding-bottom: calc(var(--composer-h, 150px) + 40px); }
.hero { min-height: calc(100vh - 64px - 110px - var(--composer-h, 150px) - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0; }
.hero h1 { margin: 0; font-size: clamp(22px, 3vw, 40px); line-height: 1.12; max-width: 22ch; text-wrap: balance; }
.hero p { color: var(--text-3); margin: 18px 0 0; max-width: 52ch; }
.composer { position: fixed; z-index: 15; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(980px, calc(100% - 32px)); padding: 14px 14px 10px; border-radius: 20px;
  background: rgba(20, 20, 22, 0.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.55); }
.composer.dragging { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 24px 60px rgba(0, 0, 0, 0.55); }
.composer-top { display: flex; gap: 14px; align-items: flex-start; }
.refs { display: flex; gap: 8px; flex-wrap: wrap; max-width: 46%; }
.thumb { position: relative; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--raise); flex: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .n { position: absolute; left: 3px; bottom: 3px; padding: 0 5px; border-radius: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, 0.6); }
.thumb .x { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; display: none; place-items: center; font-size: 12px; line-height: 1; }
.thumb:hover .x { display: grid; }
.thumb.loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%); background-size: 220% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.thumb.missing { box-shadow: inset 0 0 0 1.5px var(--neg); display: grid; place-items: center; font-size: 9px; text-align: center; color: var(--neg); padding: 2px; }
.add-thumb { width: 52px; height: 52px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); display: grid; place-items: center; flex: none; }
.add-thumb:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.frame-slot { width: 66px; height: 66px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); display: grid; place-items: center; text-align: center; font-size: 11px; line-height: 1.3; position: relative; overflow: hidden; flex: none; }
.frame-slot:hover:not(:disabled) { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }
.frame-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame-slot:disabled { opacity: 0.4; cursor: not-allowed; }
.frame-slot .x { position: absolute; top: 4px; right: 4px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; display: grid; place-items: center; font-size: 12px; }
.refs .thumb[draggable="true"] { cursor: grab; }
.refs .thumb.dragging { opacity: 0.4; }
.refs .thumb.drop-target, .refs .thumb.hl { outline: 1.5px solid var(--text); outline-offset: 2px; }

.prompt-wrap { position: relative; flex: 1; min-width: 0; }
.prompt { min-height: 52px; max-height: 180px; overflow-y: auto; padding: 4px 2px; outline: none; font-size: 16px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; caret-color: #fff; }
.prompt:empty::before { content: attr(data-placeholder); color: var(--text-3); pointer-events: none; }
.mention { display: inline-block; padding: 0 6px; margin: 0 1px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); user-select: all; }
.mention-menu { left: 0; bottom: calc(100% + 6px); width: 210px; min-width: 0; max-height: 260px; overflow-y: auto; transform-origin: bottom left; }
.mention-menu .option { padding: 6px 8px; gap: 10px; }
.mention-menu .option img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }

.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.control-group { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; flex: 1; min-width: 0; }
.control { position: relative; }
.control > button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 12.5px; color: var(--text); font-weight: 560; white-space: nowrap; }
.control > button .label { color: var(--text-3); font-weight: 400; }
.control > button svg { color: var(--text-3); margin-left: -2px; }
.control > button:hover, .control > button[aria-expanded="true"] { background: var(--raise); }
.control .menu { bottom: calc(100% + 8px); left: 0; max-height: 340px; overflow-y: auto; transform-origin: bottom left; }
.control .menu .option { min-width: 240px; justify-content: space-between; }
/* The Style button wears the selected tab's platinum so people notice it (Christian, 2026-10-30). */
.style-control > button, .style-control > button:hover, .style-control > button.on { background: var(--chrome); color: var(--on-chrome); font-weight: 600; border-radius: 999px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.5); }
.style-control > button .label, .style-control > button svg { color: var(--on-chrome); opacity: 0.75; }
.stepper { display: inline-flex; align-items: center; height: 34px; padding: 0 4px; border-radius: 999px; font-size: 12.5px; }
.stepper button { width: 26px; height: 30px; font-size: 15px; color: var(--text-2); border-radius: 999px; }
.stepper button:hover { color: var(--text); background: var(--raise); }
.stepper span { min-width: 30px; text-align: center; font-weight: 560; }
.spacer { flex: 1; }
.cost { font-size: 14px; font-weight: 680; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; } /* bold so the price is easy to see (Christian, 2026-12-03) */
.cost small { color: var(--text-3); font-size: 12px; margin-left: 6px; }
.generate { min-width: 120px; }
.composer .error { color: var(--neg); font-size: 12px; margin: 6px 4px 2px; }
.composer .note { color: var(--text-3); font-size: 12px; margin: 6px 4px 2px; }
.composer .fidelity-note .link-btn { font-size: 12px; }

/* ============================== Toast ============================== */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(var(--composer-h, 0px) + 40px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 10px); display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 8px 8px 8px 16px; border-radius: 999px;
  background: var(--menu); box-shadow: inset 0 0 0 1px var(--line-2), 0 16px 40px rgba(0, 0, 0, 0.6); font-size: 13.5px; opacity: 0; transition: opacity 200ms ease, transform 240ms var(--ease); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast:not(:has(button:not([hidden]))) { padding-right: 16px; }
.toast .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; }
.toast .t-q { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); font-variation-settings: "wdth" 118; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.toast .t-main { font-weight: 520; }

/* ============================== Modals ============================== */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(5, 5, 6, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-backdrop:not([hidden]) { animation: fadeIn 180ms ease both; }
.modal { width: min(420px, 100%); display: grid; gap: 12px; padding: 22px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.6); color: var(--text); }
.modal-backdrop:not([hidden]) .modal { animation: menuIn 200ms var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal > strong:first-child, .modal h2 { font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: 16px; margin: 0; }
.modal p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 4px; }
.modal .msg { color: var(--neg); font-size: 12.5px; min-height: 16px; }
.modal .msg.ok { color: var(--text-2); }
.modal .steps, .setup .steps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.modal .steps li + li, .setup .steps li + li { margin-top: 4px; }
.modal .key-label { font-size: 13px; color: var(--text); font-weight: 520; }
.modal.settings { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; gap: 14px; }
.modal-head { position: sticky; top: -21px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -21px -21px 0; padding: 17px 15px 10px 21px; background: var(--panel); border-radius: 18px 18px 0 0; }
.modal-head strong { font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: 16px; margin: 0; }
.modal-x { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer; transition: background-color 150ms ease, color 150ms ease; }
.modal-x:hover { background: var(--line); color: var(--text); }
.modal-x:focus-visible { outline: 2px solid var(--text-2); outline-offset: 2px; }
.sub-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
/* The cancel flow: Stay is the big highlighted button on the left, leaving a small plain line after it. */
.cx-modal { width: min(460px, 100%); gap: 14px; padding: 26px; }
.cx-modal > strong:first-child { font-size: 18px; line-height: 1.25; text-wrap: balance; }
.cx-pause-line { font-size: 12.5px !important; color: var(--text-3) !important; }
.cx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 8px; }
.cx-stay { height: 48px; padding: 0 30px; font-size: 13px; }
.cx-pause { height: 40px; }
.cx-leave { margin-left: auto; padding: 6px 2px; border: 0; background: none; color: var(--text-3); font-size: 12px; opacity: 0.75; cursor: pointer; }
.cx-leave:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.cx-modal button:disabled { opacity: 0.5; cursor: default; }
/* The loss list on a trial's Cancel plan and on the lock screen (PRD trial-growth-trial-cancel). */
.cx-points { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.lock-backdrop { z-index: 1000; }
.lock-out { margin: 4px 0 0; align-self: flex-start; }
/* Change plan (PRD create-studio-switch-to-starter): the two plans side by side, the current one tagged; the lock
   screen's Come back on Starter; the banner's two ways back for a plan that stopped paying. */
.cp-row { margin-top: -4px; }
.cp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cp-opts[hidden] { display: none; }
.cp-opt { display: grid; align-content: start; gap: 4px; padding: 16px; border-radius: 14px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.cp-name { font-size: 15px; font-weight: 600; }
.cp-price { font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--text); }
.cp-what { font-size: 12.5px; line-height: 1.4; color: var(--text-3); }
.cp-tag { justify-self: start; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.cp-opt .pill-btn { justify-self: start; margin-top: 8px; }
.cp-tag[hidden], .cp-opt .pill-btn[hidden] { display: none; }
.lock-starter { height: 48px; padding: 0 22px; font-size: 13px; }
.sub-choices { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; padding-top: 0; }
.sub-choices[hidden] { display: none; }
.sub-choice { display: inline-flex; align-items: center; gap: 8px; }
.sub-price { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--text-3); }
@media (max-width: 480px) { .cp-opts { grid-template-columns: 1fr; } .lock-starter { flex: 1 1 100%; } }
@media (max-width: 480px) { .cx-stay { flex: 1 1 100%; } .cx-leave { margin-left: 0; } }
.key-row { display: grid; gap: 8px; }
.key-head { display: flex; align-items: baseline; gap: 10px; }
.key-head .muted { font-size: 12.5px; }
.key-head .link-btn { margin-left: auto; font-size: 12.5px; }
/* Pronunciations (web/pronounce.js): one row per word, the word and how to say it side by side, Remove at the end. */
.pron-list { display: grid; gap: 8px; }
.pron-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.pron-row .field { min-width: 0; }
.pron-row .link-btn { font-size: 12.5px; }
.pron-add { justify-self: start; font-size: 12.5px; }
/* The empty list's two examples (D-174): in the rows' own grid, greyed, with a dashed edge so they never read as fields. */
.pron-examples { display: grid; gap: 6px; }
.pron-ex-label { font-size: 12px; color: var(--text-3); }
.pron-ex-gap { visibility: hidden; }
.pron-ex-cell { display: block; min-width: 0; height: 44px; line-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; color: var(--text-3); outline: 1px dashed var(--line-2); outline-offset: -1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: none; }
@media (max-width: 480px) { .pron-ex-cell { padding: 0 12px; } }
@media (max-width: 480px) { .pron-row { gap: 6px; } .pron-row .field { padding: 0 12px; } }
/* The line beside a script or prompt box (D-170): Pronunciations (N), then each listed word the box says, underlined,
   with how it is said in a small menu-like tip on hover or focus. Plain 12.5px app text, no new colours. */
.pron-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.pron-bar .pron-open { font-size: 12.5px; }
.pron-said { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pron-said[hidden], .pron-hint[hidden] { display: none; }
.pron-word { position: relative; color: var(--text-2); text-decoration: underline dotted; text-decoration-color: var(--text-3); text-underline-offset: 3px; cursor: help; border-radius: 4px; }
.pron-word:hover, .pron-word:focus-visible { color: var(--text); text-decoration-color: var(--text); outline: none; }
.pron-tip { position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 40; transform: translateX(-50%) scale(0.96); transform-origin: 50% 100%; padding: 6px 10px; border-radius: 10px; background: var(--menu); box-shadow: var(--pop); color: var(--text-2); font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 150ms ease-out, transform 150ms ease-out; }
.pron-tip b { color: var(--text); font-weight: 600; }
.pron-word:hover .pron-tip, .pron-word:focus-visible .pron-tip { opacity: 1; transform: translateX(-50%) scale(1); transition-duration: 0ms; }
.pron-hint { flex-basis: 100%; text-align: left; font-size: 12.5px; color: var(--text-2); }
.pron-hint:hover { color: var(--text); }
/* In the composer the line sits under the prompt, inside the prompt's column. */
.prompt-col { flex: 1; min-width: 0; display: grid; }
.prompt-col .pron-bar { margin-top: 2px; padding: 0 2px; }
@media (prefers-reduced-motion: reduce) { .pron-tip { transform: translateX(-50%); transition: opacity 150ms ease-out; } .pron-word:hover .pron-tip, .pron-word:focus-visible .pron-tip { transform: translateX(-50%); } }
.settings .section { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.settings .section h3 { margin: 0; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.settings .section h3 .muted { font-weight: 400; font-size: 12.5px; }

/* The assistant tabs: Settings and setup step 4 */
.asst-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.asst-tabs button { height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13px; color: var(--text-2); }
.asst-tabs button:hover { color: var(--text); }
.asst-tabs button.on { color: var(--text); background: var(--raise); font-weight: 560; }
.asst-body { display: grid; gap: 12px; margin-top: 12px; }
.asst-body p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-2); }
.copy-row span { flex: 1; min-width: 0; font-size: 13px; font-weight: 520; color: var(--text); overflow-wrap: break-word; }
.copy-row .pill-btn { flex: none; height: 30px; }
.asst-state { font-size: 13px; color: var(--text-2); }
.asst-state.ok { color: var(--text); }

/* ============================== Customer setup (full screen) ============================== */
.setup { position: fixed; inset: 0; z-index: 85; overflow-y: auto; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; }
.setup:not([hidden]) { animation: fadeIn 200ms ease both; }
.setup::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(70% 55% at 50% -12%, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0) 70%); }
.setup-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 64px; padding: 0 var(--gutter); }
.setup-main { position: relative; width: min(620px, 100%); margin: 0 auto; padding: 28px 24px 40px; display: grid; align-content: start; gap: 18px; }
.setup-step-of { display: flex; align-items: center; gap: 14px; }
.setup-bars { display: flex; gap: 4px; }
.setup-bars i { width: 22px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.setup-bars i.on { background: var(--chrome); }
.setup h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); line-height: 1.08; }
.setup-main > p, .setup-body > p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.setup-body { display: grid; gap: 14px; }
.setup-body .steps { font-size: 14.5px; }
.setup-key { display: flex; gap: 8px; flex-wrap: wrap; }
.setup-key .field { flex: 1 1 260px; min-width: 0; }
.setup-saved { font-size: 13.5px; color: var(--text); }
.setup-saved.err { color: var(--neg); }
.setup-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.setup-list li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text-2); }
.setup-list li b { color: var(--text); font-weight: 520; }
.setup-sub { margin: 8px 0 0; font-size: 14px; font-weight: 560; color: var(--text); }
.setup-extras li { align-items: baseline; }
.setup-extras li .link-btn { white-space: nowrap; }
.setup-foot { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: min(620px, 100%); margin: 0 auto; padding: 18px 24px calc(28px + env(safe-area-inset-bottom, 0px)); }
.setup-foot .right { display: flex; gap: 8px; align-items: center; }
.setup .note-box { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.setup .note-box strong { color: var(--text); font-weight: 560; }

/* ============================== Viewer ============================== */
.viewer { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: 56px 1fr 56px 360px; align-items: stretch; background: rgba(8, 8, 9, 0.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: var(--text); }
.viewer:not([hidden]) { animation: fadeIn 180ms ease both; }
.viewer-media { display: grid; place-items: center; padding: 24px 8px; min-width: 0; min-height: 0; cursor: zoom-out; }
.viewer-media img, .viewer-media video { max-width: 100%; max-height: calc(100vh - 48px); object-fit: contain; border-radius: 10px; cursor: default; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.viewer-nav { align-self: center; justify-self: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); font-size: 24px; line-height: 1; box-shadow: inset 0 0 0 1px var(--line-2); }
.viewer-nav:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.viewer-nav:disabled { opacity: 0.2; cursor: default; }
.viewer-panel { margin: 14px 14px 14px 0; padding: 16px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.viewer-model strong { display: block; font-size: 15px; font-weight: 600; }
.viewer-model span { color: var(--text-3); font-size: 12px; }
.viewer-close { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.viewer-close:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.viewer-card { padding-top: 14px; border-top: 1px solid var(--line); }
.viewer-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-variation-settings: "wdth" 112; font-weight: 520; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.viewer-label .pill-btn { height: 28px; padding: 0 11px; font-size: 12px; letter-spacing: 0; text-transform: none; font-variation-settings: "wdth" 100; }
.viewer-refs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.viewer-refs:empty { display: none; }
.viewer-refs .thumb { width: 60px; height: 60px; }
.viewer-prompt { font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 38vh; overflow-y: auto; }
.viewer-details { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
.viewer-details dt { color: var(--text-3); }
.viewer-details dd { margin: 0; text-align: right; }
.viewer-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.viewer-actions .pill-btn { height: 42px; }

/* ============================== Login and join ============================== */
.login { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: 28px max(28px, env(safe-area-inset-right, 0px)) 24px max(28px, env(safe-area-inset-left, 0px)); overflow: hidden; }
.curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.l-top, .l-center, .l-foot { position: relative; z-index: 1; }
.l-center { display: grid; justify-items: center; align-content: center; text-align: center; gap: 30px; padding: 48px 0; }
.l-mark { filter: drop-shadow(0 8px 24px rgba(255, 255, 255, 0.08)); }
.l-head { margin: 0; font-size: clamp(23px, 6.1vw, 88px); line-height: 1.06; letter-spacing: 0.01em; display: grid; justify-items: center; gap: 0.16em; }
.l-head > span { white-space: nowrap; }
.l-head .metal { padding: 0.06em 0.22em 0.04em; border-radius: 0.12em; }
.l-sub { margin: -6px 0 0; color: var(--text-2); font-size: 16px; }
.l-form { display: grid; gap: 14px; width: min(380px, 100%); }
.l-form form { display: grid; gap: 12px; text-align: left; }
.l-form .btn { height: 50px; font-size: 12.5px; }
.team summary { list-style: none; cursor: pointer; padding: 4px 0; }
.team summary::-webkit-details-marker { display: none; }
.team summary:hover { color: var(--text); }
.team[open] summary { margin-bottom: 14px; }
.lbl { display: grid; gap: 6px; }
.lbl .field { width: 100%; height: 46px; font-size: 15px; }
.l-form .msg { min-height: 20px; font-size: 13.5px; color: var(--neg); }
.l-form .msg:empty { display: none; }
.l-form .hint { color: var(--text-3); font-size: 13px; }
.l-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.l-foot nav a { color: var(--text-3); text-decoration: none; margin-right: 22px; }
.l-foot nav a:hover { color: var(--text); }
.l-foot nav a:last-child { margin-right: 0; }
.l-quote { text-align: right; }

/* ============================== Choose photos (web/upload.html; pu- = photo upload) ============================== */
.pu-state { display: grid; justify-items: center; gap: 22px; }
.pu-state[hidden] { display: none; }
.pu-head { margin: 0; font-size: clamp(30px, 5vw, 60px); line-height: 1.06; letter-spacing: 0.01em; }
.pu-state .l-sub { max-width: 440px; line-height: 1.5; }
.pu-state .l-form { margin-top: 8px; }
#pu-choose { cursor: pointer; }
.pu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.pu-list:empty { display: none; }
.pu-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; }
.pu-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pu-status { flex: none; color: var(--text-3); }
.pu-list li[data-state="done"] .pu-status { color: var(--text); }
.pu-list li[data-state="error"] { align-items: flex-start; flex-direction: column; gap: 4px; }
.pu-list li[data-state="error"] .pu-status { flex: 1 1 auto; color: var(--neg); }
.pu-done { margin: 4px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.pu-done[hidden] { display: none; }
body.pu-drop .l-form { outline: 1px dashed var(--line-3); outline-offset: 12px; border-radius: 16px; }

/* ============================== Dashboard, Admin, Clean ============================== */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 12px; }
.project-card { display: flex; flex-direction: column; gap: 10px; text-align: left; min-width: 0; color: var(--text); }
.project-card .cover { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--panel); overflow: hidden; }
.project-card .cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; transition: box-shadow 150ms ease; }
.project-card:hover .cover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); transition-duration: 0ms; }
.project-card .cover img, .project-card .cover video { width: 100%; height: 100%; object-fit: cover; display: block; }
.project-card .info { display: grid; gap: 2px; padding: 0 2px; }
.project-card .name { font-weight: 600; overflow-wrap: anywhere; }
.project-card .sub { color: var(--text-3); font-size: 12.5px; }
.invite, .invite-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; max-width: 680px; margin-bottom: 12px; }
.invite .field, .invite-link .field { flex: 1 1 240px; min-width: 0; }
.invite-link p { flex-basis: 100%; margin: 0; color: var(--text-2); font-size: 12.5px; }
.admin-msg { min-height: 18px; font-size: 13px; color: var(--neg); margin-bottom: 8px; }
.invites-wrap { margin-bottom: 18px; }
.invites-wrap h3 { margin: 0 0 10px; font-variation-settings: "wdth" 112; font-weight: 520; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
#invite-rows .pill-btn + .pill-btn { margin-left: 6px; }
.people-wrap { overflow-x: auto; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
table.people { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.people th { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variation-settings: "wdth" 112; font-weight: 520; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
table.people td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.people tr:last-child td { border-bottom: none; }
table.people td.email { overflow-wrap: anywhere; min-width: 200px; }
table.people .limit { display: flex; gap: 6px; align-items: center; }
table.people .limit input { width: 110px; height: 34px; padding: 0 12px; }
table.people .muted { color: var(--text-3); }
table.people .row-msg { font-size: 12px; color: var(--text-2); }
/* Admin's Partners and the Affiliate panel (PRD create-studio-affiliates), built from the invite and menu pieces above. */
#admin-partners h3 { margin: 22px 0 10px; font-variation-settings: "wdth" 112; font-weight: 520; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
#admin-partners .people-wrap { margin-bottom: 8px; }
#admin-partners .fold > summary { list-style: none; cursor: var(--cur, pointer); }
#admin-partners .fold > summary::-webkit-details-marker { display: none; }
#admin-partners .fold > summary h3 { display: inline-flex; align-items: center; gap: 8px; }
#admin-partners .fold > summary h3::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform 200ms ease; }
#admin-partners .fold[open] > summary h3::after { transform: rotate(225deg); margin-top: 3px; }
#admin-partners .fold > summary:hover h3 { color: var(--text); }
.partners-rate { margin: 0 0 6px; color: var(--text-2); font-size: 13.5px; }
#handpaid-form #handpaid-rate { flex: 0 0 96px; }
table.people tr.off td { color: var(--text-3); }
/* A hand-paid partner's payouts: a compact row under the partner, the add form and the list of what was paid. */
table.people tr.payouts-row td { padding-top: 0; }
tr.payouts-row .payouts-label { display: block; margin-bottom: 6px; font-variation-settings: "wdth" 112; font-weight: 520; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.payout-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.payout-form .field { height: 34px; padding: 0 12px; flex: 0 0 150px; min-width: 0; }
.payout-form .field[maxlength] { flex: 1 1 200px; max-width: 320px; }
.payout-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.payout-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--text-2); }
.payout-list .payout-note { color: var(--text-3); overflow-wrap: anywhere; }
table.people td.neg { color: var(--neg); }
.modal .invite-link { margin: 0; }
/* Team (PRD create-studio-team-seats §9.8): Admin's invite and people pieces, fitted to the Team window (#team-modal, a
   .modal.settings like Settings). Its one section sits right under the head, so it has no rule above it. */
#team-section { grid-template-columns: minmax(0, 1fr); min-width: 0; border-top: 0; padding-top: 0; } /* its tables scroll inside, never widen the window */
.settings .invite { margin: 0; }
.settings .admin-msg { margin: 0; }
.settings .admin-msg:empty { display: none; }
.settings .invites-wrap { margin: 0; }
.settings .section .invites-wrap h3 { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 520; }
.settings table.people th, .settings table.people td { padding: 10px; }
.settings table.people th { white-space: normal; }
.settings table.people td.email { min-width: 0; }
.settings table.people .limit input { width: 94px; }
/* A member's email: one line, cut with an ellipsis when it is too long (web/team.js puts the whole email in its title),
   with No seat on its own line under it. The cell takes the room the other columns leave, and never less than 140px
   (on a phone the table scrolls sideways inside its box, as it does already). */
#team-member-rows td.email { width: 100%; max-width: 0; min-width: 140px; }
#team-member-rows td.email > [translate="no"] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#team-member-rows td.email > .muted { display: block; }
.affiliate-stats { display: grid; font-variant-numeric: tabular-nums; }
.affiliate-stats > div { display: flex; justify-content: space-between; padding: 8px 2px; font-size: 13.5px; color: var(--text-2); border-bottom: 1px solid var(--line); }
.affiliate-stats > div:last-child { border-bottom: none; }
.affiliate-stats b { color: var(--text); font-weight: 500; }
/* The affiliate offer (PRD trial-growth-affiliate-push §9.2): the strip under the banner, the Earn pop-up, the bounty. */
.earn-strip:not([hidden]) { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.earn-strip small { color: var(--text-3); font-size: 12px; }
.earn-strip .es-copy { height: 28px; padding: 0 12px; font-size: 12.5px; }
.earn-strip .es-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; color: var(--text); font-size: 18px; line-height: 1; box-shadow: inset 0 0 0 1px var(--line-2); }
.earn-strip .es-x:hover { background: var(--raise); }
/* The pop in on each studio open (web/app.js showEarnStrip): it drops from the top a moment after the page settles. */
.earn-strip.pop { animation: earn-pop 520ms cubic-bezier(0.2, 0.9, 0.3, 1.15) 400ms both; }
@keyframes earn-pop { from { transform: translateY(-110%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .earn-strip.pop { animation: none; } }
.acct .rows > button.acct-earn { color: var(--text); font-weight: 600; }
.earn-modal { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.earn-modal p { margin: 0; }
.earn-h, .modal-head .earn-h { font-size: 19px; line-height: 1.2; }
.earn-h2 { font-size: 15px; line-height: 1.25; }
.earn-free { display: grid; gap: 2px; }
.earn-free b { font-size: 16px; font-weight: 640; }
.earn-free small, .earn-small { color: var(--text-3); font-size: 12px; }
.earn-meter { display: flex; align-items: flex-start; gap: 12px; font-size: 13px; color: var(--text-2); }
.em-dots { display: flex; gap: 8px; padding-bottom: 16px; }
.em-dots i { position: relative; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.em-dots i.on { background: linear-gradient(180deg, #FAFAFB 0%, #D4D5D8 30%, #9A9CA1 50%, #C9CACD 64%, #EDEDEF 82%, #A9ABB0 100%); box-shadow: none; }
.em-dots i[data-mk]::after { content: attr(data-mk); position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 10px; color: var(--text-3); }
.earn-bounty { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.earn-bounty #bounty-intro { display: grid; gap: 10px; justify-items: start; }
.earn-bounty #bounty-intro[hidden], .bounty-form[hidden], .bounty-list[hidden] { display: none; }
.bounty-rules { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; display: grid; gap: 3px; }
.bounty-form { display: grid; gap: 10px; }
.bounty-form label { display: grid; gap: 5px; font-size: 12.5px; color: var(--text-2); }
.bounty-list { display: grid; gap: 8px; }
.bounty-claim { display: grid; grid-template-columns: auto 1fr; gap: 2px 0; padding: 10px 12px; border-radius: 12px; background: var(--raise); font-size: 13px; }
.bounty-claim a { color: var(--text); overflow-wrap: anywhere; }
.bounty-claim .bc-subs { color: var(--text-3); }
.bounty-claim .bc-status { grid-column: 1 / -1; color: var(--text-2); }
.bounty-claim .link-btn { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
.bounties-table td .pill-btn + .pill-btn { margin-left: 6px; }
.bounty-ask td { display: flex; gap: 8px; align-items: center; }
.bounty-ask .field { flex: 1 1 240px; }
.clean-drop { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 720px; margin: 12px auto 20px; padding: 52px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.015); box-shadow: inset 0 0 0 1px var(--line-2); text-align: center; transition: box-shadow 150ms ease, background-color 150ms ease; }
.clean-drop.over { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.03); }
.clean-drop p { margin: 0; font-weight: 560; font-size: 15px; }
.clean-note { color: var(--text-3); font-size: 12.5px; max-width: 48ch; }
.clean-list { display: flex; flex-direction: column; gap: 8px; max-width: 720px; margin: 0 auto; }
.clean-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.clean-info { min-width: 0; }
.clean-info strong { font-weight: 560; overflow-wrap: anywhere; }
.clean-size { color: var(--text-3); font-size: 12px; margin-left: 8px; }
.clean-msg { color: var(--text-2); font-size: 12.5px; margin-top: 4px; }
.clean-row.refused .clean-msg { color: var(--neg); }
.clean-row .pill-btn { flex: none; }
/* The Upscale tab (web/upscale.js): Clean's drop box holds the pick and its preview, and the Plan page's yes panel the
   upscaler, its option, the price and the button. */
.ups-drop .clean-note { max-width: 64ch; }
.ups-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ups-picked { display: grid; justify-items: center; gap: 8px; }
.ups-preview { display: block; max-width: 100%; max-height: 300px; border-radius: 10px; background: var(--raise); }
.ups-drop:has(.ups-picked:not([hidden])) { padding: 24px 20px; }
.ups-make { max-width: 720px; margin: 0 auto 24px; }
.ups-why { max-width: 34ch; color: var(--neg); font-size: 13px; line-height: 1.45; }
#ups-grid > .empty-note { flex: 1 0 100%; }
.ups-pick-filter { background: var(--sunken, var(--raise)); padding: 3px; border-radius: 999px; width: fit-content; max-width: 100%; flex-wrap: wrap; margin: 12px 0; }
#ups-pick-grid .pick-label, #img-pick-grid .pick-label { padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); text-shadow: none; }
#page-upscale .grid { margin-top: 4px; }

/* ============================== Video Editing ============================== */
.edit-new { display: flex; gap: 8px; flex: 1; max-width: 640px; }
.edit-new .field { flex: 1; min-width: 0; }
.edit-layout { display: grid; grid-template-columns: minmax(280px, 2fr) 3fr; gap: 16px; margin-bottom: 26px; }
.edit-bin, .edit-ask { padding: 18px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.edit-bin.dragging { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.edit-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.edit-head strong { font-weight: 600; flex: none; }   /* the heading stays on one line; the hint beside it wraps instead */
.edit-head .muted, .edit-go .muted { color: var(--text-3); font-size: 12.5px; }
.edit-ads-head strong { font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px; }
.bin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
/* A full bin scrolls inside a capped grid instead of growing, so Finished ads stay in view below (Christian, 2026-10-30). */
.edit-layout { align-items: start; }
.edit-bin .bin-grid { max-height: min(52vh, 460px); overflow-y: auto; align-content: start; padding-right: 4px; }
.bin-item { position: relative; display: grid; gap: 4px; }
.bin-thumb { aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--raise); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.bin-thumb img, .bin-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bin-icon { font-size: 24px; color: var(--text-3); }
.bin-name { font-size: 12px; font-weight: 560; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 2px 4px; border-radius: 6px; }
.bin-name:hover { background: var(--raise); }
.bin-x { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 12px; display: none; place-items: center; }
.bin-item:hover .bin-x { display: grid; }
.bin-item.expired .bin-thumb { box-shadow: inset 0 0 0 1.5px var(--neg); }
.edit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.edit-hint { color: var(--text-3); font-size: 12.5px; line-height: 1.55; margin: 12px 0 0; }
.edit-uploads { display: grid; gap: 6px; margin-top: 10px; }
.upload-row { display: grid; gap: 4px; font-size: 12px; color: var(--text-2); }
.upload-row.failed { color: var(--neg); }
.progress-line { position: relative; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress-line i { display: block; height: 100%; width: 0; background: var(--chrome); transition: width 0.2s; }
.edit-ask .field.area { width: 100%; }
.style-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.style-card { position: relative; display: grid; align-content: start; gap: 5px; padding: 12px; border-radius: 12px; text-align: left; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
.style-card:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.style-card strong { font-size: 12.5px; font-weight: 640; font-variation-settings: "wdth" 125; text-transform: uppercase; letter-spacing: 0.02em; }
.style-card span { font-size: 12px; line-height: 1.45; color: var(--text-3); }
.style-card[aria-checked="true"] { background: var(--menu); box-shadow: inset 0 0 0 1px var(--line-3); }
.style-card[aria-checked="true"]::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--chrome); }
.style-card[aria-checked="true"] span { color: var(--text-2); }
@media (max-width: 1100px) { .style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The poster grid (web/style-cards.js; memo create_studio_style_examples, mockup option A, 2026-11-30): each style card
   is its example clip, dimmed, with the title and line on a bottom gradient; it plays muted on hover with a thin bar.
   The clip is always dark, so the words on it stay light in both looks; a card with no clip is a textured poster in
   the look's own colours. Only drawn once a style has a clip (web/shared/style-examples.js). */
/* .three.posters outranks the Plan page's fixed three columns (.plan-card .style-grid.three, below). */
.style-grid.posters, .plan-card .style-grid.three.posters { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.poster-cell { position: relative; min-width: 0; }
.style-card.poster { width: 100%; aspect-ratio: 3 / 4; padding: 0; border-radius: 14px; isolation: isolate; align-content: end; transition: box-shadow 0.2s var(--ease); }
.style-card.poster.has-clip { background: #0A0A0B; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.style-card.poster.no-clip { background: var(--raise) repeating-linear-gradient(135deg, transparent 0 10px, rgba(128, 128, 128, 0.06) 10px 20px); }
.poster-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; pointer-events: none; filter: saturate(0.82) brightness(0.78); transition: filter 0.4s var(--ease), transform 0.8s var(--ease); }
.style-card.poster.has-clip::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(10, 10, 11, 0) 30%, rgba(10, 10, 11, 0.55) 58%, rgba(10, 10, 11, 0.94) 100%); }
.style-card.poster.playing .poster-video { filter: saturate(1) brightness(0.95); transform: scale(1.035); }
.poster-tx { position: relative; display: grid; gap: 4px; padding: 0 12px 12px; }
.style-card.poster strong { font-size: 12.5px; letter-spacing: 0.03em; }
.style-card.poster .poster-tx span { font-size: 11.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.style-card.poster.has-clip strong { color: #EDEDEF; }
.style-card.poster.has-clip .poster-tx span, .style-card.poster.has-clip[aria-checked="true"] .poster-tx span { color: #B4B4BA; }
.style-card.poster.no-clip .poster-tx span { color: var(--text-2); }
.poster-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.7); transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0; }
.style-card.poster.playing .poster-bar { opacity: 1; }
.poster-tick { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--chrome); color: var(--on-chrome); opacity: 0; transform: scale(0.6); transition: opacity 0.2s var(--ease), transform 0.25s var(--ease); }
.style-card.poster[aria-checked="true"] .poster-tick { opacity: 1; transform: none; }
.style-card.poster[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--line-3); }
.style-card.poster.has-clip[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.style-card.poster[aria-checked="true"]::before { z-index: 2; }
/* On the clip the chrome stays silver in both looks, so it reads on a dark picture. */
.style-card.poster.has-clip[aria-checked="true"]::before, .style-card.poster.has-clip .poster-tick { background: linear-gradient(180deg, #FAFAFB 0%, #D4D5D8 30%, #9A9CA1 50%, #C9CACD 64%, #EDEDEF 82%, #A9ABB0 100%); color: #111113; }
.poster-watch { position: absolute; top: 10px; right: 10px; z-index: 3; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #EDEDEF; background: rgba(10, 10, 11, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); opacity: 0; transform: translateY(-4px); transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease; }
.poster-watch:hover { background: rgba(10, 10, 11, 0.75); }
.poster-cell:hover .poster-watch, .poster-cell:focus-within .poster-watch, .style-card.poster.playing + .poster-watch { opacity: 1; transform: none; transition-duration: 0s; }
@media (hover: none) { .poster-watch { opacity: 1; transform: none; } }
.style-card.poster:disabled { cursor: default; }
@media (max-width: 640px) { .style-grid.posters, .plan-card .style-grid.three.posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The example clip, big: the lightbox Watch opens. */
.style-lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(5, 5, 6, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity 0.25s var(--ease); }
.style-lb.on { opacity: 1; }
.style-lb-box { position: relative; display: grid; gap: 14px; width: min(380px, 100%); transform: translateY(10px) scale(0.98); transition: transform 0.35s var(--ease); }
.style-lb.on .style-lb-box { transform: none; }
.style-lb-video { cursor: pointer; display: block; width: 100%; max-height: calc(100dvh - 150px); aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 100px rgba(0, 0, 0, 0.7); }
.style-lb-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; color: #EDEDEF; }
.style-lb-name { font-variation-settings: "wdth" 125; font-weight: 660; text-transform: uppercase; letter-spacing: 0.03em; font-size: 13px; }
.style-lb-line { color: #B4B4BA; font-size: 12.5px; line-height: 1.45; }
.style-lb-use { flex: none; }
.style-lb-close { position: absolute; top: -6px; right: -48px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #EDEDEF; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.style-lb-close:hover { background: rgba(255, 255, 255, 0.16); }
@media (max-width: 520px) { .style-lb-close { right: 4px; top: 4px; z-index: 1; background: rgba(10, 10, 11, 0.55); } }
@media (prefers-reduced-motion: reduce) {
  .poster-video, .poster-tick, .poster-watch, .style-lb, .style-lb-box { transition: none !important; }
  .style-card.poster.playing .poster-video { transform: none; }
  .style-lb-box { transform: none; }
}
/* Tap-to-add phrases under the request: quiet until picked, then the same raised look as a picked style card. */
.note-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.note-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 150ms ease, background-color 150ms ease, color 150ms ease; }
.note-chip::before { content: "+"; color: var(--text-3); }
.note-chip:hover { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.note-chip[aria-pressed="true"] { background: var(--menu); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text); }
.edit-hook-head { margin-top: 18px; }
.note-chip[aria-pressed="true"]::before { content: "✓"; color: var(--text-2); }
.edit-picks { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.field.pick { height: 38px; font-size: 13px; flex: 1 1 180px; min-width: 0; }
.edit-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
/* The per-ad Upscale switch (2026-12-02): the Auto mode switch's look, with its size and price beside it. */
.edit-switches { display: grid; gap: 4px; margin: -4px 0 14px; }
.edit-switch-row { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; min-height: 34px; }
.edit-switch-row .auto-switch { color: var(--text-2); }
.edit-switch-row .auto-switch[aria-checked="true"] { color: var(--text); }
.edit-switch-row .muted { color: var(--text-3); font-size: 12.5px; line-height: 1.45; }
.field.pick.edit-upscale-size { flex: none; width: auto; height: 32px; padding-right: 30px; }
.modal .edit-switches { margin: 10px 0 0; }
.edit-status { display: grid; gap: 6px; justify-items: start; margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; }
.edit-status .muted { color: var(--text-2); }
/* The sentence a person sends their AI agent: its own box, Copy beside it, Cancel at the far end (shared/waiting.js). */
.say-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-self: stretch; margin-top: 4px; }
.say-text { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; font-size: 13.5px; user-select: all; -webkit-user-select: all; }
.say-end { margin-left: auto; display: inline-flex; gap: 8px; }
.say-tip { flex-basis: 100%; color: var(--text-3); font-size: 12.5px; line-height: 1.5; }
.say-tip .link-btn { font-size: 12.5px; }
.plan-make .tip .link-btn { font-size: 12.5px; }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 12px; }
.fin-tile { display: grid; gap: 8px; min-width: 0; align-content: start; }
.fin-media { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--panel); display: grid; place-items: center; cursor: default; }
.fin-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); pointer-events: none; }
.state-success .fin-media { cursor: pointer; }
.state-success .fin-media:hover::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.fin-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fin-media .tile-badge { top: 8px; left: 8px; }
.fin-wait { color: var(--text-3); font-size: 13px; }
.state-queued .fin-media::before, .state-rendering .fin-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.6s infinite linear; }
.fin-fail { color: var(--neg); font-size: 12px; padding: 14px; text-align: center; line-height: 1.5; }
.fin-info { display: flex; justify-content: space-between; gap: 8px; padding: 0 2px; }
.fin-info .name { font-weight: 600; overflow-wrap: anywhere; }
.fin-info .sub { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.fin-upscale { display: grid; gap: 2px; padding: 0 2px; font-size: 12px; color: var(--text-2); }
.fin-upscale .muted { color: var(--text-3); line-height: 1.45; }
.fin-upscale[data-state="failed"] > span:first-child, .fin-upscale[data-state="refused"] > span:first-child { color: var(--neg); }
.fin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fin-actions .pill-btn { height: 30px; padding: 0 11px; font-size: 12px; }
.fin-notes { font-size: 12px; color: var(--text-2); padding: 0 2px; }
.fin-notes summary { cursor: pointer; }
.fin-notes pre { white-space: pre-wrap; font: inherit; margin: 6px 0 0; }
.modal.edit-picker { width: min(780px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.pick-grid .pick { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: var(--raise); padding: 0; box-shadow: inset 0 0 0 1px var(--line); }
.pick-grid .pick img, .pick-grid .pick video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick-grid .pick.on { box-shadow: inset 0 0 0 2px var(--text); }
.pick-grid .pick.on img, .pick-grid .pick.on video { opacity: 0.85; }
.pick-grid .pick.on::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.pick-label { position: absolute; left: 6px; bottom: 5px; font-size: 11px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.edit-player { display: grid; gap: 12px; justify-items: center; }
.edit-player video { max-height: calc(100vh - 140px); max-width: 100%; border-radius: 12px; background: #000; }
#edit-play-modal { background: rgba(5, 5, 6, 0.86); }
/* A pop-up still built inside its tab (Plan, Ad Uploader) lifts the page panel above the top bar while it is open, so
   its backdrop covers the whole screen (main has a layer of its own at z-index 1; the top bar is at 20). */
main:has(.modal-backdrop:not([hidden])) { z-index: 30; }
/* The quick editor (web/quick-edit.js): a CapCut-style timeline (Christian, 2026-11-17). The ad on top, the tools, then
   the track names beside the tracks: text, captions and overlays, the video as thumbnails, and each sound as a
   waveform. The tracks are canvases drawn only for what is visible. Class names start with ved-, never ad- (ad
   blockers hide those, tests/unit/adblock-names.test.js). */
.ved { width: min(1280px, 100%); height: min(calc(100vh - 32px), 920px); display: grid; grid-template-rows: auto minmax(120px, 1fr) auto auto auto; gap: 10px; padding: 14px 16px; border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.6); }
.modal-backdrop:not([hidden]) .ved { animation: menuIn 200ms var(--ease) both; }
/* Nothing inside may push the window wider than the screen (a long ad name, the tools on a phone). */
.ved { grid-template-columns: minmax(0, 1fr); }
.ved > * { min-width: 0; }
.ved-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ved-title { min-width: 0; font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ved-top-actions { display: flex; gap: 8px; flex: none; }
.ved-small { height: 30px; padding: 0 12px; font-size: 12px; }
.ved-viewer { position: relative; min-height: 0; overflow: hidden; }
/* The ad fits the space left above the tools, never wider than its own 9:16 at that height. */
.ved-video { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); display: block; height: 100%; width: auto; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 10px; background: #000; cursor: pointer; object-fit: contain; }
.ved-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ved-play { min-width: 70px; }
.ved-time { color: var(--text-2); font-size: 12.5px; min-width: 112px; }
.ved-tools, .ved-zoom { display: flex; gap: 6px; }
.ved-tools .pill-btn:disabled { opacity: 0.45; }
/* Add music: the bin's songs, in a row under the bar (2026-11-26) */
.ved-songs:not([hidden]) { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; }
.ved-songs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ved-songs-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ved-songs-list .pill-btn.picked { box-shadow: inset 0 0 0 2px var(--text); }
.ved-vol { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 12.5px; }
.ved-vol-name { color: var(--text-2); min-width: 64px; text-align: right; }
.ved-vol input { width: 140px; accent-color: var(--text); }
.ved-vol-val { min-width: 52px; color: var(--text-2); }
.ved-tl { display: grid; grid-template-columns: 112px minmax(0, 1fr); padding: 8px 0 6px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.ved-heads { display: flex; flex-direction: column; gap: 4px; padding: 0 6px; }
.ved-head-ruler { height: 18px; flex: none; }
.ved-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; color: var(--text-2); text-align: left; cursor: default; }
.ved-head-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ved-head-db { font-size: 10.5px; color: var(--text-3); flex: none; }
.ved-head.audio { cursor: pointer; }
.ved-head.audio:hover, .ved-head.picked { background: var(--raise); color: var(--text); }
.ved-head.locked { opacity: 0.75; cursor: help; }
.ved-scroll { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.ved-stage { position: sticky; left: 0; width: 100%; touch-action: none; }
.ved-tracks, .ved-playhead { position: absolute; inset: 0 auto auto 0; display: block; }
.ved-playhead { pointer-events: none; }
.ved-spacer { height: 1px; margin-top: -1px; }
.ved-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 18px; font-size: 12.5px; }
/* Loading: a wave of dots, the title, and for an older ad's thumbnails a platinum progress bar (platinum is allowed on
   progress bars, DESIGN.md). Transform and opacity only, so it never costs a layout. */
.ved { position: relative; }
.ved-tl { position: relative; }
.ved-tl:has(> .ved-loader:not([hidden])) { min-height: 190px; }
.ved-loader { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; border-radius: inherit; background: color-mix(in srgb, var(--panel) 90%, transparent); text-align: center; }
.ved > .ved-loader { top: 58px; border-radius: 0 0 18px 18px; }
.ved-loader strong { font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px; color: var(--text); }
.ved-loader-sub { font-size: 12.5px; color: var(--text-2); }
.ved-dots { display: flex; gap: 8px; height: 26px; align-items: center; }
.ved-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--text); animation: vedDot 1.05s var(--ease) infinite; }
.ved-dots i:nth-child(2) { animation-delay: 0.09s; } .ved-dots i:nth-child(3) { animation-delay: 0.18s; }
.ved-dots i:nth-child(4) { animation-delay: 0.27s; } .ved-dots i:nth-child(5) { animation-delay: 0.36s; }
@keyframes vedDot { 0%, 70%, 100% { transform: translateY(0) scale(0.7); opacity: 0.35; } 35% { transform: translateY(-9px) scale(1); opacity: 1; } }
.ved-progress { width: min(320px, 72vw); height: 5px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.ved-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--chrome); transition: width 500ms linear; }
@media (prefers-reduced-motion: reduce) {
  .ved-dots i { animation: vedDotFade 1.4s ease infinite; transform: none; }
  @keyframes vedDotFade { 50% { opacity: 1; } 0%, 100% { opacity: 0.35; } }
}
.ved-summary { min-width: 0; }
.ved-msg { min-height: 0; }
@media (max-width: 760px) {
  .ved { height: calc(100vh - 16px); padding: 12px; grid-template-rows: auto minmax(140px, 1fr) auto auto auto; }
  .ved-vol { margin-left: 0; width: 100%; }
  .ved-vol input { flex: 1; width: auto; }
  .ved-tl { grid-template-columns: 84px minmax(0, 1fr); }
  .ved-title { font-size: 13px; }
  .ved-time { min-width: 0; }
}

/* ============================== Plan (PRD create-studio-plan-tab §9.5; approved mockup 2026-11-12) ============================== */
/* Built from Video Editing's pieces; only what they don't have lives here. Every colour is a token, so both looks work. */
.plan-wrap { display: grid; gap: 22px; padding-bottom: 64px; }
.plan-label { font-variation-settings: "wdth" 112; font-weight: 520; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin: 0 0 10px; }
.plan-title { margin: 0; font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-bar .plan-label { margin: 0; }
.plan-bar .edit-new { max-width: 420px; }
.plan-bar .edit-new .field { height: 38px; }
/* Saved characters: a strip of round faces, each cut from the first panel of its sheet */
.plan-faces { display: flex; gap: 18px; align-items: flex-start; overflow-x: auto; padding: 4px 2px; }
.plan-face { display: grid; justify-items: center; gap: 6px; width: 64px; flex: none; position: relative; }
.plan-face .ph { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); }
.plan-face .ph img { width: 300%; height: 100%; object-fit: cover; object-position: 0 18%; display: block; }
.plan-face > span { font-size: 12px; font-weight: 560; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64px; }
.plan-face .x { position: absolute; top: -2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; line-height: 1; color: var(--text-2); display: grid; place-items: center; opacity: 0; transition: opacity 150ms ease; }
.plan-face:hover .x, .plan-face .x:focus-visible { opacity: 1; transition-duration: 0ms; }
/* The Swipe tab: brands as round product photos with Add brand last, and the start box (a link or a dropped ad). */
.plan-face.brand { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.plan-face.brand .ph img { width: 100%; object-position: center; }
.plan-face.brand.add .ph { display: grid; place-items: center; font-size: 22px; color: var(--text-2); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.plan-face.brand:hover .ph { box-shadow: inset 0 0 0 1px var(--line-3); }
.swipe-start { display: grid; gap: 10px; margin: 18px 0 26px; padding: 28px 28px 8px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.swipe-start .plan-title { margin: 0; }
.swipe-start > .muted { margin: 0 0 6px; max-width: 620px; }
.swipe-start-link { display: flex; gap: 10px; }
.swipe-start-link .field { flex: 1; min-width: 0; }
.swipe-start-drop { margin: 6px 0 20px; padding: 30px 20px; max-width: none; }
.swipe-start.busy .swipe-start-link, .swipe-start.busy .swipe-start-drop { opacity: 0.45; pointer-events: none; }
.swipe-start-status { margin: 0 0 20px; }
@media (max-width: 640px) { .swipe-start { padding: 20px 16px 4px; } .swipe-start-link { flex-direction: column; } .swipe-start-link .field { flex: none; } }
/* Swipe Files (PRD swipe-engine-swipe-files): the view switch, the folder chips, the save box and the saved ads. */
.swipe-views { margin: 4px 0 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
/* The selected view reads as a button, black with white text like the active top tab (Christian, 2026-11-15). */
.swipe-views button.on, .swipe-views button.on:hover { background: var(--chrome); color: var(--on-chrome); }
.sf-intro { padding-bottom: 24px; }
.sf-intro-go { margin-top: 4px; }
.sf-folders { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.sf-folder { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 520; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 150ms ease, box-shadow 150ms ease, background-color 150ms ease; }
.sf-folder:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); transition-duration: 0ms; }
.sf-folder.on { color: var(--text); background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-3); }
.sf-folder .nm { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-folder .n { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-3); }
.sf-folder.on .n { color: var(--text-2); }
.sf-folder .sh { width: 6px; height: 6px; border-radius: 50%; background: var(--chrome); }
.sf-folder.add { color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.sf-folder:disabled { opacity: 0.45; cursor: not-allowed; }
.sf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sf-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.sf-title .muted { font-size: 13px; }
.sf-tag { font-size: 11.5px; font-weight: 560; color: var(--text); padding: 3px 9px; border-radius: 999px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); }
.sf-tools { display: flex; align-items: center; gap: 8px; }
.sf-save { display: grid; gap: 10px; padding: 20px 22px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.sf-save .plan-label { margin: 0; }
.sf-drop { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 14px; color: var(--text-2); font-size: 13px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 150ms ease, background-color 150ms ease; }
.sf-drop.over { box-shadow: inset 0 0 0 1px var(--line-3); background: var(--raise); }
.sf-save.busy .swipe-start-link, .sf-save.busy .sf-drop { opacity: 0.45; pointer-events: none; }
.sf-status { margin: 0; font-size: 13px; }
.sf-empty { padding: 48px 0 24px; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(268px, 100%), 1fr)); gap: 14px; align-items: start; }
/* minmax(0, 1fr): the card's one column never grows past the card, so no wide child (the long Remake for your brand
   button pushed every card's video and link box into the next card, 2026-11-16) can widen it. */
.sf-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.sf-card > * { min-width: 0; }
.sf-card-head .pg { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.sf-card-head .sub { color: var(--text-3); font-size: 12px; margin-top: 1px; }
/* contain and clip-path hold a playing video inside its box: Chrome drew videos on their own layer past the rounded
   overflow clip, over the next cards, in a very wide window (Christian, 2026-11-16). */
.sf-media { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; contain: paint; clip-path: inset(0 round 10px); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.sf-media img, .sf-media video { width: 100%; height: 100%; object-fit: contain; display: block; }
.sf-body { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.sf-body.open { display: block; }
.sf-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--menu); box-shadow: inset 0 0 0 1px var(--line); }
.sf-link .w { flex: 1; min-width: 0; }
.sf-link .dom { font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-link .ttl { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sf-link .cta { flex: none; font-size: 12px; font-weight: 560; padding: 6px 10px; border-radius: 8px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); }
.sf-card-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sf-card-go .spacer, .sf-share .spacer { flex: 1; }
/* Remake for your brand takes its own row, full width; Ads Library and Remove sit under it. */
.sf-card-go .pill-btn.primary { height: auto; min-height: 34px; padding: 8px 14px; flex: 1 0 100%; min-width: 0; justify-content: center; text-align: center; white-space: normal; line-height: 1.25; }
.sf-card-go .link-btn { white-space: nowrap; }
.modal.sf-share { width: min(500px, 100%); }
.sf-choices { display: grid; gap: 8px; }
.sf-choice { display: grid; grid-template-columns: 16px 1fr; column-gap: 10px; row-gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 150ms ease, background-color 150ms ease; }
.sf-choice i { grid-row: span 2; align-self: start; margin-top: 3px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.sf-choice strong { font-size: 13.5px; font-weight: 600; }
.sf-choice span { font-size: 12.5px; color: var(--text-2); line-height: 1.45; }
.sf-choice.on { background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-3); }
.sf-choice.on i { box-shadow: inset 0 0 0 4px var(--text); }
.sf-choice:disabled { opacity: 0.5; cursor: not-allowed; }
.sf-stop { color: var(--neg); text-decoration-color: currentColor; }
@media (max-width: 640px) { .sf-save { padding: 16px; } .sf-head { align-items: flex-start; } .sf-grid { grid-template-columns: minmax(0, 1fr); } }
@media (hover: none) { .plan-face .x { opacity: 1; } }
.plan-faces.small { gap: 10px; }
.plan-faces.small .plan-face { width: 44px; cursor: var(--cur, pointer); }
.plan-faces.small .plan-face .ph { width: 40px; height: 40px; }
.plan-faces.small .plan-face > span { font-size: 11px; max-width: 44px; }
.plan-face.pick.on .ph { box-shadow: 0 0 0 2px var(--text); }
.plan-face.pick.on::after { content: "✓"; position: absolute; top: -3px; right: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--text); color: var(--panel); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.plan-face .add { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; color: var(--text-2); font-size: 18px; }
.plan-face .add:hover { box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text); }
/* Pick up where you left off */
.plan-resume { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 22px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.plan-resume .plan-label { margin: 0 0 6px; }
.plan-resume .next { margin-top: 6px; color: var(--text-2); font-size: 13.5px; }
.plan-resume .right { display: flex; align-items: center; gap: 18px; min-width: 0; }
/* The storyboard rows */
.plan-rows { display: grid; gap: 10px; }
.plan-row { display: grid; grid-template-columns: 220px minmax(320px, 2fr) minmax(0, 1.4fr) 236px; align-items: center; gap: 22px; padding: 16px 18px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: var(--cur, pointer); transition: box-shadow 150ms ease, background-color 150ms ease, transform 150ms var(--ease); }
/* The row under the cursor lifts so it stands out from the rest (the owner, 2026-11-12). */
.plan-row:hover { background: var(--menu); box-shadow: inset 0 0 0 1px var(--line-3), var(--drop); transform: translateY(-1px); transition-duration: 0ms; }
.plan-tile .m.open { cursor: zoom-in; }
.plan-tile .m.open:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.plan-row .name { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.plan-row .sub { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.plan-row > .pill-btn { justify-self: end; }
.plan-row-go { display: flex; align-items: center; gap: 6px; justify-self: end; }
.plan-trash { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line-2); transition: color 150ms ease, box-shadow 150ms ease; }
.plan-trash:hover { color: var(--neg); box-shadow: inset 0 0 0 1px var(--line-3); transition-duration: 0ms; }
/* Send to Video Editing carries an arrow, so it reads as a hand-off and not as another way into the project. */
.plan-editor:not(.busy)::after { content: "→"; margin-left: 2px; }
.plan-film { display: flex; gap: 6px; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); }
.plan-film i { flex: none; width: 34px; aspect-ratio: 9 / 16; border-radius: 6px; background: var(--raise) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.plan-film i.face { aspect-ratio: 1; border-radius: 50%; background-size: 300% auto; background-position: 0 18%; align-self: center; }
.plan-resume .plan-film { -webkit-mask-image: none; mask-image: none; }
.plan-row-steps { display: grid; gap: 8px; min-width: 0; }
.plan-waiting { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.plan-waiting::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); animation: planPulse 1.6s ease-in-out infinite; }
@keyframes planPulse { 50% { opacity: 0.25; } }
/* Step progress: in the rows, and as the plan page's step bar (done steps a grey line, the current one chrome) */
.plan-progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.plan-progress .s { display: grid; gap: 7px; min-width: 0; text-align: left; }
.plan-progress .s i { height: 2px; border-radius: 2px; background: var(--line-2); }
.plan-progress .s.done i { background: var(--text-3); }
.plan-progress .s.now i { background: var(--chrome); height: 3px; margin-top: -1px; }
.plan-progress .s span { font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-progress .s.done span { color: var(--text-2); }
.plan-progress .s.now span { color: var(--text); font-weight: 600; }
.plan-progress.big .s span { font-size: 12.5px; }
.plan-progress button.s:not(:disabled):hover span { color: var(--text); }
.plan-progress button.s:disabled { cursor: default; }
/* A plan page */
.plan-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plan-head .back { margin-right: 4px; }
.plan-head .spacer, .plan-done-bar .spacer, .plan-file .spacer { flex: 1; }
.plan-card { padding: 20px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.plan-two { display: grid; grid-template-columns: minmax(300px, 2fr) 3fr; gap: 16px; align-items: start; }
.plan-script { display: grid; gap: 10px; }
.plan-script .edit-head { margin: 0; }
.plan-script .plan-sub { margin-top: 10px; }
.plan-script .field.area { width: 100%; }
.plan-script .plan-hint { margin: 0; }
.plan-drop { margin: 0; max-width: none; padding: 34px 20px; gap: 12px; }
.plan-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--raise); }
.plan-file .ic { flex: none; width: 34px; height: 42px; border-radius: 6px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--text-2); }
.plan-file strong { display: block; font-weight: 560; overflow-wrap: anywhere; }
.plan-file span { color: var(--text-3); font-size: 12px; }
.plan-file span.bad { color: var(--neg); }
.plan-card .style-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-q { display: grid; gap: 8px; margin: 0 0 18px; align-content: start; }
.plan-q .edit-head { margin: 0; }
.plan-q .line { color: var(--text-3); font-size: 12.5px; max-width: 30ch; }
.plan-project { width: 300px; max-width: 100%; }
.plan-language { width: 220px; max-width: 100%; }
.plan-slider { display: flex; align-items: center; gap: 10px; }
.plan-slider input { width: 160px; max-width: 100%; accent-color: var(--text); }
.plan-seconds-value { font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-q-wide { flex: 1 1 100%; }
.plan-q-wide .line { max-width: none; }
.plan-q .segmented { background: var(--sunken, var(--raise)); padding: 3px; border-radius: 999px; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.plan-q .segmented button:disabled { cursor: default; }
.plan-inline { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
.plan-inline .plan-q { margin: 0; }
.plan-stepper { width: fit-content; box-shadow: inset 0 0 0 1px var(--line-2); }
.plan-stepper button:disabled { opacity: 0.4; cursor: default; }
.plan-mini-drop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 13px; }
.plan-mini-drop.over { box-shadow: inset 0 0 0 1px var(--line-3); background: var(--raise); }
/* An organic video's uploaded song on the plan page: its file name with Remove (PRD create-studio-organic-tab). */
.plan-song-file { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); font-size: 13px; }
.plan-mini-drop .key { font-variation-settings: "wdth" 112; font-weight: 640; font-size: 11px; letter-spacing: 0.1em; color: var(--text); }
.plan-mini-drop .progress-line { flex-basis: 100%; }
/* A long file name (a Meta ad's id) breaks anywhere, so it never stretches the page wider than the screen. */
#plan-reference-name { overflow-wrap: anywhere; min-width: 0; }
.plan-thumb { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; background: var(--raise); flex: none; }
.plan-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-missing { margin: 10px 0 0; }
.plan-conn-row { margin-top: 10px; }
.plan-conn { color: var(--text-3); font-size: 12.5px; }
.plan-conn::before { content: ""; display: inline-block; vertical-align: middle; width: 6px; height: 6px; margin: -2px 8px 0 0; border-radius: 50%; background: var(--text-2); }
.plan-conn.off::before { background: var(--neg); }
.plan-conn .link-btn { font-size: 12.5px; }
.plan-status { margin: 0; }
.plan-lead { margin: 0; font-size: 14.5px; line-height: 1.55; max-width: 80ch; }
.plan-text { margin: 0; font-size: 13.5px; }
.plan-summary .plan-label { margin-bottom: 8px; }
.plan-empty-plan { display: grid; gap: 14px; }
.plan-empty-plan .plan-conn-row { margin: 0; }
/* A page that spends credits: what it makes, the models as chips, the estimate and the one yes */
.plan-make { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 20px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); }
.plan-make .count { font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: 17px; }
.plan-make .settings { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.plan-make .control > button { height: 34px; padding: 0 12px; background: var(--raise); font-size: 13px; font-weight: 560; }
.plan-make .control > button:hover, .plan-make .control > button[aria-expanded="true"] { background: var(--line-2); }
.plan-make .control .menu { top: calc(100% + 8px); bottom: auto; transform-origin: top left; }
.plan-make .control.song-style input { height: 34px; }
.plan-make .tip { margin-top: 10px; color: var(--text-3); font-size: 12.5px; }
.plan-make .tip + .tip { margin-top: 4px; }
.plan-make .go { display: grid; justify-items: end; gap: 8px; text-align: right; }
.plan-make .est { font-size: 22px; font-weight: 720; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-make .est small { display: block; font-size: 12px; font-weight: 400; color: var(--text-3); }
/* Under the run's bills: what a redo adds (D-88). As wide as the yes line below it. */
.plan-make .est small + small { max-width: 34ch; margin-top: 2px; margin-inline-start: auto; }
.plan-make .yes-line { color: var(--text-3); font-size: 12px; max-width: 34ch; }
/* Lists of what will be made, and the plan */
.plan-group { display: grid; gap: 10px; }
.plan-group .plan-label { margin: 0; }
.plan-groups { display: grid; gap: 22px; }
.plan-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.plan-item { display: grid; gap: 6px; align-content: start; padding: 14px; border-radius: 14px; background: var(--raise); }
.plan-item .key, .plan-word .key { font-variation-settings: "wdth" 112; font-weight: 640; font-size: 11px; letter-spacing: 0.1em; color: var(--text-2); }
.plan-item p, .plan-word p { margin: 0; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.plan-item .uses { color: var(--text-3); font-size: 12px; }
.plan-item > .pill-btn { justify-self: start; }
.plan-photo-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.plan-item > .plan-photo-btns { justify-self: start; justify-content: flex-start; }
.plan-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.plan-words { border-radius: 14px; background: var(--raise); padding: 12px 14px; }
.plan-words summary { cursor: var(--cur, pointer); font-weight: 560; font-size: 13px; }
.plan-word { display: grid; gap: 4px; margin-top: 12px; }
.plan-table-wrap { overflow-x: auto; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.plan-shots { width: 100%; border-collapse: collapse; font-size: 13px; }
.plan-shots th { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-variation-settings: "wdth" 112; font-weight: 520; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.plan-shots td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-shots tr:last-child td { border-bottom: none; }
.plan-shots td.key { font-weight: 600; white-space: nowrap; }
.plan-shots td.num, .plan-shots th.num { font-variant-numeric: tabular-nums; text-align: right; }
/* A drama's scenes: each numbered shot of a scene on its own line, in a column wide enough to read */
.plan-scenes td.scene-shots { white-space: pre-line; min-width: 280px; color: var(--text-2); }
/* The voice page's two choices */
.plan-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.plan-choice { display: grid; gap: 10px; }
.plan-choice > strong { font-weight: 600; font-size: 15px; }
.plan-choice > p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.plan-choice .edit-actions { margin: 0; align-items: center; gap: 14px; }
.plan-choice.small { padding: 16px 18px; }
.plan-choice.small > strong { font-size: 13.5px; }
.plan-voice-drops { display: grid; gap: 8px; }
/* Finished tiles */
.plan-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px 14px; }
.plan-tiles.tall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.plan-tiles.audio { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.plan-tile { display: grid; gap: 8px; min-width: 0; align-content: start; }
.plan-tile .m { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.plan-tiles.tall .plan-tile .m { aspect-ratio: 9 / 16; }
.plan-tiles.audio .plan-tile .m { aspect-ratio: auto; padding: 10px; }
.plan-tile .m img, .plan-tile .m video { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-tile .m audio { width: 100%; height: 36px; }
.plan-tile .m .state { color: var(--text-3); font-size: 12.5px; padding: 10px; text-align: center; }
.plan-tile .m:has(.why) { place-content: center; gap: 2px; }
.plan-tile .m .why { color: var(--text-2); font-size: 11.5px; line-height: 1.45; padding: 0 12px 10px; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.plan-tile .info { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.plan-tile .info > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-tile .info b { font-weight: 600; }
.plan-tile .info span { color: var(--text-3); font-size: 12px; }
.plan-tile .pill-btn.small { flex: none; height: 30px; font-size: 12px; }
.plan-tile .pill-btn.small:disabled { opacity: 1; cursor: default; }
.plan-done-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.plan-done-bar .ok { font-weight: 600; }
.plan-foot { display: flex; align-items: center; gap: 10px; }
.plan-foot .plan-conn-row { margin: 0; }
.plan-q .line.bad { color: var(--neg); }
/* The brand question on page 1 and the brand's photos standing in for the product photo (PRD swipe-engine-brands §9.8) */
.plan-brand-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plan-brand-pick select { min-width: 220px; max-width: 100%; }
.plan-brand-shots { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-brand-shots img { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--raise); display: block; }
.plan-brand-add { justify-self: start; }
.plan-q .line .link-btn { font-size: inherit; }
@media (max-width: 1100px) {
  .plan-card .style-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-row { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-row .plan-row-steps, .plan-row .plan-film { grid-column: 1 / -1; }
  .plan-row > .pill-btn { grid-row: 1; grid-column: 2; }
}
@media (max-width: 860px) {
  .plan-two, .plan-choices { grid-template-columns: 1fr; }
  .plan-resume, .plan-make { grid-template-columns: 1fr; }
  .plan-make .go { justify-items: start; text-align: left; }
  .plan-make .est small + small { margin-inline-start: 0; }
  .plan-progress.big { overflow-x: auto; grid-auto-columns: minmax(84px, 1fr); }
}

/* The Plan page's "Upscale clips" box (web/plan.js upscaleBox), the yes panel's look above Send to Video Editing. */
.plan-upscale-line { margin-top: 6px; color: var(--text-2); font-size: 13.5px; }
.plan-upscale-skipped span:first-child { color: var(--text-2); font-weight: 560; }
/* ============================== Ad Uploader ============================== */
.up-fresh { color: var(--text-3); font-size: 12.5px; white-space: nowrap; }
.field.pick.up-account { flex: 0 1 240px; }
.up-note { margin: 0 0 14px; }
.up-form { display: grid; gap: 20px; align-content: start; }
.up-form > [inert], .edit-bin[inert] { opacity: 0.5; transition: opacity 150ms ease; }
.up-head { justify-content: space-between; }
.up-wide { width: 100%; }
.up-label { display: grid; gap: 6px; font-size: 13px; font-weight: 520; color: var(--text); min-width: 0; }
.up-label .field { width: 100%; font-weight: 400; }
.up-label .segmented { justify-self: start; }
.up-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.up-fields.up-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.up-span { grid-column: 1 / -1; }
.up-fields .edit-hint { margin: 0; }
.up-block .edit-hint { margin: 8px 0 0; }
.up-block .up-label + .edit-hint + .up-label { margin-top: 12px; }
.up-problems { margin: 0; padding: 12px 14px 12px 30px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); color: var(--neg); font-size: 13px; line-height: 1.55; }
.up-drop { max-width: none; margin: 0 0 12px; padding: 26px 16px; gap: 10px; }
.up-drop.over { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.03); }
.up-groups { display: grid; gap: 12px; margin-top: 12px; }
.up-group { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line); }
.skills-modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.skill-list { display: grid; gap: 10px; }
.skill-row { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.skill-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.skill-head .pill-btn { flex: none; height: 30px; padding: 0 12px; font-size: 12px; }
.skill-line { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.skill-ask { display: block; padding: 8px 10px; border-radius: 8px; background: var(--panel); color: var(--text); font-family: inherit; font-size: 12.5px; line-height: 1.5; }
.up-loose { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.up-group.over { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.up-group-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.up-group-head .field.pick { flex: 1 1 150px; }
.up-group .edit-hint { margin: 2px 0; }
.up-rows { display: grid; gap: 6px; }
.up-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); cursor: grab; }
.up-row:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.up-row.selected, .up-row.selected:hover { background: linear-gradient(100deg, rgba(232, 233, 236, 0.26) 0%, rgba(160, 162, 168, 0.14) 45%, rgba(232, 233, 236, 0.2) 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.up-row.dragging { opacity: 0.45; }
.up-drop-line { height: 2px; margin: -4px 0; border-radius: 2px; background: var(--text); pointer-events: none; }
.up-set-sum { margin: 0; color: var(--text-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.up-row > .pill-btn { flex: none; height: 30px; padding: 0 11px; font-size: 12px; }
.up-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 8px; }
.up-thumb { flex: none; width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--panel); display: grid; place-items: center; font-size: 10px; color: var(--text-3); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-info { flex: 1; min-width: 0; display: grid; gap: 1px; }
.up-info .name { font-weight: 560; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-info .sub { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.up-status { flex: none; font-size: 12px; color: var(--text-2); }
.up-status.todo { color: var(--text-3); }
.up-marks { flex: none; display: inline-flex; gap: 3px; }
.up-mark { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 640; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); }
.up-mark.on { color: var(--text); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line-3); }
.up-del { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.up-del:hover { color: var(--neg); background: var(--panel); }
.up-settings, .up-connect { max-width: 760px; display: grid; gap: 16px; }
.up-settings-for { margin: 0; }
.up-settings .edit-hint { margin: 0; }
.up-settings .up-fields { margin-top: 0; }
.up-sub { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.up-sub > strong { font-weight: 600; }
.up-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; cursor: pointer; }
.up-check input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: #D4D5D8; }
.up-check strong { font-weight: 600; display: block; }
.up-check small { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.5; margin-top: 1px; }
.up-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.up-p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.up-connect .steps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.up-connect .steps li + li { margin-top: 6px; }
.up-connect .copy-row { margin-top: 8px; }
.up-connect .edit-hint { margin: 0; }
.modal.up-ad { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; gap: 14px; }
.up-ad .up-fields { margin-top: 0; }
.modal.up-set { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.up-set-audience { display: grid; gap: 10px; }
.up-card { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line); }
.up-card strong { font-size: 13px; font-weight: 520; }
.up-card .edit-hint { margin: 0; font-weight: 400; }
.up-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.up-card-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; font-size: 12.5px; }
.up-tag { padding: 3px 9px; border-radius: 999px; background: var(--raise); color: var(--text-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.up-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.up-chips:empty { display: none; }
.up-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; }
.up-chip button { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.up-chip button:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.up-matches { display: grid; gap: 2px; padding: 4px; border-radius: 12px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); }
.up-matches button { padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 13px; color: var(--text-2); }
.up-matches button:hover, .up-matches button:first-child { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.up-age { position: relative; height: 22px; }
.up-age-track { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 999px; background: var(--line-2); }
.up-age-track i { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: #D4D5D8; }
.up-age input { position: absolute; inset: 0; width: 100%; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.up-age input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #EDEDEF; box-shadow: 0 0 0 3px var(--panel); cursor: grab; }
.up-age input::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #EDEDEF; box-shadow: 0 0 0 3px var(--panel); cursor: grab; }
.up-age input:focus-visible { outline: none; }
.up-age input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px rgba(255, 255, 255, 0.45); }
.up-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.up-gender button { height: 40px; border-radius: 12px; font-size: 13px; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--line); transition: color 150ms ease, background-color 150ms ease; }
.up-gender button:hover { color: var(--text); transition-duration: 0ms; }
.up-gender button.on { color: var(--text); font-weight: 560; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line-3); }
.up-more { display: grid; gap: 10px; }
.up-more[open] > summary { margin-bottom: 10px; }
.up-more > summary { color: var(--text-2); font-size: 13px; cursor: pointer; }
.up-more > summary:hover { color: var(--text); }
.up-more > .up-card + .up-card { margin-top: 10px; }
.up-ad .field.area { resize: vertical; }
.up-copy { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.up-copy-row { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.up-copy-row .up-label { flex: 1 1 220px; }
.up-copy-to { flex: 1 1 260px; display: flex; flex-wrap: wrap; gap: 8px 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.up-copy-to legend { padding: 0; margin-bottom: 8px; }
.up-saved { flex: 1; font-size: 12.5px; }
.up-launches { display: grid; gap: 10px; margin-bottom: 14px; }
.up-launches:empty { display: none; }
.up-launch-card { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.up-launch-card .edit-head { margin: 0; flex-wrap: wrap; }
.up-launch-card .edit-hint { margin: 0; }
.up-launch-card .edit-actions { margin: 0; }
.up-results { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; max-height: 300px; overflow-y: auto; }
.up-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 7px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.up-result .name { overflow-wrap: anywhere; }
.up-result .st { color: var(--text-2); font-variant-numeric: tabular-nums; }
.up-result .why { grid-column: 1 / -1; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.up-result.state-failed .st { color: var(--neg); }
@media (max-width: 860px) {
  .up-fields, .up-fields.up-three { grid-template-columns: 1fr; }
  .up-row { flex-wrap: wrap; }
  .up-row-main { flex: 1 1 100%; flex-wrap: wrap; gap: 8px 10px; }
  .up-info { flex: 1 1 calc(100% - 54px); }
  .up-status { margin-left: 54px; }
  .up-fresh { white-space: normal; }
}

/* Ad Stats (D-164, D-182): the dates said plainly, the account in one card, the winners as big cards, then every ad on
   a solid surface. A change is a chip: green when it moved the good way for that metric, red the bad way, grey when the
   metric has no better side. The table scrolls inside its card with its header and the ad column held in place. */
:root { --st-card: var(--panel); --st-edge: inset 0 0 0 1px var(--line); --st-up: #5CD08B; --st-up-bg: rgba(92, 208, 139, 0.14);
  --st-down: #F2846E; --st-down-bg: rgba(242, 132, 110, 0.14); --st-flat-bg: rgba(255, 255, 255, 0.07); --st-hover: rgba(255, 255, 255, 0.035); }
:root[data-look="platinum"] { --st-card: #F7F7F8; --st-edge: inset 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 30px -20px rgba(0, 0, 0, 0.25);
  --st-up: #12683A; --st-up-bg: rgba(18, 128, 64, 0.12); --st-down: #AE3219; --st-down-bg: rgba(190, 52, 24, 0.1); --st-flat-bg: rgba(0, 0, 0, 0.055); --st-hover: rgba(0, 0, 0, 0.028); }
.st-range { flex: 1 1 auto; }
.field.pick.st-preset { flex: 0 1 180px; }
.st-custom { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.field.st-date { height: 38px; font-size: 13px; padding: 0 10px; }
.st-cols-wrap { position: relative; }
.st-cols-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; gap: 2px; min-width: 200px; padding: 6px; border-radius: 14px; background: var(--menu); box-shadow: var(--pop); }
.st-cols-menu:not([hidden]) { animation: menuIn 170ms var(--ease) both; }
.st-col-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.st-col-row:hover { background: var(--raise); color: var(--text); }
.st-col-row input { accent-color: var(--text); }
.st-empty .pill-btn { margin-top: 18px; }
.st-period { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 14px; }
.st-span { font-variation-settings: "wdth" 125; font-weight: 660; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; }
.st-vs { color: var(--text-2); font-size: 14px; }
.st-vs b { color: var(--text); font-weight: 600; }
.st-delta { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 640; line-height: 1.45; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text-2); background: var(--st-flat-bg); }
.st-delta:empty { display: none; }
.st-delta.good { color: var(--st-up); background: var(--st-up-bg); }
.st-delta.bad { color: var(--st-down); background: var(--st-down-bg); }
.st-win { color: var(--st-up); }
.st-loss { color: var(--st-down); }
/* The account card. Each tile draws its own hairline on its left and top; the card clips the ones on its outer edge. */
.st-sum { display: grid; grid-template-columns: 1.4fr 1.4fr repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: 18px; background: var(--st-card); box-shadow: var(--st-edge); }
.st-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 18px 22px 20px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.st-tile-label { font-size: 13.5px; font-weight: 560; color: var(--text-2); }
.st-tile-value { max-width: 100%; font-size: 26px; font-weight: 640; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tile.big .st-tile-value { font-size: 40px; font-weight: 660; }
.st-sec { margin-top: 28px; }
.st-sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 12px; }
.st-h { margin: 0; font-variation-settings: "wdth" 125; font-weight: 660; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.st-sec-note { color: var(--text-2); font-size: 14px; }
/* Winners */
.st-win-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.st-win-list:empty { display: none; }
.st-win-card { display: flex; gap: 18px; min-width: 0; padding: 14px; border-radius: 18px; background: var(--st-card); box-shadow: var(--st-edge); }
.st-win-thumb { flex: none; width: 116px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--raise); }
.st-win-thumb img, .st-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-win-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 2px 0; }
.st-win-name { font-size: 15.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-win-words .st-ad-sub { margin-top: 2px; }
.st-win-roas { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: auto; }
.st-win-x { font-size: 36px; font-weight: 680; line-height: 1; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.st-win-unit { font-variation-settings: "wdth" 112; font-size: 12px; font-weight: 620; letter-spacing: 0.1em; color: var(--text-2); }
.st-win-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.st-win-facts dt { font-size: 12.5px; color: var(--text-2); }
.st-win-facts dd { margin: 0; font-size: 15.5px; font-weight: 620; font-variant-numeric: tabular-nums; }
/* Every ad */
.st-table-wrap { overflow: auto; max-height: max(440px, calc(100vh - 90px)); border-radius: 18px; background: var(--st-card); box-shadow: var(--st-edge); overscroll-behavior-x: contain; }
.st-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.st-table th { position: sticky; top: 0; z-index: 2; padding: 0; text-align: right; white-space: nowrap; background: var(--st-card); box-shadow: inset 0 -1px 0 var(--line-2); }
.st-table th.st-name-col { left: 0; z-index: 3; text-align: left; }
.st-sort { display: inline-flex; align-items: center; gap: 4px; padding: 15px 16px 13px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.st-sort:hover, .st-sort.on { color: var(--text); }
.st-arrow { font-size: 13px; }
.st-table td { padding: 12px 16px; vertical-align: middle; background-color: var(--st-card); border-bottom: 1px solid var(--line); }
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-table tbody tr:hover td { background-image: linear-gradient(var(--st-hover), var(--st-hover)); }
.st-table td.st-name-col { position: sticky; left: 0; z-index: 1; box-shadow: inset -1px 0 0 var(--line); }
.st-num { text-align: right; white-space: nowrap; }
.st-value { font-weight: 580; }
.st-num .st-delta { margin-top: 5px; padding: 1px 7px; font-size: 11.5px; }
.st-num .st-delta.flat { background: none; color: var(--text-3); }
.st-name-col { width: 340px; min-width: 270px; max-width: 340px; }
.st-ad { display: flex; align-items: center; gap: 12px; min-width: 0; }
.st-thumb { flex: none; width: 48px; height: 60px; overflow: hidden; border-radius: 9px; background: var(--raise); }
.st-ad-words { min-width: 0; }
.st-ad-name { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-ad-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: 13px; }
/* The tab's own controls (Christian, 2026-12-03: "These buttons ... blend in too much"): a solid surface with a firm edge
   and dark text, one height for all, a clear hover and press, a visible chevron. Refresh is the black chrome main button.
   Scoped to the tab, so the shared .field and .pill-btn stay as they are. */
:root { --st-ctl: #202024; --st-ctl-hover: #28282D; --st-ctl-press: #18181B; --st-ctl-edge: rgba(255, 255, 255, 0.24); --st-ctl-edge-hover: rgba(255, 255, 255, 0.5);
  --st-ctl-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  --st-chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23EDEDEF' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); }
:root[data-look="platinum"] { --st-ctl: #FFFFFF; --st-ctl-hover: #FFFFFF; --st-ctl-press: #EFEFF0; --st-ctl-edge: rgba(0, 0, 0, 0.22); --st-ctl-edge-hover: rgba(0, 0, 0, 0.5);
  --st-ctl-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 4px 12px -6px rgba(0, 0, 0, 0.2);
  --st-chev: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23111113' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); }
#page-stats .field.st-ctl, #page-stats .pill-btn.st-ctl { height: 40px; background-color: var(--st-ctl); color: var(--text); font-size: 13.5px; font-weight: 560;
  box-shadow: inset 0 0 0 1px var(--st-ctl-edge), var(--st-ctl-shadow); transition: box-shadow 150ms ease, background-color 150ms ease, transform 140ms var(--ease); }
#page-stats select.field.st-ctl { background-image: var(--st-chev); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 40px; }
#page-stats .pill-btn.st-ctl { padding: 0 18px; }
#page-stats .st-ctl:hover { background-color: var(--st-ctl-hover); box-shadow: inset 0 0 0 1px var(--st-ctl-edge-hover), var(--st-ctl-shadow); transition-duration: 0ms; }
#page-stats .st-ctl:active { background-color: var(--st-ctl-press); }
#page-stats .field.st-ctl:focus, #page-stats .pill-btn.st-ctl[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--text), var(--st-ctl-shadow); }
#page-stats .pill-btn.primary { height: 40px; padding: 0 20px; }
#page-stats .st-fresh { color: var(--text-2); font-size: 13px; font-weight: 540; }

/* Your numbers (D-183): the person's costs per order, worked out live into break-even ROAS and CPA and the winner line. */
.st-costs { margin: 14px 0 26px; border-radius: 18px; background: var(--st-card); box-shadow: var(--st-edge); }
.st-costs-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; width: 100%; min-height: 60px; padding: 12px 16px 12px 22px; border-radius: 18px; text-align: left; }
.st-costs-sum { flex: 1 1 260px; min-width: 0; color: var(--text-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.st-costs.open .st-costs-sum { display: none; }
.st-costs-sum.warn, .st-costs-msg.warn { color: var(--st-down); }
.st-costs-chev { flex: none; margin-left: auto; width: 34px; height: 34px; border-radius: 999px; background: var(--st-ctl) var(--st-chev) no-repeat center / 14px;
  box-shadow: inset 0 0 0 1px var(--st-ctl-edge), var(--st-ctl-shadow); transition: transform 220ms var(--ease), box-shadow 150ms ease; }
.st-costs-head:hover .st-costs-chev { box-shadow: inset 0 0 0 1px var(--st-ctl-edge-hover), var(--st-ctl-shadow); transition-duration: 220ms, 0ms; }
.st-costs.open .st-costs-chev { transform: rotate(180deg); }
/* The fold button says what it does: Close when open, Edit when folded (Christian, 2026-12-03). */
.st-costs-act { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 18px; border-radius: 999px; font-size: 14px; font-weight: 620; color: var(--text); background: var(--st-ctl); box-shadow: inset 0 0 0 1px var(--st-ctl-edge), var(--st-ctl-shadow); }
.st-costs-act .st-costs-chev { margin-left: 0; width: 28px; height: 28px; box-shadow: none; }
.st-costs-head:hover .st-costs-act { box-shadow: inset 0 0 0 1px var(--st-ctl-edge-hover), var(--st-ctl-shadow); }
.st-costs-head:hover .st-costs-act .st-costs-chev { box-shadow: none; }
.st-acct { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.st-acct[hidden] { display: none; }
.st-acct .field.pick.up-account { flex: none; width: auto; min-width: 240px; max-width: 360px; }
.st-costs-body { padding: 0 22px 20px; }
.st-costs-body:not([hidden]) { animation: menuIn 170ms var(--ease) both; }
.st-costs-intro { margin: -2px 0 16px; color: var(--text-2); font-size: 14px; }
.st-costs-in { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 14px 16px; }
.st-in-lbl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-in-name { font-size: 13.5px; font-weight: 620; }
.st-in-lbl small { min-height: 2.7em; color: var(--text-2); font-size: 12px; line-height: 1.35; }
.st-in { position: relative; display: block; margin-top: 6px; }
#page-stats .st-in .field { width: 100%; height: 46px; padding: 0 14px 0 30px; font-size: 15.5px; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
#page-stats .st-in.pct .field { padding: 0 32px 0 14px; }
#page-stats .st-in .field::placeholder { font-size: 13.5px; font-weight: 450; }
.st-in .field::-webkit-outer-spin-button, .st-in .field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-unit { position: absolute; top: 0; bottom: 0; left: 13px; display: flex; align-items: center; color: var(--text-2); font-size: 14.5px; font-weight: 560; pointer-events: none; }
.st-in.pct .st-unit { left: auto; right: 14px; }
.st-costs-out { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; margin: 18px 0 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.st-costs-out > div { min-width: 0; padding: 12px 16px 13px; box-shadow: -1px 0 0 var(--line), 0 -1px 0 var(--line); }
.st-costs-out dt { color: var(--text-2); font-size: 12.5px; line-height: 1.3; }
.st-costs-out dd { margin: 4px 0 0; font-size: 19px; font-weight: 640; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-costs-out .key { background: var(--st-flat-bg); }
.st-costs-out .key dt { color: var(--text); font-weight: 620; }
.st-costs-out .key dd { font-size: 23px; font-weight: 680; }
.st-costs-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; }
.st-costs-msg { color: var(--text-2); font-size: 13.5px; }
.st-costs-foot .pill-btn { margin-left: auto; min-width: 120px; }
.st-sum-profit { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.st-sum-profit .st-tile { padding: 14px 22px 16px; }
.st-sum-profit .st-tile-value { font-size: 22px; }
.st-link { margin-left: 12px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.st-link:hover { text-decoration-color: var(--text); }
.st-col-row.off { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 1100px) {
  .st-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-tile.big { grid-column: span 2; }
  .st-costs-in { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .st-in-lbl { grid-column: span 2; }
  .st-in-lbl:nth-child(-n+2) { grid-column: span 3; }
  .st-costs-out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .st-span { font-size: 17px; }
  .st-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-tile.big { grid-column: auto; }
  .st-tile { padding: 14px 16px 16px; gap: 6px; }
  .st-tile-value { font-size: 21px; }
  .st-tile.big .st-tile-value { font-size: 29px; }
  .st-win-card { gap: 14px; padding: 12px; }
  .st-win-thumb { width: 88px; }
  .st-win-x { font-size: 30px; }
  .st-win-facts { gap: 4px 16px; }
  .st-table { font-size: 14px; }
  .st-name-col { width: 176px; min-width: 176px; max-width: 200px; }
  .st-table td, .st-sort { padding-left: 12px; padding-right: 12px; }
  .st-thumb { width: 38px; height: 48px; }
  .st-ad { gap: 10px; }
  .st-costs-head { padding: 10px 12px 10px 16px; }
  .st-costs-body { padding: 0 16px 16px; }
  .st-costs-in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .st-in-lbl, .st-in-lbl:nth-child(-n+2) { grid-column: auto; }
  .st-in-lbl:first-child { grid-column: 1 / -1; }
  .st-in-lbl small { min-height: 0; }
  .st-costs-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-costs-out > div { padding: 10px 12px 11px; }
  .st-costs-out dd { font-size: 17px; }
  .st-costs-out .key dd { font-size: 20px; }
  .st-costs-foot .pill-btn { width: 100%; }
  .st-sum-profit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-sum-profit .st-tile { padding: 12px 16px 14px; }
  .st-sum-profit .st-tile-value { font-size: 19px; }
  .st-link { display: block; margin: 2px 0 0; text-align: left; }
}

/* ============================== Brands (PRD swipe-engine-brands §9.8; approved mockup 2026-11-14) ============================== */
/* Built from the Plan tab's pieces (.plan-wrap, .plan-card, .plan-file, .plan-mini-drop); only what they don't have lives here. */
.brand-rows { display: grid; gap: 10px; }
.brand-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; gap: 22px; padding: 16px 18px; border-radius: 18px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: var(--cur, pointer); }
.brand-row .name { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.brand-row .sub { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.brand-shots { display: flex; gap: 6px; }
.brand-shots img, .brand-photo img { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--raise); display: block; }
.brand-bad { color: var(--neg); }
.brand-note { color: var(--text-2); font-size: 13px; margin: 0 0 12px; }
.brand-note.brand-bad { color: var(--neg); }
.brand-name { display: flex; align-items: center; gap: 12px; }
.brand-name .field { max-width: 360px; height: 40px; font-weight: 600; }
.brand-files { display: grid; gap: 8px; margin-top: 14px; }
.brand-x { color: var(--text-3); font-size: 15px; padding: 2px 6px; }
.brand-paste { display: grid; gap: 10px; }
.brand-paste .field.area { width: 100%; }
.brand-upload { display: grid; gap: 6px; margin-top: 12px; color: var(--text-2); font-size: 12.5px; }
.brand-photos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.brand-photo { display: grid; gap: 6px; width: 84px; position: relative; }
.brand-photo img { width: 84px; height: 106px; }
.brand-photo span { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-photo .brand-x { position: absolute; top: 4px; right: 4px; background: var(--panel); border-radius: 50%; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; font-size: 12px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2); }
.brand-broll-card { margin-top: 16px; }
.brand-broll { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.brand-clip { display: grid; gap: 6px; width: 120px; position: relative; }
.brand-clip video { width: 120px; height: 150px; object-fit: cover; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--raise); display: block; }
.brand-clip span { font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-clip .brand-x { position: absolute; top: 4px; right: 4px; background: var(--panel); border-radius: 50%; width: 20px; height: 20px; padding: 0; display: grid; place-items: center; font-size: 12px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line-2); z-index: 1; }
.brand-foot { display: flex; justify-content: flex-end; }
.brand-row-acts { display: flex; gap: 8px; align-items: center; }
.brand-colors-card { margin-bottom: 16px; }
/* A brand's colors, changed by hand (web/brand-colors.js, D-186): in the Brands tab and on setup's brand card. */
.bc-box { display: grid; gap: 8px; }
.bc-row { display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); gap: 10px; }
.bc-sw { display: grid; gap: 5px; align-content: start; min-width: 0; }
.bc-chip { position: relative; display: grid; place-items: center; height: 46px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.18); cursor: var(--cur, pointer); transition: transform 160ms ease; }
.bc-chip:hover { transform: translateY(-1px); }
.bc-chip:has(.bc-pick:focus-visible) { outline: 2px solid currentColor; outline-offset: 2px; }
.bc-pick { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: inherit; border: 0; padding: 0; }
.bc-x { position: absolute; top: -7px; right: -7px; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; font-size: 13px; line-height: 1; color: #fff; background: rgba(17, 17, 19, 0.82); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22); cursor: var(--cur, pointer); opacity: 0; transition: opacity 140ms ease; }
.bc-sw:hover .bc-x, .bc-x:focus-visible { opacity: 1; }
@media (hover: none) { .bc-x { opacity: 1; } }
.bc-add .bc-chip { box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.45; }
.bc-add .bc-chip:hover { opacity: 0.8; }
.bc-plus { font-size: 22px; font-weight: 500; pointer-events: none; }
.bc-hex { font-size: 11.5px; opacity: 0.72; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-main { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.62; }
.bc-note { font-size: 12px; opacity: 0.62; margin: 2px 0 0; }
.brand-back { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-radius: 16px; background: var(--raise); }
.brand-back span { color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; }
.brand-new .edit-new { max-width: 520px; }
.brand-link-box { display: grid; gap: 8px; margin: 0 0 12px; }
.brand-link-box .edit-new { max-width: none; }
/* The link as the main way in (D-173): a big "Paste your link" card at the top, then "Or name your new brand" with its
   own link box. */
.brand-hero { display: grid; gap: 6px; padding: 26px 26px 22px; }
.brand-hero-h { margin: 0; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.05; }
.brand-hero .brand-note { margin: 4px 0 14px; font-size: 14px; max-width: 620px; }
.brand-link-box.big { margin: 0; }
.brand-link-box.big .edit-new { max-width: 760px; padding: 6px 6px 6px 18px; border-radius: 999px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow 150ms ease; }
.brand-link-box.big .edit-new:focus-within { box-shadow: inset 0 0 0 1.5px var(--text); }
.brand-link-box.big .field { height: 50px; font-size: 16px; background: none; box-shadow: none; padding-left: 0; }
.brand-link-box.big .pill-btn { height: 50px; padding: 0 24px; }
.brand-manual { display: grid; gap: 10px; }
.brand-manual .plan-label { margin: 0; }
.brand-manual-form { max-width: 760px; flex-wrap: wrap; }
.brand-manual-form .field { flex: 1 1 200px; }
.brand-scan { margin-top: 14px; max-width: 520px; padding: 18px; border-radius: 16px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.brand-scan[hidden] { display: none; }
.brand-file-open { cursor: var(--cur, pointer); transition: box-shadow 150ms ease; }
@media (hover: hover) and (pointer: fine) { .brand-file-open:hover { box-shadow: inset 0 0 0 1px var(--line-2); } }
.brand-read { color: var(--text-2); font-size: 13px; padding: 2px 6px; }

/* The live scan lines (web/scan-lines.js, D-173): setup's brand card and the Brands tab. */
.scan { display: grid; gap: 14px; }
.scan-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); min-width: 0; }
.scan-what { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-top b { color: var(--text); font-weight: 620; }
.scan-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--text); animation: scanSpin 700ms linear infinite; flex: none; }
.scan.done .scan-spin { display: none; }
@keyframes scanSpin { to { transform: rotate(360deg); } }
.scan-bar { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.scan-bar i { display: block; height: 100%; background: var(--chrome, var(--text)); transform-origin: left; transform: scaleX(0.04); transition: transform 900ms var(--ease); }
.scan-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.scan-lines li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--text); animation: scanIn 460ms var(--spring, var(--ease)) both; }
.scan-lines li.ok { color: var(--text-2); }
.scan-dot { position: relative; width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color 200ms ease, box-shadow 200ms ease; }
.scan-lines li:not(.ok) .scan-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--text); animation: scanSpin 700ms linear infinite; }
.scan-dot svg { opacity: 0; color: var(--page, var(--bg)); transition: opacity 160ms ease; }
.scan-lines li.ok .scan-dot { background: var(--text); box-shadow: none; }
.scan-lines li.ok .scan-dot svg { opacity: 1; }
@keyframes scanIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .scan-lines li { animation: none; }
  .scan-bar i { transition: none; }
  .scan-spin, .scan-lines li:not(.ok) .scan-dot::after { animation: none; }
}

/* The brand file reader (web/brand-reader.js, D-173) */
.reader { width: min(780px, 100%); max-height: calc(100dvh - 40px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 20px; background: var(--panel); color: var(--text); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 60px rgba(0, 0, 0, 0.6); }
.modal-backdrop:not([hidden]) .reader { animation: menuIn 200ms var(--ease) both; }
.reader-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.reader-titles { display: grid; gap: 4px; min-width: 0; flex: 1; }
.reader-kicker { color: var(--text-3); font-size: 10.5px; }
.reader-head h2 { margin: 0; font-size: 18px; font-weight: 640; line-height: 1.25; overflow-wrap: anywhere; }
.reader-meta { color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.reader-x { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) and (pointer: fine) { .reader-x:hover { color: var(--text); } }
.reader-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 22px; }
.reader-text { max-width: 68ch; font-size: 15px; line-height: 1.65; color: var(--text); overflow-wrap: anywhere; }
.reader-text h2, .reader-text h3, .reader-text h4 { margin: 1.4em 0 0.4em; font-weight: 650; line-height: 1.3; }
.reader-text h2 { font-size: 19px; } .reader-text h3 { font-size: 16.5px; } .reader-text h4 { font-size: 15px; }
.reader-text > :first-child { margin-top: 0; }
.reader-text p { margin: 0 0 0.9em; color: var(--text-2); }
.reader-text ul { margin: 0 0 0.9em; padding-left: 1.2em; color: var(--text-2); }
.reader-text li + li { margin-top: 0.3em; }
.reader-wait { margin: 0; color: var(--text-2); font-size: 14px; }
.reader-wait.err, .reader-msg { color: var(--neg); }
.reader-msg { margin: 8px 0 0; font-size: 13px; min-height: 18px; }
.reader-area { width: 100%; min-height: min(56vh, 520px); resize: vertical; font-size: 14.5px; line-height: 1.6; }
.reader-foot { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.reader-foot .spacer { flex: 1; }
@media (max-width: 560px) {
  .reader-head { padding: 16px 16px 12px; } .reader-body { padding: 14px 16px 18px; } .reader-foot { padding: 12px 16px; flex-wrap: wrap; }
  .brand-hero { padding: 20px 18px 18px; }
  .brand-link-box.big .edit-new { flex-wrap: wrap; border-radius: 22px; padding: 6px; }
  .brand-link-box.big .field { padding-left: 12px; }
  .brand-link-box.big .pill-btn { flex: 1 1 100%; }
}
@media (max-width: 860px) {
  .brand-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; }
  .brand-row .brand-shots { grid-column: 1 / -1; grid-row: 2; }
  .brand-row > .pill-btn { grid-row: 1; grid-column: 2; }
}

/* ============================== Tutorial ============================== */
.tour { position: fixed; inset: 0; z-index: 86; }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-3), 0 0 0 100vmax rgba(5, 5, 6, 0.68); pointer-events: none; transition: left 240ms var(--ease), top 240ms var(--ease), width 240ms var(--ease), height 240ms var(--ease); }
.tour-box { position: fixed; display: grid; gap: 8px; width: 320px; max-width: calc(100vw - 28px); padding: 16px 18px; border-radius: 16px; background: var(--panel); box-shadow: var(--pop); }
.tour-box strong { font-size: 15px; font-weight: 600; }
.tour-box p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; }
@media (max-width: 860px) {
  .tour-box { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .tour-spot { transition: none !important; } }

/* ============================== Guides and legal pages ============================== */
.doc-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; height: 64px; padding: 0 var(--gutter); background: rgba(10, 10, 11, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.doc-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.doc { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 44px 24px 96px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.doc h1 { margin: 0 0 8px; font-variation-settings: "wdth" 125; font-weight: 640; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(26px, 4vw, 34px); line-height: 1.08; color: var(--text); }
.doc h2 { margin: 40px 0 10px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; color: var(--text); }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); font-weight: 600; }
.doc li { margin: 6px 0; }
.doc .muted { color: var(--text-3); }
.doc .note { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text-3); font-variation-settings: "wdth" 112; font-weight: 520; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.doc td { color: var(--text-2); }
/* SEO guides (PRD create-studio-seo-pages): byline, trial button, verdict box, quotes, wide tables, sources. */
.doc .byline { margin: 0 0 28px; color: var(--text-3); font-size: 14px; }
.doc .cta { display: inline-block; margin: 8px 0 4px; padding: 12px 20px; border-radius: 999px; background: var(--chrome); color: var(--on-chrome); font-weight: 600; text-decoration: none; }
.doc .cta-note { margin: 4px 0 24px; font-size: 13.5px; color: var(--text-3); }
.doc .verdict { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 12px; padding: 16px 18px; margin: 0 0 24px; }
.doc .verdict p:first-child { margin-top: 0; }
.doc blockquote { margin: 14px 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--line-2); }
.doc blockquote p { margin: 0 0 4px; color: var(--text); }
.doc blockquote cite { font-style: normal; font-size: 13.5px; color: var(--text-3); }
.doc .table-wrap { overflow-x: auto; margin: 16px 0 8px; }
.doc .sources li { font-size: 13.5px; }
.doc figure { margin: 20px 0; }
.doc img { display: block; max-width: 100%; height: auto; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); }
.doc figcaption { margin-top: 8px; font-size: 13.5px; color: var(--text-3); }

/* SEO guides in daylight (2026-11-23, brands/create-studio/seo/page_rules.md): only pages with <body class="guide">.
   A light article page a reader from Google can read in a few minutes: 18px text, a 68 character column, room between
   sections. Still Create Studio: Archivo, the logo, wide caps on the title, and Platinum's black chrome on the button
   (DESIGN.md, the Platinum look). Privacy, terms, refunds, the keys guide and 404 keep the dark .doc above. */
body.guide {
  --bg: #FBFBFA; --panel: #F3F3F1; --raise: #EBEBE8;
  --line: rgba(17, 17, 19, 0.1); --line-2: rgba(17, 17, 19, 0.16); --line-3: rgba(17, 17, 19, 0.42);
  --text: #111113; --text-2: #34343A; --text-3: #5F5F67;
  --chrome: linear-gradient(180deg, #5A5A5F 0%, #2C2C30 35%, #0B0B0C 62%, #000000 72%, #2A2A2E 100%);
  --on-chrome: #F5F5F6;
  color-scheme: light;
}
.guide .spot { display: none; }
.guide a { text-decoration-color: rgba(17, 17, 19, 0.35); }
.guide a:hover { text-decoration-color: var(--text); }
.guide #cs-chrome stop:nth-child(1) { stop-color: #6E6E73; }
.guide #cs-chrome stop:nth-child(2) { stop-color: #36363A; }
.guide #cs-chrome stop:nth-child(3) { stop-color: #0B0B0C; }
.guide #cs-chrome stop:nth-child(4) { stop-color: #000000; }
.guide #cs-chrome stop:nth-child(5) { stop-color: #2C2C30; }
.guide #cs-chrome stop:nth-child(6) { stop-color: #4A4A4F; }
.guide .doc-top { background: rgba(251, 251, 250, 0.88); }
.guide .doc-top::after { background: var(--line); }
.guide .doc-top .logo .word { display: inline; }

.guide .doc { max-width: 704px; padding: 64px 24px 120px; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.guide .doc p { margin: 0 0 1.05em; }
.guide .doc p, .guide .doc li { color: var(--text-2); }
.guide .doc strong { color: var(--text); font-weight: 640; }
.guide .doc ul, .guide .doc ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.guide .doc li { margin: 0 0 0.45em; }
.guide .doc h1 { margin: 0 0 14px; font-size: clamp(34px, 6vw, 52px); line-height: 1.02; color: var(--text); }
.guide .doc .byline { margin: 0 0 40px; font-size: 15px; color: var(--text-3); }
.guide .doc section { margin-top: 72px; }
.guide .doc h2 { margin: 0 0 18px; padding: 0; border: 0; font-size: clamp(25px, 3.6vw, 30px); line-height: 1.18; font-weight: 680; letter-spacing: -0.012em; color: var(--text); scroll-margin-top: 88px; }
.guide .doc h3 { margin: 40px 0 10px; font-size: 20px; line-height: 1.3; font-weight: 660; color: var(--text); }
.guide .doc section > h3:first-of-type { margin-top: 28px; }
.guide .doc .muted { font-size: 15px; line-height: 1.55; color: var(--text-3); }
.guide .doc .kicker { margin: 0 0 12px; font-size: 12.5px; font-weight: 620; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }

/* The short answer: the one box on the page. */
.guide .doc .verdict { margin: 0 0 28px; padding: 26px 28px 22px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.guide .doc .verdict ul { margin-bottom: 0.9em; }
.guide .doc .verdict p:last-child { margin-bottom: 0; }

/* The trial button: Platinum's black chrome. */
.guide .doc .cta { margin: 4px 0 6px; padding: 15px 26px; font-size: 16.5px; font-weight: 620; color: var(--on-chrome); background: var(--chrome); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 22px -12px rgba(0, 0, 0, 0.45); transition: transform 200ms var(--ease); }
.guide .doc .cta:hover { transform: translateY(-1px); }
.guide .doc .cta:active { transform: translateY(0) scale(0.98); }
.guide .doc .cta-note { margin: 6px 0 0; font-size: 15px; color: var(--text-3); }
.guide .doc .cta-block { margin: 56px 0 0; padding-top: 32px; border-top: 1px solid var(--line-2); }

/* What's on this page. */
.guide .doc .toc { margin: 48px 0 0; padding: 22px 0 10px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.guide .doc .toc ol { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: toc; }
.guide .doc .toc li { counter-increment: toc; display: flex; gap: 14px; margin: 0; padding: 7px 0; font-size: 17px; line-height: 1.4; }
.guide .doc .toc li::before { content: counter(toc); flex: none; width: 1.2em; font-variant-numeric: tabular-nums; color: var(--text-3); }
.guide .doc .toc a { color: var(--text); text-decoration: none; }
.guide .doc .toc a:hover { text-decoration: underline; text-decoration-color: var(--line-3); }

/* Tables: hairlines, no boxes, scroll inside their own box on a phone. */
.guide .doc .table-wrap { margin: 24px 0 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.guide .doc table { min-width: 520px; font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.guide .doc table.compact { min-width: 0; }
.guide .doc th, .guide .doc td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); }
.guide .doc thead th { padding-top: 0; border-bottom: 1px solid var(--line-3); font-size: 12px; font-weight: 620; color: var(--text-3); }
.guide .doc tbody th { font-size: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text); font-variation-settings: "wdth" 100; }
.guide .doc td { color: var(--text-2); }
.guide .doc td.yes { color: var(--text); font-weight: 620; }
.guide .doc td.no { color: var(--text-3); }

/* Quotes: a black rule, the words in full, then who said it. */
.guide .doc blockquote { margin: 26px 0; padding: 2px 0 2px 22px; border-left: 3px solid var(--text); }
.guide .doc blockquote p { margin: 0 0 8px; font-size: 19px; line-height: 1.55; color: var(--text); }
.guide .doc blockquote cite { font-size: 14.5px; color: var(--text-3); }
.guide .doc .takeaway { margin: 32px 0; padding: 20px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 21px; line-height: 1.42; font-weight: 640; letter-spacing: -0.006em; color: var(--text); }

/* Pictures and charts. */
.guide .doc figure { margin: 36px 0; }
.guide .doc img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -28px rgba(0, 0, 0, 0.35); }
.guide .doc figcaption { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text-3); }
.guide .doc .chart { padding: 24px 24px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); }
.guide .doc .chart-title { margin: 0 0 18px; font-size: 16px; font-weight: 640; color: var(--text); }
.guide .doc .bar-row { display: grid; grid-template-columns: 12.5em 1fr; gap: 6px 16px; align-items: center; margin: 0 0 16px; font-size: 15.5px; line-height: 1.35; }
.guide .doc .bar-row:last-child { margin-bottom: 0; }
.guide .doc .bar-name { color: var(--text); font-weight: 560; }
.guide .doc .bar-track { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.guide .doc .bar { flex: none; height: 14px; width: var(--w); min-width: 6px; border-radius: 4px; background: var(--text); }
.guide .doc .bar.soft { background: #8C8C93; }
.guide .doc .bar.forever { flex: 1; width: auto; background: linear-gradient(90deg, var(--text) 70%, rgba(17, 17, 19, 0.08)); }
.guide .doc .bar-val { flex: none; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; }
.guide .doc .chart ol, .guide .doc .chart ul { margin-bottom: 0; }
.guide .doc .chart-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* FAQ and sources. */
.guide .doc .faq h3 { margin: 32px 0 8px; font-size: 19px; }
.guide .doc .faq h3:first-of-type { margin-top: 8px; }
.guide .doc .sources li { font-size: 15px; line-height: 1.55; }
.guide .doc .foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }

/* The free tools (PRD trial-growth-free-tools, D-135): the tool panel is the one box on a tool page, in the short
   answer's material; the result is a plain numbered list with a rule between items, never a card per item. */
.guide .doc .tool { margin: 0 0 22px; padding: 24px 26px 22px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.guide .doc .tool label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 640; color: var(--text); }
.guide .doc .tool label + .hint { margin: -2px 0 8px; font-size: 14px; color: var(--text-3); }
.guide .doc .tool textarea { display: block; box-sizing: border-box; width: 100%; min-height: 84px; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); font: inherit; font-size: 16px; line-height: 1.5; color: var(--text); resize: vertical; }
.guide .doc .tool textarea.tall { min-height: 220px; }
.guide .doc .tool textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--text); }
.guide .doc .tool textarea:disabled { color: var(--text-3); }
.guide .doc .tool .count { margin: 6px 0 18px; font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); }
.guide .doc .tool .count.over { color: #9B1C1C; font-weight: 620; }
.guide .doc .tool button { display: inline-block; margin: 2px 0 0; padding: 15px 26px; border: 0; border-radius: 999px; font: inherit; font-size: 16.5px; font-weight: 620; color: var(--on-chrome); background: var(--chrome); cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 22px -12px rgba(0, 0, 0, 0.45); transition: transform 200ms var(--ease); }
.guide .doc .tool button:hover:not(:disabled) { transform: translateY(-1px); }
.guide .doc .tool button:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.guide .doc .tool button:disabled { cursor: default; opacity: 0.55; }
.guide .doc .tool button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.guide .doc .tool .fine { margin: 12px 0 0; font-size: 14px; color: var(--text-3); }
.guide .doc .tool .err { margin: 12px 0 0; font-size: 15px; font-weight: 600; color: #9B1C1C; }
.guide .doc .tool .err:empty { display: none; }
.guide .doc .tool-result { margin: 0 0 8px; }
.guide .doc .tool-result:empty { display: none; }
.guide .doc .tool-result h2 { margin: 8px 0 6px; }
.guide .doc .tool-result ol { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: tr; }
.guide .doc .tool-result ol > li { counter-increment: tr; position: relative; margin: 0; padding: 18px 0 16px 40px; border-bottom: 1px solid var(--line); }
.guide .doc .tool-result ol > li::before { content: counter(tr); position: absolute; left: 0; top: 19px; font-size: 15px; font-weight: 640; font-variant-numeric: tabular-nums; color: var(--text-3); }
.guide .doc .tool-result .line { margin: 0 0 6px; font-size: 20px; line-height: 1.4; font-weight: 600; color: var(--text); }
.guide .doc .tool-result .meta { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-3); }
.guide .doc .tool-result .meta b { font-weight: 620; color: var(--text-2); }
.guide .doc .tool-result .copy { margin: 8px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 620; color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; cursor: pointer; }
.guide .doc .tool-result .copy:hover { color: var(--text); text-decoration-color: var(--text); }
.guide .doc .tool-result .copy-all { display: inline-block; margin: 4px 0 24px; }
.guide .doc .tool-score { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 18px; }
.guide .doc .tool-score b { font-size: 64px; line-height: 1; font-weight: 720; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.guide .doc .tool-score span { font-size: 16px; color: var(--text-3); }
.guide .doc .tool-result .rewrite { margin: 8px 0 0; padding-left: 14px; border-left: 2px solid var(--line-2); font-size: 16px; color: var(--text); }

@media (max-width: 560px) {
  .guide .doc { padding: 40px 16px 96px; font-size: 17px; }
  .guide .doc section { margin-top: 56px; }
  .guide .doc .verdict { padding: 20px 18px 16px; margin-left: -4px; margin-right: -4px; }
  .guide .doc .tool { padding: 20px 16px 18px; margin-left: -4px; margin-right: -4px; }
  .guide .doc .tool button { display: block; width: 100%; }
  .guide .doc .tool-result ol > li { padding-left: 30px; }
  .guide .doc .tool-score b { font-size: 52px; }
  .guide .doc .cta { display: block; text-align: center; }
  .guide .doc blockquote { padding-left: 16px; }
  .guide .doc blockquote p { font-size: 17.5px; }
  .guide .doc .takeaway { font-size: 19px; }
  .guide .doc .chart { padding: 18px 16px 16px; }
  .guide .doc .bar-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .guide .doc .cta, .guide .doc .tool button { transition: none; } }

/* ============================== Narrower screens ============================== */
@media (max-width: 1180px) {
  .topbar { gap: 16px; }
  .tab { padding: 0 13px; }
}
@media (max-width: 980px) {
  .logo .word { display: none; }
}
@media (max-width: 860px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 0 12px 0 16px; }
  .tabs { overflow-x: auto; scrollbar-width: none; scroll-padding: 0 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent); padding: 0 12px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 0 12px; height: 32px; font-size: 13.5px; }
  .ph-qotd, .ph-right .zoom, .ph-right .zoom[hidden] { display: none !important; }
  .phead { padding: 22px 16px 14px; }
  .phead h1 { font-size: 24px; }
  :root { --gutter: 16px; }
  .edit-layout { grid-template-columns: 1fr; }
  .edit-bin .bin-grid { max-height: 360px; }
  .composer { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 20px); padding: 12px 12px 10px; }
  .composer-top { gap: 10px; }
  .refs { max-width: 50%; }
  .thumb, .add-thumb { width: 44px; height: 44px; }
  .frame-slot { width: 52px; height: 52px; font-size: 10px; }
  .prompt { min-height: 44px; max-height: 120px; font-size: 15px; }
  .control-group { flex: 1 1 100%; }
  .control > button, .stepper { height: 30px; padding: 0 9px; font-size: 12px; }
  .controls .cost { flex: 1; padding-left: 9px; }
  .controls .generate { height: 40px; }
  .grid { --row-h: 150px; }
  .acct { position: fixed; right: 10px; left: 10px; top: calc(70px + env(safe-area-inset-top, 0px)); width: auto; max-width: 380px; margin-left: auto; }
  .viewer { display: flex; flex-direction: column; overflow-y: auto; }
  .viewer-nav { display: none; }
  .viewer-media { flex: none; height: 64vh; height: 64dvh; padding: 12px; }
  .viewer-media img, .viewer-media video { max-height: 100%; }
  .viewer-panel { flex: none; margin: 0 10px 10px; overflow: visible; }
  .l-foot { justify-content: center; text-align: center; }
  .l-quote { text-align: center; }
  .setup-foot { padding-left: 16px; padding-right: 16px; }
  .setup-main { padding: 16px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 150ms !important; transition-property: opacity !important; animation-duration: 1ms !important; animation-delay: 0ms !important; }
  .q.q-in .qw { animation: qFade 300ms ease both !important; }
  .q.q-swept::after { animation: none !important; }
  .q.q-loading { animation: none !important; background: none; color: var(--text); -webkit-text-fill-color: currentColor; }
  .tile.reveal img, .tile.reveal video { animation: qFade 300ms ease both !important; }
  @keyframes qFade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- Pricing tiers (PRD create-studio-pricing-tiers §9.7) ---- */
/* The offer, as the approved draft (web/drafts/offer.html) draws it. */
.modal.of-modal { position: relative; width: min(440px, 100%); gap: 16px; padding: 24px; }
.of-modal > strong:first-child { padding-right: 56px; font-size: 17px; line-height: 1.2; }
.of-close { position: absolute; top: 22px; right: 22px; font-size: 12.5px; }
.of-offer { display: grid; gap: 6px; padding: 18px; border-radius: 14px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.modal .of-line { color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
.of-line b { font-weight: 700; font-variant-numeric: tabular-nums; }
.modal .of-then { font-size: 13.5px; font-variant-numeric: tabular-nums; text-wrap: pretty; }
.of-go.pill-btn.primary { width: 100%; height: 44px; margin-top: 10px; font-size: 12px; }
.of-alt { justify-self: center; padding: 4px 6px; }
.of-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.of-packs[hidden] { display: none; }
.of-pack.pill-btn { justify-content: space-between; height: 44px; padding: 0 18px; font-size: 13.5px; }
.of-pack b { font-weight: 600; font-variant-numeric: tabular-nums; }
.modal .of-note { margin-top: -4px; text-align: center; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 720px) {
  .modal.of-modal { padding: 20px 18px; gap: 14px; }
  .of-close { top: 18px; right: 16px; }
  .of-offer { padding: 16px; }
  .of-pack.pill-btn { padding: 0 14px; font-size: 13px; }
}
/* The plan under the card's chip, the Pro tag on a Starter's Auto switch, and the quota meter in Video Editing. */
.card .plan-name { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.card .plan-name [translate="no"] { text-transform: none; letter-spacing: 0; } /* a team member's owner email */
.auto-switch[data-pro] > span:first-child::after { content: 'Pro'; margin-left: 7px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.pro-tag { padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.quota-meter { font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quota-meter[data-out] { color: var(--text); font-weight: 600; }

/* ---- The free first ad (PRD trial-growth-free-first-ad §9.10) ------------------------------------------------------ */
/* A model menu with no KIE key: the models greyed, the note with the way to the key at the top once one is picked. */
.menu .key-note { padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.menu .option.locked { opacity: 0.45; }
/* Setup's free ad pages. */
.setup-own { margin: 4px 0 0; }
.setup-skip-ai { margin: 2px 0 0; }
.link-btn.small { font-size: 13px; color: var(--text-3); }
.setup-free { display: grid; gap: 10px; }
.setup-photo { display: flex; align-items: center; justify-content: center; min-height: 96px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-size: 14px; cursor: pointer; transition: box-shadow 160ms var(--ease); }
.setup-photo:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
/* Setup's Brand, Key and Create steps (D-165): the bar names the three steps; the engine cards are the style cards. */
.setup-path { display: flex; gap: 10px; width: 100%; margin: 0; padding: 0; list-style: none; }
.setup-path li { flex: 1; display: grid; gap: 8px; }
.setup-path li i { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.setup-path li.on i, .setup-path li.done i { background: var(--chrome); }
.setup-path li .caps { color: var(--text-3); }
.setup-path li.on .caps { color: var(--text); }
.setup-body textarea.field { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; font: inherit; line-height: 1.5; }
.setup-brand { display: grid; gap: 6px; padding: 14px; border-radius: 14px; background: var(--raise); box-shadow: inset 0 0 0 1px var(--line); }
.setup-brand strong { font-size: 15px; font-weight: 600; }
.setup-brand > span { font-size: 13px; color: var(--text-2); }
.setup-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.setup-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.setup-have { display: grid; gap: 8px; }
.setup-have p { margin: 0; color: var(--text-2); font-size: 14px; }
.setup-have-list { display: flex; flex-wrap: wrap; gap: 6px; }
.setup-engines { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.setup-engine { padding: 14px; gap: 6px; }
.setup-engine strong { display: flex; align-items: center; gap: 8px; }
.setup-engine .pro-tag { letter-spacing: 0.04em; text-transform: uppercase; }
.setup-engine .setup-engine-saved { color: var(--text-2); }
.setup-connect { display: grid; gap: 12px; }
.setup-connect .setup-sub, .setup-connect p { margin: 0; }
.setup-price { color: var(--text-2); }
/* The free ad's panel on its plan: the meter fills as the credits are used. */
.free-panel { display: grid; gap: 10px; margin: 0 0 14px; }
.free-head { display: flex; align-items: baseline; gap: 10px; }
.free-head strong { font-size: 15px; font-weight: 600; color: var(--text); }
.free-left { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.free-meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.free-meter i { display: block; height: 100%; background: var(--text-2); transition: width 400ms var(--ease); }
.free-meter.low i { background: var(--neg); }
.free-line { margin: 0; font-size: 13.5px; }
.free-models { margin: 0; font-size: 12.5px; }
.free-video { width: min(100%, 320px); aspect-ratio: 9 / 16; border-radius: 12px; background: #000; }
.free-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* A free ad runs by itself on its test models: no yes boxes or model pickers on its pages. */
.free-plan .go { display: none; }
/* ---------- Language (web/i18n.js, PRD create-studio-translator, 2026-11-23) ----------
   A returning visitor with a saved language: the page waits (at most 1.5s) for its translation, so English never
   flashes. The animation is the failsafe if the translator never loads. */
html[data-i18n="wait"] body { opacity: 0; animation: i18n-show 0s 1.5s forwards; }
@keyframes i18n-show { to { opacity: 1; } }
/* The round language button, in the bottom-left corner of every page; in the studio it sits just right of Help
   (36px + 8px), and rises with Help above the prompt bar on narrow windows. Copies Help's look (liquid.css), with the
   site's base colours where the glass ones are not loaded. Physical left like Help. */
.lang { position: fixed; z-index: 16; left: calc(22px + env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
body:has(#help) .lang { left: calc(66px + env(safe-area-inset-left, 0px)); }
.lang-btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; color: var(--text-2);
  font-size: 11px; font-weight: 640; letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
  background: var(--glass, var(--panel)); -webkit-backdrop-filter: blur(12px) saturate(1.8); backdrop-filter: blur(12px) saturate(1.8);
  box-shadow: inset 0 0 0 1px var(--g-edge, var(--line-2)), var(--drop, 0 10px 30px -12px rgba(0, 0, 0, 0.5));
  opacity: 0.72; transition: opacity 150ms ease, transform 140ms var(--ease), scale 550ms var(--spring, var(--ease)); }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { opacity: 1; color: var(--text); transition-duration: 0ms, 140ms, 550ms; }
.lang-btn:hover { scale: 1.06; }
.lang-btn:active { transform: scale(0.94); }
.lang-btn:focus-visible { outline: 2px solid var(--text-2); outline-offset: 2px; opacity: 1; }
.lang-menu { position: absolute; left: 0; bottom: 46px; display: grid; gap: 2px; min-width: 210px; max-height: min(60vh, 640px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; border-radius: 16px; background: var(--glass-read, var(--menu, var(--panel)));
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6); box-shadow: var(--pop); transform-origin: bottom left; }
.lang-menu:not([hidden]) { animation: lang-pop 320ms var(--ease) both; }
@keyframes lang-pop { from { opacity: 0; transform: scale(0.94) translateY(6px); } to { opacity: 1; transform: none; } }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 34px; padding: 0 12px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font-size: 13.5px; text-align: start; cursor: pointer; }
.lang-menu button svg { flex: none; color: var(--text-2); visibility: hidden; }
.lang-menu button[aria-checked="true"] svg { visibility: visible; }
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--raise); outline: none; }
@media (max-width: 1120px) {
  body:has(#composer:not([hidden])) .lang { bottom: calc(var(--composer-h, 0px) + 34px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .lang-menu:not([hidden]) { animation: none; } }
/* Christian (2026-11-23): the language and Help buttons wear the platinum chrome of the main buttons, at full
   strength, so people see they are there. The doubled class outranks Help's glass look in liquid.css. */
.lang .lang-btn, .help .help-btn { background: var(--chrome); color: var(--on-chrome); opacity: 1; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.lang .lang-btn:hover, .lang .lang-btn[aria-expanded="true"], .help .help-btn:hover, .help .help-btn[aria-expanded="true"] { color: var(--on-chrome); }
.lang .lang-btn:focus-visible, .help .help-btn:focus-visible { outline-color: var(--text); }

/* The tip at the avatar after Switch to Revana is closed (web/app.js placeRevanaTip): a small bubble whose arrow
   points up at the avatar's middle. */
.revana-tip { position: fixed; z-index: 96; display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--panel); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 32px rgba(0, 0, 0, 0.35); }
.revana-tip::before { content: ""; position: absolute; top: -6px; right: var(--arrow-right, 12px); width: 12px; height: 12px; background: var(--panel); transform: rotate(45deg); box-shadow: -1px -1px 0 var(--line-2); }
.revana-tip:not([hidden]) { animation: lqPop 400ms var(--spring) both; }
.revana-tip-go { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.revana-tip-go:hover { text-decoration: underline; }

/* The Realistic UGC tab (web/ugc.js): page by page like the Plan tab, built from its pieces (plan-head, plan-progress,
   plan-card, field, segmented, clean-drop). Only the layout of its own parts is here. */
#page-ugc > * + * { margin-top: 12px; }
.ugc-intro .plan-text + p { margin: 8px 0 0; }
.ugc-new { display: flex; gap: 8px; align-items: center; }
.ugc-new .field { flex: 1; min-width: 0; }
.ugc-runs { display: grid; gap: 8px; }
.ugc-run { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 12px 6px 6px; }
.ugc-warn { margin: 6px 0 0; color: var(--neg); font-size: 12.5px; }
.ugc-run:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.ugc-run-open { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; text-align: left; cursor: pointer; border-radius: 10px; }
.ugc-run-del { flex: none; }
.ugc-dir-title { display: block; font-size: 15px; }
.ugc-dir-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.ugc-upload, .ugc-photo, .ugc-fields, .ugc-script, .ugc-quote, .ugc-final { display: grid; gap: 12px; justify-items: start; }
.ugc-fields, .ugc-script { justify-items: stretch; }
.ugc-script > .pill-btn { justify-self: start; }
.ugc-drop { width: 100%; }
/* Get UGC and Get a face picture (2026-12-02): a search in a new tab, with its one line beside it. */
.ugc-find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ugc-find .clean-note { max-width: 64ch; }
/* Under the centred drop box, the search sits centred with it, not alone at the card's left edge. */
.ugc-drop + .ugc-find { justify-self: center; justify-content: center; }
.ugc-preview { width: min(300px, 100%); aspect-ratio: 9 / 16; border-radius: 10px; background: #000; object-fit: contain; }
.ugc-thumb { width: 112px; height: 112px; object-fit: cover; border-radius: 10px; }
.ugc-wait { display: grid; gap: 10px; justify-items: start; margin: 0; }
.ugc-next { display: flex; justify-content: flex-end; }
.ugc-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.45; font-size: 13.5px; }
.ugc-check input { margin-top: 2px; accent-color: var(--text); }
.ugc-clip { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.ugc-says { height: auto; min-height: 76px; padding: 12px 16px; resize: vertical; line-height: 1.45; }
.ugc-clip-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ugc-quote-rows { width: 100%; }
.ugc-quote-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ugc-quote-row:last-child { border-bottom: 0; }
.ugc-quote-row .num { font-variant-numeric: tabular-nums; font-weight: 680; color: var(--text); }
.ugc-quote-row:last-child { font-size: 16px; }
.ugc-quote-row:last-child .num { font-weight: 760; }
.ugc-step { display: flex; gap: 10px; align-items: center; padding: 7px 0; color: var(--text-3); font-size: 13.5px; }
.ugc-step i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.ugc-step.done { color: var(--text-2); }
.ugc-step.done i { background: var(--text-3); }
.ugc-step.now { color: var(--text); font-weight: 600; }
.ugc-step.now i { background: var(--chrome); }
.ugc-consent { max-width: 480px; display: grid; gap: 14px; }
.ugc-choices { display: grid; gap: 18px; }
.ugc-choice { display: grid; gap: 8px; }
.ugc-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.ugc-option { display: grid; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 13px; cursor: pointer; transition: border-color 120ms ease; }
.ugc-option:hover { border-color: var(--text-2); }
.ugc-option:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
/* The picked option is inverted like the active tab, so it reads on both looks (Christian, 2026-11-28: on Platinum
   "you can't see what's being selected"). */
.ugc-option.on { background: var(--chrome); color: var(--on-chrome); border-color: transparent; box-shadow: var(--chrome-edge, none); }
.ugc-option.on .muted { color: inherit; opacity: 0.78; }
.ugc-option-head { display: flex; align-items: center; gap: 8px; }
.ugc-option-name { font-weight: 600; font-size: 14px; }
.ugc-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; opacity: 0.75; }
.ugc-live { display: grid; gap: 10px; margin-top: 14px; }
.ugc-live-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; font-size: 13.5px; }
.ugc-live-row.next { color: var(--text-2); opacity: 0.6; }
.ugc-live-row.now { font-weight: 600; }
.ugc-live-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.ugc-live-row.done .ugc-live-dot { background: var(--chrome); border-color: transparent; }
.ugc-live-row.now .ugc-live-dot { border-color: currentColor; }
.ugc-clock, .ugc-uppct { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: 12.5px; font-weight: 400; }
.ugc-live-bar { grid-column: 2 / 4; position: relative; display: block; width: 100%; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.ugc-live-bar b { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: var(--chrome); transform-origin: left; transform: scaleX(0.02); transition: transform 0.3s linear; }
.ugc-live-bar.sweep b { width: 35%; transform: none; animation: ugc-sweep 1.4s ease-in-out infinite; }
@keyframes ugc-sweep { from { left: -35%; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .ugc-live-bar.sweep b { animation: none; width: 100%; opacity: 0.5; } }
.ugc-keep { display: grid; gap: 8px; margin-top: 12px; }
.ugc-keep-row { padding: 8px 0; }
.ugc-final-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ugc-brand.plan-q { margin: 0; }
.ugc-shots { display: flex; gap: 8px; flex-wrap: wrap; }
.ugc-shot { padding: 0; border-radius: 10px; border: 2px solid transparent; background: none; cursor: pointer; line-height: 0; }
.ugc-shot img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--raise); }
.ugc-shot:hover { border-color: var(--line-2); }
.ugc-shot:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.ugc-shot.on { border-color: var(--text); }

/* ============================== The grouped top bar (Christian, 2026-11-28) ============================== */
.tab-group { position: relative; flex: none; }
.tab-trigger { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.tab-trigger:hover, .tab-trigger[aria-expanded="true"] { color: var(--text); }
.tab-trigger .tg-cur { font-weight: 500; opacity: 0.75; }
.tab-trigger .tg-cur:empty { display: none; }
.tab-trigger .tg-chev { opacity: 0.7; transition: transform 160ms var(--ease); }
.tab-trigger[aria-expanded="true"] .tg-chev { transform: rotate(180deg); }
.tabs #tab-admin { display: none !important; }
.nav-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 60; width: 320px; padding: 6px; display: grid; gap: 2px; border-radius: 16px; background: var(--menu); box-shadow: var(--pop); }
.nav-menu[hidden] { display: none; }
.nav-menu:not([hidden]) { animation: menuIn 170ms var(--ease) both; }
.nav-row { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.nav-row[hidden] { display: none; }
.nav-row:hover, .nav-row:has(.tab:focus-visible) { background: var(--raise, var(--line)); }
.topbar .tabs .nav-row .tab { height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; font-size: 13.5px; font-weight: 600; color: var(--text); text-align: left; }
.topbar .tabs .nav-row .tab:focus-visible { outline: none; }
.nav-row .nav-desc { font-size: 12px; color: var(--text-2); }
.nav-row:has(.tab.active) { background: var(--line); }
@media (max-width: 860px) {
  .topbar .tabs { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .tab-trigger { padding: 0 10px; height: 32px; font-size: 13.5px; }
  .tab-trigger .tg-cur { display: none; }
  .nav-menu { position: fixed; top: 58px; left: 12px; right: 12px; width: auto; }
}
/* A phone: the logo and the right side on the first row, the five tabs across the second (2026-11-28). */
@media (max-width: 600px) {
  .topbar, .topbar.squeeze { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo right" "tabs tabs"; height: auto; row-gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .topbar .logo { grid-area: logo; }
  .topbar .top-right { grid-area: right; }
  .topbar .tabs { grid-area: tabs; justify-self: center; max-width: 100%; }
  .tab-trigger, .topbar .tabs > .tab { padding: 0 9px; }
  /* The page head's buttons (Watch tutorial, Clear all) go under the title instead of past the screen's edge. */
  .phead { flex-direction: column; align-items: stretch; gap: 12px; }
  .ph-right { justify-items: start; text-align: left; }
  .ph-tools { flex-wrap: wrap; gap: 10px; }
}

