:root {
  color-scheme: light;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --text-xs: .75rem; --text-sm: .875rem; --text-md: 1rem; --text-lg: 1.25rem;
  --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem; --text-4xl: 3.052rem;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;
  --space-0:0; --space-1:.25rem; --space-2:.5rem; --space-3:.75rem; --space-4:1rem;
  --space-5:1.25rem; --space-6:1.5rem; --space-8:2rem; --space-10:2.5rem; --space-12:3rem;
  --space-16:4rem; --space-20:5rem; --space-24:6rem;
  --radius-xs:4px; --radius-sm:6px; --radius-md:8px; --radius-lg:10px; --radius-pill:999px;
  --duration-fast:120ms; --duration-normal:180ms; --duration-slow:240ms;
  --ease-standard:cubic-bezier(.2,0,0,1);
  --shadow-overlay:0 20px 50px rgb(15 23 42 / .18); --shadow-popover:0 12px 30px rgb(15 23 42 / .14);

  --neutral-0:#fff; --neutral-25:#fbfcfd; --neutral-50:#f7f8fa; --neutral-100:#eef1f4;
  --neutral-150:#e6e9ed; --neutral-200:#d9dee5; --neutral-300:#c3cad4; --neutral-400:#99a4b2;
  --neutral-500:#6f7b89; --neutral-600:#53606e; --neutral-700:#3a4653; --neutral-800:#26313d;
  --neutral-900:#18212b; --neutral-950:#0d141b;

  --accent-50:#eef5ff; --accent-100:#d9eaff; --accent-200:#b9d6ff; --accent-300:#88b8ff;
  --accent-400:#5797f4; --accent-500:#2f74d0; --accent-600:#205ba8; --accent-700:#184886;
  --accent-800:#153b6b; --accent-900:#14345b; --accent-950:#0d2039;

  --success-50:#edf8f2; --success-100:#d7f0e2; --success-600:#1d7a50; --success-700:#176341;
  --warning-50:#fff8e8; --warning-100:#ffefc1; --warning-600:#a35a00; --warning-700:#844700;
  --danger-50:#fff1f1; --danger-100:#ffe0df; --danger-600:#b42318; --danger-700:#912018;
  --info-50:#eef6ff; --info-100:#dcecff; --info-600:#2167a7; --info-700:#1b5488;

  --state-lead:#6b7280; --state-contact:#466ca8; --state-prescreening:#9a6b24;
  --state-qualified:#4e7c59; --state-mandate:#386c75; --state-investigation:#775b95;
  --state-design:#4d6f97; --state-business:#59645f; --state-qc:#8b5d50;
  --state-ready:#1f6a5d; --state-sent:#2f6e91; --state-review:#725a88;
  --state-approved:#257a4e; --state-rejected:#a13d36; --state-reporting:#6c5d31; --state-closed:#475569;

  --bg-canvas:var(--neutral-50); --bg-surface:var(--neutral-0); --bg-subtle:var(--neutral-25);
  --bg-muted:var(--neutral-100); --bg-elevated:var(--neutral-0);
  --text-primary:var(--neutral-950); --text-secondary:var(--neutral-700); --text-tertiary:var(--neutral-500);
  --text-inverse:#fff; --text-link:var(--accent-700);
  --border-subtle:var(--neutral-150); --border-default:var(--neutral-200); --border-strong:var(--neutral-300);
  --focus-ring:#0e5fc4; --selection-bg:#d8e9ff;
  --control-xs:28px; --control-sm:32px; --control-md:36px; --control-lg:40px;
  --sidebar-width:252px; --topbar-height:56px; --content-max:1600px;
  --row-comfortable:52px; --row-standard:44px; --row-compact:36px;
  --z-base:0; --z-sticky:20; --z-dropdown:50; --z-overlay:80; --z-modal:100; --z-toast:120;
}

[data-theme="dark"] {
  color-scheme: dark;
  --neutral-0:#0d1117; --neutral-25:#10161d; --neutral-50:#121922; --neutral-100:#18212b;
  --neutral-150:#202b37; --neutral-200:#2a3644; --neutral-300:#3c4958; --neutral-400:#647284;
  --neutral-500:#8995a5; --neutral-600:#a3adba; --neutral-700:#bac3ce; --neutral-800:#d0d6dd;
  --neutral-900:#e6e9ed; --neutral-950:#f7f8fa;
  --accent-50:#0f2239; --accent-100:#12304f; --accent-200:#17416a; --accent-300:#1f568a;
  --accent-400:#2f6fae; --accent-500:#4a86c6; --accent-600:#72a5da; --accent-700:#99c2ed;
  --accent-800:#bed8f5; --accent-900:#dceafb; --accent-950:#f0f7ff;
  --success-50:#10271c; --success-100:#173826; --success-600:#67c99b; --success-700:#8bdab5;
  --warning-50:#2c210e; --warning-100:#3a2c12; --warning-600:#e5b45a; --warning-700:#f0c978;
  --danger-50:#301716; --danger-100:#421d1c; --danger-600:#f08a82; --danger-700:#f5aaa4;
  --info-50:#10283c; --info-100:#15364e; --info-600:#79b3df; --info-700:#9dc9ea;
  --state-lead:#94a0ad; --state-contact:#7fa7e1; --state-prescreening:#d6aa63; --state-qualified:#86b38f;
  --state-mandate:#74adb6; --state-investigation:#b59bd0; --state-design:#85a8cf; --state-business:#9aa8a0;
  --state-qc:#c59484; --state-ready:#73b5a5; --state-sent:#7cb4d0; --state-review:#ad95c0;
  --state-approved:#72c092; --state-rejected:#df827a; --state-reporting:#c2ae6d; --state-closed:#a8b3c1;
  --bg-canvas:#0b1016; --bg-surface:#10161d; --bg-subtle:#0e141b; --bg-muted:#18212b; --bg-elevated:#141c25;
  --text-primary:#f3f5f7; --text-secondary:#c2cad4; --text-tertiary:#8995a5; --text-inverse:#091018; --text-link:#a9cbed;
  --border-subtle:#202a35; --border-default:#2a3644; --border-strong:#3b4858; --focus-ring:#8cc2ff; --selection-bg:#183f66;
  --shadow-overlay:0 24px 60px rgb(0 0 0 / .46); --shadow-popover:0 16px 34px rgb(0 0 0 / .38);
}

*,*::before,*::after{box-sizing:border-box}::selection{background:var(--selection-bg)}
@media (prefers-reduced-motion:reduce){:root{--duration-fast:1ms;--duration-normal:1ms;--duration-slow:1ms}*,*::before,*::after{scroll-behavior:auto;animation-duration:1ms;animation-iteration-count:1;transition-duration:1ms}}
