:root, [data-theme="light"] {
  --surface: #ffffff;
  --surface-sunken: #f6f5f1;
  --surface-raised: #ffffff;
  --surface-overlay: #ffffff;
  --surface-inverse: #0e1116;
  --surface-hover: #f2f1ec;
  --surface-selected: #fff0e7;
  --surface-disabled: #f2f1ec;
  --ink: #141619;
  --ink-muted: #53565c;
  --ink-subtle: #6b6f77;
  --ink-inverse: #ffffff;
  --ink-on-brand: #080b10;
  --ink-link: #b8420a;
  --brand: #ff6417;
  --brand-hover: #ff7733;
  --brand-press: #e65310;
  --brand-soft: #fff0e7;
  --brand-ink: #b8420a;
  --brand-line: #ff6417;
  --line: #e3e1da;
  --line-strong: #6b6f77;
  --line-inverse: #2a2f36;
  --ok: #1f8a4c;
  --ok-soft: #e7f3ec;
  --ok-ink: #15663a;
  --warn: #c7861b;
  --warn-soft: #fbf2e2;
  --warn-ink: #8f5f0f;
  --danger: #c9372c;
  --danger-soft: #fbeae8;
  --danger-ink: #a62a21;
  --info: #1763c7;
  --info-soft: #e8f0fb;
  --info-ink: #14529f;
  --neutral-soft: #f0efea;
  --live: #d62b1f;
  --live-soft: #fdeceb;
  --chart-1: #d9500c;
  --chart-2: #1763c7;
  --chart-3: #1f8a4c;
  --chart-4: #8a5bd6;
  --chart-5: #0f7b86;
  --chart-6: #9a6214;
  --chart-grid: #e3e1da;
  --chart-ink: #6b6f77;
  --focus-ring: #d9500c;
  --shadow-raised: 0 1px 2px rgba(0,0,0,0.06), 0 12px 32px -12px rgba(0,0,0,0.25);
  --shadow-overlay: 0 4px 8px -2px rgba(0,0,0,0.08), 0 20px 40px -16px rgba(0,0,0,0.45);
  --shadow-hero: 0 32px 64px -24px rgba(0,0,0,0.35);
  --shadow-focus: 0 0 0 2px rgba(255,100,23,0.3);
  --shadow-none: none;
}
[data-theme="dark"] {
  --surface: #0e1116;
  --surface-sunken: #080b10;
  --surface-raised: #171b21;
  --surface-overlay: #1e232a;
  --surface-inverse: #f6f5f1;
  --surface-hover: #1c2128;
  --surface-selected: #2a1a11;
  --surface-disabled: #161a20;
  --ink: #f4f5f6;
  --ink-muted: #aab0b8;
  --ink-subtle: #8b9199;
  --ink-inverse: #0e1116;
  --ink-on-brand: #080b10;
  --ink-link: #ff8440;
  --brand: #ff6417;
  --brand-hover: #ff8440;
  --brand-press: #e65310;
  --brand-soft: #2a1a11;
  --brand-ink: #ff8440;
  --brand-line: #ff6417;
  --line: #272c33;
  --line-strong: #8b9199;
  --line-inverse: #d9d7cf;
  --ok: #35b56c;
  --ok-soft: #10231a;
  --ok-ink: #5fd392;
  --warn: #e0a234;
  --warn-soft: #2a2009;
  --warn-ink: #f0bd5e;
  --danger: #ef5a4d;
  --danger-soft: #2d110e;
  --danger-ink: #ff8176;
  --info: #4d95ee;
  --info-soft: #0c1a2d;
  --info-ink: #79b0f5;
  --neutral-soft: #1c2128;
  --live: #ff5c4d;
  --live-soft: #2d0f0d;
  --chart-1: #ff6417;
  --chart-2: #4d95ee;
  --chart-3: #35b56c;
  --chart-4: #a885e8;
  --chart-5: #2eaab5;
  --chart-6: #c99039;
  --chart-grid: #272c33;
  --chart-ink: #8b9199;
  --focus-ring: #ff8440;
  --shadow-raised: 0 1px 2px rgba(0,0,0,0.5), 0 12px 32px -12px rgba(0,0,0,0.7);
  --shadow-overlay: 0 4px 8px -2px rgba(0,0,0,0.6), 0 20px 40px -16px rgba(0,0,0,0.75);
  --shadow-hero: 0 32px 64px -24px rgba(0,0,0,0.7);
  --shadow-focus: 0 0 0 2px rgba(255,132,64,0.35);
  --shadow-none: none;
}
[data-theme="safe"] {
  --ok: #0b6e6e;
  --ok-soft: #e4f1f1;
  --ok-ink: #095a5a;
  --info: #6b4bb8;
  --info-soft: #efeafb;
  --info-ink: #573c96;
  --chart-2: #6b4bb8;
  --chart-3: #0b6e6e;
  --chart-5: #1763c7;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-full: 9999px;
  --border-hairline: 1px;
  --border-control: 2px;
  --control-sm: 36px;
  --control-md: 44px;
  --control-lg: 52px;
  --icon-sm: 16px;
  --icon-md: 20px;
  --icon-lg: 24px;
  --wrap-max: 1200px;
  --measure: 68ch;
  --font-display: "Archivo Black", "Archivo", system-ui, sans-serif;
  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
.display-1 {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.display-2 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.display-3 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.title-app {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.lead {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.625;
  font-weight: 400;
}
.body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
.body-sm {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 400;
}
.caption {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}
.button {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
}
.metric {
  font-family: var(--font-sans);
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.2em;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.data {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}
