:root {
  color-scheme: light;
  --bg: #f1f2fa;
  --surface: #ffffff;
  --surface-2: #eef0fa;
  --border: #dcdced;
  --control-border: #7d809a;
  --text: #191b38;
  --muted: #434b68;
  --dim: #505875;
  --brand: #5d42c6;
  --accent: var(--brand);
  --accent-text: #ffffff;
  --accent-low: #ece6ff;
  --brand-text: #5332b5;
  --focus: #563bc1;
  --success: #284568;
  --success-bg: #e7eff9;
  --warning: #734908;
  --warning-bg: #fff2d8;
  --danger: #a12a34;
  --danger-bg: #fbe9eb;
  --notification: #c92f45;
  --market-blue: #c3e3fa;
  --market-lilac: #dacafa;
  --market-haze: #eef4ff;
  --explore-grid: rgba(255, 255, 255, .31);
  --glass-panel: rgba(246, 247, 255, .54);
  --glass-chrome: rgba(244, 247, 255, .66);
  --glass-control: rgba(255, 255, 255, .88);
  --glass-rim: rgba(255, 255, 255, .86);
  --glass-shadow: 0 8px 22px rgba(72, 58, 145, .09), inset 0 0 10px rgba(255, 255, 255, .20);
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --radius-small: 10px;
  --radius: 14px;
  --radius-panel: 20px;
  --radius-dialog: 24px;
  --radius-pill: 999px;
  --shadow-panel: 0 2px 8px rgba(64, 53, 113, .06);
  --tap: max(44px, 2.75rem);
  --width: 1120px;
  --reading-width: 740px;
  --type-small: .8125rem;
  --type-label: .875rem;
  --type-title: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --type-subtitle: 1.125rem;
  --type-amount: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --weight-strong: 700;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161829;
  --surface: #20223a;
  --surface-2: #2a2d47;
  --border: #454968;
  --control-border: #8e96b7;
  --text: #f1f0ff;
  --muted: #c0c5e1;
  --dim: #adb5d3;
  --brand: #baa7ff;
  --accent-text: #20153f;
  --accent-low: #3b2f60;
  --brand-text: #c9b8ff;
  --focus: #c9b8ff;
  --success: #b4cdea;
  --success-bg: #283d59;
  --warning: #f4cf86;
  --warning-bg: #3d3322;
  --danger: #ffb7bf;
  --danger-bg: #462a30;
  --notification: #ff8193;
  --market-blue: #1b2a45;
  --market-lilac: #342855;
  --market-haze: #222f4d;
  --explore-grid: rgba(197, 187, 255, .14);
  --glass-panel: rgba(31, 32, 58, .48);
  --glass-chrome: rgba(31, 32, 56, .76);
  --glass-control: rgba(31, 32, 55, .94);
  --glass-rim: rgba(194, 185, 248, .32);
  --glass-shadow: 0 8px 22px rgba(0, 0, 0, .18), inset 0 0 10px rgba(215, 208, 255, .045);
  --shadow-panel: 0 2px 8px rgba(0, 0, 0, .13);
}
