/* The shared theme. The one thing Honest Compose lets cross component folders.
   A component names the tokens it reads in its style manifest, and the theme supplies them here.
   Taken unchanged from buix: dark is the default, light is set by data-theme or the OS. */

:root, [data-theme="dark"] {
  --surface: #121313;
  --surface-hover: #171919;
  --surface-raised: #1b1d1d;
  --ink: #ecebe6;
  --ink-secondary: #cfcec8;
  --ink-muted: #a3a39d;
  --ink-faint: #8a8a84;
  --ink-dim: #7c7c76;
  --line: #ffffff0f;
  --line-strong: #ffffff1f;
  --line-emphasis: #ffffff5c;
  --on-ink: #121313;
  --risk-ok: #7fd3b4;
  --risk-ok-soft: #212e2a;
  --risk-medium: #e3a24f;
  --risk-medium-soft: #2f271b;
  --risk-high: #f08a7e;
  --risk-high-soft: #312422;
  --on-risk: #121313;
  --focus-ring: var(--ink);
  --link: var(--ink-muted);
  --shadow-menu: 0 8px 24px rgba(0,0,0,0.45);
}
[data-theme="light"] {
  --surface: #fafafa;
  --surface-hover: #efefef;
  --surface-raised: #ffffff;
  --ink: #161616;
  --ink-secondary: #2b2b2b;
  --ink-muted: #464646;
  --ink-faint: #525252;
  --ink-dim: #636363;
  --line: #0000001f;
  --line-strong: #00000038;
  --line-emphasis: #00000073;
  --on-ink: #fafafa;
  --risk-ok: #147c4c;
  --risk-ok-soft: #e6f3eb;
  --risk-medium: #c2410c;
  --risk-medium-soft: #fbeee3;
  --risk-high: #c4231f;
  --risk-high-soft: #f9e3e1;
  --on-risk: #fafafa;
  --focus-ring: var(--ink);
  --link: var(--ink-muted);
  --shadow-menu: 0 8px 24px rgba(28,29,28,0.12);
}
:root {
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-2-5: 10px;
  --space-3: 12px;
  --space-3-5: 14px;
  --space-4: 16px;
  --space-4-5: 18px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --radius-none: 0px;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-full: 9999px;
  --control-height: 44px;
  --icon: 16px;
  --dot: 7px;
  --sidebar: 220px;
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --surface: #fafafa;
    --surface-hover: #efefef;
    --surface-raised: #ffffff;
    --ink: #161616;
    --ink-secondary: #2b2b2b;
    --ink-muted: #464646;
    --ink-faint: #525252;
    --ink-dim: #636363;
    --line: #0000001f;
    --line-strong: #00000038;
    --line-emphasis: #00000073;
    --on-ink: #fafafa;
    --risk-ok: #147c4c;
    --risk-ok-soft: #e6f3eb;
    --risk-medium: #c2410c;
    --risk-medium-soft: #fbeee3;
    --risk-high: #c4231f;
    --risk-high-soft: #f9e3e1;
    --on-risk: #fafafa;
    --focus-ring: var(--ink);
    --link: var(--ink-muted);
    --shadow-menu: 0 8px 24px rgba(28,29,28,0.12);
  }
}
