/* ════════════════════════════════════════════════════════════════════
   tokens.css — the ONLY file with colour, font, size, spacing, line and ornament values (SU-157).
   Change a value here and every page and kit component follows; nothing else may hold a colour literal
   (test/catalog.test.js) and public/kit/*.css may hold no colour or length literal at all (test/kit-style.test.js).

   0 · classic   the pre-redesign :root tokens, moved here verbatim from base.css. Admin and Advanced pages read them
                 (and so do member pages not yet converted to the kit). Pixel-identical: test:visual --strict.
   1 · raw       the palette of the new look ("Lapis & gold", palette b, round4/B-final/NOTES.md): hex / rgb only here.
   2 · sub       semantic tokens of the new look — colours (LIGHT) plus every type, space, line, size, motion and ornament
                 value. Scope: any element with data-look="sub" (<html> in Simple mode / logged out, a converted #view, a
                 gallery column).
   3 · dark      the same colour names, night values. THE ONLY BLOCK A DARK REVISION EDITS. It applies when the element
                 also has data-theme="dark". data-theme is always set by script (public/theme-boot.js): "auto" follows the
                 phone (prefers-color-scheme, re-resolved on change), the member can override it (Account → Appearance).
                 So the dark block exists once and is never duplicated under @media. test/tokens.test.js: every colour in 2
                 has a dark twin in 3 and the reverse; the text pairs it lists are ≥ 4.5:1 in both themes.
   4 · config    values picked by public/design.config.js (numbered alternatives, e.g. ribbon darkness 1|2|3). Config
                 chooses; the values still live here.
   5 · bridge    classic names → semantic ones, for shared classic widgets drawn inside a converted page. Scoped below
                 <html> on purpose: on <html> it would repaint every unconverted classic page (phase I moves it up).
   6 · workstream blocks (append-only): [A] [B] [C] [D] [E] — a new semantic token needs a light and a dark value.
   ════════════════════════════════════════════════════════════════════ */

/* 0 · classic (moved verbatim from base.css) */
:root{--bg:#070d18;--panel:#0f1829;--panel2:#142036;--txt:#e8edf5;--dim:#95a2b6;--faint:#6b7891;--line:#1f2b40;--line2:#2b3a55;
  --cyan:#2fc79a;--gold:#d9b45b;--amber:#f2b84b;--green:#3ddc9f;--red:#f47c7c;--magenta:#c026d3;--ink:#070d18;--blue:#6ea8fe;
  /* Accent (SU-102, emerald): primary buttons, selected segments, links, the primary "where next" item. accent-sub = quiet text on the
     accent fill; accent-soft = the accent's tinted ground (pressed "Following" buttons, the brand mark's halo) */
  --accent:var(--cyan);--accent-ink:#04241b;--accent-sub:#0d4b3b;--accent-soft:#0f3a30;
  /* Semantic grounds for pills and tiles (SU-102): up / watch (candidates, "being watched") / down / none */
  --up-soft:#0f3328;--watch:var(--amber);--watch-soft:#3a2c0d;--down-soft:#3a1719;--none-soft:#172238;
  /* Shape (SU-102): one radius for cards, a smaller one for controls, pills fully round */
  --r-card:14px;--r-ctl:10px;--r-sm:6px;--r-pill:999px;
  /* Type (SU-102): IBM Plex Sans for reading, IBM Plex Mono (tabular figures) for numbers, prices, keys and code-like labels.
     Self-hosted Latin subsets in /fonts (SIL OFL, fonts/OFL.txt); Chinese and symbols fall back to the system faces */
  --sans:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,"SF Mono",Menlo,"PingFang SC",monospace;
  /* RGB channels for translucent tints: rgba(var(--rgb-x),alpha). up / down = the candle green / red */
  --rgb-amber:242,184,75;--rgb-cyan:47,199,154;--rgb-gold:217,180,91;--rgb-green:61,220,159;--rgb-red:244,124,124;--rgb-dim:149,162,182;
  --rgb-magenta:192,38,211;--rgb-txt:232,237,245;--rgb-up:61,220,159;--rgb-down:244,124,124;--rgb-shade:3,6,12;--rgb-hair:214,222,238;
  /* Soft text tints on notices / errors, hover and ink variants */
  --red-soft:#ffb8b8;--cyan-soft:#a9ecd5;--green-soft:#a9f0d2;--red-hover:#ff9a9a;--gold-ink:#3a2e0c;--tip-text:#b8c3d6;--white:#fff;
  /* Charts: candles, grid / baseline greys, reference lines, labels; series colours for one-colour-per-strategy charts */
  --candle-up:rgb(var(--rgb-up));--candle-down:rgb(var(--rgb-down));--chart-grid:#111b2d;--chart-grid-strong:#1b2740;--chart-baseline:#3a4a68;
  --chart-ref:#74839f;--mask-solid:#000;--chart-label:rgb(var(--rgb-hair));
  --series-1:var(--amber);--series-2:var(--blue);--series-3:var(--candle-up);--series-4:var(--magenta);--series-5:#a78bfa;--series-6:#fb923c;
  --series-7:#22d3ee;--series-8:var(--candle-down)}

/* 1 · raw palette of the new look (palette b: banknote inks and papers) */
:root{
  --c-ink:#1D1F1D;--c-ink-deep:#121314;--c-ink-soft:#4D5156;--c-ink-faint:#5A5E64;--c-paper:#F2F0E8;--c-paper-rule:#D5D2C8;
  --c-cream:#F6F1E1;--c-cream-ink:#1A1A17;--c-cream-ink2:#55534B;--c-cream-ink3:#5F5C52;--c-cream-rule:rgba(26,26,23,.2);--c-cream-field:#FFFEFA;
  --c-bone:#F3F2EC;--c-bone2:#E9E4D4;--c-white:#FFFFFF;--c-google-ink:#1F1F1F;--c-google-line:#747775;
  --c-gold:#D4AE48;--c-gold-mute:#BE9B4A;--c-gold-tint:rgba(176,138,30,.12);--c-gold-tint-night:rgba(212,174,72,.14);--c-gold-400:#CBA64F;--c-gold-600:#B08A1E;--c-gold-700:#9A7A1C;--c-gold-step:#C9A23A;--c-gold-rule:rgba(201,162,58,.4);
  --c-gold-focus:rgba(201,162,58,.45);--c-ribbon-1:#C9A23A;--c-ribbon-2:#9C7E35;--c-ribbon-3:#7A6230;--c-band-lozenge:#B8962E;--c-band-lapis:#22346B;
  --c-dots:#F3EBD3;
  --c-green-700:#17703B;--c-green-600:#1F8A4C;--c-green-300:#72D69D;--c-red-700:#B3261E;--c-red-300:#F48D7E;
  --c-night:#111311;--c-night-rule:#262A33;--c-navy:#0F1834;--c-navy-rule:#2C3766;--c-navy-field:#070C1F;--c-mist:#B4BBD1;--c-mist2:#9AA3BF;
  --c-skel:#E6E0CD;--c-skel-hi:rgba(255,255,255,.55);--c-skel-night:#1C2747;--c-skel-night-hi:rgba(255,255,255,.07);
  --c-shadow-1:rgba(0,0,0,.06);--c-shadow-2:rgba(60,45,10,.22);--c-scrim:rgba(0,0,0,.55);--c-menu-shadow:rgba(0,0,0,.35)}

/* our own "v" on an auto-width select (appearance:none) in both looks: the native arrow's width came from the host OS (fix-0470) */
:root{--st-chevron:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%)}

/* 2 · sub: colours (LIGHT) + every non-colour value of the new look */
[data-look=sub]{
  /* page */        --st-page:var(--c-paper);--st-page-ink:var(--c-ink);--st-page-ink2:var(--c-ink-soft);--st-page-ink3:var(--c-ink-faint);
                    --st-page-rule:var(--c-paper-rule);
  /* header + nav */--st-fascia:var(--c-ink);--st-fascia-ink:var(--c-bone);--st-fascia-rule:var(--c-gold-rule);--st-nav-ink:var(--c-bone2);
                    --st-nav-on:var(--c-gold);--st-acct-line:var(--c-gold-400);--st-mark-ring:var(--c-gold-400);--st-mark:var(--c-gold);
                    --st-tt:var(--c-gold-400);--st-login:var(--c-gold);--st-login-ink:var(--c-ink);
  /* card */        --st-card:var(--c-cream);--st-card-ink:var(--c-cream-ink);--st-card-ink2:var(--c-cream-ink2);--st-card-ink3:var(--c-cream-ink3);
                    --st-card-rule:var(--c-cream-rule);--st-frame:var(--c-gold-600);--st-corner:var(--c-gold-700);--st-field:var(--c-cream-field);
                    --st-field-ink:var(--c-cream-ink);--st-dock-line:var(--c-ink);--st-legal-ink:var(--c-cream-ink3);--st-skel:var(--c-skel);--st-skel-hi:var(--c-skel-hi);--st-shadow-a:var(--c-shadow-1);--st-shadow-b:var(--c-shadow-2);
  /* meaning */     --st-up:var(--c-green-700);--st-down:var(--c-red-700);--st-gold:var(--c-gold);--st-tick:var(--c-green-700);--st-tick-ink:var(--c-white);
                    --st-step:var(--c-gold-step);--st-step-ink:var(--c-ink-deep);--st-rosette:var(--c-gold-700);--st-medal:var(--c-gold-600);
  /* google */      --st-google:var(--c-white);--st-google-ink:var(--c-google-ink);--st-google-line:var(--c-google-line);
  /* actions */     --st-act:var(--c-ink);--st-act-ink:var(--c-gold);--st-sel:var(--c-gold-tint);--st-sel-ink:var(--c-cream-ink);--st-sel-edge:var(--c-gold-600);--st-focus:var(--c-gold-focus);--st-scrim:var(--c-scrim);--st-menu-shadow:var(--c-menu-shadow);
  /* ornaments */   --st-ribbon-c1:var(--c-ribbon-1);--st-ribbon-c2:var(--c-ribbon-2);--st-ribbon-c3:var(--c-ribbon-3);--st-band-lozenge:var(--c-band-lozenge);
                    --st-band-lapis:var(--c-band-lapis);--st-dots:var(--c-dots);
  /* chart */       --st-chart-strategy:var(--c-cream-ink);--st-chart-hold:var(--c-cream-ink2);--st-chart-grid:var(--c-cream-rule);
                    --st-chart-label:var(--c-cream-ink2);--st-chart-level-s:var(--c-green-700);--st-chart-level-r:var(--c-red-700);
                    --st-chart-now:var(--c-cream-ink);
  /* type */        --st-sans:"Overpass",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--st-serif:"Markazi Text",Georgia,"Times New Roman",serif;
                    --st-fs-page:28px;--st-fs-body:16px;--st-fs-small:14px;--st-fs-fine:13px;--st-fs-min:12px;--st-fs-title:24px;--st-fs-word:22px;--st-fs-word-dim:19px;
                    --st-fs-wordmark:19px;--st-fs-nav:16px;--st-fs-acct:15px;--st-fs-seal:22px;--st-fs-seal-k:12px;--st-fs-num:24px;--st-fs-num-xl:36px;
                    --st-fs-hero:40px;--st-fs-hero-wide:64px;--st-fs-dock:16px;--st-fs-legal:12px;
                    --st-fw-body:400;--st-fw-semi:600;--st-fw-bold:700;--st-fw-heavy:800;
                    --st-lh-body:1.5;--st-lh-snug:1.3;--st-lh-tight:1.05;--st-lh-one:1;--st-lh-dock:1.35;
                    --st-ls-wordmark:.12em;--st-ls-caps:.05em;--st-ls-none:0;
  /* space */       --st-sp-0:2px;--st-sp-1:4px;--st-sp-2:6px;--st-sp-3:10px;--st-sp-4:12px;--st-sp-5:16px;--st-sp-6:20px;--st-sp-7:32px;
                    --st-auth-w:400px;--st-gutter:12px;--st-gutter-wide:48px;--st-page-max:640px;--st-wide-max:1180px;--st-menu-w:300px;
  /* lines */       --st-line-hair:1px;--st-line-frame:1.5px;--st-line-title:2px;--st-line-field:2px;--st-line-rule:1.5px;--st-line-left:3px;
  /* sizes */       --st-tap:44px;--st-tap-min:44px;--st-tap-main:48px;--st-door-h:56px;--st-fs-door:18px;--st-fascia-h:48px;--st-acct-h:44px;--st-nav-h:48px;--st-mark-size:28px;
                    --st-icon:18px;--st-band-h:14px;--st-band-tile:15px;--st-band-centre:150px;--st-dots-w:390px;--st-dots-h:70px;
                    --st-band-c-h:8px;--st-band-c-tile:36px;--st-corner-size:22px;--st-corner-inset:7px;--st-seal:66px;--st-tick-size:22px;
                    --st-diamond:9px;--st-double:5px;--st-medal-size:72px;--st-medal-wide:100px;--st-rosette-size:200px;
                    --st-dock-lines:3;--st-burger-h:16px;--st-tt-bar:.3em;--st-vvh:100vh;--st-dock-pad-y:10px;--st-dock-pad-x:12px;--st-dock-send:44px;--st-seal-gap:3px;--st-seal-ring:4px;--st-r-ctl:8px;--st-r-card:12px;--st-r-chip:999px;--st-r-badge:5px;--st-radius:var(--st-r-ctl);--st-radius-dot:50%;
  /* card */        --st-shadow-card:0 1px 2px var(--st-shadow-a),0 6px 18px -8px var(--st-shadow-b);--st-op-disabled:.45;
  /* ornament */    --st-ribbon-op1:.7;--st-ribbon-op2:.5;--st-ribbon-op3:.42;--st-rosette-op:.15;--st-dots-op:1;--st-band-op:1;
  /* motion */      --st-dur-seal:.26s;--st-dur-quick:.15s;--st-dur-shimmer:1.8s;--st-dur-spin:1.6s;--st-dur-pulse:2s;--st-spin-s:22px;--st-spin-m:34px;
  /* skeleton */    --st-skel-crumb:30%;--st-skel-head:65%;--st-skel-date:55%;--st-skel-title:70%;--st-skel-label:45%;--st-skel-value:25%;
                    --st-skel-from:-50%;--st-skel-to:150%}

/* 3 · dark — colour values only, same names as section 2 */
[data-look=sub][data-theme=dark]{
  --st-page:var(--c-night);--st-page-ink:var(--c-bone);--st-page-ink2:var(--c-mist);--st-page-ink3:var(--c-mist2);--st-page-rule:var(--c-night-rule);
  --st-fascia:var(--c-ink);--st-fascia-ink:var(--c-bone);--st-fascia-rule:var(--c-gold-rule);--st-nav-ink:var(--c-bone2);
  --st-nav-on:var(--c-gold);--st-acct-line:var(--c-gold-400);--st-mark-ring:var(--c-gold-400);--st-mark:var(--c-gold);
  --st-tt:var(--c-gold-400);--st-login:var(--c-gold);--st-login-ink:var(--c-ink);
  --st-card:var(--c-navy);--st-card-ink:var(--c-bone);--st-card-ink2:var(--c-mist);--st-card-ink3:var(--c-mist2);
  --st-card-rule:var(--c-navy-rule);--st-frame:var(--c-gold-400);--st-corner:var(--c-gold-400);--st-field:var(--c-navy-field);
  --st-field-ink:var(--c-bone);--st-dock-line:var(--c-mist);--st-legal-ink:var(--c-mist2);--st-skel:var(--c-skel-night);--st-skel-hi:var(--c-skel-night-hi);--st-shadow-a:transparent;--st-shadow-b:transparent;
  --st-up:var(--c-green-300);--st-down:var(--c-red-300);--st-gold:var(--c-gold);--st-tick:var(--c-green-600);--st-tick-ink:var(--c-white);
  --st-step:var(--c-gold-step);--st-step-ink:var(--c-ink-deep);--st-rosette:var(--c-gold-400);--st-medal:var(--c-gold-400);
  --st-google:var(--c-white);--st-google-ink:var(--c-google-ink);--st-google-line:var(--c-google-line);
  --st-act:var(--c-gold-mute);--st-act-ink:var(--c-ink);--st-sel:var(--c-gold-tint-night);--st-sel-ink:var(--c-bone);--st-sel-edge:var(--c-gold-400);--st-focus:var(--c-gold-focus);--st-scrim:var(--c-scrim);--st-menu-shadow:var(--c-menu-shadow);
  --st-ribbon-c1:var(--c-ribbon-1);--st-ribbon-c2:var(--c-ribbon-2);--st-ribbon-c3:var(--c-ribbon-3);--st-band-lozenge:var(--c-band-lozenge);
  --st-band-lapis:var(--c-band-lapis);--st-dots:var(--c-dots);
  --st-chart-strategy:var(--c-gold);--st-chart-hold:var(--c-mist);--st-chart-grid:var(--c-navy-rule);--st-chart-label:var(--c-mist);
  --st-chart-level-s:var(--c-green-300);--st-chart-level-r:var(--c-red-300);--st-chart-now:var(--c-bone);
  --st-rosette-op:.13}

/* 4 · config-picked values: design.config.js picks among the numbered values above (ribbon darkness 1|2|3 →
   --st-ribbon-c1..3 / --st-ribbon-op1..3); the component reads the choice from its own attribute (kit/ribbon.css), so a
   gallery column can show every choice side by side. */

/* 5 · bridge (classic name → semantic), below <html> only — see the header */
[data-look=sub]:not(html){--bg:var(--st-page);--panel:var(--st-card);--panel2:var(--st-field);--txt:var(--st-card-ink);--dim:var(--st-card-ink2);
  --faint:var(--st-card-ink3);--line:var(--st-card-rule);--line2:var(--st-card-rule);--accent:var(--st-act);--accent-ink:var(--st-act-ink);
  --green:var(--st-up);--red:var(--st-down);--sans:var(--st-sans)}

/* 6 · workstream blocks (append-only, one per phase) */
/* [A] */
[data-look=sub]{--st-chart-h:180px}
/* [B] the conversation drawer (phase B, FE-3): its stacking, phone height and wide-screen width (no colours) */
[data-look=sub]{--st-z-drawer:25;--st-drawer-h:62vh;--st-drawer-w:440px}
/* [C] */
/* [D] SU-172: on a phone Ask Oracle's box is 44 px at rest (one line, 16 px × 1.35 + 2 × 9.2 px + the 2 px border;
   ui-density 2026-10-24: never under the 44 px tap floor) — the strip and the box leave the page room; three lines at most is 87 px */
@media (max-width:720px){[data-look=sub]{--st-dock-pad-y:9.2px}}
/* [E] */
[data-look=sub]{--st-scenario-key:88px;--st-map-h:320px}
/* [UX-2] the small 3/3 seal on the Follow list (UX gate 0.8.0 #5) */
[data-look=sub]{--st-seal-sm:58px;--st-fs-seal-sm:18px;--st-fs-seal-k-sm:12px}
