/* TM30 Autofill: THE design tokens. Colours, radii, shadows and type families live here and nowhere else (T-307).
   Edit a value here and every page follows: the website (/ and the account and admin pages) links this file, and the extension carries
   a byte-identical copy (lib/tokens.css, copied by scripts/build-extension.js, so a change reaches the extension with its next release).
   A raw colour in any other css / html / js file fails test/design-tokens.test.js.

   Three blocks, one palette each:
     1  :root                                            LIGHT (the website's default)
     2  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) }   the OS asked for dark and the visitor made no choice (no script)
     3  :root[data-theme="dark"]                         DARK, chosen by the header switch (src/theme.js; the extension defaults to dark)
   Blocks 2 and 3 are the same dark palette (plain css cannot share one rule between a media query and an attribute): change both, the test
   fails if they differ. Names are the ones every stylesheet already uses; a token that only some pages define lives in tokens-web.css.

   0.3.28 (T-512, his pick 18 Nov: round 5 "E1-4", ~/projects/tm30-scratch-keep/palettes/r5 + r3/NOTES.md "E1 powder blue leads"):
     raven black #0B0C10 and white; powder blue #BFE0F5 LEADS with black words (the open tab, the current step, the filters on);
     poppy red #DD1C26 ONLY on the logo tile (L0: white house) and the main buttons (--action); ordinary filled buttons are raven black with
     white words in light, white with black words in dark (--btn, his answer to Q1); "TM30" and "Autofill" black in light, white in dark.
     Powder blue on white is 1.38:1, so it is a FILL only: a line, ring, dot or word in the brand uses --brand-text / --focus (#1D5C88 light,
     #BFE0F5 dark). test/t512-look.test.js computes every pair: text 4.5:1, rings / lines / marks 3:1.
   AA (computed): #0B0C10 on #F2F5F8 = 17.9:1, #535965 on #FFFFFF = 7.0:1, #1D5C88 on #FFFFFF = 7.2:1, white on #DD1C26 = 4.9:1, #0B0C10 on #BFE0F5 = 14.2:1. */
:root {
  /* page, text, lines */
  --bg: #f2f5f8; --surface: #ffffff; --surface-2: #f6f8fa; --ink: #0b0c10; --ink-2: #535965; --line: #e2e6eb; --line-strong: #cdd3db; --field-line: #858c99;
  /* brand: powder blue as a fill (with --brand-ink words); --brand-text is the brand as a word, a line, a ring or a mark */
  --brand: #bfe0f5; --brand-ink: #0b0c10; --brand-text: #1d5c88; --brand-soft: #e3f1fa; --focus: #1d5c88; --brand-sub: #1d5c88;
  /* status (round 3's cooler hues) */
  --ok: #07714f; --ok-2: #12a06a; --ok-bg: #dbf4ea; --warn: #8f4f00; --warn-bg: #ffefd8; --bad: #b0124a; --bad-bg: #fde5ee; --neutral: #4a505b; --neutral-bg: #e8ecf0;
  /* T-496 (his review 17 Nov 11:08): the "Already submitted" tag on a guest, its OWN shade (teal: not the brand, Ready's green or To check's
     amber). #0e5466 on #e2f2f6 = 7.4:1; dark #8fd8ea on #123540 = 8.2:1 */
  --done-bg: #e2f2f6; --done-ink: #0e5466;
  /* T-481 (his pick 16 Nov) + T-512 (round 5): THE main action, the ONE button per screen that moves her forward (test/t481-main-action.test.js
     holds the closed list): poppy red #DD1C26, a slight fall to --action-2 and an inner edge where a gradient is allowed (the panel; the cover
     on TM30's page stays flat, his rule). The same values in light and dark. White on #DD1C26 = 4.93:1, on the hover #C4121B = 5.9:1 */
  --action: #dd1c26; --action-ink: #ffffff; --action-hover: #c4121b; --action-2: #c4121b; --action-glow: rgba(221, 28, 38, .5); --action-edge: rgba(110, 8, 14, .22); --action-shine: rgba(255, 255, 255, .22);
  /* the ordinary filled button (his Q1 answer 18 Nov: "do the black buttons with white text"): raven black, white words; dark: white, black words */
  --btn: #0b0c10; --btn-ink: #ffffff; --btn-hover: #2a2e36;
  /* the secondary button: white, black words, a grey edge */
  --sec-bg: #ffffff; --sec-ink: #0b0c10; --sec-line: #cdd3db;
  /* T-517 pick 7 (his 19 Nov): the drop box at rest, a very faint powder blue so dropping is obvious (dragging over keeps --brand-soft) */
  --drop-tint: #eef6fc;
  /* T-522 (his pick 19 Nov, J2 + M1): the background texture (src/core/texture.css): the halftone's and the MRZ band's powder blue, and how
     strong each is (gen_pick round 4: the halftone .36 light / .094 dark, 28% subtler now the red light line shows with it; the band at
     round 2's .75 light / round 1's .13 dark) */
  --tex-ink: #bfe0f5; --tex-sweep-a: .36; --tex-mrz-a: .75;
  /* the logo L0 (his pick 18 Nov): red tile, white house, no glow; the name "TM30" + "Autofill" black (two names: a later split is one edit) */
  --logo-tile: #dd1c26; --logo-glyph: #ffffff; --logo-edge: transparent; --wm-main: #0b0c10; --wm-sub: #0b0c10;
  /* the leads in powder blue: the open tab, the filter that is on, the current step */
  --tab-on: #bfe0f5; --tab-on-ink: #0b0c10; --tab-on-shadow: 0 1px 2px rgba(11, 12, 16, .08), 0 4px 12px -6px rgba(30, 60, 90, .3); --chip-on: #bfe0f5; --chip-on-ink: #0b0c10;
  --step-n: #0b0c10; --step-n-ink: #ffffff; --step-glow: rgba(11, 12, 16, .35); --step-bg: #e3f1fa; --step-line: #a9d2ee; --step-ink: #0b0c10; --step-idle: rgba(255, 255, 255, .55); --step-idle-line: rgba(255, 255, 255, .9);
  /* glass and lift: a card's edge, the frosted icon buttons and tab bar, the drop box's icon disc */
  --edge: rgba(255, 255, 255, .95); --icon-bg: rgba(255, 255, 255, .62); --glass-bar: rgba(255, 255, 255, .58); --drop-ic: #0b0c10; --drop-ic-ink: #ffffff;
  /* shape and depth ("soft" corners) */
  --radius: 10px; --radius-s: 8px;
  --shadow: 0 1px 2px rgba(11, 12, 16, .06);
  --shadow-lift: 0 1px 2px rgba(11, 12, 16, .05), 0 14px 30px -18px rgba(30, 60, 90, .35);
  /* type families: ONE sans (--f-head; --f-body is its alias) and two mono stacks (the website's adds DejaVu Sans Mono; the panel's --mono is the older, shorter list: one stack is a design-pass question) */
  --f-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Noto Sans Thai", sans-serif;
  --f-body: var(--f-head);
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  /* the same in light and dark: the Thai flag (exact colours; -0 is the same colour fully clear, for gradient ends; the bands are hidden in
     0.3.28, his 18 Nov, the markup stays), the passport viewer's slate, white paper (a QR and a logo tile stay white), scrims and pop-up
     shadows (raven black tints), the email preview frame */
  --flag-red: #A51931; --flag-red-0: rgba(165, 25, 49, 0); --flag-white: #F4F5F8; --flag-white-0: rgba(244, 245, 248, 0); --flag-blue: #2D2A4A; --flag-blue-0: rgba(45, 42, 74, 0);
  --flag-blue-dark: #5e5aaa; --flag-blue-dark-0: rgba(94, 90, 170, 0);
  --viewer-bg: #111318; --viewer-ink: #e6e8ef; --paper: #ffffff; --email-frame: #f7f6f3; --on-brand-22: rgba(11, 12, 16, .1);
  --scrim-viewer: rgba(10, 12, 20, .62); --scrim-viewer-soft: rgba(10, 12, 20, .55); --scrim-dialog: rgba(11, 12, 16, .45);
  --shadow-pop: 0 18px 48px rgba(0, 0, 0, .28); --shadow-float: 0 2px 10px rgba(0, 0, 0, .12); --shadow-bar: 0 -4px 12px rgba(11, 12, 16, .12); --shadow-dialog: 0 16px 40px rgba(11, 12, 16, .32);
  --scrim-pop: rgba(11, 12, 16, .45); --shadow-date: 0 12px 32px -8px rgba(11, 12, 16, .28), 0 2px 6px rgba(11, 12, 16, .12);
  /* Q-5: the PRINTED sign (T-185 v2: black ink + the one accent on white paper, the same in dark mode: paper is white), the desk around it on
     screen, and the TEST / PREVIEW stamp across a sign that must not be put up. 0.3.28: the accent is the logo's red (his 18 Nov: no signs printed yet) */
  --print-accent: #dd1c26; --print-ink: #000000; --print-soft: #3a3a3a; --print-paper: #ffffff; --print-ink-light: #ffffff; --print-soft-light: #e6e6e6; --print-stamp: rgba(190, 20, 40, .30);
  /* motion */
  --ease: cubic-bezier(.2, .7, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0c10; --surface: #14161b; --surface-2: #1b1e24; --ink: #f2f4f7; --ink-2: #a4abb6; --line: #22252c; --line-strong: #353a44; --field-line: #646b78;
  --brand: #bfe0f5; --brand-ink: #0b0c10; --brand-text: #bfe0f5; --brand-soft: #16242f; --focus: #bfe0f5; --brand-sub: #bfe0f5;
  /* Q-5: the printed sign stays paper in dark mode (the same as the light block) */
  --print-accent: #dd1c26; --print-ink: #000000; --print-soft: #3a3a3a; --print-paper: #ffffff; --print-ink-light: #ffffff; --print-soft-light: #e6e6e6; --print-stamp: rgba(190, 20, 40, .30);
  --ok: #6de3b5; --ok-2: #6de3b5; --ok-bg: #12302a; --warn: #ffbd7a; --warn-bg: #3a2b1c; --bad: #ff8fb0; --bad-bg: #3d1a27; --neutral: #c4cad3; --neutral-bg: #22262e;
  --done-bg: #123540; --done-ink: #8fd8ea;   /* T-496: the "Already submitted" tag */
  --action: #dd1c26; --action-ink: #ffffff; --action-hover: #c4121b; --action-2: #c4121b; --action-glow: rgba(221, 28, 38, .62); --action-edge: rgba(255, 255, 255, .14); --action-shine: rgba(255, 255, 255, .22);
  --btn: #ffffff; --btn-ink: #0b0c10; --btn-hover: #e2e6eb;
  --sec-bg: #1b1e24; --sec-ink: #f2f4f7; --sec-line: #353a44;   /* T-517 pick 1 A (his 19 Nov): the quiet button is dark with a thin line, no longer white like --btn */
  --drop-tint: #131c25;   /* T-517 pick 7: the drop box at rest, a very faint powder blue (dragging over keeps --brand-soft) */
  --tex-ink: #bfe0f5; --tex-sweep-a: .094; --tex-mrz-a: .13;   /* T-522: the halftone 28% under round 1's dark strength (gen_pick round 4), the band at it */
  --logo-tile: #dd1c26; --logo-glyph: #ffffff; --logo-edge: transparent; --wm-main: #ffffff; --wm-sub: #ffffff;
  --tab-on: #bfe0f5; --tab-on-ink: #0b0c10; --tab-on-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 16px -8px rgba(0, 0, 0, .9); --chip-on: #bfe0f5; --chip-on-ink: #0b0c10;
  --step-n: #bfe0f5; --step-n-ink: #0b0c10; --step-glow: rgba(191, 224, 245, .5); --step-bg: #16242f; --step-line: rgba(191, 224, 245, .45); --step-ink: #ffffff; --step-idle: rgba(27, 30, 36, .7); --step-idle-line: rgba(255, 255, 255, .05);
  --edge: rgba(255, 255, 255, .08); --icon-bg: rgba(20, 22, 27, .55); --glass-bar: rgba(20, 22, 27, .55); --drop-ic: #2a2e36; --drop-ic-ink: #ffffff;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  --shadow-lift: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 36px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0b0c10; --surface: #14161b; --surface-2: #1b1e24; --ink: #f2f4f7; --ink-2: #a4abb6; --line: #22252c; --line-strong: #353a44; --field-line: #646b78;
  --brand: #bfe0f5; --brand-ink: #0b0c10; --brand-text: #bfe0f5; --brand-soft: #16242f; --focus: #bfe0f5; --brand-sub: #bfe0f5;
  /* Q-5: the printed sign stays paper in dark mode (the same as the light block) */
  --print-accent: #dd1c26; --print-ink: #000000; --print-soft: #3a3a3a; --print-paper: #ffffff; --print-ink-light: #ffffff; --print-soft-light: #e6e6e6; --print-stamp: rgba(190, 20, 40, .30);
  --ok: #6de3b5; --ok-2: #6de3b5; --ok-bg: #12302a; --warn: #ffbd7a; --warn-bg: #3a2b1c; --bad: #ff8fb0; --bad-bg: #3d1a27; --neutral: #c4cad3; --neutral-bg: #22262e;
  --done-bg: #123540; --done-ink: #8fd8ea;   /* T-496: the "Already submitted" tag */
  --action: #dd1c26; --action-ink: #ffffff; --action-hover: #c4121b; --action-2: #c4121b; --action-glow: rgba(221, 28, 38, .62); --action-edge: rgba(255, 255, 255, .14); --action-shine: rgba(255, 255, 255, .22);
  --btn: #ffffff; --btn-ink: #0b0c10; --btn-hover: #e2e6eb;
  --sec-bg: #1b1e24; --sec-ink: #f2f4f7; --sec-line: #353a44;   /* T-517 pick 1 A (his 19 Nov): the quiet button is dark with a thin line, no longer white like --btn */
  --drop-tint: #131c25;   /* T-517 pick 7: the drop box at rest, a very faint powder blue (dragging over keeps --brand-soft) */
  --tex-ink: #bfe0f5; --tex-sweep-a: .094; --tex-mrz-a: .13;   /* T-522: the halftone 28% under round 1's dark strength (gen_pick round 4), the band at it */
  --logo-tile: #dd1c26; --logo-glyph: #ffffff; --logo-edge: transparent; --wm-main: #ffffff; --wm-sub: #ffffff;
  --tab-on: #bfe0f5; --tab-on-ink: #0b0c10; --tab-on-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 6px 16px -8px rgba(0, 0, 0, .9); --chip-on: #bfe0f5; --chip-on-ink: #0b0c10;
  --step-n: #bfe0f5; --step-n-ink: #0b0c10; --step-glow: rgba(191, 224, 245, .5); --step-bg: #16242f; --step-line: rgba(191, 224, 245, .45); --step-ink: #ffffff; --step-idle: rgba(27, 30, 36, .7); --step-idle-line: rgba(255, 255, 255, .05);
  --edge: rgba(255, 255, 255, .08); --icon-bg: rgba(20, 22, 27, .55); --glass-bar: rgba(20, 22, 27, .55); --drop-ic: #2a2e36; --drop-ic-ink: #ffffff;
  --shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  --shadow-lift: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 36px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
