/* tokens: palette, type, radii, light and dark themes (cut from app.css, order preserved) */
/* Kennar UI — dark by default: --bg #1b1c19 surface, --primary #3a674f, --amber #c99552 accent. Tokens first; light theme overrides below. */
:root {
  --bg: #1b1c19; --side: #151613; --surface: #222320; --surface-2: #272825; --surface-3: #30312d; --border: #343530; --border-strong: #484943;
  --text: #f1f0ea; --muted: #a9a89f; --faint: #8d8c83;
  --primary: #3a674f; --primary-soft: rgba(58,103,79,.28); --primary-ink: #ffffff;
  --amber: #c99552; --amber-soft: rgba(201,149,82,.13); --amber-ink: #1b1c19;
  --primary-text: #86bda0;   /* the primary green as TEXT or an icon on the dark surface (the fill colour is too dark to read there) */
  --green: #6ea588; --green-soft: rgba(110,165,136,.12);
  --red: #ef7b6b; --red-soft: rgba(239,123,107,.14); --sky: #86b6e8; --sky-soft: rgba(134,182,232,.14); --violet: #b9a5ea; --violet-soft: rgba(185,165,234,.15);
  --radius: 12px; --shadow: 0 1px 0 rgba(255,255,255,.025) inset, 0 6px 20px rgba(0,0,0,.28);
  --sans: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; --display: var(--sans);
  --read: var(--sans); --mono: "Roboto Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;  /* type: Roboto by default; the header's Font menu switches html[data-font] to atkinson or claude (below) */
  color-scheme: dark;
}
/* roles: --primary = brand fills (buttons, your messages, logo, badges), --primary-text = the same green when it is text or an icon; --amber = the SECONDARY (links, hints, highlights, spinner), kept at 4.5:1 or better on every surface in both themes;
   --bg = the page, --surface = cards and the composer, --faint = the quietest text that is still readable (4.5:1) */
:root { --secondary: var(--amber); --secondary-soft: var(--amber-soft); --ring: color-mix(in srgb, var(--primary-text) 70%, transparent); --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --bar-h: 52px; }
:root[data-theme="light"] {
  --bg: #faf9f5; --side: #f1efe7; --surface: #ffffff; --surface-2: #f6f4ec; --surface-3: #ebe8de; --border: #e6e3d8; --border-strong: #d4d0c3;
  --text: #1f1e1d; --muted: #66625a; --faint: #6f6b62;
  --primary: #3a674f; --primary-soft: rgba(58,103,79,.14); --primary-ink: #ffffff;
  --amber: #85591d; --amber-soft: rgba(133,89,29,.10); --amber-ink: #1b1c19;
  --primary-text: #3a674f;
  --green: #3a674f; --green-soft: rgba(58,103,79,.1);
  --red: #bd3a2a; --red-soft: rgba(189,58,42,.09); --sky: #2b6cb0; --sky-soft: rgba(43,108,176,.09); --violet: #6b4fd1; --violet-soft: rgba(107,79,209,.09);
  --shadow: 0 1px 2px rgba(31,30,29,.05), 0 4px 14px rgba(31,30,29,.05);
  color-scheme: light;
}
/* typefaces: one switch for the whole console (both views). Atkinson Hyperlegible for easy reading; "claude" = a serif for reading and headings over a soft sans interface */
:root[data-font="atkinson"] { --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif; --display: var(--sans); --read: var(--sans); --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
:root[data-font="claude"] { --sans: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Newsreader", "Iowan Old Style", Georgia, serif; --read: "Newsreader", "Iowan Old Style", Georgia, serif; --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--amber); text-decoration: none; } a:hover { text-decoration: underline; }
code, pre, .mono { font-family: var(--mono); }
code { background: var(--surface-3); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
h3, h4 { margin: 0 0 10px; font-weight: 600; letter-spacing: -.01em; } h4 { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
small, .muted { color: var(--muted); } small { font-size: 12px; }
::selection { background: var(--amber-soft); }
*::-webkit-scrollbar { width: 10px; height: 10px; } *::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid var(--bg); }

/* one visible keyboard focus for every control (the browser default is invisible on the glass surfaces) */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 8px; }
button { -webkit-tap-highlight-color: transparent; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
