@font-face { font-family: "Geist"; src: url("fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* RECICRED UI 2.0 — source of truth for both themes. No build step. */
:root {
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --brand-obsidian-950: #0b1419;
  --brand-obsidian-900: #0e1a22;
  --action-background: var(--brand-700);
  --action-foreground: var(--on-action);
  --button-background: var(--action-background);
  color-scheme: light;
  --identity-deep: #173f35;
  --identity-active: #286b58;
  --identity-soft: #8fb49a;
  --identity-gold: #b28a50;
  --identity-ivory: #f0efe6;
  --brand-900: var(--identity-deep);
  --brand-800: var(--identity-active);
  --brand-700: var(--identity-deep);
  --brand-100: #dfede4;
  --brand-50: #eff5f1;
  --canvas: #f5f4ee;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-subtle: #faf9f5;
  --text: #11241f;
  --muted: #52665d;
  --border: #d9e2da;
  --control-border: #7c8c82;
  --on-action: #ffffff;
  --focus: #286b58;
  --success-text: #216044;
  --success-bg: #e5f2e8;
  --warning-text: #785319;
  --warning-bg: #faf0d9;
  --danger-text: #a03235;
  --danger-bg: #fceced;
  --info-text: #375f78;
  --info-bg: #eaf2f8;
  --neutral-text: #52665d;
  --neutral-bg: #edf0ed;
  --accent-text: #795a2b;
  --accent-bg: #f3eddf;
  --sidebar: #f0efe6;
  --sidebar-text: #173f35;
  --sidebar-muted: #435751;
  --sidebar-hover: #e3e7dd;
  --sidebar-selected: #173f35;
  --sidebar-selected-text: #f0efe6;
  --sidebar-border: #c5cfc6;
  --featured-bg: #173f35;
  --featured-text: #ffffff;
  --featured-muted: #c6dbce;
  --chart-1: #286b58;
  --chart-2: #496c8a;
  --chart-3: #91682f;
  --chart-pattern: #ffffffaa;
  --shadow-card: 0 2px 5px #173f3504;
  --shadow-float: 0 16px 48px #102b2524;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-xs: .75rem;
  --font-sm: .875rem;
  --font-md: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.375rem;
  --font-title: 2rem;
  --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;
  --radius-sm: 6px;
  --radius-control: 8px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --control-height: 44px;
  --sidebar-width: 248px;
  --content-width: 1480px;
  --motion-fast: 150ms;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand-900: #d3e8d9;
  --brand-800: #a7c7b0;
  --brand-700: #8fb49a;
  --brand-100: #294b3c;
  --brand-50: #20372d;
  --canvas: var(--brand-obsidian-950);
  --surface: #122129;
  --surface-raised: #162832;
  --surface-subtle: #162832;
  --text: #f0efe6;
  --muted: #b5c4bc;
  --border: #354a3d;
  --control-border: #819887;
  --on-action: #0b1419;
  --focus: #badbc2;
  --success-text: #b0d9bd;
  --success-bg: #234332;
  --warning-text: #e8ca8b;
  --warning-bg: #3e3421;
  --danger-text: #ffb4b7;
  --danger-bg: #462b30;
  --info-text: #b5d3ec;
  --info-bg: #243b4b;
  --neutral-text: #bccabe;
  --neutral-bg: #2c3c31;
  --accent-text: #e0bf89;
  --accent-bg: #3b3324;
  --sidebar: var(--brand-obsidian-900);
  --sidebar-text: #f0efe6;
  --sidebar-muted: #b5c4bc;
  --sidebar-hover: #1b313d;
  --sidebar-selected: #8fb49a;
  --sidebar-selected-text: #0b1419;
  --sidebar-border: #354a4d;
  --featured-bg: #254b39;
  --featured-text: #edf5ed;
  --featured-muted: #c3dac9;
  --chart-1: #a1c9ae;
  --chart-2: #9fc0dd;
  --chart-3: #dcba7e;
  --chart-pattern: #10271b99;
  --shadow-card: none;
  --shadow-float: 0 16px 48px #00000055;
}
/* Native controls remain usable if JavaScript is unavailable. */
@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; }
}

/* Follow the OS even before/without JavaScript. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  color-scheme: dark;
  --brand-900: #d3e8d9;
  --brand-800: #a7c7b0;
  --brand-700: #8fb49a;
  --brand-100: #294b3c;
  --brand-50: #20372d;
  --canvas: var(--brand-obsidian-950);
  --surface: #122129;
  --surface-raised: #162832;
  --surface-subtle: #162832;
  --text: #f0efe6;
  --muted: #b5c4bc;
  --border: #354a3d;
  --control-border: #819887;
  --on-action: #0b1419;
  --focus: #badbc2;
  --success-text: #b0d9bd;
  --success-bg: #234332;
  --warning-text: #e8ca8b;
  --warning-bg: #3e3421;
  --danger-text: #ffb4b7;
  --danger-bg: #462b30;
  --info-text: #b5d3ec;
  --info-bg: #243b4b;
  --neutral-text: #bccabe;
  --neutral-bg: #2c3c31;
  --accent-text: #e0bf89;
  --accent-bg: #3b3324;
  --sidebar: var(--brand-obsidian-900);
  --sidebar-text: #f0efe6;
  --sidebar-muted: #b5c4bc;
  --sidebar-hover: #1b313d;
  --sidebar-selected: #8fb49a;
  --sidebar-selected-text: #0b1419;
  --sidebar-border: #354a4d;
  --featured-bg: #254b39;
  --featured-text: #edf5ed;
  --featured-muted: #c3dac9;
  --chart-1: #a1c9ae;
  --chart-2: #9fc0dd;
  --chart-3: #dcba7e;
  --chart-pattern: #10271b99;
  --shadow-card: none;
  --shadow-float: 0 16px 48px #00000055;
  }
}
