:root {
  color-scheme: light;
  --font: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", ui-monospace, monospace;
  --bg: #f7f6f2;
  --surface: #f1efe9;
  --raised: #fcfbf8;
  --inset: #eae7df;
  --rail: #eeece5;
  --text: #26241e;
  --secondary: #4e4a40;
  --muted: #6d685d;
  --line: #dfdcd2;
  --line-strong: #c7c1b3;
  --accent: #b54108;
  --accent-bright: #e75919;
  --soft: #f6e5d9;
  --risk: #8f490b;
  --riskbg: #f8ebd8;
  --up: #a93436;
  --up-bg: #f5e6e2;
  --down: #266c50;
  --down-bg: #e4eee6;
  --quiet: #645873;
  --quiet-bg: #ebe6ef;
  --button: #28261f;
  --button-text: #fffdf3;
  --radius: 8px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #201f1a;
  --surface: #292721;
  --raised: #302e26;
  --inset: #24221b;
  --rail: #25231d;
  --text: #f5f1e6;
  --secondary: #d2cabc;
  --muted: #aaa395;
  --line: #413d33;
  --line-strong: #62594a;
  --accent: #ffa675;
  --accent-bright: #f58543;
  --soft: #4b3224;
  --risk: #eabe85;
  --riskbg: #3e3020;
  --up: #f69f9a;
  --up-bg: #442c29;
  --down: #8ed1ae;
  --down-bg: #293d31;
  --quiet: #d0bddf;
  --quiet-bg: #3b3043;
  --button: #f1eadc;
  --button-text: #28261f;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--soft); color: var(--text); }
