/* Copy of ui/src/styles/tokens.css (source of truth). The font @imports are dropped here: the site loads Inter, Funnel Display and IBM Plex Mono itself.
   Design tokens. Dark is the default theme, light is opt-in through
   <html data-theme="light">. Kabin palette: near-black wash, teal accent, a
   neutral ramp and three semantic hues. Controls are square (1px borders),
   cards use a large radius, shadows stay off in dark. */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  /* palette */
  --blue-1: #f0faf8;
  --blue-4: #7fc9bf;
  --blue-6: #2a8f84;
  --blue-7: #0f766e;
  --blue-8: #0b5a54;
  --blue-10: #06201e;
  --n-1: #fefefe;
  --n-4: #c4c4c4;
  --n-5: #9e9e9e;
  --n-6: #767676;
  --n-7: #4d4d4d;
  --n-8: #2e2e2e;
  --n-9: #1a1a1a;
  --n-10: #060606;

  /* semantic */
  --bg: #060606;
  --surface: #0b0b0c;
  --surface-2: #151516;
  --surface-hover: #141416;
  --border: #2e2e2e;
  --border-strong: #4d4d4d;
  --text: #fefefe;
  --text-2: #c4c4c4;
  --text-3: #9e9e9e;
  --accent: #0f766e;
  --accent-hover: #138a80;
  --accent-text: #ffffff;
  --selected: #06201e;
  --selected-border: #2a8f84;
  --link: #7fc9bf;
  --focus: #7fc9bf;
  --danger: #f2a39a;
  --danger-hover: #c93528;
  --danger-solid: #b42318;
  --danger-surface: #2a1210;
  --ok: #3aa874;
  --ok-surface: #0f2419;
  --busy: #e0a242;
  --warn-surface: #2a1f0a;
  --idle: #767676;
  --info-surface: #06201e;
  --code-bg: #101012;
  --output-bg: #09090a;
  --stderr: #f2a39a;
  --chart-1: #7fc9bf;
  --chart-2: #fefefe;
  --chart-3: #2a8f84;
  --chart-4: #9e9e9e;
  --chart-5: #767676;
  --shadow-dialog: none;
  --shadow-menu: 0 8px 24px rgb(0 0 0 / 0.6);
  --backdrop: rgb(0 0 0 / 0.65);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fefefe;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --surface-hover: #f6f6f6;
  --border: #e0e0e0;
  --border-strong: #c4c4c4;
  --text: #060606;
  --text-2: #4d4d4d;
  --text-3: #6a6a6a;
  --accent: #0f766e;
  --accent-hover: #0b5a54;
  --accent-text: #ffffff;
  --selected: #dcf1ee;
  --selected-border: #0f766e;
  --link: #0b6a63;
  --focus: #0f766e;
  --danger: #b42318;
  --danger-hover: #8f1c12;
  --danger-solid: #b42318;
  --danger-surface: #fbe9e7;
  --ok: #1d6f48;
  --ok-surface: #e8f3ed;
  --busy: #8a5300;
  --warn-surface: #fbf1de;
  --idle: #9e9e9e;
  --info-surface: #dcf1ee;
  --code-bg: #f2f2f2;
  --output-bg: #fafafa;
  --stderr: #b42318;
  --chart-1: #0f766e;
  --chart-2: #060606;
  --chart-3: #5fb3a9;
  --chart-4: #767676;
  --chart-5: #9e9e9e;
  --shadow-dialog: 0 12px 32px rgb(0 0 0 / 0.14);
  --shadow-menu: 0 8px 24px rgb(0 0 0 / 0.14);
  --backdrop: rgb(6 6 6 / 0.4);
}

:root {
  --font: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Funnel Display", "Inter Variable", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-base: 14.4px;
  --fs-small: 12.6px;
  --fs-h1: 28.8px;
  --control-h: 40px;
  --control-h-sm: 32px;
  --radius: 0px;
  --radius-sm: 0px;
  --radius-ctl: 0px;
  --radius-card: 16px;
  --sidebar-w: 252px;
  --content-max: 1130px;
  --z-sticky: 20;
  --z-drawer: 30;
  --z-modal: 40;
  --z-menu: 50;
  --z-toast: 60;
}
