/* Generated from blueprint/03-TOKENS.md - the only place colours and sizes are defined. */
:root {
  --navy: #14213D; --navy-700: #1F3057; --navy-900: #0E1830;
  --gold: #B8913A; --gold-600: #9C7A2F; --gold-100: #F6EFDF;
  --bg-app: #F5F6F8; --bg-surface: #FFFFFF; --bg-subtle: #FAFAFB;
  --border: #E1E4EA; --border-strong: #C9CED8;
  --text: #1B1F2A; --text-2: #5B6475; --text-muted: #8A93A5; --on-dark: #FFFFFF; --on-dark-muted: #A9B3C9;
  --success: #1E8E5A; --success-bg: #E6F4ED; --warning: #B26A00; --warning-bg: #FFF4E0;
  --danger: #C0392B; --danger-bg: #FBEAEA; --info: #2D6CDF; --info-bg: #E8F0FD; --focus: #2D6CDF;
  --cell-computed: #F3F5F9; --cell-override: #FFF1C9; --cell-override-marker: #B8913A;
  --cell-invalid: #FBEAEA; --cell-changed: #E9F1FF;
  --chip-DS: #1E8E5A; --chip-DS-bg: #E6F4ED; --chip-GS: #1E8E5A; --chip-GS-bg: #E6F4ED;
  --chip-DP: #2D6CDF; --chip-DP-bg: #E8F0FD; --chip-GRV: #9C7A2F; --chip-GRV-bg: #F6EFDF;
  --chip-GPV: #8A5A00; --chip-GPV-bg: #FDEFD6; --chip-RC: #0F7C86; --chip-RC-bg: #E2F4F5;
  --chip-PY: #7A4FB5; --chip-PY-bg: #F0E9FA;
  --font-ui: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, monospace;
  --fs-display: 20pt; --fs-h1: 16pt; --fs-h2: 13pt; --fs-body: 10pt; --fs-caption: 9pt; --fs-kpi: 22pt;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --r-sm: 4px; --r-md: 6px; --r-lg: 10px;
  --shadow-card: 0 1px 2px rgba(20,33,61,.06);
  --sidebar-w: 224px; --topbar-h: 52px; --docbar-h: 66px; --shadow-lift: 0 6px 18px rgba(20,33,61,.12); --control-h: 32px; --row-h: 30px; --grid-head-h: 34px;
}
:root[data-text="large"] {
  --fs-display: 23pt; --fs-h1: 18.4pt; --fs-h2: 15pt; --fs-body: 11.5pt; --fs-caption: 10.35pt; --fs-kpi: 25.3pt;
  --row-h: 36px; --control-h: 36px;
}
:root[data-theme="dark"] {
  --bg-app: #0F1420; --bg-surface: #161C2B; --bg-subtle: #1B2233; --border: #2A3347; --border-strong: #3A4560;
  --text: #E6E9F0; --text-2: #A3ACBF; --text-muted: #7D879B; --gold: #C9A24A; --gold-600: #B8913A; --gold-100: #2E2818;
  --cell-computed: #1E2638; --cell-override: #3A3020; --cell-changed: #1C2A44; --cell-invalid: #3A1F1F;
  --success-bg: #12301F; --warning-bg: #33260F; --danger-bg: #3A1C1A; --info-bg: #14233F;
  --chip-DS-bg: #12301F; --chip-GS-bg: #12301F; --chip-DP-bg: #14233F; --chip-GRV-bg: #2E2818; --chip-GPV-bg: #33260F;
  --chip-RC-bg: #10302F; --chip-PY-bg: #281C3A;
  --chip-DS: #5CC98F; --chip-GS: #5CC98F; --chip-DP: #7EA8F0; --chip-GRV: #D8B66A; --chip-GPV: #E0A04A;
  --chip-RC: #5CC2C9; --chip-PY: #B79BE0; --success: #4CC38A; --danger: #F07A6D; --warning: #E5A34A; --info: #7EA8F0;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg-app: #0F1420; --bg-surface: #161C2B; --bg-subtle: #1B2233; --border: #2A3347; --border-strong: #3A4560;
    --text: #E6E9F0; --text-2: #A3ACBF; --text-muted: #7D879B; --gold: #C9A24A; --gold-600: #B8913A; --gold-100: #2E2818;
    --cell-computed: #1E2638; --cell-override: #3A3020; --cell-changed: #1C2A44; --cell-invalid: #3A1F1F;
    --success-bg: #12301F; --warning-bg: #33260F; --danger-bg: #3A1C1A; --info-bg: #14233F;
    --chip-DS-bg: #12301F; --chip-GS-bg: #12301F; --chip-DP-bg: #14233F; --chip-GRV-bg: #2E2818; --chip-GPV-bg: #33260F;
    --chip-RC-bg: #10302F; --chip-PY-bg: #281C3A;
    --chip-DS: #5CC98F; --chip-GS: #5CC98F; --chip-DP: #7EA8F0; --chip-GRV: #D8B66A; --chip-GPV: #E0A04A;
    --chip-RC: #5CC2C9; --chip-PY: #B79BE0; --success: #4CC38A; --danger: #F07A6D; --warning: #E5A34A; --info: #7EA8F0;
  }
}
