/* Shared radar-ui v2 tokens, copied from codexradar.com/assets/radar-ui.css on 2026-11-10.
   Kept local for same-origin CSP and reproducible releases; no main-site module selectors. */
:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 20px;
  --fs-2xl: clamp(22px, 1.2vw + 16px, 28px); --fs-3xl: clamp(28px, 2.4vw + 14px, 40px);
  --lh-tight: 1.22; --lh-ui: 1.45; --lh-body: 1.7;
  --w-regular: 400; --w-medium: 500; --w-semibold: 600; --w-bold: 700;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-7: 28px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-14: 56px; --s-16: 64px; --s-20: 80px;
  --r-xs: 2px; --r-sm: 3px; --r-md: 4px; --r-lg: 4px; --r-pill: 99px;
  --ease: cubic-bezier(.2, .7, .2, 1); --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;
  --shell: 1240px; --gutter: clamp(16px, 3.2vw, 40px); --nav-h: 52px; --measure: 72ch;
  --brand-grad: linear-gradient(90deg, var(--accent-2), var(--accent));
  /* Data series keep their published meaning in every module. */
  --series-standard: #5ea8ff; --series-fast: #f3b33d; --series-ultrafast: #39ff88;
  --model-astra: #f97316; --model-sol: #eab308; --model-luna: #818cf8; --model-terra: #38bdf8; --model-luna56: #fb7185;
}

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050806;
  --bg-top: #050806;
  --bg-glow: rgba(57, 255, 136, .055);
  --surface: #09110c;
  --surface-2: #0c1610;
  --surface-3: #112019;
  --surface-sunken: #040705;
  --line: #193a29;
  --line-2: #2a5a40;
  --line-soft: #10251a;
  --text: #ddeae1;
  --text-2: #a2b8aa;
  --text-3: #6f8a79;
  --text-inverse: #050806;
  --accent: #39ff88;
  --accent-2: #22c76a;
  --accent-strong: #8dffbf;
  --accent-ink: #032412;
  --accent-soft: rgba(57, 255, 136, .07);
  --accent-line: rgba(57, 255, 136, .32);
  --glow: rgba(57, 255, 136, .32);
  --ok: #39ff88;  --ok-soft: rgba(57, 255, 136, .1);
  --warn: #f2c14e; --warn-soft: rgba(242, 193, 78, .12);
  --alert: #ff7a6b; --alert-soft: rgba(255, 122, 107, .12);
  --violet: #a78bfa; --violet-soft: rgba(167, 139, 250, .14);
  --focus: #39ff88;
  --scrim: rgba(0, 0, 0, .72);
  --shadow-1: none;
  --shadow-2: none;
  --shadow-pop: 0 24px 100px rgba(0, 0, 0, .6);
  --glass: rgba(5, 8, 6, .88);
  --chart-grid: rgba(57, 255, 136, .08);
  --chart-axis: #6f8a79;
  /* Aliases for module styles and generated markup written before radar-ui. */
  --ink: var(--text); --muted: var(--text-2); --soft: var(--text-3);
  --panel: var(--surface); --panel-soft: var(--surface-2); --line-strong: var(--line-2);
  --blue: var(--accent); --blue-soft: var(--accent-soft);
  --green: var(--ok); --green-dark: var(--accent-2); --green-soft: var(--ok-soft);
  --amber: var(--warn); --amber-soft: var(--warn-soft);
  --red: var(--alert); --red-soft: var(--alert-soft);
  --shadow: var(--shadow-2); --shadow-soft: var(--shadow-1);
}

/* Light keeps the console structure on pale paper: same hairlines, darker signal green. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6f2;
  --bg-top: #f3f6f2;
  --bg-glow: rgba(8, 122, 64, .06);
  --surface: #fbfdfa;
  --surface-2: #eef3ee;
  --surface-3: #e3ebe4;
  --surface-sunken: #e8efe9;
  --line: #cfdfd3;
  --line-2: #a7c2af;
  --line-soft: #e0eae2;
  --text: #0e1c14;
  --text-2: #3b5345;
  --text-3: #5b7264;
  --text-inverse: #ffffff;
  --accent: #087a40;
  --accent-2: #0b8f4c;
  --accent-strong: #055a2f;
  --accent-ink: #ffffff;
  --accent-soft: rgba(8, 122, 64, .07);
  --accent-line: rgba(8, 122, 64, .3);
  --glow: rgba(8, 122, 64, .18);
  --ok: #087a40;  --ok-soft: rgba(8, 122, 64, .09);
  --warn: #9a5b00; --warn-soft: rgba(214, 140, 0, .11);
  --alert: #c4303e; --alert-soft: rgba(196, 48, 62, .08);
  --violet: #6d4bd8; --violet-soft: rgba(109, 75, 216, .09);
  --focus: #087a40;
  --scrim: rgba(14, 28, 20, .5);
  --shadow-1: none;
  --shadow-2: none;
  --shadow-pop: 0 24px 60px rgba(14, 28, 20, .16);
  --glass: rgba(243, 246, 242, .9);
  --chart-grid: rgba(14, 28, 20, .08);
  --chart-axis: #5b7264;
  --series-standard: #2f6fdb; --series-fast: #c47d00; --series-ultrafast: #087a40;
}
