/* GoodsOS world tokens (Mission Control 1962, steel palette). Light in :root, dark in .dark, as theme-static.css does it.
   Loaded after theme-static.css. Where the app's design system already holds the value, the token aliases it (var(--color-...));
   the paper, ink, accent and instrument values are the World's own and live here, once. The ground's own palettes live in grounds.js;
   --paper matches each theme's track board paper (P0), so a plain section reads as the same sheet with the line work lifted off.
   Same-named tokens (the --badge-* tints and the red/amber/green texts in dark) come straight from theme-static.css. */
:root {
  --brand-goods: #6f685f; --brand-os: #a39b91;
  --paper: #EFE8DA; --paper-2: #E6DCCB; --plate: #F8F3EA; --plate-line: #D3C7B2; --plate-shadow: 0 1px 2px rgba(31,58,90,.08), 0 18px 48px -16px rgba(31,58,90,.28);
  --ink: #14202E; --ink-2: #34414F; --muted: #55606C; --line: #CFC3AE; --line-2: #B9AB93;
  --navy: #1F3A5A; --accent: #B3441A; --on-accent: #FFF8EE; --accent-ink: #9E3C16; --accent-hover: #9E3C16;
  --band: #14202E; --band-ink: #F3EBDD; --band-ink-2: #C9B79A; --band-line: #2A3B4E; --band-accent: #F0A070;
  --s-untested: #B9811F; --s-confirmed: #2E8F62; --s-ruled: #C23B22;
  --s-untested-ink: #7E560F; --s-confirmed-ink: #1F6B48; --s-ruled-ink: #A3301B;
  --p-phys: var(--color-pillar-physical); --p-hum: var(--color-pillar-human); --p-dig: var(--color-pillar-digital);
  --p-phys-ink: #4F5B6E; --p-hum-ink: #8A5A0E; --p-dig-ink: #2457B8;
  --field: #FFFDF8; --field-line: #A99B82; --focus: #1F3A5A;
  /* The app's state and card tokens (src/styles/theme.css, origin/main, re-read 2026-11-21 for round 4), aliased from theme-static.css (the same-named --badge-* tints and edges come straight from it, so they are not repeated here).
     Pill text: red is --badge-red-text; green is --badge-emerald-deep-text and amber is --tag-flagged-text (the system amber text), because --badge-green-text
     and --badge-amber-text measured under 4.5:1 on their own tints over the grained plate (4.11 and about 4.3). */
  --badge-amber-text: var(--tag-flagged-text);
  --badge-green-text: var(--badge-emerald-deep-text);
  /* Test first (pin 10): the app's Flagged tag colours (--tag-flagged-bg / -text), edged with the amber badge border.
     Orange (--badge-orange-text #C2410C) was the first pick and measured 3.9:1 on its tint over the grained plate. */
  --flag-bg: var(--tag-flagged-bg); --flag-border: var(--badge-amber-border); --flag-text: var(--tag-flagged-text);
  --card-shadow: 0 2px 6px rgba(0,0,0,0.12); --card-detail: color-mix(in srgb, var(--paper) 45%, var(--plate));
  --seam-sev-medium: #9D6A24; /* mirrors --color-seam-sev-medium */
  --seam-band-medium: #e9a23b; /* mirrors --color-seam-band-medium, the SeamCard band (round 4, pin p0e91cbb6) */
  /* Layer tags (round 4, pin pdc2e7719): the app's PHD badge pairs, carried as values. They mark layers where the layer is the point
     (the seam map lanes, SeamCard). On a claim card the layer is a neutral outline (.ptag.plain, pin pfa916fe5): colour there means state only. */
  --lb-phys-bg: var(--color-badge-physical-bg); --lb-phys-text: var(--color-badge-physical-text); --lb-phys-border: var(--color-badge-physical-border); /* --color-badge-physical-bg / -text / -border */
  --lb-hum-bg: var(--color-badge-human-bg); --lb-hum-text: var(--color-badge-human-text); --lb-hum-border: var(--color-badge-human-border); /* --color-badge-human-bg / -text / -border */
  --lb-dig-bg: var(--color-badge-digital-bg); --lb-dig-text: var(--color-badge-digital-text); --lb-dig-border: var(--color-badge-digital-border); /* --color-badge-digital-bg / -text / -border */
  /* The sent check (round 4, pins p1f89163a, p69153d45): the app's confirmed colours, not a stock green. */
  --success-fill: var(--color-hitl-verified-text); /* mirrors --color-success-text-on-surface */
  --on-success: var(--color-text-inverse); /* mirrors --color-on-success */
  --success-ring: var(--color-surface-state-success-border); /* mirrors --color-border-success */
  /* instruments (r2.css --gi-*: both themes designed, not inverted) */
  --gi-face: #F3EBDD; --gi-ink: var(--color-text-primary); --gi-minor: #6B655F; --gi-needle: #C8501C; --gi-low: #B9811F; --gi-high: #2E8F62;
  --gi-bza: #F4F2EE; --gi-bzb: #8F8A83; --gi-bezel: #D9CFBE; --gi-plate: #2A2723; --gi-shadow: rgba(30,29,27,0.16);
  --gi-lit: #C8501C; --gi-off: #DDD3C2; --gi-drum: #F6F1E7; --gi-digit: var(--color-text-primary); --gi-drumedge: rgba(30,29,27,0.38);
  --gi-flap: #24211D; --gi-flapdigit: #F3EBDD; --gi-split: #0C0B09; --gi-pin: #8F8A83; --gi-track: #D2C7B4;
  /* type layer: the pairing (goodsos-world/kit/type-pairs.js) sets the headline and body faces, the display weight and tracking;
     --ts is the Type scale dial times the pairing's headline factor. The reading serif is the page's own in every pairing. */
  --display: var(--wt-display, 'DM Serif Display', Georgia, serif); --sans: var(--wt-body, 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  --serif: 'Source Serif 4', Georgia, serif; --mono: var(--wt-mono, 'JetBrains Mono', ui-monospace, Menlo, monospace);
  --ts: 1; --dw: var(--wt-w6, 400); --dls: var(--wt-ls, -0.015em); --dvs: 'wdth' var(--wt-wdth, 100);
  --gut: 64px; --max: 1312px; --ease-mech: cubic-bezier(.2,.9,.25,1);
  color-scheme: light;
  /* Radii, from the app's scale (Pill 20, Tag 6, ClaimCard 16, plates 22 and 26); one name per use so site.css holds no px radius. */
  --radius-hair: 2px; --radius-tag: 6px; --radius-link: 8px; --radius-ctl: 10px; --radius-field: 12px; --radius-card: 16px;
  --radius-panel: 18px; --radius-pill: 20px; --radius-plate: 22px; --radius-tray: 26px; --radius-round: 50%;
  /* Rings and the clearing mask: the lamp's halo, the sent check's ring, and the hero clearing's mask stops (opaque, and the 6% shade). */
  --ring-lamp: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); --ring-success: 0 0 0 5px var(--success-ring);
  --mask-opaque: #000; --mask-shade: rgba(0,0,0,.06);
}
.dark {

  --brand-goods: #aba49c; --brand-os: #e0dcd7;
  --paper: #111922; --paper-2: #17212B; --plate: #1A2531; --plate-line: #2E3D4D; --plate-shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 48px -16px rgba(0,0,0,.7);
  --ink: #F3EBDD; --ink-2: #D2C6B2; --muted: #A9A08F; --line: #2E3D4D; --line-2: #43556A;
  --navy: #C9B79A; --accent: #E9874F; --on-accent: #111922; --accent-ink: #F0A070; --accent-hover: #F09A62;
  --band: #0A1017; --band-ink: #F3EBDD; --band-ink-2: #C9B79A; --band-line: #22303D; --band-accent: #F0A070;
  --s-untested: #D4A554; --s-confirmed: #54C48A; --s-ruled: #E8735A;
  --s-untested-ink: #E2B76A; --s-confirmed-ink: #6FD3A0; --s-ruled-ink: #F08A72;
  --p-phys: #9AA6B8; --p-hum: #E9A23B; --p-dig: #5A8FE0;
  --p-phys-ink: #B5BFCE; --p-hum-ink: #EDB45A; --p-dig-ink: #93B6F2;
  --field: #0F171F; --field-line: #56687C; --focus: #F0A070;
  --badge-amber-text: var(--color-signal-open-text); --badge-green-text: var(--badge-confident-text);
  --flag-bg: var(--tag-flagged-bg); --flag-border: var(--badge-amber-border); --flag-text: var(--tag-flagged-text);
  --card-shadow: 0 2px 6px rgba(0,0,0,0.4); --card-detail: color-mix(in srgb, #000 14%, var(--plate));
  --seam-sev-medium: #E7C07A; --seam-band-medium: #e7c07a;
  --lb-phys-bg: var(--color-badge-physical-bg); --lb-phys-text: var(--color-badge-physical-text); --lb-phys-border: var(--color-badge-physical-border);
  --lb-hum-bg: var(--color-badge-human-bg); --lb-hum-text: var(--color-badge-human-text); --lb-hum-border: var(--color-badge-human-border);
  --lb-dig-bg: var(--color-badge-digital-bg); --lb-dig-text: var(--color-badge-digital-text); --lb-dig-border: var(--color-badge-digital-border);
  --success-fill: #6EE7A0; --on-success: #1c1a17; --success-ring: var(--color-surface-state-success-border);
  --gi-face: #2A2622; --gi-ink: #F0E6D2; --gi-minor: #A39D96; --gi-needle: #EC7A3C; --gi-low: #D4A554; --gi-high: #54C48A;
  --gi-bza: #4A4540; --gi-bzb: #141210; --gi-bezel: #3A3530; --gi-plate: #12110F; --gi-shadow: rgba(0,0,0,0.45);
  --gi-lit: #EC7A3C; --gi-off: #3E3934; --gi-drum: #EDE5D6; --gi-digit: #1E1D1B; --gi-drumedge: rgba(0,0,0,0.5);
  --gi-flap: #12110F; --gi-flapdigit: #F3EBDD; --gi-split: #000000; --gi-pin: #6B655F; --gi-track: #4A4540;
  color-scheme: dark;
}
:root[data-palette="steel"]:not(.dark) {

  --paper: #E4E8EA; --paper-2: #D7DDE1; --plate: #F4F6F7; --plate-line: #C3CCD3; --plate-shadow: 0 1px 2px rgba(16,26,36,.08), 0 18px 48px -16px rgba(16,26,36,.26);
  --ink: #0E1720; --ink-2: #2C3843; --muted: #4A5865; --line: #C3CBD2; --line-2: #A5B0BA;
  --navy: #26445E; --accent: #0B6B73; --on-accent: #F4F8F8; --accent-ink: #0A5E66; --accent-hover: #09585F; --focus: #0B6B73;
  --band: #0E1720; --band-ink: #E6EBEE; --band-ink-2: #AFC0CC; --band-line: #22303B; --band-accent: #6FD0C8;
  --field: #FBFCFC; --field-line: #8D9AA5;
  --gi-face: #EEF1F2; --gi-needle: #C8322A; --gi-lit: #C8322A; --gi-bezel: #CBD3D9; --gi-bza: #F2F4F5; --gi-bzb: #85909A;
}
:root[data-palette="steel"].dark {

  --paper: #0F1418; --paper-2: #151C21; --plate: #1A2228; --plate-line: #2D3942;
  --ink: #E6EBEE; --ink-2: #C2CCD3; --muted: #94A2AD; --line: #2D3942; --line-2: #43525D;
  --navy: #9FB4C4; --accent: #4FC1B8; --on-accent: #0B1114; --accent-ink: #6FD0C8; --accent-hover: #66CCC4; --focus: #6FD0C8;
  --band: #080C0F; --band-ink: #E6EBEE; --band-ink-2: #AFC0CC; --band-line: #1C262D; --band-accent: #6FD0C8;
  --field: #0C1115; --field-line: #52626E;
  --gi-face: #232A2F; --gi-needle: #E8604C; --gi-lit: #E8604C; --gi-bezel: #313B42; --gi-bza: #46515A; --gi-bzb: #0E1316;
}
