/*
 * MindGPT design tokens.
 * Palette: warm paper neutrals, a deep jade accent ("Mind green"),
 * a muted ember for attention and a brick red for errors.
 */
:root {
  --font-sans: "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 22px;

  --sidebar-w: 268px;
  --rail-w: 60px;
  --thread-w: 760px;
}

:root,
[data-theme="light"] {
  --canvas: #f7f6f2;
  --sidebar: #efeee8;
  --surface: #ffffff;
  --raised: #f2f1ec;
  --hover: rgb(24 25 23 / 0.05);
  --line: #e3e1d9;
  --line-strong: #cfcdc3;
  --ink: #181917;
  --ink-2: #5d5e58;
  --ink-3: #8e8e86;
  --accent: #2b7a58;
  --accent-hover: #236649;
  --accent-soft: #e2eee7;
  --accent-ink: #ffffff;
  --danger: #b4432c;
  --danger-soft: #f7e5e0;
  --warn: #9a6114;
  --warn-soft: #f6ecdc;
  --code: #f2f1eb;
  --overlay: rgb(20 21 19 / 0.32);
  --selection: rgb(43 122 88 / 0.18);
  --focus: rgb(43 122 88 / 0.55);

  --shadow-hairline: 0 0 0 1px var(--line);
  --shadow-float: 0 1px 2px rgb(24 25 23 / 0.04), 0 4px 16px -4px rgb(24 25 23 / 0.08);
  --shadow-composer: 0 0 0 1px var(--line), 0 1px 1px rgb(24 25 23 / 0.03), 0 12px 32px -16px rgb(24 25 23 / 0.16);
  --shadow-pop: 0 0 0 1px var(--line), 0 2px 4px rgb(24 25 23 / 0.04), 0 16px 40px -12px rgb(24 25 23 / 0.2);

  --syn-comment: #8e8e86;
  --syn-keyword: #7a37e6;
  --syn-string: #2b7a58;
  --syn-number: #a8650f;
  --syn-title: #1f5fae;
  --syn-attr: #a2443a;
  --syn-builtin: #0f7a8a;
}

[data-theme="dark"] {
  --canvas: #121311;
  --sidebar: #0c0d0c;
  --surface: #191a18;
  --raised: #1f201e;
  --hover: rgb(236 235 229 / 0.055);
  --line: #272825;
  --line-strong: #363733;
  --ink: #ecebe5;
  --ink-2: #a4a49c;
  --ink-3: #74756e;
  --accent: #5cc394;
  --accent-hover: #78d3a9;
  --accent-soft: rgb(92 195 148 / 0.12);
  --accent-ink: #0a1912;
  --danger: #e27560;
  --danger-soft: rgb(226 117 96 / 0.12);
  --warn: #e0a656;
  --warn-soft: rgb(224 166 86 / 0.12);
  --code: #0e0f0e;
  --overlay: rgb(0 0 0 / 0.55);
  --selection: rgb(92 195 148 / 0.25);
  --focus: rgb(92 195 148 / 0.6);

  --shadow-hairline: 0 0 0 1px var(--line);
  --shadow-float: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -8px rgb(0 0 0 / 0.5);
  --shadow-composer: 0 0 0 1px var(--line), 0 16px 40px -20px rgb(0 0 0 / 0.7);
  --shadow-pop: 0 0 0 1px var(--line-strong), 0 20px 48px -12px rgb(0 0 0 / 0.65);

  --syn-comment: #74756e;
  --syn-keyword: #c4a5ff;
  --syn-string: #8fd6b1;
  --syn-number: #f0b874;
  --syn-title: #8cc4ff;
  --syn-attr: #f09a8a;
  --syn-builtin: #7fd4df;
}
