/* Descry Design System — generated from tokens.json */
:root, [data-theme="light"] {
  --n-0: #ffffff; /* Light surface (cards, sheets). */
  --n-50: #f7f9fc; /* Light raised surface. */
  --n-100: #eff2f7; /* Light page background. */
  --n-150: #e2e8f0; /* Light sunken surface. */
  --n-200: #d3dbe4; /* Light hairline border. */
  --n-300: #aeb9c6; /* Light strong border. */
  --n-400: #8b98a5; /* Muted text on both themes. */
  --n-500: #5f6b79; /* Light secondary text. */
  --n-600: #3c4552; /* Dark strong border. */
  --n-700: #232b36; /* Dark hairline border. */
  --n-800: #1b2230; /* Dark raised surface; light primary ink. */
  --n-900: #141a24; /* Dark card surface; console ground. */
  --n-950: #0b0e14; /* Dark page background; brand near-black. */
  --primary-50: #ebfdf8; /* Proof teal ramp — never decorative. */
  --primary-100: #cdfaf0; /* Proof teal ramp — never decorative. */
  --primary-200: #9bf4e2; /* Proof teal ramp — never decorative. */
  --primary-300: #5eead4; /* Proof teal ramp — never decorative. */
  --primary-400: #2dd4bf; /* The Proof accent on dark — proven states and the primary CTA only. */
  --primary-500: #0e9c8c; /* The Proof accent on light (AA for large text/UI on white). */
  --primary-600: #0c8073; /* Proof teal ramp — never decorative. */
  --primary-700: #0a675d; /* Proof teal ramp — never decorative. */
  --primary-800: #084e47; /* Proof teal ramp — never decorative. */
  --primary-900: #063732; /* Proof teal ramp — never decorative. */
  --secondary-50: #f0f9ff; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --secondary-100: #e0f2fe; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --secondary-200: #bae6fd; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --secondary-300: #7dd3fc; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --secondary-400: #38bdf8; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --secondary-500: #0ea5e9; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --secondary-600: #0284c7; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --secondary-700: #0369a1; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --secondary-800: #075985; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --secondary-900: #0c4a6e; /* Signal azure — links, reference chips, console commands. Never the proof accent. */
  --critical-base: #e5484d; /* Critical severity fill — always with icon + label, never the accent. */
  --critical-text: #9f2328; /* Critical text on critical-wash (AA). */
  --critical-wash: #fde7e8; /* Critical badge/alert background. */
  --high-base: #f76808; /* High severity fill — always with icon + label, never the accent. */
  --high-text: #9a4600; /* High text on high-wash (AA). */
  --high-wash: #feeddc; /* High badge/alert background. */
  --medium-base: #ffb224; /* Medium severity fill — always with icon + label, never the accent. */
  --medium-text: #7a5600; /* Medium text on medium-wash (AA). */
  --medium-wash: #fff3d3; /* Medium badge/alert background. */
  --low-base: #46a758; /* Low severity fill — always with icon + label, never the accent. */
  --low-text: #2b6a39; /* Low text on low-wash (AA). */
  --low-wash: #e4f3e7; /* Low badge/alert background. */
  --info-base: #5b9dd9; /* Info severity fill — always with icon + label, never the accent. */
  --info-text: #2e5f8e; /* Info text on info-wash (AA). */
  --info-wash: #e8f1fa; /* Info badge/alert background. */
  --bg: var(--n-100); /* Page background. */
  --surface: var(--n-0); /* Cards, panels, sheets. */
  --raised: var(--n-50); /* Hover raise; elevated panels. */
  --sunken: var(--n-150); /* Wells, table headers, ghost-hover. */
  --border: var(--n-200); /* Default 1px hairline. */
  --border-strong: var(--n-300); /* Input borders, emphasized rules. */
  --ink: var(--n-800); /* Primary text on bg/surface/raised. */
  --ink-2: var(--n-500); /* Secondary text on bg/surface/raised. */
  --ink-3: var(--n-400); /* Captions and labels on surface (AA at 11px+ on light surface; muted on dark). */
  --ink-on-primary: #04111a; /* Text on primary fills — near-black on teal in both themes. */
  --primary: var(--primary-500); /* Proven states + primary action. Never decorative. */
  --primary-hover: var(--primary-600); /* Primary button hover. */
  --primary-active: var(--primary-700); /* Primary button pressed. */
  --primary-wash: var(--primary-50); /* Selected rows, proven-row tint. */
  --accent: var(--secondary-700); /* Links and informational accents on surface. */
  --accent-2: var(--secondary-600); /* Secondary informational accent. */
  --mono-bg: var(--n-900); /* Console/evidence ground — never theme-flips to light. */
  --mono-fg: #c9d1d9; /* Console text on mono-bg. */
  --mono-cmd: var(--secondary-300); /* Console command lines on mono-bg. */
  --mono-ok: var(--primary-400); /* PROVEN BY EFFECT confirmations on mono-bg. */
  --cat-01: #0e9c8c; /* Categorical series 01 (teal) — unranked chart data, in order 01→08. */
  --cat-02: #0284c7; /* Categorical series 02 (azure) — unranked chart data, in order 01→08. */
  --cat-03: #7356bf; /* Categorical series 03 (violet) — unranked chart data, in order 01→08. */
  --cat-04: #b45309; /* Categorical series 04 (amber) — unranked chart data, in order 01→08. */
  --cat-05: #c2417e; /* Categorical series 05 (rose) — unranked chart data, in order 01→08. */
  --cat-06: #5f6b79; /* Categorical series 06 (slate) — unranked chart data, in order 01→08. */
  --cat-07: #46a758; /* Categorical series 07 (green) — unranked chart data, in order 01→08. */
  --cat-08: #46627f; /* Categorical series 08 (steel) — unranked chart data, in order 01→08. */
  --heat-0: var(--n-100); /* Coverage Ledger: not-reached / no data — the honesty cell. */
  --heat-1: #cdfaf0; /* Coverage ramp step 1. */
  --heat-2: #9bf4e2; /* Coverage ramp step 2. */
  --heat-3: #2dd4bf; /* Coverage ramp step 3. */
  --heat-4: #0e9c8c; /* Coverage ramp top — fully tested/proven density. */
  --elev-0: none; /* Flat — the default for cards. */
  --elev-1: 0 1px 2px rgba(11,14,20,0.06); /* Resting hairline lift. */
  --elev-2: 0 4px 12px rgba(11,14,20,0.08); /* Floating cards, dropdowns. */
  --elev-3: 0 12px 32px rgba(11,14,20,0.12); /* Modals. */
  --elev-4: 0 24px 64px rgba(11,14,20,0.16); /* Full-screen overlays. */
  --focus-ring: 0 0 0 3px rgba(14,156,140,0.30); /* Focus — never suppressed; 3:1 on every surface. */
}
[data-theme="dark"] {
  --bg: var(--n-950);
  --surface: var(--n-900);
  --raised: var(--n-800);
  --sunken: #070a0f;
  --border: var(--n-700);
  --border-strong: var(--n-600);
  --ink: #f4f7fb;
  --ink-2: #c9d1d9;
  --ink-3: var(--n-400);
  --primary: var(--primary-400);
  --primary-hover: var(--primary-300);
  --primary-active: var(--primary-200);
  --primary-wash: rgba(45,212,191,0.14);
  --accent: var(--secondary-400);
  --accent-2: var(--secondary-300);
  --mono-bg: var(--n-950);
  --mono-cmd: var(--secondary-300);
  --mono-ok: var(--primary-400);
  --heat-0: var(--n-800);
  --heat-1: rgba(45,212,191,0.18);
  --heat-2: rgba(45,212,191,0.38);
  --heat-3: rgba(45,212,191,0.65);
  --heat-4: var(--primary-400);
}
:root {
  --sp-0: 0;
  --sp-1: 4px; /* 4px base grid; 8px is the layout rhythm. */
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;
  --sp-32: 128px;
  --focus-ring-offset: 2px; /* Offset for the focus ring. */
  --r-xs: 4px; /* Inline controls, table cells. */
  --r-sm: 6px; /* Inputs, small chips. */
  --r-md: 8px; /* Cards and buttons (default). */
  --r-lg: 12px; /* Large panels. */
  --r-xl: 16px; /* Hero panels. */
  --r-2xl: 24px; /* Marquee blocks. */
  --r-full: 999px; /* Pills and capsule chips. Slides and report sheets stay square. */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-base: 14px; /* UI default body size. */
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;
  --fs-5xl: 64px;
  --fs-6xl: 88px;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600; /* Display headings default. */
  --fw-bold: 700;
  --lh-tight: 1.1; /* Display. */
  --lh-snug: 1.35; /* Ledes, H-levels. */
  --lh-normal: 1.55; /* Body. */
  --lh-loose: 1.7; /* Console. */
  --tr-tight: -0.035em; /* Display. */
  --tr-snug: -0.02em; /* H1–H3. */
  --tr-normal: -0.005em; /* Body. */
  --tr-wide: 0.08em; /* Mono labels. */
  --tr-wider: 0.14em; /* Eyebrows. */
  --bw-1: 1px; /* The default everywhere. */
  --bw-2: 2px;
  --bw-3: 3px;
  --bw-4: 4px; /* Exactly three places: alert left edges, report cover top rule, slide top bar. */
  --layout-max: 1280px; /* Content max width. */
  --layout-narrow: 720px; /* Report/doc column. */
  --layout-gutter: 48px; /* Side gutter. */
  --layout-rail: 240px; /* Fixed nav rail. */
  --font-display: 'Inter Tight','Inter',system-ui,sans-serif;
  --font-body: 'Inter',system-ui,sans-serif;
  --font-mono: 'JetBrains Mono',ui-monospace,'SF Mono',monospace;
  --text-display-xl: 600 88px/1.1 var(--font-display); /* Hero headlines (marketing, slides). */
  --text-display-lg: 600 64px/1.1 var(--font-display); /* Section-break slides, large mastheads. */
  --text-h1: 600 48px/1.35 var(--font-display); /* Page titles. */
  --text-h2: 600 36px/1.35 var(--font-display); /* Section headings. */
  --text-h3: 600 28px/1.35 var(--font-display); /* Sub-sections. */
  --text-h4: 600 22px/1.35 var(--font-display); /* Card titles. */
  --text-body-lg: 400 16px/1.55 var(--font-body); /* Ledes, report prose. */
  --text-body: 400 14px/1.55 var(--font-body); /* UI default. */
  --text-body-sm: 400 12px/1.55 var(--font-body); /* Dense tables, secondary copy. */
  --text-caption: 400 11px/1.35 var(--font-body); /* Captions, metadata. */
  --text-mono-body: 400 13px/1.7 var(--font-mono); /* Console, evidence, requests. */
  --text-mono-label: 500 11px/1.35 var(--font-mono); /* Eyebrows and uppercase labels — the only tracked mono. */
}
.display-xl {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.h1 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.h4 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.body-lg {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.body {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.body-sm {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.caption {
  font-family: var(--font-body);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0;
}
.mono-body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.14em;
}
