:root {
  color-scheme: dark;
  --font-sans: "Noto Sans Thai", "Leelawadee UI", "Thonburi", "Tahoma", "Arial", sans-serif;
  --content-max-width: 1480px;
  --sidebar-width: 17rem;
  --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-sm: .625rem;
  --radius-md: .9rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.6rem;
  --radius-pill: 999px;
  --transition-fast: 140ms ease;
  --transition-normal: 220ms ease;
  --app-bg: #111111;
  --app-bg-secondary: #151515;
  --surface: #181818;
  --surface-raised: #202020;
  --surface-hover: #262626;
  --text-primary: #f5f3ee;
  --text-secondary: #b2afa8;
  --text-muted: #77746e;
  --gold: #c6a15b;
  --gold-strong: #d2ae66;
  --gold-text: #d6b66f;
  --gold-soft: rgba(198, 161, 91, .14);
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --border-gold: rgba(198,161,91,.32);
  --control-focus-color: var(--border-gold);
  --control-focus-outline: 1px solid var(--control-focus-color);
  --control-focus-offset: -1px;
  --shadow-soft: 0 16px 50px rgba(0,0,0,.24);
  --success: #8fc5a2;
  --success-soft: rgba(143,197,162,.14);
  --danger: #d99b9b;
  --danger-soft: rgba(217,155,155,.14);
  --notification-red: #9f2940;
  --notification-red-hover: #b4334c;
  --notification-red-text: #ffffff;
  --warning: #d6bd81;
  --warning-soft: rgba(214,189,129,.14);
  --info: #91b9d3;
  --info-soft: rgba(145,185,211,.14);
  --text-xs: clamp(.76rem,.73rem + .1vw,.86rem);
  --text-sm: clamp(.88rem,.84rem + .14vw,1rem);
  --text-base: clamp(1rem,.96rem + .16vw,1.12rem);
  --text-lg: clamp(1.12rem,1.02rem + .3vw,1.36rem);
  --text-xl: clamp(1.36rem,1.16rem + .55vw,1.8rem);
  --text-2xl: clamp(1.75rem,1.42rem + .9vw,2.45rem);
}

:root[data-theme="light"] {
  color-scheme: light;
  --app-bg: #f5f3ee;
  --app-bg-secondary: #eeebe4;
  --surface: #fcfbf8;
  --surface-raised: #ffffff;
  --surface-hover: #f2efe8;
  --text-primary: #191919;
  --text-secondary: #57544f;
  --text-muted: #77736c;
  --gold: #9a7535;
  --gold-strong: #7e5e29;
  --gold-text: #765721;
  --gold-soft: rgba(154,117,53,.12);
  --border: rgba(25,25,25,.10);
  --border-strong: rgba(25,25,25,.17);
  --border-gold: rgba(126,94,41,.30);
  --shadow-soft: 0 18px 50px rgba(57,48,35,.09);
  --success: #487f5b;
  --success-soft: rgba(99,165,119,.14);
  --danger: #a75555;
  --danger-soft: rgba(190,103,103,.13);
  --notification-red: #98243a;
  --notification-red-hover: #aa2c43;
  --notification-red-text: #ffffff;
  --warning: #876b2e;
  --warning-soft: rgba(188,151,75,.14);
  --info: #476f88;
  --info-soft: rgba(95,151,185,.14);
}
