/* Kumii v5 tokens (design §4, measured 16 Oct 2026). Light by default; dark on <html data-theme="dark">.
   The chart colours are palette.ts's at main 171858c, with its ink for a label drawn on a mark; the check measures
   them again on v5's own surfaces. Glass in every theme since round 14 (Rob, 19 Oct: "the light can also be glass so
   it's all uniform just different colors for the eyes"): white glass and ink glass in light, navy glass in dark. */
:root {
  color-scheme: light;
  /* Ivory, not white (round 22; the navy-and-gold palettes, images 29 and 30; §11's question four): a warm canvas the cards
     stand off, the secondary words 5.4:1 on it; the lines, tiles and tracks warm with it. */
  --canvas: #F5F1E6; --panel: #FFFFFF; --panel-2: #F1EDE3; --line: #E3DFD4;
  --ink: #16181C; --ink-2: #5C626C; --ink-3: #8A9099;
  /* The sidebar is light in light (round 15; Rob, 19 Oct, moodboard 234: "the light nav bar can also be light color
     right?"), as navy is in dark: the same sidebar in each theme's colours. This reverses A8 (a dark sidebar beside the
     light page). The page you are on keeps its gold: words in a deep gold that reads on white, on a gold pill. */
  --side: #FFFFFF; --side-ink: #16181C; --side-ink-2: #5C626C; --side-line: #E3DFD4;
  --nav-on: var(--gold-word); --nav-hover: rgba(22,24,28,.05); --avatar-ink: var(--gold-word);
  /* Gold words in light are the deep gold that reads on white and ivory, #7E6220 (a shade deeper than #8A6B26 since the
     ivory canvas, round 22, to keep 4.5:1 on the nav's pill): the page you are on, the person's initial, and since round
     25 the month's finding's label. Nothing in light sets gold words on ink any more: the finding is light too. */
  --gold: #DAB970; --gold-word: #7E6220; --gold-rule: #CDAE67;
  /* The edge light's halo as strong as dark's (round 18; Rob, 19 Oct: "the dark has glass and glow while white not"). */
  --seam: #CDAE67; --halo: .6;
  /* The main numbers' light is dark's alone (round 21): under the hero's figure the gold glow on white read as the smudge
     §4.7 said it would. In light the hero's gold is its edge light. */
  --figure-light: none;
  --warn: #AC571D; --focus: #16181C;
  --btn-bg: #16181C; --btn-ink: #FFFFFF;
  --chip-track: #ECE7DC; --chip-on: #FFFFFF; --chip-on-ink: #16181C; --chip-on-shadow: 0 1px 2px rgba(16,24,40,.12);
  --card-shadow: 0 1px 2px rgba(16,24,40,.05);
  /* Light's glass: white for the header band, the sidebar and (round 25; Rob: "also light but highlighted … more uniform")
     the month's finding, each dense enough that its words keep their contrast over the canvas showing through; the
     finding's is the densest, as it holds a sentence. Dark's finding is dark's glass (below): one treatment in both. */
  --glass-bg: rgba(255,255,255,.55); --glass-blur: 14px; --glass-rim: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 0 rgba(16,24,40,.04);
  --side-glass: rgba(255,255,255,.62);
  --finding-glass: rgba(255,255,255,.82); --finding-rim: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(16,24,40,.05);
  --c-surface: #FFFFFF; --c-ink: #16181C; --c-muted: #5C626C; --c-grid: #EAEAE6; --c-neutral: #545460;
  /* Vivid, from neon's own hues (round 13; Rob, 19 Oct: "a bit more uniform style between the dark and light and the
     navy as well"): one family across the themes, deep enough for white, held to palette.test.ts's light rules (the
     check, group neon). The promoter green now clears 3:1 on white, so light keeps one under-3:1 mark only,
     ramp step 1, which is labelled. palette.ts ships today: keune #D64B43, miiki #0A8C76, detractor #A32240, promoter
     #45B87E, ramp #7FA3EA to #213866. */
  --c-keune: #E2333C; --c-miiki: #018B7C;
  --c-detractor: #A40040; --c-passive: #8A9099; --c-promoter: #32A155; /* a step softer: it fills the largest areas */
  --c-detractor-ink: #FFFFFF; --c-passive-ink: #16181C; --c-promoter-ink: #16181C;
  --c-ramp-1: #7DAAFD; --c-ramp-2: #568EF9; --c-ramp-3: #306CE2; --c-ramp-4: #1B56CA; --c-ramp-5: #1043A8; --c-ramp-6: #0B3382;
  --c-ramp-1-ink: #16181C; --c-ramp-2-ink: #16181C; --c-ramp-3-ink: #FFFFFF; --c-ramp-4-ink: #FFFFFF; --c-ramp-5-ink: #FFFFFF; --c-ramp-6-ink: #FFFFFF;
  --font: "Inter", "Segoe UI", system-ui, sans-serif; --font-title: var(--font);
  --radius: 16px; --radius-2: 12px; --radius-btn: 9px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0B1220; --panel: #131D33; --panel-2: #172238; --line: rgba(255,255,255,.07);
  --ink: #E8ECF2; --ink-2: #A3ACBA; --ink-3: #6C7381;
  --side: #0E1628; --side-ink: #E8ECF2; --side-ink-2: #A3ACBA; --side-line: rgba(255,255,255,.07);
  --gold-word: #E8C987; --gold-rule: #DAB970;
  --seam: #E8C987; --halo: .6;
  --figure-light: 0 0 16px rgba(232, 236, 242, .22), 0 7px 24px rgba(232, 201, 135, .24);
  --warn: #ED914C; --focus: #E8C987;
  --btn-bg: #DAB970; --btn-ink: #141A26;
  --chip-track: rgba(255,255,255,.05); --chip-on: rgba(255,255,255,.10); --chip-on-ink: #E8C987; --chip-on-shadow: none;
  --card-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  --glass-bg: rgba(255,255,255,.045); --glass-rim: inset 0 1px 0 rgba(255,255,255,.07); --finding-glass: var(--glass-bg); --finding-rim: var(--glass-rim);
  --side-glass: var(--glass-bg); --nav-on: var(--gold-word); --nav-hover: rgba(255,255,255,.05); --avatar-ink: var(--gold-word);
  --c-surface: #131D33; --c-ink: #E9ECF1; --c-muted: #A0A7B4; --c-grid: #1E2A42; --c-neutral: #C4C9D2;
  /* Neon (below): the marks are set there. */
}
/* Neon in dark (Rob, 19 Oct: "make the dark setting colors pop more. like neon but not too much"): the same families,
   brighter and purer, measured with palette.test.ts's own rules (checks/check-v5.cjs, group neon): the brands and the
   band poles stay apart for a colour-blind reader, the passive grey keeps SDD §6's margins, there is still no third
   green, and every label holds 4.5:1 on its segment. ⚠️ Its hued marks sit at OKLCH lightness 0.70–0.76, above SDD
   §6's dark band (0.48–0.67, "brighter blooms instead of reading as data"): that bloom is the neon, so the restyle
   amends SDD §6 and palette.ts: Rob kept it (19 Oct, "I love the neon"). palette.ts ships the calm set today (keune #EE5A52,
   miiki #0EA88F, promoter #34A870, detractor #C0344F, passive #8A9099, ramp #3A5FA8 to #BBD3FA). */
:root[data-theme="dark"] {
  --c-keune: #FF6367; --c-miiki: #07BBA4;
  --c-detractor: #D50B56; --c-passive: #959CA6; --c-promoter: #3AC570; --c-neutral: #D5DAE1; /* the promoter a step softer: it fills the largest areas */
  --c-detractor-ink: #FFFFFF; --c-passive-ink: #131519; --c-promoter-ink: #131519;
  --c-ramp-1: #1251CC; --c-ramp-2: #2D69DE; --c-ramp-3: #5088F2; --c-ramp-4: #73A3FC; --c-ramp-5: #9BBEFF; --c-ramp-6: #C3D8FF;
  --c-ramp-1-ink: #FFFFFF; --c-ramp-2-ink: #FFFFFF; --c-ramp-3-ink: #131519; --c-ramp-4-ink: #131519; --c-ramp-5-ink: #131519; --c-ramp-6-ink: #131519;
}
/* Dark base black: the panels on palette.ts's own dark surface (#131519), where its marks were measured. */
:root[data-theme="dark"][data-base="black"] { --canvas: #0B0C0E; --panel: #131519; --panel-2: #1B1D22; --side: #0F1013; --c-surface: #131519; --c-grid: #1E222A; }
/* The reader's settings (design §12.1). Reading font after the font switch, so it wins. */
:root[data-readfont="hyperlegible"] { --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; }
:root[data-contrast="more"] { --ink-2: #41464F; --line: #8D8F8A; --side-ink-2: #41464F; }
:root[data-theme="dark"][data-contrast="more"] { --ink-2: #C9CFD9; --line: rgba(255,255,255,.38); --side-ink-2: #D5DAE2; }
:root { --chip-on-hi: #FFFFFF; } :root[data-theme="dark"] { --chip-on-hi: rgba(255,255,255,.16); }
/* The tactile switch (Settings → Material → Tactile): a groove pressed in, a raised knob lit from above, and a thin
   dark ring round the knob, which keeps it 3:1 from the groove and from the gold track (the check measures both). */
:root { --knob-groove: #E4E0D6; --knob-hi: #FFFFFF; --knob-lo: #E6E8EB; --knob-ring: rgba(0,0,0,.5); }
:root[data-theme="dark"] { --knob-groove: #0B1220; --knob-hi: #F2F4F7; --knob-lo: #B9C0CB; --knob-ring: rgba(0,0,0,.55); }
:root[data-theme="dark"][data-base="black"] { --knob-groove: #030405; } /* pressed into black's own panel (review, 19 Oct: navy's groove was 1.02:1 on it) */
/* The sticking filter bar's glass, near solid (Rob, 19 Oct: "yes! maybe it's better right?"): the canvas at 88%, so the
   neon scrolling under it never stands behind the filters' words (4.5:1 even over the brightest thing beneath). */
:root { --bar-glass: rgba(245, 241, 230, .93); } /* the ivory canvas at 93%: at 90% the words fell to 4.45:1 over ink scrolling beneath (round 22) */
/* Bars lit from the top (round 22; images 218 and 215): a one-colour bar fills from one ramp step to the next, the top the
   lighter, so both ends are measured marks (light: step 3 down to 4; dark: step 4 down to 3). look.js's #kumii-lit is the
   same gradient for the SVG bars. ⚠️ A bar is no longer "one step": the restyle writes that into SDD §6. */
:root { --lit-top: var(--c-ramp-3); --lit-base: var(--c-ramp-4); --lit-bar: linear-gradient(180deg, var(--lit-top), var(--lit-base)); }
:root[data-theme="dark"] { --lit-top: var(--c-ramp-4); --lit-base: var(--c-ramp-3); }
:root[data-theme="dark"] { --bar-glass: rgba(11, 18, 32, .88); }
/* The phone's bottom bar (round 27), which the whole page scrolls under: in light white glass at 95%, since the page you
   are on keeps its gold words on a gold pill there, and over the darkest thing beneath (ink, ramp step 6) the ivory's 93%
   left them at 4.1:1; white at 95% keeps them at 4.7:1. In the dark themes the filter bar's own near-solid glass. */
:root { --tabbar-glass: rgba(255, 255, 255, .95); }
:root[data-theme="dark"] { --tabbar-glass: var(--bar-glass); }
:root[data-theme="dark"][data-base="black"] { --bar-glass: rgba(11, 12, 14, .88); }
/* The three materials (round 21; Rob, 19 Oct: "more material style … more like glass and there's a glow", "the
   transition clean", "if it's none or flat it also has a good value"): Off is paper, Flat is glass without depth, Tactile
   is glass with depth. In dark a card from Flat on is the panel's own colour at 88% over the canvas, with no blur, so the
   four blurred surfaces stay four and the laptop stays light; composited over the canvas's brightest point it keeps every
   mark's 3:1 (the check measures it). Light keeps its cards opaque: the stone under a translucent white card read as
   stains (round 4). --rim is Flat's one line of light, --depth Tactile's layered shadow, --pool the gold light at the
   page's foot, --tile-face and --tile-depth the raised tile. */
:root { --panel-glass: var(--panel); --rim: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(22,24,28,.04); --depth: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(16,24,40,.06), 0 16px 36px -20px rgba(16,24,40,.28); --pool: rgba(205,174,103,.22); --tile-face: linear-gradient(180deg, #FFFFFF, #ECECE8); --tile-depth: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(16,24,40,.14); }
:root[data-theme="dark"] { --panel-glass: rgba(19,29,51,.86); --rim: inset 0 1px 0 rgba(255,255,255,.14); --depth: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(255,255,255,.03), 0 30px 60px -32px rgba(0,0,0,.75), 0 2px 6px rgba(0,0,0,.3); --pool: rgba(232,201,135,.22); --tile-face: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05)); --tile-depth: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(0,0,0,.35);
  --card-shadow: none; /* Off is paper in dark too: a hairline and nothing else, so Flat's rim is a step up, not a shade */ }
:root[data-theme="dark"][data-base="black"] { --panel-glass: rgba(19,21,25,.86); }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--canvas); color: var(--ink); font: 14px/1.45 var(--font); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
