/* Canonical theme and rhythm tokens. Components must consume these, not redefine root colors. */
:root {
  color-scheme: light;
  --bg: #f2f3ee;
  --bg-gradient: radial-gradient(ellipse at top left, #fcfcf8, transparent 65%), var(--bg);
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --surface-warm: #f8faf9;
  --surface-cool: #f1f6f4;
  --soft: #eaf0eb;
  --toolbar-surface: #fbfcf9;
  --filter-surface: #f7f9f5;
  --note-surface: #f1f5f0;
  --line: #d5ded8;
  --line-strong: #a7bdb3;
  --hairline: rgba(255, 255, 255, 0.9);
  --scrollbar-thumb: rgba(57, 92, 84, 0.42);
  --scrollbar-thumb-hover: rgba(15, 118, 110, 0.68);
  --text: #14211d;
  --text-secondary: #2d4841;
  --muted: #526761;
  --accent: #0f766e;
  --accent-strong: #075b57;
  --accent-fill: #0b4f47;
  --accent-fill-hover: #0d5c52;
  --on-accent: #f2fffb;
  --accent-warm: #9a6b0a;
  --accent-soft: rgba(15, 118, 110, 0.08);
  --focus-ring: rgba(15, 118, 110, 0.4);
  --rank: #9a6b0a;
  --seal: #c73842;
  --good: #087454;
  --bad: #b4444e;
  --status-move: #8653b9;
  --trend-primary: #9a6b0a;
  --power-num: #9a6b0a;
  --shadow-sm: 0 1px 3px rgba(23, 35, 31, 0.07);
  --shadow: 0 5px 16px rgba(23, 35, 31, 0.085), 0 1px 3px rgba(23, 35, 31, 0.035);
  --shadow-lg: 0 13px 32px rgba(23, 35, 31, 0.105), 0 3px 8px rgba(23, 35, 31, 0.045);
  --shadow-float: 0 18px 44px rgba(23, 35, 31, 0.11), 0 4px 10px rgba(23, 35, 31, 0.04);
  --card-radius: 10px;
  --card-padding-y: 8px;
  --card-padding-x: 12px;
  --card-row-height: 60px;
  --ink: var(--text);
  --metric-surface: #ffffff;
  --metric-border: #d4e5df;
  --metric-label: #4c6b62;
  --metric-value: #243f36;
  --detail-surface: #f5f7f6;
  --detail-line: #e1e7e4;
  --detail-highlight: rgba(255, 255, 255, .75);
  --detail-hover: #edf2ef;
  --detail-hover-line: #c6d3cc;
  --detail-caption: #526761;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --type-caption: 12px;
  --type-body: 14px;
  --type-heading: 20px;
  --motion-fast: 120ms;
  --motion-standard: 180ms;
  --motion-slow: 240ms;
  --layer-toolbar: 20;
  --layer-popover: 40;
  --layer-dialog: 60;
}
:root[data-theme="dark"] {
  --status-move: #c084fc;
  color-scheme: dark;
  --bg: #0b100e;
  --bg-gradient: radial-gradient(1100px 700px at 18% -12%, #15211d 0%, #0b100e 56%);
  --surface: #151d1a;
  --surface-raised: #1c2622;
  --surface-sunken: #101613;
  --surface-hover: #192420;
  --panel: var(--surface);
  --panel-solid: var(--surface);
  --surface-warm: var(--surface-raised);
  --surface-cool: var(--surface-sunken);
  --soft: #25302c;
  --toolbar-surface: var(--surface);
  --filter-surface: var(--surface);
  --note-surface: rgba(99, 197, 185, 0.05);
  --line: rgba(224, 238, 233, 0.14);
  --line-strong: rgba(224, 238, 233, 0.26);
  --hairline: rgba(255, 255, 255, 0.06);
  --scrollbar-thumb: rgba(154, 171, 163, 0.38);
  --scrollbar-thumb-hover: rgba(111, 208, 193, 0.62);
  --text: #eff4f2;
  --text-secondary: #c2cec9;
  --muted: #9aaba3;
  --accent: #6fd0c1;
  --accent-strong: #9ee6da;
  --accent-warm: #e6bc68;
  --accent-soft: rgba(99, 197, 185, 0.12);
  --focus-ring: rgba(111, 208, 193, 0.38);
  --rank: #e0b45d;
  --seal: #ed6858;
  --good: #62c997;
  --bad: #ed7466;
  --trend-primary: #e6bc68;
  --power-num: #e6bc68;
  --shadow-sm: 0 0 0 transparent;
  --shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.42);
  --shadow-lg: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 48px rgba(0,0,0,.55);
  --shadow-float: var(--shadow-lg);
  --metric-surface: var(--surface-sunken);
  --metric-border: #354b41;
  --metric-label: #9cbbad;
  --metric-value: #e0eee6;
  --detail-surface: var(--surface-sunken);
  --detail-line: #303936;
  --detail-highlight: rgba(255, 255, 255, .025);
  --detail-hover: var(--surface-hover);
  --detail-hover-line: #455249;
  --detail-caption: var(--muted);
}
