@layer fonts, tokens, base, components, site, app, account, motion, admin;
/* fonts.css */
/* Generated by scripts/design/fonts.mjs from @fontsource (OFL-1.1). Do not edit. */
@layer fonts {
  @font-face {
    font-family: 'Space Grotesk Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url(/assets/fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2-variations');
    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: 'Space Grotesk Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url(/assets/fonts/space-grotesk-latin-wght-normal.woff2) format('woff2-variations');
    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: 'Geist Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/assets/fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
    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: 'Geist Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/assets/fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
    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: 'Geist Mono Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/assets/fonts/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
    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: 'Geist Mono Variable';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url(/assets/fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
    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;
  }
}

/* tokens.css */
/* Fundup AI design tokens (03-DESIGN.md "Design system handoff" §1-§4). The ONLY file with raw colour and length
   values: everything else uses var(--*). scripts/design/contrast.mjs checks every text pair in both themes.
   Theme: <html data-theme="light|dark">, set before paint from the saved choice or the system preference. */
@layer tokens {
  :root {
    color-scheme: light;

    /* §1 colour: surfaces */
    --bg: #F5F5F8;
    --sunken: #EDEEF3;
    --surface: #FFFFFF;
    --raised: #F3F4F8;
    /* Tech stack icon tile: brand icons are drawn for a white ground, so it stays light in both themes. */
    --tech-tile: #FFFFFF;
    --overlay: #FFFFFF;
    --line: #E2E3EA;
    --line2: #CCD0DA;
    /* text */
    --text: #121521;
    --text2: #3A4054;
    --muted: #5C6277;
    --on-ink: #FFFFFF;
    --live-on-ink: #4FDCA0; /* the "N new leads" live dot on an ink pill */
    --favicon-badge: #4FDCA0; /* new-leads dot on the tab icon; the icon's square is ink in both themes, so no override */
    --on-btn: #FFFFFF;
    /* brand */
    --coral: #F2545B;
    --coraltx: #C42E42;
    --btn: #D2364A;
    --btnhov: #B92A3D;
    --danger: #B42318;
    /* signals */
    --fund: #875900; /* gold: capital, clear of the green that says ok (D-706) */
    --fund-dot: #B98208;
    --hire: #4841CF;
    --hire-dot: #625EF0;
    --lead: #A8296F;
    --lead-dot: #D6418F;
    --acq: #1C62A8; /* sky: violet sat 8 dE from hiring indigo (D-706) */
    --acq-dot: #3E8FD8;
    --hl: #8F5300;
    --hl-bg: #FFEFCF;
    /* ICP fit */
    --fit-top: #0A7A4F;
    --fit-strong: #24783A;
    --scale-low: #C9CDD8; --scale-mod: #EFA43A; --scale-strong: #6CC04A; --scale-top: #14A36B; /* ICP slider gradient: brighter than the fit text colours */
    --fit-mod: #9A5A00;
    --fit-low: #5C6277;
    /* triage */
    --int: #C42E42;
    --later: #3A4054; /* neutral: amber would read as funding gold (D-706) */
    --done: #0A7A4F;
    --ok: #0A7A4F; /* green means ok, done, connected; never a signal (D-706) */
    --ok-dot: #14A36B;
    --skip: #5C6277;
    /* spend intent */
    --sp-rd: #1F67B8;
    --sp-prod: #08716F;
    --sp-infra: #4C5D80;
    --sp-gtm: #B0480A;
    --sp-hire: #4841CF;
    --sp-exp: #0A7A4F;
    --sp-ops: #856100;
    --sp-ma: #7637C9;
    --sp-part: #A8296F;

    /* Tints: the colour mixed into the surface at 12-16% (§1). */
    --tint: 14%;

    /* §4 elevation */
    --shadow-card: 0 1px 2px rgb(18 21 33 / 0.05), 0 1px 1px rgb(18 21 33 / 0.03);
    --shadow-pop: 0 8px 24px rgb(18 21 33 / 0.12), 0 2px 6px rgb(18 21 33 / 0.06);
    /* The "N new leads" pill: the brand CTA red (--btn), a small shadow in the same hue, no grey halo. */
    --shadow-pill-new: 0 2px 8px rgb(210 54 74 / 0.24), 0 1px 2px rgb(210 54 74 / 0.18);
    --shadow-pill-new-hover: 0 4px 12px rgb(210 54 74 / 0.30), 0 1px 2px rgb(210 54 74 / 0.20);
    --shadow-cta: 0 8px 22px rgb(210 54 74 / 0.35);
    --shadow-cta-hover: 0 12px 28px rgb(210 54 74 / 0.45);
    /* Upgrade band (feed, ICP, Refine, Settings): a tint of the brand CTA red with the --btn button, so an offer reads
       as one, never a grey box. No indigo in the palette. */
    --up-bg: #FDECEE;
    --up-tx: #4A0F1A;
    --up-tx2: #7E2533;
    --up-ico: #D2364A;
    --up-btn: #D2364A;
    --up-btnhov: #B92A3D;
    --up-on: #FFFFFF;
    --shadow-raise: 0 1px 2px rgb(18 21 33 / 0.05), 0 1px 1px rgb(18 21 33 / 0.03); /* cards; deeper in the app shell */
    --shadow-frame: 0 24px 48px rgb(18 21 33 / 0.10), 0 4px 12px rgb(18 21 33 / 0.05);
    --card-highlight: inset 0 0 0 0 transparent;
    --scrim: rgb(14 18 32 / 0.40);

    /* §2 typography */
    --font-display: "Space Grotesk Variable", "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    --font-ui: "Geist Variable", "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-mono: "Geist Mono Variable", "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
    /* app scale */
    --fs-name-detail: 24px;
    --fs-name-standalone: 26px;
    --fs-name-card: 17px;
    --fs-page-title: 22px;
    --fs-figure: 30px;
    --fs-figure-card: 24px;
    --fs-section: 15px;
    --fs-prose: 15px;
    --fs-body: 14px;
    --fs-secondary: 13.5px;
    --fs-meta: 12.5px;
    --fs-chip: 12px;
    --fs-tab: 13.5px;
    --fs-button: 13px;
    --fs-kbd: 10.5px;
    /* marketing scale (desktop) */
    --fs-hero: 84px;
    --fs-statement: 132px;
    --fs-statement-2: 96px;
    --fs-h2: 60px;
    --fs-h3: 23px;
    --fs-sub: 20px;
    --fs-mkt-body: 16px;
    --fs-eyebrow: 14px;
    --fs-display-figure: 64px;
    --fs-price: 48px;
    --lh-tight: 0.98;
    --lh-h2: 1.02;
    --lh-title: 1.2;
    --lh-section: 1.3;
    --lh-body: 1.45;
    --lh-sub: 1.5;
    --lh-prose: 1.55;
    --tracking-hero: -0.045em;
    --tracking-h2: -0.04em;

    /* §3 spacing: 4px base */
    --s-1: 4px;
    --s-2: 8px;
    --s-3: 12px;
    --s-4: 16px;
    --s-5: 20px;
    --s-6: 24px;
    --s-8: 32px;
    --s-10: 40px;
    --s-12: 48px;
    --s-16: 64px;
    --s-18: 72px;
    --s-24: 96px;
    --s-28: 112px;
    --s-34: 136px;
    --card-pad: 20px;
    --control-h: 32px;
    --control-h-sm: 28px;
    --tabbar-h: 40px;
    --tabbar-h-feed: 44px;
    --touch-min: 44px;
    --container: 1232px;
    --gutter: 40px;
    --gutter-mobile: 18px;
    --eyebrow-rule-w: 28px;
    --eyebrow-rule-h: 3px;
    --dot: 6px;
    --logo-box: 32px;
    --flag-w: 18px;
    --flag-h: 13px;
    --drawer-w: 440px;
    --dialog-w: 480px;
    /* app layout (Phase 4) */
    --sidebar-w: 232px;
    --split-list-w: 380px;
    --feed-w: 760px;
    --rail-w: 300px;
    --settings-nav-w: 232px;
    --palette-w: 640px;
    --detail-max: 1120px;
    --auth-w: 420px;
    --pop-w: 300px;
    --shot-w: 280px;
    --dialog-wide-w: 760px;
    --logo-sm: 28px;
    --logo-lg: 48px;
    --row-desc-w: 320px;
    --textarea-h: 120px;
    --dept-w: 220px;

    /* §4 radii */
    --r-chip: 7px;
    --r-btn: 8px;
    --r-btn-mkt: 11px;
    --r-input: 9px;
    --r-inset: 11px;
    --r-card: 16px;
    --r-mkt-card: 19px;
    --r-frame: 16px;
    --r-round: 50%;
    --r-pill: 999px;

    /* lines */
    --hair: 1px;
    --rule: 2px;
    --focus-w: 2px;
    --focus-offset: 2px;

    /* motion (docs/motion.md is the rulebook; src/styles/motion.css and src/app/lib/motion.ts use only these) */
    --dur-fast: 120ms;
    --dur: 180ms;
    --ease: cubic-bezier(0.2, 0, 0, 1);
    /* A control answers (colour, outline, check), something arrives, something goes (always quicker than it came). */
    --dur-answer: 120ms;
    --dur-arrive: 180ms;
    /* Connect chat illustration (D-635): one beat between its parts, the question typed in over --dur-type. */
    --cx-beat: 420ms; --dur-type: 900ms;
    --dur-leave: 160ms;
    /* A screen change: the old main area goes, the new one comes up after a beat. */
    --dur-screen-out: 100ms;
    --dur-screen-in: 220ms;
    --delay-screen: 40ms;
    /* The company view grows out of the card that opened it and shrinks back into it (legacy "grow into detail"). */
    --dur-grow: 320ms;
    --dur-shrink: 220ms;
    /* Expanding the company view (F) and stepping to the next company (J/K). */
    --dur-morph: 260ms;
    --dur-swap: 220ms;
    /* The sidebar folds to its icon rail and back (the person's toggle, on any screen). The edge moves over
       --dur-fold; labels leave at once and come back only after --delay-unfold, once there is room for them; what
       only the rail shows (its separators) comes in near the end of the fold. */
    --dur-fold: 280ms;
    --delay-unfold: 100ms;
    --delay-fold-mark: 160ms;
    /* List to split view and back: every card becomes its row (and back), the column, title and tabs move to their
       new place, all as one move. Long, soft landing (no overshoot). The old content inside a frame
       is gone before the new one comes, so two texts never stand on each other; logo, name and ring carry the eye. */
    --dur-layout: 380ms;
    --ease-layout: cubic-bezier(0.32, 0.72, 0, 1);
    --dur-layout-out: 90ms;
    --dur-layout-in: 200ms;
    --delay-layout-in: 110ms;
    /* A triaged card slides off with its status tint, then the list closes up (legacy feed exit, 340ms). */
    --dur-exit: 340ms;
    /* A part that opens and closes in the layout (accordion, collapsing header row). */
    --dur-collapse: 240ms;
    /* A figure or a bar moving to its new value (quota bar, ICP ring). */
    --dur-figure: 450ms;
    /* Waiting: what is on screen stays while the next value loads and dims after --delay-stale; the skeleton takes
       over only when loading is slower than --delay-skeleton (a fast answer never shows one, nothing flickers). */
    --delay-skeleton: 400ms;
    --delay-stale: 150ms;
    --stale-opacity: 0.55;
    --dur-pulse: 1600ms;
    --dur-sweep: 1300ms; /* AI search reading bar */
    --dur-wave: 1100ms; /* infinite-scroll signal dots */
    /* Skeleton fill: a tint of the text colour, so it reads on every surface (card, page, sunken, inset) in both themes. */
    --sk-fill: color-mix(in srgb, var(--text) 8%, transparent);
    --ease-arrive: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ease-leave: cubic-bezier(0.4, 0, 1, 1);
    --ease-move: cubic-bezier(0.4, 0, 0.2, 1);
    /* Distances: the bigger what moves, the further it travels. */
    --mv-pop: 4px;
    --mv-toast: 8px;
    --mv-swap: 8px;
    --mv-drawer: 12px;
    --mv-sheet: 24px;
    --mv-exit: 28px;
    --mv-exit-up: 12px;
    --mv-press: 1px;
    --mv-ring: 6px;
    /* Pull to refresh (touch): how far the chip follows a pull before release refreshes, how far it can go, and where
       it rests while the list reloads. The finger's travel is halved, so arming takes about twice --mv-pull-arm. */
    --mv-pull-arm: 64px;
    --mv-pull-max: 96px;
    --mv-pull-rest: 52px;
    --scale-dialog: 0.98;
    --scale-grow: 0.94;
    --scale-exit: 0.97;
    /* The tint a triaged card flashes as it leaves, mixed into its surface. */
    --tint-exit: 16%;
    /* The feed's title row, collapsed while scrolling down. */
    --feed-title-h: 64px;

    /* layers */
    --z-sticky: 10;
    --z-side: 20;
    --z-drawer: 40;
    --z-dialog: 50;
    --z-toast: 60;

    /* App fidelity pass (R5/R6/P6 boards, DECISIONS D-540). Additive: layout sizes of the logged-in app and the
       small step values its dense type scale uses. Named by value where the boards use one-off measures. */
    --app-side-w: 256px;
    /* The icon rail: side padding + item padding on both sides of a 16px icon (2 x (14 + 12) + 16), so every icon,
       the avatar and the logo's f stand on the same vertical line folded or not; only the edge moves. */
    --app-rail-w: 68px;
    --app-feed-w: 700px;
    --app-refine-w: 320px;
    --tech-item-w: 196px;
    --app-filter-w: 300px;
    --app-split-w: 392px;
    --app-detail-w: 1040px;
    --app-head-h: 56px;
    --app-nav-h: 38px;
    --app-ob-form: 560px;
    --app-ob-preview: 420px;
    --app-ob-top: 72px;
    --app-dept-w: 270px;
    --app-tech-k: 196px;
    --app-cell-xl: 210px; /* Discover table: the signal column */
    --app-search-h: 48px; /* Discover AI search */ /* tech stack: the function label column */
    --app-modal-w: 760px;
    /* Upgrade screen (D-647): the hero title, the offer box beside it and the 30-day chart. */
    --fs-upgrade-title: 34px;
    --app-offer-w: 340px;
    /* Phone landscape (D-660): the one bar of the sideways view, and the company list beside the detail. */
    --land-bar-h: 44px;
    --land-list-w: clamp(240px, 36vw, 320px);
    --app-gap-chart-h: 132px;
    /* Plan moments (D-652): the welcome and back-on-Free dialogs. */
    --app-welcome-w: 440px;
    --app-cell-sm: 64px;
    --app-cell-md: 120px;
    --app-cell-lg: 150px;
    --fs-115: 11.5px;
    --fs-13: 13px;
    --fs-145: 14.5px;
    --fs-17: 17px;
    --fs-20: 20px;
    --a1: 1px;
    --a2: 2px;
    --a3: 3px;
    --a5: 5px;
    --a6: 6px;
    --a7: 7px;
    --a9: 9px;
    --a10: 10px;
    --a11: 11px;
    --a13: 13px;
    --a14: 14px;
    --a15: 15px;
    --a18: 18px;
    --a22: 22px;
    --a26: 26px;
    --a28: 28px;
    --a30: 30px;
    --a34: 34px;
    --a36: 36px;
    --a40: 40px;
    --a44: 44px;
    --a46: 46px;
    --a60: 60px;
    --r-10: 10px;
    --r-12: 12px;
    --r-14: 14px;
    /* Marketing length scale (additive, D-521): --u-N is N px. Public pages and their product mocks only; they
       follow the canvas boards (R6, P2-P7) to the pixel, which uses lengths off the 4px app scale. */
    --u-1: 1px; --u-2: 2px; --u-3: 3px; --u-4: 4px; --u-5: 5px; --u-6: 6px; --u-7: 7px; --u-8: 8px; --u-9: 9px; --u-10: 10px;
    --u-11: 11px; --u-12: 12px; --u-13: 13px; --u-14: 14px; --u-15: 15px; --u-16: 16px; --u-17: 17px; --u-18: 18px; --u-19: 19px; --u-20: 20px;
    --u-21: 21px; --u-22: 22px; --u-23: 23px; --u-24: 24px; --u-25: 25px; --u-26: 26px; --u-27: 27px; --u-28: 28px; --u-29: 29px; --u-30: 30px;
    --u-31: 31px; --u-32: 32px; --u-33: 33px; --u-34: 34px; --u-35: 35px; --u-36: 36px; --u-37: 37px; --u-38: 38px; --u-39: 39px; --u-40: 40px;
    --u-41: 41px; --u-42: 42px; --u-43: 43px; --u-44: 44px; --u-45: 45px; --u-46: 46px; --u-47: 47px; --u-48: 48px; --u-49: 49px; --u-50: 50px;
    --u-51: 51px; --u-52: 52px; --u-53: 53px; --u-54: 54px; --u-55: 55px; --u-56: 56px; --u-57: 57px; --u-58: 58px; --u-59: 59px; --u-60: 60px;
    --u-61: 61px; --u-62: 62px; --u-63: 63px; --u-64: 64px; --u-66: 66px; --u-68: 68px; --u-70: 70px; --u-72: 72px; --u-76: 76px; --u-80: 80px;
    --u-84: 84px; --u-88: 88px; --u-92: 92px; --u-96: 96px; --u-100: 100px; --u-104: 104px; --u-112: 112px; --u-120: 120px; --u-128: 128px; --u-132: 132px;
    --u-136: 136px; --u-140: 140px; --u-150: 150px; --u-160: 160px; --u-180: 180px; --u-200: 200px; --u-220: 220px; --u-240: 240px; --u-260: 260px; --u-280: 280px;
    --u-300: 300px; --u-320: 320px; --u-340: 340px; --u-360: 360px; --u-380: 380px; --u-400: 400px; --u-420: 420px; --u-440: 440px; --u-460: 460px; --u-480: 480px;
    --u-520: 520px; --u-560: 560px; --u-600: 600px; --u-640: 640px; --u-680: 680px; --u-720: 720px; --u-760: 760px; --u-800: 800px;
    /* Home hero mock geometry (R6 board): app at 1440 x 1000, frame 950 x 620, callout anchors. */
    --u-125: 125px; --u-174: 174px; --u-196: 196px; --u-212: 212px; --u-273: 273px; --u-309: 309px; --u-355: 355px; --u-375: 375px; --u-392: 392px;
    --u-464: 464px; --u-506: 506px; --u-540: 540px; --u-620: 620px; --u-911: 911px; --u-931: 931px; --u-950: 950px; --u-1000: 1000px; --u-1152: 1152px; --u-1440: 1440px;
    --u-0-5: 0.5px; --u-1-5: 1.5px; --u-2-5: 2.5px;
    /* Marketing font sizes off the scale above (mock and label sizes). */
    --fs-10-5: 10.5px; --fs-11-5: 11.5px; --fs-12-5: 12.5px; --fs-13-5: 13.5px; --fs-14-5: 14.5px; --fs-15-5: 15.5px; --fs-16-5: 16.5px;
    /* Code panel (inverted in both themes). */
    --code-bg: #0B0E19; --code-text: #DDE2EA; --code-green: #4FDCA0;
    /* Code highlighting on the code panel (D-635): keys, strings (--code-green), numbers, punctuation and comments. */
    --code-key: #9DB8FF; --code-num: #F2B655; --code-dim: #7C859C; --code-line: #1C2133; --code-panel: #12172A;
    /* Assistant brand colours (Connect screen, D-635): each product's mark and tile, never anything else. */
    --v-claude: #D97757; --v-chatgpt: #10A37F; --v-grok: #121521; --v-perplexity: #20808D;
    --v-cursor: #121521; --v-copilot: #6E40C9; --v-cli: #D97757; --v-grokbot: #2563EB;
    --seg-on: #FFFFFF;
    /* Public edition (D-642, owner 2026-11-25: "a bit more colour, style and ornament; too much minimalism reads as a
       wireframe"). Public pages only. --field is the page-head ground (checked for contrast like a surface); the ledger
       grid and dot pattern sit on it; --tint-soft / --tint-strong mix a signal hue into a surface for tags and tiles. */
    --field: #EFF1F8;
    --field-line: #DDE1EC;
    --pat-ledger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M28 .5H.5V28' fill='none' stroke='%23121521' stroke-opacity='.055'/%3E%3C/svg%3E");
    --pat-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='1.5' cy='1.5' r='1' fill='%23121521' fill-opacity='.10'/%3E%3C/svg%3E");
    --pat-sigbar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23F2545B'/%3E%3Crect x='12' y='1.5' width='14' height='4' rx='2' fill='%23B98208'/%3E%3Crect x='28' y='1.5' width='14' height='4' rx='2' fill='%23625EF0'/%3E%3Crect x='44' y='1.5' width='14' height='4' rx='2' fill='%23D6418F'/%3E%3Crect x='60' y='1.5' width='14' height='4' rx='2' fill='%233E8FD8'/%3E%3C/svg%3E");
    --tint-soft: 9%;
    --tint-strong: 16%;
    --edge-glow-line: rgb(255 255 255 / 0.10);
    --shadow-lift: 0 1px 2px rgb(18 21 33 / 0.05), 0 12px 32px -12px rgb(18 21 33 / 0.18);
  }

  /* App shell, light (D-618): the page, the sidebar and the cards were ~4% apart in lightness and the card shadow was
     too faint to read, so light mode looked flat next to dark. Deeper steps sidebar < page < card, a hairline that
     shows on the page, and a card shadow (--shadow-raise) that carries the lift. The public site keeps :root. */
  :root:not([data-theme="dark"]) .shell {
    --bg: #EEF0F4;
    --sunken: #E5E7EE;
    --line: #DCDFE7;
    --shadow-raise: 0 1px 2px rgb(18 21 33 / 0.06), 0 4px 14px -4px rgb(18 21 33 / 0.10);
  }
  /* Spend tiles (D-661, neutral since D-706): white tiles on the raised panel, the category in the chip's word. */
  .spend-item {
    --tile: var(--surface);
    --tile-line: var(--line);
    --tile-chip: var(--raised);
  }
  /* Event block (D-706), the one colour zone of a feed card and of Why this matters: an OKLCH pastel of the signal's
     hue and a same-hue hairline in light (an sRGB mix of gold reads as beige mud, D-661); a quiet mix in dark. */
  .ev {
    --ev-bg: oklch(from var(--sig) 0.98 calc(c * 0.16) h);
    --ev-line: oklch(from var(--sig) 0.915 calc(c * 0.3) h);
  }
  :root[data-theme="dark"] .ev {
    --ev-bg: color-mix(in srgb, var(--sig) 8%, var(--surface));
    --ev-line: color-mix(in srgb, var(--sig) 22%, var(--line));
  }
  :root[data-theme="dark"] {
    --v-grok: #F2F4F8; --v-cursor: #F2F4F8; --v-copilot: #A68BFA; --v-perplexity: #3FB6C2; --v-grokbot: #7AA7FF;
    --tech-tile: #E6E9F1;
    color-scheme: dark;
    --bg: #0E1220;
    --sunken: #0B0E19;
    --surface: #161B2C;
    --raised: #1D2337;
    --overlay: #242B42;
    --line: #283048;
    --line2: #36405C;
    --text: #EEF0F7;
    --text2: #BCC3D7;
    --muted: #8F98B2;
    --on-ink: #121521;
    --up-bg: #3A1722;
    --up-tx: #FFF1F2;
    --up-tx2: #FFBEC4;
    --up-ico: #D2364A;
    --up-btn: #D2364A;
    --up-btnhov: #B92A3D;
    --up-on: #FFFFFF;
    --live-on-ink: #0A7A4F; /* the "N new leads" live dot on an ink pill */
    --on-btn: #FFFFFF;
    --coral: #FF6A70;
    --coraltx: #FF8F93;
    --btn: #D2364A;
    --btnhov: #B92A3D;
    --danger: #FF7B72;
    --fund: #F2C35A;
    --fund-dot: #E0A93A;
    --hire: #AAA9FF;
    --hire-dot: #8584FA;
    --lead: #F48FC6;
    --lead-dot: #E965AE;
    --acq: #8CC2FF;
    --acq-dot: #5BA4EA;
    --hl: #FFC560;
    --hl-bg: #3A2E14;
    --fit-top: #4FDCA0;
    --fit-strong: #8EDB7E;
    --scale-low: #4A5470; --scale-mod: #F2B655; --scale-strong: #8EDB7E; --scale-top: #34C98A;
    --fit-mod: #F2B655;
    --fit-low: #8F98B2;
    --int: #FF8F93;
    --later: #BCC3D7;
    --done: #4FDCA0;
    --ok: #4FDCA0;
    --ok-dot: #34C98A;
    --skip: #8F98B2;
    --sp-rd: #86BDFF;
    --sp-prod: #63D5CF;
    --sp-infra: #A9B8D8;
    --sp-gtm: #FFA466;
    --sp-hire: #AAA9FF;
    --sp-exp: #4FDCA0;
    --sp-ops: #E9C259;
    --sp-ma: #CBA8FF;
    --sp-part: #F48FC6;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.30);
    --shadow-pop: 0 12px 32px rgb(0 0 0 / 0.45), 0 2px 8px rgb(0 0 0 / 0.30);
    --shadow-raise: 0 1px 2px rgb(0 0 0 / 0.30);
    --shadow-frame: 0 24px 56px rgb(0 0 0 / 0.50);
    --card-highlight: inset 0 1px 0 0 rgb(255 255 255 / 0.04);
    --scrim: rgb(0 0 0 / 0.55);
    --seg-on: #2B3350;
    --field: #121729;
    --field-line: #232B45;
    --pat-ledger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M28 .5H.5V28' fill='none' stroke='%23FFFFFF' stroke-opacity='.045'/%3E%3C/svg%3E");
    --pat-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='1.5' cy='1.5' r='1' fill='%23FFFFFF' fill-opacity='.08'/%3E%3C/svg%3E");
    --pat-sigbar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23FF6A70'/%3E%3Crect x='12' y='1.5' width='14' height='4' rx='2' fill='%23E0A93A'/%3E%3Crect x='28' y='1.5' width='14' height='4' rx='2' fill='%238584FA'/%3E%3Crect x='44' y='1.5' width='14' height='4' rx='2' fill='%23E965AE'/%3E%3Crect x='60' y='1.5' width='14' height='4' rx='2' fill='%235BA4EA'/%3E%3C/svg%3E");
    --tint-soft: 14%;
    --tint-strong: 22%;
    --shadow-lift: 0 1px 2px rgb(0 0 0 / 0.30), 0 16px 40px -14px rgb(0 0 0 / 0.55);
  }

  /* Inverted band (marketing only): the dark set in both themes, one step lighter than the page in dark mode. */
  .band-inverted {
    color-scheme: dark;
    --bg: #0D1120;
    --surface: #161B2C;
    --raised: #1D2337;
    --line: #283048;
    --line2: #36405C;
    --text: #EEF0F7;
    --text2: #BCC3D7;
    --muted: #8F98B2;
    --on-ink: #121521;
    --live-on-ink: #0A7A4F; /* the "N new leads" live dot on an ink pill */
    --coral: #FF6A70;
    --fund: #F2C35A;
    --hire: #AAA9FF;
    --hl: #FFC560;
    /* Additive (D-521): the rest of the dark signal, fit and spend set, for product mocks on inverted bands. */
    --overlay: #242B42; --hl-bg: #3A2E14; --on-btn: #FFFFFF; --seg-on: #2B3350;
    --fund-dot: #E0A93A; --hire-dot: #8584FA; --lead: #F48FC6; --lead-dot: #E965AE; --acq: #8CC2FF; --acq-dot: #5BA4EA;
    --fit-top: #4FDCA0; --fit-strong: #8EDB7E; --fit-mod: #F2B655; --fit-low: #8F98B2; --int: #FF8F93; --later: #BCC3D7; --done: #4FDCA0; --ok: #4FDCA0; --ok-dot: #34C98A; --skip: #8F98B2;
    --sp-rd: #86BDFF; --sp-prod: #63D5CF; --sp-infra: #A9B8D8; --sp-gtm: #FFA466; --sp-hire: #AAA9FF; --sp-exp: #4FDCA0; --sp-ops: #E9C259; --sp-ma: #CBA8FF; --sp-part: #F48FC6;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.30); --shadow-frame: 0 24px 56px rgb(0 0 0 / 0.50);
    --field: #121729; --field-line: #232B45;
    --pat-ledger: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cpath d='M28 .5H.5V28' fill='none' stroke='%23FFFFFF' stroke-opacity='.05'/%3E%3C/svg%3E");
    --pat-dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Ccircle cx='1.5' cy='1.5' r='1' fill='%23FFFFFF' fill-opacity='.07'/%3E%3C/svg%3E");
    --pat-sigbar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='76' height='7'%3E%3Ccircle cx='3.5' cy='3.5' r='3.5' fill='%23FF6A70'/%3E%3Crect x='12' y='1.5' width='14' height='4' rx='2' fill='%23E0A93A'/%3E%3Crect x='28' y='1.5' width='14' height='4' rx='2' fill='%238584FA'/%3E%3Crect x='44' y='1.5' width='14' height='4' rx='2' fill='%23E965AE'/%3E%3Crect x='60' y='1.5' width='14' height='4' rx='2' fill='%235BA4EA'/%3E%3C/svg%3E");
    --tint-soft: 16%; --tint-strong: 24%;
  }
  :root[data-theme="dark"] .band-inverted {
    --bg: #171D30;
    --surface: #1F2640;
    --raised: #283050;
    --line: #313A58;
  }

  @media (max-width: 767px) {
    :root {
      --fs-hero: 44px;
      --fs-statement: 64px;
      --fs-statement-2: 44px;
      --fs-h2: 34px;
      --fs-sub: 15.5px;
      --gutter: 18px;
    }
  }
}

/* system.css */
/* Base layer: reset, page, type roles, focus, reduced motion. Values come from tokens.css only (raw-value lint). */
@layer base {
  *,
  *::before,
  *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  a { color: inherit; text-underline-offset: 0.2em; }
  :focus-visible { outline: var(--focus-w) solid var(--text); outline-offset: var(--focus-offset); }
  ::selection { background: var(--hl-bg); }

  .t-page-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-page-title); line-height: var(--lh-title); }
  .t-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-name-card); line-height: var(--lh-title); }
  .t-name-detail { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-name-detail); line-height: var(--lh-title); }
  .t-figure { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-figure); font-variant-numeric: tabular-nums; }
  .t-section { font-weight: 600; font-size: var(--fs-section); line-height: var(--lh-section); }
  .t-prose { font-size: var(--fs-prose); line-height: var(--lh-prose); }
  .t-secondary { font-size: var(--fs-secondary); color: var(--text2); }
  .t-meta { font-weight: 500; font-size: var(--fs-meta); color: var(--muted); }
  .t-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
  .t-hero { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: var(--tracking-hero); }
  .t-h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); }
  .t-h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-title); }
  .t-sub { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text2); }
  .visually-hidden { position: absolute; width: var(--hair); height: var(--hair); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

/* components.css */
/* Components layer: the src/ui primitives (03-DESIGN.md §5) with their states. Tokens only.
   Rules (§6): colour carries meaning only; coral only for the logo dot, the rule and the public sign-up button;
   one ink primary per app view; danger only in confirm dialogs; tabs are underline + weight, never an outline;
   no left-border accents, no gradients, no glow. */
@layer components {
  /* Buttons */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    height: var(--control-h); padding: 0 var(--s-3); border-radius: var(--r-btn);
    border: var(--hair) solid transparent; background: transparent; color: var(--text);
    font-size: var(--fs-button); font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
    transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  }
  .btn-sm { height: var(--control-h-sm); padding: 0 var(--s-2); }
  .btn-ink { background: var(--text); color: var(--on-ink); }
  .btn-ink:hover { background: var(--text2); }
  .btn-signup { background: var(--btn); color: var(--on-btn); border-radius: var(--r-btn-mkt); }
  .btn-signup:hover { background: var(--btnhov); }
  .btn-secondary { background: var(--surface); border-color: var(--line2); }
  .btn-secondary:hover { background: var(--raised); }
  .btn-ghost:hover { background: var(--raised); }
  .btn-danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
  .btn-danger:hover { background: color-mix(in srgb, var(--danger) var(--tint), var(--surface)); }
  .btn-icon { width: var(--control-h); padding: 0; }
  .btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
  .btn[aria-busy="true"] { cursor: progress; }
  .btn .spinner { width: var(--s-3); height: var(--s-3); }
  @media (pointer: coarse) { .btn { min-height: var(--touch-min); } }

  .spinner {
    display: inline-block; width: var(--s-4); height: var(--s-4); border-radius: var(--r-round);
    border: var(--rule) solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(1turn); } }

  /* Link button: LinkedIn / Website / Careers */
  .linkbtn { display: inline-flex; align-items: center; gap: var(--s-1); height: var(--control-h-sm); padding: 0 var(--s-2); border-radius: var(--r-btn); border: var(--hair) solid var(--line); color: var(--text2); font-size: var(--fs-meta); font-weight: 500; text-decoration: none; }
  .linkbtn:hover { background: var(--raised); color: var(--text); }
  .linkbtn-icon { width: var(--control-h-sm); justify-content: center; padding: 0; }

  /* Tabs: weight + 2px underline (ink, or the signal colour on feed tabs) */
  .tabs { display: flex; gap: var(--s-5); height: var(--tabbar-h); border-bottom: var(--hair) solid var(--line); }
  .tab { position: relative; display: inline-flex; align-items: center; gap: var(--s-1); padding: 0; border: 0; background: none; cursor: pointer; font-size: var(--fs-tab); font-weight: 500; color: var(--muted); text-decoration: none; }
  .tab:hover { color: var(--text); }
  .tab[aria-selected="true"] { font-weight: 600; color: var(--text); }
  .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--hair)); height: var(--rule); background: var(--tab-line, var(--text)); }
  .tab-count { font-family: var(--font-mono); font-size: var(--fs-chip); color: var(--muted); }
  .tab.sig-fund { --tab-line: var(--fund-dot); }
  .tab.sig-hire { --tab-line: var(--hire-dot); }
  .tab.sig-lead { --tab-line: var(--lead-dot); }
  .tab.sig-acq { --tab-line: var(--acq-dot); }

  /* Segmented control: raised track, filled thumb */
  .segmented { display: inline-flex; padding: var(--s-1); gap: var(--s-1); border-radius: var(--r-btn); background: var(--raised); }
  .segmented button { display: inline-flex; align-items: center; justify-content: center; gap: var(--a6); white-space: nowrap; height: var(--control-h-sm); padding: 0 var(--s-3); border: 0; border-radius: var(--r-chip); background: transparent; color: var(--text2); font-size: var(--fs-meta); font-weight: 500; cursor: pointer; }
  .segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-card); }

  /* Filter pill: outlined off, filled raised on, optional signal dot */
  .pill { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--control-h-sm); padding: 0 var(--s-3); border-radius: var(--r-pill); border: var(--hair) solid var(--line2); background: transparent; color: var(--text2); font-size: var(--fs-meta); font-weight: 500; cursor: pointer; }
  .pill[aria-pressed="true"] { background: var(--raised); border-color: var(--raised); color: var(--text); }

  /* Chips */
  .chip { display: inline-flex; align-items: center; gap: var(--s-1); height: var(--s-6); padding: 0 var(--s-2); border-radius: var(--r-chip); background: var(--raised); color: var(--text2); font-size: var(--fs-chip); font-weight: 500; white-space: nowrap; }
  .chip-new { background: var(--btn); border: var(--hair) solid var(--btn); color: var(--on-btn); } /* D-719 */
  .chip-lock { color: var(--muted); }
  .chip-add { background: transparent; border: var(--hair) dashed var(--line2); color: var(--muted); cursor: pointer; }
  .chip-remove { display: inline-flex; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
  .chip-remove:hover { color: var(--text); }
  .chip-spend { background: color-mix(in srgb, var(--chip-hue) var(--tint), var(--surface)); color: var(--chip-hue); }
  .sp-rd { --chip-hue: var(--sp-rd); } .sp-prod { --chip-hue: var(--sp-prod); } .sp-infra { --chip-hue: var(--sp-infra); }
  .sp-gtm { --chip-hue: var(--sp-gtm); } .sp-hire { --chip-hue: var(--sp-hire); } .sp-exp { --chip-hue: var(--sp-exp); }
  .sp-ops { --chip-hue: var(--sp-ops); } .sp-ma { --chip-hue: var(--sp-ma); } .sp-part { --chip-hue: var(--sp-part); }

  /* Signal label: dot + word in the signal colour */
  .signal { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-meta); font-weight: 600; }
  .signal-dot { width: var(--dot); height: var(--dot); border-radius: var(--r-round); background: var(--sig-dot); flex: none; }
  .signal.sig-fund { color: var(--fund); --sig-dot: var(--fund-dot); }
  .signal.sig-hire { color: var(--hire); --sig-dot: var(--hire-dot); }
  .signal.sig-lead { color: var(--lead); --sig-dot: var(--lead-dot); }
  .signal.sig-acq { color: var(--acq); --sig-dot: var(--acq-dot); }

  /* ICP ring */
  .ring { display: inline-flex; align-items: center; gap: var(--s-2); }
  .ring svg { flex: none; }
  .ring-track { stroke: var(--line); }
  .ring-arc { stroke: var(--ring-c); stroke-linecap: round; }
  .ring-pct { font-family: var(--font-mono); font-weight: 600; color: var(--ring-c); font-size: var(--fs-meta); }
  .ring-tier { font-size: var(--fs-meta); font-weight: 500; color: var(--ring-c); }
  .fit-top { --ring-c: var(--fit-top); } .fit-strong { --ring-c: var(--fit-strong); }
  .fit-mod { --ring-c: var(--fit-mod); } .fit-low { --ring-c: var(--fit-low); }
  .ring-none circle { stroke: var(--line2); stroke-dasharray: 3 3; }
  .ring-none, .ring-locked { color: var(--muted); --ring-c: var(--muted); font-size: var(--fs-meta); }

  /* Confidence meter: three squares in ink */
  .confidence { display: inline-flex; gap: var(--s-1); }
  .confidence i { width: var(--s-2); height: var(--s-2); background: var(--line2); }
  .confidence i.on { background: var(--text); }

  /* Role-function bar */
  .rolebar { display: flex; height: var(--s-2); border-radius: var(--r-chip); overflow: hidden; background: var(--raised); }
  .rolebar span { background: var(--chip-hue); }
  .rolebar-legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-2); font-size: var(--fs-meta); color: var(--text2); }
  .rolebar-legend li { display: inline-flex; align-items: center; gap: var(--s-1); }
  .rolebar-legend i { width: var(--s-2); height: var(--s-2); border-radius: var(--r-chip); background: var(--chip-hue); }

  /* Country name: flag + name */
  .country { display: inline-flex; align-items: center; gap: var(--s-2); }
  .country img { width: var(--flag-w); height: var(--flag-h); object-fit: cover; border-radius: var(--hair); box-shadow: 0 0 0 var(--hair) var(--line); }

  /* Company logo box: fixed square, 1px line, never round */
  .logo-box { display: grid; place-items: center; width: var(--logo-box); height: var(--logo-box); flex: none; border: var(--hair) solid var(--line); border-radius: var(--r-chip); background: var(--surface); color: var(--muted); font-family: var(--font-display); font-weight: 600; overflow: hidden; }

  /* Round figure */
  .round-figure { display: grid; gap: var(--s-1); }
  .round-figure .t-figure { color: var(--text); }
  .round-figure-card .t-figure { font-size: var(--fs-figure-card); }

  /* Company row (lists) */
  .company-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-inset); text-decoration: none; color: inherit; }
  .company-row:hover { background: var(--raised); }
  .company-row[aria-current="true"] { background: var(--surface); box-shadow: 0 0 0 var(--hair) var(--line2); }
  .company-row-main { flex: 1; min-width: 0; display: grid; gap: var(--s-1); }
  .company-row-what { color: var(--text2); font-size: var(--fs-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

  /* Cards and panels */
  .card { background: var(--surface); border: var(--hair) solid var(--line); border-radius: var(--r-card); padding: var(--card-pad); box-shadow: var(--shadow-card), var(--card-highlight); }
  .inset { background: var(--raised); border-radius: var(--r-inset); padding: var(--s-4); }
  .why-now strong { color: var(--text); font-weight: 600; }
  .mark { background: var(--hl-bg); color: var(--text); padding: 0 var(--s-1); border-radius: var(--hair); }

  /* Skeletons */
  .skeleton { display: block; background: var(--sk-fill); border-radius: var(--r-chip); animation: pulse var(--dur-pulse) ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: 0.55; } }
  /* Shapes (src/ui/skeletons.tsx): a text line takes its type role's line height, the bar sits inside it. */
  .sk-text { display: block; min-width: 0; }
  .sk-text > .skeleton { display: inline-block; vertical-align: middle; height: 0.72em; max-width: 100%; }
  .sk-stack { display: grid; gap: var(--s-1); min-width: 0; }
  .sk-round { border-radius: var(--r-round); flex: none; }
  .sk-pill { border-radius: var(--r-pill); }
  .sk-btn { border-radius: var(--r-btn); flex: none; }
  .sk-input { border-radius: var(--r-input); }
  .sk-fcard, .sk-gcard, .sk-lcard, .sk-sim, .sk-row, .sk-trow { cursor: default; pointer-events: none; }
  .sk-logo-md, .sk-logo-sm { border-radius: var(--a9); }
  .sk-logo-lg { border-radius: var(--a15); }
  .sk-logo-xs { border-radius: var(--a6); }
  .sk-meta { display: block; margin-top: var(--a5); }
  .sk-what { display: block; margin-top: var(--a10); }
  .sk-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .sk-tabs { align-items: center; }
  .sk-company .cv-body { padding-top: var(--a18); }
  .sk-ccard { display: grid; gap: var(--s-3); }
  .sk-people { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
  .sk-person { display: flex; align-items: center; gap: var(--s-3); }
  .sk-roles { gap: var(--s-3); }
  .sk-filters { gap: var(--s-4); padding: var(--s-3) 0; }
  .sk-filter { padding-bottom: var(--s-3); border-bottom: var(--hair) solid var(--line); }
  .sk-menu { padding: var(--s-2); gap: var(--s-2); }
  .sk-menu-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-1) var(--s-2); }
  .sk-table-rows { gap: var(--s-3); padding: var(--card-pad); }
  .sk-cells { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--s-4); }
  .loading .skeleton { flex-shrink: 0; }

  /* Empty state */
  /* In-card empty state: left-aligned text, then the facts behind it on a raised strip (SectionEmpty). */
  /* More of a list on its way (LoadingMore, D-620): four signal-hued dots and a line, in a pill. */
  .more-wave { display: inline-flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-4); border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); font-size: var(--fs-13); font-weight: 500; color: var(--text2); }
  .more-dots { display: inline-flex; align-items: center; gap: var(--a5); height: var(--s-4); }
  .more-dots i { width: var(--a7); height: var(--a7); border-radius: var(--r-round); }
  .more-dots .dot-fund { background: var(--fund-dot); } .more-dots .dot-hire { background: var(--hire-dot); }
  .more-dots .dot-lead { background: var(--lead-dot); } .more-dots .dot-acq { background: var(--acq-dot); }
  .sec-empty { display: grid; gap: var(--a6); justify-items: start; margin-top: var(--s-3); }
  .sec-empty-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-145); letter-spacing: -0.01em; }
  .sec-empty-line { font-size: var(--fs-13); line-height: 1.55; color: var(--text2); max-width: 68ch; }
  .sec-facts { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-8); width: 100%; margin-top: var(--a10); padding: var(--s-3) var(--s-4); border-radius: var(--r-12); background: var(--raised); }
  .sec-fact { display: grid; gap: var(--s-1); min-width: 0; }
  .sec-fact dt { font-size: var(--fs-115); color: var(--muted); }
  .sec-fact dd { display: inline-flex; align-items: center; gap: var(--a6); font-size: var(--fs-13); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
  .sec-live.skeleton { flex: none; width: var(--s-2); height: var(--s-2); border-radius: var(--r-round); background: var(--text2); }
  .sec-empty-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--a6); }
  .empty { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-12) var(--s-6); text-align: center; }
  .empty-tile { display: grid; place-items: center; width: var(--s-16); height: var(--s-16); border-radius: var(--r-card); background: var(--raised); color: var(--muted); }
  .empty p { color: var(--text2); max-width: 36ch; }

  /* Dialog and drawer (overlay surface, pop shadow) */
  .scrim { position: fixed; inset: 0; background: var(--scrim); z-index: var(--z-dialog); display: grid; place-items: center; }
  .dialog { width: min(var(--dialog-w), calc(100vw - var(--s-8))); background: var(--overlay); border-radius: var(--r-card); box-shadow: var(--shadow-pop); padding: var(--s-6); display: grid; gap: var(--s-4); }
  .dialog-actions { display: flex; justify-content: flex-end; gap: var(--s-2); }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(var(--drawer-w), 100vw); background: var(--overlay); box-shadow: var(--shadow-pop); z-index: var(--z-drawer); padding: var(--s-6); display: grid; align-content: start; gap: var(--s-4); }
  .static-preview { position: static; inset: auto; width: auto; z-index: auto; min-height: var(--s-34); }

  /* Toast */
  .toast { display: inline-flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-btn); background: var(--text); color: var(--on-ink); box-shadow: var(--shadow-pop); font-size: var(--fs-secondary); }
  .toast button { background: none; border: 0; color: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

  /* Keyboard hint */
  .kbd { display: inline-grid; place-items: center; min-width: var(--s-5); height: var(--s-5); padding: 0 var(--s-1); border: var(--hair) solid var(--line2); border-radius: var(--r-chip); font-family: var(--font-mono); font-size: var(--fs-kbd); color: var(--muted); }

  /* Inputs */
  .input { height: var(--control-h); padding: 0 var(--s-3); border-radius: var(--r-input); border: var(--hair) solid var(--line2); background: var(--surface); color: var(--text); font-size: var(--fs-body); }
  .input::placeholder { color: var(--muted); }

  /* Marketing: eyebrow with the coral rule */
  .eyebrow { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-eyebrow); font-weight: 600; color: var(--text); }
  .eyebrow::before { content: ""; width: var(--eyebrow-rule-w); height: var(--eyebrow-rule-h); background: var(--coral); }
  .eyebrow .t-mono { color: var(--muted); font-weight: 500; }

  /* Wordmark */
  .wordmark { display: inline-block; height: var(--s-6); width: auto; color: var(--text); }
  .wordmark .wm-ai { fill: var(--muted); }
  .wordmark .wm-dot { fill: var(--coral); }
  /* Upgrade band (src/app/parts/upsell.tsx): a brand-red tint, a solid icon tile, the --btn button. One per screen. */
  .upsell { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-12); background: var(--up-bg); color: var(--up-tx); }
  .upsell-ico { display: grid; place-items: center; flex: none; width: var(--s-10); height: var(--s-10); border-radius: var(--r-btn); background: var(--up-ico); color: var(--up-on); }
  .upsell-text { display: grid; gap: var(--s-1); flex: 1; min-width: 0; }
  .upsell-t { font-size: var(--fs-section); font-weight: 600; color: var(--up-tx); }
  .upsell-s { font-size: var(--fs-secondary); color: var(--up-tx2); }
  .upsell-btn { flex: none; background: var(--up-btn); color: var(--up-on); }
  .upsell-btn:hover { background: var(--up-btnhov); }
  .upsell-compact { flex-wrap: wrap; gap: var(--s-3); padding: var(--a14); }
  .upsell-compact .upsell-ico { width: var(--control-h); height: var(--control-h); }
  .upsell-compact .upsell-text { flex-basis: calc(100% - var(--control-h) - var(--s-3)); }
  .upsell-compact .upsell-t { font-size: var(--fs-body); }
  .upsell-compact .upsell-s { font-size: var(--fs-meta); }
  .upsell-compact .upsell-btn { height: var(--control-h-sm); }
  @media (max-width: 48em) { .upsell { flex-wrap: wrap; } .upsell-text { flex-basis: calc(100% - var(--s-10) - var(--s-4)); } }

  /* Pull to refresh (src/ui/pull.tsx, docs/motion.md 3.9). A zero-height sticky strip at the top of the list's scroll
     box holds the chip, so it comes down over the list's head, centred on the column, and takes no layout space. The
     gesture sets --ptr-y (how far it has come down); hidden above the strip while idle. */
  .ptr-wrap { position: sticky; top: 0; z-index: calc(var(--z-sticky) + 1); height: 0; display: flex; justify-content: center; pointer-events: none; }
  .ptr { --ptr-y: calc(0 * var(--s-1)); display: inline-flex; align-items: center; gap: var(--a6); height: var(--control-h); padding: 0 var(--a14) 0 var(--s-3); border: var(--hair) solid var(--line2); border-radius: var(--r-pill); background: var(--overlay); color: var(--text2); box-shadow: var(--shadow-pop); font-size: var(--fs-13); font-weight: 500; white-space: nowrap; translate: 0 calc(var(--ptr-y) - 100%); opacity: 0; }
  .ptr.is-pull { opacity: min(1, calc(var(--ptr-p, 0) * 1.4)); }
  .ptr.is-armed, .ptr.is-busy { opacity: 1; color: var(--text); font-weight: 600; }
  .ptr.is-busy { translate: 0 calc(var(--mv-pull-rest) - 100%); }
  /* A screen that scrolls the page (.main, positioned) rather than its own box: out of the page's grid flow, at the top. */
  .page > .ptr-wrap { position: absolute; inset-inline: 0; top: 0; }
  .ptr-preview { position: static; height: auto; }
  .ptr-preview .ptr { translate: none; opacity: 1; }
}

/* site.css */
/* Site layer: the public pages (header, footer, bands, hubs, company page, marketing blocks). Tokens only.
   03-DESIGN.md Rounds 5-6 and the design system handoff: bands alternate page / sunken / inverted, every chapter opens
   with the coral rule + mono number + label, at most one coral sign-up button per screen, no left-border accents. */
@layer site {
  .site { min-height: 100vh; display: flex; flex-direction: column; }
  .site main { flex: 1; }
  .wrap { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
  @media (max-width: 48rem) { .wrap { width: calc(100% - 2 * var(--gutter-mobile)); } }

  /* Header (R6 board: 76px, logo, nav 15px, theme, Sign in, Start free; D-524) */
  .site-head { position: sticky; top: 0; z-index: var(--z-sticky); background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: var(--hair) solid color-mix(in srgb, var(--line) 70%, transparent); backdrop-filter: blur(var(--s-2)); }
  .site-head .wrap { display: flex; align-items: center; gap: var(--u-44); height: var(--u-76); }
  .site-head .brand { display: inline-flex; color: var(--text); }
  .site-head .wordmark { height: var(--u-28); }
  .site-nav { display: flex; gap: var(--u-30); flex: 1; font-size: var(--u-15); font-weight: 500; }
  .site-nav a { color: var(--text2); text-decoration: none; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
  .site-nav a[aria-current="page"] { font-weight: 600; }
  .site-actions { display: flex; align-items: center; gap: var(--u-14); margin-left: auto; }
  .theme-btn { display: inline-grid; place-items: center; width: var(--u-36); height: var(--u-36); border-radius: var(--u-9); border: var(--hair) solid var(--line); background: transparent; color: var(--text2); cursor: pointer; list-style: none; }
  .theme-btn::-webkit-details-marker { display: none; }
  .theme-btn:hover { background: var(--raised); color: var(--text); }
  .site-signin { font-size: var(--u-15); font-weight: 500; color: var(--text2); text-decoration: none; }
  .site-signin:hover { color: var(--text); }
  .site-start { height: var(--u-36); padding: 0 var(--u-14); font-size: var(--u-14); border-radius: var(--u-9); }
  .site-menu { position: relative; display: none; }
  .site-menu-panel { position: absolute; right: 0; top: calc(100% + var(--u-8)); display: grid; min-width: var(--u-220); padding: var(--u-8); border-radius: var(--u-14); background: var(--overlay); border: var(--hair) solid var(--line2); box-shadow: var(--shadow-pop); }
  .site-menu-panel a { padding: var(--u-10) var(--u-12); border-radius: var(--u-8); font-size: var(--u-15); font-weight: 500; color: var(--text2); text-decoration: none; }
  .site-menu-panel a:hover { background: var(--raised); color: var(--text); }
  @media (max-width: 64rem) { .site-nav { gap: var(--u-20); } .site-head .wrap { gap: var(--u-28); } }
  @media (max-width: 56rem) {
    .site-nav, .site-signin, .site-actions > .theme-btn { display: none; }
    .site-menu { display: block; }
    .site-head .wrap { height: var(--u-60); }
    .site-head .wordmark { height: var(--u-24); }
    .site-actions { gap: var(--u-8); }
  }

  /* Footer (R6 board: sunken, brand column + five link columns, bottom line) */
  .site-foot { background: var(--sunken); border-top: var(--hair) solid var(--line); margin-top: 0; font-size: var(--u-14); color: var(--text2); }
  .foot-grid { display: grid; grid-template-columns: minmax(0, 3fr) repeat(5, minmax(0, 2fr)); gap: var(--u-32); padding: var(--u-56) 0 var(--u-32); }
  .foot-brand .wordmark { height: var(--u-26); }
  .foot-brand p { margin-top: var(--u-14); max-width: 22em; color: var(--muted); }
  .foot-brand .foot-sig { display: flex; width: max-content; margin-top: var(--u-16); }
  .site-foot { background-image: var(--pat-dots); }
  .foot-brand .foot-fresh { font-size: var(--u-13); }
  .foot-grid h2 { font-size: var(--u-14); font-weight: 600; color: var(--text); }
  .foot-grid ul { display: grid; gap: var(--u-9); margin-top: var(--u-12); }
  .foot-grid a { color: var(--text2); text-decoration: none; }
  .foot-grid a:hover { color: var(--text); }
  .foot-bottom { display: flex; justify-content: space-between; gap: var(--u-16); padding: var(--u-18) 0 var(--u-30); border-top: var(--hair) solid var(--line); font-size: var(--u-13); color: var(--muted); }
  .foot-bottom a { color: var(--muted); text-decoration: none; }
  .foot-note { margin-top: var(--s-10); color: var(--muted); font-size: var(--fs-meta); }
  @media (max-width: 64rem) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
  @media (max-width: 40rem) { .foot-grid { grid-template-columns: 1fr 1fr; gap: var(--u-24); padding-top: var(--u-40); } .foot-bottom { flex-direction: column; } }

  /* Bands and sections */
  .band { padding: var(--s-24) 0; }
  .band-sunken { background: var(--sunken); }
  .band-ink { background: var(--text); color: var(--on-ink); }
  :root[data-theme="dark"] .band-ink { background: var(--raised); color: var(--text); }
  .band-ink .t-sub, .band-ink .muted { color: color-mix(in srgb, currentColor 72%, transparent); }
  .page-head { padding: var(--s-12) 0 var(--s-8); }
  .page-head h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); max-width: 22ch; margin: var(--s-4) 0; }
  .page-head .lede { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text2); max-width: 64ch; }
  @media (max-width: 48rem) { .page-head h1 { font-size: var(--fs-h3); } .band { padding: var(--s-16) 0; } }
  .crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-meta); color: var(--muted); }
  .crumbs a { color: var(--muted); text-decoration: none; }
  .crumbs a:hover { color: var(--text); }
  .stamp { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-meta); color: var(--muted); }
  .section-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); margin-bottom: var(--s-4); }
  .grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s-10); align-items: start; }
  @media (max-width: 56rem) { .grid-2 { grid-template-columns: 1fr; } }
  .stack > * + * { margin-top: var(--s-6); }
  .muted { color: var(--muted); }
  .prose { font-size: var(--fs-prose); line-height: var(--lh-prose); max-width: 72ch; }
  .prose h2 { font-family: var(--font-display); font-size: var(--fs-h3); margin: var(--s-10) 0 var(--s-3); }
  .prose h3 { font-size: var(--fs-sub); margin: var(--s-6) 0 var(--s-2); }
  .prose p, .prose ul, .prose ol, .prose table, .prose blockquote { margin: var(--s-3) 0; }
  .prose ul { list-style: disc; padding-left: var(--s-6); }
  .prose ol { list-style: decimal; padding-left: var(--s-6); }
  .prose li { margin: var(--s-1) 0; }
  .prose a { color: var(--text); }
  .prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-secondary); }
  .prose th, .prose td { border-bottom: var(--hair) solid var(--line); padding: var(--s-2); text-align: left; vertical-align: top; }
  .prose blockquote { padding: var(--s-3) var(--s-4); background: var(--raised); border-radius: var(--r-inset); }
  .prose img { border-radius: var(--r-inset); margin: var(--s-4) 0; height: auto; }
  .prose code { font-family: var(--font-mono); font-size: var(--fs-secondary); background: var(--raised); padding: 0 var(--s-1); border-radius: var(--r-chip); }

  /* "Today's rounds are in Pro and Business" band (no count) */
  .today-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-card); background: var(--raised); margin: var(--s-6) 0; }
  .today-band p { font-weight: 600; }

  /* Feed / hub rows */
  .day { margin-top: var(--s-8); }
  .day-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-2); border-bottom: var(--hair) solid var(--line); margin-bottom: var(--s-2); }
  .day-head h2 { font-size: var(--fs-section); font-weight: 600; }
  .frow { display: grid; grid-template-columns: var(--logo-box) minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-2); border-radius: var(--r-inset); text-decoration: none; color: inherit; }
  .frow:hover { background: var(--raised); }
  .frow-main { display: grid; gap: var(--s-1); min-width: 0; }
  .frow-what { color: var(--text2); font-size: var(--fs-secondary); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .frow-meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font-size: var(--fs-meta); color: var(--muted); }
  .frow-fig { text-align: right; display: grid; gap: var(--s-1); }
  .frow-fig .amount { font-family: var(--font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
  .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .chip-link { text-decoration: none; }
  .chip-link:hover { background: var(--line); color: var(--text); }
  .figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: var(--s-4); margin: var(--s-6) 0; }
  .figure { padding: var(--s-4); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); }
  .figure .t-meta { display: block; margin-bottom: var(--s-1); }
  .figure strong { font-family: var(--font-display); font-size: var(--fs-sub); }
  .filters { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
  .filters select { min-width: 14rem; }

  /* Company page */
  .co-head { display: flex; gap: var(--s-4); align-items: flex-start; }
  .co-head .logo-box { width: var(--s-16); height: var(--s-16); font-size: var(--fs-h3); }
  .co-head .logo-box img { width: 100%; height: 100%; object-fit: contain; }
  .co-name { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); }
  @media (max-width: 48rem) { .co-name { font-size: var(--fs-name-standalone); } }
  .answer { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text2); max-width: 70ch; margin-top: var(--s-4); }
  .facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-6); font-size: var(--fs-secondary); }
  .facts dt { color: var(--muted); }
  .facts dd { margin: 0; }
  .round-card { display: grid; gap: var(--s-3); }
  .news li { display: grid; gap: var(--s-1); padding: var(--s-3) 0; border-bottom: var(--hair) solid var(--line); }
  .news a { font-weight: 500; text-decoration: none; }
  .news a:hover { text-decoration: underline; }
  .locked { display: grid; gap: var(--s-4); padding: var(--card-pad); border-radius: var(--r-card); border: var(--hair) dashed var(--line2); background: var(--surface); }
  .locked ul { display: grid; gap: var(--s-2); }
  .locked li { display: flex; align-items: center; gap: var(--s-2); color: var(--text2); font-size: var(--fs-secondary); }
  .mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: var(--s-3); }
  .mini { display: grid; grid-template-columns: var(--logo-box) minmax(0, 1fr); gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); text-decoration: none; color: inherit; }
  .mini:hover { border-color: var(--line2); }
  .mini p { color: var(--text2); font-size: var(--fs-meta); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .delisted { text-align: center; padding: var(--s-24) 0; display: grid; gap: var(--s-4); justify-items: center; }

  /* Lists index */
  .list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: var(--s-4); }
  .list-card { display: grid; gap: var(--s-2); padding: var(--card-pad); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); text-decoration: none; color: inherit; }
  .list-card:hover { border-color: var(--line2); }
  .list-card p { color: var(--text2); font-size: var(--fs-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .logos { display: flex; gap: var(--s-1); }
  .logos .logo-box { width: var(--s-6); height: var(--s-6); }
  .logos img { width: 100%; height: 100%; object-fit: contain; }

  /* CTA block */
  .cta { display: grid; gap: var(--s-4); padding: var(--s-10); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); }
  .cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
  .btn-lg { height: var(--s-12); padding: 0 var(--s-5); font-size: var(--fs-mkt-body); }

  /* Marketing (home, features, pricing) */
  .hero { padding: var(--s-28) 0 var(--s-16); }
  .hero h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: var(--tracking-hero); max-width: 16ch; margin: var(--s-6) 0 var(--s-10); }
  .hero-row { display: flex; flex-wrap: wrap; gap: var(--s-10); align-items: flex-end; justify-content: space-between; }
  .hero-row .t-sub { max-width: 44ch; }
  @media (max-width: 48rem) { .hero h1 { font-size: var(--fs-h2); } .hero { padding: var(--s-16) 0 var(--s-10); } }
  .h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); margin: var(--s-4) 0 var(--s-4); max-width: 20ch; }
  @media (max-width: 48rem) { .h2 { font-size: var(--fs-h3); } }
  .sec-head { margin-bottom: var(--s-16); }
  .sec-head .t-sub { max-width: 56ch; }
  .frame { border-radius: var(--r-frame); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-frame); padding: var(--s-6); }
  .bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .bento > * { padding: var(--s-6); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); display: grid; gap: var(--s-3); align-content: start; }
  .bento .wide { grid-column: span 2; }
  @media (max-width: 56rem) { .bento { grid-template-columns: 1fr; } .bento .wide { grid-column: auto; } }
  .compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  @media (max-width: 56rem) { .compare { grid-template-columns: 1fr; } }
  .compare > * { padding: var(--s-6); border-radius: var(--r-mkt-card); border: var(--hair) solid var(--line); background: var(--surface); }
  .compare .old { background: var(--raised); color: var(--muted); }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: step; }
  @media (max-width: 56rem) { .steps { grid-template-columns: 1fr; } }
  .steps li { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: var(--rule) solid var(--line2); }
  .steps .t-mono { color: var(--muted); }
  .statement { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-statement); line-height: var(--lh-tight); letter-spacing: var(--tracking-hero); }
  @media (max-width: 48rem) { .statement { font-size: var(--fs-h2); } }
  .stat-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-8); margin-top: var(--s-12); }
  @media (max-width: 48rem) { .stat-cols { grid-template-columns: 1fr; } }
  .stat-cols strong { display: block; font-family: var(--font-mono); font-size: var(--fs-display-figure); font-weight: 600; line-height: 1; }
  .bar { height: var(--s-1); background: var(--line); border-radius: var(--r-pill); margin-top: var(--s-3); overflow: hidden; }
  .bar i { display: block; height: 100%; background: var(--text); }
  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: stretch; }
  @media (max-width: 56rem) { .plans { grid-template-columns: 1fr; } }
  .plan { display: grid; gap: var(--s-4); align-content: start; padding: var(--s-8); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); }
  .plan-rec { box-shadow: 0 0 0 var(--rule) var(--text); }
  .plan .price { font-family: var(--font-display); font-size: var(--fs-price); font-weight: 700; line-height: 1; }
  .plan ul { display: grid; gap: var(--s-2); font-size: var(--fs-secondary); color: var(--text2); }
  .plan li { display: flex; gap: var(--s-2); }
  .faq details { border-bottom: var(--hair) solid var(--line); padding: var(--s-4) 0; }
  .faq summary { cursor: pointer; font-weight: 600; font-size: var(--fs-mkt-body); }
  .faq p { margin-top: var(--s-3); color: var(--text2); max-width: 70ch; }
  .tabs-mcp { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: var(--s-6) 0; }
  .copy-field { display: flex; gap: var(--s-2); align-items: center; font-family: var(--font-mono); padding: var(--s-3) var(--s-4); border-radius: var(--r-input); background: var(--surface); color: var(--text); border: var(--hair) solid var(--line2); }
  .timeline { display: grid; gap: var(--s-4); }
  .timeline li { display: grid; grid-template-columns: 5rem 1fr; gap: var(--s-4); }
  .closing { text-align: center; display: grid; gap: var(--s-6); justify-items: center; }
  .closing .statement { font-size: var(--fs-statement-2); max-width: 16ch; }
  @media (max-width: 48rem) { .closing .statement { font-size: var(--fs-h2); } }

  /* ------------------------------------------------------------------------------------------------------------------
     Public edition kit (D-642). Owner 2026-11-25: more colour and ornament than the Forward boards, never a wireframe.
     Ornament always carries meaning: the ledger grid is the "record" behind a page head, the signal bar is the four
     signals, tints are the hue of the signal or spend they name. Still no gradients, glow or left-border accents. */
  :where(.site, .ds) .field { position: relative; background-color: var(--field); background-image: var(--pat-ledger); border-bottom: var(--hair) solid var(--field-line); }
  :where(.site, .ds) .field-dots { background-image: var(--pat-dots); }
  .sigbar { display: inline-flex; align-items: center; gap: var(--u-4); }
  .sigbar i { display: block; width: var(--u-16); height: var(--u-4); border-radius: var(--u-2); }
  .sigbar i:nth-child(1) { width: var(--u-7); height: var(--u-7); border-radius: var(--r-round); background: var(--coral); margin-right: var(--u-4); }
  .sigbar i:nth-child(2) { background: var(--fund-dot); }
  .sigbar i:nth-child(3) { background: var(--hire-dot); }
  .sigbar i:nth-child(4) { background: var(--lead-dot); }
  .sigbar i:nth-child(5) { background: var(--acq-dot); }
  .kicker { display: inline-flex; align-items: center; gap: var(--u-12); font-size: var(--u-14); font-weight: 600; color: var(--text2); }
  .kicker .muted { font-weight: 500; }

  .h-fund { --h: var(--fund); --hd: var(--fund-dot); }
  .h-hire { --h: var(--hire); --hd: var(--hire-dot); }
  .h-lead { --h: var(--lead); --hd: var(--lead-dot); }
  .h-acq { --h: var(--acq); --hd: var(--acq-dot); }
  .h-hl { --h: var(--hl); --hd: var(--hl); }
  .h-ink { --h: var(--text2); --hd: var(--muted); }
  .stag { display: inline-flex; align-items: center; gap: var(--u-6); height: var(--u-24); padding: 0 var(--u-9); border-radius: var(--u-7); font-size: var(--fs-12-5); font-weight: 600; line-height: 1; white-space: nowrap; color: var(--h, var(--text2)); background: color-mix(in srgb, var(--h, var(--text2)) var(--tint-soft), var(--surface)); text-decoration: none; }
  .stag::before { content: ""; flex: none; width: var(--u-6); height: var(--u-6); border-radius: var(--r-round); background: var(--hd, currentColor); }
  .stag-plain::before { display: none; }
  a.stag:hover { background: color-mix(in srgb, var(--h, var(--text2)) var(--tint-strong), var(--surface)); }

  .ltile { --lt: var(--u-44); flex: none; display: grid; place-items: center; width: var(--lt); height: var(--lt); border-radius: calc(var(--lt) * 0.26); background: var(--tech-tile); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); overflow: hidden; font-family: var(--font-display); font-weight: 700; font-size: calc(var(--lt) * 0.42); line-height: 1; color: var(--h, var(--text2)); text-decoration: none; }
  .ltile img { width: 100%; height: 100%; object-fit: contain; padding: calc(var(--lt) * 0.1); }
  .ltile-blank { background: color-mix(in srgb, var(--h, var(--text2)) var(--tint-soft), var(--surface)); }
  .ltile-sm { --lt: var(--u-32); }
  .ltile-lg { --lt: var(--u-72); }

  .sico { flex: none; display: inline-grid; place-items: center; width: var(--u-32); height: var(--u-32); border-radius: var(--u-9); color: var(--h, var(--text2)); background: color-mix(in srgb, var(--h, var(--text2)) var(--tint-soft), var(--surface)); }
  .pcard { background: var(--surface); border-radius: var(--u-16); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); padding: var(--u-24); }
  .dsec-h { display: flex; align-items: center; gap: var(--u-12); flex-wrap: wrap; }
  .dsec-h h2 { font-family: var(--font-display); font-size: var(--u-21); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
  .dsec-h .aside { margin-left: auto; font-size: var(--u-13); color: var(--muted); }

  .ptag { display: inline-flex; align-items: center; height: var(--u-20); padding: 0 var(--u-7); border-radius: var(--r-pill); font-size: var(--fs-11-5); font-weight: 600; line-height: 1; white-space: nowrap; background: var(--surface); color: var(--text2); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
  .ptag-pro { background: var(--text); color: var(--on-ink); box-shadow: none; }

  .lockrow { display: flex; align-items: center; gap: var(--u-12); flex-wrap: wrap; padding: var(--u-12) var(--u-14); border-radius: var(--u-12); background: var(--raised); font-size: var(--u-14); line-height: 1.45; color: var(--text2); }
  .lockrow .lico { flex: none; display: grid; place-items: center; width: var(--u-30); height: var(--u-30); border-radius: var(--u-8); background: var(--surface); color: var(--text2); box-shadow: inset 0 0 0 var(--hair) var(--line); }
  .lockrow strong { color: var(--text); font-weight: 600; }
  .lockrow .lgo { margin-left: auto; }
  .lockrow > span:not(.lico):not(.lgo) { flex: 1 1 14em; }

  .edge { position: relative; border-radius: var(--u-18); background-color: var(--bg); background-image: var(--pat-dots); color: var(--text); padding: var(--u-24); box-shadow: var(--shadow-frame); }
  .edge-k { display: flex; align-items: center; gap: var(--u-8); font-size: var(--u-13); font-weight: 600; color: var(--muted); }
  .edge-h { margin-top: var(--u-8); font-family: var(--font-display); font-size: var(--u-22); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }
  .edge-list { margin-top: var(--u-14); display: grid; }
  .edge-list li { display: grid; grid-template-columns: var(--u-40) minmax(0, 1fr); gap: var(--u-10); align-items: baseline; padding: var(--u-10) 0; border-top: var(--hair) solid var(--line); }
  .edge-list b { font-family: var(--font-display); font-size: var(--u-22); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--h, var(--text)); }
  .edge-list li > span { font-size: var(--u-14); line-height: 1.4; color: var(--text2); }
  .edge-list .lk { display: inline-flex; vertical-align: -0.15em; margin-left: var(--u-4); color: var(--muted); }
  .edge .btn-signup, .edge .btn-wide { width: 100%; height: var(--u-48); margin-top: var(--u-16); font-size: var(--u-15); }
  .edge-note { margin-top: var(--u-12); font-size: var(--fs-12-5); line-height: 1.45; color: var(--muted); }
  .edge-note strong { color: var(--text2); font-weight: 600; }

  .mixbar { display: flex; gap: var(--u-2); height: var(--u-10); border-radius: var(--r-pill); overflow: hidden; background: var(--raised); }
  .mixbar i { display: block; height: 100%; background: var(--c); }
  .mixleg { display: flex; flex-wrap: wrap; gap: var(--u-6) var(--u-16); margin-top: var(--u-10); font-size: var(--u-13); color: var(--text2); }
  .mixleg span { display: inline-flex; align-items: center; gap: var(--u-6); white-space: nowrap; }
  .mixleg span::before { content: ""; width: var(--u-8); height: var(--u-8); border-radius: var(--u-2); background: var(--c); }
  .mixleg b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
  .c1 { --c: var(--fund-dot); } .c2 { --c: var(--hire-dot); } .c3 { --c: var(--sp-gtm); } .c4 { --c: var(--lead-dot); } .c5 { --c: var(--sp-rd); } .c6 { --c: var(--acq-dot); } .c7 { --c: var(--sp-ops); } .c8 { --c: var(--line2); }

  .ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-14); }
  .rung { display: flex; flex-direction: column; gap: var(--u-10); padding: var(--u-22); border-radius: var(--u-16); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); color: var(--text2); font-size: var(--u-14); line-height: 1.5; }
  .rung h3 { display: flex; align-items: baseline; justify-content: space-between; gap: var(--u-8); font-family: var(--font-display); font-size: var(--u-20); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
  .rung h3 small { font-family: var(--font-ui); font-size: var(--u-13); font-weight: 500; letter-spacing: 0; color: var(--muted); }
  .rung ul { display: grid; gap: var(--u-8); }
  .rung li { display: grid; grid-template-columns: var(--u-16) minmax(0, 1fr); gap: var(--u-8); align-items: start; }
  .rung li svg { margin-top: var(--u-3); color: var(--ok); }
  .rung li.off { color: var(--muted); }
  .rung li.off svg { color: var(--muted); }
  .rung .rung-when { font-weight: 600; color: var(--text); }
  .rung .btn { margin-top: auto; align-self: flex-start; }
  .rung.band-inverted { background-color: var(--bg); background-image: var(--pat-dots); box-shadow: var(--shadow-frame); }
  @media (max-width: 56rem) { .ladder { grid-template-columns: minmax(0, 1fr); } }

  .stickycta { display: none; }
  @media (max-width: 56rem) {
    .stickycta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); align-items: center; gap: var(--u-12); padding: var(--u-10) var(--gutter-mobile) calc(var(--u-10) + env(safe-area-inset-bottom)); background: var(--surface); border-top: var(--hair) solid var(--line); box-shadow: var(--shadow-pop); }
    .stickycta .btn-signup { flex: none; height: var(--u-44); padding: 0 var(--u-16); font-size: var(--u-15); }
    .stickycta-line { flex: 1; min-width: 0; font-size: var(--u-13); line-height: 1.3; color: var(--text2); }
    .stickycta-line strong { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .site:has(.stickycta) .site-foot { padding-bottom: var(--u-80); }
    .stickycta { transition: transform var(--dur-arrive) var(--ease-arrive); }
    .stickycta.off { transform: translateY(110%); transition: transform var(--dur-leave) var(--ease-leave); }
  }

  .pg-head { padding: var(--u-36) 0 var(--u-48); }
  .pg-head .crumbs { font-size: var(--u-13); }
  .pg-h1 { margin-top: var(--u-18); font-family: var(--font-display); font-weight: 700; font-size: clamp(var(--u-36), 4.4vw, var(--u-56)); line-height: 1.03; letter-spacing: -0.035em; max-width: 20ch; text-wrap: balance; }
  .pg-lede { margin-top: var(--u-16); font-size: var(--u-18); line-height: 1.55; color: var(--text2); max-width: 40em; }
  /* Every public eyebrow opens with the signal bar instead of the lone coral rule (D-642). */
  .site .eyebrow::before { width: var(--u-76); height: var(--u-7); border-radius: 0; background: var(--pat-sigbar) no-repeat left center; }
  .edition { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-8) var(--u-14); margin-top: var(--u-20); font-size: var(--u-13); color: var(--muted); }
  .edition strong { color: var(--text); font-weight: 600; }
  .edition .dotsep { width: var(--u-4); height: var(--u-4); border-radius: var(--r-round); background: var(--line2); }
}

/* site-company.css */
/* The public company page (D-642): a front page on the field (identity, the round as a sentence, the signal strip and
   the edge panel), a sticky section nav, sections on cards with a tinted icon tile, the facts rail, the plan ladder.
   Tokens only (--u-N is the marketing px scale). No left-border accents: the strip's signal rule sits on top. */
@layer site {
  .cp-head { padding: var(--u-24) 0 var(--u-44); }
  .cp-head .crumbs { font-size: var(--u-13); }
  .cp-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--u-380); gap: var(--u-48); align-items: start; margin-top: var(--u-26); }
  .cp-id { min-width: 0; }
  .cp-id-top { display: flex; align-items: center; gap: var(--u-20); }
  .cp-id-name { min-width: 0; }
  .cp-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(var(--u-34), 4vw, var(--u-52)); line-height: 1.02; letter-spacing: -0.035em; overflow-wrap: anywhere; }
  .cp-what { margin-top: var(--u-8); font-size: var(--u-17); line-height: 1.5; color: var(--text2); max-width: 44em; }
  .cp-tags-row { display: flex; flex-wrap: wrap; gap: var(--u-8); margin-top: var(--u-22); }
  .cp-tags-row .country img { border-radius: var(--u-2); }
  .cp-story { margin-top: var(--u-20); font-size: var(--u-21); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; color: var(--text); max-width: 34em; text-wrap: pretty; }
  .cp-story strong { font-weight: 700; }
  .cp-story time { white-space: nowrap; }
  .cp-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--u-160), 1fr)); gap: var(--u-1); margin-top: var(--u-22); border-radius: var(--u-14); overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); max-width: var(--u-720); }
  .cp-strip li { position: relative; display: grid; gap: var(--u-3); padding: var(--u-16) var(--u-16) var(--u-14); background: var(--surface); }
  .cp-strip-k { display: inline-flex; align-items: center; gap: var(--u-6); font-size: var(--fs-12-5); font-weight: 600; color: var(--h); }
  .cp-strip-k::before { content: ""; flex: none; width: var(--u-6); height: var(--u-6); border-radius: var(--r-round); background: var(--hd); }
  .cp-strip-v { font-family: var(--font-display); font-size: var(--u-18); font-weight: 700; letter-spacing: -0.015em; color: var(--text); }
  .cp-strip-d { font-size: var(--fs-12-5); color: var(--muted); }
  .cp-links { display: flex; flex-wrap: wrap; gap: var(--u-8); margin-top: var(--u-20); }
  .cp-links .linkbtn { background: var(--surface); }
  .cp-edge { margin-top: var(--u-4); }

  /* Sticky section nav under the site header (76px, 60px on phones) */
  .cp-nav { position: sticky; top: var(--u-76); z-index: calc(var(--z-sticky) - 1); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(var(--s-2)); border-bottom: var(--hair) solid var(--line); }
  .cp-nav .wrap { display: flex; gap: var(--u-28); overflow-x: auto; scrollbar-width: none; }
  .cp-nav a { position: relative; flex: none; padding: var(--u-14) 0; font-size: var(--u-14); font-weight: 500; color: var(--muted); text-decoration: none; }
  .cp-nav a:hover { color: var(--text); }
  .cp-nav a.on { color: var(--text); font-weight: 600; }
  .cp-nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--hair)); height: var(--rule); background: var(--text); }
  [id].cp-sec, #plans { scroll-margin-top: var(--u-140); }

  .cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--u-320); gap: var(--u-32); padding: var(--u-28) 0 var(--u-72); align-items: start; }
  .cp-main { display: grid; gap: var(--u-18); min-width: 0; }
  .cp-sec .dsec-h { margin-bottom: var(--u-16); }
  .cp-sec .dsec-h .aside a { color: var(--text2); }
  .cp-sec-body > .lockrow, .cp-sec-body > div > .lockrow { margin-top: var(--u-16); }
  .cp-lock-link { font-size: var(--u-14); font-weight: 600; color: var(--text); text-underline-offset: var(--u-3); white-space: nowrap; }
  .lockrow .lgo { display: inline-flex; align-items: center; gap: var(--u-10); }
  .cp-k { display: flex; align-items: baseline; gap: var(--u-8); font-size: var(--u-13); font-weight: 600; color: var(--text2); margin-bottom: var(--u-8); }
  .cp-k .muted { font-weight: 500; }
  .cp-note { font-size: var(--u-15); line-height: 1.55; color: var(--text2); max-width: 44em; }
  .cp-strong { color: var(--text); }

  .cp-why { font-size: var(--u-18); line-height: 1.6; color: var(--text); max-width: 40em; text-wrap: pretty; }

  .cp-round { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-18) var(--u-28); }
  .cp-round-fig { display: flex; align-items: center; gap: var(--u-12); }
  .cp-amount { font-family: var(--font-display); font-size: var(--u-48); font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
  .cp-inv { display: flex; flex-wrap: wrap; gap: var(--u-8); }
  .cp-inv li { display: inline-flex; align-items: center; gap: var(--u-8); height: var(--u-34); padding: 0 var(--u-12); border-radius: var(--u-9); background: var(--raised); font-size: var(--u-14); font-weight: 500; }
  .cp-inv li.lead { background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2); font-weight: 600; }
  .cp-inv li a { color: inherit; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: var(--u-4); }
  .cp-inv li a:hover { text-decoration-color: currentColor; }
  .cp-spend { margin-top: var(--u-24); }
  .cp-spend li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--u-14); align-items: center; padding: var(--u-12) 0; border-top: var(--hair) solid var(--line); font-size: var(--u-15); }
  .cp-spend-conf { display: inline-flex; align-items: center; gap: var(--u-6); font-size: var(--fs-12-5); color: var(--muted); white-space: nowrap; }
  .cp-prev { margin-top: var(--u-18); padding: var(--u-12) var(--u-14); border-radius: var(--u-10); background: var(--raised); font-size: var(--u-14); }
  .cp-news { margin-top: var(--u-22); }
  .cp-news li { display: grid; grid-template-columns: var(--u-56) minmax(0, 1fr) auto; gap: var(--u-12); align-items: baseline; padding: var(--u-10) 0; border-top: var(--hair) solid var(--line); font-size: var(--u-14); }
  .cp-news-date { color: var(--muted); font-variant-numeric: tabular-nums; }
  .cp-news a { color: var(--text); font-weight: 500; text-decoration: none; }
  .cp-news a:hover { text-decoration: underline; }
  .cp-news-src { display: inline-flex; align-items: center; gap: var(--u-4); color: var(--muted); font-size: var(--u-13); }

  .cp-sec .mixbar { height: var(--u-12); }
  .cp-hsig { display: grid; gap: var(--u-10); margin-top: var(--u-18); }
  .cp-hsig li { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--u-6) var(--u-12); font-size: var(--u-14); color: var(--text2); }

  .cp-people { display: grid; margin-top: var(--u-14); }
  .cp-people li { display: flex; align-items: center; gap: var(--u-12); padding: var(--u-10) 0; border-top: var(--hair) solid var(--line); }
  .cp-avatar { flex: none; display: grid; place-items: center; width: var(--u-36); height: var(--u-36); border-radius: var(--r-round); background: var(--raised); color: var(--muted); box-shadow: inset 0 0 0 var(--hair) var(--line); }
  .cp-person { flex: 1; display: grid; font-size: var(--u-14); line-height: 1.35; }
  .cp-person strong { font-weight: 600; }
  .cp-person .muted { font-size: var(--u-13); }

  .cp-credit { font-size: var(--fs-11-5); color: var(--muted); }
  .cp-tech { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--u-160), 1fr)); gap: var(--u-8); margin-top: var(--u-12); }
  .cp-tech li { display: flex; align-items: center; gap: var(--u-10); padding: var(--u-8) var(--u-10); border-radius: var(--u-10); background: var(--raised); font-size: var(--u-14); font-weight: 500; }
  .cp-tech-mark { flex: none; display: grid; place-items: center; width: var(--u-26); height: var(--u-26); border-radius: var(--u-7); background: var(--tech-tile); color: var(--acq); font-family: var(--font-display); font-weight: 700; font-size: var(--u-13); box-shadow: inset 0 0 0 var(--hair) var(--line); }
  .cp-tech-more { color: var(--muted); }
  .cp-tech-more .cp-tech-mark { color: var(--muted); background: var(--surface); }

  .cp-hl { font-size: var(--u-16); line-height: 1.6; color: var(--text); max-width: 44em; }

  .cp-over { display: grid; gap: var(--u-20); }
  /* The website, full width in a plain browser frame, the way the app's Overview shows it (D-643). */
  .cp-shot { margin: var(--u-4) 0 0; border-radius: var(--u-12); overflow: hidden; background: var(--raised); border: var(--hair) solid var(--line2); box-shadow: var(--shadow-lift); }
  .cp-shot a { display: block; color: inherit; text-decoration: none; }
  .cp-shot-bar { display: flex; align-items: center; gap: var(--u-6); height: var(--u-32); padding: 0 var(--u-12); background: var(--surface); border-bottom: var(--hair) solid var(--line); font-size: var(--u-12); color: var(--muted); }
  .cp-shot-bar i { width: var(--u-8); height: var(--u-8); border-radius: var(--r-round); background: var(--line2); }
  .cp-shot-url { flex: 1; min-width: 0; margin-left: var(--u-8); padding: 0 var(--u-10); height: var(--u-20); line-height: var(--u-20); border-radius: var(--r-pill); background: var(--raised); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cp-shot a:hover .cp-shot-url { color: var(--text); }
  .cp-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
  .cp-about-text { font-size: var(--u-15); line-height: 1.65; color: var(--text2); }
  .cp-about summary { cursor: pointer; list-style: none; }
  .cp-about summary::-webkit-details-marker { display: none; }
  .cp-about[open] summary { display: none; }
  .cp-more { display: inline-block; margin-top: var(--u-6); font-size: var(--u-14); font-weight: 600; color: var(--text); text-decoration: underline; }
  .cp-tagcloud { display: flex; flex-wrap: wrap; gap: var(--u-6); margin-top: var(--u-16); }
  .cp-tagl { display: inline-flex; align-items: center; height: var(--u-28); padding: 0 var(--u-10); border-radius: var(--r-pill); background: var(--raised); font-size: var(--u-13); font-weight: 500; color: var(--text2); text-decoration: none; }
  .cp-tagl:hover { color: var(--text); background: var(--line); }
  .cp-found { display: grid; gap: var(--u-10); margin-top: var(--u-22); padding-top: var(--u-18); border-top: var(--hair) solid var(--line); }
  .cp-found > div { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-8); }
  .cp-found-k { width: var(--u-72); font-size: var(--fs-12-5); color: var(--muted); }
  .cp-found-l { display: inline-flex; align-items: center; gap: var(--u-6); height: var(--u-32); padding: 0 var(--u-12); border-radius: var(--u-9); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2); font-size: var(--u-13); font-weight: 500; color: var(--text); text-decoration: none; }
  .cp-found-l:hover { background: var(--raised); }
  .cp-found-l svg { color: var(--muted); }

  .cp-sim li + li { border-top: var(--hair) solid var(--line); }
  .cp-sim-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--u-14); align-items: center; padding: var(--u-12) var(--u-8); margin: 0 calc(-1 * var(--u-8)); border-radius: var(--u-10); color: inherit; text-decoration: none; }
  .cp-sim-row:hover { background: var(--raised); }
  .cp-sim-plain:hover { background: none; }
  .cp-sim + .lockrow { margin-top: var(--u-12); }
  .cp-sim-main { display: grid; gap: var(--u-3); min-width: 0; }
  .cp-sim-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-8); }
  .cp-sim-top strong { font-weight: 600; font-size: var(--u-15); }
  .cp-sim-what { font-size: var(--u-13); color: var(--text2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .cp-sim-fig { display: grid; justify-items: end; gap: var(--u-2); font-size: var(--u-13); }
  .cp-sim-fig strong { font-family: var(--font-display); font-size: var(--u-16); font-weight: 700; }

  .cp-rail { position: sticky; top: calc(var(--u-76) + var(--u-64)); display: grid; gap: var(--u-16); }
  .cp-facts dl { display: grid; grid-template-columns: var(--u-100) minmax(0, 1fr); gap: var(--u-9) var(--u-12); margin-top: var(--u-6); font-size: var(--u-14); }
  .cp-facts dt { color: var(--muted); }
  .cp-facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
  .cp-facts dd a { color: var(--text); }
  .cp-num { font-weight: 600; font-variant-numeric: tabular-nums; }
  .cp-stamp { display: flex; align-items: center; gap: var(--u-6); margin-top: var(--u-16); padding-top: var(--u-12); border-top: var(--hair) solid var(--line); font-size: var(--u-12); color: var(--muted); }
  .cp-aboutdata { padding: 0 var(--u-4); font-size: var(--u-13); line-height: 1.55; color: var(--text2); }
  .cp-aboutdata p + p { margin-top: var(--u-10); }
  .cp-aboutdata a { color: var(--text); }

  .cp-plans { padding: var(--u-64) 0 var(--u-72); background-color: var(--sunken); background-image: var(--pat-dots); border-top: var(--hair) solid var(--line); }
  .cp-plans-head { margin-bottom: var(--u-28); }
  .cp-plans-head h2 { margin-top: var(--u-14); font-family: var(--font-display); font-weight: 700; font-size: clamp(var(--u-28), 3.2vw, var(--u-40)); letter-spacing: -0.03em; line-height: 1.08; }
  .cp-plans-head p { margin-top: var(--u-10); font-size: var(--u-17); color: var(--text2); max-width: 40em; }
  .cp-digest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--u-320)) auto; gap: var(--u-12); align-items: center; margin-top: var(--u-24); padding: var(--u-16) var(--u-20); border-radius: var(--u-14); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); }
  .cp-digest h3 { display: flex; align-items: center; gap: var(--u-8); font-size: var(--u-15); font-weight: 600; }
  .cp-digest p { margin-top: var(--u-2); font-size: var(--u-14); color: var(--text2); }

  .cp-private { display: grid; justify-items: start; gap: var(--u-14); padding: var(--u-72) 0 var(--u-96); }

  @media (max-width: 64rem) {
    .cp-head-grid { grid-template-columns: minmax(0, 1fr); gap: var(--u-28); }
    .cp-edge { max-width: var(--u-560); }
    .cp-grid { grid-template-columns: minmax(0, 1fr); }
    .cp-rail { position: static; }
  }
  @media (max-width: 56rem) { .cp-nav { top: var(--u-60); } [id].cp-sec, #plans { scroll-margin-top: var(--u-120); } }
  @media (max-width: 40rem) {
    .cp-head { padding-bottom: var(--u-32); }
    .cp-id-top { align-items: flex-start; gap: var(--u-14); }
    .cp-id-top .ltile-lg { --lt: var(--u-52); }
    .cp-story { font-size: var(--u-18); }
    .cp-strip { grid-template-columns: minmax(0, 1fr); }
    .cp-strip li { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--u-12); padding: var(--u-12) var(--u-14); }
    .cp-strip-k { grid-column: 1 / -1; }
    .cp-strip-d { align-self: center; }
    .cp-sec .dsec-h .aside { flex-basis: 100%; margin-left: 0; }
    .cp-amount { font-size: var(--u-40); }
    .cp-spend li { grid-template-columns: minmax(0, 1fr); gap: var(--u-6); }
    .cp-news li { grid-template-columns: minmax(0, 1fr); gap: var(--u-2); }
    .cp-digest { grid-template-columns: minmax(0, 1fr); }
    .pcard { padding: var(--u-18); }
    .lockrow .lgo { margin-left: 0; }
  }
}

/* site-connect.css */
/* Public Connect page (/connect; D-717). The app's Connect screen (connect.css) told as one website page: a ledger band
   with the hero (words left, the chat on its dark stage right), then three numbered chapters (MCP, REST API, Webhooks),
   each opening with a big headline and its picture, the middle one on the ledger band so the chapters read apart, then
   the Business band, the questions and the close. In the account layer, because it sits on top of connect.css rules of
   the same layer. Tokens only; no coloured side stripes, one coral button (the close). */
@layer account {
  .cn { display: block; }
  .cn [hidden] { display: none; }
  .cn-inline { display: contents; }
  .cn-fill, .cn-grid { display: grid; gap: var(--s-4); min-width: 0; }

  /* Bands */
  .cn-band, .cn-chapter-band, .cn-close { background-color: var(--field); background-image: var(--pat-ledger); }
  .cn-band { border-bottom: var(--hair) solid var(--field-line); }
  .cn-chapter-band { border-top: var(--hair) solid var(--field-line); border-bottom: var(--hair) solid var(--field-line); }
  .cn-close { border-top: var(--hair) solid var(--field-line); }

  /* Hero and chapter openings: words left, picture right */
  .cn-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--u-56); align-items: center; }
  .cn-hero { padding: var(--u-64) 0 var(--u-72); }
  .cn-chap-text { display: grid; gap: var(--u-20); justify-items: start; align-content: center; min-width: 0; }
  .cn-chap-text .cx-hero-actions { margin-top: var(--s-2); }
  .cn-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--u-56); line-height: 1.04; letter-spacing: -0.03em; color: var(--text); text-wrap: balance; max-width: 14em; }
  .cn-h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--u-40); line-height: 1.08; letter-spacing: -0.025em; color: var(--text); text-wrap: balance; max-width: 18em; }
  .cn-lead { margin: 0; font-size: var(--u-19); line-height: var(--lh-sub); color: var(--text2); max-width: 38em; }
  .cn-lead a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: var(--u-3); }
  .cn-chap-label { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin: 0; font-size: var(--fs-section); font-weight: 600; color: var(--text); }
  .cn-chap-n { display: grid; place-items: center; width: var(--s-10); height: var(--s-10); border-radius: var(--r-btn); background: var(--text); color: var(--on-ink); font-family: var(--font-mono); font-size: var(--fs-secondary); }
  .cn-chap-plan { padding: var(--a3) var(--s-2); border-radius: var(--r-pill); background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text2); font-size: var(--fs-meta); font-weight: 500; }
  .cn-visual { min-width: 0; display: grid; }
  .cn-stage-wrap { display: grid; min-width: 0; }
  .cn .cx-stage { border-radius: var(--r-card); padding: var(--u-40) var(--u-32); box-shadow: var(--shadow-pop); }
  .cn-visual > .cx-code { box-shadow: var(--shadow-pop); }
  .cn-visual > .cx-flow { padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-pop); }

  /* Chapters */
  .cn-chapter { padding: var(--u-96) 0; scroll-margin-top: var(--u-76); }
  .cn-after { padding-top: var(--u-72); }
  .cn-step-panel { display: grid; gap: var(--s-3); }
  .cn .cx-step-body h4 { margin: 0; }
  .cn-role-line { margin: 0; }
  .cn-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); }
  .cn-tools li { display: grid; gap: var(--hair); padding: var(--s-3) var(--s-4); border-radius: var(--r-12); background: var(--raised); min-width: 0; }
  .cn-tools code { font-size: var(--fs-secondary); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; }

  /* Close */
  .cn-close-in { display: grid; justify-items: center; gap: var(--u-16); padding: var(--u-80) 0; text-align: center; }
  .cn-close-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--u-40); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
  .cn-center { justify-content: center; margin-top: var(--s-2); }

  @media (max-width: 64em) {
    .cn-split { grid-template-columns: minmax(0, 1fr); gap: var(--u-40); }
    .cn-hero { padding: var(--u-40) 0 var(--u-48); }
    .cn-chapter { padding: var(--u-64) 0; }
    .cn-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 48em) {
    .cn-title { font-size: var(--u-34); }
    .cn-h2 { font-size: var(--u-28); }
    .cn-lead { font-size: var(--fs-15-5); }
    .cn .cx-stage { padding: var(--s-4); }
    .cn-chapter { padding: var(--u-48) 0; }
    .cn-tools { grid-template-columns: minmax(0, 1fr); }
    .cn-close-in { padding: var(--u-56) 0; }
    .cn-close-title { font-size: var(--u-28); }
  }
}

/* site-content.css */
/* Content pages (blog, docs, legal, data sources, contact, newsletter, data removal, utility and error pages) in the
   Forward language of the R6/P2/P3/P7 boards: coral rule + eyebrow, Space Grotesk display headings, Geist body,
   page/sunken bands, 16-19px cards. No board exists for these pages (DECISIONS.md D-533). Tokens only. */
@layer site {
  /* Page hero (renderStatic, docs, blog) */
  .ct-hero { padding: var(--s-24) 0 var(--s-16); }
  .ct-hero .crumbs { margin-bottom: var(--s-8); }
  .ct-hero h1, .ct-hero .ct-display { font-family: var(--font-display); font-weight: 700; font-size: var(--u-56); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); max-width: 20ch; margin: var(--u-22) 0 0; }
  .ct-hero .ct-lede { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text2); max-width: 56ch; margin-top: var(--u-22); }
  .ct-hero .ct-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-6); font-size: var(--fs-secondary); color: var(--muted); }
  .ct-hero .ct-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }
  .ct-hero-narrow h1 { max-width: 24ch; }

  /* Bands */
  .ct-band { padding: var(--s-24) 0; }
  .ct-band-sunken { background: var(--sunken); border-top: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); }
  .ct-band + .ct-band-sunken, .ct-band-sunken + .ct-band { margin-top: 0; }
  .ct-lead { padding: 0 0 var(--s-16); }
  .ct-head { margin-bottom: var(--s-12); max-width: 46rem; }
  .ct-h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--u-44); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); }
  .ct-sub { font-size: var(--u-18); line-height: var(--lh-sub); color: var(--text2); margin-top: var(--s-4); max-width: 40em; }
  .ct-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-16); align-items: start; }
  .ct-split > .ct-head { margin-bottom: 0; }
  .ct-h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--u-24); line-height: var(--lh-title); letter-spacing: -0.015em; }
  .ct-label { font-size: var(--fs-meta); font-weight: 500; color: var(--muted); }

  /* Cards */
  .ct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--s-4); }
  .ct-card { display: flex; flex-direction: column; gap: var(--u-10); padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-card), var(--card-highlight); }
  .ct-card-title { font-size: var(--u-17); font-weight: 600; line-height: var(--lh-section); }
  .ct-card p, .ct-card li { font-size: var(--fs-body); color: var(--text2); line-height: var(--lh-body); }
  .ct-card a { font-weight: 500; }
  .ct-card .chip { align-self: flex-start; }
  .ct-tile { display: inline-flex; align-items: center; justify-content: center; width: var(--u-40); height: var(--u-40); border-radius: var(--u-11); background: var(--raised); color: var(--text); flex: none; }
  .ct-bullets { display: grid; gap: var(--s-1); list-style: disc; padding-left: var(--s-5); }

  /* Numbered steps on a connecting rule (R6 "How it works") */
  .ct-steps { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--s-8); }
  .ct-steps::before { content: ""; position: absolute; left: var(--s-5); right: var(--s-5); top: var(--s-5); height: var(--hair); background: var(--line2); }
  .ct-steps li { position: relative; display: flex; flex-direction: column; gap: var(--s-3); }
  .ct-step-n { display: inline-flex; align-items: center; justify-content: center; width: var(--u-40); height: var(--u-40); border-radius: var(--r-round); background: var(--bg); box-shadow: 0 0 0 var(--hair) var(--line2); font-family: var(--font-mono); font-size: var(--u-15); font-weight: 600; }
  .ct-band-sunken .ct-step-n { background: var(--sunken); }
  .ct-steps h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--u-20); line-height: var(--lh-title); margin-top: var(--s-1); }
  .ct-steps p { font-size: var(--u-15); color: var(--text2); line-height: var(--lh-body); }

  /* FAQ accordion (R6 "Questions, answered") */
  .ct-faq { border-bottom: var(--hair) solid var(--line); }
  .ct-faq details { border-top: var(--hair) solid var(--line); }
  .ct-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--u-22) 0; cursor: pointer; list-style: none; font-size: var(--u-18); font-weight: 600; line-height: var(--lh-section); }
  .ct-faq summary::-webkit-details-marker { display: none; }
  .ct-faq summary svg { flex: none; color: var(--muted); }
  .ct-faq details[open] .ct-plus-v { display: none; }
  .ct-faq .ct-answer { padding: 0 var(--s-10) var(--u-22) 0; font-size: var(--u-15); color: var(--text2); line-height: var(--lh-prose); }

  /* Figures row */
  .ct-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--s-4); }
  .ct-figure { padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); display: grid; gap: var(--s-2); }
  .ct-figure strong { font-family: var(--font-display); font-weight: 700; font-size: var(--u-40); line-height: 1; letter-spacing: -0.03em; }

  /* Forms */
  .ct-form { display: grid; gap: var(--s-5); }
  .ct-field { display: grid; gap: var(--s-2); }
  .ct-field label, .ct-field legend { font-size: var(--fs-13-5); font-weight: 600; color: var(--text); }
  .ct-field .muted { font-weight: 500; }
  .ct-input { width: 100%; min-height: var(--u-44); padding: 0 var(--u-14); border-radius: var(--u-10); border: var(--hair) solid var(--line2); background: var(--surface); color: var(--text); font-size: var(--u-15); }
  .ct-input::placeholder { color: var(--muted); }
  textarea.ct-input { padding: var(--s-3) var(--u-14); min-height: var(--s-34); line-height: var(--lh-body); resize: vertical; }
  .ct-input:focus-visible { outline: var(--focus-w) solid var(--text); outline-offset: 0; }
  .ct-choice { display: grid; grid-template-columns: auto 1fr; gap: var(--s-1) var(--s-3); align-items: start; padding: var(--s-4); border-radius: var(--r-inset); border: var(--hair) solid var(--line); background: var(--surface); cursor: pointer; }
  .ct-choice:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 var(--hair) var(--text); }
  .ct-choice input { margin-top: var(--u-3); }
  .ct-choice strong { font-size: var(--fs-body); }
  .ct-choice span { grid-column: 2; font-size: var(--fs-meta); color: var(--muted); }
  .ct-submit { min-height: var(--u-48); padding: 0 var(--s-6); font-size: var(--u-15); border-radius: var(--u-10); }
  .ct-form-card { padding: var(--s-8); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-frame); }
  .ct-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-12); align-items: start; }
  .ct-aside { display: grid; gap: var(--s-3); }
  .ct-panel { padding: var(--s-5); border-radius: var(--r-card); background: var(--raised); display: grid; gap: var(--s-2); }
  .ct-panel h3 { font-size: var(--u-15); font-weight: 600; }
  .ct-panel p, .ct-panel li { font-size: var(--fs-secondary); color: var(--text2); line-height: var(--lh-body); }

  /* Inline signup band (newsletter on blog pages) */
  .ct-signup { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-12); align-items: center; padding: var(--s-12); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-card), var(--card-highlight); }
  .ct-signup-row { display: flex; gap: var(--s-2); }
  .ct-signup-row .ct-input { flex: 1 1 auto; min-width: 0; }
  .ct-signup-row .btn { min-height: var(--u-44); padding: 0 var(--s-5); font-size: var(--u-15); border-radius: var(--u-10); }

  /* Long-form prose (legal, posts) */
  .ct-prose { font-size: var(--u-16); line-height: var(--lh-prose); color: var(--text2); max-width: 70ch; }
  .ct-prose > :first-child { margin-top: 0; }
  .ct-prose h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--u-28); line-height: var(--lh-title); letter-spacing: -0.02em; color: var(--text); margin: var(--s-12) 0 var(--s-4); scroll-margin-top: var(--s-24); }
  .ct-prose h3 { font-size: var(--u-18); font-weight: 600; color: var(--text); margin: var(--s-8) 0 var(--s-2); }
  .ct-prose h4 { font-size: var(--u-16); font-weight: 600; color: var(--text); margin: var(--s-6) 0 var(--s-2); }
  .ct-prose p, .ct-prose ul, .ct-prose ol, .ct-prose table, .ct-prose figure, .ct-prose blockquote, .ct-prose pre { margin: var(--s-4) 0; }
  .ct-prose ul { list-style: disc; padding-left: var(--s-6); }
  .ct-prose ol { list-style: decimal; padding-left: var(--s-6); }
  .ct-prose li { margin: var(--s-2) 0; }
  .ct-prose li::marker { color: var(--muted); }
  .ct-prose strong { color: var(--text); font-weight: 600; }
  .ct-prose a { color: var(--text); font-weight: 500; text-decoration-color: var(--line2); text-underline-offset: 0.2em; }
  .ct-prose a:hover { text-decoration-color: var(--text); }
  .ct-prose hr { border: 0; border-top: var(--hair) solid var(--line); margin: var(--s-10) 0; }
  .ct-prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-secondary); display: block; overflow-x: auto; }
  .ct-prose th { text-align: left; font-weight: 600; color: var(--text); background: var(--raised); }
  .ct-prose th, .ct-prose td { border-bottom: var(--hair) solid var(--line); padding: var(--u-10) var(--s-3); vertical-align: top; }
  .ct-prose blockquote { padding: var(--s-4) var(--s-5); background: var(--raised); border-radius: var(--r-inset); color: var(--text); }
  .ct-prose img, .ct-prose video { border-radius: var(--r-inset); border: var(--hair) solid var(--line); height: auto; max-width: 100%; }
  .ct-prose figcaption, .ct-prose em:only-child { font-size: var(--fs-secondary); color: var(--muted); }
  .ct-prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--raised); padding: var(--u-1) var(--u-5); border-radius: var(--u-5); color: var(--text); }
  .ct-prose pre { background: var(--code-bg); color: var(--code-text); padding: var(--s-4) var(--s-5); border-radius: var(--r-inset); overflow-x: auto; font-size: var(--fs-13-5); line-height: var(--lh-prose); }
  .ct-prose pre code { background: none; color: inherit; padding: 0; }

  /* Legal: sticky "On this page" next to the text */
  .ct-legal { display: grid; grid-template-columns: var(--u-240) minmax(0, 1fr); gap: var(--s-16); align-items: start; padding-bottom: var(--s-24); }
  .ct-legal-main .wrap { width: auto; margin: 0; }
  .ct-legal-main > section { padding: 0 0 var(--s-8); }
  .ct-legal-main .ct-band { padding: var(--s-8) 0; background: none; border: 0; }
  .ct-toc { position: sticky; top: var(--u-96); display: grid; gap: var(--s-1); font-size: var(--fs-secondary); }
  .ct-toc p { font-size: var(--fs-meta); font-weight: 500; color: var(--muted); margin-bottom: var(--s-2); }
  .ct-toc a { display: block; padding: var(--u-5) 0; color: var(--text2); text-decoration: none; line-height: var(--lh-section); }
  .ct-toc a:hover { color: var(--text); }
  .ct-toc:empty { display: none; }
  .ct-stamp { display: inline-flex; align-items: center; gap: var(--s-2); }

  /* Blog */
  .ct-featured { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); margin-bottom: var(--s-6); }
  .ct-post { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-card), var(--card-highlight); text-decoration: none; color: inherit; transition: border-color var(--dur-fast) var(--ease); }
  .ct-post:hover { border-color: var(--line2); }
  .ct-post img { width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; border-radius: var(--r-inset); background: var(--raised); }
  .ct-post-body { display: grid; gap: var(--s-2); padding: var(--s-1) var(--s-2) var(--s-2); }
  .ct-post-title { font-family: var(--font-display); font-weight: 600; font-size: var(--u-20); line-height: var(--lh-title); letter-spacing: -0.015em; }
  .ct-featured .ct-post-title { font-size: var(--u-26); }
  .ct-post-excerpt { font-size: var(--fs-secondary); color: var(--text2); line-height: var(--lh-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ct-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--fs-meta); font-weight: 500; color: var(--muted); }
  .ct-post-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .ct-post-row { flex-direction: row; align-items: center; gap: var(--s-5); padding: var(--s-4); }
  .ct-post-row img { width: var(--u-200); flex: none; aspect-ratio: 4 / 3; }
  .ct-post-row .ct-post-body { padding: 0; }
  .ct-post-row .ct-post-title { font-size: var(--u-18); }
  .ct-post-row .ct-post-excerpt { -webkit-line-clamp: 2; }
  .ct-pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-10); }
  .ct-pager-pages { display: flex; gap: var(--s-1); }
  .ct-pager-pages a, .ct-pager-pages span { display: inline-grid; place-items: center; min-width: var(--u-36); height: var(--u-36); border-radius: var(--u-9); font-family: var(--font-mono); font-size: var(--fs-secondary); text-decoration: none; color: var(--text2); }
  .ct-pager-pages [aria-current] { background: var(--text); color: var(--on-ink); font-weight: 600; }
  .ct-article { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ct-article-head { width: 100%; max-width: 52rem; margin: 0 auto; padding: var(--s-16) 0 var(--s-10); }
  .ct-article-head h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--u-52); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); margin-top: var(--s-6); }
  .ct-article-hero { width: 100%; max-width: 64rem; margin: 0 auto var(--s-12); }
  .ct-article-hero img { width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; border-radius: var(--r-mkt-card); border: var(--hair) solid var(--line); }
  .ct-article-body { width: 100%; max-width: 44rem; margin: 0 auto; }
  .ct-article-body .ct-prose { max-width: none; }
  .ct-article-foot { width: 100%; max-width: 44rem; margin: var(--s-12) auto var(--s-16); padding-top: var(--s-6); border-top: var(--hair) solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
  .ct-share { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-secondary); color: var(--muted); }
  .ct-share a { display: inline-grid; place-items: center; width: var(--u-36); height: var(--u-36); border-radius: var(--u-9); border: var(--hair) solid var(--line); background: var(--surface); color: var(--text2); }
  .ct-share a:hover { color: var(--text); border-color: var(--line2); }
  .ct-byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: var(--s-5); font-size: var(--fs-secondary); color: var(--muted); }
  .ct-byline strong { color: var(--text); font-weight: 600; }
  .ct-dot { width: var(--u-3); height: var(--u-3); border-radius: var(--r-round); background: var(--muted); display: inline-block; }

  /* Developer docs */
  .ct-docs { display: grid; grid-template-columns: var(--u-220) minmax(0, 1fr); gap: var(--s-16); align-items: start; padding-bottom: var(--s-24); }
  .ct-docs section { padding-bottom: var(--s-16); scroll-margin-top: var(--s-24); }
  .ct-docs section + section { padding-top: var(--s-4); border-top: var(--hair) solid var(--line); }
  .ct-docs h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--u-36); line-height: var(--lh-h2); letter-spacing: -0.03em; margin: var(--s-10) 0 var(--s-4); }
  .ct-docs h3 { font-size: var(--u-17); font-weight: 600; margin: var(--s-8) 0 var(--s-3); }
  .ct-docs p { font-size: var(--u-15); color: var(--text2); line-height: var(--lh-prose); max-width: 68ch; margin: var(--s-3) 0; }
  .ct-docs code { font-family: var(--font-mono); font-size: 0.88em; background: var(--raised); padding: var(--u-1) var(--u-5); border-radius: var(--u-5); color: var(--text); }
  .ct-code { border: var(--hair) solid var(--line); position: relative; margin: var(--s-4) 0; border-radius: var(--s-3); background: var(--code-bg); color: var(--code-text); font-family: var(--font-mono); font-size: var(--fs-13-5); line-height: 1.7; padding: var(--u-14) var(--s-4); white-space: pre; overflow-x: auto; }
  .ct-code code { background: none; color: inherit; padding: 0; font-size: inherit; }
  .ct-code .ct-c { color: var(--code-green); }
  .ct-code-label { display: block; font-size: var(--fs-meta); color: var(--muted); margin-top: var(--s-4); }
  .ct-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-6) 0; }
  .ct-start a { text-decoration: none; color: inherit; }
  .ct-start .ct-card:hover { border-color: var(--line2); }
  .ct-table-wrap { overflow-x: auto; margin: var(--s-4) 0; border-radius: var(--r-card); border: var(--hair) solid var(--line); background: var(--surface); }
  .ct-table { width: 100%; border-collapse: collapse; font-size: var(--fs-secondary); }
  .ct-table th { text-align: left; font-weight: 600; font-size: var(--fs-meta); color: var(--muted); padding: var(--u-10) var(--s-4); border-bottom: var(--hair) solid var(--line); white-space: nowrap; }
  .ct-table td { padding: var(--s-3) var(--s-4); border-bottom: var(--hair) solid var(--line); vertical-align: top; color: var(--text2); line-height: var(--lh-body); }
  .ct-table tr:last-child td { border-bottom: 0; }
  .ct-table td:first-child { color: var(--text); white-space: nowrap; }
  /* A table of four or more columns keeps readable columns and scrolls sideways in its wrap on a phone, instead of
     squeezing the last column into a sliver that makes every row tall. */
  .ct-table:has(th:nth-child(4)) { min-width: var(--u-560); }
  .ct-table:has(th:nth-child(4)) td { white-space: nowrap; }
  /* A two-column reference table (endpoint, tool or error, then what it does) stacks on a phone: the name on top, the
     text under it at full width, instead of a 150px column 400px tall. */
  @media (max-width: 47.99rem) {
    .ct-table:not(:has(th:nth-child(3))) thead { position: absolute; width: var(--hair); height: var(--hair); overflow: hidden; clip-path: inset(50%); }
    .ct-table:not(:has(th:nth-child(3))) :is(tr, td) { display: block; }
    .ct-table:not(:has(th:nth-child(3))) tr { padding: var(--s-3) var(--s-4); border-bottom: var(--hair) solid var(--line); }
    .ct-table:not(:has(th:nth-child(3))) tr:last-child { border-bottom: 0; }
    .ct-table:not(:has(th:nth-child(3))) td { padding: 0; border-bottom: 0; }
    .ct-table:not(:has(th:nth-child(3))) td:first-child { white-space: normal; overflow-wrap: anywhere; margin-bottom: var(--s-1); }
  }
  .ct-method { display: inline-flex; align-items: center; height: var(--u-22); padding: 0 var(--u-7); border-radius: var(--u-6); background: var(--raised); font-family: var(--font-mono); font-size: var(--fs-11-5); font-weight: 600; color: var(--text); margin-right: var(--s-2); }
  .ct-params { display: block; margin-top: var(--s-1); font-size: var(--fs-meta); color: var(--muted); }
  .ct-params code { font-size: var(--fs-12-5); }

  /* Utility, confirmation and error pages */
  .ct-utility { padding: var(--s-24) 0; }
  .ct-utility-card { max-width: 36rem; margin: 0 auto; display: grid; justify-items: center; text-align: center; gap: var(--s-4); }
  .ct-utility-card .ct-tile { width: var(--u-56); height: var(--u-56); border-radius: var(--r-card); color: var(--muted); }
  .ct-utility-card h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--u-44); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); }
  .ct-utility-card .t-secondary, .ct-utility-card > p { font-size: var(--u-16); line-height: var(--lh-sub); color: var(--text2); }
  .ct-utility-card .ct-panel { text-align: left; width: 100%; }
  .ct-code-tag { font-family: var(--font-mono); font-size: var(--fs-secondary); color: var(--muted); }
  .ct-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); }
  .ct-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); }
  .ct-utility .btn, .ct-hero .btn, .ct-form .btn { min-height: var(--u-44); padding: 0 var(--s-5); font-size: var(--u-15); border-radius: var(--u-10); }

  @media (max-width: 56rem) {
    .ct-split, .ct-two, .ct-legal, .ct-docs, .ct-signup, .ct-featured, .ct-post-list, .ct-start { grid-template-columns: minmax(0, 1fr); }
    .ct-toc, .ct-docs-nav { position: static; }
    .ct-legal .ct-toc, .ct-docs .ct-toc { display: none; }
    .ct-steps::before { display: none; }
  }
  @media (max-width: 47.99rem) {
    .ct-hero { padding: var(--s-10) 0 var(--s-10); }
    .ct-hero h1, .ct-hero .ct-display { font-size: var(--fs-h2); }
    .ct-hero .ct-lede { font-size: var(--fs-sub); }
    .ct-band { padding: var(--s-18) 0; }
    .ct-h2 { font-size: var(--u-30); }
    .ct-head { margin-bottom: var(--s-6); }
    .ct-article-head { padding-top: var(--s-8); }
    .ct-article-head h1 { font-size: var(--fs-h2); }
    .ct-utility-card h1 { font-size: var(--u-34); }
    .ct-post-row { flex-direction: column; align-items: stretch; }
    .ct-post-row img { width: 100%; aspect-ratio: 40 / 21; }
    .ct-signup { padding: var(--s-6); gap: var(--s-6); }
    .ct-signup-row { flex-direction: column; }
    .ct-form-card { padding: var(--s-5); }
    .ct-docs h2 { font-size: var(--u-28); }
    .ct-prose h2 { font-size: var(--u-24); }
  }

  /* ------------------------------------------------------------------------------------------------------------------
     Public edition (D-642): the content pages share the data pages' field head, signal-tinted icon tiles and dotted
     sunken bands. Later in the file than the base rules above, so these win. */
  .ct-hero { background-color: var(--field); background-image: var(--pat-ledger); border-bottom: var(--hair) solid var(--field-line); padding: var(--u-72) 0 var(--u-56); }
  .ct-hero + .ct-lead, .ct-hero + section.ct-lead { padding-top: var(--u-56); }
  .ct-hero + .ct-legal, .ct-hero + .wrap.ct-legal { padding-top: var(--u-56); }
  .ct-hero + .ct-band { border-top: 0; }
  .ct-band-sunken { background-image: var(--pat-dots); }
  .ct-card { position: relative; overflow: hidden; border-color: var(--line); box-shadow: var(--shadow-card); }
  a.ct-card:hover, .ct-start a:hover .ct-card { box-shadow: var(--shadow-lift); border-color: var(--line2); }
  .ct-tile { background: color-mix(in srgb, var(--fund) var(--tint-soft), var(--surface)); color: var(--fund); }
  .ct-cards > .ct-card:nth-child(4n + 2) .ct-tile { background: color-mix(in srgb, var(--hire) var(--tint-soft), var(--surface)); color: var(--hire); }
  .ct-cards > .ct-card:nth-child(4n + 3) .ct-tile { background: color-mix(in srgb, var(--lead) var(--tint-soft), var(--surface)); color: var(--lead); }
  .ct-cards > .ct-card:nth-child(4n + 4) .ct-tile { background: color-mix(in srgb, var(--acq) var(--tint-soft), var(--surface)); color: var(--acq); }
  .ct-figure { position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
  .ct-figure strong { color: var(--text); }
  .ct-figure::after { content: ""; position: absolute; left: var(--s-6); bottom: var(--u-18); width: var(--u-28); height: var(--u-3); border-radius: var(--u-2); background: var(--fund-dot); }
  .ct-figures > .ct-figure:nth-child(4n + 2)::after { background: var(--hire-dot); }
  .ct-figures > .ct-figure:nth-child(4n + 3)::after { background: var(--lead-dot); }
  .ct-figures > .ct-figure:nth-child(4n + 4)::after { background: var(--acq-dot); }
  .ct-figure { padding-bottom: var(--u-40); }
  .ct-step-n { background: var(--surface); color: var(--text); box-shadow: 0 0 0 var(--hair) var(--line2), var(--shadow-card); }
  .ct-steps li:nth-child(4n + 1) .ct-step-n { color: var(--fund); }
  .ct-steps li:nth-child(4n + 2) .ct-step-n { color: var(--hire); }
  .ct-steps li:nth-child(4n + 3) .ct-step-n { color: var(--lead); }
  .ct-steps li:nth-child(4n + 4) .ct-step-n { color: var(--acq); }
  .ct-panel { background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); }
  .ct-form-card { border-radius: var(--u-18); }
  .ct-signup { background-color: var(--field); background-image: var(--pat-ledger); border-color: var(--field-line); box-shadow: none; }
  .ct-faq details[open] summary { color: var(--text); }
  .ct-faq details[open] { background: transparent; }
  .ct-post { box-shadow: var(--shadow-card); }
  .ct-post:hover { box-shadow: var(--shadow-lift); }
  .ct-toc { padding: var(--u-16); border-radius: var(--u-14); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); }
  .ct-toc a { padding: var(--u-5) var(--u-8); border-radius: var(--u-6); }
  .ct-toc a:hover { background: var(--raised); }
  .ct-utility { background-color: var(--field); background-image: var(--pat-ledger); border-bottom: var(--hair) solid var(--field-line); padding: var(--u-96) 0 var(--u-112); }
  .ct-utility-card { padding: var(--u-40) var(--u-32); border-radius: var(--u-20); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-frame); }
  .ct-utility-card .eyebrow { justify-content: center; }
  .ct-code-tag { display: inline-flex; align-items: center; gap: var(--u-8); height: var(--u-28); padding: 0 var(--u-12); border-radius: var(--r-pill); background: var(--raised); font-family: var(--font-ui); font-weight: 600; color: var(--text2); }
  .ct-code-tag::before { content: ""; width: var(--u-76); height: var(--u-7); background: var(--pat-sigbar) no-repeat left center; }
  @media (max-width: 47.99rem) {
    .ct-hero { padding: var(--u-40) 0 var(--u-36); }
    .ct-hero + .ct-lead, .ct-hero + .ct-legal { padding-top: var(--u-32); }
    .ct-utility { padding: var(--u-40) 0 var(--u-56); }
    .ct-utility-card { padding: var(--u-28) var(--u-18); }
  }
  .ct-cover { position: relative; display: grid; align-content: space-between; gap: var(--u-12); width: 100%; aspect-ratio: 40 / 21; padding: var(--u-18) var(--u-20); border-radius: var(--r-inset); overflow: hidden; background-color: color-mix(in srgb, var(--h) var(--tint-soft), var(--surface)); background-image: var(--pat-ledger); box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--h) var(--tint-strong), var(--line)); }
  .ct-cover-k { display: flex; align-items: center; gap: var(--u-10); font-size: var(--u-12); font-weight: 600; color: var(--text2); }
  .ct-cover-k .sigbar i { width: var(--u-10); }
  .ct-cover-t { font-family: var(--font-display); font-weight: 700; font-size: var(--u-26); line-height: 1.02; letter-spacing: -0.03em; color: var(--h); max-width: 11ch; text-wrap: balance; }
  .ct-cover-bars { display: grid; gap: var(--u-5); }
  .ct-cover-bars i { display: block; height: var(--u-6); border-radius: var(--r-pill); background: var(--hd); opacity: 0.85; }
  .ct-cover-bars i:nth-child(2) { opacity: 0.55; }
  .ct-cover-bars i:nth-child(3) { opacity: 0.3; }
  .ct-cover-sm { padding: var(--u-12) var(--u-14); }
  .ct-cover-sm .ct-cover-t { font-size: var(--u-18); }
  .ct-cover-sm .ct-cover-k { display: none; }
  .ct-cover-lg .ct-cover-t { font-size: var(--u-40); }
  .ct-cover-xl { aspect-ratio: 40 / 15; padding: var(--u-32) var(--u-36); border-radius: var(--r-mkt-card); }
  .ct-cover-xl .ct-cover-t { font-size: clamp(var(--u-36), 5vw, var(--u-64)); max-width: 14ch; }
  .ct-cover-xl .ct-cover-bars { max-width: 40%; }
  .ct-post-row .ct-cover { width: var(--u-200); flex: none; aspect-ratio: 4 / 3; }
  @media (max-width: 47.99rem) { .ct-post-row .ct-cover { width: 100%; aspect-ratio: 40 / 21; } .ct-cover-xl { aspect-ratio: 40 / 21; padding: var(--u-20); } }
}

/* site-home.css */
/* Home (R6-Home-light, R6-Home-mobile; DECISIONS.md D-520..D-525). Values follow the boards; tokens only (--u-N is
   N px). Inside the hero's app mock (.hm-app) the app type scale applies, as on the board (R5-Type-scale). */
@layer site {
  .hm { font-size: var(--u-16); line-height: 1.55; }
  :where(.hm) :where(p, h2, h3, ul, ol) { margin: 0; }
  .hm .wrap { width: min(var(--u-1152), calc(100% - 2 * var(--gutter))); }
  :where(.hm) a { color: inherit; }

  /* utilities */
  .hm-row { display: flex; align-items: center; gap: var(--u-8); }
  .hm-wrap { flex-wrap: wrap; }
  .hm-g4 { gap: var(--u-4); } .hm-g6 { gap: var(--u-6); } .hm-g7 { gap: var(--u-7); } .hm-g8 { gap: var(--u-8); } .hm-g10 { gap: var(--u-10); }
  .hm-g12 { gap: var(--u-12); } .hm-g14 { gap: var(--u-14); } .hm-g16 { gap: var(--u-16); }
  .hm-between { justify-content: space-between; }
  .hm-end { justify-content: flex-end; }
  .hm-start { align-items: flex-start; }
  .hm-selfstart { align-self: flex-start; }
  .hm-push { margin-left: auto; }
  .hm-auto { margin-top: auto; }
  .hm-grow { flex: 1; min-width: 0; }
  .hm-inl { display: inline-flex; align-items: center; }
  .hm-block { display: block; }
  .hm-center { text-align: center; }
  .hm-centerrow { justify-content: center; }
  .hm-nowrap { white-space: nowrap; }
  .hm-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .hm-clamp1, .hm-clamp2 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .hm-clamp1 { -webkit-line-clamp: 1; } .hm-clamp2 { -webkit-line-clamp: 2; }
  .hm-muted { color: var(--muted); } .hm-t2 { color: var(--text2); }
  .hm-b5 { font-weight: 500; } .hm-b6 { font-weight: 600; }
  .hm-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
  .hm-s12 { font-size: var(--fs-12-5); } .hm-s13 { font-size: var(--u-13); } .hm-s14 { font-size: var(--u-14); } .hm-s15 { font-size: var(--u-15); }
  .hm-s17 { font-size: var(--u-17); } .hm-s19 { font-size: var(--u-19); } .hm-s20 { font-size: var(--u-20); } .hm-s21 { font-size: var(--u-21); }
  .hm-s22 { font-size: var(--u-22); } .hm-s24 { font-size: var(--u-24); }
  .hm-mt2 { margin-top: var(--u-2); } .hm-mt4 { margin-top: var(--u-4); } .hm-mt6 { margin-top: var(--u-6); } .hm-mt8 { margin-top: var(--u-8); }
  .hm-mt10 { margin-top: var(--u-10); } .hm-mt12 { margin-top: var(--u-12); } .hm-mt14 { margin-top: var(--u-14); } .hm-mt16 { margin-top: var(--u-16); }
  .hm-mt22 { margin-top: var(--u-22); } .hm-mt24 { margin-top: var(--u-24); } .hm-mt26 { margin-top: var(--u-26); } .hm-mt36 { margin-top: var(--u-36); }
  .hm-ml6 { margin-left: var(--u-6); } .hm-ml8 { margin-left: var(--u-8); }
  .hm-lh15 { line-height: 1.5; } .hm-lh165 { line-height: 1.65; }
  .hm-max30 { max-width: 30em; }
  .hm-pad8 { padding: var(--u-8); } .hm-pad18 { padding: var(--u-18); } .hm-pad22 { padding: var(--u-22); }
  .hm-grid2 { display: grid; gap: var(--u-2); } .hm-grid6 { display: grid; gap: var(--u-6); } .hm-grid10 { display: grid; gap: var(--u-10); } .hm-grid12 { display: grid; gap: var(--u-12); }

  /* type */
  .hm-h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; font-size: var(--fs-h2); margin-top: var(--u-22); max-width: 16em; }
  .hm-h2-md { font-size: var(--u-56); max-width: 15em; }
  .hm-h2-sm { font-size: var(--u-44); }
  .hm-h2-34 { font-size: var(--u-34); margin-top: 0; letter-spacing: -0.03em; line-height: 1.08; }
  .hm-h2-30 { font-size: var(--u-30); letter-spacing: -0.03em; line-height: 1.08; max-width: none; }
  .hm-h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
  .hm-sub { font-size: var(--fs-sub); line-height: 1.5; color: var(--text2); }
  .hm-head .hm-sub { margin-top: var(--u-22); max-width: 34em; }
  .hm-head.hm-center { margin: 0 auto; }
  .hm-head.hm-center .hm-h2, .hm-head.hm-center .hm-sub { margin-left: auto; margin-right: auto; }
  .hm-head.hm-center .hm-h2 { max-width: 14em; }
  .hm-head.hm-center .hm-eyebrow { justify-content: center; }
  .hm-eyebrow { display: flex; align-items: center; gap: var(--u-12); font-size: var(--u-14); font-weight: 600; line-height: 1.4; color: var(--text2); }
  .hm-rule { flex: none; display: inline-block; width: var(--u-28); height: var(--u-3); border-radius: var(--u-2); background: var(--coral); }
  .hm-rule-c { display: block; width: var(--u-44); margin: 0 auto; }
  .hm-n { font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
  .hm-eyebrow-h1 { margin: 0; }
  .hm-display { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.045em; max-width: 13em; margin-top: var(--u-28); color: var(--text); }
  .hm-statement { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-statement); letter-spacing: -0.055em; line-height: 0.95; margin-top: var(--u-26); }
  .hm-close { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-statement-2); letter-spacing: -0.05em; line-height: 0.98; max-width: 11em; margin: var(--u-28) auto 0; }
  .hm-prose { font-size: var(--u-15); line-height: 1.55; color: var(--text); }
  .hm-hl { background: transparent; color: var(--text); font-weight: 600; padding: 0; }
  .hm-hl-c { color: var(--hl); }

  /* sections */
  .hm-sec { padding: var(--s-34) 0; position: relative; }
  .hm-sunken { background: var(--sunken); border-top: var(--hair) solid var(--line); border-bottom: var(--hair) solid var(--line); }
  .hm-top-line { border-top: var(--hair) solid var(--line); }
  .hm-inv { background: var(--bg); color: var(--text); }
  .hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--u-64); align-items: end; }
  .hm-split-75 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

  /* buttons */
  .hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--u-8); min-height: var(--u-44); padding: 0 var(--u-20); border-radius: var(--u-10); font-weight: 600; font-size: var(--u-15); line-height: 1; white-space: nowrap; text-decoration: none; border: var(--hair) solid transparent; cursor: pointer; font-family: var(--font-ui); }
  .hm .hm-btn-primary { background: var(--btn); color: var(--on-btn); }
  .hm .hm-btn-primary:hover { background: var(--btnhov); }
  .hm .hm-btn-sec { background: var(--surface); border-color: var(--line2); color: var(--text); box-shadow: var(--shadow-card); }
  .hm .hm-btn-sec:hover { background: var(--raised); }
  .hm .hm-btn-ink { background: var(--text); color: var(--surface); }
  .hm .hm-btn-ghost { background: transparent; color: var(--text2); }
  .hm-btn-lg { min-height: var(--u-52); padding: 0 var(--u-26); font-size: var(--u-16); border-radius: var(--u-12); }
  .hm-btn-sm { min-height: var(--u-36); padding: 0 var(--u-14); font-size: var(--u-14); border-radius: var(--u-9); }
  .hm-btn-xs { min-height: var(--u-30); padding: 0 var(--u-10); font-size: var(--u-13); border-radius: var(--u-8); gap: var(--u-6); }

  /* chips, signals, rings */
  .hm-chip { display: inline-flex; align-items: center; gap: var(--u-6); height: var(--u-26); padding: 0 var(--u-9); border-radius: var(--u-7); background: var(--raised); color: var(--text2); font-size: var(--fs-12-5); font-weight: 500; white-space: nowrap; }
  .hm-chip-link { text-decoration: none; }
  .hm-chip-link:hover { color: var(--text); background: var(--line); }
  .hm-tchip { display: inline-flex; align-items: center; height: var(--u-26); padding: 0 var(--u-9); border-radius: var(--u-7); font-size: var(--fs-12-5); font-weight: 600; white-space: nowrap; color: var(--hue); background: color-mix(in srgb, var(--hue) 13%, transparent); }
  .hm .sp-rd { --hue: var(--sp-rd); } .hm .sp-prod { --hue: var(--sp-prod); } .hm .sp-infra { --hue: var(--sp-infra); } .hm .sp-gtm { --hue: var(--sp-gtm); }
  .hm .sp-hire { --hue: var(--sp-hire); } .hm .sp-exp { --hue: var(--sp-exp); } .hm .sp-ops { --hue: var(--sp-ops); } .hm .sp-ma { --hue: var(--sp-ma); } .hm .sp-part { --hue: var(--sp-part); }
  .hm-new { display: inline-flex; align-items: center; height: var(--u-20); padding: 0 var(--u-7); border-radius: var(--u-6); background: var(--raised); color: var(--text); font-size: var(--fs-11-5); font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 var(--hair) var(--line2); }
  .hm-dot { width: var(--u-7); height: var(--u-7); border-radius: var(--r-round); display: inline-block; flex: none; background: var(--sig-dot, var(--line2)); }
  .hm-dot-g { background: var(--line2); }
  .hm-sig { display: inline-flex; align-items: center; gap: var(--u-6); font-size: var(--u-13); font-weight: 600; white-space: nowrap; }
  .sig-fund { color: var(--fund); --sig-dot: var(--fund-dot); } .sig-hire { color: var(--hire); --sig-dot: var(--hire-dot); }
  .sig-lead { color: var(--lead); --sig-dot: var(--lead-dot); } .sig-acq { color: var(--acq); --sig-dot: var(--acq-dot); }
  .sig-dot-fund { --sig-dot: var(--fund-dot); } .sig-dot-hire { --sig-dot: var(--hire-dot); } .sig-dot-acq { --sig-dot: var(--acq-dot); }
  .hm-sep { width: var(--u-3); height: var(--u-3); border-radius: var(--r-round); background: var(--muted); display: inline-block; flex: none; opacity: 0.7; }
  .hm-ring { display: inline-flex; align-items: center; gap: var(--u-7); white-space: nowrap; color: var(--ring-c); }
  .hm-ring.fit-top { --ring-c: var(--fit-top); } .hm-ring.fit-strong { --ring-c: var(--fit-strong); } .hm-ring.fit-mod { --ring-c: var(--fit-mod); } .hm-ring.fit-low { --ring-c: var(--fit-low); }
  .hm-ring-track { stroke: color-mix(in srgb, var(--line2) 75%, transparent); }
  .hm-ring-arc { stroke: var(--ring-c); }
  .hm-ring-txt { display: inline-flex; flex-direction: column; line-height: 1.1; }
  .hm-ring-pc { font-family: var(--font-mono); font-weight: 600; font-size: var(--u-14); }
  .hm-ring-tier { font-size: var(--u-12); font-weight: 500; color: var(--muted); }
  .hm-conf { display: inline-flex; gap: var(--u-2); }
  .hm-conf i { width: var(--u-8); height: var(--u-8); border-radius: var(--u-2); background: var(--line2); }
  .hm-conf i.on { background: var(--text2); }
  .hm-sq { width: var(--u-8); height: var(--u-8); border-radius: var(--u-2); flex: none; display: inline-block; background: var(--hue); }
  .hm-fnbar { display: flex; gap: var(--u-2); border-radius: var(--u-5); overflow: hidden; }
  .hm-fnbar span { display: block; height: var(--u-10); background: color-mix(in srgb, var(--hue) 82%, var(--surface)); }
  .hm-fnbar-thin span { height: var(--u-8); }
  .hm-fnlegend { display: flex; flex-wrap: wrap; gap: var(--u-6) var(--u-16); margin-top: var(--u-10); font-size: var(--u-13); }
  .hm-fnlegend li { display: inline-flex; align-items: center; gap: var(--u-6); white-space: nowrap; }
  .hm-logo { flex: none; display: inline-grid; place-items: center; overflow: hidden; background: var(--surface); border: var(--hair) solid var(--line); color: var(--muted); font-family: var(--font-display); font-weight: 700; width: var(--u-36); height: var(--u-36); border-radius: var(--u-9); font-size: var(--u-15); }
  .hm-logo img { width: 100%; height: 100%; object-fit: contain; }
  .hm-logo-xs { width: var(--u-24); height: var(--u-24); border-radius: var(--u-7); font-size: var(--u-10); }
  .hm-logo-sm { width: var(--u-28); height: var(--u-28); border-radius: var(--u-8); font-size: var(--u-12); }
  .hm-logo-lg { width: var(--u-44); height: var(--u-44); border-radius: var(--u-12); font-size: var(--u-19); }
  .hm-flag { width: var(--u-18); height: var(--u-13); border-radius: var(--u-2); object-fit: cover; box-shadow: 0 0 0 var(--hair) var(--line); }
  .hm-card { background: var(--surface); border: var(--hair) solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
  .hm-flat { box-shadow: none; padding: 0; overflow: hidden; }
  .hm-framed { box-shadow: var(--shadow-frame); }
  .hm-kbd { font-family: var(--font-mono); font-size: var(--u-11); color: var(--muted); border: var(--hair) solid var(--line2); border-radius: var(--u-5); padding: var(--u-1) var(--u-5); line-height: 1.3; }
  .hm-seg { display: inline-flex; padding: var(--u-3); border-radius: var(--u-10); background: var(--raised); gap: var(--u-2); width: max-content; }
  .hm-seg > span { display: inline-flex; align-items: center; gap: var(--u-6); height: var(--u-30); padding: 0 var(--u-12); border-radius: var(--u-8); font-size: var(--u-13); font-weight: 500; color: var(--muted); white-space: nowrap; }
  .hm-seg > span.on { background: var(--seg-on); color: var(--int); font-weight: 600; box-shadow: var(--shadow-card); }
  .hm-seg-xs > span { height: var(--u-26); font-size: var(--u-12); padding: 0 var(--u-10); }
  .hm-int { color: var(--int); } .hm-later { color: var(--later); } .hm-skipc { color: var(--skip); }
  .hm-lk { display: inline-flex; align-items: center; gap: var(--u-6); height: var(--u-30); padding: 0 var(--u-10); border-radius: var(--u-8); background: var(--raised); color: var(--text2); font-size: var(--u-13); font-weight: 500; white-space: nowrap; border: var(--hair) solid var(--line); }
  .hm-lk-ico { width: var(--u-30); padding: 0; justify-content: center; }
  .hm-ib { width: var(--u-32); height: var(--u-32); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--u-9); border: var(--hair) solid var(--line); background: var(--surface); color: var(--text2); flex: none; }
  .hm-ib-sm { width: var(--u-30); height: var(--u-30); }

  /* Hero */
  .hm-hero { position: relative; padding-top: var(--s-28); }
  .hm-hero-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--u-48); align-items: end; margin-top: var(--u-40); }
  .hm-hero-sub { max-width: 32em; }
  .hm-ctas { display: flex; flex-wrap: wrap; gap: var(--u-12); }
  .hm-stage { position: relative; margin-top: var(--s-28); padding-bottom: var(--u-120); }
  .hm-stage-band { position: absolute; left: 0; right: 0; top: 50%; bottom: 0; background: var(--sunken); border-top: var(--hair) solid var(--line); }
  .hm-shot { position: relative; width: var(--u-950); margin: 0 auto; }
  .hm-frame { position: relative; border-radius: var(--r-frame); overflow: hidden; border: var(--hair) solid var(--line2); box-shadow: var(--shadow-frame); background: var(--surface); }
  .hm-frame-bar { position: relative; display: flex; align-items: center; gap: var(--u-7); height: var(--u-36); padding: 0 var(--u-14); background: var(--raised); border-bottom: var(--hair) solid var(--line); }
  .hm-url { margin: 0 auto; padding: var(--u-3) var(--u-60); border-radius: var(--u-6); background: var(--surface); font-family: var(--font-mono); font-size: var(--fs-12-5); color: var(--muted); }
  .hm-sample { position: absolute; right: var(--u-14); font-size: var(--u-12); font-weight: 600; color: var(--muted); }
  .hm-frame-view { height: var(--u-620); overflow: hidden; }
  .hm-zoom { zoom: 0.66; }
  .hm-caption { position: relative; text-align: center; margin-top: var(--u-24); font-size: var(--u-13); color: var(--muted); padding: 0 var(--u-18); }
  .hm-callout { position: absolute; display: flex; align-items: center; z-index: 4; }
  .hm-callout-lbl { padding: var(--u-7) var(--u-11); border-radius: var(--u-9); background: var(--text); color: var(--surface); font-size: var(--u-13); font-weight: 600; line-height: 1.3; white-space: nowrap; box-shadow: var(--shadow-pop); }
  .hm-callout-ln { height: var(--hair); background: var(--text); }
  .hm-callout-pt { width: var(--u-9); height: var(--u-9); border-radius: var(--r-round); background: var(--surface); box-shadow: 0 0 0 var(--u-2) var(--text); flex: none; }
  .hm-c1 { right: calc(100% - var(--u-125)); top: var(--u-273); } .hm-c1 .hm-callout-ln { width: var(--u-150); }
  .hm-c2 { left: var(--u-931); top: var(--u-80); flex-direction: row-reverse; } .hm-c2 .hm-callout-ln { width: var(--u-40); }
  .hm-c3 { right: calc(100% - var(--u-375)); top: var(--u-174); } .hm-c3 .hm-callout-ln { width: var(--u-400); }
  .hm-c4 { right: calc(100% - var(--u-355)); top: var(--u-309); } .hm-c4 .hm-callout-ln { width: var(--u-380); }
  .hm-c5 { left: var(--u-911); top: var(--u-506); flex-direction: row-reverse; } .hm-c5 .hm-callout-ln { width: var(--u-40); }
  .hm-marker, .hm-legend { display: none; }

  /* The app at 1440 x 1000, shown at 66% (R5 app type scale) */
  .hm-app { display: flex; width: var(--u-1440); height: var(--u-1000); overflow: hidden; background: var(--bg); font-size: var(--u-14); line-height: 1.45; text-align: left; }
  .hm-app .hm-s17 { font-size: var(--u-15); } .hm-app .hm-s15 { font-size: var(--u-14); } .hm-app .hm-s14 { font-size: var(--fs-13-5); }
  .hm-app .hm-s13 { font-size: var(--fs-12-5); } .hm-app .hm-s12 { font-size: var(--u-12); }
  .hm-app .hm-h3 { font-family: var(--font-ui); font-weight: 600; font-size: var(--u-15); letter-spacing: -0.005em; line-height: 1.3; }
  .hm-app .hm-sig { font-size: var(--fs-12-5); }
  .hm-app .hm-ring-pc { font-size: var(--u-13); } .hm-app .hm-ring-tier { font-size: var(--fs-11-5); }
  .hm-app .hm-tchip { height: var(--u-24); font-size: var(--u-12); }
  .hm-app .hm-lk { height: var(--u-28); font-size: var(--fs-12-5); padding: 0 var(--u-9); }
  .hm-app .hm-kbd { font-size: var(--fs-10-5); }
  .hm-app .hm-btn-sm { min-height: var(--u-32); padding: 0 var(--u-12); font-size: var(--u-13); border-radius: var(--u-8); }
  .hm-rail { flex: 0 0 var(--u-72); background: var(--sunken); border-right: var(--hair) solid var(--line); padding: var(--u-18) var(--u-14); display: flex; flex-direction: column; align-items: center; gap: var(--u-2); }
  .hm-rail-logo { display: inline-flex; align-items: baseline; height: var(--u-40); margin-bottom: var(--u-12); font-family: var(--font-display); font-weight: 700; font-size: var(--u-30); line-height: 1.2; color: var(--text); }
  .hm-rail-dot { width: var(--u-5); height: var(--u-5); border-radius: var(--r-round); background: var(--coral); margin-left: var(--u-2); }
  .hm-rail-btn { display: flex; align-items: center; justify-content: center; width: var(--u-44); height: var(--u-40); border-radius: var(--u-10); color: var(--muted); }
  .hm-rail-btn.on { color: var(--text); background: var(--raised); }
  .hm-rail-search { border: var(--hair) solid var(--line); background: var(--surface); margin-bottom: var(--u-8); }
  .hm-rail-sp { height: var(--u-20); }
  .hm-list { flex: 0 0 var(--u-392); border-right: var(--hair) solid var(--line); background: var(--sunken); padding: 0 var(--u-12); display: flex; flex-direction: column; }
  .hm-list-head { display: flex; align-items: center; justify-content: space-between; height: var(--u-60); padding: 0 var(--u-6); }
  .hm-list-title { font-weight: 600; font-size: var(--u-15); }
  .hm-tabs { display: flex; border-bottom: var(--hair) solid var(--line); }
  .hm-tabs-list { gap: var(--u-18); padding: 0 var(--u-6); }
  .hm-tabs-detail { gap: var(--u-24); }
  .hm-tab { position: relative; display: inline-flex; align-items: center; gap: var(--u-7); height: var(--u-40); font-size: var(--fs-13-5); font-weight: 500; color: var(--muted); white-space: nowrap; }
  .hm-tabs-list .hm-tab { height: var(--u-42); font-size: var(--u-14); }
  .hm-tab.on { color: var(--text); font-weight: 600; }
  .hm-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--hair)); height: var(--u-2); border-radius: var(--u-2) var(--u-2) 0 0; background: var(--text); }
  .hm-items { display: grid; gap: var(--u-2); margin-top: var(--u-10); }
  .hm-item { display: flex; gap: var(--u-12); padding: var(--u-14); border-radius: var(--u-12); text-decoration: none; color: inherit; }
  .hm-item.on { background: var(--surface); box-shadow: 0 0 0 var(--hair) var(--line2), var(--shadow-card); }
  .hm-item-main { min-width: 0; flex: 1; display: block; }
  .hm-detail { flex: 1; min-width: 0; padding: 0 var(--u-32); overflow: hidden; }
  .hm-detail-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--u-12); height: var(--u-60); }
  .hm-ident { display: flex; gap: var(--u-18); align-items: flex-start; padding-top: var(--u-8); }
  .hm-cname { font-family: var(--font-display); font-weight: 600; font-size: var(--u-24); letter-spacing: -0.02em; line-height: 1.2; text-decoration: none; color: var(--text); }
  .hm-cname-sm { font-size: var(--u-17); letter-spacing: -0.015em; }
  .hm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-9); font-size: var(--fs-13-5); color: var(--text2); }
  .hm-fitlink { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: var(--u-4); }
  .hm-triage { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-10); padding: var(--u-12) 0; margin-top: var(--u-16); border-bottom: var(--hair) solid var(--line); }
  .hm-triage .hm-seg > span { height: var(--u-34); padding: 0 var(--u-10); font-size: var(--fs-12-5); }
  .hm-cards { display: flex; flex-direction: column; gap: var(--u-16); padding: var(--u-18) 0; }
  .hm-pad { padding: var(--u-20) var(--u-22); }
  .hm-icotile { flex: none; width: var(--u-36); height: var(--u-36); border-radius: var(--u-10); display: inline-flex; align-items: center; justify-content: center; background: var(--raised); }
  .hm-divide { padding-top: var(--u-16); border-top: var(--hair) solid var(--line); }
  .hm-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--u-28); }
  .hm-spendlist { display: grid; gap: var(--u-8); margin-top: var(--u-8); }
  .hm-spendlist li { display: flex; align-items: center; gap: var(--u-8); }
  .hm-fits { display: grid; grid-template-columns: 1fr 1fr; gap: var(--u-10) var(--u-28); }
  .hm-fits li { display: flex; gap: var(--u-10); align-items: flex-start; }
  .hm-fits li > span:first-child { margin-top: var(--u-4); }
  .hm-fit-ok { color: var(--fit-top); }

  /* 01 problem */
  .hm-vs { display: grid; grid-template-columns: 1fr var(--u-64) 1fr; margin-top: var(--u-64); align-items: center; }
  .hm-vs-word { text-align: center; font-size: var(--u-14); font-weight: 600; color: var(--muted); }
  .hm-db { opacity: 0.9; }
  .hm-cardhead { display: flex; align-items: center; justify-content: space-between; padding: var(--u-14) var(--u-16); border-bottom: var(--hair) solid var(--line); }
  .hm-cardfoot { padding: var(--u-14) var(--u-16); border-top: var(--hair) solid var(--line); }
  .hm-dbt { width: 100%; border-collapse: collapse; font-size: var(--u-14); }
  .hm-dbt th { text-align: left; padding: var(--u-9) var(--u-12); font-weight: 500; font-size: var(--fs-12-5); color: var(--muted); }
  .hm-dbt td { padding: var(--u-9) var(--u-12); border-top: var(--hair) solid var(--line); }
  .hm-skel { display: block; width: 72%; height: var(--u-10); border-radius: var(--u-5); background: var(--raised); }
  .hm-feedcards { display: grid; gap: var(--u-10); padding: var(--u-14); }
  .hm-feedcard { display: flex; gap: var(--u-12); padding: var(--u-14) var(--u-16); }

  /* 02 four signals */
  .hm-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--u-16); margin-top: var(--u-64); }
  .hm-bento > .hm-card { display: flex; flex-direction: column; gap: var(--u-12); padding: var(--u-26); }
  .hm-b-fund { grid-column: span 2; grid-row: span 2; padding: var(--u-30); gap: var(--u-16); overflow: hidden; }
  .hm-bento > .hm-b-fund { padding: var(--u-30); gap: var(--u-16); }
  .hm-b-hire { grid-column: span 2; }
  .hm-kicker { display: flex; align-items: center; gap: var(--u-8); font-size: var(--u-14); font-weight: 600; }
  .hm-moneybox { margin-top: auto; padding: var(--u-18); border-radius: var(--u-14); background: var(--raised); display: grid; grid-template-columns: auto 1fr; gap: var(--u-22); align-items: center; }
  .hm-money { padding-right: var(--u-22); border-right: var(--hair) solid var(--line); }
  .hm-big { font-size: var(--u-28); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
  .hm-seat { margin-top: auto; padding: var(--u-12) var(--u-14); border-radius: var(--u-12); border: var(--hair) solid var(--line); }
  .hm-more { grid-column: span 4; padding: var(--u-18) var(--u-22); border-radius: var(--r-card); border: var(--hair) dashed var(--line2); display: flex; align-items: center; gap: var(--u-12); }

  /* 03 signature */
  .hm-trio { display: grid; grid-template-columns: minmax(0, 1fr) var(--u-32) var(--u-300) var(--u-32) minmax(0, 1fr); gap: var(--u-12); margin-top: var(--u-64); align-items: center; }
  .hm-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); }
  .hm-flip svg { transform: scaleX(-1); }
  .hm-verdict { text-align: center; padding: var(--u-30) var(--u-22); border-radius: var(--u-20); background: var(--surface); box-shadow: 0 0 0 var(--hair) var(--line2), var(--shadow-frame); }
  .hm-verdict-ico { display: inline-flex; width: var(--u-56); height: var(--u-56); border-radius: var(--r-round); align-items: center; justify-content: center; background: var(--text); color: var(--bg); }
  .hm-roles { margin-top: var(--u-8); }
  .hm-roles li { display: flex; align-items: center; gap: var(--u-10); padding: var(--u-9) 0; border-top: var(--hair) solid var(--line); }
  .hm-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-16); margin-top: var(--u-40); }
  .hm-three li { padding: var(--u-22); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); }

  /* 04 how it works */
  .hm-steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-32); margin-top: var(--u-64); }
  .hm-steps::before { content: ""; position: absolute; left: var(--u-20); right: var(--u-20); top: var(--u-20); height: var(--hair); background: var(--line2); }
  .hm-steps > li { display: flex; flex-direction: column; gap: var(--u-16); }
  .hm-stepn { position: relative; z-index: 1; font-family: var(--font-mono); font-size: var(--u-15); font-weight: 600; width: var(--u-40); height: var(--u-40); border-radius: var(--r-round); display: inline-flex; align-items: center; justify-content: center; background: var(--bg); box-shadow: 0 0 0 var(--hair) var(--line2); }
  .hm-paste { display: flex; padding: var(--u-8) var(--u-10); border-radius: var(--u-8); border: var(--hair) solid var(--line2); }
  .hm-seg-fit { width: max-content; }

  /* 05 a feed that learns */
  .hm-learn { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--u-64); align-items: center; }
  .hm-reacts { display: grid; gap: var(--u-12); margin-top: var(--u-34); }
  .hm-reacts li { display: flex; align-items: center; gap: var(--u-14); }
  .hm-reactico { flex: none; width: var(--u-36); height: var(--u-36); border-radius: var(--u-10); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); box-shadow: 0 0 0 var(--hair) var(--line); }
  .hm-learn-mock { position: relative; padding: 0 0 var(--u-40) var(--u-40); }
  .hm-fcard { padding: var(--u-18) var(--u-20) var(--u-8); box-shadow: var(--shadow-frame); font-size: var(--u-14); line-height: 1.45; }
  .hm-fcard .hm-sig { font-size: var(--fs-12-5); }
  .hm-seatbox { margin-top: var(--u-16); display: flex; gap: var(--u-16); align-items: center; padding: var(--u-16) var(--u-18); border-radius: var(--u-12); border: var(--hair) solid var(--line); }
  .hm-seatico { flex: none; width: var(--u-40); height: var(--u-40); border-radius: var(--r-round); display: inline-flex; align-items: center; justify-content: center; background: var(--raised); }
  .hm-whynow { margin-top: var(--u-12); padding: var(--u-12) var(--u-14); border-radius: var(--u-10); background: var(--raised); }
  .hm-cardfooter { display: flex; align-items: center; margin-top: var(--u-14); padding-top: var(--u-10); border-top: var(--hair) solid var(--line); }
  .hm-react { display: flex; align-items: center; gap: var(--u-4); }
  .hm-rbtn { display: inline-flex; align-items: center; gap: var(--u-7); height: var(--u-32); padding: 0 var(--u-10); border-radius: var(--u-9); font-size: var(--u-13); font-weight: 500; color: var(--text2); }
  .hm-rbtn.on { background: color-mix(in srgb, var(--int) 14%, transparent); color: var(--int); font-weight: 600; }
  .hm-pop { position: absolute; left: calc(-1 * var(--u-8)); bottom: calc(-1 * var(--u-6)); width: var(--u-300); overflow: hidden; background: var(--overlay); border: var(--hair) solid var(--line2); border-radius: var(--u-14); box-shadow: var(--shadow-pop); }
  .hm-pop-h { padding: var(--u-12) var(--u-12) var(--u-8); }
  .hm-pop li { display: flex; align-items: center; gap: var(--u-10); padding: var(--u-9) var(--u-12); border-top: var(--hair) solid var(--line); }
  .hm-motion { position: absolute; right: 0; bottom: calc(-1 * var(--u-28)); }

  /* 06 recency */
  .hm-rec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--u-72); margin-top: var(--u-64); align-items: start; }
  .hm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-40); }
  .hm-stats li { display: flex; flex-direction: column; }
  .hm-statnum { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-display-figure); letter-spacing: -0.045em; line-height: 1; }
  .hm-statbar { display: block; height: var(--u-6); border-radius: var(--u-3); background: var(--raised); margin-top: var(--u-18); overflow: hidden; }
  .hm-statbar span { display: block; height: 100%; background: var(--text); border-radius: var(--u-3); }

  /* 07 MCP: the address is the one thing to take away, so it sits in the header; each client tab swaps its own steps
     and its own window (D-567). Tabs are underline + weight, like every tab bar. */
  .hm-addr { padding: var(--u-20) var(--u-22); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-card); }
  .hm-addr-row { display: flex; align-items: center; justify-content: space-between; gap: var(--u-12); margin-top: var(--u-8); padding: var(--u-6) var(--u-6) var(--u-6) var(--u-14); border-radius: var(--u-10); background: var(--raised); }
  .hm-addr-url { font-size: var(--u-17); font-weight: 500; color: var(--text); }
  .hm-addr-plans { display: grid; gap: var(--u-8); margin-top: var(--u-16); padding-top: var(--u-14); border-top: var(--hair) solid var(--line); font-size: var(--u-14); }
  .hm-addr-plans li { display: grid; grid-template-columns: var(--u-80) 1fr; gap: var(--u-12); }
  .hm-ctabs { display: flex; gap: var(--u-30); margin-top: var(--u-64); border-bottom: var(--hair) solid var(--line); overflow-x: auto; scrollbar-width: none; }
  .hm-ctabs button { position: relative; display: inline-flex; align-items: center; height: var(--u-46); padding: 0; border: 0; background: none; cursor: pointer; font-family: var(--font-ui); font-size: var(--u-15); font-weight: 500; color: var(--muted); white-space: nowrap; }
  .hm-ctabs button:hover { color: var(--text2); }
  .hm-ctabs button[aria-selected="true"] { color: var(--text); font-weight: 600; }
  .hm-ctabs button[aria-selected="true"]::after::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--u-2); border-radius: var(--u-2) var(--u-2) 0 0; background: var(--text); }
  .hm-mcp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--u-64); align-items: start; margin-top: var(--u-40); }
  .hm-mcp[hidden] { display: none; }
  .hm-mcp-steps { display: grid; gap: var(--u-18); margin-top: var(--u-22); font-size: var(--u-16); line-height: 1.5; color: var(--text2); }
  .hm-mcp-steps li { display: flex; gap: var(--u-14); align-items: flex-start; }
  .hm-mcp-steps .hm-numdot { margin-top: var(--u-1); }
  .hm-mcp-steps b { color: var(--text); font-weight: 600; }
  .hm-mcp-steps code { font-family: var(--font-mono); font-size: var(--u-14); color: var(--text); overflow-wrap: anywhere; word-break: normal; }
  .hm-numdot { width: var(--u-26); height: var(--u-26); border-radius: var(--r-round); display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--raised); color: var(--text); font-family: var(--font-mono); font-size: var(--u-13); font-weight: 600; box-shadow: inset 0 0 0 var(--hair) var(--line2); }
  .hm-win { border-radius: var(--u-14); background: var(--surface); border: var(--hair) solid var(--line); overflow: hidden; box-shadow: var(--shadow-card); }
  .hm-win-bar { display: flex; align-items: center; gap: var(--u-6); padding: var(--u-9) var(--u-12); border-bottom: var(--hair) solid var(--line); background: var(--raised); font-size: var(--fs-12-5); color: var(--muted); }
  .hm-win-bar > span:last-child { margin-left: var(--u-6); }
  .hm-win-body { padding: var(--u-16); height: var(--u-212); position: relative; font-size: var(--u-14); line-height: 1.45; }
  .hm-mcp .hm-win { box-shadow: var(--shadow-frame); }
  .hm-mcp .hm-win-body { height: auto; padding: var(--u-22) var(--u-24); }
  .hm-chat { display: flex; flex-direction: column; gap: var(--u-12); }
  .hm-bubble { align-self: flex-end; max-width: 88%; padding: var(--u-9) var(--u-12); border-radius: var(--u-12) var(--u-12) var(--u-3) var(--u-12); background: var(--raised); font-size: var(--u-14); }
  .hm-tool { display: inline-flex; align-items: center; gap: var(--u-6); align-self: flex-start; height: var(--u-26); padding: 0 var(--u-10); border-radius: var(--r-pill); font-size: var(--u-12); color: var(--muted); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
  .hm-tool .hm-num { color: var(--text2); }
  .hm-chat ul { border-bottom: var(--hair) solid var(--line); }
  .hm-chat li { display: flex; align-items: center; gap: var(--u-10); padding: var(--u-9) 0; border-top: var(--hair) solid var(--line); }
  .hm-chatname { width: var(--u-160); flex: none; }
  .hm-term .hm-win-body { font-family: var(--font-mono); font-size: var(--u-13); line-height: 1.6; color: var(--text); }
  .hm-term p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hm-term-tool { display: flex; align-items: center; gap: var(--u-6); margin-top: var(--u-6); color: var(--muted); }
  .hm-term ul { margin: var(--u-6) 0 0 var(--u-18); }
  .hm-term li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) var(--u-40); gap: var(--u-12); }
  .hm-term-fit { text-align: right; font-weight: 600; color: var(--ring-c); }
  .hm-term-fit.fit-top { --ring-c: var(--fit-top); } .hm-term-fit.fit-strong { --ring-c: var(--fit-strong); } .hm-term-fit.fit-mod { --ring-c: var(--fit-mod); } .hm-term-fit.fit-low { --ring-c: var(--fit-low); }
  .hm-caret { display: inline-block; width: var(--u-2); height: var(--u-13); margin-left: var(--u-1); background: var(--text); vertical-align: middle; animation: hm-blink 1s step-end infinite; }
  @keyframes hm-blink { 50% { opacity: 0; } }

  /* 08 tools */
  .hm-tools { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--u-64); align-items: start; }
  .hm-tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--u-16); }
  .hm-tgrid li { padding: var(--u-24); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); display: flex; flex-direction: column; gap: var(--u-10); }
  .hm-toolico { display: inline-flex; width: var(--u-40); height: var(--u-40); border-radius: var(--u-11); align-items: center; justify-content: center; background: var(--raised); }

  /* 09 a morning */
  .hm-morning { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--u-24); margin-top: var(--u-36); }
  .hm-morning > li { display: flex; flex-direction: column; gap: var(--u-14); }
  .hm-morning .hm-win { box-shadow: var(--shadow-frame); }
  .hm-morning .hm-win-bar { padding: var(--u-8) var(--u-12); }
  .hm-morning .hm-win-body { padding: var(--u-14); height: var(--u-212); overflow: hidden; }
  .hm-time { font-family: var(--font-mono); font-size: var(--u-14); font-weight: 600; padding: var(--u-4) var(--u-8); border-radius: var(--u-7); background: var(--text); color: var(--surface); }
  .hm-pill-ink { display: inline-flex; align-items: center; gap: var(--u-4); min-height: var(--u-24); padding: 0 var(--u-10); border-radius: var(--r-pill); background: var(--text); color: var(--surface); font-size: var(--u-12); font-weight: 600; }
  .hm-mrow { display: flex; align-items: center; gap: var(--u-8); padding: var(--u-7) 0; border-top: var(--hair) solid var(--line); }
  .hm-mrow .hm-sig { font-size: var(--u-12); }
  .hm-paste-ctx { padding: var(--u-8) var(--u-10); border-radius: var(--u-9); background: var(--raised); font-size: var(--fs-11-5); line-height: 1.45; }
  .hm-roles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--u-24); margin-top: var(--u-56); }
  .hm-roles4 li { padding-top: var(--u-16); border-top: var(--hair) solid var(--line2); }
  .hm-outcome { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-18); margin-top: var(--u-48); padding: var(--u-24) var(--u-28); border-radius: var(--u-18); background: var(--surface); border: var(--hair) solid var(--line); }
  .hm-outcome .hm-s15 { min-width: var(--u-280); }

  /* 10 pricing */
  .hm-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-18); margin-top: var(--u-64); }
  .hm-plan { padding: var(--u-30); border-radius: var(--u-20); background: var(--surface); border: var(--hair) solid var(--line); display: flex; flex-direction: column; }
  .hm-plan-rec { box-shadow: 0 0 0 var(--u-2) var(--text), var(--shadow-frame); }
  .hm-price { font-size: var(--fs-price); font-weight: 600; letter-spacing: -0.04em; }
  .hm-planlist { display: grid; gap: var(--u-9); margin-top: var(--u-20); flex: 1; align-content: start; }
  .hm-planlist li { display: flex; align-items: center; gap: var(--u-9); font-size: var(--u-15); }

  /* 11 questions */
  .hm-faqwrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--u-64); }
  .hm-faqwrap .hm-h2-sm { font-size: var(--u-48); }
  .hm-faq { border-bottom: var(--hair) solid var(--line); }
  .hm-faq li { border-top: var(--hair) solid var(--line); }
  .hm-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--u-16); padding: var(--u-22) 0; cursor: pointer; list-style: none; font-size: var(--u-18); font-weight: 600; }
  .hm-faq summary::-webkit-details-marker { display: none; }
  .hm-faq-ico { position: relative; flex: none; width: var(--u-14); height: var(--u-14); color: var(--muted); }
  .hm-faq-ico::before, .hm-faq-ico::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--u-1-5); margin-top: calc(-1 * var(--u-1)); background: currentColor; }
  .hm-faq-ico::after { transform: rotate(90deg); }
  .hm-faq details[open] .hm-faq-ico::after { display: none; }
  .hm-faq p { padding: 0 var(--u-40) var(--u-22) 0; font-size: var(--u-15); color: var(--text2); }
  .hm-browse { margin-top: var(--u-40); }

  @media (prefers-reduced-motion: reduce) { .hm-caret { animation: none; } }

  /* Tablet */
  @media (max-width: 75rem) {
    .hm-shot { width: calc(100% - 2 * var(--gutter)); }
    .hm-callout { display: none; }
    .hm-zoom { zoom: 0.56; }
    .hm-frame-view { height: var(--u-540); }
    /* Between phone and desktop the markers have no tuned place on the frame: the legend reads as a plain list. The
       phone block below brings markers and numbers back. */
    .hm-marker, .hm-legend-n { display: none; }
    /* Positioned so it paints above the absolute .hm-stage-band (it hid the legend below 75rem). */
    .hm-legend { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--u-300), 1fr)); gap: var(--u-14) var(--u-24); width: calc(100% - 2 * var(--gutter)); margin: var(--u-28) auto 0; }
    .hm-legend li { display: flex; gap: var(--u-10); align-items: flex-start; font-size: var(--u-13); color: var(--text2); }
    .hm-legend b { display: block; font-size: var(--u-14); color: var(--text); font-weight: 600; }
  }

  /* Tablet in portrait (D-667): the two-column chapters stack instead of squeezing the lede, the recency figures and
     the MCP steps into narrow columns; the signal bento goes to two columns. Landscape keeps the desktop layout. */
  @media (max-width: 60rem) {
    .hm-hero-row { grid-template-columns: minmax(0, 1fr); gap: var(--u-24); }
    .hm-split, .hm-split-75, .hm-learn, .hm-tools, .hm-faqwrap, .hm-rec, .hm-mcp { grid-template-columns: minmax(0, 1fr); gap: var(--u-32); }
    .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-b-fund { grid-row: auto; }
    .hm-more { grid-column: span 2; }
    .hm-roles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  /* Tap to zoom (D-525 follow-up): legend rows and markers are buttons that open the zoom sheet below 75rem. */
  .hm-legend-btn { display: flex; gap: var(--u-10); align-items: flex-start; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
  .hm-legend-txt { flex: 1; min-width: 0; }
  .hm-legend-zoom { flex: none; display: inline-flex; margin-top: var(--u-2); color: var(--muted); }
  .hm-legend-btn:hover .hm-legend-zoom { color: var(--text); }
  .hm-zoom-hint { display: none; }
  @media (max-width: 75rem) {
    .hm-zoom-hint { display: inline; }
    .hm-frame-view { cursor: zoom-in; }
  }
  /* The zoom sheet: a native modal dialog, a bottom sheet on a phone and a card in the middle above it. The mock is
     cloned in at full size and scaled (--zs-zoom); the script moves it so the callout sits in the middle (or starts at
     the left when wider than the window) and outlines it with the ring. */
  html:has(.hm-zs[open]) { overflow: hidden; }
  .hm-zs { --zs-zoom: 0.8; width: min(100%, var(--u-560)); max-width: 100%; max-height: 100dvh; margin: auto; padding: 0 0 var(--u-20); border: var(--hair) solid var(--line2); border-radius: var(--u-18); background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); overflow: hidden; }
  .hm-zs::backdrop { background: var(--scrim); }
  .hm-zs-head { display: flex; align-items: center; justify-content: space-between; padding: var(--u-12) var(--u-12) var(--u-12) var(--u-18); }
  .hm-zs-view { position: relative; height: var(--u-300); overflow: hidden; background: var(--bg); border-block: var(--hair) solid var(--line); }
  .hm-zs-pan { position: absolute; left: 0; top: 0; }
  .hm-zs-mock { width: var(--u-1440); scale: var(--zs-zoom); transform-origin: 0 0; pointer-events: none; }
  .hm-zs-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: var(--u-12); box-shadow: 0 0 0 var(--u-2) var(--text); pointer-events: none; }
  .hm-zs-text { padding: var(--u-16) var(--u-18) 0; min-height: var(--u-96); }
  .hm-zs-t { font-size: var(--u-17); font-weight: 600; letter-spacing: -0.01em; }
  .hm-zs-l { margin-top: var(--u-4); font-size: var(--u-15); line-height: 1.45; color: var(--text2); }
  .hm-zs-nav { display: flex; gap: var(--u-10); padding: var(--u-16) var(--u-18) 0; }
  .hm-zs-nav .hm-btn { flex: 1; justify-content: center; }

  /* Mobile (R6-Home-mobile: same chapters, stacked; annotated screenshot with numbered markers and a legend) */
  @media (max-width: 48rem) {
    .hm-sec { padding: var(--u-72) 0; }
    .hm-hero { padding-top: var(--u-40); }
    .hm-display { font-size: var(--u-44); margin-top: var(--u-18); letter-spacing: -0.04em; }
    .hm-hero-row { grid-template-columns: 1fr; gap: var(--u-22); margin-top: var(--u-14); }
    .hm-sub { font-size: var(--fs-15-5); }
    .hm-head .hm-sub { margin-top: var(--u-12); }
    .hm-ctas { flex-direction: column; }
    .hm-ctas .hm-btn { width: 100%; }
    .hm-hero-cta .hm-s14 { text-align: center; font-size: var(--u-13); }
    .hm-stage { margin-top: var(--u-40); padding-bottom: var(--u-56); }
    .hm-stage-band { top: 30%; }
    .hm-shot { width: calc(100% - 2 * var(--gutter-mobile)); }
    .hm-zoom { zoom: 0.36; margin-left: calc(-1 * var(--u-464)); }
    .hm-frame-view { height: var(--u-300); }
    .hm-frame-bar { height: var(--u-24); }
    .hm-url { display: none; }
    .hm-legend { grid-template-columns: 1fr; width: calc(100% - 2 * var(--gutter-mobile)); margin-top: var(--u-24); }
    .hm-legend-n, .hm-marker { flex: none; width: var(--u-22); height: var(--u-22); border-radius: var(--r-round); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); box-shadow: 0 0 0 var(--u-1-5) var(--text); font-size: var(--u-12); font-weight: 600; color: var(--text); }
    .hm-marker { position: absolute; z-index: 3; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
    .hm-marker::after { content: ""; position: absolute; inset: calc(-1 * var(--u-11)); } /* a thumb-sized target */
    .hm-zs { width: 100%; margin: auto 0 0; border-width: var(--hair) 0 0; border-radius: var(--u-18) var(--u-18) 0 0; padding-bottom: calc(var(--u-16) + env(safe-area-inset-bottom)); }
    .hm-zs-view { height: var(--u-280); }
    .hm-m1 { left: var(--u-36); top: var(--u-40); } .hm-m2 { right: var(--u-10); top: var(--u-44); } .hm-m3 { left: var(--u-40); top: var(--u-88); }
    .hm-m4 { left: var(--u-100); top: var(--u-150); } .hm-m5 { left: var(--u-140); top: var(--u-260); }
    .hm-caption { font-size: var(--u-12); }
    .hm-h2 { font-size: var(--fs-h2); margin-top: var(--u-14); }
    .hm-h2-md, .hm-h2-sm, .hm-faqwrap .hm-h2-sm { font-size: var(--fs-h2); }
    .hm-statement { font-size: var(--fs-statement); }
    .hm-close { font-size: var(--fs-statement-2); }
    .hm-split, .hm-split-75, .hm-learn, .hm-tools, .hm-faqwrap, .hm-rec { grid-template-columns: 1fr; gap: var(--u-24); }
    .hm-vs { grid-template-columns: 1fr; gap: var(--u-12); margin-top: var(--u-24); }
    .hm-vs-word { display: none; }
    .hm-dbt { display: none; }
    .hm-bento { grid-template-columns: 1fr; margin-top: var(--u-24); }
    .hm-b-fund, .hm-b-hire, .hm-more { grid-column: auto; grid-row: auto; }
    .hm-moneybox { grid-template-columns: 1fr; }
    .hm-money { border-right: 0; padding-right: 0; }
    .hm-trio { grid-template-columns: 1fr; margin-top: var(--u-24); }
    .hm-arrow { display: none; }
    .hm-three { grid-template-columns: 1fr; margin-top: var(--u-16); }
    .hm-steps { grid-template-columns: 1fr; margin-top: var(--u-24); gap: var(--u-24); }
    .hm-steps::before { display: none; }
    .hm-learn-mock { padding: 0 0 var(--u-56) 0; }
    .hm-pop { position: static; width: auto; margin-top: var(--u-12); }
    .hm-motion { position: static; margin-top: var(--u-10); }
    .hm-seatbox { flex-wrap: wrap; }
    .hm-stats { gap: var(--u-16); }
    .hm-statnum { font-size: var(--u-34); }
    .hm-stats .hm-s15 { font-size: var(--u-13); white-space: normal; }
    .hm-ctabs { gap: var(--u-18); margin: var(--u-24) calc(-1 * var(--gutter-mobile)) 0; padding: 0 var(--gutter-mobile); }
    .hm-mcp { grid-template-columns: 1fr; gap: var(--u-24); margin-top: var(--u-24); }
    .hm-mcp .hm-win-body { min-height: 0; padding: var(--u-16); }
    .hm-chatname { width: var(--u-100); }
    .hm-term li { grid-template-columns: minmax(0, 1fr) var(--u-40); }
    .hm-term li > .hm-muted { display: none; }
    .hm-addr-url { font-size: var(--u-15); }
    .hm-tgrid, .hm-morning, .hm-plans { grid-template-columns: 1fr; }
    .hm-tgrid { grid-template-columns: 1fr 1fr; gap: var(--u-10); }
    .hm-tgrid li { padding: var(--u-14); }
    .hm-tgrid .hm-s14 { display: none; }
    .hm-roles4 { grid-template-columns: 1fr 1fr; gap: var(--u-18); margin-top: var(--u-32); }
    .hm-outcome { margin-top: var(--u-24); padding: var(--u-18); }
    .hm-outcome .hm-h2-34 { font-size: var(--u-24); }
    .hm-plans { margin-top: var(--u-24); gap: var(--u-12); }
    .hm-plan { padding: var(--u-20); }
    .hm-faq summary { font-size: var(--u-16); padding: var(--u-18) 0; }
    .hm-faq p { padding-right: 0; }
    .hm-close { margin-top: var(--u-22); }
    .hm-centerrow { flex-direction: column; }
    /* R6 mobile condenses three compositions: the signature keeps chips, bar and verdict; plans become one-line tiles. */
    .hm-roles, .hm-three, .hm-trio .hm-lh165 { display: none; }
    .hm-plan { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--u-2) var(--u-12); padding: var(--u-16) var(--u-18); }
    .hm-plan > .hm-row { grid-column: 1; }
    .hm-plan > .hm-row .hm-new { display: none; }
    .hm-plan > .hm-mt14 { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
    .hm-plan > .hm-s15 { grid-column: 1; font-size: var(--u-13); margin: 0; }
    .hm-plan .hm-price { font-size: var(--u-28); }
    .hm-plan .hm-price + .hm-muted { display: none; }
    .hm-planlist, .hm-plan > .hm-btn { display: none; }
    .hm-plan-rec > .hm-btn { display: inline-flex; grid-column: 1 / -1; margin-top: var(--u-12); }
    .hm-centerrow .hm-btn { width: 100%; }
  }

  /* Public edition (D-642): chapters open with the signal bar, no chapter numbers; the hero sits on the field. */
  .hm-rule { width: var(--u-76); height: var(--u-7); border-radius: 0; background: var(--pat-sigbar) no-repeat left center; }
  .hm-rule-c { margin: 0 auto; }
  .hm-eyebrow .hm-n { display: none; }
  .hm-hero { background-color: var(--field); background-image: var(--pat-ledger); }
  .hm-stage-band { background-color: var(--sunken); background-image: var(--pat-dots); }
  .hm-sunken { background-image: var(--pat-dots); }
}

/* site-hubs.css */
/* Recently Funded, hubs and lists: the public edition (D-642, after the P2 board of D-536..D-538). Page heads on the
   ledger field with the edge panel; dated day groups of lead rows on cards; the plan ladder at the foot. Tokens only
   (--u-N is the marketing px scale). No left-border accents: rows are separated by top hairlines. */
@layer site {
  .hb-head { padding: var(--u-24) 0 var(--u-48); }
  .hb-head .crumbs { font-size: var(--u-13); }
  .hb-head-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--u-380); gap: var(--u-48); align-items: start; margin-top: var(--u-28); }
  .hb-head-main { min-width: 0; }
  .hb-head .pg-h1 { max-width: 18ch; }
  .hb-quick { display: flex; flex-wrap: wrap; gap: var(--u-8); margin-top: var(--u-22); }
  .hb-quick a { display: inline-flex; align-items: center; gap: var(--u-6); height: var(--u-32); padding: 0 var(--u-12); border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2); font-size: var(--u-13); font-weight: 500; color: var(--text); text-decoration: none; }
  .hb-quick a:hover { background: var(--raised); }
  .hb-quick .country img { border-radius: var(--u-2); }
  .ls-dot { width: var(--u-8); height: var(--u-8); border-radius: var(--r-round); background: var(--hd, var(--h)); }
  .hb-edge { margin-top: var(--u-4); }
  .hb-pro { margin-left: var(--u-8); vertical-align: 0.1em; }
  .hb-edge .edge-note a { color: var(--text2); }

  /* By the numbers: stage mix, median, investors (shares only) */
  .hb-numbers { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--u-1); margin-top: var(--u-28); border-radius: var(--u-14); overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); max-width: var(--u-760); }
  .hb-num { display: grid; align-content: start; gap: var(--u-8); padding: var(--u-16) var(--u-18); background: var(--surface); }
  .hb-num-k { font-size: var(--fs-12-5); font-weight: 600; color: var(--muted); }
  .hb-num-v { font-family: var(--font-display); font-size: var(--u-30); font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
  .hb-num-l { font-size: var(--u-14); font-weight: 600; line-height: 1.4; color: var(--text); }
  .hb-num-mix .mixleg { margin-top: 0; font-size: var(--fs-12-5); }

  /* Body: feed and side */
  .hb-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--u-300); gap: var(--u-40); padding: var(--u-40) 0 var(--u-24); align-items: start; }
  .hb-main { min-width: 0; }
  .hb-aside { position: sticky; top: calc(var(--u-76) + var(--u-24)); display: grid; gap: var(--u-20); }
  .hb-days { display: grid; gap: var(--u-28); }
  .hb-dayhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--u-6) var(--u-12); margin-bottom: var(--u-12); }
  .hb-dayhead h2 { font-family: var(--font-display); font-size: var(--u-24); font-weight: 700; letter-spacing: -0.025em; }
  .hb-ago { display: inline-flex; align-items: center; height: var(--u-22); padding: 0 var(--u-8); border-radius: var(--r-pill); background: var(--raised); font-size: var(--fs-12-5); font-weight: 600; color: var(--text2); }
  .hb-daymore { display: inline-flex; align-items: center; gap: var(--u-4); margin-left: auto; font-size: var(--u-13); font-weight: 600; color: var(--text); text-decoration: none; }
  .hb-daymore:hover { text-decoration: underline; }
  .hb-rows { padding: var(--u-4) var(--u-8); }

  .lrow { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--u-16); align-items: start; padding: var(--u-16) var(--u-12); border-radius: var(--u-12); }
  .lrow + .lrow { box-shadow: 0 calc(-1 * var(--hair)) 0 0 var(--line); }
  .lrow:hover { background: var(--raised); box-shadow: none; }
  .lrow:hover + .lrow { box-shadow: none; }
  .lrow:has(.lrow-rank) { grid-template-columns: var(--u-26) auto minmax(0, 1fr) auto; }
  .lrow-rank { padding-top: var(--u-12); font-family: var(--font-display); font-size: var(--u-14); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
  .lrow-main { min-width: 0; display: grid; gap: var(--u-6); }
  .lrow-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-6) var(--u-10); }
  .lrow-name { font-size: var(--u-17); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
  .lrow-name a { color: var(--text); text-decoration: none; }
  .lrow-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .lrow-what { font-size: var(--u-14); line-height: 1.5; color: var(--text2); max-width: 44em; }
  .lrow-lead { color: var(--text); font-weight: 500; }
  .lrow-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-4) var(--u-14); font-size: var(--u-13); color: var(--muted); }
  .lrow-meta a { position: relative; z-index: 1; color: var(--text2); text-decoration: none; }
  .lrow-meta a:hover { color: var(--text); text-decoration: underline; }
  .lrow-meta .country img { border-radius: var(--u-2); }
  .lrow-fig { display: grid; justify-items: end; gap: var(--u-8); padding-top: var(--u-2); }
  .lrow-amt { font-family: var(--font-display); font-size: var(--u-20); font-weight: 700; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .lrow-go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: var(--u-4); height: var(--u-28); padding: 0 var(--u-10); border-radius: var(--u-8); font-size: var(--u-13); font-weight: 600; color: var(--text2); text-decoration: none; box-shadow: inset 0 0 0 var(--hair) var(--line2); background: var(--surface); }
  .lrow:hover .lrow-go { color: var(--text); }

  .hb-inline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--u-16); align-items: center; padding: var(--u-18) var(--u-20); border-radius: var(--u-16); background-color: var(--field); background-image: var(--pat-ledger); box-shadow: inset 0 0 0 var(--hair) var(--field-line); }
  .hb-inline h3 { font-family: var(--font-display); font-size: var(--u-18); font-weight: 700; letter-spacing: -0.015em; }
  .hb-inline p { margin-top: var(--u-4); font-size: var(--u-14); line-height: 1.5; color: var(--text2); max-width: 44em; }
  .hb-note { display: flex; align-items: flex-start; gap: var(--u-8); margin-top: var(--u-20); font-size: var(--u-14); color: var(--text2); max-width: 44em; }
  .hb-note svg { flex: none; margin-top: var(--u-3); color: var(--muted); }
  .hb-note strong { color: var(--text); font-weight: 600; }
  .hb-empty { display: grid; justify-items: start; gap: var(--u-10); }
  .hb-empty h2 { font-family: var(--font-display); font-size: var(--u-20); font-weight: 700; }
  .hb-empty p { color: var(--text2); }

  .hb-side { padding: var(--u-4) var(--u-4) 0; }
  .hb-side h2 { font-size: var(--u-13); font-weight: 600; color: var(--muted); margin-bottom: var(--u-6); }
  .hb-side li a { display: flex; align-items: center; justify-content: space-between; gap: var(--u-8); padding: var(--u-8) 0; border-bottom: var(--hair) solid var(--line); font-size: var(--u-14); font-weight: 500; color: var(--text); text-decoration: none; }
  .hb-side li a svg { color: var(--muted); opacity: 0; }
  .hb-side li a:hover svg { opacity: 1; }
  .hb-side .country img { border-radius: var(--u-2); }
  .hb-more { display: inline-block; margin-top: var(--u-10); font-size: var(--u-13); font-weight: 600; color: var(--text); }
  .hb-inbox { display: grid; gap: var(--u-8); justify-items: start; }
  .hb-inbox h2 { font-size: var(--u-16); font-weight: 600; }
  .hb-inbox p { font-size: var(--u-14); color: var(--text2); }

  .hb-apiline { display: flex; gap: var(--u-12); align-items: flex-start; margin-top: var(--u-28); padding: var(--u-14) var(--u-16); border-radius: var(--u-12); background: var(--raised); font-size: var(--u-14); line-height: 1.55; color: var(--text2); }
  .hb-apiline a { color: var(--text); }
  .hb-apiline q { color: var(--text); font-weight: 500; }

  /* Foot sections */
  .hb-foot { display: grid; gap: var(--u-56); padding: var(--u-32) 0 var(--u-88); }
  .hb-sechead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--u-8) var(--u-16); margin-bottom: var(--u-18); }
  .hb-h2 { display: flex; align-items: center; gap: var(--u-10); font-family: var(--font-display); font-size: clamp(var(--u-24), 2.6vw, var(--u-32)); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
  .hb-browse .hb-h2 { margin-bottom: var(--u-20); }
  .hb-browse-grid { display: grid; gap: var(--u-20); }
  .hb-chipgroup h3 { display: flex; align-items: center; gap: var(--u-8); font-size: var(--u-14); font-weight: 600; color: var(--text2); margin-bottom: var(--u-10); }
  .hb-chipgroup .sico { width: var(--u-24); height: var(--u-24); border-radius: var(--u-7); }
  .hb-chips { display: flex; flex-wrap: wrap; gap: var(--u-6); }
  .hb-chip { display: inline-flex; align-items: center; height: var(--u-32); padding: 0 var(--u-12); border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); font-size: var(--u-13); font-weight: 500; color: var(--text2); text-decoration: none; }
  .hb-chip:hover { color: var(--text); box-shadow: inset 0 0 0 var(--hair) var(--line2); background: var(--raised); }
  .hb-relgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--u-240), 1fr)); gap: var(--u-12); }
  .hb-rel { display: grid; gap: var(--u-8); padding: var(--u-18); text-decoration: none; color: inherit; }
  .hb-rel:hover { box-shadow: inset 0 0 0 var(--hair) var(--line2), var(--shadow-lift); }
  .hb-rel-title { font-size: var(--u-16); font-weight: 600; line-height: 1.3; }
  .hb-rel .muted { font-size: var(--u-13); }
  .hb-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--u-40); }
  .hb-h3 { display: flex; align-items: center; gap: var(--u-10); font-size: var(--u-16); font-weight: 600; margin-bottom: var(--u-10); }
  .hb-h3 .sico { width: var(--u-26); height: var(--u-26); border-radius: var(--u-7); }
  .hb-about p { font-size: var(--u-14); line-height: 1.65; color: var(--text2); max-width: 44em; }
  .hb-about a { color: var(--text); }
  .hb-digest { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--u-440)); gap: var(--u-20); align-items: center; }
  .hb-digest h2 { display: flex; align-items: center; gap: var(--u-8); font-size: var(--u-16); font-weight: 600; }
  .hb-digest p { margin-top: var(--u-4); font-size: var(--u-14); color: var(--text2); }
  .hb-digest-form { display: flex; gap: var(--u-8); }
  .hb-digest-form .input { flex: 1; min-width: 0; }
  .hb-digest-sm { grid-template-columns: minmax(0, 1fr); padding: var(--u-18); gap: var(--u-12); }
  .hb-digest-sm .hb-digest-form { flex-direction: column; }
  .hb-digest-sm .hb-digest-form .input { flex: none; }

  /* Lists index */
  .ls-sec { scroll-margin-top: var(--u-96); }
  .ls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--u-300), 1fr)); gap: var(--u-14); }
  .ls-card { display: flex; flex-direction: column; gap: var(--u-10); padding: var(--u-20); color: inherit; text-decoration: none; }
  .ls-card:hover { box-shadow: inset 0 0 0 var(--hair) var(--line2), var(--shadow-lift); }
  .ls-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--u-8); }
  .ls-card-title { font-family: var(--font-display); font-size: var(--u-19); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
  .ls-card-desc { font-size: var(--u-14); line-height: 1.5; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ls-card-foot { display: flex; align-items: center; gap: var(--u-12); margin-top: auto; padding-top: var(--u-12); border-top: var(--hair) solid var(--line); font-size: var(--u-13); color: var(--text2); }
  .ls-card-foot > svg { margin-left: auto; color: var(--muted); }
  .ls-card:hover .ls-card-foot > svg { color: var(--text); }
  .ls-logos { display: flex; }
  .ls-logos .ltile { --lt: var(--u-26); box-shadow: 0 0 0 var(--u-2) var(--surface); font-size: var(--u-11); }
  .ls-logos .ltile + .ltile { margin-left: calc(-1 * var(--u-6)); }
  .ls-card-meta strong { color: var(--text); font-weight: 600; }
  .ls-card-tags { display: flex; flex-wrap: wrap; gap: var(--u-6); }
  .ls-search { display: flex; align-items: center; gap: var(--u-8); max-width: var(--u-380); margin-top: var(--u-16); padding-left: var(--u-12); border-radius: var(--u-10); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2); color: var(--muted); }
  .ls-search[hidden] { display: none; }
  .ls-search .input { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; }
  .ls-card[hidden], .ls-sec[hidden] { display: none; }
  .hb-empty-line[hidden] { display: none; }
  .lrow-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--u-6); }
  /* The index head leads with ready lists (D-643); the plan panel sits after the first theme. */
  .ls-ready { padding: var(--u-20) var(--u-20) var(--u-16); }
  .ls-ready-h { font-family: var(--font-display); font-size: var(--u-20); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
  .ls-ready-list { margin-top: var(--u-12); display: grid; }
  .ls-ready-list li + li { border-top: var(--hair) solid var(--line); }
  .ls-ready-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--u-12); align-items: center; padding: var(--u-10) 0; color: inherit; text-decoration: none; }
  .ls-ready-list a > svg { color: var(--muted); }
  .ls-ready-list a:hover > svg, .ls-ready-list a:hover strong { color: var(--text); }
  .ls-ready-t { display: grid; gap: var(--u-2); min-width: 0; }
  .ls-ready-t strong { font-size: var(--u-15); font-weight: 600; line-height: 1.3; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ls-ready-t span { font-size: var(--u-13); color: var(--muted); }
  .ls-ready-foot { margin-top: var(--u-8); padding-top: var(--u-12); border-top: var(--hair) solid var(--line); font-size: var(--u-13); color: var(--text2); }
  .ls-ready-foot a { color: var(--text); font-weight: 600; }
  .ls-edge-wrap .edge { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto auto auto 1fr; column-gap: var(--u-48); align-items: start; padding: var(--u-32); }
  .ls-edge-wrap .edge > :not(.edge-list) { grid-column: 1; }
  .ls-edge-wrap .edge-list { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .ls-edge-wrap .edge-list li:first-child { border-top: 0; }
  .ls-edge-wrap .edge .btn-signup { width: auto; justify-self: start; padding: 0 var(--u-28); }

  /* List detail */
  .ls-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-8) var(--u-18); margin-top: var(--u-20); font-size: var(--u-14); color: var(--text2); }
  .ls-meta span { display: inline-flex; align-items: center; gap: var(--u-6); }
  .ls-meta svg { color: var(--muted); }
  .ls-meta-n strong { font-family: var(--font-display); font-size: var(--u-20); font-weight: 700; color: var(--text); }
  .ls-actions { display: flex; flex-wrap: wrap; gap: var(--u-8); margin-top: var(--u-18); }
  .ls-actions .btn { height: var(--u-38); padding: 0 var(--u-14); font-size: var(--u-14); }
  .ls-actions .ptag { margin-left: var(--u-4); }
  .ls-more { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--u-24); align-items: center; margin-top: var(--u-16); padding: var(--u-24); border-radius: var(--u-16); background-color: var(--bg); background-image: var(--pat-dots); color: var(--text); box-shadow: var(--shadow-frame); }
  .ls-more-num { display: grid; justify-items: center; padding-right: var(--u-24); border-right: var(--hair) solid var(--line); }
  .ls-more-num strong { font-family: var(--font-display); font-size: var(--u-44); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
  .ls-more-num span { font-size: var(--u-13); color: var(--muted); }
  .ls-more h3 { font-family: var(--font-display); font-size: var(--u-20); font-weight: 700; letter-spacing: -0.02em; }
  .ls-more p { margin-top: var(--u-6); font-size: var(--u-14); line-height: 1.55; color: var(--text2); }
  .ls-more-actions { display: grid; justify-items: center; gap: var(--u-8); }
  .ls-more-link { font-size: var(--u-13); font-weight: 600; color: var(--text2); }

  @media (max-width: 64rem) {
    .hb-head-grid { grid-template-columns: minmax(0, 1fr); gap: var(--u-28); }
    .hb-edge { max-width: var(--u-560); }
    .hb-body { grid-template-columns: minmax(0, 1fr); }
    .hb-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(var(--u-240), 1fr)); }
  }
  @media (max-width: 48rem) {
    .hb-numbers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hb-num-mix { grid-column: 1 / -1; }
    .hb-about, .hb-digest { grid-template-columns: minmax(0, 1fr); }
    .hb-inline { grid-template-columns: minmax(0, 1fr); }
    .ls-more { grid-template-columns: minmax(0, 1fr); }
    .ls-edge-wrap .edge { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding: var(--u-24); }
    .ls-edge-wrap .edge-list { grid-column: 1; grid-row: auto; margin-top: var(--u-14); }
    .ls-edge-wrap .edge-list li:first-child { border-top: var(--hair) solid var(--line); }
    .ls-edge-wrap .edge .btn-signup { width: 100%; }
    .ls-more-num { justify-items: start; padding: 0 0 var(--u-14); border-right: 0; border-bottom: var(--hair) solid var(--line); }
    .ls-more-actions { justify-items: start; }
  }
  @media (max-width: 40rem) {
    .hb-rows { padding: var(--u-2) var(--u-4); }
    .lrow { grid-template-columns: auto minmax(0, 1fr); gap: var(--u-12); padding: var(--u-14) var(--u-8); }
    .lrow:has(.lrow-rank) { grid-template-columns: auto minmax(0, 1fr); }
    .lrow-rank { display: none; }
    .lrow-main { grid-column: 2; grid-row: 1; }
    .lrow-fig { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
    .lrow-top { padding-right: var(--u-72); }
    .lrow-go { display: none; }
    .lrow-amt { font-size: var(--u-17); }
    .lrow .ltile { --lt: var(--u-38); }
    .hb-dayhead h2 { font-size: var(--u-20); }
    .hb-daymore { margin-left: 0; flex-basis: 100%; }
  }

  /* Monthly archive (pages/archive.tsx): compact rows, one per company, grouped by day. */
  .ar-nav { display: grid; gap: var(--u-16); }
  .ar-step { display: flex; justify-content: space-between; gap: var(--u-12); }
  .ar-here { color: var(--text); font-weight: 600; background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
  .ar-days { display: grid; gap: var(--u-28); }
  .ar-dayhead { font-family: var(--font-display); font-size: var(--u-20); font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--u-10); }
  .ar-rows { list-style: none; margin: 0; padding: var(--u-4) var(--u-8); }
  .ar-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.2fr); gap: var(--u-12); align-items: baseline; padding: var(--u-10) var(--u-8); font-size: var(--u-14); }
  .ar-row + .ar-row { box-shadow: 0 calc(-1 * var(--hair)) 0 0 var(--line); }
  .ar-name { font-weight: 600; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
  .ar-name:hover { text-decoration: underline; }
  .ar-round { color: var(--text); font-variant-numeric: tabular-nums; }
  .ar-meta { display: flex; flex-wrap: wrap; gap: var(--u-4) var(--u-12); color: var(--muted); font-size: var(--u-13); }
  .ar-meta a { color: var(--text2); text-decoration: none; }
  .ar-meta a:hover { color: var(--text); text-decoration: underline; }
  .ar-meta .country img { border-radius: var(--u-2); }
  @media (max-width: 40rem) {
    .ar-row { grid-template-columns: minmax(0, 1fr) auto; }
    .ar-meta { grid-column: 1 / -1; }
  }
}

/* site-login.css */
/* Sign-in pages (P4-Login, P4-Login-states; DECISIONS.md D-531). Tokens only. Errors use coral as text (--coraltx),
   never danger red (that stays inside confirm dialogs). */
@layer site {
  .lg { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
  .lg-bar { width: min(calc(2 * var(--u-680) + var(--u-16)), 100%); margin: 0 auto; padding: 0 var(--u-40); display: flex; align-items: center; }
  .lg-head { border-bottom: var(--hair) solid var(--line); }
  .lg-head .lg-bar { height: var(--u-68); }
  .lg-logo { display: inline-flex; color: var(--text); }
  .lg-logo .wordmark { height: var(--u-28); }
  .lg-head-end { margin-left: auto; display: flex; align-items: center; gap: var(--u-14); }
  .lg-theme { display: inline-grid; place-items: center; width: var(--u-36); height: var(--u-36); border-radius: var(--u-9); border: var(--hair) solid var(--line); background: var(--surface); color: var(--text2); cursor: pointer; }
  .lg-theme:hover { background: var(--raised); color: var(--text); }
  .lg-back { font-size: var(--u-15); color: var(--text2); text-decoration: none; }
  .lg-back:hover { color: var(--text); }

  .lg-main { flex: 1; width: min(calc(2 * var(--u-680) + var(--u-16)), 100%); margin: 0 auto; padding: var(--u-112) var(--u-40) var(--u-160); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--u-96); align-items: start; }
  .lg-main-one { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .lg-col { justify-self: end; width: min(var(--u-420), 100%); display: grid; gap: 0; }
  .lg-main-one .lg-col { justify-self: center; }
  .lg-rule { display: block; width: var(--u-40); height: var(--u-2); background: var(--coral); }
  .lg-title { margin-top: var(--u-22); font-family: var(--font-display); font-weight: 700; font-size: var(--u-36); line-height: 1.08; letter-spacing: -0.03em; }
  .lg-sub { margin-top: var(--u-12); font-size: var(--u-16); line-height: var(--lh-sub); color: var(--text2); }
  .lg-sub strong { color: var(--text); font-weight: 600; }
  .lg-form { margin-top: var(--u-26); display: grid; gap: var(--u-14); }
  .lg-field { display: grid; gap: var(--u-8); }
  .lg-field label { font-size: var(--fs-secondary); font-weight: 600; }
  .lg-input { display: flex; align-items: center; gap: var(--u-10); height: var(--u-44); padding: 0 var(--u-14); border-radius: var(--r-input); border: var(--hair) solid var(--line2); background: var(--surface); color: var(--muted); }
  .lg-input:focus-within { outline: var(--focus-w) solid var(--text); outline-offset: var(--focus-offset); }
  .lg-input input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font-size: var(--u-15); outline: none; }
  .lg-input input::placeholder { color: var(--muted); }
  .lg-input-bad { border-color: var(--coraltx); }
  .lg-err { font-size: var(--fs-meta); line-height: var(--lh-body); color: var(--coraltx); }
  .lg-btn { width: 100%; height: var(--u-48); font-size: var(--u-15); }
  .lg-btn-auto { height: var(--u-44); padding: 0 var(--u-18); font-size: var(--fs-body); }
  .lg-row { display: flex; flex-wrap: wrap; gap: var(--u-8); margin-top: var(--u-26); }
  .lg-fine { margin-top: var(--u-16); font-size: var(--u-13); line-height: var(--lh-body); color: var(--muted); }
  .lg-fine a { color: inherit; }
  .lg-note { margin-top: var(--u-22); padding: var(--u-14) var(--u-16); border-radius: var(--r-inset); background: var(--raised); }
  .lg-note-t { font-size: var(--fs-body); font-weight: 600; }
  .lg-note-l { margin-top: var(--u-4); font-size: var(--u-13); color: var(--text2); }

  .lg-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--u-8); }
  .lg-code input { width: 100%; height: var(--u-52); border-radius: var(--r-btn); border: var(--hair) solid var(--line2); background: var(--raised); color: var(--text); text-align: center; font-family: var(--font-mono); font-size: var(--u-22); font-weight: 600; padding: 0; }
  .lg-code input:focus { outline: none; box-shadow: 0 0 0 var(--rule) var(--coral); }
  .lg-code-bad input { border-color: var(--coraltx); }
  .lg-resend { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--u-4); }
  .lg-resend[hidden] { display: none; }
  .lg-resend .lg-fine { margin-top: var(--u-16); }
  .lg-link { display: inline; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: var(--u-13); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
  .lg-other { justify-self: start; margin-top: var(--u-8); }

  .lg-next { max-width: var(--u-440); padding-top: var(--u-6); }
  .lg-next h2 { font-size: var(--u-15); font-weight: 600; }
  .lg-next ol { margin-top: var(--u-10); }
  .lg-next li { display: grid; grid-template-columns: var(--u-26) minmax(0, 1fr); gap: var(--u-12); padding: var(--u-16) 0; border-top: var(--hair) solid var(--line); }
  .lg-n { font-family: var(--font-mono); font-size: var(--u-13); color: var(--muted); padding-top: var(--u-2); }
  .lg-next strong { display: block; font-weight: 600; font-size: var(--u-16); }
  .lg-next li span span { display: block; font-size: var(--fs-body); color: var(--text2); line-height: var(--lh-prose); }

  .lg-foot { border-top: var(--hair) solid var(--line); }
  .lg-foot .lg-bar { justify-content: space-between; gap: var(--u-16); height: var(--u-64); font-size: var(--u-13); color: var(--muted); }
  .lg-foot a { color: inherit; text-decoration: none; }

  @media (max-width: 56rem) {
    .lg-bar { padding: 0 var(--u-18); }
    .lg-main { grid-template-columns: minmax(0, 1fr); gap: var(--u-48); padding: var(--u-40) var(--u-18) var(--u-64); }
    .lg-col { justify-self: stretch; width: 100%; }
    .lg-title { font-size: var(--u-30); }
    .lg-next { max-width: none; }
    .lg-foot .lg-bar { height: auto; padding-top: var(--u-16); padding-bottom: var(--u-16); flex-direction: column; align-items: flex-start; gap: var(--u-4); }
  }

  /* Public edition (D-642): the sign-in page sits on the field; the right column says what a free account opens. */
  .lg-main { background: none; }
  .lg { background-color: var(--field); background-image: var(--pat-ledger); }
  .lg-head, .lg-foot { background: var(--bg); }
  .lg-col { padding: var(--u-32); border-radius: var(--u-20); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-frame); width: min(var(--u-480), 100%); }
  .lg-col .sigbar { margin-bottom: var(--u-2); }
  .lg-edge { margin-bottom: var(--u-24); }
  .lg-edge .edge-list b { color: var(--text); }
  .lg-edge .edge-note a { color: var(--text2); }
  .lg-pro { margin-left: var(--u-8); vertical-align: 0.1em; }
  .lg-edge .edge-h { font-size: var(--u-22); font-weight: 700; }
  .lg-next .lg-edge li { display: grid; grid-template-columns: var(--u-40) minmax(0, 1fr); padding: var(--u-10) 0; }
  .lg-next .lg-edge li span span.ptag { display: inline-flex; font-size: var(--fs-11-5); color: var(--text2); }
  .lg-how { font-size: var(--u-14); font-weight: 600; color: var(--text2); }
  .lg-next ol { margin-top: var(--u-6); }
  .lg-next li { padding: var(--u-12) 0; }
  .lg-next strong { font-size: var(--u-15); }
  .lg-n { display: grid; place-items: center; width: var(--u-22); height: var(--u-22); border-radius: var(--r-round); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2); font-family: var(--font-display); font-weight: 700; font-size: var(--u-12); padding: 0; }
  @media (max-width: 56rem) { .lg-col { padding: var(--u-22); } }
}

/* site-marketing.css */
/* Marketing pages: Features (P3), Pricing (P7), /for/*, compare, about, ai-info (DECISIONS.md D-526..D-529).
   Tokens only (--u-N is N px, tokens.css). No left-border accents, no gradients, at most one coral button per screen. */
@layer site {
  /* Hero */
  .mk-hero { padding: var(--u-80) 0 var(--u-56); }
  .mk-hero-split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--u-40); }
  .mk-hero-main { max-width: var(--u-760); }
  .mk-rule { display: block; width: var(--u-40); height: var(--u-2); border-radius: var(--u-2); background: var(--coral); }
  .mk-eyebrow { display: flex; align-items: center; gap: var(--u-12); font-size: var(--fs-eyebrow); font-weight: 600; line-height: var(--lh-section); color: var(--text); }
  .mk-eyebrow::before { content: ""; flex: none; width: var(--u-40); height: var(--u-2); border-radius: var(--u-2); background: var(--coral); }
  .mk-display { margin-top: var(--u-26); font-family: var(--font-display); font-weight: 700; font-size: var(--u-56); line-height: 1.05; letter-spacing: -0.03em; max-width: 14em; color: var(--text); }
  .mk-hero-sub { margin-top: var(--u-20); font-size: var(--u-19); line-height: var(--lh-sub); color: var(--text2); max-width: 36em; }
  .mk-ctas { display: flex; flex-wrap: wrap; gap: var(--u-12); margin-top: var(--u-30); }
  .mk-btn { height: var(--u-44); padding: 0 var(--u-20); font-size: var(--u-15); border-radius: var(--u-10); }
  .mk-btn-block { width: 100%; }
  @media (max-width: 48rem) {
    .mk-hero { padding: var(--u-40) 0 var(--u-32); }
    .mk-hero-split { flex-direction: column; align-items: stretch; }
    .mk-display { font-size: var(--u-34); margin-top: var(--u-18); }
    .mk-hero-sub { font-size: var(--fs-15-5); margin-top: var(--u-12); }
  }

  /* Shared bits */
  .mk-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
  .mk-right { text-align: right; }
  .mk-block { display: block; }
  .mk-ell { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mk-gap { margin-top: var(--u-12); }
  .mk-gap-sm { margin-top: var(--u-8); }
  .mk-h { font-weight: 600; font-size: var(--u-14); }
  .mk-h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--u-32); line-height: 1.05; letter-spacing: -0.03em; }
  .mk-lede { margin-top: var(--u-14); font-size: var(--u-16); line-height: var(--lh-sub); color: var(--text2); }
  .mk-checks { margin-top: var(--u-16); }
  .mk-check { display: flex; align-items: flex-start; gap: var(--u-8); padding: var(--u-3) 0; font-size: var(--u-14); color: var(--text2); }
  .mk-tick { flex: none; display: inline-flex; margin-top: var(--u-3); color: var(--done); }
  .mk-ring-o { flex: none; width: var(--u-12); height: var(--u-12); margin-top: var(--u-4); border-radius: var(--r-round); border: var(--u-1-5) solid var(--muted); }
  .mk-sep { width: var(--u-3); height: var(--u-3); border-radius: var(--r-round); background: var(--muted); flex: none; }
  .mk-label { display: flex; align-items: center; gap: var(--u-10); font-size: var(--fs-eyebrow); font-weight: 600; }
  .mk-label::before { content: ""; width: var(--eyebrow-rule-w); height: var(--eyebrow-rule-h); background: var(--coral); }
  .mk-head { margin-bottom: var(--u-40); max-width: var(--u-760); }
  .mk-head-center { margin-left: auto; margin-right: auto; text-align: center; }
  .mk-head-center .mk-label { justify-content: center; }
  .mk-h2-lg { margin-top: var(--u-18); font-family: var(--font-display); font-weight: 700; font-size: var(--u-44); line-height: var(--lh-h2); letter-spacing: var(--tracking-h2); }
  .mk-lede-lg { margin-top: var(--u-16); font-size: var(--u-18); line-height: var(--lh-sub); color: var(--text2); }
  @media (max-width: 48rem) { .mk-h2-lg { font-size: var(--u-30); } .mk-lede-lg { font-size: var(--u-16); } .mk-h2 { font-size: var(--u-26); } }

  /* Mock frames */
  .mk-box { position: relative; background: var(--surface); border: var(--hair) solid var(--line); border-radius: var(--u-12); box-shadow: var(--shadow-frame); padding: var(--u-16); }
  .mk-narrow { max-width: var(--u-520); padding: var(--u-20) var(--u-22); }
  .mk-tight { padding: var(--u-14) var(--u-18); }
  .mk-sample { margin-top: var(--u-10); font-size: var(--fs-11-5); color: var(--muted); }
  .mk-stack { display: grid; gap: var(--u-14); }
  .mk-input { display: flex; align-items: center; gap: var(--u-10); height: var(--u-44); padding: 0 var(--u-14); border-radius: var(--u-8); background: var(--surface); border: var(--hair) solid var(--line2); color: var(--muted); font-size: var(--u-15); }
  .mk-input-v { flex: 1; min-width: 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mk-understood { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-8); margin-top: var(--u-10); }
  .mk-fchip { display: inline-flex; align-items: center; gap: var(--u-6); height: var(--u-30); padding: 0 var(--u-10); border-radius: var(--u-6); border: var(--hair) solid var(--line2); background: var(--surface); font-size: var(--u-13); color: var(--text); white-space: nowrap; }
  .mk-fchip b { font-weight: 600; }
  .mk-fchip svg { color: var(--muted); }
  .mk-fchip-add { border-style: dashed; color: var(--muted); }
  .mk-table { margin-top: var(--u-14); border: var(--hair) solid var(--line); border-radius: var(--u-12); overflow: hidden; background: var(--bg); }
  .mk-tr { display: grid; gap: var(--u-14); padding: var(--u-10) var(--u-16); align-items: center; }
  .mk-tr + .mk-tr { border-top: var(--hair) solid var(--line); }
  .mk-tr-search { grid-template-columns: var(--u-30) minmax(0, 1fr) var(--u-64) var(--u-56) var(--u-56); }
  .mk-tr-look { grid-template-columns: var(--u-28) minmax(0, 1fr) auto var(--u-56); padding: var(--u-9) 0; border-top: var(--hair) solid var(--line); }
  .mk-cell-main { min-width: 0; display: grid; }
  .mk-tr .t-meta, .mk-tr .t-secondary { white-space: nowrap; }
  .mk-tr .ring { justify-self: end; gap: var(--u-4); }
  .mk-inline { display: flex; gap: var(--u-6); align-items: baseline; }
  .mk-co { font-weight: 600; font-size: var(--u-14); color: var(--text); text-decoration: none; }
  a.mk-co:hover { text-decoration: underline; }
  .mk-logo .logo-box { width: var(--u-30); height: var(--u-30); font-size: var(--u-12); }
  .mk-logo .logo-box img { width: 100%; height: 100%; object-fit: contain; }
  .mk-logo-sm .logo-box { width: var(--u-28); height: var(--u-28); font-size: var(--u-11); }
  .mk-logo-lg .logo-box { width: var(--u-40); height: var(--u-40); font-size: var(--u-16); border-radius: var(--u-9); }
  .mk-rows > li + li, .mk-rows > li:first-child { border-top: var(--hair) solid var(--line); }
  .mk-row-split { display: flex; justify-content: space-between; align-items: center; gap: var(--u-12); padding: var(--u-10) 0; font-size: var(--u-14); }
  .mk-row-split:first-child { padding-top: 0; }
  .mk-rows .mk-row-split:first-child { padding-top: var(--u-10); }
  .mk-mail-title { margin-top: var(--u-6); font-weight: 700; font-size: var(--u-17); }
  .mk-rows { margin-top: var(--u-12); }
  .mk-mock-btn { margin-top: var(--u-14); pointer-events: none; }
  .mk-id { display: flex; align-items: center; gap: var(--u-12); }
  .mk-id .mk-co { font-size: var(--u-18); font-weight: 700; }
  .mk-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u-10); margin-top: var(--u-12); font-size: var(--u-13); }
  .mk-meta-line .mk-num { font-weight: 600; }
  .mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--u-14); margin-top: var(--u-16); }
  .mk-sub { background: var(--raised); border-radius: var(--u-10); padding: var(--u-12) var(--u-14); }
  .mk-sub-h { font-weight: 600; font-size: var(--u-13); margin-bottom: var(--u-4); }
  .mk-spend { margin-top: var(--u-12); display: grid; gap: var(--u-10); }
  .mk-spend li { display: grid; grid-template-columns: var(--u-120) minmax(0, 1fr) auto; gap: var(--u-12); align-items: center; }
  .mk-spend .chip { justify-self: start; }
  .mk-verdict { display: flex; gap: var(--u-8); align-items: flex-start; margin: var(--u-12) 0; padding: var(--u-10) var(--u-12); border-radius: var(--u-10); background: var(--raised); font-size: var(--u-13); }
  .mk-verdict svg { flex: none; margin-top: var(--u-3); color: var(--done); }
  .mk-bar { height: var(--u-8); }
  .mk-role { display: inline-flex; align-items: center; gap: var(--u-8); }
  .mk-role i { width: var(--u-8); height: var(--u-8); border-radius: var(--u-2); background: var(--chip-hue); }
  .mk-window { position: relative; margin: var(--u-14) 0 var(--u-12); }
  .mk-meter { height: var(--u-8); border-radius: var(--u-4); background: var(--raised); overflow: hidden; }
  .mk-meter span { display: block; height: 100%; border-radius: var(--u-4); background: var(--text); }
  .mk-window-labels { display: flex; justify-content: space-between; margin-top: var(--u-6); }
  .mk-person { display: grid; grid-template-columns: var(--u-30) minmax(0, 1fr) auto; gap: var(--u-10); align-items: center; padding: var(--u-9) 0; font-size: var(--u-14); }
  .mk-avatar { display: inline-grid; place-items: center; width: var(--u-30); height: var(--u-30); border-radius: var(--r-round); background: var(--raised); font-size: var(--u-11); font-weight: 600; color: var(--text2); }
  .mk-email { display: inline-flex; gap: var(--u-6); align-items: center; font-size: var(--u-12); }
  .mk-chips { display: flex; flex-wrap: wrap; gap: var(--u-6); }
  .mk-chip-tall { height: var(--u-28); gap: var(--u-6); }
  .mk-sent { display: inline-flex; align-items: center; gap: var(--u-6); color: var(--text2); font-size: var(--u-13); }
  .mk-dot-done { width: var(--u-7); height: var(--u-7); border-radius: var(--r-round); background: var(--done); }
  .mk-code { margin: 0; padding: var(--u-14) var(--u-16); border-radius: var(--u-12); background: var(--code-bg); color: var(--code-text); font-family: var(--font-mono); font-size: var(--u-13); line-height: 1.7; white-space: pre; overflow-x: auto; }
  .mk-code-s { color: var(--code-green); }
  .mk-tool { display: grid; grid-template-columns: var(--u-200) minmax(0, 1fr); gap: var(--u-12); padding: var(--u-9) 0; font-size: var(--fs-13-5); }
  .mk-tool .mk-num { font-weight: 600; }
  @media (max-width: 48rem) {
    .mk-two { grid-template-columns: 1fr; }
    .mk-tr-search { grid-template-columns: var(--u-30) minmax(0, 1fr) var(--u-56) var(--u-56); }
    .mk-tr-look { grid-template-columns: var(--u-28) minmax(0, 1fr) var(--u-56); }
    .mk-tr-look > .t-meta { display: none; }
    .mk-tr-search > .t-secondary { display: none; }
    .mk-tool { grid-template-columns: 1fr; gap: var(--u-2); }
    .mk-spend li { grid-template-columns: 1fr auto; }
    .mk-spend li .t-secondary { grid-column: 1 / -1; grid-row: 2; }
  }

  /* Features: four signals, index + sections, close */
  .mk-four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--u-16); padding-bottom: var(--u-56); }
  .mk-four-item { display: grid; gap: var(--u-8); align-content: start; padding: var(--u-18) var(--u-20); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); }
  .mk-feat { display: grid; grid-template-columns: var(--u-220) minmax(0, 1fr); gap: var(--u-64); padding-bottom: var(--u-80); }
  .mk-toc { position: sticky; top: var(--u-88); align-self: start; padding-top: var(--u-64); }
  .mk-toc .t-meta { margin-bottom: var(--u-6); }
  .mk-toc a { display: flex; align-items: center; gap: var(--u-10); padding: var(--u-7) 0; font-size: var(--u-14); color: var(--text2); text-decoration: none; }
  .mk-toc a:hover { color: var(--text); }
  .mk-toc .mk-num { width: var(--u-18); font-size: var(--u-12); flex: none; }
  .mk-fsec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--u-48); padding: var(--u-64) 0; border-top: var(--hair) solid var(--line); align-items: start; scroll-margin-top: var(--u-72); }
  .mk-close { border-top: var(--hair) solid var(--line); }
  .mk-close-in { display: flex; justify-content: space-between; align-items: center; gap: var(--u-40); padding: var(--u-88) 0; }
  .mk-close-h { font-family: var(--font-display); font-weight: 700; font-size: var(--u-40); line-height: 1.05; letter-spacing: -0.03em; max-width: 18em; }
    .mk-feat > *, .mk-fsec > *, .mk-split > *, .pr-split > * { min-width: 0; }
  @media (max-width: 64rem) { .mk-feat { grid-template-columns: minmax(0, 1fr); gap: 0; } .mk-toc { display: none; } .mk-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 48rem) {
    .mk-four { grid-template-columns: 1fr; padding-bottom: var(--u-32); }
    .mk-fsec { grid-template-columns: minmax(0, 1fr); gap: var(--u-24); padding: var(--u-40) 0; }
    .mk-close-in { flex-direction: column; align-items: flex-start; padding: var(--u-56) 0; }
    .mk-close-h { font-size: var(--u-30); }
  }

  /* Pricing */
  .pr-seg { flex: none; display: inline-flex; padding: var(--u-4); gap: var(--u-2); border-radius: var(--u-10); background: var(--raised); }
  .pr-seg button { height: var(--u-36); padding: 0 var(--u-14); white-space: nowrap; border: 0; border-radius: var(--u-7); background: transparent; font-size: var(--u-14); color: var(--text2); cursor: pointer; }
  .pr-seg button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 0 0 var(--hair) var(--line); color: var(--text); font-weight: 600; }
  .pr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-20); align-items: stretch; }
  .pr-plan { display: flex; flex-direction: column; padding: var(--u-30); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-card); }
  .pr-plan h2, .pr-plan h3 { font-size: var(--u-18); font-weight: 700; }
  .pr-who { margin-top: var(--u-6); font-size: var(--fs-14-5); color: var(--muted); }
  .pr-price { margin-top: var(--u-20); }
  .pr-amt { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-price); line-height: 1; letter-spacing: -0.03em; }
  .pr-per { font-size: var(--u-15); color: var(--muted); }
  .pr-alt { margin-top: var(--u-4); font-size: var(--u-13); color: var(--muted); }
  .pr-alt a { color: inherit; }
  .pr-plan .btn { margin-top: var(--u-22); }
  .pr-plan ul { margin-top: var(--u-22); padding-top: var(--u-16); border-top: var(--hair) solid var(--line); }
  .pr-plan li { display: flex; gap: var(--u-10); padding: var(--u-6) 0; font-size: var(--fs-14-5); }
  .pr-plan li svg { flex: none; margin-top: var(--u-4); }
  .pr-rec { background: var(--text); color: var(--bg); border-color: var(--text); }
  .pr-rec .pr-who, .pr-rec .pr-per, .pr-rec .pr-alt { color: var(--bg); opacity: 0.78; }
  .pr-rec ul { border-top-color: color-mix(in srgb, var(--bg) 30%, transparent); }
  :root[data-theme="dark"] .pr-rec { background: var(--overlay); color: var(--text); border-color: var(--line2); }
  :root[data-theme="dark"] .pr-rec .pr-who, :root[data-theme="dark"] .pr-rec .pr-per, :root[data-theme="dark"] .pr-rec .pr-alt { color: var(--text2); opacity: 1; }
  :root[data-theme="dark"] .pr-rec ul { border-top-color: var(--line2); }
  .pr-y { display: none; }
  [data-billing="year"] .pr-y { display: revert; }
  [data-billing="year"] .pr-m { display: none; }
  .pr-talk { margin-top: var(--u-22); font-size: var(--u-15); color: var(--text2); }
  .pr-talk a, .pr-lnk { color: var(--text); font-weight: 600; text-underline-offset: 0.2em; }
  .pr-count { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--u-56); padding: var(--u-44) var(--u-48); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); margin-top: var(--u-96); }
  .pr-count h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--u-34); line-height: 1.08; letter-spacing: -0.03em; }
  .pr-count-row { display: grid; grid-template-columns: var(--u-88) minmax(0, 1fr) var(--u-70); gap: var(--u-16); padding: var(--u-12) 0; border-top: var(--hair) solid var(--line); font-size: var(--fs-14-5); align-items: center; }
  .pr-count-total { display: flex; justify-content: space-between; padding-top: var(--u-14); border-top: var(--hair) solid var(--line2); font-weight: 700; }
  .pr-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--u-64); margin-top: var(--u-96); }
  .pr-split-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-64); margin-top: var(--u-96); }
  .pr-h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--u-36); line-height: 1.05; letter-spacing: -0.03em; }
  .pr-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--fs-14-5); }
  .pr-table th, .pr-table td { text-align: left; padding: var(--u-13) var(--u-8) var(--u-13) 0; border-top: var(--hair) solid var(--line); vertical-align: top; font-weight: 400; color: var(--text2); }
  .pr-table thead th { border-top: 0; padding-top: 0; font-weight: 700; color: var(--text); font-size: var(--u-14); }
  .pr-table tbody th { font-weight: 500; color: var(--text); width: 31%; }
  .pr-table .pr-group th { border-top: 0; padding: var(--u-26) 0 var(--u-8); font-size: var(--u-13); font-weight: 600; color: var(--muted); }
  .pr-table .pr-no { color: var(--muted); }
  .pr-table svg { color: var(--text); }
  .pr-faq details { border-top: var(--hair) solid var(--line); }
  .pr-faq details:last-child { border-bottom: var(--hair) solid var(--line); }
  .pr-faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--u-16); padding: var(--u-20) 0; font-weight: 600; font-size: var(--u-17); cursor: pointer; list-style: none; }
  .pr-faq summary::-webkit-details-marker { display: none; }
  .pr-faq summary svg { flex: none; color: var(--muted); transition: transform var(--dur) var(--ease); }
  .pr-faq details[open] summary svg { transform: rotate(180deg); }
  .pr-faq p { padding: 0 0 var(--u-22); max-width: 46em; font-size: var(--u-15); color: var(--text2); }
  .pr-end { padding-bottom: var(--u-104); }
  /* Three plans side by side down to a tablet in landscape; stacked from a tablet in portrait (D-667). */
  @media (max-width: 52rem) { .pr-plans { grid-template-columns: 1fr; } }
  @media (max-width: 64rem) { .pr-split, .pr-split-3 { grid-template-columns: 1fr; gap: var(--u-24); } .pr-count { grid-template-columns: 1fr; gap: var(--u-24); } }
  @media (max-width: 48rem) {
    .pr-seg { display: flex; width: 100%; }
    .pr-seg button { flex: 1; }
    .pr-plan { padding: var(--u-22); }
    .pr-count { padding: var(--u-22); margin-top: var(--u-40); }
    .pr-count h2 { font-size: var(--u-24); }
    .pr-count-ex { display: none; }
    .pr-compare { display: none; }
    .pr-split, .pr-split-3 { margin-top: var(--u-40); }
    .pr-h2 { font-size: var(--u-26); }
    .pr-faq summary { font-size: var(--u-15); }
  }

  /* Content pages (for/*, compare, about, ai-info) */
  .mk-band { padding: var(--u-96) 0; }
  .mk-band-sunken { background: var(--sunken); }
  .mk-band-first { padding-top: 0; }
  @media (max-width: 48rem) { .mk-band { padding: var(--u-56) 0; } }
  .mk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-16); }
  .mk-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-card { display: grid; gap: var(--u-10); align-content: start; padding: var(--u-24); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-card); }
  .mk-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--u-20); line-height: var(--lh-title); letter-spacing: -0.015em; }
  .mk-card p { font-size: var(--u-15); line-height: var(--lh-sub); color: var(--text2); }
  .mk-card .mk-icon { display: inline-grid; place-items: center; width: var(--u-32); height: var(--u-32); border-radius: var(--u-9); background: var(--raised); color: var(--text2); }
  .mk-card-top { display: flex; justify-content: space-between; align-items: center; gap: var(--u-12); }
  @media (max-width: 64rem) { .mk-cards, .mk-cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 48rem) { .mk-cards, .mk-cards-2, .mk-cards-4 { grid-template-columns: 1fr; } }
  .mk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-24); }
  .mk-steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mk-steps li { display: grid; gap: var(--u-10); align-content: start; }
  .mk-step-n { display: flex; align-items: center; gap: var(--u-12); }
  .mk-step-n span { display: inline-grid; place-items: center; width: var(--u-30); height: var(--u-30); flex: none; border-radius: var(--r-round); border: var(--hair) solid var(--line2); background: var(--surface); font-family: var(--font-mono); font-size: var(--u-13); font-weight: 600; }
  .mk-step-n::after { content: ""; flex: 1; height: var(--hair); background: var(--line2); }
  .mk-steps h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--u-20); }
  .mk-steps p { color: var(--text2); font-size: var(--u-15); }
  @media (max-width: 64rem) { .mk-steps, .mk-steps-4 { grid-template-columns: 1fr; } .mk-step-n::after { display: none; } }
  .mk-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--u-64); align-items: start; }
  @media (max-width: 64rem) { .mk-split { grid-template-columns: 1fr; gap: var(--u-32); } }
  .mk-faq details { border-top: var(--hair) solid var(--line); }
  .mk-faq details:last-child { border-bottom: var(--hair) solid var(--line); }
  .mk-faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--u-16); padding: var(--u-18) 0; font-weight: 600; font-size: var(--u-16); cursor: pointer; list-style: none; }
  .mk-faq summary::-webkit-details-marker { display: none; }
  .mk-faq summary svg { flex: none; color: var(--muted); transition: transform var(--dur) var(--ease); }
  .mk-faq details[open] summary svg { transform: rotate(45deg); }
  .mk-faq details > div, .mk-faq details > p { padding: 0 0 var(--u-20); max-width: 46em; font-size: var(--u-15); color: var(--text2); }
  .mk-table-wrap { overflow-x: auto; border-radius: var(--r-mkt-card); border: var(--hair) solid var(--line); background: var(--surface); }
  .mk-cmp { width: 100%; border-collapse: collapse; font-size: var(--u-14); min-width: var(--u-640); }
  .mk-cmp th, .mk-cmp td { padding: var(--u-12) var(--u-16); text-align: left; border-top: var(--hair) solid var(--line); vertical-align: top; color: var(--text2); }
  .mk-cmp thead th { border-top: 0; background: var(--raised); color: var(--text); font-weight: 600; }
  .mk-cmp tbody th { color: var(--text); font-weight: 500; }
  .mk-cmp .mk-us { color: var(--text); font-weight: 600; }
  .mk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-32); }
  .mk-stats strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--u-56); line-height: 1; letter-spacing: -0.035em; }
  .mk-stats span { display: block; margin-top: var(--u-10); color: var(--text2); font-size: var(--u-15); }
  @media (max-width: 48rem) { .mk-stats { grid-template-columns: 1fr; } .mk-stats strong { font-size: var(--u-40); } }
  .mk-prose { font-size: var(--u-16); line-height: var(--lh-prose); color: var(--text2); max-width: 70ch; }
  .mk-prose > * + * { margin-top: var(--u-14); }
  .mk-prose a { color: var(--text); }
  .mk-prose strong { color: var(--text); }
  .mk-prose ul { list-style: disc; padding-left: var(--u-22); }
  .mk-prose li + li { margin-top: var(--u-6); }
  .mk-prose code { font-family: var(--font-mono); font-size: var(--u-14); background: var(--raised); padding: 0 var(--u-4); border-radius: var(--u-4); }
  .mk-closing { padding: var(--u-96) 0; border-top: var(--hair) solid var(--line); }
  .mk-closing-in { display: grid; gap: var(--u-20); justify-items: center; text-align: center; }
  .mk-closing-h { font-family: var(--font-display); font-weight: 700; font-size: var(--u-56); line-height: 1.02; letter-spacing: -0.04em; max-width: 16ch; }
  @media (max-width: 48rem) { .mk-closing { padding: var(--u-56) 0; } .mk-closing-h { font-size: var(--u-34); } }
  .mk-toc-inline { display: flex; flex-wrap: wrap; gap: var(--u-8); margin-top: var(--u-24); }
  .mk-toc-inline a { display: inline-flex; align-items: center; height: var(--u-32); padding: 0 var(--u-12); border-radius: var(--u-8); border: var(--hair) solid var(--line); background: var(--surface); font-size: var(--u-13); font-weight: 500; color: var(--text2); text-decoration: none; }
  .mk-toc-inline a:hover { color: var(--text); border-color: var(--line2); }
}
@layer site {
  .mk-band-gap { margin-top: var(--u-64); }
  .mk-card-wide { padding: var(--u-32); }
  .mk-card-wide .mk-ctas { margin-top: var(--u-8); }
  .mk-facts tbody th { width: 30%; }
  .mk-facts tr:first-child th, .mk-facts tr:first-child td { border-top: 0; }
  .mk-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--u-16); margin-top: var(--u-32); }
  .mk-fig { padding: var(--u-20); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); }
  .mk-fig strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--u-40); line-height: 1; letter-spacing: -0.03em; }
  .mk-fig span { display: block; margin-top: var(--u-8); font-size: var(--u-14); color: var(--text2); }
  @media (max-width: 48rem) { .mk-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mk-fig strong { font-size: var(--u-30); } }
  .mk-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--u-16); }
  .mk-post { display: grid; gap: var(--u-10); align-content: start; padding: var(--u-22); border-radius: var(--r-mkt-card); background: var(--surface); border: var(--hair) solid var(--line); text-decoration: none; color: inherit; }
  .mk-post:hover { border-color: var(--line2); }
  .mk-post h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--u-18); line-height: var(--lh-title); }
  .mk-post p { font-size: var(--u-14); color: var(--text2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  @media (max-width: 64rem) { .mk-posts { grid-template-columns: 1fr; } }
}
@layer site {
  .mk-us-in { display: inline-flex; gap: var(--u-8); align-items: flex-start; }
  .mk-us-in svg { flex: none; margin-top: var(--u-3); color: var(--done); }
}
@layer site {
  .mk-doc-wrap { padding-top: var(--u-8); }
  .mk-toc-doc { padding-top: 0; max-height: calc(100vh - var(--u-120)); overflow-y: auto; }
  .mk-toc-doc a { padding: var(--u-5) 0; font-size: var(--u-13); }
  .mk-doc { max-width: 74ch; }
  .mk-doc h2 { scroll-margin-top: var(--u-88); padding-top: var(--u-32); margin-top: var(--u-32); border-top: var(--hair) solid var(--line); font-size: var(--u-28); letter-spacing: -0.02em; }
  .mk-doc h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .mk-doc h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--u-19); }
}
@layer site {
  .mk-cmp { table-layout: fixed; }
  .mk-cmp th:first-child { width: 20%; }
  .mk-cmp th:nth-child(2) { width: 40%; }
  /* On a phone the comparison reads as one block per capability, each tool labelled, instead of a 640px table cut
     mid-word inside a sideways scroller. */
  @media (max-width: 48rem) {
    .mk-cmp { min-width: 0; table-layout: auto; }
    .mk-cmp thead { position: absolute; width: var(--hair); height: var(--hair); overflow: hidden; clip-path: inset(50%); }
    .mk-cmp tr, .mk-cmp tbody th, .mk-cmp td, .mk-cmp tbody th:first-child { display: block; width: auto; }
    .mk-cmp tbody tr { padding: var(--u-16); border-top: var(--hair) solid var(--line); }
    .mk-cmp tbody tr:first-child { border-top: 0; }
    .mk-cmp tbody th, .mk-cmp td { padding: 0; border-top: 0; }
    .mk-cmp tbody th { font-weight: 600; font-size: var(--u-15); }
    .mk-cmp td { margin-top: var(--u-10); }
    .mk-cmp td::before { content: attr(data-label); display: block; margin-bottom: var(--u-2); font-size: var(--u-12); font-weight: 500; color: var(--muted); }
  }

  /* Public edition (D-642): the field head, the signal bar instead of the coral rule, signal-tinted icon tiles (D-643: no edge stripes). */
  .mk-hero { background-color: var(--field); background-image: var(--pat-ledger); border-bottom: var(--hair) solid var(--field-line); }
  .mk-hero + .mk-band, .mk-hero + section { border-top: 0; }
  /* The field head ends on a hairline: the first band keeps clear air under it instead of butting its cards against it. */
  :is(.mk-hero, .ct-hero) + :is(.mk-band-first, .mk-four, .mk-doc-wrap, .pr-top) { padding-top: var(--u-56); }
  @media (max-width: 48rem) { :is(.mk-hero, .ct-hero) + :is(.mk-band-first, .mk-four, .mk-doc-wrap, .pr-top) { padding-top: var(--u-32); } }
  .mk-eyebrow::before, .mk-label::before { width: var(--u-76); height: var(--u-7); border-radius: 0; background: var(--pat-sigbar) no-repeat left center; }
  .mk-rule { width: var(--u-76); height: var(--u-7); border-radius: 0; background: var(--pat-sigbar) no-repeat left center; }
  .mk-band-sunken { background-image: var(--pat-dots); }
  .mk-card { position: relative; overflow: hidden; }
  .mk-card .mk-icon { background: color-mix(in srgb, var(--fund) var(--tint-soft), var(--surface)); color: var(--fund); }
  .mk-card:nth-child(4n + 2) .mk-icon { background: color-mix(in srgb, var(--hire) var(--tint-soft), var(--surface)); color: var(--hire); }
  .mk-card:nth-child(4n + 3) .mk-icon { background: color-mix(in srgb, var(--lead) var(--tint-soft), var(--surface)); color: var(--lead); }
  .mk-card:nth-child(4n + 4) .mk-icon { background: color-mix(in srgb, var(--acq) var(--tint-soft), var(--surface)); color: var(--acq); }
  .mk-fig { position: relative; overflow: hidden; padding-bottom: var(--u-36); box-shadow: var(--shadow-card); }
  .mk-fig::after { content: ""; position: absolute; left: var(--u-20); bottom: var(--u-16); width: var(--u-28); height: var(--u-3); border-radius: var(--u-2); background: var(--fund-dot); }
  .mk-fig:nth-child(4n + 2)::after { background: var(--hire-dot); }
  .mk-fig:nth-child(4n + 3)::after { background: var(--lead-dot); }
  .mk-fig:nth-child(4n + 4)::after { background: var(--acq-dot); }
  .mk-closing { background-color: var(--field); background-image: var(--pat-ledger); border-top: var(--hair) solid var(--field-line); }
}

/* app.css */
/* App layer: the dashboard SPA and the sign-in pages (R4-R6 and P6 boards, 03-DESIGN.md design system handoff).
   Tokens only. Neutral surfaces; colour carries meaning only (signal words and dots, highlighted facts, spend chips,
   role-function bars, the fit ring, triage icons). Ink is the one primary per view. No left-border accents, no glow.
   Everything of the logged-in app is nested under .shell so generic names never reach the public site or /design. */
@layer app {
  /* Sign-in pages */
  .auth { min-height: 100dvh; display: grid; place-items: center; padding: var(--s-6); background: var(--bg); }
  .auth-card { width: min(var(--auth-w), 100%); display: grid; gap: var(--s-4); padding: var(--s-8); }
  .auth-logo { justify-self: start; }
  .auth-form { display: grid; gap: var(--s-3); }
  .auth-error { color: var(--danger); font-size: var(--fs-secondary); }
  .field { display: grid; gap: var(--s-1); }
  .input-code { font-family: var(--font-mono); letter-spacing: 0.3em; font-size: var(--fs-section); }
  .boot { min-height: 100dvh; }
  .grow { flex: 1; }
  .row-line { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
  .vstack { display: grid; gap: var(--s-3); }
  .chips { display: flex; flex-wrap: wrap; gap: var(--s-1); align-items: center; }

  .shell {
    /* ---------- Small type and colour helpers (R5 dense scale) ---------- */
    .t12 { font-size: var(--fs-chip); }
    .t13 { font-size: var(--fs-13); }
    .t14 { font-size: var(--fs-body); }
    .t15 { font-size: var(--fs-section); }
    .b5 { font-weight: 500; } .b6 { font-weight: 600; }
    .muted { color: var(--muted); }
    .text2 { color: var(--text2); }
    .c-fit-top { color: var(--fit-top); } .c-fit-strong { color: var(--fit-strong); } .c-fit-mod { color: var(--fit-mod); }
    .min0 { min-width: 0; }
    .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; display: block; }
    .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .center { text-align: center; }
    .num-r { text-align: right; justify-self: end; }
    .label { font-size: var(--fs-chip); font-weight: 500; color: var(--muted); }
    .field-k { display: block; font-size: var(--fs-13); font-weight: 600; color: var(--text); margin-bottom: var(--a6); }
    .t-page-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-page-title); letter-spacing: -0.02em; }
    .t-name-standalone { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-name-standalone); line-height: var(--lh-title); }
    .t-body { font-size: var(--fs-body); }
    .link, .linklike { background: none; border: 0; padding: 0; color: var(--text); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: var(--s-1); }
    .nolink { text-decoration: none; color: inherit; }
    .nolink:hover { text-decoration: underline; }
    a { color: inherit; }
    svg[stroke] { stroke-linecap: round; stroke-linejoin: round; }

    /* ---------- Primitives the boards share ---------- */
    .btn { gap: var(--a6); border-radius: var(--r-btn); }
    .btn > svg { flex: none; }
    .btn-xs { height: var(--a28); padding: 0 var(--a10); font-size: var(--fs-meta); border-radius: var(--r-btn); }
    .btn-sm { height: var(--control-h); padding: 0 var(--s-3); font-size: var(--fs-button); }
    .btn-lg { height: var(--a44); padding: 0 var(--s-5); font-size: var(--fs-section); border-radius: var(--r-10); }
    .btn-ink { background: var(--text); color: var(--on-ink); }
    .btn-ink:hover { background: var(--text2); }
    .btn-secondary { background: var(--surface); border-color: var(--line2); color: var(--text); box-shadow: var(--shadow-card); }
    .btn-secondary:hover { background: var(--raised); }
    .btn-secondary.is-on { border-color: var(--text); box-shadow: inset 0 0 0 var(--hair) var(--text); }
    .btn-ghost { color: var(--text2); }
    .btn-ghost:hover { background: var(--raised); color: var(--text); }
    .btn.on-int { color: var(--int); }
    .iconbtn { width: var(--control-h); height: var(--control-h); flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-btn); border: var(--hair) solid var(--line); background: var(--surface); color: var(--text2); cursor: pointer; padding: 0; }
    .iconbtn:hover { background: var(--raised); color: var(--text); }
    .iconbtn-sm { width: var(--a28); height: var(--a28); }
    .iconbtn.ghost { border-color: transparent; background: transparent; }
    .iconbtn.on-int { color: var(--int); background: color-mix(in srgb, var(--int) var(--tint), transparent); }
    .iconbtn.on-later { color: var(--later); background: color-mix(in srgb, var(--later) var(--tint), transparent); }
    .lk { display: inline-flex; align-items: center; gap: var(--a6); height: var(--a28); padding: 0 var(--a9); border-radius: var(--r-btn); background: var(--raised); border: var(--hair) solid var(--line); color: var(--text2); font-size: var(--fs-meta); font-weight: 500; text-decoration: none; white-space: nowrap; }
    .lk:hover { color: var(--text); border-color: var(--line2); }
    .lk.ico { width: var(--a28); padding: 0; justify-content: center; }
    .chip { display: inline-flex; align-items: center; gap: var(--a6); height: var(--s-6); padding: 0 var(--a9); border-radius: var(--r-chip); background: var(--raised); color: var(--text2); font-size: var(--fs-chip); font-weight: 500; white-space: nowrap; text-decoration: none; border: 0; }
    .chip-remove { display: inline-flex; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
    .tag { display: inline-flex; align-items: center; height: var(--s-6); padding: 0 var(--a10); border-radius: var(--r-chip); border: var(--hair) solid var(--line); background: transparent; color: var(--text2); font-size: var(--fs-chip); font-weight: 500; white-space: nowrap; font-family: inherit; cursor: pointer; }
    .tag:hover { color: var(--text); border-color: var(--line2); }
    .tchip { display: inline-flex; align-items: center; height: var(--s-6); padding: 0 var(--a9); border-radius: var(--r-chip); font-size: var(--fs-chip); font-weight: 600; white-space: nowrap; color: var(--chip-hue); background: color-mix(in srgb, var(--chip-hue) 13%, transparent); }
    .new { display: inline-flex; align-items: center; height: var(--s-5); padding: 0 var(--a7); border-radius: var(--a6); background: var(--raised); color: var(--text); font-size: var(--fs-115); font-weight: 600; box-shadow: inset 0 0 0 var(--hair) var(--line2); white-space: nowrap; }
    /* "New since you last looked": the brand red of the "N new leads" pill, so new reads as one thing (D-719). Neutral .new stays for Lead, Smart list. */
    .new.flag { background: var(--btn); color: var(--on-btn); box-shadow: none; }
    .status-chip { display: inline-flex; align-items: center; height: var(--s-5); padding: 0 var(--a7); border-radius: var(--a6); font-size: var(--fs-115); font-weight: 600; white-space: nowrap; color: var(--st, var(--skip)); background: color-mix(in srgb, var(--st, var(--skip)) var(--tint), transparent); }
    .badge-pc { gap: var(--a5); height: var(--a22); font-size: var(--fs-chip); }
    .st-interested { --st: var(--int); } .st-later { --st: var(--later); } .st-contacted { --st: var(--done); } .st-skipped { --st: var(--skip); }
    .status-dot { width: var(--a7); height: var(--a7); border-radius: var(--r-round); background: var(--st, var(--skip)); flex: none; display: inline-block; }
    .lock-pill { display: inline-flex; align-items: center; gap: var(--a5); height: var(--s-6); padding: 0 var(--s-2); border-radius: var(--r-chip); background: var(--raised); color: var(--text2); font-size: var(--fs-chip); font-weight: 600; text-decoration: none; white-space: nowrap; }
    .lock-line { display: flex; align-items: center; gap: var(--a6); }
    .plan-badge { display: inline-flex; height: var(--s-5); padding: 0 var(--a7); border-radius: var(--a6); background: var(--raised); font-size: var(--fs-115); font-weight: 600; color: var(--text2); }
    .avatar { flex: none; width: var(--a30); height: var(--a30); border-radius: var(--r-round); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--fs-115); background: var(--raised); color: var(--text2); }
    .avatar-line { width: var(--a34); height: var(--a34); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    .dot { width: var(--a7); height: var(--a7); border-radius: var(--r-round); display: inline-block; flex: none; background: var(--sig-dot, var(--muted)); }
    .dot-fund, .sig-fund { --sig-dot: var(--fund-dot); --sig: var(--fund); }
    .dot-hire, .sig-hire { --sig-dot: var(--hire-dot); --sig: var(--hire); }
    .dot-lead, .sig-lead { --sig-dot: var(--lead-dot); --sig: var(--lead); }
    .dot-acq, .sig-acq { --sig-dot: var(--acq-dot); --sig: var(--acq); }
    .dot-ink { --sig-dot: var(--text); width: var(--a6); height: var(--a6); }
    .dot-ok { --sig-dot: var(--fit-top); } .dot-mod { --sig-dot: var(--fit-mod); }
    .sig { display: inline-flex; align-items: center; gap: var(--a6); font-size: var(--fs-meta); font-weight: 600; white-space: nowrap; color: var(--sig, var(--text2)); }
    .conf { display: inline-flex; gap: var(--a2); }
    .conf i { width: var(--s-2); height: var(--s-2); border-radius: var(--a2); background: var(--line2); }
    .conf i.on { background: var(--text2); }
    .kbd { min-width: var(--s-4); height: var(--a18); padding: 0 var(--a5); border-radius: var(--a5); font-size: var(--fs-kbd); }
    .cb { width: var(--a15); height: var(--a15); margin: 0; flex: none; accent-color: var(--text); cursor: pointer; }
    .input { height: var(--control-h); border-radius: var(--r-input); }
    .input-sm { height: var(--a30); font-size: var(--fs-13); padding: 0 var(--a10); }
    .textarea { height: auto; min-height: var(--textarea-h); padding: var(--s-3); resize: vertical; width: 100%; line-height: var(--lh-body); font-family: inherit; }
    .textarea-sm { min-height: var(--s-18); }
    .search-input { display: flex; align-items: center; gap: var(--s-2); height: var(--a34); padding: 0 var(--a10); border-radius: var(--r-btn); border: var(--hair) solid var(--line2); background: var(--surface); color: var(--muted); font-size: var(--fs-13); }
    .search-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; }
    .search-input:focus-within { border-color: var(--text); }
    .fchip { display: inline-flex; align-items: center; gap: var(--a6); height: var(--a30); padding: 0 var(--s-2) 0 var(--a10); border-radius: var(--a6); border: var(--hair) solid var(--line2); background: var(--raised); font-size: var(--fs-13); color: var(--text); white-space: nowrap; }
    .fchip .k { color: var(--muted); }
    .fchip b { font-weight: 600; }
    .fchip .x { display: inline-flex; border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; }
    .fchip .x:hover { color: var(--text); }
    .fchip-sm { height: var(--s-6); font-size: var(--fs-meta); }
    .chip-row { display: flex; flex-wrap: wrap; gap: var(--a6); align-items: center; }
    .seg { display: inline-flex; padding: var(--a3); border-radius: var(--r-10); background: var(--raised); gap: var(--a2); }
    .seg button { height: var(--a30); padding: 0 var(--a10); border-radius: var(--r-btn); border: 0; background: transparent; font-size: var(--fs-meta); font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: var(--a6); }
    .seg button:hover { color: var(--text); }
    .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-card); }
    .seg button:disabled { opacity: 0.5; cursor: not-allowed; }
    .seg-full { display: flex; width: 100%; }
    .seg-full button { flex: 1; justify-content: center; }
    .seg-sm button { height: var(--s-6); padding: 0 var(--a9); }
    .seg-icons button { width: var(--control-h); padding: 0; justify-content: center; height: var(--a26); }
    .pills { display: flex; flex-wrap: wrap; gap: var(--a6); }
    .pill { display: inline-flex; align-items: center; gap: var(--a7); height: var(--control-h); padding: 0 var(--s-3); border-radius: var(--a9); background: transparent; border: var(--hair) solid var(--line); font-size: var(--fs-13); font-weight: 500; color: var(--text2); cursor: pointer; white-space: nowrap; }
    .pill[aria-pressed="true"] { background: var(--raised); border-color: transparent; color: var(--text); font-weight: 600; }
    .pill-sm { height: var(--a28); padding: 0 var(--a10); font-size: var(--fs-meta); }
    .opts { display: flex; flex-wrap: wrap; gap: var(--a6); }
    .opt { display: inline-flex; align-items: center; gap: var(--a6); height: var(--a28); padding: 0 var(--s-2); border-radius: var(--a6); border: var(--hair) solid var(--line2); background: transparent; font-size: var(--fs-meta); color: var(--text2); white-space: nowrap; cursor: pointer; }
    .opt:hover { color: var(--text); }
    .opt[aria-pressed="true"] { border-color: var(--text); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 var(--hair) var(--text); }
    .check { display: flex; gap: var(--s-2); align-items: center; font-size: var(--fs-13); cursor: pointer; }
    .mbar { display: block; height: var(--s-2); border-radius: var(--s-1); background: var(--raised); overflow: hidden; }
    .mbar > span { display: block; height: 100%; border-radius: var(--s-1); background: color-mix(in srgb, var(--chip-hue) 82%, var(--surface)); }
    .credit { font-size: var(--fs-115); color: var(--muted); }
    a.credit { text-decoration: none; }
    a.credit:hover { color: var(--text); text-decoration: underline; }
    .danger-text { color: var(--danger) !important; }
    .form-err { color: var(--danger); font-size: var(--fs-13); }
    .field-count { justify-self: end; }
    .sep { width: var(--a3); height: var(--a3); border-radius: var(--r-round); background: var(--muted); opacity: 0.7; }

    /* Logo tile: the real logo on white, or the initial on ink (R5 uses filled tiles). */
    .logo-tile { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--a40); height: var(--a40); border-radius: var(--r-10); background: var(--text); color: var(--on-ink); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-17); overflow: hidden; }
    .logo-tile.has-img { background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); }
    .logo-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
    .logo-tile.has-img .logo-initials { visibility: hidden; }
    .logo-xs { width: var(--s-6); height: var(--s-6); border-radius: var(--a6); font-size: var(--fs-chip); }
    .logo-sm { width: var(--a36); height: var(--a36); border-radius: var(--a9); font-size: var(--fs-section); }
    .logo-lg { width: var(--s-12); height: var(--s-12); border-radius: var(--a15); font-size: var(--fs-20); }

    /* ICP ring (R5): arc + percentage, tier under it */
    .ring2 { display: inline-flex; align-items: center; gap: var(--a7); white-space: nowrap; text-decoration: none; color: inherit; flex: none; }
    .ring2 svg { flex: none; }
    .ring2 circle { fill: none; stroke-width: 3.2; }
    .ring2-track { stroke: color-mix(in srgb, var(--line2) 75%, transparent); }
    .ring2-arc { stroke: var(--ring-c); stroke-linecap: round; }
    .ring2-dash { stroke: var(--line2); stroke-dasharray: 3 3; }
    .ring2-text { display: inline-flex; flex-direction: column; line-height: 1.1; }
    .ring2-pct { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-13); color: var(--ring-c); }
    .ring2-tier { font-size: var(--fs-115); font-weight: 500; color: var(--muted); }
    .ring2-muted { color: var(--muted); font-size: var(--fs-chip); font-weight: 500; gap: var(--a6); }
    .fit-top { --ring-c: var(--fit-top); } .fit-strong { --ring-c: var(--fit-strong); } .fit-mod { --ring-c: var(--fit-mod); } .fit-low { --ring-c: var(--fit-low); }

    /* Menus and popovers */
    .drop { position: relative; display: inline-flex; }
    .menu { position: absolute; top: calc(100% + var(--a6)); left: 0; z-index: var(--z-drawer); min-width: var(--app-split-w); max-width: calc(100vw - var(--s-8)); max-height: 70dvh; overflow: auto; display: grid; gap: var(--a2); padding: var(--a6); border-radius: var(--r-12); background: var(--overlay); border: var(--hair) solid var(--line2); box-shadow: var(--shadow-pop); }
    .menu { min-width: calc(var(--app-split-w) * 0.62); }
    .menu-right { left: auto; right: 0; }
    .menu-up { top: auto; bottom: calc(100% + var(--a6)); }
    .menu-wide { min-width: var(--app-refine-w); }
    .menu-pad { padding: var(--s-2) var(--a10); }
    .menu.menu-pad { padding: var(--s-3); gap: var(--s-2); }
    .menu-k { padding: var(--a6) var(--a10) var(--a2); font-size: var(--fs-chip); font-weight: 600; color: var(--muted); }
    .menu-item { display: flex; align-items: center; gap: var(--a9); width: 100%; min-height: var(--control-h); padding: 0 var(--a10); border: 0; border-radius: var(--r-btn); background: none; font: inherit; font-size: var(--fs-13); color: var(--text); text-decoration: none; cursor: pointer; text-align: left; }
    .menu-item:hover { background: var(--raised); }
    .menu-item:disabled { opacity: 0.5; cursor: not-allowed; }
    .menu-item svg { color: var(--text2); flex: none; }
    .menu-gap { width: var(--a14); flex: none; }
    .menu-check { display: flex; align-items: center; gap: var(--a9); min-height: var(--control-h); padding: 0 var(--a10); border-radius: var(--r-btn); font-size: var(--fs-13); cursor: pointer; }
    .menu-check:hover { background: var(--raised); }
    .menu-sep { height: var(--hair); background: var(--line); margin: var(--a3) var(--a6); }
    .menu-date { display: grid; gap: var(--s-1); padding: var(--a6) var(--a10); color: var(--muted); }
    .saved-row { display: flex; align-items: center; gap: var(--a2); border-radius: var(--r-btn); }
    .saved-row:hover { background: var(--raised); }
    .saved-row a { flex: 1; min-width: 0; display: grid; padding: var(--a6) var(--a10); text-decoration: none; font-size: var(--fs-13); }
    .pick-list { display: grid; background: var(--overlay); border: var(--hair) solid var(--line); border-radius: var(--r-10); box-shadow: var(--shadow-pop); overflow: hidden; max-height: calc(var(--s-34) * 2); overflow-y: auto; }
    .pick-list button { width: 100%; display: flex; align-items: center; gap: var(--s-2); text-align: left; padding: var(--s-2) var(--s-3); border: 0; background: none; font: inherit; font-size: var(--fs-13); color: var(--text); cursor: pointer; }
    .pick-list button:hover, .pick-list button[aria-selected="true"] { background: var(--raised); }
    .pick-list button .t12 { margin-left: auto; }
    .pick-static { box-shadow: none; max-height: none; }
    .multipick { position: relative; display: grid; gap: var(--s-2); }

    /* Dialogs and toasts */
    .scrim { position: fixed; inset: 0; background: var(--scrim); z-index: var(--z-dialog); display: grid; place-items: center; padding: var(--s-4); }
    .dialog { width: min(var(--dialog-w), calc(100vw - var(--s-8))); max-height: calc(100dvh - var(--s-8)); overflow: auto; background: var(--overlay); border-radius: var(--r-14); border: var(--hair) solid var(--line2); box-shadow: var(--shadow-pop); padding: var(--s-6); display: grid; gap: var(--s-4); }
    .dialog-wide { width: min(var(--app-modal-w), calc(100vw - var(--s-8))); padding: 0; gap: 0; display: flex; flex-direction: column; overflow: hidden; }
    .dialog:focus { outline: none; }
    .dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
    .dialog-wide .dialog-head { padding: var(--s-6) var(--s-6) var(--a2); }
    /* A form straight in a wide dialog (the webhook endpoint) keeps the dialog's margins: it sat flush on the edges. */
    .dialog-wide > form { padding: var(--s-4) var(--s-6) var(--s-6); }
    .dialog-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-page-title); letter-spacing: -0.02em; line-height: var(--lh-title); }
    .dialog-actions { display: flex; justify-content: flex-end; gap: var(--s-2); align-items: center; }
    .toasts { position: fixed; left: 50%; bottom: var(--s-6); transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: var(--s-2); justify-items: center; }
    .toast { border-radius: var(--r-10); padding: var(--a10) var(--s-4); }
    .toast-error { background: var(--overlay); color: var(--text); border: var(--hair) solid var(--line2); }
    .spinner { width: var(--a14); height: var(--a14); }
    .skel { display: block; border-radius: var(--r-btn); background: var(--sk-fill); animation: pulse var(--dur-pulse) ease-in-out infinite; }
    .skel-line { height: var(--a14); width: 70%; }
    .skel-line.short { width: 40%; }
    .skel-block { height: var(--s-18); width: 100%; }
    .skel-card { height: var(--s-24); width: 100%; border-radius: var(--r-12); }
    .skel-tile { height: calc(var(--s-34) * 1.1); border-radius: var(--r-card); }
    .skel-logo { width: var(--s-12); height: var(--s-12); border-radius: var(--a15); }
    .skel-title { width: 30%; height: var(--a26); }
    .skel-card + .skel-card { margin-top: var(--s-4); }

    /* Empty states (R4): neutral art panel, one icon tile, title, line, one next step */
    .empty-state { display: grid; gap: var(--a10); justify-items: start; padding: var(--s-2) 0; max-width: 100%; }
    .empty-card { padding: var(--s-5); border-radius: var(--r-card); border: var(--hair) solid var(--line); background: var(--surface); box-shadow: var(--shadow-raise); }
    .empty-art { width: 100%; display: grid; place-items: center; height: calc(var(--s-28) - var(--a3)); border-radius: var(--r-12); background: var(--raised); margin-bottom: var(--a6); }
    .empty-ico { width: calc(var(--s-12) + var(--s-2) + var(--a2)); height: calc(var(--s-12) + var(--s-2) + var(--a2)); border-radius: var(--r-14); display: grid; place-items: center; background: var(--surface); border: var(--hair) solid var(--line2); color: var(--text); box-shadow: var(--shadow-card); }
    .empty-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-17); letter-spacing: -0.015em; }
    .empty-line { font-size: var(--fs-13); line-height: 1.55; color: var(--text2); max-width: 62ch; }
    .empty-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--a6); }

    /* Scene empty state (owner, 2026-11-25): words and the next step beside a small static scene drawn from the app's
       own shapes. Status hues only on pills and badges that carry their word. Stacked under 44rem of its own width. */
    .scene-empty { container: scene / inline-size; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-raise); overflow: hidden; --sg-w: calc(var(--s-28) * 3.1); }
    .scene-in { display: grid; grid-template-columns: minmax(0, 1fr); }
    .scene-words { display: grid; align-content: center; justify-items: start; gap: var(--a10); padding: var(--s-6); }
    .scene-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-20); font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
    .scene-line { margin: 0; font-size: var(--fs-body); line-height: 1.55; color: var(--text2); max-width: 46ch; }
    .scene-acts { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
    .scene-hint { margin: 0; display: flex; align-items: center; gap: var(--a6); margin-top: var(--s-2); font-size: var(--fs-13); color: var(--muted); }
    .scene-stage { order: -1; display: grid; place-items: center; min-height: calc(var(--s-28) * 1.7); padding: var(--s-6) var(--s-5); background: var(--raised); }
    @container scene (min-width: 44rem) {
      .scene-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
      .scene-words { padding: var(--s-8); }
      .scene-stage { order: 2; min-height: calc(var(--s-28) * 1.9); margin: var(--a6); border-radius: calc(var(--r-card) - var(--a6)); }
    }
    .st-interested { --st: var(--int); } .st-later { --st: var(--later); } .st-contacted { --st: var(--done); } .st-skipped { --st: var(--skip); }
    .st-fit { --st: var(--fit-strong); } .st-neutral { --st: var(--muted); }
    .sg-card { display: flex; align-items: center; gap: var(--a10); width: min(100%, var(--sg-w)); padding: var(--a10) var(--s-3); border-radius: var(--r-12); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); }
    .sg-logo { flex: none; width: var(--a28); height: var(--a28); border-radius: var(--r-btn); background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--line); }
    .sg-text { flex: 1; min-width: 0; display: grid; gap: var(--a6); }
    .sg-text i { display: block; height: var(--a6); border-radius: var(--a3); background: var(--line2); }
    .sg-text i + i { width: 36%; background: var(--line); }
    .sg-card.is-faded .sg-logo, .sg-card.is-faded .sg-text { opacity: 0.5; }
    .sg-card.is-dashed { background: none; box-shadow: none; border: var(--hair) dashed var(--line2); }
    .sg-card.is-dashed .sg-logo, .sg-card.is-dashed .sg-text i { background: var(--line); box-shadow: none; }
    .sg-pill { flex: none; display: inline-flex; align-items: center; gap: var(--a5); height: var(--a22); padding: 0 var(--a9); border-radius: var(--r-pill); font-size: var(--fs-chip); font-weight: 600; white-space: nowrap; color: var(--st); background: color-mix(in srgb, var(--st) 11%, var(--surface)); box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--st) 28%, var(--line)); }
    .sg-heart { flex: none; display: grid; place-items: center; width: var(--a28); height: var(--a28); border-radius: var(--r-round); color: var(--st); background: color-mix(in srgb, var(--st) 11%, var(--surface)); }
    .sg-badge { display: grid; place-items: center; width: var(--s-12); height: var(--s-12); border-radius: var(--r-round); color: var(--st); background: color-mix(in srgb, var(--st) 11%, var(--surface)); box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--st) 30%, var(--line)), var(--shadow-card); }
    .sg-restore { flex: none; display: inline-flex; align-items: center; gap: var(--a5); height: var(--a22); padding: 0 var(--a9); border-radius: var(--r-btn); font-size: var(--fs-chip); font-weight: 600; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    .sg-muted { font-size: var(--fs-chip); color: var(--muted); white-space: nowrap; }
    /* A fanned stack: the cards share one cell, the ones behind sit higher and smaller. */
    .sg-stack { display: grid; justify-items: center; align-items: end; width: 100%; padding-top: var(--s-6); }
    .sg-stack > .sg-card { grid-area: 1 / 1; position: relative; z-index: 3; }
    .sg-stack > .is-back { z-index: 2; translate: 0 calc(-1 * var(--a14)); scale: 0.93; opacity: 0.85; }
    .sg-stack > .is-back2 { z-index: 1; translate: 0 calc(-2 * var(--a14)); scale: 0.86; opacity: 0.6; }
    .sg-tag { grid-row: 2; margin-top: var(--s-4); }
    .sg-flow { display: grid; justify-items: center; gap: var(--s-3); width: 100%; }
    .sg-arrow { display: grid; place-items: center; color: var(--muted); }
    .sg-back-row { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--a28); padding: 0 var(--s-3); border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); }
    .sg-later { display: grid; justify-items: center; gap: var(--s-4); width: 100%; }
    .sg-week { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--a5); width: min(100%, var(--sg-w)); }
    .sg-day { display: grid; justify-items: center; gap: var(--a2); padding: var(--a6) 0; border-radius: var(--r-10); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); font-size: var(--fs-chip); color: var(--muted); }
    .sg-day b { font-size: var(--fs-13); font-weight: 600; color: var(--text2); }
    .sg-day.is-today { box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    .sg-day.is-today b { color: var(--text); }
    .sg-day.is-back { --st: var(--later); color: var(--st); background: color-mix(in srgb, var(--st) 11%, var(--surface)); box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--st) 30%, var(--line)); }
    .sg-day.is-back b { color: var(--st); }
    .sg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--a10); width: min(100%, var(--sg-w)); }
    .sg-tile { display: grid; align-content: start; gap: var(--a10); min-height: var(--s-24); padding: var(--s-3); border-radius: var(--r-12); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); }
    .sg-tile small { font-size: var(--fs-chip); color: var(--muted); }
    .sg-tile.is-new { align-content: center; justify-items: center; gap: var(--a5); background: none; box-shadow: none; border: var(--hair) dashed var(--line2); color: var(--muted); }
    .sg-bar { display: block; width: 80%; height: var(--a6); border-radius: var(--a3); background: var(--line2); }
    .sg-bar.short { width: 55%; }
    .sg-logos { display: flex; }
    .sg-logos span { width: var(--a22); height: var(--a22); border-radius: var(--r-btn); background: var(--raised); box-shadow: 0 0 0 var(--a2) var(--surface), inset 0 0 0 var(--hair) var(--line); }
    .sg-logos span + span { margin-left: calc(-1 * var(--a6)); }
    .sg-listframe { display: grid; gap: var(--a6); width: min(100%, var(--sg-w)); padding: var(--s-3); border-radius: var(--r-12); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); }
    .sg-listhead { display: flex; align-items: center; gap: var(--a6); padding: 0 var(--a2) var(--a6); color: var(--text2); }
    .sg-listhead .sg-bar { width: 40%; }
    .sg-slot { height: var(--a36); border-radius: var(--r-10); border: var(--hair) dashed var(--line2); }
    .sg-slot + .sg-slot { opacity: 0.6; }
    .sg-slot.is-hint { display: flex; align-items: center; gap: var(--a5); padding: 0 var(--s-3); font-size: var(--fs-chip); font-weight: 600; color: var(--muted); opacity: 1; }
    .sg-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--a6); }
    .sg-chip { display: inline-flex; align-items: center; gap: var(--a5); height: var(--a22); padding: 0 var(--a9); border-radius: var(--r-pill); font-size: var(--fs-chip); font-weight: 600; color: var(--text2); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    .sg-cleared { display: grid; justify-items: center; width: 100%; }
    .sg-cleared .sg-badge { position: relative; z-index: 1; }
    .sg-tray { display: grid; place-items: center; width: min(100%, var(--sg-w)); height: var(--s-24); margin-top: calc(-1 * var(--s-6)); padding-top: var(--s-6); border-radius: var(--r-12); border: var(--hair) dashed var(--line2); }
    .sg-zero { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--muted); }
    .split-none { padding: var(--s-6) var(--s-4); }

    /* Banners (profile card, ICP invitation, free strip): one line on a surface */
    .banner { display: flex; align-items: center; gap: var(--a14); padding: var(--s-3) var(--a14) var(--s-3) var(--s-4); border-radius: var(--r-12); border: var(--hair) solid var(--line2); background: var(--surface); }
    .banner-ico { flex: none; width: var(--control-h); height: var(--control-h); border-radius: var(--r-btn); display: grid; place-items: center; background: var(--raised); color: var(--text2); }
    .banner-t { font-size: var(--fs-body); font-weight: 600; }
    .banner-s { font-size: var(--fs-13); color: var(--text2); }
    .banner-strong { background: var(--raised); border-color: var(--line); }
    .banner-strong .banner-ico { background: var(--text); color: var(--on-ink); }
    .banner .logo-xs { width: var(--control-h); height: var(--control-h); border-radius: var(--r-btn); font-size: var(--fs-body); }
    .profile-form { display: flex; gap: var(--s-2); flex: 1; flex-wrap: wrap; align-items: center; min-width: 0; }

    /* ---------- Shell ---------- */
    & { display: grid; grid-template-columns: var(--app-side-w) minmax(0, 1fr); height: 100dvh; overflow: hidden; background: var(--bg); }
    &.shell-bare { display: block; height: auto; overflow: visible; }
    .main { overflow: auto; height: 100dvh; min-width: 0; position: relative; overflow-anchor: none; }
    /* `&`: the bare shell is the .shell element itself (a descendant selector never matched, so on a phone onboarding
       kept the topbar-less main 60px short of the screen). */
    &.shell-bare .main { height: auto; overflow: visible; }
    .topbar { display: none; }
    .app-band { margin: var(--s-3) var(--s-4) 0; }
    .band-note { padding: var(--s-3) var(--s-4); border-radius: var(--r-inset); background: var(--raised); font-size: var(--fs-secondary); }
    .band-warn { background: var(--hl-bg); color: var(--text); }

    /* The sidebar. Folded to the icon rail (when the person chooses, on any screen) every icon, the avatar and
       the logo's f stay exactly where they are: only the right edge moves, the labels fade, the coral dot glides
       in behind the f. Nothing inside reflows, so nothing jumps (motion.css, "The sidebar folds"). */
    .side { position: sticky; top: 0; z-index: var(--z-side); height: 100dvh; align-self: start; display: flex; flex-direction: column; gap: var(--a2); min-width: 0; padding: var(--s-5) var(--a14); background: var(--sunken); border-right: var(--hair) solid var(--line); }
    .side-scroll { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--a2); margin: 0 calc(-1 * var(--a14)); padding: 0 var(--a14); overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; }
    .side-logo { display: flex; align-items: center; height: var(--a30); box-sizing: content-box; padding: 0 var(--a11) var(--s-4); overflow: hidden; color: var(--text); text-decoration: none; }
    .side-logo .wordmark { height: var(--a30); max-width: none; flex: none; }
    .side-logo .wm-rest { fill: currentColor; }
    .side-search { display: flex; align-items: center; gap: var(--a9); height: var(--a40); padding: 0 var(--a10) 0 var(--s-3); margin-bottom: var(--s-2); border-radius: var(--r-10); border: var(--hair) solid var(--line); background: var(--surface); color: var(--muted); font-size: var(--fs-body); cursor: pointer; box-shadow: var(--shadow-card); text-align: left; overflow: hidden; white-space: nowrap; }
    .side-search svg, .side-search .kbd { flex: none; }
    .side-search .side-label { flex: 1; }
    .side-group { position: relative; padding: var(--s-5) var(--s-3) var(--a6); font-size: var(--fs-chip); font-weight: 500; color: var(--muted); white-space: nowrap; }
    /* The rail's separator: the group's place stays, its name gives way to a hairline. */
    .side-group::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--s-5) + 0.5lh); height: var(--hair); background: var(--line); opacity: 0; }
    .side-item { display: flex; align-items: center; gap: var(--a11); height: var(--app-nav-h); flex: none; padding: 0 var(--s-3); border-radius: var(--r-10); text-decoration: none; font-size: var(--fs-145); font-weight: 500; color: var(--text2); overflow: hidden; white-space: nowrap; }
    .side-item:hover { background: var(--raised); color: var(--text); }
    .side-item[aria-current="page"] { background: var(--raised); color: var(--text); font-weight: 600; }
    .side-item.drop { background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--text); }
    .side-item svg { flex: none; }
    /* Your ICP mark (D-631): one at a time. Coral is the brand dot, here because an unset ICP blunts the whole app
       (owner's call, overrides "coral never in the app" for this mark only); amber is a fact that needs action. */
    .side-icon-wrap { position: relative; display: inline-flex; flex: none; }
    .side-mark { position: absolute; top: calc(-1 * var(--a2)); right: calc(-1 * var(--a3)); width: var(--s-2); height: var(--s-2); border-radius: 50%; box-shadow: 0 0 0 var(--a2) var(--sunken); }
    .side-mark-need { background: var(--coral); }
    .side-mark-new { background: var(--scale-mod); }
    .side-flag { margin-left: auto; padding: 0 var(--a7); height: var(--s-5); display: inline-flex; align-items: center; border-radius: var(--a6); font-size: var(--fs-115); font-weight: 600; }
    .side-flag-need { color: var(--coraltx); background: color-mix(in srgb, var(--coral) var(--tint), transparent); }
    .side-flag-new { color: var(--hl); background: var(--hl-bg); }
    .side-count { margin-left: auto; padding-left: var(--s-2); font-family: var(--font-mono); font-size: var(--fs-chip); color: var(--muted); font-weight: 500; }
    .side-quota { display: block; margin-top: var(--a28); padding: var(--a14) var(--s-3) var(--s-1); border-top: var(--hair) solid var(--line); text-decoration: none; color: inherit; overflow: hidden; }
    .side-quota-row { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-chip); white-space: nowrap; }
    .side-quota-row span:first-child { color: var(--muted); }
    .side-quota-row .t-mono { font-weight: 600; }
    /* Where the count came from (D-622): MCP and API use counts here too, so the meter says so. */
    .side-quota-src { display: block; margin-top: var(--s-1); font-size: var(--fs-chip); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .side-bar { display: block; margin-top: var(--s-2); height: var(--a6); border-radius: var(--a3); background: var(--line); overflow: hidden; }
    .side-bar > span { display: block; height: 100%; background: var(--text2); border-radius: var(--a3); }
    .side-bar.near > span { background: var(--hl); }
    /* The fold handle rides the sidebar's edge, on every screen. On the rail it is always there; on the open sidebar
       it shows while the pointer or the keyboard is in the sidebar. */
    .side-fold { position: absolute; top: calc(var(--s-5) + var(--a3)); right: calc(-1 * var(--s-3)); width: var(--s-6); height: var(--s-6); display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: var(--r-round); border: var(--hair) solid var(--line2); background: var(--surface); color: var(--muted); box-shadow: var(--shadow-card); cursor: pointer; opacity: 0; visibility: hidden; }
    .side-fold:hover { color: var(--text); border-color: var(--text2); }
    .side-user-wrap { position: relative; margin-top: var(--a10); padding-top: var(--a10); border-top: var(--hair) solid var(--line); }
    .side-user { display: flex; align-items: center; gap: var(--a10); width: 100%; padding: var(--s-1) var(--s-2) var(--s-1) var(--a5); border: 0; overflow: hidden; border-radius: var(--r-10); background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
    .side-user:hover { background: var(--raised); }
    .side-who { min-width: 0; flex: 1; display: grid; }
    .side-name { font-size: var(--fs-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .side-plan { font-size: var(--fs-chip); color: var(--muted); }
    /* Same plan colours as the menu chip, as text on the sidebar; a past-due notice keeps its own colour. */
    .side-plan[data-plan="pro"]:not(.is-due) { color: var(--coraltx); }
    .side-plan[data-plan="business"]:not(.is-due) { color: var(--text); font-weight: 500; }
    .side-gear { color: var(--text2); flex: none; }
    .user-menu { position: absolute; bottom: calc(100% + var(--a6)); left: 0; right: 0; z-index: var(--z-drawer); min-width: calc(var(--app-side-w) - var(--s-6)); display: grid; gap: var(--a2); padding: var(--a6); border-radius: var(--r-12); background: var(--overlay); border: var(--hair) solid var(--line2); box-shadow: var(--shadow-pop); }
    .menu-who { display: grid; gap: var(--a2); justify-items: start; padding: var(--s-2) var(--a10); }
    .menu-name { font-weight: 600; font-size: var(--fs-body); }
    .menu-email { font-size: var(--fs-chip); color: var(--muted); overflow-wrap: anywhere; }
    .menu-who .plan-badge { margin-top: var(--s-1); }
    /* Plan colour: Free stays neutral, Pro takes the upgrade band's brand tint, Business the ink chip. Pairs checked in contrast.mjs. */
    .plan-badge[data-plan="pro"] { background: var(--up-bg); color: var(--up-tx2); }
    .plan-badge[data-plan="business"] { background: var(--text); color: var(--on-ink); }
    .menu-theme { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--a6) var(--a10); font-size: var(--fs-13); color: var(--text2); }
    /* Folded (desktop only: on a phone the sidebar is a drawer and always shows everything). */
    @media not all and (max-width: 48em) {
      &.shell-rail { grid-template-columns: var(--app-rail-w) minmax(0, 1fr); }
      .side-rail :is(.side-label, .side-count, .side-flag, .kbd, .side-who, .side-gear) { opacity: 0; translate: calc(-1 * var(--mv-pop)) 0; }
      .side-rail :is(.wm-rest, .wm-ai) { opacity: 0; }
      .side-rail .wm-dot { translate: var(--wm-fold) 0; }
      .side-rail .side-group { color: transparent; }
      .side-rail .side-group:not(:first-of-type)::after { opacity: 1; }
      .side-rail .side-quota { opacity: 0; visibility: hidden; }
      /* Wider than the sidebar's footer, so the Theme switch has room beside its label. */
      .user-menu { right: auto; width: calc(var(--app-side-w) + var(--s-4)); }
      .side:hover .side-fold, .side:has(:focus-visible) .side-fold, .side-rail .side-fold { opacity: 1; visibility: visible; }
      .side-rail .side-fold svg { rotate: 180deg; }
    }
    @media (hover: none) and (min-width: 48.0625em) {
      .side .side-fold { opacity: 1; visibility: visible; }
    }
    .drawer-scrim { position: fixed; inset: 0; background: var(--scrim); z-index: var(--z-drawer); }

    /* ---------- Screens ---------- */
    .screen { min-height: 100%; }
    .page { padding: var(--s-8) var(--s-10) var(--s-16); max-width: var(--detail-max); margin: 0 auto; display: grid; gap: var(--s-4); align-content: start; }
    .apphead { display: flex; align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; }
    /* The title block wraps under narrow screens instead of shrinking to one word per line. */
    .apphead > .grow.min0 { flex: 1 1 var(--app-refine-w); }
    .page-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-page-title); letter-spacing: -0.02em; line-height: 1.15; }
    .page-title-lg { font-size: var(--fs-name-standalone); }
    .sec-k { font-size: var(--fs-section); font-weight: 600; margin-top: var(--s-4); display: flex; gap: var(--s-2); align-items: baseline; }
    .back-link { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-13); color: var(--text2); text-decoration: none; justify-self: start; }
    .back-link:hover { color: var(--text); }
    .sentinel { text-align: center; padding: var(--s-6); color: var(--muted); font-size: var(--fs-meta); display: grid; justify-items: center; }
    .app-head { gap: var(--s-3); }
    .day-div { display: flex; align-items: center; gap: var(--s-3); margin: var(--a6) 0 calc(-1 * var(--s-1)); font-size: var(--fs-13); font-weight: 500; color: var(--muted); }
    .day-div i { flex: 1; height: var(--hair); background: var(--line); }

    /* ---------- My feed (R5 top, scrolled; R6 profile card) ---------- */
    /* The feed column scrolls itself and the refine rail stands beside it with its own scroll, so the scrollbar sits
       at the content's edge, left of the rail (owner review, 2026-11-25). Same for Discover and its filters. */
    .feed { display: flex; height: 100%; }
    .feed-main { flex: 1; min-width: 0; padding: 0 var(--s-10); }
    .scroll-root { height: 100%; overflow-y: auto; overflow-anchor: none; }
    .feed-col { max-width: var(--app-feed-w); margin: 0 auto; }
    .feed-head { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--bg); transition: box-shadow var(--dur) var(--ease); }
    .feed-title { display: flex; align-items: flex-end; justify-content: space-between; height: var(--app-head-h); padding-bottom: var(--a6); overflow: hidden; transition: height var(--dur) var(--ease), padding var(--dur) var(--ease), opacity var(--dur) var(--ease); }
    .feed-title-l { display: flex; align-items: baseline; gap: var(--s-3); min-width: 0; flex-wrap: wrap; }
    .feed-head.compact { box-shadow: 0 var(--s-2) var(--s-4) calc(-1 * var(--s-3)) var(--scrim); }
    .feed-head.compact .feed-title { height: 0; padding: 0; opacity: 0; }
    .feed-bar { display: flex; align-items: center; gap: var(--s-3); border-bottom: var(--hair) solid var(--line); }
    .feed-bar .feed-tabs { border-bottom: 0; flex: 1; min-width: 0; }
    .feed-bar-r { display: flex; align-items: center; gap: var(--a6); flex: none; }
    .feed-head.compact .hide-compact { display: none; }
    /* "N new leads": floats centred just under the sticky feed head, over the first card, taking no layout space
       (legacy NewLeadsPill). Only the button takes clicks. */
    .new-pill-wrap { position: absolute; top: 100%; left: 0; right: 0; height: 0; display: flex; justify-content: center; pointer-events: none; }
    /* "N new leads": a compact control-height chip in the brand CTA red (--btn), white text and live dot, a small
       shadow in the same hue. Visible over the first card without shouting over it (owner review, 2026-11-26). */
    .new-pill { pointer-events: auto; margin-top: var(--s-3); display: inline-flex; align-items: center; gap: var(--a6); height: var(--control-h); padding: 0 var(--a14) 0 var(--s-3); border: 0; border-radius: var(--r-pill); background: var(--btn); color: var(--on-btn); font-size: var(--fs-13); font-weight: 600; letter-spacing: 0.005em; white-space: nowrap; box-shadow: var(--shadow-pill-new); cursor: pointer; transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease; }
    .new-pill:hover { background: var(--btnhov); box-shadow: var(--shadow-pill-new-hover); }
    .new-pill:focus-visible { outline: var(--focus-w) solid var(--btn); outline-offset: var(--a3); }
    .new-pill .dot { --sig-dot: var(--on-btn); }
    .tabs { display: flex; gap: var(--a22); height: auto; border-bottom: var(--hair) solid var(--line); overflow-x: auto; scrollbar-width: none; }
    .tab { height: var(--tabbar-h); font-size: var(--fs-tab); gap: var(--a7); white-space: nowrap; flex: none; color: var(--muted); }
    .tab:hover { color: var(--text2); }
    /* Layer order puts app after components, so the muted colour above would also win over the selected tab: restate it. */
    .tab[aria-selected="true"] { color: var(--text); }
    .tab[aria-selected="true"]::after { border-radius: var(--a2) var(--a2) 0 0; }
    .tab .cnt { font-family: var(--font-mono); font-size: var(--fs-chip); color: var(--muted); font-weight: 500; }
    .feed-tabs .tab { height: var(--tabbar-h-feed); }
    .tab-fund { --tab-line: var(--fund-dot); } .tab-hire { --tab-line: var(--hire-dot); } .tab-acq { --tab-line: var(--acq-dot); }
    .feed-lede { margin-top: var(--a14); font-size: var(--fs-13); color: var(--text2); }
    .feed-list { display: flex; flex-direction: column; gap: var(--a14); padding-top: var(--a14); }

    .fcard, .sk-fcard { position: relative; padding: var(--a18) var(--s-5) var(--s-2); border-radius: var(--r-card); border: var(--hair) solid var(--line); background: var(--surface); box-shadow: var(--shadow-raise); cursor: pointer; }
    .fcard:hover { border-color: var(--line2); }
    .fcard.focused { box-shadow: 0 0 0 var(--rule) var(--text); }
    .skel-card.fcard, .fcard.skel-card { display: grid; gap: var(--s-3); padding-bottom: var(--s-5); cursor: default; }
    .fcard-head { display: flex; gap: var(--a14); align-items: flex-start; }
    .fcard-id { flex: 1; min-width: 0; }
    .fcard-name { display: flex; align-items: center; gap: var(--a10); flex-wrap: wrap; }
    .cname { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-name-card); letter-spacing: -0.015em; line-height: var(--lh-title); }
    .cname-lg { font-size: var(--fs-name-detail); letter-spacing: -0.02em; }
    .cname-xl { font-size: var(--fs-name-standalone); letter-spacing: -0.02em; }
    .fcard-links { display: inline-flex; gap: var(--a2); }
    .fcard-links .lk.ico { background: none; border: 0; color: var(--muted); } /* quiet, so the name leads (D-706) */
    .fcard-links .lk.ico:hover { color: var(--text); background: var(--raised); }
    .meta-row { display: flex; align-items: center; gap: var(--a9); flex-wrap: wrap; margin-top: var(--a5); font-size: var(--fs-secondary); color: var(--text2); }
    .meta-row > * + *::before { content: ""; width: var(--a3); height: var(--a3); border-radius: var(--r-round); background: var(--muted); opacity: 0.7; margin-right: var(--a9); display: inline-block; vertical-align: middle; }
    .meta-row .country { gap: var(--a7); }
    .trow .country { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: flex; }
    .meta-row .today { color: var(--text); font-weight: 600; }
    .fcard-what { margin-top: var(--a10); font-size: var(--fs-body); color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    /* Why now, in the feed card: the signal's hue, the same tint and rule as the company view's Why head (D-614). */
    /* Why now is prose on the white card (D-706, amends D-614): only its flame tile carries the signal's hue. */
    .why { margin-top: var(--a14); color: var(--text); }
    /* The event block, the card's one colour zone (D-706): signal and when, then the figure, the plan or the roles,
       on a pastel of the signal's hue (--ev-bg / --ev-line in tokens.css). Chips on it are white, never a hue each. */
    .ev { margin-top: var(--s-3); padding: var(--a14) var(--s-4) var(--s-4); border-radius: var(--r-12); color: var(--text); background: var(--ev-bg); box-shadow: inset 0 0 0 var(--hair) var(--ev-line); }
    .ev-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--a9); font-size: var(--fs-meta); color: var(--text2); }
    .ev-head > * + *::before { content: ""; width: var(--a3); height: var(--a3); border-radius: var(--r-round); background: var(--muted); opacity: 0.7; margin-right: var(--a9); display: inline-block; vertical-align: middle; }
    .ev-head .today { color: var(--text); font-weight: 600; }
    .ev .money-row, .ev .roles-block, .ev .seat, .ev .deal { margin-top: var(--s-3); }
    .ev .money-row:has(.money-spend) .money-fig { border-right-color: var(--ev-line); }
    .ev .seat, .ev .deal { padding: 0; border: 0; border-radius: 0; }
    .ev .seat-ico { background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--ev-line); }
    .ev .chip, .tchip-plain { color: var(--text2); font-weight: 500; background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--ev-line, var(--line)); }
    .why-label { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-chip); font-weight: 600; color: var(--text2); }
    .why-ico { display: grid; place-items: center; width: var(--s-5); height: var(--s-5); border-radius: var(--a6); color: var(--sig, var(--text2)); background: color-mix(in srgb, var(--sig, var(--text2)) 14%, var(--surface)); }
    .why-text { margin-top: var(--a6); font-size: var(--fs-prose); line-height: var(--lh-prose); color: var(--text); }
    /* Highlighted facts are weight only (D-706): an amber underline would read as funding gold. */
    mark.hl { background: none; color: var(--text); font-weight: 600; padding: 0; }
    .fig { font-family: var(--font-mono); font-size: var(--fs-figure-card); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
    .fig-lg { font-size: var(--fs-figure); letter-spacing: -0.04em; }
    .money-row { margin-top: var(--s-4); display: grid; grid-template-columns: auto 1fr; gap: var(--a22); align-items: center; }
    .money-fig { padding-right: var(--a22); }
        .money-row:has(.money-spend) .money-fig { border-right: var(--hair) solid var(--line); }
    .money-fig .t13 { margin-top: var(--a5); }
    .spend-chips { display: flex; flex-wrap: wrap; gap: var(--a14); margin-top: var(--a7); }
    .spend-pair { display: inline-flex; align-items: center; gap: var(--a6); }
    .seat { margin-top: var(--s-4); display: flex; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--a18); border-radius: var(--r-12); border: var(--hair) solid var(--line); }
    .seat-ico { flex: none; width: var(--a40); height: var(--a40); border-radius: var(--r-round); display: grid; place-items: center; color: var(--lead); background: var(--raised); }
    .seat-main { min-width: 0; }
    .seat-title { font-weight: 600; font-size: var(--fs-section); margin-top: var(--hair); }
    .deal { margin-top: var(--s-4); display: grid; grid-template-columns: 1fr auto 1fr auto; gap: var(--a14); align-items: center; padding: var(--a14) var(--a18); border-radius: var(--r-12); border: var(--hair) solid var(--line); }
    .deal-arrow { color: var(--acq); display: inline-flex; }
    .party { display: flex; align-items: center; gap: var(--a10); min-width: 0; border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
    .party:disabled { cursor: default; }
    .party-name { font-weight: 600; font-size: var(--fs-body); border: 0; background: none; padding: 0; font-family: inherit; color: var(--text); }
    button.party-name { cursor: pointer; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 0.2em; }
    .roles-block { margin-top: var(--s-4); }
    .roles-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--a10); gap: var(--s-2); }
    .roles-bar { display: flex; gap: var(--a3); }
    .roles-bar span { display: block; min-width: var(--s-1); height: var(--s-1); border-radius: var(--r-pill); background: color-mix(in srgb, var(--chip-hue) 74%, var(--surface)); }
    .roles-legend { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--a10); font-size: var(--fs-13); }
    .roles-legend > span { display: inline-flex; align-items: center; gap: var(--a6); white-space: nowrap; }
    .roles-legend i { width: var(--a7); height: var(--a7); border-radius: 50%; background: var(--chip-hue); }
    .fcard .chip-row { margin-top: var(--a14); }
    .gtm { margin-top: var(--a14); }
    .fit-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--a6) var(--a14); margin-top: var(--a14); font-size: var(--fs-13); color: var(--text2); }
    .fit-k { font-weight: 600; color: var(--text); }
    .fit-ok, .fit-miss { display: inline-flex; align-items: center; gap: var(--a5); white-space: nowrap; }
    .fit-ok svg { color: var(--fit-top); }
    .fcard .fit-ok svg { color: var(--text2); } /* green stays on the ICP ring (D-706) */
    .fit-miss { color: var(--muted); }
    .note-strip { display: flex; gap: var(--s-2); align-items: center; margin-top: var(--a14); font-size: var(--fs-13); color: var(--text2); background: var(--raised); border-radius: var(--r-btn); padding: var(--s-2) var(--s-3); }
    .fcard-foot { display: flex; align-items: center; margin-top: var(--a14); padding-top: var(--a10); border-top: var(--hair) solid var(--line); }
    .open-btn { margin-left: auto; color: var(--text); }
    .react { display: flex; align-items: center; gap: var(--s-1); }
    .rbtn { display: inline-flex; align-items: center; gap: var(--a7); height: var(--control-h); padding: 0 var(--a10); border-radius: var(--a9); border: 0; background: transparent; font: inherit; font-size: var(--fs-13); font-weight: 500; color: var(--text2); cursor: pointer; }
    .rbtn:hover { background: var(--raised); color: var(--text); }
    .rbtn.r-interested { color: var(--int); }
    .rbtn.r-skipped { color: var(--muted); }
    .rbtn.on { font-weight: 600; color: var(--st); background: color-mix(in srgb, var(--st) var(--tint), transparent); }
    .rbtn.r-interested.on { --st: var(--int); } .rbtn.r-later.on { --st: var(--later); } .rbtn.r-skipped.on { --st: var(--skip); }

    .gtm-row { display: flex; align-items: center; gap: var(--a10); flex-wrap: wrap; margin-top: var(--a14); padding: var(--a10) var(--s-3); border-radius: var(--r-10); border: var(--hair) solid var(--line); }
    .gtm-k { display: inline-flex; align-items: center; gap: var(--a6); font-size: var(--fs-13); font-weight: 600; }
    .note-strip { width: 100%; border: 0; font: inherit; text-align: left; cursor: text; }
    .note-strip .ell { display: inline; }
    .add-note { display: inline-flex; align-items: center; gap: var(--a6); height: var(--control-h); padding: 0 var(--a10); border: 0; border-radius: var(--a9); background: none; font: inherit; font-size: var(--fs-13); color: var(--muted); cursor: pointer; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
    .fcard:hover .add-note, .add-note:focus-visible { opacity: 1; }
    .add-note:hover { background: var(--raised); color: var(--text); }
    .fcard-foot { flex-wrap: wrap; }
    /* The note editor: the saved note's raised tone, grown in place; focus shows as a hairline, not a heavy ring. */
    .card-note { display: grid; gap: var(--a6); margin-top: var(--a14); padding: var(--a10) var(--s-3) var(--s-2); border-radius: var(--r-10); background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--line); cursor: default; }
    .card-note:focus-within { background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2), var(--shadow-card); }
    .card-note-k { display: flex; align-items: center; gap: var(--a6); font-size: var(--fs-chip); font-weight: 600; color: var(--text2); }
    .card-note-input { width: 100%; min-height: var(--s-12); padding: 0; border: 0; outline: 0; background: transparent; resize: none; field-sizing: content; font: inherit; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); }
    .card-note-input::placeholder { color: var(--muted); }
    .card-note-foot { display: flex; align-items: center; gap: var(--a6); }
    .fcard-cb { margin-top: var(--a11); }
    .fcard.checked { box-shadow: 0 0 0 var(--rule) var(--text); }
    .strike b { text-decoration: line-through; }
    .dest-list { display: grid; gap: var(--a6); }
    .dest { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--a14); border-radius: var(--r-10); border: var(--hair) solid var(--line2); cursor: pointer; }
    .dest:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 var(--hair) var(--text); }
    .dest.is-off { opacity: 0.55; cursor: not-allowed; }
    .dest .min0 { display: grid; }
    .dest input { accent-color: var(--text); }
    .ex-row { grid-template-columns: var(--s-24) minmax(0, 1fr) var(--app-cell-sm) var(--app-cell-sm) var(--app-cell-md); }
    .exports-page .tcard { margin-top: 0; }
    /* Exports (D-621): the month's allowance beside the title, files as rows with a file tile, a 3-step empty state. */
    .exp-head { align-items: flex-start; }
    .exp-quota { display: grid; gap: var(--a6); width: min(100%, var(--app-refine-w)); padding: var(--s-3) var(--s-4); border-radius: var(--r-12); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-raise); color: inherit; text-decoration: none; }
    .exp-quota:hover { box-shadow: inset 0 0 0 var(--hair) var(--line2), var(--shadow-raise); }
    .exp-quota-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
    .exp-quota-bar { display: block; height: var(--a6); border-radius: var(--a3); background: var(--raised); overflow: hidden; }
    .exp-quota-bar > span { display: block; height: 100%; border-radius: var(--a3); background: var(--text2); }
    .exp-file { flex: none; display: grid; place-items: center; width: var(--a40); height: var(--a40); border-radius: var(--r-10); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--ok) 28%, var(--line)); color: var(--ok); }
    .exp-file.is-old { background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--line); color: var(--muted); }
    .exp-file-ext { font-family: var(--font-mono); font-size: var(--fs-115); font-weight: 700; letter-spacing: 0.02em; }
    .exp-list { display: grid; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-raise); overflow: hidden; }
    .exp-item { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--a22); border-top: var(--hair) solid var(--line); }
    .exp-item:first-child { border-top: 0; }
    .exp-main { flex: 1; min-width: 0; display: grid; gap: var(--a5); }
    .exp-name { font-size: var(--fs-section); font-weight: 600; }
    .exp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: var(--a6) var(--s-3); font-size: var(--fs-13); color: var(--text2); }
    .exp-meta b { font-weight: 600; color: var(--text); }
    .exp-end { flex: none; display: flex; align-items: center; gap: var(--s-3); }
    /* A narrow list (a phone, a tablet in portrait) puts the download under the file's details, so the name, the
       counts and the button never squeeze into one line. */
    .exp-list { container: exp / inline-size; }
    .exp-meta > * { white-space: nowrap; }
    @container exp (max-width: 40rem) {
      .exp-item { flex-wrap: wrap; align-items: flex-start; row-gap: var(--s-3); padding: var(--s-4); }
      .exp-end { flex: 1 1 100%; justify-content: space-between; padding-left: calc(var(--a40) + var(--s-4)); }
      .exp-end > .btn { flex: none; }
    }
    .exp-foot { padding: var(--s-3) var(--a22); background: var(--raised); border-top: var(--hair) solid var(--line); }
    .exp-empty { display: grid; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-raise); }
    .exp-empty-lead { display: flex; align-items: flex-start; gap: var(--s-4); }
    .exp-empty-title { font-size: var(--fs-17); font-weight: 650; letter-spacing: -0.012em; margin-bottom: var(--s-1); }
    .exp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--u-300), 1fr)); gap: var(--s-3); counter-reset: none; }
    .exp-step { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-12); background: var(--raised); }
    .exp-step-n { flex: none; display: grid; place-items: center; width: var(--s-6); height: var(--s-6); border-radius: var(--r-round); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2); font-size: var(--fs-chip); font-weight: 700; color: var(--text); }
    .exp-step-t { display: flex; align-items: center; gap: var(--a6); margin-bottom: var(--s-1); font-size: var(--fs-body); font-weight: 600; color: var(--text); }
    .exp-empty-acts { display: flex; gap: var(--s-2); flex-wrap: wrap; }

    .signal-prefs { display: grid; gap: var(--s-2); }

    /* Refine your feed (right dock, R5) */
    /* The refine rail is a white pane so its controls read as controls, not as tints of the page (owner review,
       2026-11-25): group keys in text2, a sunken well for the window, outlined signal pills that fill in their hue. */
    .refine { flex: 0 0 var(--app-refine-w); height: 100%; overflow: auto; border-left: var(--hair) solid var(--line); background: var(--surface); }
    :is(.refine, .filters-dock) .label { font-size: var(--fs-13); font-weight: 600; color: var(--text2); }
    :is(.refine, .filters-dock) .seg { background: var(--sunken); box-shadow: inset 0 0 0 var(--hair) var(--line); }
    :is(.refine, .filters-dock) .seg button { color: var(--text2); font-size: var(--fs-13); }
    :is(.refine, .filters-dock) .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 var(--hair) var(--line2), var(--shadow-card); }
    :is(.refine, .filters-dock) .pill { background: var(--surface); border-color: var(--line2); color: var(--text); }
    :is(.refine, .filters-dock) .pill:hover { background: var(--raised); }
    :is(.refine, .filters-dock) .pill[aria-pressed="true"] { background: color-mix(in srgb, var(--sig, var(--text2)) 12%, var(--surface)); border-color: color-mix(in srgb, var(--sig, var(--text2)) 45%, var(--line)); color: var(--text); }
    .refine-rows .fr-head:hover .fr-title { text-decoration: underline; text-underline-offset: var(--a3); text-decoration-color: var(--line2); }
    .refine-rows .fr-row.is-active .fr-sum { color: var(--text); font-weight: 600; }
    .refine-body { padding: var(--a26) var(--s-6) var(--s-8); display: flex; flex-direction: column; }
    .refine-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
    .refine-title { font-size: var(--fs-17); font-weight: 600; letter-spacing: -0.005em; }
    .refine-k { margin: var(--a22) 0 var(--s-2); }
    .refine-kv { display: flex; align-items: baseline; justify-content: space-between; margin: var(--s-6) 0 var(--s-2); }
    /* --at is the selected stop (0-100%). Thumb and labels sit at left: at with translateX(-at), so the ends stay
       inside the track and the positions match the native range's thumb. */
    .icp-slider { position: relative; --thumb-w: var(--s-5); }
    /* The fit scale as one gradient through the tier colours, each colour reached at its stop (owner request,
       2026-11-25; a gradient that carries the scale, not decoration). The part below the threshold is washed out. */
    .icp-track { position: relative; height: var(--a6); margin: var(--a10) calc(var(--thumb-w) / 2); border-radius: var(--r-pill); overflow: hidden; background: linear-gradient(90deg, var(--scale-low), var(--scale-mod) 33.33%, var(--scale-strong) 66.67%, var(--scale-top)); }
    .icp-shade { position: absolute; left: 0; top: 0; bottom: 0; width: var(--at); background: color-mix(in srgb, var(--surface) 72%, transparent); }
    .icp-thumb { position: absolute; top: var(--a3); left: var(--at); translate: calc(-1 * var(--at)) 0; width: var(--thumb-w); height: var(--thumb-w); border-radius: var(--r-round); background: var(--surface); box-shadow: 0 0 0 var(--rule) var(--ring-c), var(--shadow-pop); pointer-events: none; }
    .icp-thumb.fit-low { --ring-c: var(--text2); }
    .icp-slider input[type="range"] { position: absolute; inset: 0 0 auto; width: 100%; height: var(--a26); margin: 0; opacity: 0; cursor: pointer; }
    .icp-slider:has(input:focus-visible) .icp-thumb { outline: var(--focus-w) solid var(--text); outline-offset: var(--a3); }
    .icp-stops { position: relative; height: var(--a22); margin-top: var(--s-1); }
    .icp-stops button { position: absolute; top: 0; left: var(--at); translate: calc(-1 * var(--at)) 0; white-space: nowrap; border: 0; background: none; padding: var(--a2) 0; font: inherit; font-size: var(--fs-chip); color: var(--muted); cursor: pointer; }
    .icp-stops button:not(:first-child, :last-child) { translate: -50% 0; }
    .icp-stops button.on { color: var(--text); font-weight: 600; }
    .refine-rows { margin-top: var(--a22); border-bottom: var(--hair) solid var(--line); }
    .refine-more { display: inline-flex; align-items: center; gap: var(--a6); margin-top: var(--a18); font-size: var(--fs-body); font-weight: 600; text-decoration: none; color: var(--text); }
    .refine-more + .t13 { margin-top: var(--a6); }
    .refine-upsell { margin-top: var(--s-5); }

    .fr-row { border-top: var(--hair) solid var(--line); }
    .fr-head { width: 100%; display: flex; align-items: center; gap: var(--s-2); padding: var(--a11) 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--text); }
    .fr-head:disabled { cursor: not-allowed; }
    .fr-t { flex: 1; min-width: 0; display: grid; gap: var(--hair); }
    .fr-title { display: flex; align-items: center; gap: var(--a7); font-size: var(--fs-secondary); font-weight: 600; }
    .fr-sum { font-size: var(--fs-chip); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fr-body { display: grid; gap: var(--s-2); padding: var(--a2) 0 var(--a14); }
    .fr-row.is-locked .fr-head, .fr-row.is-na .fr-head { opacity: 0.5; }
    .refine-rows .fr-head { min-height: var(--a44); }
    .refine-rows .fr-t { grid-template-columns: auto 1fr; align-items: center; gap: var(--s-2); }
    .refine-rows .fr-sum { text-align: right; font-size: var(--fs-13); color: var(--text2); }
    .refine-rows .fr-title { font-size: var(--fs-body); font-weight: 500; }
    .refine-rows .fr-head > svg { transform: rotate(90deg); }
    .refine-rows .fr-head[aria-expanded="true"] > svg { transform: rotate(180deg); }

    /* ---------- Split view (R5) ---------- */
    .screen.split { display: grid; grid-template-columns: var(--app-split-w) minmax(0, 1fr); height: 100dvh; overflow: hidden; }
    .screen.split.view-full { grid-template-columns: minmax(0, 1fr); }
    .screen.split.view-full .split-col { display: none; }
    /* Three tones, nav, list, company, with a hairline between each: the columns read as three panes (owner review,
       2026-11-25; line2 rules were too heavy). */
    .split-col { display: flex; flex-direction: column; min-height: 0; overflow: auto; padding: 0 var(--s-3) var(--s-8); background: var(--surface); border-right: var(--hair) solid var(--line); }
    .split-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: var(--a60); padding: 0 var(--a6); flex: none; }
    .split-title { font-size: var(--fs-20); font-weight: 600; letter-spacing: -0.01em; }
    .split-title-pad { padding: 0 var(--a6) var(--s-2); }
    .split-tabs { gap: var(--s-4); padding: 0 var(--a6); flex: none; }
    .split-tabs .tab { height: var(--a40); font-size: var(--fs-body); }
    .split-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--a2); margin-top: var(--a10); }
    .srow { display: flex; gap: var(--s-3); padding: var(--a14); border-radius: var(--r-12); border: 0; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
    .srow:hover { background: var(--raised); }
    .srow[aria-current="true"] { background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    .srow-main { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--a2); }
    .srow-top { display: flex; align-items: center; gap: var(--s-2); }
    .srow-name { font-weight: 600; font-size: var(--fs-section); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .srow-time { margin-left: auto; font-size: var(--fs-chip); color: var(--muted); white-space: nowrap; }
    .srow-what { margin-top: var(--a2); font-size: var(--fs-13); color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .srow .ring2 { align-self: flex-start; }
    .srow .sig { max-width: 100%; min-width: 0; }
    .detail-col { min-width: 0; min-height: 0; overflow: hidden; background: var(--bg); }

    /* ---------- Company view (R5 split, expanded, standalone) ---------- */
    .cv { height: 100%; overflow: auto; container: cv / inline-size; }
    .cv-inner { padding: 0 var(--s-8) var(--s-10); }
    .cv-full .cv-inner, .cv-page .cv-inner { max-width: var(--app-detail-w); margin: 0 auto; padding: 0 var(--s-12) var(--s-10); }
    .cv-page { height: auto; overflow: visible; }
    .cv-nav { display: flex; align-items: center; gap: var(--s-3); min-height: var(--a60); }
    .cv-close { border-color: var(--line2); color: var(--text); box-shadow: var(--shadow-card); }
    .cv-close:hover { background: var(--raised); border-color: var(--text2); }
    .cv-pos { display: inline-flex; align-items: center; gap: var(--s-1); }
    .cv-pos .t13 { margin-left: var(--a6); }
    .cv-keys { display: inline-flex; gap: var(--s-1); margin-left: var(--s-2); }
    .cv-head, .sk-cv-head { display: flex; gap: var(--a18); align-items: flex-start; padding-top: var(--s-2); }
    .cv-split .cv-head { gap: var(--s-4); }
    .cv-id { flex: 1; min-width: 0; }
    .cv-what { margin-top: var(--s-1); font-size: var(--fs-body); color: var(--text2); }
    /* The dots sit in the gap, absolutely placed, and the strip clips at its left edge: an item that wraps to a new
       line starts clean instead of with an orphan dot (D-661). */
    .cv-strip { margin-top: var(--s-2); overflow: hidden; column-gap: calc(var(--a9) * 2 + var(--a3)); }
    .cv-strip > * { position: relative; }
    .cv-strip > * + *::before { position: absolute; top: 50%; left: calc((var(--a9) + var(--a3)) * -1); margin: calc(var(--a3) / -2) 0 0; }
    .cv-links { display: flex; gap: var(--s-1) var(--s-4); flex-wrap: wrap; margin-top: var(--a10); }
    .cv-links .lk { height: auto; padding: 0; border: 0; background: none; color: var(--text2); font-size: var(--fs-13); }
    .cv-links .lk:hover { color: var(--text); text-decoration: underline; text-underline-offset: var(--a3); }
    .cv-ring { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-1); text-decoration: none; color: inherit; }
    .cv-actions, .sk-cv-actions { position: sticky; top: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: var(--a10); flex-wrap: wrap; margin-top: var(--a18); padding: var(--s-3) 0 var(--s-2); background: var(--bg); }
    /* The toolbar: one white surface holding triage and tools, so the row reads as a bar and not as loose controls. */
    .cv-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--a6); flex-wrap: wrap; padding: var(--a5); border-radius: var(--r-12); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-raise); }
    .tri-seg { display: inline-flex; gap: var(--a2); flex-wrap: wrap; }
    .tri { display: inline-flex; align-items: center; gap: var(--a7); height: var(--a34); padding: 0 var(--a10); border: 0; border-radius: var(--r-btn); background: transparent; font: inherit; font-size: var(--fs-13); font-weight: 500; color: var(--text2); cursor: pointer; white-space: nowrap; }
    .tri:hover { background: var(--raised); color: var(--text); }
    .tri-interested { --st: var(--int); } .tri-later { --st: var(--later); } .tri-skipped { --st: var(--skip); } .tri-contacted { --st: var(--done); }
    .tri svg { color: var(--st); }
    .tri.on { background: color-mix(in srgb, var(--st) 12%, var(--surface)); color: var(--st); font-weight: 600; }
    .cv-bar .btn-secondary { border-color: transparent; background: transparent; box-shadow: none; color: var(--text); }
    .cv-bar .btn-secondary:hover { background: var(--raised); }
    .cv-bar .cv-copy { background: var(--raised); font-weight: 600; }
    .cv-bar .cv-copy:hover { background: color-mix(in srgb, var(--text) 7%, var(--raised)); }
    .cv-bar .iconbtn { border-color: transparent; background: transparent; }
    .cv-bar .iconbtn:hover { background: var(--raised); color: var(--text); }
    .cv-bar .cv-tools { gap: var(--a2); padding-left: var(--a6); }
    .tri .kbd { margin-left: var(--a2); }
    /* Copy / list / more stay one group and right-aligned even when they wrap, so their menus open inward, never past the pane edge. */
    .cv-tools { display: inline-flex; align-items: center; gap: var(--a10); margin-left: auto; flex-wrap: nowrap; }
    @container cv (max-width: 55rem) { .tri .kbd { display: none; } }
    @container cv (max-width: 49rem) { .cv-copy-tail { display: none; } }
    @container cv (max-width: 40rem) {
      .tech-row { grid-template-columns: minmax(0, 1fr); }
      .tech-row-k { padding-top: 0; }
      .tech-row > .tech-detail { grid-column: 1; }
    }
    /* The section tabs fit: no scroll container (with overflow-x: auto the selected tab's underline, 1px below the
       bar, made the strip scroll a pixel). Only a view too narrow for them scrolls sideways (owner review, 2026-11-25). */
    .cv-tabs { margin-top: var(--s-1); gap: var(--s-6); overflow: visible; }
    @container cv (max-width: 36rem) { .cv-tabs { gap: var(--s-4); overflow-x: auto; overflow-y: hidden; } }
    .cv-body { display: flex; flex-direction: column; gap: var(--s-5); padding: var(--a18) 0 var(--s-10); }
    .ccard { padding: var(--s-5) var(--a22); border-radius: var(--r-card); border: var(--hair) solid var(--line); background: var(--surface); box-shadow: var(--shadow-raise); scroll-margin-top: calc(var(--a60) + var(--s-4)); }
    .ccard-tight { padding: var(--a18) var(--s-6); }
    .ccard-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
    .ccard-title { display: flex; align-items: center; gap: var(--a10); font-size: var(--fs-17); font-weight: 650; letter-spacing: -0.012em; line-height: var(--lh-section); }
    .ccard-ico { flex: none; display: grid; place-items: center; width: var(--a28); height: var(--a28); border-radius: var(--r-btn); background: var(--raised); color: var(--text2); }
    .ccard-name { display: inline-flex; align-items: baseline; flex-wrap: wrap; min-width: 0; }
    .ccard-head + .ccard-sub { margin-top: var(--s-2); }
    .ccard-right { display: flex; align-items: center; gap: var(--a10); flex-wrap: wrap; }
    .ccard-sub { margin-top: var(--a6); font-size: var(--fs-body); color: var(--text2); }
    .ccard-actions { margin-top: var(--s-4); gap: var(--a10); }
    /* Inside a card an empty state is a left-aligned row, like the rest of the view: a small tile, then the words and
       the actions (D-620; was a centred icon on a grey band). */
    .empty-card.empty-state, .ccard .empty-state { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--a6); align-items: start; margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-12); background: var(--raised); }
    .empty-card .empty-art, .ccard .empty-art { grid-row: 1 / span 3; width: auto; height: auto; margin: 0; background: none; }
    .empty-card .empty-ico, .ccard .empty-ico { width: var(--a40); height: var(--a40); border-radius: var(--r-10); }
    .empty-card .empty-state > :not(.empty-art), .ccard .empty-state > :not(.empty-art) { grid-column: 2; }
    .empty-card .empty-title, .ccard .empty-title { font-size: var(--fs-section); }
    .empty-card .empty-actions, .ccard .empty-actions { margin-top: var(--a6); }
    .empty-card.empty-state { margin-top: 0; padding: var(--s-5) var(--a22); background: var(--surface); }
    /* Why this matters + Why it fits: the verdict pair at the top of the company view (D-610). Side by side when the
       view is wide, stacked in split view and on phones. */
    .verdict { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
    @container cv (min-width: 60rem) {
      .verdict.has-why { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
      .verdict.has-why .fit-list { grid-template-columns: minmax(0, 1fr); }
    }
    /* Why this matters (D-661): the shared card head, its tile in the newest reason's hue; the lead reason one step
       above body prose, never as large as the title; older reasons a tone quieter. */
    .ccard-why { color: var(--text); } /* site-home's unscoped .sig-fund would tint the whole card */
    .ccard-hue { color: var(--text); }
    .ccard-why .ccard-ico, .ccard-hue .ccard-ico { color: var(--sig, var(--text2)); background: color-mix(in srgb, var(--sig, var(--text2)) 12%, var(--surface)); }
    .why-item { margin-top: var(--s-4); }
    .why-item.ev { padding: var(--s-4) var(--a18); }
    .why-item .why-text { margin-top: var(--a6); font-size: var(--fs-prose); line-height: var(--lh-prose); }
    .why-item-more { padding-top: var(--s-4); border-top: var(--hair) solid var(--line); }
    .why-item-more .why-text { color: var(--text2); }
    .why-text.why-lead { font-size: var(--fs-16-5); line-height: var(--lh-sub); font-weight: 450; letter-spacing: -0.004em; }
    .why-proof { margin-top: var(--a6); font-size: var(--fs-13); color: var(--muted); }
    .why-more { margin: var(--s-3) 0 0 calc(var(--s-2) * -1); }
    .why-next { display: flex; flex-wrap: wrap; gap: var(--a10); margin-top: var(--a18); }
    .fit-tier { display: inline-flex; align-items: baseline; gap: var(--a6); margin-left: var(--a10); font-size: var(--fs-13); font-weight: 600; color: var(--ring-c); vertical-align: middle; }
    .fit-count { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
    .fit-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2) var(--a28); margin-top: var(--a14); }
    .fl { display: flex; gap: var(--a10); align-items: flex-start; font-size: var(--fs-body); line-height: var(--lh-body); }
    .fl b { font-weight: 600; }
    .fl-ico { flex: none; display: inline-flex; margin-top: var(--a3); }
    .fl-match .fl-ico { color: var(--fit-top); }
    .fl-partial .fl-ico { color: var(--fit-mod); }
    .fl-miss, .fl-locked, .fl-miss .fl-ico, .fl-locked .fl-ico, .fl-miss .text2 { color: var(--muted); }
    .fl-miss b { font-weight: 500; }
    /* D-211 extras: the Haiku sentence leads the card body; the "similar to one you marked Interested" row carries
       the Interested hue on its heart, next to the word. */
    .fit-sum { margin-top: var(--a14); font-size: var(--fs-prose); line-height: var(--lh-prose); color: var(--text); }
    .fl-like .fl-ico { color: var(--int); }
    .fl-redact { display: inline-block; width: 7em; height: 0.75em; border-radius: var(--a3); background: var(--raised); vertical-align: middle; }
    .fit-lock { margin-top: var(--s-4); }
    .fit-misses { margin-top: var(--a14); padding-top: var(--s-3); border-top: var(--hair) solid var(--line); }
    .fit-misses .fit-list { margin-top: var(--s-2); }
    .fit-misses .fl { font-size: var(--fs-13-5); }
    .ov { display: grid; gap: var(--s-6); margin-top: var(--s-4); }
    .ov-text { font-size: var(--fs-145); line-height: var(--lh-prose); }
    .ov-tags { margin-top: var(--s-4); gap: var(--s-2); }
    .ov-tag { display: inline-flex; align-items: center; gap: var(--a6); height: var(--a28); padding: 0 var(--a10); border-radius: var(--r-chip); border: 0; background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--line); color: var(--text); font: inherit; font-size: var(--fs-13); font-weight: 500; white-space: nowrap; cursor: pointer; }
    span.ov-tag { cursor: default; }
    .ov-tag svg { flex: none; color: var(--muted); }
    button.ov-tag:hover { background: color-mix(in srgb, var(--text) 7%, var(--raised)); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    button.ov-tag:hover svg { color: var(--text); }
    .shot { display: block; border-radius: var(--r-14); overflow: hidden; border: var(--hair) solid var(--line); background: var(--raised); text-decoration: none; }
    .shot img { display: block; width: 100%; height: auto; }
    .facts5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--s-34), 1fr)); gap: var(--s-4); margin: var(--a22) 0 0; padding-top: var(--a18); border-top: var(--hair) solid var(--line); }
    .facts-sub { display: block; margin-top: var(--a2); font-size: var(--fs-13); color: var(--muted); }
    .facts5 dt { font-size: var(--fs-chip); font-weight: 500; color: var(--muted); }
    .facts5 dd { margin: var(--a3) 0 0; font-size: var(--fs-section); }
    .facet { background: none; border: 0; padding: 0; font: inherit; color: var(--text); font-weight: 500; text-decoration: none; border-bottom: var(--hair) dashed var(--line2); cursor: pointer; }
    .facet:hover { border-bottom-color: var(--text); }
    .ov-lists { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--a18); }
    .fin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a10); margin-top: var(--a14); }
    .fin { display: flex; align-items: center; gap: var(--s-3); height: 100%; padding: var(--s-3) var(--s-4); border-radius: var(--r-12); background: var(--raised); color: inherit; text-decoration: none; }
    .fin:hover { background: color-mix(in srgb, var(--text) 6%, var(--raised)); }
    .fin .min0 { display: grid; gap: var(--u-1); }
    .fin-ico { flex: none; width: var(--a28); height: var(--a28); border-radius: var(--r-10); display: grid; place-items: center; background: var(--surface); color: var(--text); }
    .fin-title { font-size: var(--fs-section); font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .fin-go { flex: none; color: var(--muted); }
    .fin:hover .fin-go { color: var(--text); }
    .note-view { display: block; width: 100%; margin-top: var(--s-2); padding: 0; border: 0; background: none; font: inherit; font-size: var(--fs-section); color: var(--text2); text-align: left; cursor: text; white-space: pre-wrap; }
    .ccard .textarea { margin-top: var(--s-2); }
    .people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a10); margin-top: var(--s-4); }
    .person { display: flex; gap: var(--a14); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-12); background: var(--raised); min-width: 0; }
    .person.dep-gtm { --chip-hue: var(--sp-gtm); } .person.dep-ma { --chip-hue: var(--sp-ma); } .person.dep-rd { --chip-hue: var(--sp-rd); }
    .person.dep-part { --chip-hue: var(--sp-part); } .person.dep-ops { --chip-hue: var(--sp-ops); } .person.dep-prod { --chip-hue: var(--sp-prod); } .person.dep-infra { --chip-hue: var(--sp-infra); } .person.dep-hire { --chip-hue: var(--sp-hire); }
    .person-av { width: var(--a40); height: var(--a40); font-size: var(--fs-13); font-weight: 650; letter-spacing: .02em; color: var(--chip-hue); background: color-mix(in srgb, var(--chip-hue) 16%, var(--surface)); box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--chip-hue) 30%, transparent); }
    .person-main { min-width: 0; flex: 1; }
    .person-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-width: 0; }
    .person-top .tchip { flex: none; }
    .person-name { display: flex; align-items: center; gap: var(--a6); min-width: 0; font-size: var(--fs-15-5); font-weight: 650; letter-spacing: -.01em; color: var(--text); }
    /* A real target next to the name: a 24px tile, the icon at 16px (owner review, 2026-11-25: 14px bare was too small). */
    .person-li { flex: none; display: grid; place-items: center; width: var(--s-6); height: var(--s-6); border-radius: var(--a6); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); color: var(--text2); }
    .person-li:hover { color: var(--sp-rd); box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--sp-rd) 40%, var(--line)); }
    .person-title { margin-top: var(--a2); font-size: var(--fs-13-5); color: var(--text2); }
    .person-mail { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); width: 100%; height: var(--a34); margin-top: var(--s-3); padding: 0 var(--a10) 0 var(--s-3); border: 0; border-radius: var(--r-10); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); font: inherit; font-size: var(--fs-13-5); font-variant-numeric: tabular-nums; color: var(--text); text-align: left; cursor: pointer; }
    .person-mail:hover { box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    .person-copy { flex: none; color: var(--muted); }
    .person-mail:hover .person-copy { color: var(--text); }
    .person-foot { display: flex; align-items: center; gap: var(--a6); margin-top: var(--a10); font-size: var(--fs-12-5); color: var(--text2); }
    .people-k { margin-top: var(--a18); }
    .inboxes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); margin-top: var(--s-2); }
    .inboxes li { display: flex; align-items: center; gap: var(--a10); padding: var(--a6) var(--a6) var(--a6) var(--a14); border-radius: var(--r-10); background: var(--raised); min-width: 0; }
    .round-top { display: flex; gap: var(--a28); margin-top: var(--a18); align-items: flex-end; flex-wrap: wrap; }
    .round-top .t14 { margin-top: var(--a6); }
    .round-inv { flex: 1; min-width: min(100%, calc(var(--app-refine-w) - var(--s-5))); }
    .round-inv .chip-row { margin-top: var(--s-2); gap: var(--s-2); }
    .inv-wrap { display: inline-flex; align-items: center; gap: var(--a2); }
    .inv-credit { margin-top: var(--s-2); }
    .inv { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--a36); padding: 0 var(--s-3); border-radius: var(--a9); border: 0; background: var(--raised); font: inherit; font-size: var(--fs-body); color: var(--text); cursor: pointer; }
    .inv:hover { background: color-mix(in srgb, var(--text) 8%, var(--raised)); }
    /* Spend plans: the differentiator, in its own raised panel, one tile per plan tinted by its category. */
    .spend { margin-top: var(--a26); padding: var(--s-5); border-radius: var(--r-14); background: var(--raised); }
    .spend-head { display: flex; align-items: flex-start; gap: var(--s-3); }
    .spend-head .t13 { margin-top: var(--a2); }
    .spend-ico { flex: none; display: grid; place-items: center; width: var(--a34); height: var(--a34); border-radius: var(--r-10); background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 var(--hair) var(--line); }
    .spend-title { font-size: var(--fs-section); font-weight: 650; letter-spacing: -0.008em; }
    .spend-n { flex: none; }
    .spend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--u-300)), 1fr)); gap: var(--a10); margin-top: var(--s-4); }
    /* Spend tiles (D-661, neutral since D-706): white tiles with a hairline on the raised panel; the chip and the
       confidence dots in text2. The tile values are tokens (tokens.css, .spend-item). */
    .spend-item { display: flex; flex-direction: column; gap: var(--a10); padding: var(--a18); border-radius: var(--r-12); background: var(--tile); box-shadow: inset 0 0 0 var(--hair) var(--tile-line), var(--shadow-card); }
    .spend-item .tchip { background: var(--tile-chip); color: var(--text2); font-weight: 500; }
    .spend-item .conf i { background: var(--tile-line); }
    .spend-item .conf i.on { background: var(--text2); }
    .spend-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
    .spend-pct { color: var(--chip-hue); }
    .spend-text { font-size: var(--fs-145); line-height: var(--lh-prose); color: var(--text); }
    .spend-src { display: flex; align-items: center; flex-wrap: wrap; gap: var(--a6); margin-top: auto; }
    .prev-round { margin-top: var(--a14); padding: var(--s-3) var(--a14); border-radius: var(--r-10); background: var(--raised); }
    .prev-round b { font-weight: 600; color: var(--text); }
    .newsl-k { margin-top: var(--a22); }
    .newsl { margin-top: var(--s-1); }
    .newsl li { display: flex; align-items: center; gap: var(--s-3); padding: var(--a10) 0; border-top: var(--hair) solid var(--line); font-size: var(--fs-section); }
    .newsl a { text-decoration: none; }
    .newsl a:hover { text-decoration: underline; }
    .newsl-d { width: var(--s-16); flex: none; }
    .acq-item { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
    .acq-sum { font-size: var(--fs-prose); line-height: var(--lh-prose); color: var(--text); }
    .acq-sum .conf { margin-left: var(--a6); vertical-align: middle; }
    .acq-item .deal { margin-top: 0; }
    .hl-list { padding-left: var(--s-5); list-style: decimal; display: grid; gap: var(--a10); font-size: var(--fs-prose); line-height: var(--lh-prose); color: var(--text2); }
    .hl-list li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
    .hire-sigs { margin-top: var(--a14); gap: var(--s-2); }
    /* Functions are vertical tabs: the selected one shares the panel's fill and runs into it, so the list and the
       roles read as one control, not two columns (owner review, 2026-11-25). */
    .hire-grid { display: grid; grid-template-columns: var(--app-dept-w) minmax(0, 1fr); gap: 0; margin-top: var(--s-5); }
    .fn-k { padding-left: var(--s-3); }
    .fn-list { margin-top: var(--s-2); display: grid; gap: var(--a2); }
    .fn-list button { width: 100%; display: grid; grid-template-columns: calc(var(--s-24) - var(--s-1)) 1fr var(--s-6); gap: var(--a10); align-items: center; padding: var(--a10) var(--s-4) var(--a10) var(--s-3); border: 0; border-radius: var(--r-10) 0 0 var(--r-10); background: transparent; font: inherit; color: var(--text2); cursor: pointer; text-align: left; }
    .fn-list button:hover { background: color-mix(in srgb, var(--raised) 55%, transparent); color: var(--text); }
    .fn-list button[aria-selected="true"] { background: var(--raised); color: var(--text); }
    .fn-list button[aria-selected="true"] .fn-name { font-weight: 650; }
    .fn-list button[aria-selected="true"] .mbar { background: var(--line); }
    .fn-panel { min-width: 0; padding: var(--s-4) var(--s-5) var(--s-5); border-radius: var(--r-14); background: var(--raised); }
    .fn-panel-title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-section); }
    .fn-panel-title b { font-weight: 650; }
    .fn-panel-title .dot { background: var(--chip-hue); }
    .fn-panel .pill { background: transparent; }
    .fn-panel .pill[aria-pressed="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-card); }
    .fn-panel .chip { background: var(--surface); }
    .fn-name { font-size: var(--fs-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fn-total { display: flex; justify-content: space-between; padding: var(--s-3) var(--s-3) 0; margin-top: var(--a6); border-top: var(--hair) solid var(--line); }
    .roles-sen { margin-top: var(--s-3); }
    .roles-empty { margin-top: var(--s-3); }
    .role-list { margin-top: var(--s-2); }
    .role-list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: var(--hair) solid var(--line); }
    .tech-search { margin-top: var(--s-4); max-width: var(--app-refine-w); }
    .tech-rows { margin-top: var(--s-3); }
    .tech-row { display: grid; grid-template-columns: var(--app-tech-k) minmax(0, 1fr); gap: var(--s-2) var(--s-4); align-items: start; padding: var(--s-3) 0; border-top: var(--hair) solid var(--line); }
    .tech-row:first-child { border-top: 0; }
    .tech-rows-flat .tech-row { grid-template-columns: minmax(0, 1fr); padding-top: var(--s-2); }
    .tech-row-k { display: flex; align-items: baseline; gap: var(--a6); padding-top: var(--a7); font-size: var(--fs-13); font-weight: 600; color: var(--text2); }
    .tech-row-k .t-mono { font-size: var(--fs-chip); font-weight: 500; color: var(--muted); }
    .tech-row > .tech-detail { grid-column: 2; }
    .tech-rows-flat .tech-row > .tech-detail { grid-column: 1; }
    .tech-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); min-width: 0; }
    .tech-chips li { min-width: 0; max-width: 100%; }
    .tech-chip { display: inline-flex; align-items: center; gap: var(--s-2); max-width: 100%; height: var(--a34); padding: 0 var(--s-3) 0 var(--a5); border: 0; border-radius: var(--r-btn); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); color: var(--text); font: inherit; font-size: var(--fs-body); font-weight: 500; cursor: pointer; }
    .tech-chip:hover { background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    .tech-chip[aria-expanded="true"] { background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--text2); }
    .tech-chip:focus-visible { outline: var(--a2) solid var(--text); outline-offset: var(--a2); }
    .tech-chip > svg { flex: none; color: var(--fit-top); }
    .tech-chip.is-match { box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--fit-top) 40%, var(--line)); }
    .tech-icon { flex: none; display: grid; place-items: center; width: var(--a34); height: var(--a34); padding: var(--a6); border-radius: var(--r-btn); background: var(--raised); color: var(--text2); font-size: var(--fs-13); font-weight: 700; box-shadow: inset 0 0 0 var(--hair) var(--line); }
    .tech-icon.has-img { background: var(--tech-tile); }
    .tech-icon img { width: 100%; height: 100%; object-fit: contain; }
    .tech-status { margin-top: var(--s-4); }
    .tech-status-head { display: flex; align-items: center; gap: var(--a10); flex-wrap: wrap; font-size: var(--fs-section); }
    .tech-status-head b { font-weight: 600; }
    .tech-status-dot { flex: none; width: var(--s-2); height: var(--s-2); border-radius: var(--r-round); background: var(--line2); }
    .tech-status-dot.is-live { background: var(--fit-top); box-shadow: 0 0 0 var(--a3) color-mix(in srgb, var(--fit-top) 20%, transparent); }
    .tech-status-when { margin-left: auto; font-size: var(--fs-chip); color: var(--muted); }
    .tech-status-line { margin: var(--a6) 0 0 var(--a18); max-width: 68ch; font-size: var(--fs-13); line-height: 1.55; color: var(--text2); }
    .tech-status-act { margin: var(--s-3) 0 0 var(--a18); }
    .tech-ghost { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 0 var(--a18); }
    .tech-ghost li { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--a34); padding: 0 var(--s-3) 0 var(--a5); border-radius: var(--r-btn); border: var(--hair) dashed var(--line2); }
    .tech-ghost i { width: var(--s-6); height: var(--s-6); border-radius: var(--a6); background: var(--raised); }
    .tech-ghost span { height: var(--s-2); border-radius: var(--a3); background: var(--raised); }
    .tech-ghost .g1 span { width: var(--s-16); } .tech-ghost .g2 span { width: var(--s-10); } .tech-ghost .g3 span { width: var(--s-18); }
    .tech-icon-sm { width: var(--s-6); height: var(--s-6); padding: var(--a3); border-radius: var(--a6); font-size: var(--fs-chip); box-shadow: none; }
    .tech-icon-lg { width: var(--a44); height: var(--a44); padding: var(--s-2); border-radius: var(--a11); font-size: var(--fs-body); }
    .tech-detail { margin-top: var(--s-1); padding: var(--s-4); border-radius: var(--r-12); background: var(--raised); }
    .tech-detail-head { display: flex; align-items: center; gap: var(--s-3); }
    .tech-detail-head .min0 { display: grid; }
    .tech-chip .conf { flex: none; }
    .tech-level { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); }
    .tech-about { margin-top: var(--s-3); color: var(--text2); }
    .tech-actions { margin-top: var(--s-4); gap: var(--s-4); flex-wrap: wrap; }
    .tech-more { margin-top: var(--s-3); }
    .hl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--a10); margin-top: var(--a14); }
    /* Highlights as quiet notes: the highlight paper tone and a folded corner, no tilt, no tape. */
    .hl-note { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4) var(--s-4) var(--a10); border-radius: var(--r-12); background: color-mix(in srgb, var(--hl-bg) 72%, var(--surface)); clip-path: polygon(0 0, calc(100% - var(--a18)) 0, 100% var(--a18), 100% 100%, 0 100%); }
    .hl-note::after { content: ""; position: absolute; top: 0; right: 0; width: var(--a18); height: var(--a18); border-bottom-left-radius: var(--a3); background: color-mix(in srgb, var(--hl) 24%, var(--hl-bg)); }
    .hl-text { font-size: var(--fs-section); line-height: var(--lh-prose); color: var(--text); }
    .hl-note .chip { background: color-mix(in srgb, var(--hl) 12%, transparent); color: var(--text2); }
    .hl-note .iconbtn:hover { background: color-mix(in srgb, var(--hl) 14%, transparent); }
    .hl-foot { margin-top: auto; gap: var(--a6); }
    .sim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--a10); margin-top: var(--a14); }
    .sim-grid + .t13 { margin-top: var(--s-3); }
    .sim, .sk-sim { width: 100%; height: 100%; display: flex; flex-direction: column; gap: var(--a10); padding: var(--s-4); border-radius: var(--r-card); border: 0; background: var(--raised); font: inherit; color: inherit; text-align: left; cursor: pointer; }
    .sim:hover { background: color-mix(in srgb, var(--text) 6%, var(--raised)); }
    .sim-head { display: flex; align-items: center; gap: var(--a10); width: 100%; }
    .sim-head .min0, .sim-head .grow { display: grid; }
    .sim-what { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .sim .row-line { margin-top: auto; }
    .cv-locked { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-8) 0; max-width: calc(var(--app-feed-w) * 0.8); }
    .quota-mini { display: grid; gap: var(--a6); width: 100%; }
    .cv-skel { display: grid; gap: var(--s-4); padding-top: var(--s-4); }
    .company-page .cv-inner { padding-top: 0; }

    /* ---------- Discover (P6) ---------- */
    .discover { display: flex; min-height: 100%; }
    .discover:has(> .scroll-root) { height: 100%; min-height: 0; }
    .disc-main { flex: 1; min-width: 0; padding: var(--a18) var(--s-6) var(--s-10); position: relative; }
    .disc-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); container-type: inline-size; }
    /* The AI search (D-620, restyled): the one field on the page that is taller than a control, in the app's own
       vocabulary. A white field with the input radius and the card edge, a quiet sparkle that inks in on focus, the
       ink Search button as the single primary. Examples are plain hairline buttons, not pills. */
    .bigsearch { position: relative; overflow: hidden; display: flex; align-items: center; gap: var(--a10); height: var(--app-search-h); padding: 0 var(--a6) 0 var(--s-4); border-radius: var(--r-10); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line2), var(--shadow-card); color: var(--text); transition: box-shadow var(--dur-fast) ease-out; }
    .bigsearch:hover { box-shadow: inset 0 0 0 var(--hair) var(--muted), var(--shadow-card); }
    .bigsearch:focus-within { box-shadow: inset 0 0 0 var(--hair) var(--text), 0 0 0 var(--a3) color-mix(in srgb, var(--text) 8%, transparent), var(--shadow-card); }
    .bs-ico { flex: none; display: grid; place-items: center; color: var(--muted); }
    .bigsearch:focus-within .bs-ico, .bigsearch.is-busy .bs-ico { color: var(--text); }
    .bigsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: var(--fs-15-5); color: var(--text); outline: none; }
    .bigsearch input::placeholder { color: var(--muted); }
    .bigsearch .btn { flex: none; }
    .bs-busy { flex: none; padding-right: var(--a10); font-size: var(--fs-13); font-weight: 600; color: var(--text2); white-space: nowrap; }
    .bs-sweep { position: absolute; left: 0; bottom: 0; width: 30%; height: var(--a2); background: var(--text); opacity: 0; translate: -100% 0; pointer-events: none; }
    .bigsearch.is-busy .bs-sweep { opacity: 0.8; }
    /* Suggestions read as links, not chips: nothing on this screen that looks like a tag is clickable text. */
    .bs-hint { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--a5) var(--a9); padding-left: var(--s-4); font-size: var(--fs-13); color: var(--muted); }
    .bs-ex { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--text2); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: var(--a3); cursor: pointer; }
    .bs-ex:hover { color: var(--text); text-decoration-color: currentColor; }
    .active-chips { display: flex; flex-wrap: wrap; gap: var(--a6); align-items: center; }
    .active-k { display: inline-flex; align-items: center; gap: var(--a5); margin-right: var(--a2); font-size: var(--fs-13); color: var(--muted); }
    .disc-search { display: grid; gap: var(--a10); }
    .disc-search .active-chips { padding-left: var(--s-4); }
    .disc-title { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
    .disc-title-l { display: flex; align-items: baseline; gap: var(--a14); flex-wrap: wrap; min-width: 0; }
    .disc-title-l .lock-pill { align-self: center; }
    .disc-title-r { display: flex; align-items: center; gap: var(--s-2); }
    .disc-bar { margin-top: var(--a6); }
    .disc-bar .tabs { flex: 1; min-width: 0; border-bottom: 0; }
    .disc-bar .seg { margin-left: var(--a5); }
    .disc-bar .btn .muted { margin-left: calc(-1 * var(--a2)); }
    /* When the filter dock leaves the bar narrow, Columns and Select fall back to their icons (titles say what they
       are) so the signal tabs never get cut; the sort keeps its word until the phone layout. */
    @container (max-width: 60em) { .disc-bar .lbl-opt { display: none; } }
    /* A narrow Discover head (a tablet in portrait, or the filter dock open on a small laptop): the signal tabs take
       their own row, the tools a row under them, so no tab is cut to "Fundi". */
    @container (max-width: 44rem) {
      .disc-bar { flex-wrap: wrap; row-gap: var(--a6); border-bottom: 0; }
      .disc-bar .tabs { flex-basis: 100%; border-bottom: var(--hair) solid var(--line); }
      .disc-bar .feed-bar-r { margin-left: 0; flex: 1; }
      .disc-bar .disc-fbtn .lbl { display: inline; }
      .disc-bar .seg { margin-left: auto; }
    }
    .disc-tools { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
    .disc-tools .btn b { font-weight: 600; }
    .tcard { margin-top: var(--s-3); border-radius: var(--r-card); border: var(--hair) solid var(--line); background: var(--surface); box-shadow: var(--shadow-raise); overflow: hidden; }
    .trow { display: grid; gap: var(--s-4); align-items: center; padding: var(--s-3) var(--a18); border-top: var(--hair) solid var(--line); }
    .trow > * { min-width: 0; }
    .lead-row .t13 { font-size: var(--fs-body); }
    .tcard > .trow:first-child { border-top: 0; }
    .thead { position: sticky; top: 0; z-index: 1; background: var(--raised); font-size: var(--fs-13); color: var(--muted); padding-top: var(--a10); padding-bottom: var(--a10); white-space: nowrap; }
    .lead-row { cursor: pointer; }
    .lead-row:hover { background: color-mix(in srgb, var(--text) 3%, var(--surface)); }
    .lead-row.checked { background: color-mix(in srgb, var(--text) 5%, var(--surface)); }
    .lead-row, .disc-thead { grid-template-columns: var(--cols); }
    /* Discover list in a narrow table (a phone, a tablet in portrait, or a desktop with the filter dock open): one
       compact row per company, logo, name over its latest signal, the ring, never a crushed name column or a sideways
       scroll. The checkbox column and the header come back in select mode; a tablet-wide table adds country, size
       (D-667). The columns picker has nothing to pick then, so it hides (disc-head is the bar's container). */
    .tcard { container: tcard / inline-size; }
    @container tcard (max-width: 54rem) {
      .tcard .lead-row, .tcard .disc-thead { min-width: 0; }
      .lead-row { grid-template-columns: var(--logo-sm) minmax(0, 1fr) auto; grid-template-areas: "logo co icp" "logo sig icp"; gap: var(--a2) var(--s-3); padding: var(--s-3) var(--s-4); }
      .lead-row > .cb, .disc-thead { display: none; }
      .lead-row > .logo-sm { grid-area: logo; }
      .lead-row > .trow-co { grid-area: co; }
      .lead-row .trow-desc { display: none; }
      .lead-row > [data-c] { display: none; }
      .lead-row > [data-c="signal"] { grid-area: sig; display: flex; align-items: center; gap: var(--s-2); min-width: 0; font-size: var(--fs-13); }
      .lead-row > [data-c="signal"] .trow-sub { padding-left: 0; flex: none; }
      .lead-row > [data-c="icp"] { grid-area: icp; display: inline-flex; }
      .is-selecting .lead-row { grid-template-columns: var(--a18) var(--logo-sm) minmax(0, 1fr) auto; grid-template-areas: "cb logo co icp" "cb logo sig icp"; }
      .is-selecting .lead-row > .cb { display: inline-block; grid-area: cb; }
      .is-selecting .disc-thead { display: grid; grid-template-columns: var(--a18) minmax(0, 1fr); }
      .is-selecting .disc-thead > :not(.cb):not(:nth-child(3)) { display: none; }
    }
    @container tcard (min-width: 32rem) and (max-width: 54rem) {
      .lead-row { grid-template-columns: var(--logo-sm) minmax(0, 1fr) minmax(0, var(--app-cell-lg)) auto; grid-template-areas: "logo co country icp" "logo sig country icp"; }
      .lead-row > [data-c="country"] { grid-area: country; display: block; }
      .is-selecting .lead-row { grid-template-columns: var(--a18) var(--logo-sm) minmax(0, 1fr) minmax(0, var(--app-cell-lg)) auto; grid-template-areas: "cb logo co country icp" "cb logo sig country icp"; }
    }
    @container (max-width: 54rem) { .disc-cols { display: none; } }
    .lead-row .logo-sm { width: var(--control-h); height: var(--control-h); border-radius: var(--r-btn); font-size: var(--fs-13); }
    .trow-co { min-width: 0; display: grid; }
    .trow-name { display: flex; align-items: center; gap: var(--a7); font-weight: 600; font-size: var(--fs-section); white-space: nowrap; min-width: 0; }
    .trow-desc { font-size: var(--fs-secondary); color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .trow-sig { display: flex; align-items: center; gap: var(--a6); white-space: nowrap; min-width: 0; overflow: hidden; }
    .trow-sig > :last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
    .trow-sig b { font-weight: 600; }
    .trow-sub { display: block; font-size: var(--fs-13); color: var(--muted); padding-left: var(--s-3); }
    .trow-indent { padding-left: var(--a26); }
    .ok-mark { display: inline-flex; color: var(--done); }
    .trow-end { justify-self: end; display: inline-flex; }
    .trow-hover { display: none; gap: var(--s-1); }
    /* Hover only where there is a hover: on a touch screen a tap left the row stuck on its triage buttons. */
    @media (hover: hover) {
      .lead-row:hover .trow-hover { display: inline-flex; }
      .lead-row:hover .trow-ring { display: none; }
    }
    /* An open Later menu keeps the row's actions on screen (the native date picker takes the pointer off the row),
       and the table lets it hang past the last row while it is open. */
    .lead-row:has(.menu) .trow-hover { display: inline-flex; }
    .lead-row:has(.menu) .trow-ring { display: none; }
    .tcard:has(.menu) { overflow: visible; }
    .tfoot { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-3) var(--s-4); border-top: var(--hair) solid var(--line); font-size: var(--fs-13); color: var(--muted); }
    .skel-row { padding: var(--a18) var(--s-4); }
    .gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--app-refine-w) - var(--s-4)), 1fr)); gap: var(--s-3); margin-top: var(--s-3); }
    .gcard-wrap { position: relative; }
    .gcard-x { position: absolute; top: var(--s-2); right: var(--s-2); opacity: 0; }
    .gcard-wrap:hover .gcard-x, .gcard-x:focus-visible { opacity: 1; }
    .gcard, .sk-gcard { display: flex; flex-direction: column; gap: var(--s-2); height: 100%; padding: var(--s-4); border-radius: var(--r-card); border: var(--hair) solid var(--line); background: var(--surface); box-shadow: var(--shadow-raise); cursor: pointer; }
    .gcard:hover { border-color: var(--line2); }
    .gcard.checked { box-shadow: 0 0 0 var(--rule) var(--text); }
    .gcard-head { display: flex; align-items: center; gap: var(--a10); }
    .gcard-id { flex: 1; min-width: 0; }
    /* 12px meta line: the 18x13 flag ran large and its inline-flex box pushed ", size" off the baseline. */
    .gcard-id .country { gap: var(--a6); vertical-align: top; }
    .gcard-id .country img { width: 1.25em; height: 0.9em; }
    .gcard-name { display: flex; align-items: center; gap: var(--a6); min-width: 0; font-weight: 600; font-size: var(--fs-section); }
    .gcard-what { font-size: var(--fs-13); color: var(--text2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    /* Same triage control as the feed card (Interested / Later / Skip), on the same hairline footer. */
    .gcard-foot { display: flex; align-items: center; margin-top: auto; padding-top: var(--a10); border-top: var(--hair) solid var(--line); }
    .bulk { position: sticky; bottom: var(--s-4); z-index: var(--z-toast); display: flex; align-items: center; gap: var(--a6); width: fit-content; max-width: 100%; flex-wrap: wrap; margin: var(--a14) auto 0; padding: var(--s-2) var(--a10) var(--s-2) var(--s-4); border-radius: var(--r-12); background: var(--text); color: var(--bg); box-shadow: var(--shadow-pop); font-size: var(--fs-13); }
    .bulk button { display: inline-flex; align-items: center; gap: var(--a6); height: var(--control-h); padding: 0 var(--a9); border: 0; border-radius: var(--a7); background: transparent; color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }
    .bulk button:hover { background: color-mix(in srgb, var(--bg) 14%, transparent); }
    .bulk .bulk-link { text-decoration: underline; font-weight: 500; margin-right: var(--a6); }
    .bulk-sep { opacity: 0.35; }
    .bulk-x { margin-left: var(--a6); order: 1; }
    .bulk-top, .bulk-acts { display: contents; }
    /* Under an open dialog (Add to list, Export, Send) the bar stays under the scrim, not over the sheet. */
    &:has(.scrim) .bulk { z-index: auto; }
    .filters-dock { flex: 0 0 var(--app-filter-w); height: 100%; overflow: auto; border-left: var(--hair) solid var(--line); background: var(--surface); }
    .fpanel2 { padding: var(--s-4) var(--a18) 0; min-height: 100%; display: flex; flex-direction: column; }
    .fp-head { display: flex; align-items: center; gap: var(--s-2); }
    .fp-title { font-size: var(--fs-section); font-weight: 600; }
    .fp-group { padding: var(--s-4) 0 var(--a6); font-size: var(--fs-chip); font-weight: 600; color: var(--muted); }
    .fp-group + .fr-row { border-top-color: var(--line); }
    .fp-foot { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); margin-top: auto; padding: var(--a14) 0 var(--s-4); border-top: var(--hair) solid var(--line); background: var(--sunken); }
    .range2 { display: flex; align-items: center; gap: var(--s-2); }
    .range2 select { flex: 1; min-width: 0; }

    /* Export modal (P6) */
    /* Export modal (D-619): the number and its reason first, columns as one line until Customize, one footer row. */
    .ex-source { padding: 0 var(--s-6); }
    .ex-plan { display: grid; gap: var(--s-2); margin: var(--s-4) var(--s-6) 0; padding: var(--s-4) var(--a18); border-radius: var(--r-12); background: var(--raised); }
    .ex-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }
    .ex-plan-n { font-size: var(--fs-section); }
    .ex-plan-n b { font-size: var(--fs-20); font-weight: 700; color: var(--text); margin-right: var(--a2); }
    .ex-bar { display: flex; height: var(--s-2); border-radius: var(--s-1); background: var(--line); overflow: hidden; }
    .ex-bar span { display: block; height: 100%; }
    .ex-bar .used { background: var(--text2); } .ex-bar .new { background: var(--fit-top); }
    .ex-legend2 { display: flex; gap: var(--s-4); flex-wrap: wrap; color: var(--text2); }
    .ex-legend2 span { display: inline-flex; align-items: center; gap: var(--a6); }
    .ex-legend2 i { width: var(--s-2); height: var(--s-2); border-radius: var(--a2); background: var(--line); }
    .ex-legend2 i.used { background: var(--text2); } .ex-legend2 i.new { background: var(--fit-top); }
    .ex-why { line-height: var(--lh-prose); }
    .ex-quality { display: flex; gap: var(--s-2); align-items: flex-start; padding-top: var(--s-2); border-top: var(--hair) solid var(--line); color: var(--text); line-height: var(--lh-prose); }
    .ex-quality svg { flex: none; margin-top: var(--a3); color: var(--fit-top); }
    .ex-cols { display: grid; gap: var(--a10); min-height: 0; margin: var(--a18) var(--s-6) 0; }
    .ex-cols-head { display: flex; align-items: center; gap: var(--a6); }
    .ex-picked { display: flex; flex-wrap: wrap; gap: var(--a6); }
    .ex-pick { display: inline-flex; align-items: center; height: var(--s-6); padding: 0 var(--s-2); border-radius: var(--r-chip); background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--line); font-size: var(--fs-chip); font-weight: 500; color: var(--text2); }
    .ex-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--s-34), 1fr)); gap: var(--s-4) var(--s-6); max-height: min(var(--u-464), 46dvh); overflow: auto; padding: var(--s-3) var(--a2) var(--s-2); border-top: var(--hair) solid var(--line); }
    .ex-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s-2); align-content: start; }
    .ex-legend { padding: 0; font-size: var(--fs-13); font-weight: 600; color: var(--text); }
    .ex-note { margin-top: calc(-1 * var(--s-1)); }
    .ex-grid { display: grid; gap: var(--s-2); }
    .ex-foot { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-5); padding: var(--s-4) var(--s-6); background: var(--sunken); border-top: var(--hair) solid var(--line); }
    .lock-box { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-4); border-radius: var(--r-12); background: var(--raised); }

    /* ---------- Lists ---------- */
    .list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--app-refine-w) - var(--s-6)), 1fr)); gap: var(--s-3); }
    .lcard, .sk-lcard { display: flex; flex-direction: column; gap: var(--a6); padding: var(--s-4) var(--a18); border-radius: var(--r-card); border: var(--hair) solid var(--line); background: var(--surface); box-shadow: var(--shadow-raise); text-decoration: none; color: inherit; min-height: calc(var(--s-34) - var(--s-4)); }
    .lcard:hover { border-color: var(--line2); }
    .lcard-top { display: flex; align-items: center; gap: var(--s-2); min-height: var(--a28); }
    .lcard-logos { display: inline-flex; gap: var(--s-1); }
    .lcard-ico { width: var(--s-6); height: var(--s-6); border-radius: var(--a6); display: grid; place-items: center; background: var(--raised); color: var(--text2); }
    .lcard-ico-own { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    .lcard-kind, .lcard-pin { display: inline-flex; align-items: center; gap: var(--a5); height: var(--s-5); padding: 0 var(--a7); border-radius: var(--a6); font-size: var(--fs-115); font-weight: 600; white-space: nowrap; }
    .lcard-kind { color: var(--text); box-shadow: inset 0 0 0 var(--hair) var(--line2); }
    .lcard-kind-own { background: var(--raised); color: var(--text2); box-shadow: none; }
    .lcard-pin { color: var(--hl); background: var(--hl-bg); }
    .lcard-title { font-family: var(--font-display); font-size: var(--fs-name-card); font-weight: 600; letter-spacing: -0.015em; margin-top: var(--a6); }

    /* ---------- ICP page (kept) ---------- */
    .icp-dim { display: grid; gap: var(--s-3); }
    .icp-ex { display: grid; gap: var(--s-3); }
    .chips .chip-remove svg { width: var(--s-3); }
    .invite { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
    .invite p { flex: 1; min-width: 0; display: flex; gap: var(--s-2); align-items: center; }

    /* ---------- Billing (kept for the account screens) ---------- */
    .quota { display: grid; gap: var(--s-2); }
    .quota-track { position: relative; height: var(--s-1); border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
    .quota-fill { position: absolute; inset: 0 auto 0 0; background: var(--text); border-radius: var(--r-pill); }
    .quota-near .quota-fill { background: var(--hl); }
    .quota-near .quota-figure { color: var(--hl); font-weight: 600; }
    .quota-compact { gap: var(--s-1); }
    .plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--rail-w), 1fr)); gap: var(--s-4); }
    .plan-points { display: grid; gap: var(--s-1); padding-left: var(--s-4); color: var(--text2); font-size: var(--fs-secondary); }
    .invoices { width: 100%; border-collapse: collapse; font-size: var(--fs-secondary); }
    .invoices td { padding: var(--s-2) var(--s-2) var(--s-2) 0; border-top: var(--hair) solid var(--line); }
    .segmented { display: inline-flex; padding: var(--a3); gap: var(--a2); border-radius: var(--r-10); background: var(--raised); }

    /* ---------- Palette ---------- */
    .pal-scrim { place-items: start center; padding-top: 12vh; }
    .palette { width: min(var(--palette-w), calc(100vw - var(--s-8))); max-height: 70dvh; display: grid; grid-template-rows: auto 1fr; background: var(--overlay); border: var(--hair) solid var(--line2); border-radius: var(--r-14); box-shadow: var(--shadow-pop); overflow: hidden; }
    .pal-input { display: flex; align-items: center; gap: var(--s-3); padding: var(--a14) var(--s-4); border-bottom: var(--hair) solid var(--line); color: var(--muted); }
    .pal-input input { flex: 1; border: 0; background: none; font-size: var(--fs-section); color: var(--text); }
    .pal-input input:focus-visible { outline: none; }
    .pal-cancel { display: none; align-items: center; flex: none; height: var(--touch-min); padding: 0 var(--s-1); border: 0; background: none; font: inherit; font-size: var(--fs-body); font-weight: 600; color: var(--text); cursor: pointer; }
    .pal-body { overflow: auto; padding: var(--a6); }
    .pal-sec { padding: var(--s-3) var(--a10) var(--s-1); font-size: var(--fs-chip); font-weight: 600; color: var(--muted); }
    .pal-row { width: 100%; display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--a10); border: 0; border-radius: var(--r-btn); background: none; font: inherit; font-size: var(--fs-body); color: var(--text); cursor: pointer; text-align: left; }
    .pal-row .t-meta { margin-left: auto; }
    .pal-row[aria-selected="true"] { background: var(--raised); }
    .pal-discover .kbd { margin-left: auto; }
    .pal-err { padding: var(--s-2) var(--s-4); color: var(--danger); font-size: var(--fs-secondary); }
    .pal-hint { padding: var(--s-3); }

    /* ---------- Onboarding (R6) ---------- */
    .ob { min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }
    .ob-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); height: var(--app-ob-top); padding: 0 var(--s-10); border-bottom: var(--hair) solid var(--line); }
    .ob-logo .wordmark { height: var(--a28); }
    .ob-steps { display: flex; align-items: center; gap: var(--a10); }
    .ob-bars { display: inline-flex; gap: var(--a6); }
    .ob-bars i { width: var(--s-12); height: var(--s-1); border-radius: var(--a2); background: var(--line2); }
    .ob-bars i.on { background: var(--text); }
    .ob-main { flex: 1; display: grid; grid-template-columns: var(--app-ob-form) var(--app-ob-preview); gap: var(--s-16); justify-content: center; align-items: start; padding: var(--s-18) var(--s-10); }
    .ob-title { font-family: var(--font-display); font-weight: 700; font-size: var(--a34); letter-spacing: -0.03em; line-height: 1.05; }
    .ob-lede { margin-top: var(--a10); font-size: var(--fs-section); color: var(--text2); line-height: var(--lh-sub); }
    .ob-fields { display: grid; gap: var(--a18); margin-top: var(--a28); }
    .ob-site { display: flex; align-items: center; gap: var(--s-2); min-height: var(--a44); padding: 0 var(--s-3); border-radius: var(--a9); border: var(--hair) solid var(--line2); background: var(--surface); }
    .ob-site:focus-within { border-color: var(--text); }
    .ob-site input { flex: 1; min-width: 0; border: 0; background: none; font-size: var(--fs-body); color: var(--text); outline: none; }
    .ob-co { display: flex; align-items: center; gap: var(--a14); padding: var(--s-4); border-radius: var(--r-14); border: var(--hair) solid var(--line); background: var(--surface); }
    .ob-co .logo-tile { width: var(--a44); height: var(--a44); border-radius: var(--a11); }
    .ob-what { width: 100%; min-height: 0; height: auto; padding: var(--a10) var(--s-3); font-size: var(--fs-body); resize: vertical; }
    .ob-what:focus { border-color: var(--text); outline: none; }
    .ob-hint { margin-top: var(--a5); }
    .ob-actions { display: flex; gap: var(--a10); flex-wrap: wrap; margin-top: var(--a30); }
    .ob-back { margin-left: auto; }
    .chippick { display: flex; flex-wrap: wrap; gap: var(--a6); align-items: center; }
    .ob-chip { display: inline-flex; align-items: center; gap: var(--a6); height: var(--a30); padding: 0 var(--s-2) 0 var(--a10); border-radius: var(--r-btn); background: var(--raised); font-size: var(--fs-13); font-weight: 500; }
    .ob-chip button { display: inline-flex; border: 0; background: none; padding: 0; color: var(--muted); cursor: pointer; }
    .ob-add { display: inline-flex; align-items: center; gap: var(--s-1); height: var(--a30); padding: 0 var(--a10); border-radius: var(--r-btn); border: var(--hair) dashed var(--line2); background: transparent; font: inherit; font-size: var(--fs-13); color: var(--text2); cursor: pointer; }
    .ob-add-wrap { position: relative; display: inline-grid; gap: var(--s-1); min-width: calc(var(--app-refine-w) * 0.66); }
    .ob-add-wrap .pick-list { position: absolute; top: calc(100% + var(--s-1)); left: 0; right: 0; z-index: var(--z-drawer); }
    .ob-secs { margin-top: var(--s-6); padding: var(--s-1) var(--s-5); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-raise); }
    .ob-sec { padding: var(--s-4) 0; border-bottom: var(--hair) solid var(--line); }
    .ob-sec:last-child { border-bottom: 0; }
    .ob-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-3); }
    .ob-sec-k { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-body); font-weight: 600; color: var(--text); }
    .ob-sec-ico { display: grid; place-items: center; width: var(--a28); height: var(--a28); border-radius: var(--r-btn); background: var(--raised); color: var(--text2); }
    .ob-sec-n { display: inline-grid; place-items: center; min-width: var(--s-5); height: var(--s-5); padding: 0 var(--a6); border-radius: var(--r-pill); background: var(--text); color: var(--on-ink); font-size: var(--fs-chip); font-family: var(--font-mono); }
    .ob-sugg { display: inline-flex; align-items: center; gap: var(--s-1); height: var(--a30); padding: 0 var(--a10); border-radius: var(--r-btn); border: var(--hair) solid var(--line2); background: var(--surface); font: inherit; font-size: var(--fs-13); color: var(--text2); cursor: pointer; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
    .ob-sugg:hover { background: var(--raised); color: var(--text); }
    .ob-sugg svg { color: var(--muted); }
    .ob-chip { background: var(--text); color: var(--on-ink); }
    .ob-chip button { color: color-mix(in srgb, var(--on-ink) 70%, transparent); }
    .ob-auto { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-6); padding: var(--s-4); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line2); box-shadow: var(--shadow-lift); }
    .ob-auto-tile { display: grid; place-items: center; flex: none; width: var(--s-10); height: var(--s-10); border-radius: var(--r-btn); background: var(--text); color: var(--on-ink); }
    .ob-preview { position: sticky; top: var(--s-8); display: grid; gap: var(--a10); padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-lift); }
    .ob-preview .ob-pcard, .ob-preview .ob-plist { background: var(--raised); border-color: transparent; }
    .ob-pcard { display: grid; gap: var(--a10); padding: var(--a14); border-radius: var(--r-card); border: var(--hair) solid var(--line); background: var(--surface); }
    .ob-why { padding: var(--a10) var(--s-3); border-radius: var(--a9); background: var(--raised); }
    .ob-why b { font-weight: 600; }
    .ob-plist { border-radius: var(--r-card); border: var(--hair) solid var(--line); background: var(--surface); padding: 0 var(--a14); }
    .ob-plist li { display: flex; align-items: center; gap: var(--s-3); min-height: var(--s-12); border-top: var(--hair) solid var(--line); }
    .ob-plist li:first-child { border-top: 0; }
    .ob-plist .logo-xs { width: var(--s-6); height: var(--s-6); }
    .ob-fits { display: grid; gap: var(--s-2); margin-top: var(--s-1); font-size: var(--fs-13); }
    .ob-fits li { display: flex; align-items: center; gap: var(--s-2); }
    .ob-fits b { font-weight: 600; }

    /* ---------- Responsive ---------- */
    @media (max-width: 75em) {
      .refine, .filters-dock { position: fixed; top: 0; right: 0; bottom: 0; height: auto; z-index: var(--z-dialog); box-shadow: var(--shadow-pop); width: min(var(--app-refine-w), 100vw); }
      .drawer-scrim { z-index: var(--z-dialog); }
      .cv-full .cv-inner, .cv-page .cv-inner { padding: 0 var(--s-6) var(--s-10); }
      .ob-main { grid-template-columns: minmax(0, var(--app-ob-form)); }
      .ob-preview { position: static; }
    }
    /* A tablet (D-667): under 80em the list beside a company narrows so the company keeps room; under 64em (an iPad
       in portrait, a small one in landscape) the company takes the whole pane, the list one tap back (×), as on a
       phone. Side by side there left the company 170px. Expand has nothing to expand then. */
    /* A phone held sideways (`.shell-land`, D-660) keeps its own split, in landscape.css. */
    @media (max-width: 80em) {
      &:not(.shell-land) .screen.split { grid-template-columns: var(--u-300) minmax(0, 1fr); }
    }
    @media (max-width: 64em) {
      &:not(.shell-land) .screen.split { grid-template-columns: minmax(0, 1fr); }
      &:not(.shell-land) .screen.split .split-col { display: none; }
      .cv-expand { display: none; }
    }
    @media (max-width: 48em) {
      & { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
      .topbar { display: flex; align-items: center; gap: var(--s-3); height: var(--a60); padding: 0 var(--s-3); border-bottom: var(--hair) solid var(--line); background: var(--bg); }
      .topbar-logo { flex: 1; display: inline-flex; }
      .topbar-logo .wordmark { height: var(--s-6); }
      .side { position: fixed; top: 0; bottom: 0; left: 0; width: min(var(--app-side-w), 86vw); z-index: var(--z-dialog); transform: translateX(-100%); transition: transform var(--dur) var(--ease); }
      .side-open { transform: none; box-shadow: var(--shadow-pop); }
      /* On a phone the drawer scrolls as one, so Your ICP and Connect are never hidden behind an inner scroll box. */
      .side { overflow-y: auto; overscroll-behavior: contain; }
      .side-scroll { flex: none; overflow: visible; }
      .side-fold { display: none; }
      /* The drawer scrolls as one: nothing in it shrinks (the search field and the plan meter were squeezed into
         each other on a short screen). */
      .side > * { flex-shrink: 0; }
      .main { height: calc(100dvh - var(--a60)); }
      .feed-main, .disc-main { padding: 0 var(--s-4) var(--s-10); }
      .disc-main { padding-top: var(--s-4); }
      .disc-bar .lbl, .disc-bar .lbl-opt { display: none; }
      .disc-bar { flex-wrap: wrap; row-gap: var(--a6); border-bottom: 0; }
      .disc-bar .tabs { flex-basis: 100%; border-bottom: var(--hair) solid var(--line); }
      /* The tools take their own row under the tabs: left-aligned, Filters keeps its word, the view switch at the end. */
      .disc-bar .feed-bar-r { margin-left: 0; flex: 1; }
      .disc-bar .disc-fbtn .lbl { display: inline; }
      .disc-bar .seg { margin-left: auto; }
      .disc-search .active-chips { padding-left: 0; }
      .page { padding: var(--s-5) var(--s-4) var(--s-12); }
      .apphead > .min0:first-child { flex: 1 1 100%; }
      .apphead > .grow:empty { display: none; }
      .feed-title { height: var(--s-12); align-items: center; }
      /* The phone list shows name, signal and ring only, so there are no columns to choose. */
      .disc-cols { display: none; }
      .feed-title-l .t13 { display: none; }
      .feed-bar { gap: var(--s-1); }
      .feed-bar-r .hide-compact { display: none; }
      .feed-tabs { gap: var(--s-4); }
      .fcard, .sk-fcard { padding: var(--s-4) var(--s-4) var(--s-1); }
      /* The ring keeps its figure; its word would squeeze the meta line into one item per row. */
      .fcard-head :is(.ring2-word, .ring2-tier) { display: none; }
      .money-row { grid-template-columns: 1fr; gap: var(--a14); }
      .money-row:has(.money-spend) .money-fig { border-right: 0; padding: 0; }
      .deal { grid-template-columns: 1fr; }
      .deal-arrow { transform: rotate(90deg); justify-self: start; }
      .rbtn { padding: 0 var(--s-2); }
      .screen.split { grid-template-columns: minmax(0, 1fr); height: auto; }
      .screen.split .split-col { display: none; }
      .detail-col { overflow: visible; }
      .cv { height: auto; overflow: visible; }
      .cv-inner, .cv-full .cv-inner, .cv-page .cv-inner { padding: 0 var(--s-4) var(--s-10); }
      .cv-head, .sk-cv-head { flex-wrap: wrap; }
      .cv-id { flex: 1 1 calc(100% - var(--s-16)); }
      .meta-row { gap: var(--s-1) var(--s-3); }
      .meta-row > * + *::before { display: none; }
      .banner { flex-wrap: wrap; }
      .cv-ring { flex-direction: row; align-items: center; order: 3; }
      .cv-keys, .tri .kbd, .cv-nav .kbd { display: none; }
      .cv-actions, .sk-cv-actions { position: static; }
      /* A phone has one column, so split and expanded look the same: no Expand. Tools take the full second row. */
      .cv-expand { display: none; }
      .cv-bar .cv-tools { flex: 1 1 100%; margin-left: 0; padding: var(--a5) 0 0; border-top: var(--hair) solid var(--line); }
      .cv-tools > .cv-copy, .cv-tools > .drop:not(:last-child) { flex: 1; }
      .cv-tools > .drop:not(:last-child) > .btn { width: 100%; }
      .tri-seg { width: 100%; }
      .tri { flex: 1; justify-content: center; padding: 0 var(--s-1); }
      .fit-list, .people, .inboxes, .hl-cards, .sim-grid, .fin-grid, .hire-grid { grid-template-columns: minmax(0, 1fr); }
      .facts5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .fn-list button { border-radius: var(--r-10); }
      .fn-panel { margin-top: var(--s-3); }
      .newsl li { flex-wrap: wrap; gap: var(--s-1) var(--s-3); }
      .tcard { overflow-x: auto; }
      .trow { min-width: calc(var(--app-detail-w) * 0.7); }
      .tcard:has(.lead-row) { overflow-x: hidden; }
      .bigsearch input { font-size: var(--fs-body); }
      .ob-top { padding: 0 var(--s-4); }
      .ob-steps { display: none; }
      .ob-main { padding: var(--s-8) var(--s-4); gap: var(--s-8); }
      .ob-title { font-size: var(--fs-name-standalone); }
      /* The main move takes the first row; Back and Skip share the row under it. */
      .ob-actions > .btn-ink { order: -2; flex: 1 1 100%; }
      .ob-actions > .btn-ghost { flex: 1; }
      .ob-actions > .ob-back { order: -1; margin-left: 0; }
      /* The bulk bar on a phone: the count, Select all and close on top, the actions one row under them that
         scrolls sideways, so the bar is two short rows instead of three ragged ones over the list. */
      .bulk { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: var(--s-1); width: auto; min-width: 0; padding: var(--s-2); }
      .bulk-acts { min-width: 0; }
      .bulk-top { display: flex; align-items: center; gap: var(--s-2); padding-left: var(--s-2); }
      .bulk-top .bulk-x { margin-left: auto; }
      .bulk-acts { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
      .bulk-acts .bulk-sep { display: none; }
      .bulk-acts button { flex: none; background: color-mix(in srgb, var(--bg) 10%, transparent); }
      .palette { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
      .pal-scrim { padding: 0; }
      .pal-cancel { display: inline-flex; }
      .menu { min-width: min(calc(100vw - var(--s-8)), var(--app-refine-w)); }
      .btn, .iconbtn, .rbtn, .tri, .side-item { min-height: var(--touch-min); }
      .iconbtn { min-width: var(--touch-min); }
    }

    /* ---------- Phone overlays (D-667) ---------- */
    /* Under 40em a dialog is a sheet from the bottom edge, full width, its buttons a row under the thumb; a big one
       (export, a webhook endpoint) takes the whole screen with its title and actions pinned and the middle scrolling.
       A dropdown is an action sheet over a scrim (a tap on the scrim closes it and reaches nothing underneath), so a
       long menu never hangs off a card. The filter panels take the full width. */
    @media (max-width: 40em) {
      .scrim { place-items: end stretch; padding: 0; }
      .dialog { width: 100%; max-height: calc(100dvh - var(--s-10)); border-radius: var(--r-card) var(--r-card) 0 0; border-width: var(--hair) 0 0; padding: var(--s-5) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); }
      .dialog-title { font-size: var(--fs-20); }
      .dialog-actions { flex-wrap: wrap; }
      .dialog-actions > .btn { flex: 1 1 auto; }
      .dialog-wide { height: 100dvh; max-height: none; border-radius: 0; border: 0; padding: 0; overflow: auto; }
      .dialog-wide .dialog-head { position: sticky; top: 0; z-index: 1; padding: var(--s-4) var(--s-4) var(--s-2); background: var(--overlay); }
      .dialog-wide .ex-source { padding: 0 var(--s-4); }
      .dialog-wide .ex-plan { margin: var(--s-4) var(--s-4) 0; }
      .dialog-wide .ex-cols { margin: var(--a18) var(--s-4) 0; }
      .dialog-wide .ex-groups { max-height: none; overflow: visible; }
      .dialog-wide > form { padding: var(--s-3) var(--s-4) 0; }
      .dialog-wide > form > .dialog-actions { position: sticky; bottom: 0; margin: 0 calc(-1 * var(--s-4)); padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); border-top: var(--hair) solid var(--line); background: var(--overlay); }
      .dialog-wide .ex-foot { position: sticky; bottom: 0; margin-top: auto; padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom)); }
      .ex-foot > .grow { flex-basis: 100%; height: 0; }
      .ex-foot > .btn { flex: 1 1 auto; }
      .menu { position: fixed; inset: auto 0 0; z-index: var(--z-dialog); width: auto; min-width: 0; max-width: none; max-height: 85dvh; border-radius: var(--r-card) var(--r-card) 0 0; border-width: var(--hair) 0 0; padding: var(--s-2) var(--s-2) calc(var(--s-3) + env(safe-area-inset-bottom)); }
      .menu.menu-pad { padding: var(--s-4) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); }
      .menu :is(.menu-item, .menu-check) { min-height: var(--touch-min); font-size: var(--fs-body); }
      .drop:has(> .menu)::before { content: ""; position: fixed; inset: 0; z-index: var(--z-dialog); background: var(--scrim); }
      /* A size container is the containing block of a fixed box, so the sheets need none above them: the company
         view and the Discover head stop being containers here, and the company view's narrow rules come in by width. */
      .cv, .disc-head { container-type: normal; }
      .cv-copy-tail { display: none; }
      .cv-tabs { gap: var(--s-4); overflow-x: auto; overflow-y: hidden; }
      .tech-row { grid-template-columns: minmax(0, 1fr); }
      .tech-row-k { padding-top: 0; }
      .tech-row > .tech-detail { grid-column: 1; }
      .refine, .filters-dock { width: 100vw; }
    }
  }
}

/* account.css */
/* Account layer (D-560): Settings (profile, preferences, email, billing, API and MCP, webhooks, account) and the ICP
   page. Tokens only. Forward language of the R5 feed: a section is a title and one line of context on the left and
   one card on the right; rows split by hairlines; status is a dot plus its word; amber only for a fact that needs
   action; danger red only inside confirm dialogs; one ink primary per view. No left-border accents, no gradients. */
@layer account {
  .acct { gap: var(--s-6); }
  .acct-head { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
  .acct-tabs { overflow-x: auto; scrollbar-width: none; }
  .acct-tabs .tab { white-space: nowrap; }
  .acct-body { min-width: 0; }
  .acct-stack { display: grid; gap: var(--s-8); }

  /* Section (D-647): a company-view card, the head an icon tile and the title, the context line under it, then the
     rows. A flush section lets its table run edge to edge under a hairline. */
  .acct-sec { min-width: 0; }
  .acct-sec-sub { max-width: 72ch; }
  .acct-card { display: grid; gap: var(--s-4); min-width: 0; }
  .acct-card-flush { padding: 0; gap: 0; overflow: hidden; }
  .acct-sec > .acct-card { margin-top: var(--s-5); }
  .acct-sec > .acct-card-flush { margin: var(--s-4) calc(-1 * var(--a22)) calc(-1 * var(--s-5)); border-top: var(--hair) solid var(--line); border-radius: 0 0 var(--r-card) var(--r-card); }
  .acct-pad { padding: var(--card-pad); margin: 0; }
  .acct-sec .acct-pad { padding: var(--s-5) var(--a22); }

  /* Page head (D-637): title, one line of context, who and which plan on the right */
  .acct-head { align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
  .acct-head-text { display: grid; gap: var(--s-1); min-width: 0; }
  .acct-head-text .t-secondary { margin: 0; color: var(--muted); }
  .acct-who { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--text2); font-size: var(--fs-secondary); min-width: 0; }
  .acct-who .chip { flex: none; }
  .acct-who-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Fields (D-637): label row with Optional and a counter near the limit; error replaces the hint */
  .acct-field { gap: var(--a6); }
  .acct-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
  .acct-optional { margin-left: var(--s-2); font-weight: 400; font-size: var(--fs-meta); color: var(--muted); }
  .acct-count { font-family: var(--font-mono); font-size: var(--fs-chip); color: var(--muted); font-variant-numeric: tabular-nums; }
  .acct-count.is-over { color: var(--danger); }
  .acct .acct-form .input { height: var(--s-10); }
  .acct .acct-form .acct-textarea { height: auto; padding-top: var(--a10); padding-bottom: var(--a10); }
  .acct .input:hover:not([readonly]) { border-color: var(--muted); }
  .acct .input:focus-visible { outline: none; border-color: var(--text); box-shadow: 0 0 0 var(--a3) color-mix(in srgb, var(--text) 12%, transparent); }
  .acct .input[aria-invalid="true"] { border-color: var(--danger); }
  .acct .input[aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 var(--a3) color-mix(in srgb, var(--danger) 16%, transparent); }
  .acct .acct-err { display: flex; align-items: flex-start; gap: var(--a6); }
  .acct .acct-err svg { flex: none; margin-top: var(--a1); }

  /* Save bar: only while there is something to save */
  .acct-savebar { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin: 0 calc(-1 * var(--a22)) calc(-1 * var(--s-5)); padding: var(--s-3) var(--a22); border-top: var(--hair) solid var(--line); background: var(--raised); border-radius: 0 0 var(--r-card) var(--r-card); }

  /* Disclosure ("How a company counts") */
  .acct-details { border-top: var(--hair) solid var(--line); padding-top: var(--s-3); }
  .acct-details > summary { display: inline-flex; align-items: center; gap: var(--s-2); cursor: pointer; list-style: none; font-size: var(--fs-secondary); font-weight: 600; color: var(--text2); }
  .acct-details > summary::-webkit-details-marker { display: none; }
  .acct-details > summary svg { transition: transform var(--dur-fast) var(--ease); }
  .acct-details[open] > summary svg { transform: rotate(45deg); }
  .acct-details > summary:hover { color: var(--text); }
  .acct-details > .acct-ledger { margin-top: var(--s-2); }

  /* Shell (D-638): a vertical section menu on the left, the chosen section on the right. Sections inside stack their
     title above the card (the left column is the menu now). A phone gets the menu as a scrolling row. */
  .acct-shell { gap: var(--s-6); }
  .acct-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
  .acct-layout { display: grid; grid-template-columns: var(--settings-nav-w) minmax(0, 1fr); gap: var(--s-10); align-items: start; }
  .acct-nav { position: sticky; top: var(--s-6); display: grid; gap: var(--s-6); }
  .acct-nav-list { display: grid; gap: var(--s-5); }
  .acct-nav-group { display: grid; gap: var(--a2); }
  .acct-nav-k { padding: 0 var(--s-3) var(--s-1); font-size: var(--fs-chip); font-weight: 600; color: var(--muted); }
  .acct-nav-item { display: flex; align-items: center; gap: var(--a10); height: var(--a36); padding: 0 var(--s-3); border-radius: var(--r-btn); color: var(--text2); text-decoration: none; font-size: var(--fs-body); font-weight: 500; white-space: nowrap; }
  .acct-nav-item svg { flex: none; color: var(--muted); }
  .acct-nav-item:hover { background: var(--raised); color: var(--text); }
  .acct-nav-item[aria-selected="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-card), inset 0 0 0 var(--hair) var(--line); }
  .acct-nav-item[aria-selected="true"] svg { color: var(--text); }
  .acct-nav-badge { margin-left: auto; display: inline-flex; align-items: center; height: var(--s-5); padding: 0 var(--a7); border-radius: var(--r-chip); background: var(--text); color: var(--on-ink); font-size: var(--fs-115); font-weight: 600; }
  .acct-plancard { display: grid; overflow: hidden; border-radius: var(--r-inset); border: var(--hair) solid var(--line); background: var(--surface); }
  .acct-plancard-main, .acct-plancard-up { display: grid; gap: var(--s-2); padding: var(--s-3); border: 0; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
  .acct-plancard-main:hover, .acct-plancard-up:hover { background: var(--raised); }
  .acct-plancard-main b { font-size: var(--fs-secondary); }
  .acct-plancard-up { grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-top: var(--hair) solid var(--line); }
  .acct-plancard-up > span { display: grid; gap: var(--a2); font-size: var(--fs-secondary); }
  .quota-track.is-near .quota-fill { background: var(--hl); }
  .acct-body { display: grid; gap: var(--s-6); align-content: start; }
  .acct-body-head { display: grid; gap: var(--s-1); }
  .acct-body-head .t-secondary { margin: 0; color: var(--muted); max-width: 64ch; }
  .acct-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-title); font-weight: 700; letter-spacing: -0.01em; }
  .acct-shell .acct-stack { gap: var(--s-4); }

  /* Plan hero: name and status left, price and date right, then the founding line and the actions */
  .acct-hero { display: grid; gap: var(--s-4); padding: var(--s-6); }
  .acct-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
  .acct-hero-id { display: grid; gap: var(--s-1); min-width: 0; }
  .acct-hero-id .t-secondary { margin: 0; }
  .acct-hero-name { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
  .acct-hero-price { display: grid; gap: var(--s-1); justify-items: end; text-align: right; color: var(--text2); font-size: var(--fs-body); }
  .acct-hero-price b { font-family: var(--font-display); font-size: var(--fs-figure); font-weight: 700; color: var(--text); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
  .acct-hero-actions { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding-top: var(--s-4); border-top: var(--hair) solid var(--line); }
  .acct-hero .acct-founding b { color: var(--text); font-weight: 600; }

  /* Next step: one offer for this plan; the copy left, the price and one ink button right */
  .acct-next { display: grid; grid-template-columns: minmax(0, 1fr) var(--settings-nav-w); gap: var(--s-6); padding: var(--s-6); box-shadow: var(--shadow-card), inset 0 0 0 var(--hair) var(--line2); }
  .acct-next-text { display: grid; gap: var(--s-2); align-content: start; }
  .acct-next-text > .t-meta { font-weight: 600; color: var(--hl); }
  .acct-next-title { margin: 0; font-family: var(--font-display); font-size: var(--fs-section); font-weight: 700; line-height: var(--lh-title); }
  .acct-points.acct-next-points { border-top: 0; padding-top: var(--s-1); margin-top: var(--s-1); }
  .acct-next-cta { display: grid; gap: var(--s-2); align-content: center; justify-items: stretch; padding: var(--s-5); border-radius: var(--r-inset); background: var(--raised); text-align: center; }
  .acct-next-cta .link { justify-self: center; }
  .acct-next-price { margin: 0; color: var(--text2); }
  .acct-next-price b { font-family: var(--font-display); font-size: var(--fs-figure-card); font-weight: 700; color: var(--text); }
  .acct-next-slim { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .acct-next-slim .acct-next-cta { background: none; padding: 0; }

  /* Usage: the number first, the bar, the pace, then the channels as tiles */
  .acct-usage { display: grid; gap: var(--s-3); }
  .acct-usage-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
  .acct-usage-n { display: flex; align-items: baseline; gap: var(--s-2); margin: 0; color: var(--text2); }
  .acct-usage-n b { font-family: var(--font-display); font-size: var(--fs-figure); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
  .acct-usage-track { height: var(--s-2); }
  .acct-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
  .acct-tiles li { display: grid; gap: var(--s-1); padding: var(--s-3); border-radius: var(--r-inset); background: var(--raised); }
  .acct-tiles b { font-family: var(--font-display); font-size: var(--fs-section); font-weight: 700; font-variant-numeric: tabular-nums; }

  /* Plans page */
  .acct-plans-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
  .acct-shell .acct-plans { padding: 0; align-items: stretch; }
  .acct-shell .acct-plan-card { padding: var(--s-6); border-radius: var(--r-card); box-shadow: var(--shadow-card); gap: var(--s-2); }
  .acct-shell .acct-plan-card.is-pick { border-color: var(--text); box-shadow: var(--shadow-pop), inset 0 0 0 var(--hair) var(--text); }
  .acct-shell .acct-plan-card.is-current { border-color: var(--line2); box-shadow: var(--shadow-card); background: var(--raised); }
  .acct-shell .acct-plan-card > .row-line { flex-wrap: nowrap; }
  .acct-shell .acct-plan-card .chip { flex: none; }
  .acct-plan-who { min-height: calc(var(--s-10)); margin: 0; }
  .acct-price-sub { margin: 0; }
  .acct-plan-card > .btn, .acct-plan-card > .acct-plan-cta { justify-self: stretch; margin-top: var(--s-3); }
  .acct-plan-cta[aria-disabled="true"] { cursor: default; opacity: 1; color: var(--muted); }
  .chip.chip-ink { background: var(--text); color: var(--on-ink); }
  .acct-compare th[scope="row"] { width: 30%; font-weight: 500; color: var(--text2); background: none; white-space: normal; }
  .acct-compare thead th { font-size: var(--fs-secondary); font-weight: 600; color: var(--text); }
  .acct-compare td { white-space: normal; }
  .acct-compare td.is-pick, .acct-compare th.is-pick { background: var(--raised); }
  .acct-compare td svg { color: var(--ok-dot); }
  .acct-dash { color: var(--line2); }
  .acct-faq { display: grid; padding: 0 var(--card-pad); }
  .acct-faq-item { padding: var(--s-4) 0; }
  .acct-faq-item:first-child { border-top: 0; }
  .acct-faq-item > p { margin: var(--s-2) 0 0 var(--s-6); }

  /* Rows */
  .acct-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
  .acct-row + .acct-row, .acct-card > .acct-row-block { padding-top: var(--s-4); border-top: var(--hair) solid var(--line); }
  .acct-row-block { display: grid; gap: var(--s-3); justify-content: stretch; }
  .acct-row-label { display: grid; gap: var(--hair); flex: 1; min-width: 0; }
  .acct-row-control { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); flex-wrap: wrap; flex: none; max-width: 60%; }
  .acct-label { font-size: var(--fs-body); font-weight: 600; color: var(--text); }

  /* Forms */
  .acct-form { display: grid; gap: var(--s-4); }
  .acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .acct-span { grid-column: 1 / -1; }
  .acct .field { align-content: start; }
  .acct-form .input, .acct-grid .input { width: 100%; }
  .acct .input[readonly] { background: var(--raised); color: var(--text2); }
  .acct-textarea { height: auto; min-height: var(--textarea-h); padding: var(--s-2) var(--s-3); resize: vertical; font: inherit; font-size: var(--fs-body); line-height: var(--lh-body); }
  .acct-select { width: var(--rail-w); max-width: 100%; }
  .acct-select-sm { width: auto; }
  .acct-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
  .acct-actions-start { justify-content: flex-start; }
  .acct-err { margin: 0; color: var(--danger); font-size: var(--fs-meta); font-weight: 500; }
  .acct-fieldset, .acct-reasons, .acct-change { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
  .acct-reason { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border: var(--hair) solid var(--line); border-radius: var(--r-inset); font-size: var(--fs-secondary); cursor: pointer; }
  .acct-reason:hover { background: var(--raised); }
  .acct-reason.is-on { border-color: var(--text); background: var(--raised); }
  .acct-reason input { margin: 0; accent-color: var(--text); }
  .acct-block { display: block; }
  .acct-nowrap { flex-wrap: nowrap; }
  .acct .link.acct-quiet { color: var(--muted); font-size: var(--fs-meta); justify-self: start; }
  .acct .link.acct-quiet:hover { color: var(--text); }

  /* Switch: a checkbox, ink when on */
  .acct-switch { position: relative; display: inline-block; flex: none; width: var(--s-10); height: var(--s-6); }
  .acct-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
  .acct-switch span { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--line2); transition: background var(--dur-fast) var(--ease); }
  .acct-switch span::after { content: ""; position: absolute; top: var(--s-1); left: var(--s-1); width: var(--s-4); height: var(--s-4); border-radius: var(--r-round); background: var(--surface); box-shadow: var(--shadow-card); transition: transform var(--dur-fast) var(--ease); }
  .acct-switch input:checked + span { background: var(--text); }
  .acct-switch input:checked + span::after { transform: translateX(var(--s-4)); background: var(--on-ink); }
  .acct-switch input:focus-visible + span { outline: var(--focus-w) solid var(--text); outline-offset: var(--focus-offset); }

  /* Status: dot + word */
  .acct-status { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-secondary); font-weight: 500; color: var(--text2); white-space: nowrap; }
  .acct-status i { width: var(--dot); height: var(--dot); border-radius: var(--r-round); background: var(--line2); flex: none; }
  .acct-status-ok i { background: var(--ok-dot); }
  .acct-status-info i { background: var(--hire-dot); }
  .acct-status-warn { color: var(--hl); }
  .acct-status-warn i { background: var(--hl); }
  .acct-status-off { color: var(--muted); }

  /* Upsell: what, which plan, one way there */
  /* Upgrade offers use the shared brand-red band (components.css .upsell): never a grey box. */
  .acct-upsell { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-12); background: var(--up-bg); color: var(--up-tx); }
  .acct-upsell-icon { display: grid; place-items: center; width: var(--s-10); height: var(--s-10); flex: none; border-radius: var(--r-btn); background: var(--up-ico); color: var(--up-on); }
  .acct-upsell-text { display: grid; gap: var(--s-1); flex: 1; min-width: 0; }
  .acct-upsell .t-section { color: var(--up-tx); }
  .acct-upsell .t-secondary { color: var(--up-tx2); }
  .acct-upsell .btn { background: var(--up-btn); color: var(--up-on); border-color: transparent; }
  .acct-upsell .btn:hover { background: var(--up-btnhov); }

  /* Copy field and code */
  .acct-copy { display: flex; align-items: center; gap: var(--s-1); min-width: 0; height: var(--control-h); padding-left: var(--s-3); border-radius: var(--r-input); background: var(--raised); }
  .acct-copy-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--text); user-select: all; }
  .acct-row-control .acct-copy { width: var(--split-list-w); max-width: 100%; }
  .acct-code { margin: 0; padding: var(--s-4); border-radius: var(--r-inset); background: var(--sunken); border: var(--hair) solid var(--line); overflow-x: auto; font-family: var(--font-mono); font-size: var(--fs-meta); line-height: var(--lh-sub); color: var(--text); white-space: pre; }
  .acct-code-inline { font-family: var(--font-mono); font-size: var(--fs-meta); padding: var(--hair) var(--s-2); border-radius: var(--r-chip); background: var(--raised); overflow-wrap: anywhere; }
  .acct-clients { justify-self: start; flex-wrap: wrap; }
  .acct-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--fs-secondary); color: var(--text2); }
  .acct-steps li { display: flex; align-items: baseline; gap: var(--s-3); }
  .acct-step-n { display: inline-grid; place-items: center; flex: none; width: var(--s-5); height: var(--s-5); border-radius: var(--r-round); background: var(--raised); color: var(--text); font-size: var(--fs-chip); font-weight: 600; }

  /* Facts strip (API usage) */
  .acct-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); padding-top: var(--s-4); border-top: var(--hair) solid var(--line); }
  .acct-facts > div { display: grid; gap: var(--s-1); align-content: start; }
  .acct-facts b { font-size: var(--fs-section); font-weight: 600; }

  /* Plan */
  .acct-plan { display: grid; gap: var(--s-3); }
  .acct-plan-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
  .acct-plan-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-name-standalone); line-height: var(--lh-title); }
  .acct-plan-price { color: var(--text2); font-size: var(--fs-body); }
  .acct-plan-price b { font-family: var(--font-mono); font-size: var(--fs-figure-card); font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
  .acct-founding { display: flex; align-items: flex-start; gap: var(--s-2); margin: 0; padding: var(--s-3); border-radius: var(--r-inset); background: var(--raised); color: var(--text2); font-size: var(--fs-secondary); }
  .acct-founding svg { flex: none; margin-top: var(--hair); color: var(--text); }
  .acct-trial { display: grid; gap: var(--s-2); padding: var(--s-3) 0; }
  .acct-ledger { list-style: none; margin: 0; padding: 0; display: grid; font-size: var(--fs-secondary); color: var(--text2); }
  .acct-ledger li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) 0; border-top: var(--hair) solid var(--line); }
  .acct-ledger b { font-family: var(--font-mono); color: var(--text); font-weight: 600; }
  .acct-split { margin-bottom: var(--s-4); }
  .acct-recent { margin-top: var(--s-5); display: grid; gap: var(--s-2); }
  .acct-recent a { color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .acct-recent a:hover { text-decoration: underline; }

  /* Plan cards (P7) */
  .acct-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); padding: var(--card-pad); }
  .acct-plan-card { display: grid; gap: var(--s-2); align-content: start; padding: var(--s-5); border: var(--hair) solid var(--line); border-radius: var(--r-inset); background: var(--surface); }
  .acct-plan-card.is-current { border-color: var(--text); box-shadow: inset 0 0 0 var(--hair) var(--text); }
  .acct-plan-card > .btn, .acct-plan-card > .link { justify-self: stretch; margin-top: var(--s-2); }
  .acct-plan-card > .link { justify-self: start; }
  .acct-price { display: flex; align-items: baseline; gap: var(--s-1); margin: var(--s-2) 0 0; }
  .acct-price b { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-figure); line-height: 1; letter-spacing: var(--tracking-h2); }
  .acct-points { list-style: none; margin: var(--s-2) 0 0; padding: var(--s-3) 0 0; border-top: var(--hair) solid var(--line); display: grid; gap: var(--s-2); font-size: var(--fs-secondary); color: var(--text2); }
  .acct-points li { display: flex; align-items: flex-start; gap: var(--s-2); }
  .acct-points svg { flex: none; margin-top: var(--hair); color: var(--text); }
  .acct-plans-foot { margin: 0; padding: 0 var(--card-pad) var(--card-pad); }

  /* Tables */
  .acct-table { width: 100%; border-collapse: collapse; font-size: var(--fs-secondary); }
  .acct-table th { text-align: left; font-size: var(--fs-meta); font-weight: 500; color: var(--muted); padding: var(--s-2) var(--s-4); background: var(--raised); border-bottom: var(--hair) solid var(--line); white-space: nowrap; }
  .acct-table td { padding: var(--s-3) var(--s-4); border-bottom: var(--hair) solid var(--line); vertical-align: middle; white-space: nowrap; }
  .acct-table tbody tr:last-child td { border-bottom: 0; }
  .acct-table tbody tr:hover td { background: var(--raised); }
  .acct-table .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
  .acct-table tr.is-muted td { color: var(--muted); }
  .acct-links { text-align: right; }
  .acct-links a { display: inline-flex; align-items: center; gap: var(--s-1); margin-left: var(--s-3); color: var(--text); }
  .acct-err-cell { color: var(--muted); max-width: var(--row-desc-w); overflow: hidden; text-overflow: ellipsis; }
  .acct-empty { padding: var(--s-10) var(--s-6); }
  .acct-skel { height: var(--s-24); border-radius: var(--r-card); }
  .acct-skel-lg { height: var(--s-34); border-radius: var(--r-card); }

  /* Webhook endpoints */
  .acct-hooks { list-style: none; margin: 0; padding: 0; }
  .acct-hook { display: grid; gap: var(--s-3); padding: var(--s-4) var(--card-pad); }
  .acct-hook + .acct-hook { border-top: var(--hair) solid var(--line); }
  .acct-hook-main { display: grid; gap: var(--s-2); min-width: 0; }
  .acct-hook-main p { margin: 0; }
  .acct-hook-url { font-family: var(--font-mono); font-size: var(--fs-secondary); font-weight: 600; overflow-wrap: anywhere; }
  .acct-hook-actions { display: flex; flex-wrap: wrap; gap: var(--s-1); }

  /* ICP page (D-632): the ICP in one sentence with the live fit count, strong chips, an amber suggestions card, the
     "your own words" box, and step by step. Chips are filled and set in 600 so the profile reads at a glance. */
  .icp-page .icp-dim { gap: var(--s-3); }
  .icp-dim-head { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
  .icp-dim-head .t-meta { flex: 1; min-width: 0; }
  .icp-dim-icon { display: grid; place-items: center; width: var(--s-8); height: var(--s-8); flex: none; border-radius: var(--r-btn); background: var(--raised); color: var(--text); }
  .icp-count { font-family: var(--font-mono); font-size: var(--fs-chip); color: var(--muted); }
  .icp-weight { display: flex; align-items: center; gap: var(--s-2); }
  .icp-checks { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .icp-checks-big .icp-pill { height: var(--s-10); padding: 0 var(--s-4); font-size: var(--fs-body); }
  .icp-pill[aria-pressed="true"] { background: var(--text); color: var(--on-ink); border-color: var(--text); font-weight: 600; }
  .icp-savebar { position: sticky; bottom: 0; z-index: var(--z-sticky); display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-card); background: var(--overlay); box-shadow: var(--shadow-pop); }

  .icp-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .icp-chip { display: inline-flex; align-items: center; gap: var(--a6); height: var(--s-8); padding: 0 var(--s-2) 0 var(--s-3); border-radius: var(--r-btn); background: color-mix(in srgb, var(--text) 8%, var(--surface)); color: var(--text); font-size: var(--fs-body); white-space: nowrap; }
  .icp-chip b { font-weight: 600; }
  .icp-chip-n { font-family: var(--font-mono); font-size: var(--fs-chip); color: var(--muted); }
  .icp-chip-x { display: inline-flex; border: 0; background: none; padding: var(--a2); border-radius: var(--a6); color: var(--muted); cursor: pointer; }
  .icp-chip-x:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
  .icp-chip-add { background: color-mix(in srgb, var(--fit-top) var(--tint), var(--surface)); color: var(--fit-top); padding-right: var(--s-3); }
  .icp-chip-remove { background: var(--raised); color: var(--muted); padding-right: var(--s-3); }
  .icp-chip-remove b { text-decoration: line-through; font-weight: 500; }
  .icp-pick { position: relative; display: grid; gap: var(--s-3); }
  .icp-search { height: var(--s-10); }
  .icp-pick-list { position: absolute; top: calc(100% + var(--s-1)); left: 0; right: 0; z-index: var(--z-drawer); }
  .icp-pick-list button { display: flex; align-items: baseline; gap: var(--s-2); }

  .icp-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
  .icp-hero-text { display: grid; gap: var(--s-1); }
  .icp-hero-line { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-title); font-weight: 600; color: var(--text); }
  .icp-fit { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-inset); background: var(--raised); }
  .icp-fit-n { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
  .icp-fit-n b { font-size: var(--fs-figure-card); font-weight: 600; color: var(--text); }
  .icp-fit-top { display: grid; gap: var(--s-1); }
  .icp-fit-top li { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
  .icp-fit-top .ell { flex: 1; min-width: 0; }

  .icp-suggest { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-card); background: var(--hl-bg); }
  .icp-suggest-head { display: flex; align-items: center; gap: var(--s-3); }
  .icp-suggest-icon { display: grid; place-items: center; width: var(--s-10); height: var(--s-10); flex: none; border-radius: var(--r-btn); background: var(--surface); color: var(--hl); }
  .icp-new { display: inline-flex; align-items: center; height: var(--s-5); margin-left: var(--s-2); padding: 0 var(--a7); border-radius: var(--a6); background: var(--hl); color: var(--hl-bg); font-size: var(--fs-115); font-weight: 600; vertical-align: middle; }
  .icp-suggest-list { display: flex; flex-wrap: wrap; gap: var(--s-2); }
  .icp-sg { display: inline-flex; align-items: center; border-radius: var(--r-btn); background: var(--surface); box-shadow: var(--shadow-card); }
  .icp-sg.is-new { box-shadow: inset 0 0 0 var(--hair) var(--hl), var(--shadow-card); }
  .icp-sg-add { display: inline-flex; align-items: center; gap: var(--a6); height: var(--s-8); padding: 0 var(--s-2) 0 var(--s-3); border: 0; background: none; color: var(--text); font-size: var(--fs-body); cursor: pointer; border-radius: var(--r-btn); }
  .icp-sg-add b { font-weight: 600; }
  .icp-sg-add:hover { background: var(--raised); }
  .icp-sg-x { display: inline-flex; border: 0; background: none; padding: var(--s-2); color: var(--muted); cursor: pointer; border-radius: var(--r-btn); }
  .icp-sg-x:hover { color: var(--text); }

  .icp-ask { display: grid; gap: var(--s-3); }
  .icp-ask.ob-ask { margin-top: var(--s-6); }
  .icp-ask-title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-section); font-weight: 600; color: var(--text); }
  .icp-ask-input { width: 100%; resize: vertical; padding: var(--s-3) var(--s-4); border-radius: var(--r-inset); border: var(--hair) solid var(--line2); background: var(--surface); color: var(--text); font: inherit; font-size: var(--fs-prose); line-height: var(--lh-prose); box-shadow: var(--shadow-card); }
  .icp-ask-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 var(--a3) color-mix(in srgb, var(--text) 12%, transparent); }
  .icp-ask.is-busy .icp-ask-input { opacity: 0.6; }
  .icp-ask-foot { display: flex; align-items: center; gap: var(--s-3); justify-content: space-between; flex-wrap: wrap; }
  .icp-review { display: grid; gap: var(--s-4); box-shadow: none; padding: 0; background: none; }
  .icp-review-head { display: grid; gap: var(--s-1); }
  .icp-review-row { display: grid; grid-template-columns: calc(var(--s-10) * 4) minmax(0, 1fr); gap: var(--s-3); padding-top: var(--s-3); border-top: var(--hair) solid var(--line); }
  .icp-review-k { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: var(--fs-secondary); color: var(--text2); }
  .icp-review-vals { display: grid; gap: var(--s-2); }
  .icp-review-vals li { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
  .icp-review-foot { display: flex; justify-content: flex-end; gap: var(--s-2); }

  .icp-start { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-4); align-items: stretch; }
  .icp-start-ai { display: grid; gap: var(--s-3); }
  .icp-start-manual { display: grid; gap: var(--s-2); align-content: start; justify-items: start; }
  .icp-start-icon { display: grid; place-items: center; width: var(--s-10); height: var(--s-10); border-radius: var(--r-btn); background: var(--raised); color: var(--text); }

  /* Auto-detect: the first thing on an empty ICP page. A raised card with an ink tile and the one ink button. */
  .icp-auto { display: grid; gap: var(--s-4); padding: var(--s-6); background: var(--surface); box-shadow: var(--shadow-lift); border: var(--hair) solid var(--line2); }
  .icp-auto-main { display: grid; gap: var(--s-4); max-width: calc(var(--feed-w) + var(--s-24)); }
  .icp-auto-k { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-secondary); font-weight: 600; color: var(--text2); }
  .icp-auto-tile { display: grid; place-items: center; width: var(--s-8); height: var(--s-8); border-radius: var(--r-btn); background: color-mix(in srgb, var(--fit-top) var(--tint-strong), var(--surface)); color: var(--fit-top); }
  .icp-auto-title { font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-title); font-weight: 600; color: var(--text); }
  .icp-auto-known { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-inset); background: var(--raised); }
  .icp-auto-site { margin-left: var(--s-2); font-weight: 400; }
  .icp-auto-form { display: grid; gap: var(--s-2); }
  .icp-auto-form textarea { height: auto; padding: var(--a10) var(--s-3); line-height: var(--lh-body); font-family: inherit; resize: vertical; }
  .icp-auto-foot { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
  .icp-auto-go { gap: var(--s-2); padding: 0 var(--s-6); }
  .icp-auto-review { box-shadow: var(--shadow-raise); }
  .icp-or { padding-top: var(--s-2); font-weight: 600; }


  @media (max-width: 64em) {
    .acct-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
    .acct-nav { position: static; }
    /* Every section in sight on a tablet too: the strip wraps instead of scrolling the last sections out of view. */
    .acct-nav-list { display: flex; flex-wrap: wrap; gap: var(--s-1); border-bottom: var(--hair) solid var(--line); padding-bottom: var(--s-2); }
    .acct-nav-group { display: contents; }
    .acct-nav-k, .acct-plancard { display: none; }
    .acct-nav-item { flex: none; }
    .acct-plans { grid-template-columns: minmax(0, 1fr); }
    .icp-hero, .icp-start { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 48em) {
    .acct-stack { gap: var(--s-4); }
    .acct-grid, .acct-facts { grid-template-columns: minmax(0, 1fr); }
    .acct-row { flex-direction: column; align-items: stretch; gap: var(--s-3); }
    .acct-row-control { justify-content: flex-start; max-width: none; }
    .acct-row-control .acct-copy { width: 100%; }
    .acct-head { align-items: flex-start; flex-direction: column; }
    .acct-next, .acct-next-slim { grid-template-columns: minmax(0, 1fr); }
    .acct-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acct-hero-price { justify-items: start; text-align: left; }
    .acct-savebar > .t-meta { flex-basis: 100%; }
    .acct-upsell { flex-direction: column; align-items: flex-start; }
    .icp-review-row { grid-template-columns: minmax(0, 1fr); }
    .icp-suggest-head { flex-wrap: wrap; }
    .acct-table th, .acct-table td { padding-left: var(--s-3); padding-right: var(--s-3); }
    /* Every section in sight on a phone: a two-column grid instead of a sideways strip that cut the last tab to its
       icon. */
    .acct-nav-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
    .acct-nav-item { min-width: 0; height: auto; min-height: var(--touch-min); white-space: normal; line-height: var(--lh-title); }
  }
}

/* icp-wizard.css */
/* ICP step by step (src/app/screens/icp.tsx, ?section=step-N; D-646). Its own file so the account layer stays free
   for other work. A clickable stepper with each answer, one question per card with one-click choices, and the ICP so
   far with the live fit count. Tokens only; no gradients, glow or side stripes. */
@layer account {
  .icp-wizard { gap: var(--s-5); }

  /* Stepper: number dot, label, and what was answered. Done = ink dot with a check, now = raised pill. */
  .wiz-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-2); }
  .wiz-step { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-width: 0; padding: var(--s-2) var(--s-3); border: var(--hair) solid transparent; border-radius: var(--r-inset); background: none; color: var(--text2); font: inherit; text-align: left; cursor: pointer; transition: background var(--dur-fast) var(--ease); }
  .wiz-step:hover { background: var(--raised); }
  .wiz-step-dot { display: grid; place-items: center; flex: none; width: var(--s-6); height: var(--s-6); border-radius: var(--r-pill); border: var(--hair) solid var(--line2); background: var(--surface); font-family: var(--font-mono); font-size: var(--fs-chip); font-weight: 600; color: var(--muted); }
  .wiz-step-text { display: grid; min-width: 0; }
  .wiz-step-k { font-size: var(--fs-13); font-weight: 600; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wiz-step-v { min-height: var(--s-4); font-size: var(--fs-chip); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .wiz-step.is-todo .wiz-step-k { color: var(--text2); font-weight: 500; }
  .wiz-step.is-skipped .wiz-step-k { color: var(--muted); font-weight: 500; }
  .wiz-step.is-skipped .wiz-step-dot { border-style: dashed; background: none; }
  .wiz-step.is-now { background: var(--surface); border-color: var(--line2); color: var(--text); box-shadow: var(--shadow-raise); }
  .wiz-step.is-now .wiz-step-dot { background: var(--text); border-color: var(--text); color: var(--on-ink); }
  .wiz-step.is-done { color: var(--text); }
  .wiz-step.is-done .wiz-step-dot { background: color-mix(in srgb, var(--fit-top) var(--tint), var(--surface)); border-color: transparent; color: var(--fit-top); }
  .wiz-step.is-done .wiz-step-v { color: var(--text2); }

  .wiz-main { display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--rail-w) + var(--s-5)); gap: var(--s-5); align-items: start; }

  /* The question */
  .wiz-card { display: grid; gap: var(--s-6); padding: var(--s-8); box-shadow: var(--shadow-raise); }
  .wiz-card-head { display: flex; align-items: flex-start; gap: var(--s-4); }
  /* Neutral tile like every other section head: ink stays for "Next", the one primary of the view. */
  .wiz-tile { display: grid; place-items: center; flex: none; width: var(--s-10); height: var(--s-10); border-radius: var(--r-btn); background: var(--raised); color: var(--text2); }
  .wiz-q { margin-bottom: var(--s-1); font-family: var(--font-display); font-size: var(--fs-h3); line-height: var(--lh-title); font-weight: 600; color: var(--text); }
  .wiz-count { flex: none; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); background: var(--raised); font-family: var(--font-mono); font-size: var(--fs-chip); font-weight: 600; color: var(--text2); white-space: nowrap; }
  .wiz-body { display: grid; gap: var(--s-3); }
  .wiz-sub { font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
  .wiz-sub + .icp-checks, .wiz-sub + .icp-pick { margin-bottom: var(--s-2); }
  .wiz-body .icp-pill { background: var(--surface); }
  .wiz-body .icp-pill:hover { background: var(--raised); }
  .wiz-body .icp-pill[aria-pressed="true"], .wiz-body .icp-pill[aria-pressed="true"]:hover { background: var(--text); color: var(--on-ink); border-color: var(--text); }
  .wiz-foot { display: flex; align-items: center; gap: var(--s-3); padding-top: var(--s-5); border-top: var(--hair) solid var(--line); }
  .wiz-next { height: var(--s-10); padding: 0 var(--s-5); font-size: var(--fs-body); }

  /* Beside it: the sentence and the live count */
  .wiz-side { position: sticky; top: var(--s-6); display: grid; gap: var(--s-3); }
  .wiz-sofar { display: grid; gap: var(--s-2); padding: var(--s-5); }
  .wiz-fit { display: grid; gap: var(--s-2); margin-top: var(--s-3); padding-top: var(--s-4); border-top: var(--hair) solid var(--line); }
  /* The reward of the wizard: a big mono figure that shrinks as the answers sharpen. */
  .wiz-fig { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
  .wiz-fig b { font-family: var(--font-mono); font-size: var(--fs-figure); font-weight: 600; line-height: 1; color: var(--text); }
  .wiz-fig.is-loading { min-height: var(--fs-figure); }
  .wiz-leave { gap: var(--s-2); }
  .icp-wizard .app-head { flex-wrap: nowrap; }
  .icp-wizard .acct-head { min-width: 0; }
  .wiz-side-k { font-size: var(--fs-13); font-weight: 600; color: var(--muted); }
  .wiz-sentence { font-family: var(--font-display); font-size: var(--fs-sub); line-height: var(--lh-section); font-weight: 600; color: var(--text); }
  .wiz-sentence.is-empty { font-family: var(--font-ui); font-size: var(--fs-secondary); font-weight: 400; color: var(--text2); line-height: var(--lh-body); }

  /* The stepper stays one row at every width: the answer line goes first, then the labels (numbers only). */
  @media (max-width: 72em) {
    .wiz-steps { display: flex; justify-content: space-between; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
    .wiz-step { width: auto; padding: var(--s-2); }
    .wiz-step-v { display: none; }
    .wiz-step-k { overflow: visible; }
  }
  @media (max-width: 75em) {
    .wiz-main { grid-template-columns: minmax(0, 1fr); }
    .wiz-side { position: static; }
  }
  @media (max-width: 48em) {
    .wiz-steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-1); overflow: visible; }
    .wiz-step { justify-content: center; padding: var(--s-2) 0; }
    .wiz-step-text { display: none; }
    .icp-wizard .acct-head { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
    .wiz-leave { width: var(--control-h); padding: 0; }
    .wiz-leave span { display: none; }
    .wiz-card { padding: var(--s-5); }
    .wiz-card-head { flex-wrap: wrap; }
    .wiz-card-head > .grow { flex-basis: calc(100% - var(--s-10) - var(--s-4)); }
    .wiz-count { margin-left: calc(var(--s-10) + var(--s-4)); }
    .wiz-foot { flex-wrap: wrap; row-gap: var(--s-2); }
    /* The main move on its own full-width row, first; Back and Skip share the row under it. */
    .wiz-next { order: -1; flex: 1 1 100%; }
  }
}

/* connect.css */
/* Connect (D-633, D-635): AI assistant, API and Webhooks. Tokens only. The owner asked this screen to stand out
   (D-635), so it carries more colour than the rest of the app, and every colour still means something: an assistant's
   brand colour names that product (--v-*), signal hues name what an answer is about, fit colours the ICP score, green
   says connected / done / paste here, amber says late or not yet. One ink primary per view; no gradients, no glow, no
   left-border accents. The chat stage and code panels use the code tokens and stay dark in both themes. */
@layer account {
  .cx { gap: var(--s-5); }
  .cx-head { display: grid; gap: var(--s-1); }
  .cx-head .t-secondary { color: var(--muted); }
  /* Three tabs split one screen into three products, so they read as section switches, not a quiet filter row:
     bigger type, taller bar, unselected in text2 rather than muted. */
  .cx-tabs { gap: var(--s-8); overflow-x: auto; scrollbar-width: none; }
  .cx-tabs .tab { white-space: nowrap; height: var(--a44); font-size: var(--fs-section); font-weight: 500; color: var(--text2); }
  .cx-tabs .tab:hover { color: var(--text); }
  .cx-tabs .tab[aria-selected="true"] { color: var(--text); font-weight: 600; }
  .cx-tab-chip { height: auto; padding: 0; margin-left: var(--s-1); background: transparent; color: var(--muted); font-weight: 500; }
  .cx-body { min-width: 0; padding-top: var(--s-2); }
  /* The app layer gives .btn-sm side padding, which squeezes an icon-only button: keep it square. */
  .cx .btn-icon { padding: 0; justify-content: center; }
  .cx .btn-icon svg, .cx .btn svg { flex: none; }
  .cx-stack { display: grid; gap: var(--s-12); min-width: 0; }

  /* Hue helpers: --hue is the meaning, --hue-bg its tint. */
  .cx .cx-hue-fund { --hue: var(--fund); }
  .cx .cx-hue-fit { --hue: var(--fit-top); }
  .cx .cx-hue-hire { --hue: var(--hire); }
  .cx .cx-hue-lead { --hue: var(--lead); }
  .cx .cx-hue-acq { --hue: var(--acq); }
  .cx .cx-hue-int { --hue: var(--int); }
  .cx .cx-hue-plain { --hue: var(--text2); }

  /* Sections */
  .cx-sec { display: grid; gap: var(--s-5); min-width: 0; scroll-margin-top: var(--s-6); }
  .cx-sec-head { display: grid; gap: var(--s-1); }
  .cx-sec-head .t-secondary { color: var(--muted); max-width: 70ch; }
  .cx-sec-head-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s-6); }
  .cx-sec-head-row > div:first-child { display: grid; gap: var(--s-1); }
  .cx-sec-head-row > .segmented button { white-space: nowrap; }

  /* Pills: dot plus words, tinted in their meaning */
  .cx-pill { display: inline-flex; align-items: center; gap: var(--s-2); height: var(--s-8); padding: 0 var(--s-3); border-radius: var(--r-pill); font-size: var(--fs-secondary); font-weight: 600; white-space: nowrap; justify-self: start; }
  .cx-pill i { width: var(--dot); height: var(--dot); border-radius: var(--r-round); background: currentColor; flex: none; }
  .cx-pill-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) var(--tint), transparent); }
  .cx-pill-info { color: var(--hire); background: color-mix(in srgb, var(--hire) var(--tint), transparent); }
  .cx-pill-warn { color: var(--hl); background: var(--hl-bg); }

  /* Hero: words left, the dark stage right */
  .cx-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; padding: var(--s-8); }
  .cx-hero-ai { padding: 0; gap: 0; align-items: stretch; overflow: hidden; }
  .cx-hero-ai > .cx-hero-text { padding: var(--s-8) var(--s-8) var(--s-8) var(--s-10); align-content: center; }
  .cx-hero-text { display: grid; gap: var(--s-4); align-content: start; justify-items: start; min-width: 0; }
  .cx-hero-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-figure); line-height: var(--lh-title); letter-spacing: var(--tracking-h2); text-wrap: balance; }
  .cx-hero-lead { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text2); max-width: 52ch; }
  .cx-hero .t-secondary { margin: 0; }
  .cx-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
  .cx-cta { gap: var(--s-2); }
  .cx-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-meta); color: var(--muted); }
  .cx-points li { display: inline-flex; align-items: center; gap: var(--s-1); }
  .cx-points svg { color: var(--ok); }
  .cx-hero-locked, .cx-hero-flow { align-items: start; }

  /* This week, in numbers the person's plan can see */
  /* The hero's figures (D-647): one panel split by hairlines, the figure in the colour of what it counts, the same
     shape as the Upgrade screen's figures, instead of three tinted tiles. */
  .cx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border-radius: var(--r-12); border: var(--hair) solid var(--line); background: var(--surface); overflow: hidden; }
  .cx-stat { --hue: var(--text); display: grid; gap: var(--a3); align-content: start; padding: var(--s-3) var(--s-4); color: var(--text); text-decoration: none; }
  .cx-stat + .cx-stat { border-left: var(--hair) solid var(--line); }
  .cx-stat b { font-family: var(--font-mono); font-size: var(--fs-figure-card); white-space: nowrap; font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--hue); font-variant-numeric: tabular-nums; }
  .cx-stat span { font-size: var(--fs-meta); color: var(--text2); }
  .cx-stat-fund { --hue: var(--fund); }
  .cx-stat-fit { --hue: var(--fit-top); }
  .cx-stat-warn { --hue: var(--hl); }
  a.cx-stat:hover { background: var(--raised); }

  /* Band: a fact that changes what the person gets, and one way to change it */
  .cx-band { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); border-radius: var(--r-card); background: var(--raised); }
  .cx-band-warn { background: var(--hl-bg); }
  .cx-band-warn .cx-band-icon { color: var(--hl); }
  .cx-band-icon { display: grid; place-items: center; width: var(--s-10); height: var(--s-10); flex: none; border-radius: var(--r-btn); background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }
  .cx-band-text { display: grid; gap: var(--s-1); flex: 1; min-width: 0; }
  .cx-band-text p { margin: 0; }

  /* Brand marks */
  .cx-mark { --v: var(--text); display: inline-grid; place-items: center; flex: none; border-radius: var(--r-btn); color: var(--v); background: color-mix(in srgb, var(--v) 12%, var(--surface)); }
  .cx-mark svg { width: 56%; height: 56%; }
  .cx-mark.is-solid { background: var(--v); color: var(--surface); }
  .cx-mark-sm { width: var(--s-6); height: var(--s-6); border-radius: var(--r-chip); }
  .cx-mark-md { width: var(--s-10); height: var(--s-10); }
  .cx-mark-lg { width: var(--s-12); height: var(--s-12); }
  .cx-mark-letter { font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 700; background: var(--raised); color: var(--text); }
  .cx .cx-v-claude { --v: var(--v-claude); }
  .cx .cx-v-chatgpt { --v: var(--v-chatgpt); }
  .cx .cx-v-grok { --v: var(--v-grok); }
  .cx .cx-v-grokbot { --v: var(--v-grokbot); }
  .cx .cx-v-perplexity { --v: var(--v-perplexity); }
  .cx .cx-v-cursor { --v: var(--v-cursor); }
  .cx .cx-v-copilot { --v: var(--v-copilot); }
  .cx .cx-v-cli { --v: var(--v-cli); }

  /* Chat on its stage */
  .cx-stage { display: grid; place-items: center; min-width: 0; padding: var(--s-6); background-color: var(--code-bg); background-image: radial-gradient(color-mix(in srgb, var(--code-text) 14%, transparent) var(--hair), transparent var(--hair)); background-size: var(--s-5) var(--s-5); }
  .cx-chat { display: grid; width: 100%; max-width: var(--u-464); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-pop); overflow: hidden; font-size: var(--fs-meta); color: var(--text2); user-select: none; }
  .cx-chat-bar { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-3) var(--s-4); border-bottom: var(--hair) solid var(--line); }
  .cx-chat-title { font-weight: 600; color: var(--text); }
  .cx-live { display: inline-flex; align-items: center; gap: var(--s-1); padding: var(--hair) var(--s-2); border-radius: var(--r-pill); color: var(--ok); background: color-mix(in srgb, var(--ok) var(--tint), transparent); font-size: var(--fs-chip); font-weight: 600; }
  .cx-live i { width: var(--s-2); height: var(--s-2); border-radius: var(--r-round); background: currentColor; }
  .cx-chat-body { display: grid; gap: var(--s-3); padding: var(--s-4); }
  .cx-bubble { justify-self: end; max-width: 88%; margin: 0; padding: var(--s-2) var(--s-3); border-radius: var(--r-12); background: var(--raised); color: var(--text); font-size: var(--fs-secondary); }
  .cx-tool { display: inline-flex; align-items: center; gap: var(--s-2); justify-self: start; margin: 0; padding: var(--s-1) var(--s-3) var(--s-1) var(--s-1); border-radius: var(--r-pill); border: var(--hair) solid var(--line); font-size: var(--fs-chip); font-weight: 600; color: var(--text); }
  .cx-tool code { font-family: var(--font-mono); font-weight: 500; color: var(--muted); }
  .cx-tool-dot { display: grid; place-items: center; width: var(--s-5); height: var(--s-5); border-radius: var(--r-round); background: var(--ok); color: var(--on-ink); }
  .cx-answer-lead { margin: 0; color: var(--text); font-size: var(--fs-secondary); }
  .cx-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
  .cx-rows li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2); border-radius: var(--r-inset); background: var(--raised); }
  .cx-row-logo { display: grid; place-items: center; flex: none; width: var(--s-8); height: var(--s-8); border-radius: var(--r-btn); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); font-family: var(--font-display); font-weight: 700; color: var(--text); }
  .cx-row-main { display: grid; gap: var(--hair); flex: 1; min-width: 0; }
  .cx-row-main b { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cx-row-meta { display: flex; align-items: center; gap: var(--s-1); color: var(--text2); white-space: nowrap; overflow: hidden; }
  .cx-row-stage { padding: 0 var(--s-1); border-radius: var(--r-chip); color: var(--fund); background: color-mix(in srgb, var(--fund) var(--tint), transparent); font-weight: 600; }
  .cx-row-why { color: var(--muted); font-size: var(--fs-chip); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cx-score { --hue: var(--fit-low); display: grid; justify-items: center; flex: none; min-width: var(--s-12); padding: var(--s-1) var(--s-2); border-radius: var(--r-btn); color: var(--hue); background: color-mix(in srgb, var(--hue) var(--tint), transparent); font-size: var(--fs-chip); font-weight: 600; }
  .cx-score b { font-family: var(--font-mono); font-size: var(--fs-section); line-height: 1.1; }
  .cx-fit-top { --hue: var(--fit-top); }
  .cx-fit-strong { --hue: var(--fit-strong); }
  .cx-fit-mod { --hue: var(--fit-mod); }
  .cx-bar { display: block; height: var(--s-2); margin: var(--s-1) 0; border-radius: var(--r-pill); background: var(--line2); }
  .cx-bar-soft { background: var(--line); }
  .cx-chat-input { display: flex; align-items: center; justify-content: space-between; margin: 0 var(--s-4) var(--s-4); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); border-radius: var(--r-12); border: var(--hair) solid var(--line2); color: var(--muted); }
  .cx-send { display: grid; place-items: center; width: var(--s-6); height: var(--s-6); border-radius: var(--r-round); background: var(--text); color: var(--on-ink); }
  .cx-chat-foot { display: flex; align-items: center; gap: var(--s-1); margin: 0; padding: var(--s-2) var(--s-4); background: var(--hl-bg); color: var(--hl); font-size: var(--fs-chip); font-weight: 500; }

  /* Setup progress */
  .cx-progress { display: grid; gap: var(--s-1); justify-items: end; }
  .cx-progress-word { font-size: var(--fs-meta); font-weight: 600; color: var(--text2); }
  .cx-progress-track { display: grid; grid-template-columns: repeat(4, var(--s-10)); gap: var(--s-1); }
  .cx-progress-track i { height: var(--s-1); border-radius: var(--r-pill); background: var(--line2); transition: background var(--dur-figure) var(--ease-move); }
  .cx-progress-track i.is-done { background: var(--ok); }

  /* Setup steps */
  .cx-steps { list-style: none; margin: 0; padding: 0; display: grid; }
  .cx-step { position: relative; display: grid; grid-template-columns: var(--s-8) minmax(0, 1fr); gap: var(--s-4); padding-bottom: var(--s-10); }
  .cx-step:last-child { padding-bottom: 0; }
  .cx-step:not(:last-child)::before { content: ""; position: absolute; left: calc(var(--s-4) - var(--hair)); top: var(--s-10); bottom: var(--s-2); width: calc(var(--hair) * 2); border-radius: var(--r-pill); background: var(--line); }
  .cx-step.is-done:not(:last-child)::before { background: var(--ok); }
  .cx-step-n { display: grid; place-items: center; width: var(--s-8); height: var(--s-8); border-radius: var(--r-round); background: var(--surface); border: var(--hair) solid var(--line2); color: var(--muted); font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 600; flex: none; }
  .is-current > .cx-step-n { background: var(--text); border-color: var(--text); color: var(--on-ink); }
  .is-done > .cx-step-n { background: var(--ok); border-color: var(--ok); color: var(--on-ink); }
  .cx-step-body { display: grid; gap: var(--s-3); min-width: 0; padding-top: var(--s-1); }
  .cx-step-body h3 { margin: 0; }
  .cx-step-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: var(--s-8); align-items: start; }
  .cx-step-grid.is-single { grid-template-columns: minmax(0, 1fr); }
  .cx-step-text { display: grid; gap: var(--s-3); align-content: start; min-width: 0; }
  .cx-step-text p { margin: 0; }
  .cx-step-aside { min-width: 0; }

  /* Assistant tiles */
  .cx-clients { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
  .cx-client { --v: var(--text); display: flex; align-items: center; gap: var(--s-3); min-width: 0; padding: var(--s-3); border: var(--hair) solid var(--line); border-radius: var(--r-12); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background var(--dur-answer) var(--ease), border-color var(--dur-answer) var(--ease), box-shadow var(--dur-answer) var(--ease); }
  .cx-client:hover { border-color: color-mix(in srgb, var(--v) 45%, var(--line)); }
  .cx-client[aria-pressed="true"] { border-color: var(--v); box-shadow: inset 0 0 0 var(--hair) var(--v); background: color-mix(in srgb, var(--v) 6%, var(--surface)); }
  /* The picked tile's mark turns solid, in the app (its `solid` prop) and on /connect (the inline picker script only flips aria-pressed). */
  .cx-client[aria-pressed="true"] .cx-mark { background: var(--v); color: var(--surface); }
  .cx-client:focus-visible { outline: var(--focus-w) solid var(--text); outline-offset: var(--focus-offset); }
  .cx-client-text { display: grid; gap: var(--hair); min-width: 0; }
  .cx-client-text b { font-size: var(--fs-secondary); font-weight: 600; }
  .cx-client-text .t-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cx-address { display: grid; gap: var(--s-1); }
  .cx-copy { display: flex; align-items: center; gap: var(--s-2); min-width: 0; padding: var(--s-1) var(--s-1) var(--s-1) var(--s-3); border-radius: var(--r-input); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--ok) 45%, transparent); }
  .cx-copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-secondary); font-weight: 600; color: var(--text); user-select: all; }
  .cx-inline-copy { display: inline-flex; align-items: center; gap: var(--hair); vertical-align: middle; }

  /* First question and the win */
  .cx-first { display: grid; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-12); background: var(--surface); box-shadow: var(--shadow-card), inset 0 0 0 var(--hair) var(--line); }
  .cx-first-q { margin: 0; font-size: var(--fs-section); line-height: var(--lh-sub); color: var(--text); font-weight: 500; }
  .cx-first-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
  .cx-first-actions .btn { gap: var(--s-2); }
  .cx-win { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-12); background: color-mix(in srgb, var(--ok) var(--tint), var(--surface)); }
  .cx-win p { margin: 0; }
  .cx-win .t-section { color: var(--ok); }
  .cx-win-icon { display: grid; place-items: center; flex: none; width: var(--s-8); height: var(--s-8); border-radius: var(--r-round); background: var(--ok); color: var(--on-ink); }

  /* Prompts: the tag carries the signal the answer is about */
  .cx-prompts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  .cx-prompt { --hue: var(--text2); display: grid; gap: var(--s-3); grid-template-rows: auto 1fr auto; padding: var(--s-5); transition: box-shadow var(--dur-answer) var(--ease); }
  .cx-prompt:hover { box-shadow: var(--shadow-card), inset 0 0 0 var(--hair) color-mix(in srgb, var(--hue) 50%, transparent); }
  .cx-prompt.is-lead { grid-column: 1 / -1; background: color-mix(in srgb, var(--hue) 5%, var(--surface)); }
  .cx-prompt.is-lead .cx-prompt-q { font-size: var(--fs-section); }
  .cx-prompt-tag { display: inline-flex; align-items: center; gap: var(--s-2); justify-self: start; height: var(--s-6); padding: 0 var(--s-2); border-radius: var(--r-chip); color: var(--hue); background: color-mix(in srgb, var(--hue) var(--tint), transparent); font-size: var(--fs-chip); font-weight: 600; }
  .cx-prompt-tag i { width: var(--s-2); height: var(--s-2); border-radius: var(--r-round); background: currentColor; }
  .cx-prompt-q { margin: 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); font-weight: 500; }
  .cx-prompt-foot { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; }
  .cx-prompt-foot a.chip { text-decoration: none; }
  .cx-prompt-foot .btn { gap: var(--s-1); }

  /* Plan table */
  .cx-plans th, .cx-plans td { white-space: normal; }
  .cx-plans td:first-child { color: var(--text2); }
  .cx-plans .is-current { background: color-mix(in srgb, var(--text) 4%, var(--surface)); color: var(--text); font-weight: 600; }
  .cx-plans th.is-current { box-shadow: inset 0 calc(var(--rule) * 1) 0 var(--text); }
  .cx-you { display: block; font-size: var(--fs-chip); font-weight: 500; color: var(--muted); }
  .cx-ok-word { color: var(--ok); font-weight: 600; display: inline-flex; }
  .cx-warn-word { color: var(--hl); font-weight: 600; }
  .cx-plans-foot { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--card-pad); border-top: var(--hair) solid var(--line); }
  .cx-plans-foot p { margin: 0; flex: 1; }

  /* Connections */
  .cx-facts-top { padding-top: 0; border-top: 0; }
  .cx-grants { list-style: none; margin: 0; padding: 0; display: grid; }
  .cx-grants li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: var(--hair) solid var(--line); }
  .cx-faq { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-8); }
  .cx-faq div { display: grid; gap: var(--s-1); }
  .cx-faq dt { font-weight: 600; color: var(--text); }
  .cx-faq dd { margin: 0; color: var(--text2); font-size: var(--fs-secondary); line-height: var(--lh-body); }

  /* Frames: an app window or a browser, with the form inside */
  .cx-frame { margin: 0; display: grid; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-pop), inset 0 0 0 var(--hair) var(--line); overflow: hidden; font-size: var(--fs-meta); user-select: none; }
  .cx-frame-bar { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-2) var(--s-3); background: var(--raised); border-bottom: var(--hair) solid var(--line); color: var(--text); }
  .cx-frame-bar > i { width: var(--s-2); height: var(--s-2); border-radius: var(--r-round); background: var(--line2); }
  .cx-frame-bar b { font-weight: 600; margin-left: var(--s-1); }
  .cx-frame-body { display: grid; gap: var(--s-3); padding: var(--s-4); }
  .cx-frame figcaption { padding: 0 var(--s-4) var(--s-3); font-size: var(--fs-chip); color: var(--muted); text-align: right; }
  .cx-url { display: inline-flex; align-items: center; gap: var(--s-1); flex: 1; margin-left: var(--s-2); padding: var(--hair) var(--s-2); border-radius: var(--r-chip); background: var(--surface); color: var(--text2); font-family: var(--font-mono); font-size: var(--fs-chip); }
  .cx-url svg { color: var(--ok); }
  .cx-form-title { margin: 0; font-weight: 600; color: var(--text); font-size: var(--fs-secondary); }
  .cx-form-field { display: grid; gap: var(--s-1); color: var(--text2); }
  .cx-form-input { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-input); border: var(--hair) solid var(--line2); background: var(--surface); color: var(--text); font-family: var(--font-mono); }
  .cx-form-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cx-form-input.is-hl { border-color: var(--ok); box-shadow: 0 0 0 var(--focus-w) color-mix(in srgb, var(--ok) 22%, transparent); }
  .cx-form-input em { flex: none; padding: 0 var(--s-1); border-radius: var(--r-chip); background: var(--ok); color: var(--on-ink); font-family: var(--font-ui); font-style: normal; font-size: var(--fs-chip); font-weight: 600; }
  .cx-form-actions { display: flex; justify-content: flex-end; gap: var(--s-2); }
  .cx-form-btn { display: inline-flex; align-items: center; height: var(--control-h-sm); padding: 0 var(--s-3); border-radius: var(--r-btn); border: var(--hair) solid var(--line2); color: var(--text); font-weight: 500; }
  .cx-form-btn.is-ink { background: var(--text); border-color: var(--text); color: var(--on-ink); }
  .cx-consent { justify-items: start; gap: var(--s-2); padding: var(--s-5); }
  .cx-consent-logo { display: block; height: var(--s-5); color: var(--text); }
  .cx-consent-logo .wordmark { height: 100%; width: auto; }
  .cx-consent-title { margin: var(--s-1) 0 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-section); color: var(--text); }
  .cx-consent-line { margin: 0; color: var(--text2); }
  .cx-consent-actions { justify-content: flex-start; margin-top: var(--s-1); }

  /* Terminal and code: dark in both themes, highlighted */
  .cx-term, .cx-code { margin: 0; border-radius: var(--r-12); background: var(--code-bg); color: var(--code-text); font-family: var(--font-mono); font-size: var(--fs-meta); line-height: var(--lh-sub); }
  .cx-term.cx-term-file { gap: 0; }
  .cx-term { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4) var(--s-4); overflow-x: auto; user-select: none; box-shadow: var(--shadow-pop); }
  .cx-term p { margin: 0; white-space: pre; }
  .cx-term-bar { display: flex; align-items: center; gap: var(--s-1); padding-bottom: var(--s-1); color: var(--code-dim); font-family: var(--font-ui); font-size: var(--fs-chip); }
  .cx-term-bar > i { width: var(--s-2); height: var(--s-2); border-radius: var(--r-round); background: var(--code-line); }
  .cx-term-prompt { color: var(--code-dim); }
  .cx-term-ok { display: flex; align-items: center; gap: var(--s-1); color: var(--code-green); }
  .cx-code { padding: var(--s-4) var(--s-5); overflow-x: auto; white-space: pre; }
  .cx-hero .cx-code { white-space: pre-wrap; overflow-wrap: anywhere; }
  .cx-code-tall { max-height: var(--u-464); overflow: auto; }
  .cx-c-key { color: var(--code-key); }
  .cx-c-str { color: var(--code-green); }
  .cx-c-num { color: var(--code-num); }
  .cx-c-dim { color: var(--code-dim); font-style: italic; }
  .cx-code-card { display: grid; gap: var(--s-3); padding: var(--s-4); }

  /* API */
  .cx-uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .cx-uses li { --hue: var(--text); display: grid; gap: var(--s-2); align-content: start; }
  .cx-uses p { margin: 0; }
  .cx-use-icon { display: grid; place-items: center; width: var(--s-10); height: var(--s-10); border-radius: var(--r-btn); color: var(--hue); background: color-mix(in srgb, var(--hue) var(--tint), transparent); }
  .cx-adds { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-6); align-items: end; }
  .cx-adds .acct-points { margin: 0; padding: 0; border: 0; }
  .cx-adds .acct-points svg { color: var(--ok); }
  .cx-qs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .cx-qs li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-inset); background: var(--raised); }
  .cx-qs li.is-done { background: color-mix(in srgb, var(--ok) var(--tint), var(--surface)); }
  .cx-qs li.is-done > .cx-step-n { background: var(--ok); border-color: var(--ok); color: var(--on-ink); }
  .cx-qs li > div { display: grid; gap: var(--s-1); justify-items: start; }
  .cx-qs p { margin: 0; }
  .cx-chart { display: grid; gap: var(--s-2); margin: 0; padding-top: var(--s-4); border-top: var(--hair) solid var(--line); }
  .cx-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); align-items: end; gap: var(--s-1); height: var(--s-24); }
  .cx-bar-col { display: flex; align-items: flex-end; height: 100%; }
  .cx-bar-fill { position: relative; display: flex; flex-direction: column; width: 100%; min-height: var(--hair); border-radius: var(--r-chip) var(--r-chip) 0 0; background: color-mix(in srgb, var(--hire) 55%, var(--surface)); overflow: hidden; transition: height var(--dur-figure) var(--ease-move); }
  .cx-bar-col:hover .cx-bar-fill { background: var(--hire); }
  .cx-bar-err { display: block; width: 100%; background: var(--hl); }
  .cx-split { display: grid; gap: var(--s-2); }
  .cx-split-track { display: flex; height: var(--s-2); border-radius: var(--r-pill); overflow: hidden; background: var(--raised); gap: var(--hair); }
  .cx-split-part { display: block; height: 100%; }
  .cx-split-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--fs-meta); color: var(--text2); }
  .cx-split-legend li { display: inline-flex; align-items: center; gap: var(--s-1); }
  .cx-split-legend i { width: var(--dot); height: var(--dot); border-radius: var(--r-round); }
  .cx-split-legend b { font-weight: 600; color: var(--text); }
  .cx-ch-detail { background: var(--text); }
  .cx-ch-contacts { background: var(--lead); }
  .cx-ch-export { background: var(--fund); }
  .cx-ch-api { background: var(--hire); }
  .cx-ch-mcp { background: var(--v-claude); }
  .cx-docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .cx-doc { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); color: var(--text); text-decoration: none; transition: box-shadow var(--dur-answer) var(--ease); }
  .cx-doc:hover { box-shadow: var(--shadow-card), inset 0 0 0 var(--hair) var(--text); }
  .cx-doc-text { display: grid; gap: var(--hair); flex: 1; min-width: 0; }
  .cx-doc > svg { color: var(--muted); flex: none; }

  /* Webhooks */
  .cx-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
  .cx-flow li { --hue: var(--text); position: relative; display: grid; grid-template-columns: var(--s-10) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r-inset); background: var(--raised); }
  .cx-flow li > .cx-use-icon { grid-row: 1 / span 2; }
  .cx-flow li b { font-size: var(--fs-secondary); }
  .cx-flow li:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--s-3) + var(--s-5)); bottom: calc(-1 * var(--s-2)); width: calc(var(--hair) * 2); height: var(--s-2); background: var(--line2); }
  .cx-recipes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
  .cx-recipe { display: grid; gap: var(--s-3); align-content: start; }
  .cx-recipe .row-line { gap: var(--s-2); }

  @media (max-width: 80em) {
    .cx-clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 64em) {
    .cx-hero, .cx-step-grid { grid-template-columns: minmax(0, 1fr); }
    .cx-hero { padding: var(--s-6); }
    .cx-hero-ai { padding: 0; }
    .cx-hero-ai > .cx-hero-text { padding: var(--s-6); }
    .cx-uses, .cx-docs, .cx-recipes, .cx-qs { grid-template-columns: minmax(0, 1fr); }
  }
  @media (max-width: 48em) {
    /* The lock alone marks a Business tab on a phone (the word stays for screen readers), so all three tabs fit. */
    .cx-tabs { gap: var(--s-5); }
    .cx-tab-word { position: absolute; width: var(--hair); height: var(--hair); overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .cx-stack { gap: var(--s-10); }
    .cx-hero { padding: var(--s-5); gap: var(--s-6); }
    .cx-hero-ai { padding: 0; gap: 0; }
    .cx-hero-ai > .cx-hero-text { padding: var(--s-5); }
    .cx-stage { padding: var(--s-4); }
    .cx-stats { grid-template-columns: minmax(0, 1fr); }
    .cx-stat + .cx-stat { border-left: 0; border-top: var(--hair) solid var(--line); }
    .cx-sec-head-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-3); }
    .cx-sec-head-row .segmented { justify-self: start; flex-wrap: wrap; }
    .cx-progress { justify-items: start; }
    .cx-clients, .cx-prompts, .cx-faq { grid-template-columns: minmax(0, 1fr); }
    .cx-band, .cx-plans-foot, .cx-adds { flex-direction: column; align-items: flex-start; grid-template-columns: minmax(0, 1fr); }
  }
}

/* upgrade.css */
/* Upgrade (D-647): the screen every upgrade prompt lands on, plus its entry points in the sidebar and the Settings menu.
   It speaks the company view's language: `ccard` sections with an icon tile, title and one line; signal hues only with
   their word; amber says late or not yet (Free's 30 days); fit colours a fit; the upgrade colour of D-645 (`--up-*`)
   marks the one offer button per view and its icon tiles, never ink. No gradients, glow or one-sided stripes. */
@layer account {
  .upg { gap: var(--s-5); max-width: var(--detail-max); grid-template-columns: minmax(0, 1fr); }

  /* Hero: what this plan costs you, in your own numbers, and the one offer beside it. */
  .upg-hero { display: grid; grid-template-columns: minmax(0, 1fr) var(--app-offer-w); gap: var(--s-8); align-items: start; padding: var(--s-6) 0 var(--s-2); }
  .upg-hero-text { display: grid; gap: var(--s-4); align-content: start; padding-top: var(--s-2); }
  .upg-kicker { display: inline-flex; align-items: center; gap: var(--s-2); justify-self: start; height: var(--a28); padding: 0 var(--a11); border-radius: var(--r-pill); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-card); font-size: var(--fs-meta); font-weight: 600; color: var(--text2); }
  .upg-kicker-dot { width: var(--a7); height: var(--a7); border-radius: var(--r-round); background: var(--ok-dot); }
  .upg-kicker-dot.is-late { background: var(--hl); }
  .upg-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-upgrade-title); line-height: 1.08; letter-spacing: -0.03em; color: var(--text); text-wrap: balance; max-width: 22ch; }
  .upg-title-sm { font-size: var(--fs-name-standalone); max-width: none; }
  .upg-lede { font-size: var(--fs-prose); line-height: var(--lh-prose); color: var(--text2); max-width: 60ch; text-wrap: pretty; }
  .upg-lede b { color: var(--text); font-weight: 600; }
  .upg-lede .upg-fit { color: var(--fit-top); }
  .upg-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--s-1) 0 0; border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-raise); overflow: hidden; }
  .upg-figs > div { display: grid; gap: var(--s-1); padding: var(--s-4) var(--a18); }
  .upg-figs > div + div { border-left: var(--hair) solid var(--line); }
  .upg-figs dt { font-size: var(--fs-meta); font-weight: 500; color: var(--muted); }
  .upg-figs dd { margin: 0; font-size: var(--fs-figure); font-weight: 600; line-height: 1; letter-spacing: -0.02em; color: var(--text); }
  .upg-figs .is-fit dd { color: var(--fit-top); }
  .upg-of { font-size: var(--fs-body); color: var(--muted); font-weight: 500; letter-spacing: 0; }
  .upg-figs .is-late dd { color: var(--hl); }
  .upg-sigs { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
  .upg-sig { display: inline-flex; align-items: center; gap: var(--a7); height: var(--a30); padding: 0 var(--s-3); border-radius: var(--r-pill); background: color-mix(in srgb, var(--sig) var(--tint-soft), var(--surface)); color: var(--text2); font-size: var(--fs-meta); }
  .upg-sig b { color: var(--sig); font-weight: 600; }

  /* The offer box: plan, price, period, the one upgrade button, what makes it safe to press. */
  .upg-offer { position: sticky; top: var(--s-6); display: grid; gap: var(--s-3); padding: var(--s-5) var(--a22) var(--a18); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line2); box-shadow: var(--shadow-pop); }
  .upg-offer-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
  .upg-offer-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); letter-spacing: -0.02em; }
  .upg-offer-tag { font-size: var(--fs-chip); font-weight: 600; color: var(--up-tx2); background: var(--up-bg); height: var(--s-6); display: inline-flex; align-items: center; padding: 0 var(--s-2); border-radius: var(--r-chip); }
  .upg-price { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-1); }
  .upg-price b { font-family: var(--font-display); font-size: var(--fs-price); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
  .upg-price span { color: var(--muted); font-size: var(--fs-body); }
  .upg-price-sub { margin-top: calc(-1 * var(--s-1)); }
  .upg-offer .upg-iv { width: 100%; }
  .upg-offer .upg-iv button { flex: 1; }
  .upg-save { margin-left: var(--a6); font-size: var(--fs-115); font-weight: 600; color: var(--ok); }
  .upg-cta { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: var(--a44); padding: 0 var(--s-5); border: 0; border-radius: var(--r-10); background: var(--up-btn); color: var(--up-on); font-weight: 600; font-size: var(--fs-145); cursor: pointer; box-shadow: var(--shadow-cta); }
  .upg-cta:hover:not(:disabled) { background: var(--up-btnhov); }
  .upg-cta:disabled { opacity: .55; cursor: not-allowed; }
  .upg-cta .spinner { border-color: var(--up-on); border-right-color: transparent; }
  .upg-assure { display: grid; gap: var(--a6); list-style: none; margin: var(--s-1) 0 0; padding: var(--s-3) 0 0; border-top: var(--hair) solid var(--line); }
  .upg-assure li { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-13); color: var(--text2); }
  .upg-assure svg { color: var(--ok); flex: none; }
  .upg-secure { display: inline-flex; align-items: center; gap: var(--a6); font-size: var(--fs-chip); color: var(--muted); }

  /* The 30-day chart: one bar a day; on Free the whole window sits on the amber "not yet" ground. */
  .upg-gap { display: grid; gap: var(--s-3); }
  .upg-ico.is-late, .upg-leg-ico.is-late { background: var(--hl-bg); color: var(--hl); }
  .upg-chart { position: relative; height: var(--app-gap-chart-h); margin-top: var(--s-2); padding: var(--s-6) var(--s-3) 0; border-radius: var(--r-12); background: var(--raised); }
  .upg-chart.is-free { background: color-mix(in srgb, var(--hl-bg) 70%, var(--surface)); }
  .upg-chart-band { position: absolute; top: var(--s-2); right: var(--s-3); display: inline-flex; align-items: center; gap: var(--a5); font-size: var(--fs-chip); font-weight: 600; color: var(--hl); }
  .upg-bars { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: var(--a3); align-items: end; height: 100%; }
  .upg-bar { display: flex; align-items: flex-end; height: 100%; }
  .upg-bar i { display: block; width: 100%; border-radius: var(--a3) var(--a3) 0 0; background: color-mix(in srgb, var(--text) 26%, transparent); }
  .upg-chart.is-free .upg-bar i { background: color-mix(in srgb, var(--hl) 42%, transparent); }
  .upg-bar.is-today i { background: var(--text); }
  .upg-chart.is-free .upg-bar.is-today i { background: var(--hl); }
  .upg-bar:hover i { background: var(--text2); }
  .upg-axis { display: flex; justify-content: space-between; padding: 0 var(--s-1); }
  .upg-legend { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin-top: var(--s-1); }
  .upg-legend p { display: flex; gap: var(--a10); align-items: flex-start; padding: var(--s-3); border-radius: var(--r-12); background: var(--raised); font-size: var(--fs-13); color: var(--text2); }
  .upg-legend b { color: var(--text); }
  .upg-leg-ico { flex: none; display: grid; place-items: center; width: var(--a26); height: var(--a26); border-radius: var(--r-btn); background: var(--surface); color: var(--text2); }
  .upg-leg-ico.is-now, .upg-open-ico.is-now { background: color-mix(in srgb, var(--ok-dot) var(--tint-strong), var(--surface)); color: var(--ok); }

  /* Waiting rows: the split list's shape, a lock where the logo goes, the day Free would show each one. */
  .upg-chip-late { background: var(--hl-bg); color: var(--hl); font-weight: 600; --sig-dot: var(--hl); }
  .upg-rows { display: grid; list-style: none; margin: var(--s-4) 0 0; padding: 0; border-radius: var(--r-12); border: var(--hair) solid var(--line); overflow: hidden; }
  .upg-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--surface); }
  .upg-row + .upg-row { border-top: var(--hair) solid var(--line); }
  .upg-row:hover { background: var(--raised); }
  .upg-row-logo { flex: none; display: grid; place-items: center; width: var(--a36); height: var(--a36); border-radius: var(--r-10); background: var(--raised); color: var(--muted); box-shadow: inset 0 0 0 var(--hair) var(--line); }
  .upg-row-main { flex: 1; min-width: 0; display: grid; gap: var(--a3); }
  .upg-row-t { display: flex; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
  .upg-row-t .sig { font-size: var(--fs-body); }
  .upg-row-t .sig b { color: var(--text); }
  .upg-row-name { font-size: var(--fs-13); color: var(--muted); font-style: italic; }
  .upg-row-meta { display: flex; align-items: center; gap: var(--a6); flex-wrap: wrap; }
  .upg-row-meta .sep { color: var(--muted); }
  .upg-fitword { flex: none; font-size: var(--fs-chip); font-weight: 600; height: var(--s-6); display: inline-flex; align-items: center; padding: 0 var(--s-2); border-radius: var(--r-chip); color: var(--ring-c); background: color-mix(in srgb, var(--ring-c) var(--tint), var(--surface)); }
  .upg-row-when { flex: none; display: grid; justify-items: end; gap: var(--a3); text-align: right; min-width: 7rem; }
  .upg-freeon { display: inline-flex; align-items: center; gap: var(--a5); font-size: var(--fs-chip); font-weight: 600; color: var(--hl); }
  .upg-wait-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-4); }

  /* What opens: four facts in a 2x2, each with the icon the app uses for it. */
  .upg-opens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); list-style: none; margin: var(--s-4) 0 0; padding: 0; }
  .upg-opens-grid li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-12); background: var(--raised); }
  .upg-open-ico { flex: none; display: grid; place-items: center; width: var(--a36); height: var(--a36); border-radius: var(--r-10); background: var(--surface); color: var(--text2); box-shadow: var(--shadow-card); }
  .upg-open-ico.is-fit { background: color-mix(in srgb, var(--fit-top) var(--tint-strong), var(--surface)); color: var(--fit-top); }
  .upg-open-t { font-weight: 600; font-size: var(--fs-145); margin-bottom: var(--a3); }

  /* Plans: the two paid plans, the recommended one ringed in ink (03-DESIGN pricing cards). */
  .upg-plans-sec { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
  .upg-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
  .upg-h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-page-title); letter-spacing: -0.02em; margin-bottom: var(--s-1); }
  .upg-plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .upg-plan { display: grid; gap: var(--s-3); align-content: start; padding: var(--s-6); border-radius: var(--r-card); background: var(--surface); border: var(--hair) solid var(--line); box-shadow: var(--shadow-raise); }
  .upg-plan.is-pick { box-shadow: 0 0 0 var(--rule) var(--text), var(--shadow-pop); border-color: transparent; }
  .upg-plan-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
  .upg-plan-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); letter-spacing: -0.02em; }
  .upg-plan-price { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
  .upg-plan-price b { font-family: var(--font-display); font-size: var(--fs-figure); font-weight: 700; letter-spacing: -0.03em; }
  .upg-plan-cta { width: 100%; justify-content: center; }
  .upg-plan .upg-cta { height: var(--a40); font-size: var(--fs-body); box-shadow: none; }
  .upg-points { display: grid; gap: var(--s-2); list-style: none; margin: var(--s-1) 0 0; padding: var(--s-4) 0 0; border-top: var(--hair) solid var(--line); }
  .upg-points li { display: flex; gap: var(--s-2); align-items: flex-start; font-size: var(--fs-13); color: var(--text2); }
  .upg-points svg { flex: none; margin-top: var(--a3); color: var(--text); }
  .upg-stay a { color: inherit; }

  /* Every limit: a quiet table, the recommended column on a raised ground. */
  .upg-table-wrap { margin-top: var(--s-4); overflow-x: auto; }
  .upg-table { min-width: 34rem; }
  .upg-table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
  .upg-table :is(th, td) { padding: var(--a10) var(--s-3); text-align: left; border-bottom: var(--hair) solid var(--line); vertical-align: top; }
  .upg-table thead th { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-145); color: var(--text); }
  .upg-table tbody th { font-weight: 500; color: var(--text2); width: 30%; }
  .upg-table tbody tr:last-child :is(th, td) { border-bottom: 0; }
  .upg-table .is-pick { background: var(--raised); }
  .upg-yours { margin-left: var(--s-2); font-family: var(--font-ui); font-size: var(--fs-chip); font-weight: 500; color: var(--muted); }
  .upg-yes { color: var(--fit-top); display: inline-flex; }
  .upg-no { color: var(--muted); }

  .upg-faq-list { display: grid; margin-top: var(--s-3); }
  .upg-q { border-bottom: var(--hair) solid var(--line); }
  .upg-q:last-child { border-bottom: 0; }
  .upg-q summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--a14) 0; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--fs-145); }
  .upg-q summary::-webkit-details-marker { display: none; }
  .upg-q summary svg { flex: none; color: var(--muted); }
  .upg-q[open] summary svg { rotate: 180deg; }
  .upg-q p { padding: 0 0 var(--s-4); max-width: 72ch; }
  .upg-faq-foot { margin-top: var(--s-3); }

  .upg-top { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-8); }
  .upg-top-ico { display: grid; place-items: center; width: var(--s-12); height: var(--s-12); border-radius: var(--r-12); background: color-mix(in srgb, var(--ok-dot) var(--tint-strong), var(--surface)); color: var(--ok); }
  .upg-top-actions { gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }

  /* Entry points: the sidebar line under the quota meter and the Settings menu link. */
  .shell .side-up { display: flex; align-items: center; gap: var(--a10); margin-top: var(--s-2); padding: var(--s-2) var(--a10); border-radius: var(--r-10); text-decoration: none; color: var(--text); overflow: hidden; white-space: nowrap; }
  .shell .side-up:hover, .shell .side-up[aria-current="page"] { background: var(--raised); }
  .side-up-ico { flex: none; display: grid; place-items: center; width: var(--a28); height: var(--a28); border-radius: var(--r-btn); background: var(--up-ico); color: var(--up-on); }
  .side-up-text { display: grid; min-width: 0; }
  .side-up-text b { font-size: var(--fs-13); font-weight: 600; }
  .side-up-text span { font-size: var(--fs-chip); color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
  @media not all and (max-width: 48em) {
    .shell .side-rail .side-up { padding-left: var(--a6); }
  }
  .acct-nav-item.acct-nav-up { color: var(--up-tx2); }
  .acct-nav-item.acct-nav-up svg:first-child { color: var(--up-ico); }
  .acct-nav-go { margin-left: auto; }

  /* Plan moments (D-652, redrawn in D-653: "smaller, less text, more visual"). One small dialog: a drawn scene on a
     dotted raised stage, built from the empty-state vocabulary (sg-card, sg-pill, the fanned stack, D-640), then a
     title, one sentence, the plan's chips, one button and two quiet links. Fund green = paid and on; amber = late. */
  .shell .dialog.upg-wel:focus { outline: none; }
  .shell .dialog.upg-wel { position: relative; width: min(var(--app-welcome-w), calc(100vw - var(--s-8))); padding: 0; gap: 0; overflow: auto; --sg-w: 100%; }
  .upg-wel-x { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 2; }
  .upg-stage { position: relative; display: grid; place-items: center; min-height: calc(var(--s-28) * 1.5); padding: var(--s-10) var(--s-8) var(--s-6); background-color: var(--raised); background-image: var(--pat-dots); border-bottom: var(--hair) solid var(--line); }
  .upg-stamp { position: absolute; top: var(--s-4); left: var(--s-4); display: inline-flex; align-items: center; gap: var(--a5); height: var(--a26); padding: 0 var(--a10); border-radius: var(--r-pill); background: var(--surface); color: var(--ok); font-size: var(--fs-chip); font-weight: 600; box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--ok-dot) 35%, var(--line)), var(--shadow-card); }
  .upg-stage.has-stamp { padding-top: calc(var(--s-12) + var(--s-4)); }
  .upg-pro-scene { display: grid; justify-items: center; gap: var(--s-4); width: 100%; max-width: 22rem; }
  .upg-stack { width: 100%; padding-top: var(--s-5); }
  .upg-stack > .is-back { translate: 0 calc(-1 * var(--s-4)); scale: 0.92; opacity: 0.9; }
  .upg-stack > .is-back2 { translate: 0 calc(-2 * var(--s-4)); scale: 0.84; opacity: 0.7; }
  .upg-newpill { display: inline-flex; align-items: center; gap: var(--a5); height: var(--a26); padding: 0 var(--a10); border-radius: var(--r-pill); background: color-mix(in srgb, var(--ok-dot) var(--tint), var(--surface)); color: var(--ok); font-size: var(--fs-chip); font-weight: 600; box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--ok-dot) 30%, var(--line)); }
  .upg-scard { width: 100%; }
  .upg-scard-mid { flex: 1; min-width: 0; display: grid; gap: var(--a6); }
  .upg-scard-row { display: flex; align-items: center; gap: var(--s-2); }
  .upg-scard-row .signal { font-size: var(--fs-chip); }
  .upg-scard-bar { display: block; width: 62%; height: var(--a6); border-radius: var(--a3); background: var(--line2); }
  .upg-scard .ring { flex: none; }
  .upg-today { display: inline-flex; align-items: center; height: var(--s-5); padding: 0 var(--a7); border-radius: var(--r-chip); font-size: var(--fs-115); font-weight: 600; color: var(--ok); background: color-mix(in srgb, var(--ok-dot) var(--tint), var(--surface)); }
  .upg-today.is-late { color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 var(--hair) var(--line); text-decoration: line-through; }
  .upg-scard.is-locked .sg-logo, .upg-scard.is-locked .upg-scard-mid { opacity: 0.55; }

  /* The mini feed card (D-655): the feed card's own parts, a size down, lifted off the stage. */
  .upg-mini { width: 100%; padding: var(--s-4) var(--s-4) var(--a14); cursor: default; text-align: left; box-shadow: var(--shadow-pop); }
  .upg-mini:hover { border-color: var(--line); }
  .upg-mini .fcard-head { gap: var(--s-3); align-items: center; }
  .upg-mini .cname { font-size: var(--fs-section); }
  .upg-mini .fcard-name { gap: var(--s-2); }
  .upg-mini .meta-row { gap: var(--a6); margin-top: var(--a3); font-size: var(--fs-chip); }
  .upg-mini .meta-row > * + *::before { margin-right: var(--a6); }
  .upg-mini .sig { font-size: var(--fs-chip); }
  .upg-mini .why { margin-top: var(--a10); padding: var(--a10) var(--s-3); }
  .upg-mini .why-label { font-size: var(--fs-115); }
  .upg-mini .why-text { margin-top: var(--a3); font-size: var(--fs-13); line-height: 1.45; }
  .upg-mini-lock { display: grid; place-items: center; color: var(--muted); background: var(--raised); box-shadow: inset 0 0 0 var(--hair) var(--line); }
  .upg-mini-hidden { color: var(--muted); font-style: italic; font-weight: 500; }
  .upg-mini-late { display: inline-flex; align-items: center; gap: var(--a3); color: var(--hl); font-weight: 600; }
  .upg-mini-why { background: var(--raised); box-shadow: none; }
  .upg-mini-why .why-label { color: var(--muted); font-weight: 500; }
  .upg-mini-why .why-ico { color: var(--muted); background: var(--surface); }

  /* Business: today's card forks to the API and to a webhook. Neutral hairlines draw the fork. */
  .upg-pipe { display: grid; justify-items: center; width: 100%; max-width: 22rem; }
  .upg-pipe-fork { position: relative; width: 50%; height: var(--s-5); margin-top: var(--s-4); border: var(--hair) solid var(--line2); border-bottom: 0; border-radius: var(--r-10) var(--r-10) 0 0; }
  .upg-pipe-fork i:first-child { position: absolute; left: 50%; bottom: 100%; height: var(--s-4); border-left: var(--hair) solid var(--line2); }
  .upg-pipe-ends { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .upg-end { justify-self: center; display: inline-flex; align-items: center; gap: var(--a5); height: var(--a26); padding: 0 var(--a9); border-radius: var(--r-btn); background: var(--surface); color: var(--text); font-family: var(--font-mono); font-size: var(--fs-115); white-space: nowrap; box-shadow: inset 0 0 0 var(--hair) var(--line2), var(--shadow-card); }
  .upg-end.is-hook { color: var(--ok); box-shadow: inset 0 0 0 var(--hair) color-mix(in srgb, var(--ok-dot) 40%, var(--line)), var(--shadow-card); }

  /* Back on Free: today's card locked for 30 days, and what was kept as checks under it. */
  .upg-free-scene { display: grid; justify-items: center; gap: var(--s-4); width: 100%; max-width: 22rem; }
  .upg-keep { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--a6); list-style: none; margin: 0; padding: 0; }
  .upg-keep li { display: inline-flex; align-items: center; gap: var(--a5); height: var(--a26); padding: 0 var(--a10); border-radius: var(--r-pill); background: var(--surface); color: var(--text2); font-size: var(--fs-chip); font-weight: 600; box-shadow: inset 0 0 0 var(--hair) var(--line), var(--shadow-card); }
  .upg-keep svg { color: var(--ok); }

  /* The words: short, centred. */
  .upg-wel-in { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-6) var(--s-8); text-align: center; }
  .upg-wel-k { font-size: var(--fs-meta); font-weight: 600; color: var(--ok); }
  .upg-wel-k.is-late { color: var(--hl); }
  .upg-wel-k + .upg-wel-title { margin-top: calc(-1 * var(--s-2)); }
  .upg-wel-title { font-family: var(--font-display); font-size: var(--fs-name-standalone); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
  .upg-wel-line { max-width: 40ch; font-size: var(--fs-body); line-height: 1.5; color: var(--text2); text-wrap: balance; }
  .upg-wel-line b { color: var(--text); font-weight: 600; }
  .upg-wel-chips { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: var(--a6); list-style: none; margin: 0; padding: 0; }
  .upg-wel-chips li { justify-content: center; }
  .upg-wel-chips li { display: inline-flex; align-items: center; gap: var(--a5); height: var(--a26); padding: 0 var(--a9); border-radius: var(--r-pill); background: var(--raised); color: var(--text2); font-size: var(--fs-chip); font-weight: 600; }
  .upg-wel-chips li.is-now { color: var(--ok); background: color-mix(in srgb, var(--ok-dot) var(--tint), var(--surface)); }
  .upg-wel-chips li.is-fit { color: var(--fit-top); background: color-mix(in srgb, var(--fit-top) var(--tint), var(--surface)); }
  .upg-wel-go { width: 100%; justify-content: center; gap: var(--s-2); height: var(--a44); margin-top: var(--s-2); }
  .upg-lapsed .upg-wel-go { box-shadow: none; }
  .upg-wel-links { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-13); color: var(--muted); }
  .upg-wel-links a, .upg-wel-links .linklike { color: var(--text2); }

  /* Grace (D-652): one amber band at the top of every screen while a failed payment is in its window. */
  .shell .grace { display: flex; align-items: center; gap: var(--s-4); margin: var(--s-3) var(--s-4) 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-12); background: var(--hl-bg); color: var(--text); border: var(--hair) solid color-mix(in srgb, var(--hl) 22%, transparent); }
  .grace-ico { flex: none; display: grid; place-items: center; width: var(--s-10); height: var(--s-10); border-radius: var(--r-10); background: var(--surface); color: var(--hl); box-shadow: var(--shadow-card); }
  .grace-text { flex: 1; min-width: 0; display: grid; gap: var(--a2); }
  .grace-t { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-weight: 600; font-size: var(--fs-145); }
  .grace-days { display: inline-flex; align-items: center; height: var(--s-5); padding: 0 var(--a7); border-radius: var(--r-chip); background: var(--hl); color: var(--surface); font-size: var(--fs-115); font-weight: 600; }
  .grace-s { font-size: var(--fs-13); color: var(--text2); }
  .grace-actions { flex: none; display: flex; align-items: center; gap: var(--s-1); }
  .shell .side-plan.is-due { color: var(--hl); font-weight: 600; }

  @media (max-width: 64em) {
    .upg-hero { grid-template-columns: minmax(0, 1fr); }
    .upg-offer { position: static; max-width: var(--app-offer-w); }
  }
  @media (max-width: 48em) {
    .upg-title { font-size: var(--fs-name-standalone); }
    .upg-legend, .upg-opens-grid, .upg-plans { grid-template-columns: minmax(0, 1fr); }
    .upg-offer { max-width: none; }
    .upg-row { flex-wrap: wrap; }
    .upg-row-when { min-width: 0; justify-items: start; text-align: left; flex-basis: 100%; padding-left: calc(var(--a36) + var(--s-3)); grid-auto-flow: column; justify-content: start; gap: var(--s-3); }
    .upg-bars { gap: var(--a1); }
    .upg-figs > div { padding: var(--s-3); }
    .upg-figs dd { font-size: var(--fs-figure-card); }
    .upg-table tbody th { width: auto; }
    .upg-stage { padding: var(--s-10) var(--s-5) var(--s-5); }
    .upg-wel-in { padding: var(--s-5); }
    .upg-wel-go { height: var(--touch-min); }
    .shell .grace { flex-wrap: wrap; margin: var(--s-2) var(--s-3) 0; }
    .grace-ico { width: var(--a36); height: var(--a36); }
    .grace-actions { flex-basis: 100%; }
    .grace-actions .btn-ink { flex: 1; justify-content: center; height: var(--touch-min); }
  }
  /* On a phone the plan moment takes the screen (D-667): the drawn scene fills the top, the words and the one
     button sit at the bottom under the thumb. */
  @media (max-width: 40em) {
    .shell .dialog.upg-wel { width: 100%; height: 100dvh; max-height: none; display: flex; flex-direction: column; border-radius: 0; border: 0; padding: 0; }
    .upg-wel .upg-stage { flex: 1 0 auto; }
    .upg-wel .upg-wel-in { padding-bottom: calc(var(--s-5) + env(safe-area-inset-bottom)); }
  }
}

/* landscape.css */
/* Phone landscape (D-660, src/app/lib/landscape.ts): a phone on its side shows My feed and, once a card is opened, the
   company list beside the company detail. Nothing else. `.shell-land` is set by the app only while a phone is held
   sideways, so nothing here reaches a tablet or a desktop. Every rule beats both the phone (max-width: 48em) and the
   desktop rules of app.css by one class, so a 667px and a 932px phone look the same.
   The page runs edge to edge while sideways (viewport-fit=cover): the notch side and the home bar pad by their safe
   areas, and nothing ever sits under them. Tokens only. */
@layer app {
  .shell.shell-land {
    --land-l: max(var(--s-4), env(safe-area-inset-left));
    --land-r: max(var(--s-4), env(safe-area-inset-right));
    --land-b: env(safe-area-inset-bottom);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    .main { height: 100dvh; }

    /* Touch: every control a thumb can hit without zooming, even on a phone wider than 48em. */
    .iconbtn { min-width: var(--a40); min-height: var(--a40); }
    .tri, .cv-bar .btn { min-height: var(--a40); }
    .kbd, .cv-keys, .cv-expand { display: none; }

    /* ---------- The stream ---------- */
    .feed-main { padding: 0 var(--land-r) 0 var(--land-l); overscroll-behavior-y: contain; }
    .land-head { box-shadow: none; }
    .land-bar { display: flex; align-items: center; gap: var(--s-4); height: var(--land-bar-h); border-bottom: var(--hair) solid var(--line); }
    .land-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: var(--s-2); }
    .land-title .page-title { flex: none; font-size: var(--fs-20); line-height: 1; white-space: nowrap; }
    .land-tabs { flex: none; height: var(--land-bar-h); gap: var(--s-4); border-bottom: 0; }
    .land-tabs .tab { height: 100%; }
    .land-bar .iconbtn { border-color: transparent; background: transparent; }
    .feed-list { padding-bottom: calc(var(--s-8) + var(--land-b)); }

    /* ---------- List beside the company ---------- */
    .screen.split { grid-template-columns: var(--land-list-w) minmax(0, 1fr); height: 100dvh; overflow: hidden; }
    .screen.split .split-col { display: flex; padding: 0 var(--s-2) calc(var(--s-4) + var(--land-b)) var(--land-l); overscroll-behavior: contain; }
    /* The back button and the tabs stay put while the list scrolls under them. */
    .split-head { position: sticky; top: 0; z-index: var(--z-sticky); min-height: var(--land-bar-h); padding: 0 var(--s-2) 0 0; background: var(--surface); }
    .land-back { display: inline-flex; align-items: center; gap: var(--a2); min-width: 0; height: var(--land-bar-h); padding: 0 var(--s-2) 0 0; border: 0; border-radius: var(--r-btn); background: none; color: var(--text); font: inherit; cursor: pointer; }
    .land-back:hover { background: var(--raised); }
    .land-back .split-title { font-size: var(--fs-section); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    /* The list is too narrow for the counts; the tabs scroll sideways if a long word still does not fit. */
    .split-tabs { position: sticky; top: var(--land-bar-h); z-index: var(--z-sticky); gap: var(--s-3); padding: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: var(--surface); }
    .split-tabs .tab { height: var(--a36); font-size: var(--fs-13); flex: none; }
    .split-tabs .cnt { display: none; }
    .split-list { margin-top: var(--s-2); }
    .srow { padding: var(--s-3) var(--a10); gap: var(--a10); }
    .srow-what { -webkit-line-clamp: 1; }
    /* A ring with no score (no ICP yet, Free) says the same thing on every row: the names get the room instead. */
    .srow .ring2-muted { display: none; }

    /* ---------- The company ---------- */
    .detail-col { overflow: hidden; }
    .cv { height: 100%; overflow: auto; overscroll-behavior: contain; }
    .cv-inner { padding: 0 var(--land-r) calc(var(--s-8) + var(--land-b)) var(--s-5); }
    .cv-nav { min-height: var(--land-bar-h); gap: var(--s-2); }
    .cv-pos .iconbtn { border-color: transparent; background: transparent; }
    /* The ring stays beside the name, as on a wide screen (the phone rule would push it to a row of its own). */
    .cv-head, .sk-cv-head { flex-wrap: nowrap; padding-top: var(--s-1); }
    .cv-id { flex: 1 1 auto; }
    .cv-ring { flex-direction: column; align-items: flex-end; order: 0; }
    .cv-actions, .sk-cv-actions { position: sticky; margin-top: var(--s-3); padding: var(--s-2) 0; }
    /* One row: triage on the left, the tools as icons on the right (their words stay their accessible names). A
       sticky bar two rows tall would take half the screen. */
    .cv-bar { flex-wrap: nowrap; }
    .tri-seg { width: auto; flex-wrap: nowrap; }
    .tri { flex: none; }
    .cv-bar .cv-tools { flex: none; margin-left: auto; padding: 0; border-top: 0; }
    .cv-tools > .cv-copy, .cv-tools > .drop > .btn { flex: none; width: var(--a40); padding: 0; gap: 0; justify-content: center; font-size: 0; }
    .cv-tools > .drop:not(:last-child) { flex: none; }
    /* A narrow company pane (a small phone): triage as icons too; the pressed one keeps its fill. */
    @container cv (max-width: 30rem) {
      .tri { width: var(--a40); padding: 0; gap: 0; justify-content: center; font-size: 0; }
    }
  }
}

/* motion.css */
/* Motion layer: every arrival, leaving, answer and screen change in the app. docs/motion.md is the rulebook; the
   runtime half (view transitions, skeleton landing, fade in and out in place, overlays leaving, triage exits, the
   sliding pick) is src/app/lib/motion.ts. Tokens only (--dur-*, --ease-*, --mv-*, --scale-*). A component never
   brings its own keyframes or timings: add the rule here and the move to docs/motion.md.
   In short: motion answers what the person did; things arrive decelerating and leave accelerating, quicker than
   they came; overlays come from where they live; content in the layout fades where it stands; nothing bounces, glows
   or lifts on hover. With prefers-reduced-motion none of it runs (system.css and motion.ts). */

/* Page to page on the public site and the sign-in pages: the browser cross-fades the documents. */
@view-transition { navigation: auto; }

@layer motion {
  /* ---------- Arrivals: one keyframe per way in. motion.ts plays the same frames backwards when an overlay goes.
     They use translate and scale, never transform, so they add to an element's own transform (.bulk-bar). */
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes fade-out { to { opacity: 0; } }
  @keyframes pop-down { from { opacity: 0; translate: 0 calc(-1 * var(--mv-pop)); } }
  @keyframes pop-up { from { opacity: 0; translate: 0 var(--mv-pop); } }
  @keyframes from-top { from { opacity: 0; translate: 0 calc(-1 * var(--mv-toast)); } }
  @keyframes rise { from { opacity: 0; translate: 0 var(--mv-toast); } }
  @keyframes from-right { from { opacity: 0; translate: var(--mv-drawer) 0; } }
  @keyframes from-bottom { from { opacity: 0; translate: 0 var(--mv-sheet); } }
  @keyframes modal-in { from { opacity: 0; scale: var(--scale-dialog); } }
  @keyframes ring-in { from { outline-color: transparent; outline-offset: var(--mv-ring); } }
  @keyframes sk-in { from { opacity: 0; } }
  @keyframes bs-sweep { from { translate: -100% 0; } to { translate: 340% 0; } }
  @keyframes bs-breathe { 50% { scale: 0.88; opacity: 0.7; } }
  @keyframes wave { 0%, 60%, 100% { translate: 0 0; opacity: 0.55; } 30% { translate: 0 calc(-1 * var(--s-2)); opacity: 1; } }

  /* Connect chat illustration (D-635, owner request): plays once when it mounts or the picked assistant changes. The
     question types in, then the tool line, then each row, then the follow-up, one --cx-beat apart (`--at` per part). */
  @keyframes cx-type { from { clip-path: inset(0 100% 0 0); } }
  .cx-seq > * { animation: rise var(--dur-arrive) var(--ease-arrive) both; animation-delay: calc(var(--cx-beat) * var(--at, 0)); }
  .cx-seq > .cx-bubble { animation: cx-type var(--dur-type) steps(28, end) both; }
  .cx-seq .cx-rows > li { animation: rise var(--dur-arrive) var(--ease-arrive) both; animation-delay: calc(var(--cx-beat) * var(--at, 0)); }

  /* AI search while the model reads the words; more of a list on its way (D-620). */
  .bigsearch.is-busy .bs-sweep { animation: bs-sweep var(--dur-sweep) var(--ease-move) infinite; }
  .bigsearch.is-busy .bs-ico { animation: bs-breathe var(--dur-pulse) ease-in-out infinite; }
  .bigsearch.is-busy .bs-busy { animation: fade-in var(--dur-arrive) ease-out both; }
  .more-dots i { animation: wave var(--dur-wave) var(--ease-move) infinite; }
  .more-dots i:nth-child(2) { animation-delay: calc(var(--dur-wave) * 0.12); }
  .more-dots i:nth-child(3) { animation-delay: calc(var(--dur-wave) * 0.24); }
  .more-dots i:nth-child(4) { animation-delay: calc(var(--dur-wave) * 0.36); }

  /* Overlays come from where they live. */
  .scrim, .drawer-scrim { animation: fade-in var(--dur-arrive) ease-out both; }
  .dialog, .palette { animation: modal-in var(--dur-arrive) var(--ease-arrive) both; }
  .drawer:not(.static-preview) { animation: from-right var(--dur-arrive) var(--ease-arrive) both; }
  .menu, .popover, .multipick > .pick-list, .ob-add-wrap .pick-list { animation: pop-down var(--dur-arrive) var(--ease-arrive) both; }
  .user-menu { animation: pop-up var(--dur-arrive) var(--ease-arrive) both; }
  .toast, .bulk { animation: rise var(--dur-arrive) var(--ease-arrive) both; }
  .new-pill { animation: pop-down var(--dur-arrive) var(--ease-arrive) both; }
  /* Home's zoom sheet (public site, no motion.ts): a native <dialog> rises from the bottom and sinks back on close,
     CSS only (@starting-style + discrete display). Inside, the screenshot slides to the next callout. */
  .hm-zs, .hm-zs::backdrop { transition: opacity var(--dur-leave) var(--ease-leave), translate var(--dur-leave) var(--ease-leave), display var(--dur-leave) allow-discrete, overlay var(--dur-leave) allow-discrete; }
  .hm-zs { opacity: 0; translate: 0 var(--mv-sheet); }
  .hm-zs::backdrop { opacity: 0; }
  .hm-zs[open], .hm-zs[open]::backdrop { opacity: 1; translate: 0 0; transition-duration: var(--dur-arrive); transition-timing-function: var(--ease-arrive); }
  @starting-style {
    .hm-zs[open] { opacity: 0; translate: 0 var(--mv-sheet); }
    .hm-zs[open]::backdrop { opacity: 0; }
  }
  .hm-zs-pan { transition: translate var(--dur-morph) var(--ease-move); }
  .hm-zs-ring { transition: translate var(--dur-morph) var(--ease-move), width var(--dur-morph) var(--ease-move), height var(--dur-morph) var(--ease-move); }
  .hm-zs.zs-jump .hm-zs-pan, .hm-zs.zs-jump .hm-zs-ring { transition: none; }
  /* Pull to refresh (3.9): the chip follows the finger with no transition while pulled, settles to its rest place
     when released far enough, and goes back up quicker than it came when let go early or once the list has landed. */
  .ptr { transition: translate var(--dur-leave) var(--ease-leave), opacity var(--dur-leave) var(--ease-leave), color var(--dur-answer) ease; }
  .ptr.is-busy { transition: translate var(--dur-arrive) var(--ease-arrive), opacity var(--dur-arrive) var(--ease-arrive); }
  .ptr.is-drag { transition: color var(--dur-answer) ease; }
  .new-pill .live { animation: bs-breathe var(--dur-pulse) ease-in-out infinite; }
  /* Below 75em the filter panels are drawers over the page; on a phone the palette is a sheet. */
  @media (max-width: 75em) {
    .refine, .filters-dock { animation: from-right var(--dur-arrive) var(--ease-arrive) both; }
  }
  @media (max-width: 48em) {
    .palette { animation-name: from-bottom; }
  }
  /* Under 40em dialogs and menus are sheets: they rise from the bottom edge they sit on. */
  @media (max-width: 40em) {
    .dialog, .menu { animation-name: from-bottom; }
  }

  /* What appears in the layout fades in where it stands, never slides: a band, an error, an empty state, the open
     part of a filter section, a locked card. motion.ts does the same for anything else that comes into the page. */
  .banner, .band-note, .cv-locked, .empty, .empty-state, .pal-err { animation: fade-in var(--dur-arrive) ease-out both; }

  /* ---------- Controls answer: a colour, an outline, a fill never jumps. Rows in menus (palette, pick lists)
     change at once, as arrow keys move through them faster than any fade. */
  .btn, .link, .lk, .rbtn, .iconbtn, .side-item, .tab, .pill, .chip, .tchip, .fchip, .seg button, .segmented button,
  .srow, .sim, .gcard, .lcard, .fcard, .trow, .menu-item, .input, .search-input, .note-view, .popover > button {
    transition: background-color var(--dur-answer) ease-out, border-color var(--dur-answer) ease-out, color var(--dur-answer) ease-out,
      box-shadow var(--dur-answer) ease-out, opacity var(--dur-answer) ease-out, translate var(--dur-answer) ease-out;
  }
  .pal-row, .pick-list button { transition: none; }
  /* A button gives under the pointer by a pixel. It does not bounce back. */
  :is(.btn, .rbtn, .iconbtn, .pill, .lk):active:not(:disabled) { translate: 0 var(--mv-press); }
  /* The focus ring settles in from a little way out. */
  :where(button, a, input, textarea, select, summary, [role="tab"], [tabindex]):focus-visible { animation: ring-in var(--dur-answer) var(--ease-arrive); }
  /* A status tint on the company head and a filter section's chevron settle instead of switching. */
  .cv-head { transition: background-color var(--dur-arrive) ease-out; }
  .icp-thumb { transition: left var(--dur-answer) var(--ease-move), translate var(--dur-answer) var(--ease-move), box-shadow var(--dur-answer) ease-out; }

  /* Figures move to their new value: the quota bar, the ICP ring. Never on first paint (no animation, only a transition). */
  .quota-fill, .side-bar > span { transition: width var(--dur-figure) var(--ease-move), background-color var(--dur-answer) ease-out; }
  .ring-arc, .ring2-arc { transition: stroke-dasharray var(--dur-figure) var(--ease-move), stroke var(--dur-answer) ease-out; }

  /* ---------- The sidebar folds to its icon rail and back (the fold handle, "[", on any screen). One move: the edge
     travels over --dur-fold while everything on the icon line stays still. Folding, the words leave at once (quicker
     than the edge, sliding the way it goes) and the coral dot glides in behind the f as "undup ai" dissolves; the
     rail's separators and the handle come in near the end. Unfolding plays it backwards: the edge first, the words
     only once there is room for them, so nothing is ever squeezed or cut while it shows. */
  .shell { transition: grid-template-columns var(--dur-fold) var(--ease-move); }
  .side :is(.side-label, .side-count, .kbd, .side-who, .side-gear) {
    transition: opacity var(--dur-arrive) var(--ease-arrive) var(--delay-unfold), translate var(--dur-arrive) var(--ease-arrive) var(--delay-unfold);
  }
  .side :is(.wm-rest, .wm-ai) { transition: opacity var(--dur-arrive) var(--ease-arrive) var(--delay-unfold); }
  .side .side-group { transition: color var(--dur-arrive) var(--ease-arrive) var(--delay-unfold); }
  .side .side-group::after { transition: opacity var(--dur-answer) var(--ease-leave); }
  .side .side-quota { transition: opacity var(--dur-arrive) var(--ease-arrive) var(--delay-unfold), visibility 0s; }
  .side .wm-dot { transition: translate var(--dur-fold) var(--ease-move); }
  .side-fold { transition: opacity var(--dur-answer) ease-out, visibility 0s linear var(--dur-answer), color var(--dur-answer) ease-out, border-color var(--dur-answer) ease-out; }
  .side-fold svg { transition: rotate var(--dur-fold) var(--ease-move); }
  .side:hover .side-fold, .side:has(:focus-visible) .side-fold { transition-delay: 0s; }
  .side-rail :is(.side-label, .side-count, .kbd, .side-who, .side-gear) {
    transition: opacity var(--dur-answer) var(--ease-leave), translate var(--dur-answer) var(--ease-leave);
  }
  .side-rail :is(.wm-rest, .wm-ai) { transition: opacity var(--dur-answer) var(--ease-leave); }
  .side-rail .side-group { transition: color var(--dur-answer) var(--ease-leave); }
  .side-rail .side-group::after { transition: opacity var(--dur-arrive) ease-out var(--delay-fold-mark); }
  .side-rail .side-quota { transition: opacity var(--dur-answer) var(--ease-leave), visibility 0s linear var(--dur-answer); }
  .side-rail .side-fold { transition: opacity var(--dur-arrive) ease-out var(--delay-fold-mark), visibility 0s, color var(--dur-answer) ease-out, border-color var(--dur-answer) ease-out; }

  /* ---------- Skeletons (src/ui/skeletons.tsx). The shape shows only after --delay-skeleton, so a fast answer never
     flashes grey; then it pulses slowly. What replaces it fades in (motion.ts, `landing`). */
  .loading { animation: sk-in var(--dur-arrive) ease-out var(--delay-skeleton) both; }
  .skeleton { animation: pulse var(--dur-pulse) ease-in-out infinite; }
  .loading .skeleton { animation-delay: var(--delay-skeleton); }
  /* A held load gave up waiting: the skeleton shows at once instead of waiting its own delay again (hold.ts). */
  .sk-now .loading, .sk-now .loading .skeleton { animation-delay: 0s; }
  /* What stays on screen while the next value loads dims after a beat, so a fast answer just replaces it. */
  .is-stale { opacity: var(--stale-opacity); transition: opacity var(--dur-arrive) ease-out var(--delay-stale); pointer-events: none; }
  .is-stale-cv .cv-inner > :not(.cv-nav) { opacity: var(--stale-opacity); pointer-events: none; transition: opacity var(--dur-arrive) ease-out var(--delay-stale); }

  /* ---------- In place (motion.ts, `settle`): what went from the layout, put back where it stood while it fades. */
  .gone-in-place, .exiting { pointer-events: none !important; }
  .gone-in-place, .gone-in-place *, .exiting, .exiting * { transition: none !important; }
  /* The still copy an overlay leaves behind while it plays its arrival backwards. */
  .leaving, .leaving * { pointer-events: none !important; transition: none !important; }

  /* ---------- A pick that moves slides its box (segmented) or its underline (tabs) there (motion.ts, `glide`).
     While it slides the choices change at once and the new one lends its fill or underline to the moving box. */
  .glide { isolation: isolate; }
  .glide-at { position: relative; }
  .glide > *, .glide > *::after { transition: none !important; }
  .glide > .glide-to { background-color: transparent !important; box-shadow: none !important; }
  .glide > .glide-to::after { opacity: 0; }
  .glide-box { position: absolute; top: 0; left: 0; z-index: -1; pointer-events: none; box-sizing: border-box; }

  /* ---------- Screen changes (motion.ts, `transition`): same-document view transitions. Only the part that changed
     moves; the sidebar only folds (above). Root is the rest of the page: a short cross-fade of identical pixels. */
  ::view-transition-old(root) { animation-duration: var(--dur-leave); }
  ::view-transition-new(root) { animation-duration: var(--dur-arrive); }

  /* Another screen: the old main area goes in 100ms, the new one comes up a few pixels after a beat. */
  @keyframes screen-out { to { opacity: 0; } }
  @keyframes screen-in { from { opacity: 0; translate: 0 var(--mv-pop); } }
  :root.vt-screen .main { view-transition-name: screen; }
  :root.vt-screen::view-transition-group(screen) { animation-duration: 0s; }
  :root.vt-screen::view-transition-old(screen) { animation: screen-out var(--dur-screen-out) ease-in both; }
  :root.vt-screen::view-transition-new(screen) { animation: screen-in var(--dur-screen-in) var(--ease-arrive) var(--delay-screen) both; }
  :root.vt-screen::view-transition-old(root), :root.vt-screen::view-transition-new(root) { animation: none; }

  /* The company view. Open: it grows out of the card that was clicked (--grow-dx/--grow-dy, set by motion.ts from
     the card's centre, damped). Close: it shrinks back towards that card, quicker. */
  @keyframes grow-in { from { opacity: 0; scale: var(--scale-grow); translate: var(--grow-dx, 0) var(--grow-dy, 0); } }
  @keyframes grow-out { to { opacity: 0; scale: var(--scale-grow); translate: var(--grow-dx, 0) var(--grow-dy, 0); } }
  :root.vt-detail .detail-col { view-transition-name: detail; }
  :root.vt-open::view-transition-new(detail) { animation: grow-in var(--dur-grow) var(--ease-arrive) both; }
  :root.vt-close::view-transition-old(detail) { animation: grow-out var(--dur-shrink) var(--ease-leave) both; }
  /* From split view back to the list, the company steps out of the way at once: it would hide the cards coming back. */
  :root.vt-layout.vt-close::view-transition-old(detail) { animation: grow-out var(--dur-leave) ease-out both; }

  /* List to split view and back (motion.ts names the parts, `nameLayout`). Every lead on screen keeps one name in
     both layouts: its frame morphs from card to row (or back) while what is inside cross-fades pinned top left, so no
     text is ever stretched; its logo, name and ring travel on their own to their new place and size. The title and
     the signal tabs move the same way. The sidebar stays live as it is, and so does the page
     behind; what only one layout has fades out quickly and in a beat later. */
  :root.vt-layout .side { view-transition-name: side; }
  /* A title or a name scales to its new size: its box must be the text's own width, or the picture would stretch. */
  :root.vt-layout :is(h1.page-title, h1.split-title, .trow-name, .gcard-name) { width: fit-content; max-width: 100%; }
  :root.vt-layout::view-transition-group(*) { animation-duration: var(--dur-layout); animation-timing-function: var(--ease-layout); }
  :root.vt-layout::view-transition-group(side) { animation: none; }
  :root.vt-layout::view-transition-old(side) { display: none; }
  :root.vt-layout::view-transition-new(side) { animation: none; }
  :root.vt-layout::view-transition-old(root) { animation: fade-out var(--dur-layout-out) var(--ease-leave) both; }
  :root.vt-layout::view-transition-new(root) { animation: fade-in var(--dur-layout-in) ease-out var(--delay-layout-in) both; }
  :root.vt-layout::view-transition-group(.lead), :root.vt-layout::view-transition-group(.frame) { overflow: clip; border-radius: var(--r-12); }
  :root.vt-layout::view-transition-old(.lead), :root.vt-layout::view-transition-new(.lead),
  :root.vt-layout::view-transition-old(.frame), :root.vt-layout::view-transition-new(.frame) { width: 100%; height: 100%; object-fit: none; object-position: left top; }
  :root.vt-layout::view-transition-old(.lead), :root.vt-layout::view-transition-old(.frame) { animation: fade-out var(--dur-layout-out) var(--ease-leave) both; }
  :root.vt-layout::view-transition-new(.lead), :root.vt-layout::view-transition-new(.frame) { animation: fade-in var(--dur-layout-in) ease-out var(--delay-layout-in) both; }

  /* Expand (F) and back: the panel's frame morphs to its new size; the content cross-fades, pinned top left, so
     text never stretches on the way. */
  :root.vt-morph::view-transition-group(detail) { animation-duration: var(--dur-morph); animation-timing-function: var(--ease-move); overflow: clip; }
  :root.vt-morph::view-transition-old(detail), :root.vt-morph::view-transition-new(detail) { width: 100%; height: 100%; object-fit: none; object-position: left top; }
  :root.vt-morph::view-transition-old(detail) { animation: fade-out var(--dur-screen-out) ease-in both; }
  :root.vt-morph::view-transition-new(detail) { animation: fade-in var(--dur-morph) var(--ease-arrive) both; }

  /* J/K: the next company comes up from below and the old one goes up; K plays it the other way. */
  @keyframes swap-out-up { to { opacity: 0; translate: 0 calc(-1 * var(--mv-swap)); } }
  @keyframes swap-out-down { to { opacity: 0; translate: 0 var(--mv-swap); } }
  @keyframes swap-in-up { from { opacity: 0; translate: 0 var(--mv-swap); } }
  @keyframes swap-in-down { from { opacity: 0; translate: 0 calc(-1 * var(--mv-swap)); } }
  :root.vt-swap::view-transition-group(detail) { animation-duration: 0s; }
  :root.vt-swap.vt-next::view-transition-old(detail) { animation: swap-out-up var(--dur-screen-out) var(--ease-leave) both; }
  :root.vt-swap.vt-next::view-transition-new(detail) { animation: swap-in-up var(--dur-swap) var(--ease-arrive) var(--delay-screen) both; }
  :root.vt-swap.vt-prev::view-transition-old(detail) { animation: swap-out-down var(--dur-screen-out) var(--ease-leave) both; }
  :root.vt-swap.vt-prev::view-transition-new(detail) { animation: swap-in-down var(--dur-swap) var(--ease-arrive) var(--delay-screen) both; }

  /* The theme switch cross-fades the whole page instead of flipping it. */
  :root.vt-theme::view-transition-old(root) { animation: fade-out var(--dur-morph) ease-in-out both; }
  :root.vt-theme::view-transition-new(root) { animation: fade-in var(--dur-morph) ease-in-out both; }

  @media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  }
}

/* admin.css */
/* Admin layer (Phase 8, restyled to the Fwd-Admin-users board in D-563): the same tokens, denser. A top bar with the
   wordmark, "Admin" and the screens; the title with an inline stat strip; search plus segmented filters; tables in one
   bordered card; plan chips, quota bars, status dot + word. Neutral surfaces, ink primary, no colour without meaning,
   no left-border accents, tabs are underline + weight. Every class is scoped under .adm so nothing leaks into the app. */
@layer admin {
  .adm { min-height: 100dvh; background: var(--bg); color: var(--text); font-family: var(--font-ui); font-size: var(--fs-secondary); line-height: var(--lh-body); }
  .adm-top { display: flex; align-items: center; gap: var(--s-4); padding: 0 var(--s-8); height: var(--s-16); background: var(--surface); border-bottom: var(--hair) solid var(--line); position: sticky; top: 0; z-index: var(--z-sticky); }
  .adm-brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; padding-right: var(--s-4); border-right: var(--hair) solid var(--line); }
  .adm-brand .wordmark { height: var(--s-5); }
  .adm-crumb { color: var(--muted); font-weight: 500; }
  .adm-nav { display: flex; gap: var(--s-1); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: var(--s-1); border-radius: var(--r-btn); background: var(--raised); }
  .adm-nav a { color: var(--text2); text-decoration: none; padding: var(--s-1) var(--s-3); border-radius: var(--r-chip); white-space: nowrap; font-weight: 500; }
  .adm-nav a:hover { color: var(--text); }
  .adm-nav a[aria-current="page"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-card); }
  .adm-who { margin-left: auto; display: grid; justify-items: end; color: var(--text2); font-size: var(--fs-meta); line-height: var(--lh-section); white-space: nowrap; }
  .adm-main { padding: var(--s-8); display: grid; gap: var(--s-6); align-content: start; }

  /* Title + stat strip */
  .adm-head { display: flex; align-items: flex-end; gap: var(--s-8); flex-wrap: wrap; }
  .adm-titles { display: grid; gap: var(--s-1); min-width: 0; }
  .adm-back { color: var(--muted); font-size: var(--fs-meta); text-decoration: none; }
  .adm-back::before { content: "← "; }
  .adm-back:hover { color: var(--text); }
  .adm-h1 { font-family: var(--font-display); font-size: var(--fs-name-standalone); font-weight: 700; margin: 0; overflow-wrap: anywhere; line-height: var(--lh-title); }
  .adm-h3 { font-size: var(--fs-body); font-weight: 600; margin: var(--s-4) 0 var(--s-2); }
  .adm-strip { display: flex; flex-wrap: wrap; margin: 0; }
  .adm-strip > div { display: grid; gap: var(--s-1); padding: 0 var(--s-6); border-left: var(--hair) solid var(--line); }
  .adm-strip dt { color: var(--muted); font-size: var(--fs-meta); }
  .adm-strip .adm-tone-money dd, .adm-strip .adm-tone-people dd, .adm-strip .adm-tone-warn dd { color: var(--tone); }
  .adm-strip dd { margin: 0; font-family: var(--font-mono); font-size: var(--fs-figure-card); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }

  /* Sections */
  .adm-sec { display: grid; gap: var(--s-3); scroll-margin-top: calc(var(--s-16) + var(--s-12)); }
  .adm-sec-head { display: flex; align-items: baseline; gap: var(--s-3); }
  .adm-sec-head h2 { font-size: var(--fs-section); font-weight: 600; margin: 0; }
  .adm-sec-head > :last-child:not(h2) { margin-left: auto; }
  .adm-sec-note { margin: 0; color: var(--muted); max-width: calc(var(--container) * 0.66); }
  .adm-jump { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); position: sticky; top: var(--s-16); z-index: var(--z-sticky); padding: var(--s-2) 0; background: var(--bg); border-bottom: var(--hair) solid var(--line); }
  .adm-jump a { color: var(--text2); text-decoration: none; font-weight: 500; }
  .adm-jump a:hover { color: var(--text); }

  /* Stat cards */
  .adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--s-34) + var(--s-16)), 1fr)); gap: var(--s-3); }
  .adm-stat { background: var(--surface); border: var(--hair) solid var(--line); border-radius: var(--r-inset); padding: var(--s-3) var(--s-4); display: grid; gap: var(--s-1); }
  .adm-stat-label { color: var(--muted); font-size: var(--fs-meta); }
  .adm-stat-value { font-family: var(--font-mono); font-size: var(--fs-figure-card); font-weight: 600; font-variant-numeric: tabular-nums; line-height: var(--lh-title); }
  .adm-stat-note { color: var(--muted); font-size: var(--fs-meta); }
  .adm-stat-label { display: flex; align-items: center; gap: var(--s-2); }
  .adm-stat-dot { width: var(--dot); height: var(--dot); border-radius: var(--r-round); background: var(--tone); flex: none; }

  /* Tones (D-636): what a figure's colour means. Money green, people violet, ok green, warn amber, off grey. */
  .adm-tone-money { --tone: var(--fund-dot); }
  .adm-tone-people { --tone: var(--hire-dot); }
  .adm-tone-ok { --tone: var(--done); }
  .adm-tone-warn { --tone: var(--hl); }
  .adm-tone-off { --tone: var(--skip); }
  .adm-stat.adm-tone-money .adm-stat-value, .adm-stat.adm-tone-people .adm-stat-value, .adm-stat.adm-tone-warn .adm-stat-value { color: var(--tone); }
  .adm-stat.adm-tone-warn { background: var(--hl-bg); border-color: var(--hl-bg); }
  .adm-stat.adm-tone-warn .adm-stat-label, .adm-stat.adm-tone-warn .adm-stat-note { color: var(--text2); }

  /* Toolbar: search + segmented filters + count */
  .adm-toolbar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
  .adm-search { display: flex; gap: var(--s-2); align-items: center; }
  .adm-search .input { width: var(--rail-w); height: var(--control-h); }
  .adm-seg { display: inline-flex; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-btn); background: var(--raised); }
  .adm-seg a { padding: var(--s-1) var(--s-3); border-radius: var(--r-chip); color: var(--text2); text-decoration: none; font-weight: 500; white-space: nowrap; }
  .adm-seg a:hover { color: var(--text); }
  .adm-seg a[aria-current="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-card); }
  .adm-count { font-variant-numeric: tabular-nums; }

  /* Tables in one card */
  .adm-tablewrap { overflow-x: auto; background: var(--surface); border: var(--hair) solid var(--line); border-radius: var(--r-inset); }
  .adm-table { width: 100%; border-collapse: collapse; }
  .adm-table th, .adm-table td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: var(--hair) solid var(--line); vertical-align: middle; }
  .adm-table th { color: var(--muted); font-weight: 500; font-size: var(--fs-meta); background: var(--surface); white-space: nowrap; }
  .adm-table tbody tr:hover td { background: var(--raised); }
  .adm-table tr:last-child td { border-bottom: 0; }
  .adm-table .num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
  .adm-table th.num { font-family: var(--font-ui); }
  /* row actions sit in the cell, not in a card of their own */
  .adm-table .adm-actions { padding: 0; background: none; border: 0; border-radius: 0; flex-wrap: nowrap; justify-content: flex-end; }
  .adm-table td:last-child:has(.adm-actions, .adm-form) { text-align: right; }
  .adm-table a { color: var(--text); }
  .adm-empty { color: var(--muted); margin: 0; }
  p.adm-empty.adm-tablewrap { padding: var(--s-6) var(--s-4); text-align: center; }
  .adm-user { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
  .adm-user b { font-weight: 600; }
  .adm-avatar { display: grid; place-items: center; width: var(--logo-sm); height: var(--logo-sm); flex: none; border-radius: var(--r-round); background: var(--raised); color: var(--text); font-weight: 600; font-size: var(--fs-chip); }
  .adm-block { display: block; font-size: var(--fs-meta); }
  .adm-more { margin-left: auto; }
  .adm-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }

  /* Plan chip, status dot, quota meter */
  .adm-plan { display: inline-flex; align-items: center; height: var(--s-5); padding: 0 var(--s-2); border-radius: var(--r-chip); font-size: var(--fs-chip); font-weight: 600; white-space: nowrap; }
  .adm-plan-business { background: var(--text); color: var(--on-ink); }
  .adm-plan-pro { background: var(--raised); color: var(--text); }
  .adm-plan-free { border: var(--hair) solid var(--line2); color: var(--text2); }
  .adm-dot { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
  .adm-dot i { width: var(--dot); height: var(--dot); border-radius: var(--r-round); background: var(--line2); flex: none; }
  .adm-dot-ok i { background: var(--ok-dot); }
  .adm-dot-info i { background: var(--hire-dot); }
  .adm-dot-warn { color: var(--hl); }
  .adm-dot-warn i { background: var(--hl); }
  .adm-dot-off { color: var(--muted); }
  .adm-meter { display: inline-flex; align-items: center; gap: var(--s-3); white-space: nowrap; }
  .adm-meter-track { position: relative; display: inline-block; width: var(--s-24); height: var(--s-1); border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
  .adm-meter-track span { position: absolute; inset: 0 auto 0 0; background: var(--text2); border-radius: var(--r-pill); }
  .adm-meter.is-full .adm-meter-track span { background: var(--hl); }

  /* Bars (trends) */
  .adm-trends { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--rail-w), 1fr)); gap: var(--s-3); }
  .adm-bars { margin: 0; display: grid; gap: var(--s-3); padding: var(--s-4); background: var(--surface); border: var(--hair) solid var(--line); border-radius: var(--r-inset); }
  .adm-bars figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); font-weight: 600; }
  .adm-bars-total { color: var(--muted); font-weight: 500; font-size: var(--fs-meta); font-variant-numeric: tabular-nums; }
  .adm-bars.adm-tone-money .adm-bar-fill, .adm-bars.adm-tone-people .adm-bar-fill, .adm-bars.adm-tone-warn .adm-bar-fill { background: var(--tone); opacity: 0.55; }
  .adm-bars.adm-tone-money .adm-bars-plot .adm-bar:last-child .adm-bar-fill,
  .adm-bars.adm-tone-people .adm-bars-plot .adm-bar:last-child .adm-bar-fill,
  .adm-bars.adm-tone-warn .adm-bars-plot .adm-bar:last-child .adm-bar-fill { opacity: 1; }
  .adm-bars.is-empty .adm-bar-v { visibility: hidden; }
  .adm-bars-plot { display: flex; align-items: stretch; gap: var(--s-1); height: var(--s-34); }
  .adm-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: var(--s-1); }
  .adm-bar-fill { width: 100%; min-height: var(--hair); max-height: calc(100% - var(--s-10)); border-radius: var(--r-chip) var(--r-chip) 0 0; background: var(--text2); }
  .adm-bar-v, .adm-bar-l { font-family: var(--font-mono); font-size: var(--fs-kbd); color: var(--muted); white-space: nowrap; }
  .adm-bar-v { color: var(--text2); }
  .adm-bars-plot .adm-bar:last-child .adm-bar-fill { background: var(--text); }

  /* Forms and actions */
  .adm-form { display: inline-flex; align-items: flex-end; gap: var(--s-2); margin: 0; flex-wrap: wrap; }
  .adm-field { display: grid; gap: var(--s-1); color: var(--muted); font-size: var(--fs-meta); font-weight: 500; }
  .adm-field .input { height: var(--control-h-sm); font-size: var(--fs-secondary); color: var(--text); }
  .adm-field-wide .input { width: min(100%, calc(var(--container) / 3)); }
  .adm-field textarea.input { height: auto; padding: var(--s-2) var(--s-3); }
  .adm-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--rail-w) + var(--s-16)), 1fr)); background: var(--surface); border: var(--hair) solid var(--line); border-radius: var(--r-inset); overflow: hidden; }
  .adm-dl > div { display: grid; grid-template-columns: calc(var(--s-34) - var(--s-6)) minmax(0, 1fr); gap: var(--s-3); padding: var(--s-2) var(--s-4); border-bottom: var(--hair) solid var(--line); }
  .adm-dl dt { color: var(--muted); }
  .adm-dl dd { margin: 0; overflow-wrap: anywhere; }
  .adm-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: flex-end; padding: var(--s-3); background: var(--surface); border: var(--hair) solid var(--line); border-radius: var(--r-inset); }
  .adm-filters { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
  .adm-filters .input, .adm-form .input { height: var(--control-h-sm); font-size: var(--fs-secondary); }
  .adm-check { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--text2); }
  .adm-tabs { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
  .adm-tabs a { color: var(--text2); text-decoration: none; padding: var(--s-1) 0; border-bottom: var(--rule) solid transparent; }
  .adm-tabs a:hover { color: var(--text); }
  .adm-tabs a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--text); }
  .adm-sep { width: var(--hair); height: var(--s-4); background: var(--line2); }
  .adm-pager { display: flex; gap: var(--s-2); align-items: center; }
  .adm-pager a { display: inline-flex; align-items: center; height: var(--control-h); padding: 0 var(--s-4); border: var(--hair) solid var(--line2); border-radius: var(--r-btn); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; }
  .adm-pager a:hover { background: var(--raised); }
  .adm-mono { font-family: var(--font-mono); font-size: var(--fs-meta); overflow-wrap: anywhere; }
  .adm-muted { color: var(--muted); }
  .adm-flash { margin: 0; padding: var(--s-3) var(--s-4); background: var(--surface); border: var(--hair) solid var(--line2); border-radius: var(--r-inset); font-weight: 500; }
  .adm-flash-err { background: var(--hl-bg); border-color: var(--hl-bg); color: var(--text); }
  .adm-reveal { padding: var(--s-3); background: var(--surface); border: var(--hair) solid var(--line2); border-radius: var(--r-inset); user-select: all; }
  .adm-copy { width: 100%; height: auto; padding: var(--s-2) var(--s-3); font-family: var(--font-mono); font-size: var(--fs-meta); }
  .adm-narrow { width: calc(var(--s-34) + var(--s-6)); }
  .adm-wide { width: min(100%, calc(var(--container) / 2)); }
  .adm-edit { display: grid; gap: var(--s-2); max-width: calc(var(--container) * 0.66); }
  .adm-kv { display: grid; grid-template-columns: calc(var(--s-34) + var(--s-4)) minmax(0, 1fr); gap: var(--s-3); align-items: start; }
  .adm-kv > span { color: var(--muted); padding-top: var(--s-1); font-family: var(--font-mono); font-size: var(--fs-meta); }
  .adm-kv textarea.input { height: auto; padding: var(--s-2) var(--s-3); }
  .adm .chips { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin: 0; }
  .adm .chips a { color: var(--text); }

  @media (max-width: 48em) {
    .adm-top { padding: 0 var(--s-4); gap: var(--s-2); }
    .adm-crumb, .adm-who { display: none; }
    .adm-main { padding: var(--s-4); }
    .adm-strip > div { padding: var(--s-2) var(--s-4) var(--s-2) 0; border-left: 0; }
    .adm-search, .adm-search .input { width: 100%; }
  }
}

/* touch.css */
/* Touch layer, last in the cascade, so it wins over every screen's own sizes on a touch screen only (pointer: fine
   keeps the desktop sizes). Text fields are at least 16px, or iOS Safari zooms the page when one takes focus and
   leaves it zoomed; fields are a thumb tall, like buttons (components.css); keyboard hints are hidden. Tokens only. */
@layer touch {
  @media (pointer: coarse) {
    input.input, select.input { min-height: var(--touch-min); }
    .shell .kbd { display: none; }
    /* A list with pull to refresh (src/app/lib/pull.tsx) keeps its overscroll: Chrome would otherwise chain a pull at
       the top to the page and reload the whole app. */
    .ptr-box { overscroll-behavior-y: contain; }
    :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"]), select, textarea):not(.lg-code input) { font-size: max(var(--u-16), 1em); }
  }
}
