/* Sovereign Intelligence / AienOS brand tokens, compiled from tokens.json. Themes: dark (default), light, contrast, cvd. Set <html data-theme="...">. */
:root, [data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: #14141f;
  --bg-card-glass: rgba(20, 20, 31, 0.4);
  --bg-card-faint: rgba(20, 20, 31, 0.3);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-header: rgba(5, 6, 8, 0.7);
  --sidebar-bg: #0c0c14;
  --fill-input: rgba(255, 255, 255, 0.05);
  --fill-hover: rgba(255, 255, 255, 0.02);
  --col-stripe: rgba(255, 255, 255, 0.055);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.1);
  --border-faint: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-tertiary: rgba(255, 255, 255, 0.7);
  --accent: #63b3ed;
  --accent-hover: #4299e1;
  --accent-fill: #2563eb;
  --accent-fill-hover: #1d4ed8;
  --on-accent-fill: #ffffff;
  --pill: #ffffff;
  --on-pill: #000000;
  --focus-ring: #7dd3fc;
  --success: #00d294;
  --success-fill: #00bb7f;
  --success-tint: rgba(0, 187, 127, 0.1);
  --success-line: rgba(0, 187, 127, 0.2);
  --success-edge: rgba(0, 187, 127, 0.25);
  --warning: #fcbb00;
  --warning-fill: #f99c00;
  --warning-tint: rgba(249, 156, 0, 0.1);
  --warning-line: rgba(249, 156, 0, 0.2);
  --danger: #ff6568;
  --danger-fill: #fb2c36;
  --danger-tint: rgba(251, 44, 54, 0.1);
  --danger-line: rgba(251, 44, 54, 0.2);
  --info: #54a2ff;
  --info-tint: rgba(48, 128, 255, 0.1);
  --info-line: rgba(48, 128, 255, 0.2);
  --track: rgba(255, 255, 255, 0.1);
  --live-dot: #ffffff;
  --ember: #ff735e;
  --brand-blue: #2563eb;
  --brand-cyan: #22d3ee;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --series-4: #c98500;
  --series-5: #d55181;
  --series-6: #008300;
  --series-7: #9085e9;
  --series-8: #e66767;
  --heat-mid: #383835;
  --heat-0: rgba(57, 135, 229, 0.06);
  --heat-1: rgba(57, 135, 229, 0.18);
  --heat-2: rgba(57, 135, 229, 0.34);
  --heat-3: rgba(57, 135, 229, 0.55);
  --heat-4: rgba(57, 135, 229, 0.8);
  --glow-live: 0 0 10px 0 rgba(255, 255, 255, 0.9);
  --ring-input: 0 0 0 2px rgba(48, 128, 255, 0.5);
}
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.4);
  --bg-card-faint: rgba(255, 255, 255, 0.3);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --bg-header: rgba(248, 250, 252, 0.7);
  --sidebar-bg: #f1f5f9;
  --fill-input: #ffffff;
  --fill-hover: rgba(15, 23, 42, 0.03);
  --col-stripe: rgba(15, 23, 42, 0.043);
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-faint: #f1f5f9;
  --text-primary: #1a202c;
  --text-secondary: #5a6578;
  --text-tertiary: #334155;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-fill: #2563eb;
  --accent-fill-hover: #1d4ed8;
  --on-accent-fill: #ffffff;
  --pill: #0a0a0f;
  --on-pill: #ffffff;
  --focus-ring: #1d4ed8;
  --success: #047857;
  --success-fill: #00bb7f;
  --success-tint: rgba(0, 187, 127, 0.1);
  --success-line: rgba(0, 187, 127, 0.3);
  --success-edge: rgba(0, 187, 127, 0.35);
  --warning: #b75000;
  --warning-fill: #f99c00;
  --warning-tint: rgba(249, 156, 0, 0.12);
  --warning-line: rgba(249, 156, 0, 0.35);
  --danger: #b91c1c;
  --danger-fill: #fb2c36;
  --danger-tint: rgba(251, 44, 54, 0.08);
  --danger-line: rgba(251, 44, 54, 0.3);
  --info: #1447e6;
  --info-tint: rgba(48, 128, 255, 0.1);
  --info-line: rgba(48, 128, 255, 0.3);
  --track: rgba(15, 23, 42, 0.1);
  --live-dot: #0a0a0f;
  --ember: #a9462b;
  --brand-blue: #2563eb;
  --brand-cyan: #0891b2;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --series-4: #eda100;
  --series-5: #e87ba4;
  --series-6: #008300;
  --series-7: #4a3aa7;
  --series-8: #e34948;
  --heat-mid: #f0efec;
  --heat-0: rgba(42, 120, 214, 0.06);
  --heat-1: rgba(42, 120, 214, 0.18);
  --heat-2: rgba(42, 120, 214, 0.34);
  --heat-3: rgba(42, 120, 214, 0.55);
  --heat-4: rgba(42, 120, 214, 0.8);
  --ring-input: 0 0 0 2px rgba(29, 78, 216, 0.35);
}
[data-theme="contrast"] {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-card: #000000;
  --bg-card-glass: #000000;
  --bg-card-faint: #000000;
  --bg-glass: #000000;
  --bg-header: #000000;
  --sidebar-bg: #000000;
  --fill-input: #000000;
  --fill-hover: rgba(255, 255, 255, 0.12);
  --col-stripe: #000000;
  --border: #ffffff;
  --border-strong: #ffffff;
  --border-faint: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-tertiary: #ffffff;
  --accent: #7fd4ff;
  --accent-hover: #b3e6ff;
  --accent-fill: #0000ee;
  --accent-fill-hover: #0000aa;
  --on-accent-fill: #ffffff;
  --pill: #ffffff;
  --on-pill: #000000;
  --focus-ring: #ffff00;
  --success-tint: #000000;
  --success-line: #00d294;
  --success-edge: #00d294;
  --warning-tint: #000000;
  --warning-line: #fcbb00;
  --danger-tint: #000000;
  --danger-line: #ff6568;
  --info-tint: #000000;
  --info-line: #54a2ff;
  --track: #333333;
  --live-dot: #ffffff;
  --ember: #ff9b88;
  --brand-blue: #2563eb;
  --brand-cyan: #22d3ee;
  --heat-0: #0a1a33;
  --heat-1: #123366;
  --heat-2: #1f5299;
  --heat-3: #3a7fd6;
  --heat-4: #7fd4ff;
  --ring-input: 0 0 0 2px #ffff00;
}
[data-theme="cvd"] {
  --success: #38bdf8;
  --success-fill: #0ea5e9;
  --success-tint: rgba(14, 165, 233, 0.1);
  --success-line: rgba(14, 165, 233, 0.2);
  --success-edge: rgba(14, 165, 233, 0.25);
  --danger: #f472b6;
  --danger-fill: #ec4899;
  --danger-tint: rgba(236, 72, 153, 0.1);
  --danger-line: rgba(236, 72, 153, 0.2);
}
:root {
  --space-0_5: 2px;
  --space-1: 4px;
  --space-1_5: 6px;
  --space-2: 8px;
  --space-2_5: 10px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;
  --radius-bar: 1px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;
  --container-4xl: 896px;
  --container-6xl: 1152px;
  --header-height: 68px;
  --sidebar-width: 240px;
  --uptime-height: 32px;
  --dot: 8px;
  --blur-xl: 24px;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.display { font-family: var(--font-sans); font-size: 48px; line-height: 48px; font-weight: 700; letter-spacing: -0.025em; }
.page-title { font-family: var(--font-sans); font-size: 36px; line-height: 40px; font-weight: 700; }
.section-title { font-family: var(--font-sans); font-size: 18px; line-height: 28px; font-weight: 600; }
.card-title { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 600; }
.eyebrow { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.2em; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 24px; font-weight: 400; }
.body-sm { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 400; }
.label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; }
.button { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; }
.meta { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; }
.badge { font-family: var(--font-sans); font-size: 10px; line-height: 15px; font-weight: 500; }
.table-head { font-family: var(--font-sans); font-size: 10px; line-height: 12.5px; font-weight: 600; letter-spacing: 0.05em; }
.stat-value { font-family: var(--font-mono); font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.data { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; }
.mono-label { font-family: var(--font-mono); font-size: 10px; line-height: 10px; font-weight: 700; letter-spacing: 0.1em; }
