/* GENERATED by tools/build-css.php from fonts.css + tokens.css + base.css + components.css + app.css. Do not edit: edit the sources and rebuild. */

/* ---- fonts.css ---- */
/* VLPremier Pro · self-hosted web fonts. Licences: ../fonts/OFL-IBM-Plex-Sans.txt, ../fonts/OFL-IBM-Plex-Mono.txt (SIL OFL 1.1).
   2026-10-29 (owner: "change the fonts so it will not look like AI"): IBM Plex Sans replaces the stretched Archivo for headings
   and text, the same family as the Plex Mono timecodes. Variable weight 100-700 (fontsource 5.2.8, weight axis only); heavier
   weights in the CSS (800, 820) show at 700. latin-ext and italic download only when a page uses them.
   "IBM Plex Sans Fallback" = local Arial scaled to Plex Sans' metrics, so the swap does not move the text.
   (The Archivo files stay in ../fonts unused, for a quick rollback.) */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: optional; /* as before: no late swap (the latin file is preloaded) */
  src: url(../fonts/ibm-plex-sans-latin-wght-normal.woff2?v=b2c9031d9f) 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: "IBM Plex Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: optional; /* as before: no late swap (the latin file is preloaded) */
  src: url(../fonts/ibm-plex-sans-latin-ext-wght-normal.woff2?v=f0e2925b3f) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-wght-italic.woff2?v=ed273b4064) 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: "IBM Plex Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-latin-ext-wght-italic.woff2?v=f37d83ce57) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 101.33%;
  ascent-override: 101.15%;
  descent-override: 27.14%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-400-latin.woff2?v=814fe1615d) 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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-400-latin-ext.woff2?v=17a5b2a15b) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin.woff2?v=6708425c44) 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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-500-latin-ext.woff2?v=216ee1a35b) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-600-latin.woff2?v=e71a597e37) 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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-mono-600-latin-ext.woff2?v=6041b3192d) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- tokens.css ---- */
/* VLPremier Pro · approved design system "Midnight Ice" on the Concept A layout.
   DESIGN PROTOTYPE ONLY, not production. Source of truth: ../../../DESIGN_APPROVAL_RECORD.md.
   Every ratio is measured in ../../DESIGN_SYSTEM.md. No orange, no cyan anywhere. */
:root {
  color-scheme: dark;

  /* ---- colour: approval record (exact) ---- */
  --bg: #090D17;            /* page */
  --surface: #111A2B;       /* cards, solid nav, sheets */
  --surface-2: #1A263D;     /* raised panels, Pro card, active toggle */
  --line: #26324A;          /* decorative hairlines only */
  --line-strong: #5C6B86;   /* control borders: 3.61 on bg, 3.23 on surface (not on surface-2: 2.81) */
  --text: #E6F0FF;
  --muted: #9AA8C0;
  --primary: #E6F0FF;       /* was --tally: primary buttons, ribbon, plan highlight, REC dot */
  --primary-hover: #FFFFFF;
  --primary-ink: #090D17;   /* text on --primary: 16.89 */
  --accent: #2D8CEB;        /* was --cyan: playhead, focus rings, links, timecode */
  --accent-bright: #4FA3F5; /* third headline line, large emphasis, accent text on surface-2 */
  --danger: #FF6B6B;
  --meter-clip: #FF5A52;    /* red top of loudness meters only */

  /* ---- colour: derived for status (not in the record; the app's own colours, measured as 10% chips) ---- */
  --ok: #29D698;
  --warn: #FFC020;
  --info: var(--accent-bright);

  /* ---- colour: the app's own UI colours, inside editor mockups only ---- */
  --clip-v: #729ACC;
  --clip-a: #29D698;
  --key: #FFC020;
  --panel: #1F1F1F;
  --panel-2: #2B2B2B;
  --panel-bar: #171717;
  --panel-line: #2F2F2F;
  --panel-text: #B9B9B9;
  --panel-dim: #8F8F8F;

  /* ---- colour: blue hour (illustrations, drawn footage) ---- */
  --sky-1: #0B1222;
  --sky-2: #1A263D;
  --sky-3: #3C6AA8;
  --sky-4: #9EC2EE;
  --light: #E6F0FF;
  --ridge-1: #2A3C5C;
  --ridge-2: #18253C;
  --ridge-3: #0A0F1A;

  /* ---- type ---- */
  --font-display: "IBM Plex Sans", "IBM Plex Sans Fallback", system-ui, sans-serif;   /* 2026-10-29: was the stretched Archivo */
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --fs-hero: clamp(40px, 4.5vw, 66px);     /* hero h1, 116% width, 820 */
  --fs-h1: clamp(40px, 5vw, 72px);         /* page h1, 120% width */
  --fs-display: clamp(36px, 5.4vw, 80px);  /* final CTA, 125% width */
  --fs-h2: clamp(32px, 4.2vw, 56px);       /* section h2, 118% width */
  --fs-h3-lg: clamp(28px, 3vw, 40px);      /* feature h3 */
  --fs-h3: clamp(22px, 2.2vw, 28px);       /* card h3 */
  --fs-count: clamp(64px, 8vw, 112px);     /* big numbers, 125% width */
  --fs-lede: 19px;
  --fs-body: 17px;
  --fs-sm: 15px;
  --fs-label: 13px;   /* mono eyebrows, spec labels */
  --fs-meta: 12px;    /* mono chips, meta */
  --fs-micro: 11px;   /* functional floor: rulers, mockup UI */
  --lh-body: 1.6;
  --lh-tight: 1.04;

  /* ---- space: 4px base ---- */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 28px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-14: 56px; --s-18: 72px; --s-24: 96px; --s-34: 136px;
  --section-y: clamp(80px, 10vw, 136px);
  --feature-gap: clamp(96px, 11vw, 152px);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --nav-h: 64px;
  --top-h: 64px;   /* account / admin top bar */
  --side: 248px;   /* account / admin sidebar */

  /* ---- shape ---- */
  --r-ctl: 6px;    /* buttons, inputs, chips, ribbon. No pills. */
  --r-panel: 10px; /* cards, panels, editor window, dialogs */
  --r-clip: 3px;   /* clip blocks inside mockups */

  /* ---- motion ---- */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-tap: 150ms;
  --t-fast: 200ms;
  --t-toggle: 220ms;
  --t-drawer: 240ms;
  --t-sheet: 280ms;
  --t-reveal: 500ms;
  --t-hero: 600ms;

  /* ---- layers (dialogs use the browser top layer and need no z-index) ---- */
  --z-sticky: 10;
  --z-nav: 60;
  --z-toast: 80;
  --z-skip: 100;
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; --fs-lede: 17px; }
}

/* ---- base.css ---- */
/* VLPremier Pro · base: reset, type, layout, reveal system, motion rules. DESIGN PROTOTYPE ONLY. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html:has(dialog[open]) { overflow: hidden; }   /* scroll lock while a menu, modal, drawer or lightbox is open */
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 var(--fs-body)/var(--lh-body) var(--font-display);
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: var(--lh-tight); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.03em; line-height: 1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.12; letter-spacing: -0.01em; }
h4 { font-size: 18px; letter-spacing: 0; line-height: 1.25; }
p { text-wrap: pretty; }
::selection { background: rgb(45 140 235 / .45); color: var(--text); }

/* focus: one ring everywhere (accent, 5.61 on bg / 5.02 on surface) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* utilities */
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -100px; z-index: var(--z-skip); padding: 10px 14px; border-radius: var(--r-ctl); background: var(--primary); color: var(--primary-ink); font-weight: 650; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.lede { color: var(--muted); font-size: var(--fs-lede); max-width: 58ch; }
.measure { max-width: 68ch; }
section { position: relative; }
.section { padding-block: var(--section-y); }
.section.flush-top { padding-top: 0; }
.section-head { max-width: 760px; margin-bottom: var(--s-14); }
.section-head > * + * { margin-top: var(--s-5); }
.stack > * + * { margin-top: var(--s-4); }

/* eyebrow (2026-10-29, owner: the dot + mono capitals + dash looked AI-made): a plain line of real information in sentence
   case, e.g. "Version 0.11.53, released October 28, 2026". As a link (a.rec) it leads to the details. */
.rec { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-sm)/1.4 var(--font-display); color: var(--muted); text-decoration: none; }
a.rec:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.rec + h1, .rec + h2 { margin-top: 18px; }

/* text links */
.link { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); transition: color var(--t-tap), border-color var(--t-tap); }
.link:hover { color: var(--accent-bright); border-color: var(--accent-bright); }
.link-arrow { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color var(--t-tap); }
.link-arrow:hover { color: var(--accent-bright); }
.prose a:not([class]) { color: var(--accent-bright); text-underline-offset: 3px; }

/* nav sentinel: created by site.js; the nav turns solid once it leaves view */
.nav-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }

/* ---------- reveal system ----------
   [data-reveal] rises 24px + fades in once when it enters view (site.js adds .in).
   Hidden only when scripting is on and motion is allowed, so no-JS and reduced-motion always show content.
   Never put data-reveal on above-the-fold content (it would flash). Stagger with style="--d:60ms". */
[data-reveal] { transition: opacity var(--t-reveal) var(--ease) var(--d, 0ms), transform var(--t-reveal) var(--ease) var(--d, 0ms); }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  [data-reveal]:not(.in) { opacity: 0; transform: translateY(24px); }
}
/* 2026-10-26 (owner: "the page jiggles on reload"): a block still lowered by 24px must not be the element the browser
   restores the scroll position against (that put a reloaded page 24px off). */
[data-reveal] { overflow-anchor: none; }
/* Reload / Back: the page comes back as it was. site.js sets html.is-return; reveals are shown at once and the load-time
   animations (nav fade, hero rise) do not play again. Removed shortly after load so later transitions work normally. */
html.is-return :is([data-reveal], .nav, .nav *, .hero *, .cap .w) { transition: none !important; animation-delay: 0s !important; animation-duration: 0s !important; }

/* ---------- keyframes (transform / opacity only) ---------- */
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
@keyframes win { from { opacity: 0; transform: scale(.97); } }
@keyframes snap { from { opacity: 0; transform: translateX(-28px); } }
@keyframes scrub { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes hl { 0%, 11% { opacity: 1; } 12%, 100% { opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- reduced motion: nothing loops, nothing travels ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- components.css ---- */
/* VLPremier Pro · components. DESIGN PROTOTYPE ONLY. Class + data-attribute API documented in ../../DESIGN_SYSTEM.md.
   Sections: buttons · nav · menu sheet · footer · cards · chips/badges/ribbon · forms · search · segmented · tables ·
   tabs · accordion · dialogs (modal, drawer, lightbox) · toast · callouts · figures · breadcrumb · pagination ·
   plan cards · account shell · admin shell · ruler · hero motif · editor window + timeline · mockup kit · scenes. */

/* =========================== BUTTONS =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font: 650 16px/1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-tap) var(--ease), box-shadow var(--t-tap) var(--ease), background-color var(--t-tap) var(--ease), border-color var(--t-tap) var(--ease), color var(--t-tap);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 0 0 4px rgb(45 140 235 / .32); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); box-shadow: 0 0 0 4px rgb(45 140 235 / .18); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: rgb(255 107 107 / .1); box-shadow: 0 0 0 4px rgb(255 107 107 / .16); }
.btn-quiet { background: transparent; color: var(--text); padding-inline: 12px; }
.btn-quiet:hover { background: var(--surface-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.play-ico { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================== NAV =========================== */
.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-nav); height: var(--nav-h); border-bottom: 1px solid transparent; transition: background-color var(--t-fast), border-color var(--t-fast); animation: fade var(--t-fast) both; }
.nav.is-solid { background: rgb(17 26 43 / .96); border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 32px; height: 32px; border-radius: 7px; }
.brand span { font: 800 18px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.brand b { font-weight: 500; color: var(--muted); }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); transition: color var(--t-tap); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
/* 2026-10-26 (owner): an underline shows which menu item is open. It grows from the left on hover / keyboard focus and
   stays, brighter, on the open page or section (aria-current, set by the server). Transform only: nothing moves. */
.nav-links > li > a { position: relative; display: inline-block; padding-block: 6px; }
.nav-links > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent-bright); transform: scaleX(0); transform-origin: left center; opacity: .6; transition: transform 260ms var(--ease), opacity 260ms var(--ease); }
.nav-links > li > a:is(:hover, :focus-visible)::after, .has-sub.is-open > a::after { transform: scaleX(1); }
.nav-links > li > a[aria-current]::after { transform: scaleX(1); opacity: 1; }
.nav-sub a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
@media (prefers-reduced-motion: reduce) { .nav-links > li > a::after { transition: none; } }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-signin { font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
/* signed in (bell + Admin + My account) the bar is wider: never break a label onto two lines (owner 2026-10-27);
   tighter spacing on mid-size screens, and the menu button takes over at 1320px and below */
.nav-links a { white-space: nowrap; }
@media (max-width: 1440px) { .nav-in { gap: 28px; } .nav-links { gap: 20px; } .nav-cta { gap: 16px; } }
.nav-signin:hover { color: var(--accent-bright); }
.menu-btn { display: none; flex: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: none; color: var(--text); cursor: pointer; position: relative; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { position: absolute; left: 12px; width: 18px; height: 2px; background: currentColor; content: ""; transition: transform var(--t-sheet) var(--ease), background-color var(--t-tap); }
.menu-btn i { top: 20px; }
.menu-btn i::before { left: 0; top: -6px; }
.menu-btn i::after { left: 0; top: 6px; }
.menu-btn.is-x i { background: transparent; }
.menu-btn.is-x i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn.is-x i::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1320px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav-in { gap: 16px; }
}

/* =========================== DIALOG BASE (menu sheet, modal, drawer, lightbox) =========================== */
dialog { color: var(--text); border: 0; padding: 0; }
dialog::backdrop { background: rgb(5 8 14 / .74); }

/* menu sheet: full-height, slides down from the top */
.sheet {
  inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom)); background: var(--surface);
  display: flex; flex-direction: column; transform: translateY(-100%);
  transition: transform var(--t-sheet) var(--ease), overlay var(--t-sheet) allow-discrete, display var(--t-sheet) allow-discrete;
}
.sheet:not([open]) { display: none; }
.sheet[open] { transform: none; }
@starting-style { .sheet[open] { transform: translateY(-100%); } }
.sheet::backdrop { background: transparent; }
.sheet-top { flex: none; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-top .menu-btn { display: block; margin: 0; }
.sheet-links { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.sheet-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 700 clamp(19px, 5vw, 22px)/1.2 var(--font-display); }
/* the open page: the blue line sits beside the label, never against it (owner 2026-10-27) */
.sheet-links a[aria-current] { color: var(--accent-bright); box-shadow: inset 3px 0 0 var(--accent-bright); padding-left: 16px; }
.sheet-links small { font: 400 12px/1 var(--font-mono); color: var(--muted); }
.sheet-foot { margin-top: auto; display: grid; gap: 12px; padding-top: 20px; }
.sheet-foot .btn { width: 100%; min-height: 54px; font-size: 17px; }

/* modal */
.modal {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-panel);
  opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), overlay var(--t-fast) allow-discrete, display var(--t-fast) allow-discrete;
}
.modal.wide { width: min(880px, calc(100% - 32px)); }
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-h h2 { font-size: 20px; }
.modal-b { padding: 20px; }
.modal-b > * + * { margin-top: 14px; }
.modal-f { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 20px; border-top: 1px solid var(--line); }
.x-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: none; cursor: pointer; font: 400 22px/1 var(--font-mono); color: var(--text); }
.x-btn:hover { border-color: var(--text); }

/* drawer: slides in from the right (add .drawer-left for left) */
.drawer {
  margin: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: none; overflow: auto;
  background: var(--surface); border-left: 1px solid var(--line-strong); transform: translateX(100%);
  transition: transform var(--t-drawer) var(--ease), overlay var(--t-drawer) allow-discrete, display var(--t-drawer) allow-discrete;
}
.drawer-left { margin: 0 auto 0 0; border-left: 0; border-right: 1px solid var(--line-strong); transform: translateX(-100%); }
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } .drawer-left[open] { transform: translateX(-100%); } }
.drawer .modal-h { position: sticky; top: 0; background: var(--surface); z-index: 1; }

/* lightbox (built by site.js from any a[data-lightbox]) */
.lightbox { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; background: transparent; display: grid; place-items: center; padding: 64px 16px 24px; }
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: rgb(5 8 14 / .92); }
.lightbox figure { display: grid; justify-items: center; gap: 14px; max-width: 100%; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100dvh - 160px); width: auto; height: auto; border-radius: var(--r-ctl); box-shadow: 0 0 0 1px var(--line); }
.lightbox figcaption { max-width: 72ch; text-align: center; font-size: 15px; color: var(--muted); }
.lightbox .x-btn { position: fixed; top: 14px; right: 16px; background: var(--surface); }

/* =========================== TOAST =========================== */
.toasts { position: fixed; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: var(--z-toast); display: grid; gap: 8px; width: min(380px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-ctl); background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 15px; animation: toast-in var(--t-fast) var(--ease) both; pointer-events: auto; }
.toast::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.toast.is-error::before { background: var(--danger); }

/* =========================== FOOTER =========================== */
.foot { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
.foot h2 { font: 600 14px/1.3 var(--font-display); color: var(--muted); margin-bottom: 16px; }   /* 2026-10-29: sentence case, no mono capitals */
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; font-size: 15px; transition: color var(--t-tap); }
.foot ul a:hover { color: var(--accent-bright); }
.foot-about { margin-top: 16px; color: var(--muted); font-size: 15px; max-width: 34ch; }
.news { margin-top: 24px; max-width: 360px; }
.news .row { display: flex; gap: 8px; }
.news .input { flex: 1; min-width: 0; }
.foot-base { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 12px/1.5 var(--font-mono); color: var(--muted); }
@media (max-width: 1180px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

/* =========================== CARDS =========================== */
.card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; }
.card.raised { background: var(--surface-2); border-color: var(--line-strong); }
.card.tight { padding: 0; overflow: hidden; }
.card-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.card-h h2, .card-h h3 { font-size: 18px; line-height: 1.2; }
.card-h .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.card-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
a.card { display: block; text-decoration: none; transition: border-color var(--t-tap); }
a.card:hover { border-color: var(--line-strong); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { min-width: 0; overflow-wrap: anywhere; }

/* =========================== CHIPS, BADGES, RIBBON =========================== */
/* status chip: 10% tint of its colour, text in the colour. Every variant >= 4.78:1 on bg, surface and surface-2. */
.chip {
  --c: var(--muted);
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px;
  font: 500 var(--fs-meta)/1 var(--font-mono); white-space: nowrap; color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip.is-hollow::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip.trial { --c: var(--info); }
.chip.active { --c: var(--ok); }
.chip.past-due { --c: var(--warn); }
.chip.cancel-scheduled { --c: var(--warn); }
.chip.cancel-scheduled::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip.expired { --c: var(--muted); }
.chip.refunded { --c: var(--muted); }
.chip.refunded::before { border-radius: 1px; }
.chip.offline { --c: var(--muted); }
.chip.offline::before { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip.deactivated { --c: var(--danger); }
.chip.ok { --c: var(--ok); } .chip.warn { --c: var(--warn); } .chip.danger { --c: var(--danger); } .chip.info { --c: var(--info); }
/* badge: neutral outlined mono label (payment method, version, level) */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--text); white-space: nowrap; }
.badge.quiet { border-color: var(--line); color: var(--muted); height: 22px; padding: 0 7px; }
.ribbon { position: absolute; top: -13px; right: 20px; padding: 6px 10px; border-radius: var(--r-ctl); background: var(--primary); color: var(--primary-ink); font: 600 var(--fs-meta)/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.save { display: inline-block; margin-top: 10px; padding: 4px 8px; border-radius: 4px; background: rgb(79 163 245 / .1); color: var(--accent-bright); font: 500 var(--fs-meta)/1.3 var(--font-mono); }
.proposal { display: flex; align-items: flex-start; gap: 8px; font: 500 var(--fs-meta)/1.4 var(--font-mono); color: var(--muted); }
.proposal::before { content: ""; flex: none; width: 14px; height: 0; margin-top: 8px; border-top: 1px dashed var(--line-strong); }

/* =========================== FORMS =========================== */
.field { display: grid; gap: 8px; min-width: 0; }
.label, .field > label { font-size: 14px; font-weight: 600; }
.field-help { font-size: 13px; color: var(--muted); }
.field-error { display: none; font-size: 13px; color: var(--danger); }
.field.is-error .field-error { display: block; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--text); font: 400 15px/1.4 var(--font-display);
  transition: border-color var(--t-tap), box-shadow var(--t-tap);
}
.textarea { min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(45 140 235 / .35); }
.field.is-error :is(.input, .select, .textarea), [aria-invalid="true"] { border-color: var(--danger); }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .5; cursor: not-allowed; }
.select { appearance: none; padding-right: 36px; cursor: pointer; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239AA8C0' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.select option { background: var(--surface); }
.check { display: inline-flex; align-items: flex-start; flex-wrap: nowrap; gap: 10px; min-height: 44px; padding-top: 11px; font-size: 15px; cursor: pointer; }
.check input:not(.switch) { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.switch { appearance: none; position: relative; width: 44px; height: 26px; margin: -3px 0 0; flex: none; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; transition: background-color var(--t-tap), border-color var(--t-tap); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 3px; background: var(--muted); transition: transform var(--t-tap) var(--ease), background-color var(--t-tap); }
.switch:checked { background: var(--accent); border-color: var(--accent); }
.switch:checked::after { transform: translateX(18px); background: var(--primary); }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; } /* start: a field with help text must not push its neighbour down (2026-10-26) */
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* search with live-filter look: results narrow as you type (site.js [data-search]) */
.search { position: relative; }
.search .input { padding-left: 42px; min-height: 48px; font-size: 16px; }
.search::before { content: ""; position: absolute; left: 15px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border: 2px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search::after { content: ""; position: absolute; left: 27px; top: 50%; width: 2px; height: 7px; margin-top: 2px; background: var(--muted); transform: rotate(-45deg); pointer-events: none; }
.search:focus-within::before { border-color: var(--accent-bright); }
.search:focus-within::after { background: var(--accent-bright); }
.search-meta { min-height: 20px; margin-top: 8px; font: 400 var(--fs-meta)/1.5 var(--font-mono); color: var(--muted); }
.empty { padding: 32px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-panel); color: var(--muted); }
.empty b { display: block; color: var(--text); margin-bottom: 4px; }

/* segmented control (billing period etc.) */
.seg { display: inline-flex; padding: 4px; border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line-strong); }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--muted); font: 600 15px/1 var(--font-display); cursor: pointer; transition: background-color var(--t-tap), color var(--t-tap); }
.seg button:hover { color: var(--text); }
.seg button small { font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--accent-bright); margin-left: 8px; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* =========================== TABLES =========================== */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-strong); font: 500 var(--fs-meta)/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color var(--t-tap); }
.tbl tbody tr:hover { background: rgb(26 38 61 / .55); }
.tbl tr[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.tbl .num, .tbl th.num { text-align: right; }
/* .table-cards on .tbl-wrap: each row becomes a card under 720px; every td needs data-label */
@media (max-width: 719px) {
  .table-cards { overflow: visible; border: 0; background: none; border-radius: 0; }
  .table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-cards :is(table, tbody, tr, td) { display: block; width: 100%; }
  .table-cards tr { margin-bottom: 12px; padding: 6px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
  .table-cards .tbl td { display: grid; grid-template-columns: minmax(92px, 36%) minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
  .table-cards tbody tr td:last-child { border-bottom: 0; }
  .table-cards td::before { content: attr(data-label); font: 500 var(--fs-meta)/1.3 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .table-cards td[data-label=""] { grid-template-columns: 1fr; }
  .table-cards td[data-label=""]::before { display: none; }
}

/* =========================== TABS =========================== */
/* [data-tabs] box > .tablist[role=tablist] > .tab[role=tab][aria-controls] + [role=tabpanel]. site.js wires keys + state. */
.tablist { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 16px; border: 0; background: none; color: var(--muted); font: 600 15px/1 var(--font-display); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color var(--t-tap), box-shadow var(--t-tap), background-color var(--t-tap), border-color var(--t-tap); }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tab small { margin-left: 6px; font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--muted); }
[role="tabpanel"] { min-width: 0; }
[role="tabpanel"]:focus-visible { outline-offset: 8px; }
@media (scripting: enabled) { [data-tabs]:not([data-tabs="mobile"]) [role="tabpanel"]:not(.is-active) { display: none; } }
/* mobile tab carousel: [data-tabs="mobile"] shows every panel stacked >= 720px, one panel + swipeable tab strip below */
[data-tabs="mobile"] > .tablist { display: none; }
@media (max-width: 719px) {
  [data-tabs="mobile"] > .tablist {
    display: flex; gap: 8px; border: 0; margin: 0 calc(var(--gutter) * -1) 28px; padding: 2px var(--gutter);
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  }
  [data-tabs="mobile"] .tab { scroll-snap-align: start; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); box-shadow: none; font-size: 14px; padding: 0 14px; }
  [data-tabs="mobile"] .tab[aria-selected="true"] { background: var(--surface-2); border-color: var(--accent); color: var(--text); }
}
@media (max-width: 719px) and (scripting: enabled) { [data-tabs="mobile"] [role="tabpanel"]:not(.is-active) { display: none; } }

/* =========================== ACCORDION (native details; add name="x" for one-open-at-a-time) =========================== */
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: center; padding: 22px 0; font: 700 19px/1.35 var(--font-display); transition: color var(--t-tap); }
.qa summary:hover { color: var(--accent-bright); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 24px/1 var(--font-mono); color: var(--accent-bright); text-align: center; transition: transform var(--t-fast) var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa .ans { padding: 0 40px 24px 0; color: var(--muted); max-width: 64ch; }
@media (max-width: 640px) { .qa summary { font-size: 17px; } .qa .ans { padding-right: 0; } }

/* =========================== CALLOUTS =========================== */
.callout { --c: var(--accent-bright); padding: 16px 18px; border: 1px solid var(--line); border-left: 2px solid var(--c); background: var(--surface); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; font-size: 15px; color: var(--muted); max-width: 68ch; }
.callout > b:first-child, .callout-t { display: block; margin-bottom: 4px; font: 600 var(--fs-meta)/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--c); }
.callout strong { color: var(--text); font-weight: 600; }
.callout.tip { --c: var(--accent-bright); }
.callout.note { --c: var(--muted); }
.callout.warning { --c: var(--warn); }
.callout.honest > b:first-child { display: inline; margin: 0; font: 600 15px/1.6 var(--font-display); letter-spacing: 0; text-transform: none; color: var(--text); }

/* =========================== FIGURES + LIGHTBOX TRIGGER =========================== */
.fig { margin: 0; min-width: 0; }
.fig > a, .fig > .fig-frame { display: block; position: relative; overflow: hidden; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--surface); }
.fig > a[data-lightbox] { cursor: zoom-in; transition: border-color var(--t-tap); }
.fig > a[data-lightbox]:hover { border-color: var(--line-strong); }
.fig > a[data-lightbox]::after { content: "Enlarge"; position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 4px; background: rgb(9 13 23 / .86); font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--text); opacity: 0; transition: opacity var(--t-tap); }
.fig > a[data-lightbox]:is(:hover, :focus-visible)::after { opacity: 1; }
.fig img { width: 100%; }
.fig figcaption { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 72ch; }
.fig.is-tall > a { width: fit-content; max-width: 100%; }
.fig.is-tall img { width: min(100%, 236px); }   /* 607x1080 vertical shots capped at 420px tall */
.fig[data-real]:not(:has(img)) .fig-frame { aspect-ratio: 16 / 9; display: grid; place-items: center; border-style: dashed; border-color: var(--line-strong); font: 400 var(--fs-meta)/1.5 var(--font-mono); color: var(--muted); }

/* =========================== BREADCRUMB + PAGINATION =========================== */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font: 400 var(--fs-meta)/1.6 var(--font-mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font: 500 14px/1 var(--font-mono); }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-ctl); border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.pager a:hover { border-color: var(--line-strong); color: var(--text); }
.pager [aria-current] { background: var(--surface-2); border-color: var(--line-strong); color: var(--text); }
.pager .pager-info { border: 0; margin-left: auto; }

/* =========================== PLAN CARDS =========================== */
.plan { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 28px; }
.plan.pro { background: var(--surface-2); border-color: var(--line-strong); box-shadow: inset 0 2px 0 var(--primary); }
.plan.teams { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.plan .name { font: 800 24px/1 var(--font-display); letter-spacing: -0.02em; }
.plan .name small { margin-left: 6px; font: 500 var(--fs-label) var(--font-mono); color: var(--muted); letter-spacing: 0; }
.plan .for { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.plan .amt { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font: 800 48px/1 var(--font-display); letter-spacing: -0.02em; }
.plan .amt small { font: 400 14px/1.2 var(--font-mono); letter-spacing: 0; color: var(--muted); }
.plan .alt { margin-top: 8px; font: 400 var(--fs-label)/1.5 var(--font-mono); color: var(--muted); }
.plan .renew { margin-top: 10px; padding: 8px 10px; border-radius: var(--r-ctl); border: 1px dashed var(--line-strong); font: 400 var(--fs-label)/1.45 var(--font-mono); }
.plan .macs { margin-top: 16px; font: 500 var(--fs-label)/1.4 var(--font-mono); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; font-size: var(--fs-sm); }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; line-height: 1.45; }
.plan li::before { content: ""; width: 9px; height: 5px; margin-top: 7px; border-left: 2px solid var(--accent-bright); border-bottom: 2px solid var(--accent-bright); transform: rotate(-45deg); }
.plan .proposal { margin: 20px 0 -12px; }
.plan .btn { margin-top: auto; }
@media (max-width: 640px) { .plan { padding: 24px 20px; } }

/* =========================== ACCOUNT SHELL =========================== */
/* <body class="shell acct"> + _partials/account-nav.html (top bar + side nav) + <main class="shell-main" id="main"> */
body.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: var(--top-h) auto 1fr; font-size: var(--fs-sm); line-height: 1.55; }
.shell-top { grid-column: 1 / -1; position: sticky; top: 0; z-index: var(--z-nav); height: var(--top-h); display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
.shell-ctx { padding-left: 20px; border-left: 1px solid var(--line); font: 500 var(--fs-meta)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.shell-top .top-links { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.shell-top .top-links > a { color: var(--muted); text-decoration: none; font-weight: 500; }
.shell-top .top-links > a:hover { color: var(--text); }
.acct-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 4px; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; font: 600 15px var(--font-display); cursor: pointer; }
.acct-btn:hover, .acct-btn:focus-visible { border-color: var(--line-strong); }
.av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text); font: 600 var(--fs-meta)/1 var(--font-mono); flex: none; }
.pop { position: fixed; inset: calc(var(--top-h) - 4px) 16px auto auto; margin: 0; width: 240px; padding: 6px; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-panel); color: var(--text); }
.pop:popover-open { display: block; }
.pop p { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 13px; color: var(--muted); }
.pop p b { display: block; color: var(--text); font-size: 14px; }
.pop p.pop-meta { padding-top: 0; margin-top: -4px; font: 500 var(--fs-meta)/1.4 var(--font-mono); letter-spacing: .04em; }
.pop a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 500; font-size: 14px; }
.pop a:hover { background: var(--surface); }
.shell-side { position: sticky; top: var(--top-h); align-self: start; height: calc(100dvh - var(--top-h)); overflow-y: auto; padding: 24px 16px; border-right: 1px solid var(--line); grid-row: 2 / span 2; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a, .side-nav .soon { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border-radius: var(--r-ctl); color: var(--muted); text-decoration: none; font-weight: 500; transition: background-color var(--t-tap), color var(--t-tap); }
.side-nav a:hover { color: var(--text); background: var(--surface); }
.side-nav a[aria-current] { color: var(--text); background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.side-nav .n { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 4px; background: rgb(255 192 32 / .1); color: var(--warn); font: 600 var(--fs-meta)/20px var(--font-mono); text-align: center; }
.side-nav .soon { cursor: default; opacity: .75; }
.side-nav .soon em { margin-left: auto; font: 400 var(--fs-micro)/1 var(--font-mono); font-style: normal; color: var(--muted); }
.side-grp { margin: 20px 0 6px; padding: 0 12px; font: 500 var(--fs-micro)/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.side-grp:first-child { margin-top: 0; }
.side-help { margin-top: 24px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: var(--r-panel); font-size: 14px; color: var(--muted); }
.side-help b { display: block; color: var(--text); margin-bottom: 4px; }
.shell-main { min-width: 0; width: 100%; max-width: 1180px; padding: 32px var(--gutter) 56px; grid-column: 2; grid-row: 2 / span 2; }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.ph h1 { font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -0.02em; line-height: 1.05; }
.ph .say { margin-top: 10px; color: var(--muted); max-width: 64ch; font-size: 16px; }
.shell-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 400 var(--fs-meta)/1.5 var(--font-mono); color: var(--muted); }
.shell-foot a { color: var(--muted); }
.shell-menu-btn { display: none; }
@media (max-width: 959px) {
  body.shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .shell-top .top-links > a { display: none; }
  .shell-main { grid-column: 1; grid-row: auto; }
  /* account: side nav becomes a swipeable strip under the top bar */
  body.acct .shell-side { position: sticky; top: var(--top-h); z-index: var(--z-sticky); height: auto; grid-row: auto; padding: 8px var(--gutter); border-right: 0; border-bottom: 1px solid var(--line); background: var(--bg); overflow-x: auto; scrollbar-width: none; }
  body.acct .side-nav { display: flex; gap: 6px; width: max-content; }
  body.acct .side-nav a { min-height: 40px; white-space: nowrap; border: 1px solid var(--line); }
  body.acct .side-nav a[aria-current] { border-color: var(--accent); box-shadow: none; }
  body.acct .side-help { display: none; }
  /* admin: sidebar moves into the left drawer opened from the top bar */
  body.adm .shell-side { display: none; }
  body.adm .shell-menu-btn { display: inline-flex; }
}
@media (max-width: 520px) { .shell-ctx { display: none; } .acct-btn .who { display: none; } .shell-top .adm-badge { display: none; } .shell-top { gap: 12px; } body.adm .shell-top .brand span { display: none; } }

/* =========================== ADMIN SHELL =========================== */
/* <body class="shell adm"> + _partials/admin-sidebar.html + <main class="shell-main" id="main"><div class="adm-body"> list | .adm-detail </div> */
body.adm .shell-main { max-width: none; }
.adm-badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 4px; background: rgb(45 140 235 / .12); color: var(--accent-bright); font: 600 var(--fs-micro)/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.adm-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.adm-detail { position: sticky; top: calc(var(--top-h) + 24px); max-height: calc(100dvh - var(--top-h) - 48px); overflow-y: auto; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .search { flex: 1 1 280px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.kpi { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.kpi b { display: block; font: 800 28px/1 var(--font-display); letter-spacing: -0.02em; }
.kpi span { display: block; margin-top: 8px; font: 400 var(--fs-meta)/1.4 var(--font-mono); color: var(--muted); }
@media (max-width: 1199px) { .adm-body { grid-template-columns: minmax(0, 1fr); } .adm-detail { position: static; max-height: none; } }
@media (max-width: 719px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* =========================== SECTION PATTERNS: FAQ split + final CTA band =========================== */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-head .lede { margin-top: 20px; }
.final { border-top: 1px solid var(--line); background: var(--surface); overflow: clip; }
.final > .ruler { position: absolute; left: 0; right: 0; top: 0; border-top: 0; }
.final .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end; padding-block: clamp(72px, 9vw, 120px); }
.final h2 { font-size: var(--fs-display); }
.final .side > p:first-child { color: var(--muted); }
.final .btn-row { margin-top: 24px; }
.trust { margin-top: 20px; font: 400 var(--fs-label)/1.5 var(--font-mono); color: var(--muted); }
@media (max-width: 860px) { .faq, .final .wrap { grid-template-columns: minmax(0, 1fr); } .faq-head { position: static; } }

/* =========================== RULER DIVIDER =========================== */
.ruler {
  height: 28px; position: relative; border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 96px) 0 0 / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12px) 0 0 / 100% 7px no-repeat;
}
@media (max-width: 640px) { .ruler span:nth-of-type(n+3) { display: none; } }
.ruler span { position: absolute; top: 10px; font: 400 var(--fs-micro)/1 var(--font-mono); color: var(--muted); transform: translateX(6px); white-space: nowrap; }
.ruler.has-head i { position: absolute; left: calc(var(--at, 62%) - 6px); top: 0; width: 13px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.ruler.has-head::after { content: ""; position: absolute; left: var(--at, 62%); top: 0; width: 1px; height: 100vh; background: linear-gradient(var(--accent), transparent 70%); opacity: .5; pointer-events: none; }

/* =========================== HERO MOTIF (approval record) =========================== */
.hero-motif { isolation: isolate; position: relative; } /* the motif layers anchor to their own section, not the viewport (signup bands, 2026-10-26) */
.hero-motif::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 520px at 78% 18%, rgb(45 140 235 / .13), transparent 62%), linear-gradient(180deg, #1A263D55, transparent 55%); }
.hero-motif::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgb(255 255 255 / .022) 0 26px, transparent 26px 48px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent); mask-image: linear-gradient(to top, #000 10%, transparent); }

/* =========================== EDITOR WINDOW + TIMELINE (fictional mockup data, app colours) =========================== */
.editor { width: 100%; background: var(--panel); border: 1px solid #3a3a3a; border-radius: var(--r-panel); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); overflow: hidden; font: 400 var(--fs-micro)/1.3 var(--font-mono); color: var(--panel-text); }
.ed-bar { height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--panel-bar); border-bottom: 1px solid var(--panel-line); }
.ed-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3d3d3d; flex: none; }
.ed-bar span { margin-inline: auto; color: #9a9a9a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-top { display: grid; grid-template-columns: minmax(0, 1fr) 280px; border-bottom: 1px solid var(--panel-line); }
.monitor { padding: 10px 12px 8px; border-right: 1px solid var(--panel-line); min-width: 0; }
.mon-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; white-space: nowrap; }
.mon-head b { color: #e6e6e6; font-weight: 500; }
.frame { position: relative; aspect-ratio: 16 / 9; background: var(--sky-1); overflow: hidden; border-radius: 2px; }
.frame > svg { width: 100%; height: 100%; }
.cap { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font: 800 clamp(13px, 1.9vw, 25px)/1.2 var(--font-display); color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / .55); padding: 0 8%; text-wrap: balance; }
.cap .w { position: relative; display: inline-block; animation: rise 500ms var(--ease) both; animation-delay: calc(1000ms + var(--i) * 70ms); }
.cap .w::after { content: attr(data-w); position: absolute; inset: 0; color: var(--key); opacity: 0; animation: hl 12s linear infinite; animation-delay: calc(1400ms + var(--i) * 1.4s); }
.mon-foot { display: flex; align-items: center; gap: 14px; margin-top: 8px; white-space: nowrap; }
.tc { color: var(--accent); font: 500 13px/1 var(--font-mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.transport { display: flex; align-items: center; gap: 12px; margin-inline: auto; }
.transport i { width: 0; height: 0; border-left: 8px solid #cfcfcf; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.transport s { width: 8px; height: 10px; border-left: 2px solid #8a8a8a; border-right: 2px solid #8a8a8a; text-decoration: none; }
.inspector { padding: 10px 12px; background: #1c1c1c; min-width: 0; }
.insp-tabs { display: flex; gap: 12px; color: var(--panel-dim); margin-bottom: 12px; white-space: nowrap; }
.insp-tabs b { color: #e6e6e6; font-weight: 500; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }
.prop { display: grid; grid-template-columns: 64px 76px 1fr; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #262626; background: linear-gradient(#333, #333) 156px 50% / 100% 1px no-repeat; white-space: nowrap; }
.prop em { font-style: normal; color: #9ec3ff; }
.kf { width: 7px; height: 7px; background: var(--key); transform: rotate(45deg); justify-self: start; margin-left: var(--k, 24px); }
.kf.off { background: none; border: 1px solid #6a6a6a; }
.insp-h { margin: 14px 0 4px; color: #e6e6e6; }
.timeline { display: grid; grid-template-columns: 64px minmax(0, 1fr); background: var(--panel); }
.tl-tools { grid-column: 1 / -1; height: 26px; display: flex; align-items: center; gap: 14px; padding: 0 12px; border-bottom: 1px solid #2a2a2a; color: var(--panel-dim); white-space: nowrap; overflow: hidden; }
.tl-tools b { color: #e6e6e6; font-weight: 500; }
.tl-tools .tc { font-size: var(--fs-micro); }
.heads { border-right: 1px solid var(--panel-line); }
.heads div, .lane { height: 34px; border-bottom: 1px solid #262626; }
.heads div:first-child, .tl-ruler { height: 22px; }
.heads div { display: flex; align-items: center; justify-content: center; }
.heads span { padding: 2px 6px; border-radius: var(--r-clip); background: #24476e; color: #dfeaff; font-size: 10.5px; }
.heads .a span { background: #1d4f3c; color: #d6fbe9; }
.lanes { position: relative; overflow: hidden; }
.tl-ruler { position: relative; border-bottom: 1px solid var(--panel-line); background: repeating-linear-gradient(90deg, #555 0 1px, transparent 1px 8.333%) 0 100% / 100% 6px no-repeat; }
.tl-ruler span { position: absolute; top: 4px; font-size: 10px; color: #8a8a8a; transform: translateX(4px); }
.lane { position: relative; }
.clip {
  position: absolute; top: 3px; bottom: 3px; left: var(--x); width: var(--w); border-radius: var(--r-clip); overflow: hidden;
  background: var(--clip-v); color: #0f1a29; padding: 3px 6px; font-size: 10.5px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3), inset 0 0 0 1px rgb(0 0 0 / .25);
  animation: snap var(--t-hero) var(--ease) both; animation-delay: calc(700ms + var(--i) * 75ms);
}
.clip.cc { background: #d6d6d6; color: #1b1b1b; }
.clip.dim { background: #5d7ea8; }
.clip.audio { background: var(--clip-a); color: #06281a; padding-top: 2px; line-height: 1.1; }
.clip.audio svg { position: absolute; left: 0; right: 0; bottom: 1px; height: 13px; width: 100%; color: #0b5a3a; }
.clip .kfs { position: absolute; left: 0; right: 0; bottom: 6px; height: 0; }
.clip .kfs i { position: absolute; top: -4px; left: var(--k); width: 8px; height: 8px; background: var(--key); transform: rotate(45deg); box-shadow: 0 0 0 1px #4a3500; }
.playhead { position: absolute; inset: 0; pointer-events: none; animation: scrub 12s linear 1.4s infinite; }
.playhead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--accent); }
.playhead::after { content: ""; position: absolute; left: -6px; top: 0; width: 13px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
/* stills + reduced motion: pin a finished frame (playhead 43%, fourth caption word lit) */
html.shot .playhead { animation: none; transform: translateX(43%); }
html.shot .cap .w::after { animation: none; }
html.shot .cap .w:nth-child(4)::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .playhead { transform: translateX(43%); }
  .cap .w:nth-child(4)::after { opacity: 1; }
}

/* =========================== MOCKUP KIT (panels used on home, features, how it works) =========================== */
.panel { min-width: 0; background: var(--panel); border: 1px solid #333; border-radius: var(--r-panel); overflow: hidden; font: 400 var(--fs-micro)/1.3 var(--font-mono); color: #b5b5b5; box-shadow: inset 0 1px 0 rgb(255 255 255 / .05); }
.panel-h { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--panel-bar); border-bottom: 1px solid var(--panel-line); white-space: nowrap; }
.panel-h b { color: #e6e6e6; font-weight: 500; }
.panel-h span { overflow: hidden; text-overflow: ellipsis; }
/* tools strip */
.tools { display: grid; grid-template-columns: repeat(9, 1fr); gap: 1px; background: #2a2a2a; border-bottom: 1px solid #2a2a2a; }
.tools span { background: var(--panel); padding: 10px 0; text-align: center; color: #cfcfcf; }
.tools span.on { background: #24476e; color: #fff; }
/* multicam */
.multi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; }
.multi i { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-clip); background: linear-gradient(170deg, var(--sky-2), var(--sky-3) 62%, var(--ridge-2)); }
.multi i:nth-child(2) { background: linear-gradient(170deg, #1d2a33, #5f7a87 70%, #121a20); }
.multi i:nth-child(3) { background: linear-gradient(170deg, #22303f, #8aa6c8 70%, #141c27); }
.multi i:nth-child(4) { background: linear-gradient(170deg, #262a33, #7c8396 70%, #15171c); }
.multi i.live { outline: 2px solid var(--primary); outline-offset: -2px; }
.multi i b { position: absolute; left: 4px; bottom: 3px; font-weight: 500; color: #fff; text-shadow: 0 1px 0 #000; }
/* morph cut */
.morph { padding: 4px 12px 14px; }
.morph .trk { position: relative; height: 30px; }
.morph .trk b { position: absolute; top: 4px; bottom: 4px; border-radius: var(--r-clip); background: var(--clip-v); color: #0f1a29; padding: 5px 6px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.morph .fx { position: absolute; top: 2px; bottom: 2px; left: 46%; width: 12%; border-radius: var(--r-clip); background: repeating-linear-gradient(135deg, #e6e6e6 0 4px, #bdbdbd 4px 8px); color: #111; display: grid; place-items: center; font-weight: 600; }
/* captions */
.cap-mock { display: grid; grid-template-columns: 1.15fr 1fr; }
.cap-mock .frame { border-radius: 0; }
.looks { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-top: 1px solid #2a2a2a; }
.looks span { padding: 6px 10px; border-radius: 4px; background: #262626; color: #cfcfcf; }
.looks span.on { background: var(--key); color: #241a00; font-weight: 600; }
.srt { border-left: 1px solid var(--panel-line); padding: 6px 0; min-width: 0; }
.srt p { display: grid; grid-template-columns: 22px 1fr; gap: 6px 10px; padding: 8px 12px; border-bottom: 1px solid #262626; }
.srt p span { color: var(--panel-dim); }
.srt p em { font-style: normal; color: var(--accent-bright); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.srt p strong { grid-column: 2; font: 400 12px/1.4 var(--font-display); color: #e6e6e6; }
.srt p.on { background: #1c2636; }
.hl { color: var(--key); }
/* shorts phones */
.phones { display: flex; gap: clamp(12px, 2vw, 24px); align-items: flex-end; justify-content: flex-end; }
.phone { position: relative; width: clamp(120px, 14vw, 188px); aspect-ratio: 9 / 16; border-radius: var(--r-panel); overflow: hidden; border: 1px solid #3a3a3a; background: var(--sky-1); flex: none; }
.phone > svg { position: absolute; height: 100%; width: 316%; max-width: none; left: 50%; transform: translateX(var(--crop, -50%)); }
.phone:nth-child(2) { width: clamp(140px, 17vw, 228px); }
.safe { position: absolute; inset: 7% 16% 22% 6%; border: 1px dashed rgb(79 163 245 / .9); border-radius: var(--r-clip); }
.safe-ui { position: absolute; right: 5%; bottom: 24%; display: grid; gap: 10px; }
.safe-ui i { width: 14px; height: 14px; border-radius: 50%; background: rgb(255 255 255 / .55); }
.safe-bar { position: absolute; left: 6%; right: 20%; bottom: 7%; height: 9%; border-radius: var(--r-clip); background: rgb(255 255 255 / .16); }
.ph-cap { position: absolute; left: 8%; right: 18%; top: 54%; font: 800 clamp(11px, 1.1vw, 15px)/1.15 var(--font-display); color: #fff; text-align: center; text-shadow: 0 2px 0 rgb(0 0 0 / .6); }
.ph-cap em { font-style: normal; color: var(--key); }
.phone-tag { position: absolute; top: 8px; left: 8px; padding: 3px 6px; border-radius: var(--r-clip); background: rgb(0 0 0 / .65); font: 500 10.5px/1.2 var(--font-mono); color: #e6e6e6; }
/* highlight finder score */
.score { margin-top: 28px; display: grid; gap: 8px; max-width: 420px; }
.score p { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; font: 400 var(--fs-label)/1.3 var(--font-mono); color: var(--muted); }
.score p i { height: 4px; border-radius: 2px; background: var(--accent); width: var(--v); }
.score p b { color: var(--text); font-weight: 500; }
/* colour wheels + scope (wheels are hue circles, toned down under a dark centre) */
.wheel { display: inline-block; width: 64px; height: 64px; border-radius: 50%; flex: none; position: relative; box-shadow: inset 0 0 0 1px #000;
  background: conic-gradient(#b8576a, #b3a25a, #4f9f73, #4f8fb8, #5b6fd6, #a05bc2, #b8576a); }
.wheel::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(#3a3a3a 0, #3a3a3a 18%, transparent 72%); }
.wheel::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #fff; left: 50%; top: 50%; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))); }
.wheels { display: flex; justify-content: space-around; gap: 10px; padding: 18px 14px 12px; }
.wheels figure { text-align: center; }
.wheels .wheel { width: 84px; height: 84px; }
.wheels figcaption { margin-top: 8px; }
.scope { margin: 0 14px 14px; height: 120px; background: #0c0c0c; border-radius: 4px; overflow: hidden; }
.scope svg { width: 100%; height: 100%; }
/* loudness */
.meter { display: flex; gap: 3px; align-items: flex-end; height: 70px; margin-left: auto; }
.meter i { width: 6px; height: var(--h); background: linear-gradient(to top, var(--clip-a) 0 70%, var(--key) 70% 88%, var(--meter-clip) 88%); border-radius: 1px; }
.loud { padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.loud .big { font: 500 34px/1 var(--font-mono); color: #e6e6e6; }
.loud .big small { display: block; margin-top: 6px; font-size: 12px; color: var(--panel-dim); }
.lufs { display: flex; gap: 4px; height: 150px; align-items: flex-end; justify-content: flex-end; }
.lufs i { width: 14px; height: var(--h); border-radius: 2px; background: linear-gradient(to top, var(--clip-a) 0 62%, var(--key) 62% 84%, var(--meter-clip) 84%); }
.target { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; border-top: 1px solid #2a2a2a; padding-top: 10px; }
.target b { color: var(--clip-a); font-weight: 500; }
/* voiceover */
.vo-mock .row { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #262626; }
.vo-mock .row span { color: var(--panel-dim); }
.vo-mock .row svg { height: 22px; width: 100%; color: var(--clip-a); }
.vo-mock .tx { padding: 12px; font: 400 14px/1.6 var(--font-display); color: #d8d8d8; }
.vo-mock .tx s { text-decoration: line-through; text-decoration-color: var(--danger); color: #8a8a8a; }
.vo-mock .tx mark { background: rgb(45 140 235 / .24); color: #e8f2ff; padding: 0 3px; border-radius: 2px; }
.vo-mock .local { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding: 10px 12px; background: var(--panel-bar); border-top: 1px solid #2a2a2a; }
.vo-mock .local b { color: var(--clip-a); font-weight: 500; }
/* workflow vignettes */
.vig { min-height: 132px; border-radius: var(--r-panel); background: var(--panel); border: 1px solid #333; padding: 10px; font: 400 var(--fs-micro)/1.3 var(--font-mono); color: #b5b5b5; position: relative; overflow: hidden; }
.v-bin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.v-bin i { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-clip); background: linear-gradient(160deg, var(--sky-2), var(--sky-3) 62%, var(--ridge-3)); }
.v-bin i:nth-child(2) { background: linear-gradient(160deg, #24342f, #7f9a8a 60%, #161c19); }
.v-bin i:nth-child(3) { background: #0d2f22; }
.v-bin i:nth-child(4) { background: linear-gradient(200deg, #343a4d, #a7adbd 70%, #1d2029); }
.v-bin i:nth-child(5) { background: linear-gradient(170deg, var(--ridge-1), var(--sky-4) 68%, var(--ridge-2)); }
.v-bin i:nth-child(6) { background: var(--panel-2); }
.v-bin + p { margin-top: 8px; color: var(--panel-dim); }
.v-cut .trk { position: relative; height: 26px; margin-top: 10px; }
.v-cut .trk b { position: absolute; top: 0; bottom: 0; border-radius: var(--r-clip); background: var(--clip-v); }
.v-cut .trk.a b { background: var(--clip-a); }
.v-cut .blade { position: absolute; top: 4px; bottom: 6px; left: 54%; width: 1px; background: var(--primary); }
.v-cut .blade::before { content: "C"; position: absolute; top: -2px; left: 6px; color: var(--primary); }
.v-cap p { padding: 5px 0; border-bottom: 1px solid #2a2a2a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-cap p span { color: var(--accent-bright); margin-right: 8px; }
.v-grade { display: flex; gap: 12px; align-items: center; }
.v-exp p { display: flex; justify-content: space-between; gap: 8px; padding: 5px 6px; border-radius: var(--r-clip); white-space: nowrap; }
.v-exp p.on { background: #22324a; color: #e6eefc; }
.v-exp p span { color: var(--panel-dim); }
.v-exp p.on span { color: var(--accent-bright); }
@media (max-width: 640px) {
  .tools { grid-template-columns: repeat(6, 1fr); }
  .tools span:nth-child(n+7) { display: none; }
  .multi { grid-template-columns: repeat(2, 1fr); }
  .cap-mock { grid-template-columns: 1fr; }
  .srt { border-left: 0; border-top: 1px solid var(--panel-line); }
  .phone { width: calc((100vw - 2 * var(--gutter) - 24px) * .3); }
  .phone:nth-child(2) { width: calc((100vw - 2 * var(--gutter) - 24px) * .4); }
  .phone-tag { display: none; }
}
@media (max-width: 380px) { .wheels .wheel { width: 64px; height: 64px; } .loud .big { font-size: 28px; } }

/* Screenshot crop: --x/--y = top-left of the visible region as a fraction of the image, --z = zoom, --ar = frame aspect */
.crop { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ar, 16 / 9); background: var(--panel); }
.crop img { position: absolute; left: 0; top: 0; width: calc(var(--z, 1) * 100%); max-width: none; transform: translate(calc(var(--x, 0) * -100%), calc(var(--y, 0) * -100%)); }

/* ---- Notification bell (2026-10-26): account top bar, admin top bar, public header when signed in ---- */
.bell { position: relative; display: inline-flex; }
.bell-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: var(--muted); cursor: pointer; transition: color var(--t-tap), border-color var(--t-tap); }
.bell-btn:hover, .bell-btn:focus-visible { color: var(--text); border-color: var(--line-strong); }
.bell-n { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 11px/18px var(--font-mono); text-align: center; }
.pop.bell-pop { width: min(380px, calc(100vw - 32px)); padding: 0; max-height: min(70vh, 560px); overflow-y: auto; }
.bell-h { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bell-h b { font-weight: 600; }
.bell-link { padding: 4px 0; border: 0; background: none; color: var(--accent-bright); font: 500 13px var(--font-body, inherit); cursor: pointer; }
.bell-link:hover { text-decoration: underline; }
.bell-empty { margin: 0; padding: 22px 14px; color: var(--muted); text-align: center; }
.bell-list { list-style: none; margin: 0; padding: 0; }
.bell-list li { display: flex; align-items: flex-start; border-bottom: 1px solid var(--line); }
.bell-list li.is-new { background: rgb(45 140 235 / .08); }
.bell-list li.is-new .bell-open button b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.bell-open { flex: 1; min-width: 0; }
.bell-open button { display: grid; gap: 3px; width: 100%; padding: 12px 6px 12px 14px; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.bell-open button:hover { background: rgb(255 255 255 / .03); }
.bell-open b { font-weight: 600; font-size: 14px; }
.bell-open span { color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.bell-open time { color: var(--muted); font: 400 var(--fs-micro)/1.4 var(--font-mono); }
.bell-x { flex: none; width: 36px; height: 36px; margin: 8px 6px 0 0; border: 0; border-radius: var(--r-ctl); background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.bell-x:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.bell-f { padding: 10px 14px; text-align: center; }
.nav-cta .bell { margin-right: 4px; }

/* ---- Quick buttons + back to top (2026-10-26, Settings > Quick buttons) ---- */
.quick-list { position: fixed; right: 0; top: 50%; z-index: 40; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-height: calc(100dvh - 148px); overflow-y: auto; scrollbar-width: none; }   /* 12 buttons on a short screen */
.quick-btn { display: inline-flex; align-items: center; height: 46px; min-width: 46px; padding: 0 13px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r-ctl) 0 0 var(--r-ctl); background: var(--surface-2); color: var(--text); text-decoration: none; font: 600 14px var(--font-body, inherit); box-shadow: 0 8px 24px -12px rgb(0 0 0 / .8); cursor: pointer; transition: background-color var(--t-tap), color var(--t-tap); }
.quick-btn svg { flex: none; color: var(--accent-bright); }
.quick-btn span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .25s var(--ease, ease), opacity .2s, margin .25s; }
.quick-btn:hover, .quick-btn:focus-visible { background: var(--accent); color: #fff; }
.quick-btn:hover svg, .quick-btn:focus-visible svg { color: #fff; }
.quick-btn:hover span, .quick-btn:focus-visible span { max-width: 220px; opacity: 1; margin-left: 10px; }
.quick-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.to-top { position: fixed; right: 16px; bottom: 20px; z-index: 40; border-right: 1px solid var(--line-strong); border-radius: var(--r-ctl); }
.to-top[hidden] { display: none; }
@media (max-width: 760px) { .quick-desk .quick-list { display: none; } .quick-list { top: auto; bottom: 76px; transform: none; } .to-top { right: 12px; bottom: 14px; } }
@media (max-width: 760px) {   /* bottom bar on phones (2026-11-01): icons only, labels stay for screen readers; 12 buttons scroll sideways */
  .quick-bottom { height: calc(54px + env(safe-area-inset-bottom, 0px)); }
  .quick-bottom .quick-list { left: 0; right: 0; bottom: 0; flex-direction: row; align-items: stretch; gap: 0; max-height: none; overflow: auto hidden; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .8); }
  .quick-bottom .quick-list .quick-btn { flex: 1 0 52px; justify-content: center; height: 54px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text); box-shadow: none; }
  .quick-bottom .quick-list .quick-btn svg { color: var(--accent-bright); }
  .quick-bottom .quick-list .quick-btn span { max-width: 0; margin: 0; opacity: 0; }
  .quick-bottom .quick-list .quick-btn:active { background: var(--accent); }
  .quick-bottom .quick-list .quick-btn:active svg { color: #fff; }
  .quick-bottom .quick-list .quick-btn:focus-visible { outline-offset: -2px; }
  .quick-bottom .to-top { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .quick-btn span { transition: none; } }
@media print { .quick-list, .to-top, .quick-bottom { display: none !important; } }

/* ---- header sub-menus + contact pop-up (2026-10-26) ---- */
.has-sub { position: relative; display: flex; align-items: center; gap: 2px; }
.sub-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.sub-btn:hover, .has-sub.is-open .sub-btn { color: var(--text); }
.sub-btn svg { transition: transform var(--t-tap); }
.has-sub.is-open .sub-btn svg { transform: rotate(180deg); }
.nav-sub { position: absolute; top: 100%; left: -14px; z-index: 5; min-width: 220px; margin: 0; padding: 14px 0 0; list-style: none; display: none; }
.nav-sub::before { content: ""; position: absolute; inset: 10px 0 0; z-index: -1; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-panel); box-shadow: 0 18px 40px rgb(0 0 0 / .4); }
.nav-sub li:first-child { padding-top: 6px; } .nav-sub li:last-child { padding-bottom: 6px; }
.nav-sub a { display: block; padding: 9px 16px; white-space: nowrap; }
.nav-sub a:hover, .nav-sub a:focus-visible { background: var(--surface-2); }
.has-sub:is(:hover, :focus-within, .is-open):not(.is-shut) .nav-sub { display: block; }
.sheet-sub { list-style: none; margin: 0 0 6px; padding: 4px 0 8px 14px; border-bottom: 1px solid var(--line); }
.sheet-links .sheet-sub a { display: block; padding: 9px 0; border: 0; font: 500 16px/1.3 var(--font-display); color: var(--muted); text-decoration: none; }
.sheet-links .sheet-sub a[aria-current] { padding-left: 12px; color: var(--text); }
.sheet-sub a:hover { color: var(--text); }
.contact-modal { padding: 0; }
.contact-frame { display: block; width: 100%; height: min(680px, calc(100dvh - 140px)); border: 0; background: var(--surface); }
body.embed { background: var(--surface); min-height: 0; }
.embed-form { padding: 20px; }
.embed-form > .muted { margin-bottom: 16px; }
.embed-form .ticket-form { padding: 0; }
.solo.hero-motif::after { display: none; } /* auth pages: no horizon stripes behind or under the form */

/* bell: a new notification arrived while the page was open (site.js) */
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
.bell-btn.is-new svg { animation: bell-ring .9s ease-in-out 2; transform-origin: 50% 10%; }
@media (prefers-reduced-motion: reduce) { .bell-btn.is-new svg { animation: none; } }

/* site search (2026-10-30): a compact button in the header opens the search window on every page (partials/site-search) */
.nav-search { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-width: 38px; padding: 0 8px 0 11px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl);
  background: none; color: var(--muted); font: 500 14px/1 var(--font-display); white-space: nowrap; cursor: pointer; transition: color var(--t-tap), border-color var(--t-tap); }
.nav-search:hover, .nav-search:focus-visible { color: var(--text); border-color: var(--text); }
.nav-search svg { flex: none; }
.nav-search kbd { font: 500 11px/1 var(--font-mono); padding: 3px 5px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); }
.nav-search-m { display: none; }
@media (max-width: 1600px) { .nav-search:not(.nav-search-m) { padding: 0; } .nav-search:not(.nav-search-m) :is(span, kbd) { display: none; } }
@media (max-width: 1320px) { .nav-search-m { display: inline-flex; width: 44px; height: 44px; padding: 0; margin-left: auto; } .nav-search-m + .menu-btn { margin-left: 0; } }
.ss { width: min(680px, calc(100% - 32px)); margin-top: min(12vh, 120px); padding: 0; overflow: hidden; max-height: calc(100dvh - 2 * min(12vh, 120px)); }
.ss[open] { display: flex; flex-direction: column; }
.ss::backdrop { background: rgb(5 8 15 / .6); }
.ss-form { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid var(--line); }
.ss-form .search { flex: 1; }
.ss-form .input { border: 0; background: none; box-shadow: none; min-height: 44px; font-size: 17px; }
.ss-form .input:focus { outline: none; }
.ss-form:focus-within { box-shadow: inset 0 -2px 0 var(--accent); }
.ss-x { flex: none; display: inline-grid; place-items: center; min-width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.ss-x kbd { font: 500 11px/1 var(--font-mono); padding: 4px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }
.ss-x:hover kbd, .ss-x:focus-visible kbd { color: var(--text); border-color: var(--text); }
.ss-body { overflow: auto; overscroll-behavior: contain; padding: 8px; }
.ss-list { list-style: none; margin: 0; padding: 0; }
.ss-list a { display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--r-ctl); text-decoration: none; color: var(--text); }
.ss-list [aria-selected="true"] a { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.ss-list b { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ss-sec { font-size: 12px; color: var(--muted); }
.ss-snip { font-size: 14px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ss mark { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.ss-none { margin: 0; padding: 14px 12px 4px; color: var(--muted); font-size: 15px; }
.ss-none b { color: var(--text); font-weight: 600; }
.ss-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 8px 12px; }
.ss-hint span { margin-right: 4px; font-size: 13px; color: var(--muted); }
.ss-hint a { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); font-size: 14px; text-decoration: none; color: var(--text); }
.ss-hint a:hover, .ss-hint a:focus-visible { border-color: var(--text); }
.ss-hint[hidden], .ss-none[hidden], .ss-all[hidden] { display: none; }
.ss .sofia-box { margin: 10px 4px 4px; max-width: none; }
.ss-all { display: block; margin: 6px 4px 2px; padding: 10px 8px; border-top: 1px solid var(--line); font-size: 14px; color: var(--accent-bright); text-decoration: none; }
.ss-all:hover, .ss-all:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .ss { width: calc(100% - 16px); margin-top: 8px; max-height: calc(100dvh - 16px); } }

/* status tabs above an admin list (2026-10-31, admin/_view-tabs) */
.view-tabs { margin-bottom: 14px; }
a.tab { display: inline-flex; align-items: center; text-decoration: none; }
.tab[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.view-note { margin: -6px 0 12px; font-size: 13px; color: var(--muted); }

/* a folded group inside an admin page (2026-10-31): long lists stay one click away instead of one long scroll */
.fold { border-top: 1px solid var(--line); }
.fold:last-of-type { border-bottom: 1px solid var(--line); }
.fold[hidden] { display: none; }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 2px; cursor: pointer; font-weight: 600; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; flex: none; font: 400 20px/1 var(--font-mono); color: var(--muted); }
.fold[open] > summary::after { content: "–"; }
.fold > summary small { margin-left: auto; font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--muted); }
.fold > div, .fold > ul, .fold > ol { margin: 0 0 14px; }
.act-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; list-style: none; }
.act-row:first-child { border-top: 0; }
.act-row .when { font: 500 var(--fs-meta)/1.5 var(--font-mono); color: var(--muted); }
.act-row .where { grid-column: 2 / -1; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.act-row .kind { font-size: 12px; color: var(--muted); white-space: nowrap; }
.act-list { margin: 0; padding: 0; }
@media (max-width: 640px) { .act-row { grid-template-columns: minmax(0, 1fr) auto; } .act-row .when { grid-column: 1 / -1; } .act-row .where { grid-column: 1 / -1; } }

/* ---- app.css ---- */
/* VLPremier Pro · production additions on top of the approved prototype CSS (tokens/base/components are untouched).
   Only NEW selectors live here: form honeypot + result line, sign-in / installer screens, admin extras. */

/* Public forms */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 14px; line-height: 1.45; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--danger); }
.form-msg.form-blocked { flex-basis: 100%; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); border-radius: var(--r-ctl); background: color-mix(in srgb, var(--danger) 8%, transparent); }
form[data-form-blocked] button[type="submit"] { opacity: .45; filter: grayscale(1); cursor: not-allowed; pointer-events: none; box-shadow: none; }

/* Sign-in and installer screens: one centred column */
.solo { min-height: 100dvh; display: grid; place-items: start center; padding: clamp(40px, 8vh, 96px) var(--gutter) 56px; }
.solo-in { width: min(100%, 460px); }
.solo-in.wide { width: min(100%, 720px); }
.solo .brand { margin-bottom: 28px; }
.solo h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.solo .say { margin-top: 10px; color: var(--muted); }
.solo .card { margin-top: 24px; }
.solo form > * + * { margin-top: 20px; }
.solo .field-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.alert { padding: 12px 14px; border: 1px solid var(--line); border-left: 2px solid var(--danger); border-radius: 0 var(--r-ctl) var(--r-ctl) 0; background: var(--surface); color: var(--text); font-size: 14px; }
.alert.ok { border-left-color: var(--ok); }
.alert.warn { border-left-color: var(--warn); }
.steps { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; counter-reset: s; }
.steps li { counter-increment: s; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); font: 500 var(--fs-meta)/1 var(--font-mono); color: var(--muted); }
.steps li::before { content: counter(s); }
.steps li[aria-current] { border-color: var(--accent); color: var(--text); }
.steps li.done { color: var(--ok); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.checks li:first-child { border-top: 0; }
.checks small { grid-column: 2; color: var(--muted); }
progress.bar { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
progress.bar::-webkit-progress-bar { background: var(--surface-2); }
progress.bar::-webkit-progress-value { background: var(--accent); }
progress.bar::-moz-progress-bar { background: var(--accent); }

/* Admin extras */
.pop form { margin: 0; }
.pop .pop-btn { display: flex; align-items: center; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: var(--r-ctl); background: none; color: var(--text); font: 500 14px var(--font-display); text-align: left; cursor: pointer; }
.pop .pop-btn:hover { background: var(--surface); }
.adm-sec + .adm-sec { margin-top: 28px; }
.logs { margin: 0; padding: 14px 16px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--bg); font: 400 12px/1.6 var(--font-mono); color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.cell-wrap { overflow-wrap: break-word; } /* 2026-10-25: was anywhere, which let a cell shrink to one letter per line */
.table-cards .tbl td.cell-wrap { overflow-wrap: anywhere; }
.qr { display: inline-block; padding: 8px; border-radius: var(--r-panel); background: #fff; line-height: 0; }
.qr svg { width: 200px; height: 200px; }
.mono { font-family: var(--font-mono); }
.key { font: 500 15px/1.6 var(--font-mono); letter-spacing: .06em; overflow-wrap: anywhere; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.codes li { padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: var(--r-ctl); font: 500 15px/1 var(--font-mono); letter-spacing: .06em; text-align: center; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters .select, .filters .input[type="date"] { width: auto; min-height: 48px; font-size: 14px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.6; }
fieldset.plain { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset.plain[disabled] { opacity: .7; }
.form-stack > * + * { margin-top: 20px; }
@media (max-width: 719px) { .filters > * { flex: 1 1 140px; } }

/* Short message pages: account placeholder, 404 and other errors */
.msg-page { padding-top: calc(var(--nav-h) + clamp(64px, 10vw, 120px)); padding-bottom: var(--section-y); }
.msg-page .lede { margin-top: 24px; }
.msg-page .btn-row { margin-top: 32px; }
.msg-page .code { display: block; margin-bottom: 20px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .08em; color: var(--muted); }

/* ---------------------------------------------------------------- Phase 004 CMS: public output (new selectors only) */
.cms-columns { display: grid; gap: 24px; margin-block: 24px; }
@media (min-width: 720px) { .cms-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cms-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cms-column > * + * { margin-top: 12px; }
.cms-embed { position: relative; aspect-ratio: 16 / 9; margin-block: 24px; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.cms-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cms-video video { width: 100%; height: auto; display: block; border-radius: var(--r-panel); }
.cms-body { padding-bottom: var(--section-y); }
.cms-body > * + * { margin-top: 16px; }
.cms-body :is(h2, h3) { margin-top: 36px; }
.cms-preview-flag { position: fixed; left: 12px; bottom: 12px; z-index: var(--z-toast); padding: 6px 10px; border-radius: var(--r-ctl); background: var(--warn); color: #111; font: 600 var(--fs-meta)/1 var(--font-mono); letter-spacing: .04em; pointer-events: none; }

/* ---------------------------------------------------------------- Phase 004 CMS: admin */
.btn-xs { min-height: 30px; padding: 0 8px; font-size: 13px; }
.row-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ph-meta .chip + .chip { margin-left: 4px; }
.ed-layout { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .ed-layout { grid-template-columns: 220px minmax(0, 1fr) 280px; } }
@media (min-width: 760px) and (max-width: 1099px) { .ed-layout { grid-template-columns: 200px minmax(0, 1fr); } .ed-rail { grid-column: 1 / -1; } }
.ed-menu { position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100dvh - var(--top-h) - 32px); overflow-y: auto; }
.ed-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ed-menu [role="tab"] { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: var(--muted); font: 500 14px/1.3 var(--font-display); text-align: left; cursor: pointer; }
.ed-menu [role="tab"]:hover { color: var(--text); background: var(--surface); }
.ed-menu [role="tab"][aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }
.pill { flex: none; width: 9px; height: 9px; border-radius: 50%; font-size: 0; background: var(--ok); }
.pill.warn { background: var(--warn); }
.pill.danger { background: var(--danger); }
@media (max-width: 759px) {
  .ed-menu { position: static; max-height: none; }
  .ed-menu ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .ed-menu li { flex: 1 1 auto; }
  .ed-menu [role="tab"] { border-color: var(--line); }
}
.ed-panel { min-width: 0; }
.ed-panel > h2 { font-size: 20px; }
.ed-panel > .say { margin: 6px 0 18px; color: var(--muted); max-width: 70ch; }
.ed-panel > h2:focus { outline: none; }
.ed-steps { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.ed-rail { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 16px; }
@media (max-width: 1099px) { .ed-rail { position: static; } }
.ed-rail-h { font-size: 16px; margin-bottom: 12px; }
.ed-rail .field { margin-bottom: 12px; }
.ed-rail-btns { display: grid; gap: 8px; }
.ed-rail .card > p { margin-top: 10px; }
.ed-prev-card .btn-row { margin: 10px 0; }
.ed-default-btn { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ed-h3 { margin: 28px 0 12px; font-size: 16px; }
.ed-sched { margin: 20px 0; }
.seo-checks { margin: 20px 0; }  /* blog editor SEO checklist (2026-10-26) */
.seo-checks h3 { font-size: 16px; margin-bottom: 4px; }
.seo-checklist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.seo-checklist li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: var(--fs-sm); }
.seo-checklist .chip { justify-self: start; }
.ed-sched h3 { font-size: 16px; margin-bottom: 4px; }
.ed-sched .row, .md-url .row, .pk-url .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.ed-sched .input, .md-url .input, .pk-url .input { flex: 1 1 220px; width: auto; }
.fld { padding: 16px 0; border-top: 1px solid var(--line); }
.fld:first-of-type { border-top: 0; }
.fld-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.fld-h label { font-size: 14px; font-weight: 600; }
.fld-key { font: 400 var(--fs-micro)/1 var(--font-mono); color: var(--muted); }
.fld-h .btn { margin-left: auto; }
.fld.is-error :is(.input, .textarea, .wys-area) { border-color: var(--danger); }
.wys { display: grid; }
.wys-bar { position: sticky; top: var(--top-h); z-index: 2; display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--line-strong); border-bottom: 0; border-radius: var(--r-ctl) var(--r-ctl) 0 0; background: var(--surface-2); }
.wys-b { min-width: 32px; height: 30px; padding: 0 7px; border: 0; border-radius: 4px; background: none; color: var(--text); font: 500 13px/1 var(--font-display); cursor: pointer; }
.wys-b:hover { background: var(--surface); }
.wys-b[aria-pressed="true"] { background: var(--accent); color: var(--primary-ink, #fff); }
.wys-b:disabled { opacity: .35; cursor: not-allowed; }
.wys-area { min-height: 120px; max-height: 70vh; overflow: auto; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 0 0 var(--r-ctl) var(--r-ctl); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }
.wys-area.is-inline { min-height: 46px; }
.wys-area:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(45 140 235 / .35); }
.wys-area > * + * { margin-top: 10px; }
.wys-area .ln { display: block; }
.wys-area img { max-width: 100%; height: auto; }
.wys-area .cms-columns { outline: 1px dashed var(--line-strong); padding: 8px; }
.wys-area .cms-column { outline: 1px dotted var(--line); padding: 6px; }
.wys .textarea { border-radius: 0 0 var(--r-ctl) var(--r-ctl); }
.mf { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 14px; align-items: start; }
.mf-prev { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); overflow: hidden; }
.mf-prev img { width: 100%; height: 100%; object-fit: cover; }
.mf-body { display: grid; gap: 10px; min-width: 0; }
.mf-src { font-size: var(--fs-meta); color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 519px) { .mf { grid-template-columns: minmax(0, 1fr); } .mf-prev { max-width: 220px; } }
.lf-rows { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 10px; }
.lf-row { padding: 12px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.lf-ctl { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.lf-n { margin-right: auto; font-size: var(--fs-meta); color: var(--muted); }
.lf-fields { display: grid; gap: 10px; }
.serp { margin: 4px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); max-width: 640px; }
.serp b { display: block; color: #8AB4F8; font-weight: 500; font-size: 18px; }
.serp span { display: block; margin: 2px 0 4px; font-size: 12px; color: var(--ok); }
.serp p { font-size: 14px; color: var(--muted); }
[data-count-for].is-over { color: var(--warn); }
.modal.ed-preview { width: min(1280px, calc(100% - 32px)); }
.ed-preview .modal-h { gap: 12px; }
.ed-preview .seg { margin-left: auto; }
.ed-preview .seg button { min-height: 34px; }
.pv-stage { position: relative; height: min(72vh, 820px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); }
.pv-stage iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: var(--bg); }
.pv-stage[data-size="phone"] iframe { left: 50%; transform-origin: 50% 0; translate: -50% 0; }
.diff { display: grid; gap: 0; }
.diff-row { padding: 12px 0; border-top: 1px solid var(--line); }
.diff-k { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.diff-v { font-size: 14px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.diff del { background: rgb(255 107 107 / .18); color: var(--text); text-decoration: line-through; }
.diff ins { background: rgb(41 214 152 / .18); color: var(--text); text-decoration: none; }
.nv-list, .nv-cols { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.nv-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) minmax(160px, 1.4fr) minmax(130px, .8fr) auto auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--bg); }
.nv-row .field { gap: 0; }
.nv-row > .nv-subs { grid-column: 1 / -1; padding: 6px 0 2px 28px; display: grid; gap: 6px; }
.nv-subs .nv-list { margin: 0; }
.nv-subs > p { margin: 0; font-size: 13px; }
.nv-row .select, .nv-col .select { min-height: 44px; font-size: 14px; }
.nv-tab { min-height: 0; padding-top: 0; font-size: 13px; white-space: nowrap; }
.nv-grip { cursor: grab; color: var(--muted); padding: 0 4px; user-select: none; font-size: 18px; }
.nv-acts { display: flex; gap: 4px; }
.nv-row.is-drag, .nv-col.is-drag { opacity: .5; }
.nv-col-h { display: grid; grid-template-columns: auto minmax(0, 1fr) 140px auto; gap: 10px; align-items: end; }
@media (max-width: 899px) { .nv-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); } .nv-row .nv-tab, .nv-row .nv-acts { grid-column: 2 / -1; } .nv-col-h { grid-template-columns: auto minmax(0, 1fr); } }
.rd-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; margin: 16px 0 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.rd-form .btn-row { grid-column: 1 / -1; }
.sm-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; overflow-wrap: anywhere; }
.insp { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-top: 16px; }
.insp-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.insp-list .danger { color: var(--danger); }
.dz { padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-panel); background: var(--bg); text-align: center; color: var(--muted); transition: border-color var(--t-tap), background-color var(--t-tap); }
.dz.is-over { border-color: var(--accent); background: rgb(45 140 235 / .08); }
.dz b { color: var(--text); }
.dz-sm { padding: 12px; margin: 12px 0; }
.dz-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; text-align: left; font-size: 13px; }
.dz-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--surface); }
.dz-list li span { overflow-wrap: anywhere; }
.dz-list li.ok b { color: var(--ok); font-weight: 500; }
.dz-list li.err b { color: var(--danger); font-weight: 500; }
.dz-list progress { width: 120px; }
.md-add { display: grid; gap: 16px; margin-bottom: 20px; }
@media (min-width: 960px) { .md-add { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; } }
.md-force { min-height: 0; padding-top: 0; font-size: 13px; }
.md-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.md-card { position: relative; display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); }
.md-card:has(:checked) { border-color: var(--accent); }
.md-ck { position: absolute; top: 12px; left: 12px; z-index: 1; }
.md-ck input { width: 20px; height: 20px; accent-color: var(--accent); }
.md-th { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-ctl); background: var(--bg); overflow: hidden; }
.md-th img { width: 100%; height: 100%; object-fit: cover; }
.md-th.sm { width: 56px; flex: none; }
.md-ico { font-size: 26px; color: var(--muted); }
.md-t { font-size: 14px; font-weight: 600; }
.md-t a { color: inherit; text-decoration: none; }
.md-m { font-size: var(--fs-micro); color: var(--muted); }
.md-warn { color: var(--warn); }
.md-row { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.fp { position: relative; cursor: crosshair; line-height: 0; }
.fp img { width: 100%; height: auto; border-radius: var(--r-ctl); }
.fp-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent), 0 2px 8px rgb(0 0 0 / .5); pointer-events: none; }
.pk .modal-b { max-height: 72vh; overflow: auto; }
.pk-top { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-top .search { flex: 3 1 240px; }
.pk-top .select { flex: 1 1 140px; width: auto; min-height: 48px; }
.pk-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); grid-auto-rows: max-content; }
.pk-tile { display: grid; gap: 4px; width: 100%; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.pk-tile:hover, .pk-tile:focus-visible { border-color: var(--accent); }
.pk-t { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.pk-m { font-size: var(--fs-micro); color: var(--muted); }
.pk-more { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 12px; }
[aria-busy="true"] { opacity: .6; transition: opacity .2s; }
