/* StarioTokenCenter interface tokens. Components use this semantic scale only. */
:root {
  color-scheme: light;
  --bg: #fbfcfe;
  --surface: #ffffff;
  --sidebar: #f4f6fa;
  --subtle: #f1f4f8;
  --soft: #eaf0ff;
  --text: #202535;
  --muted: #626c80;
  --line: #dfe4ed;
  --control-line: #8994a8;
  --accent: #345bd7;
  --accent-hover: #284bc0;
  --on-accent: #ffffff;
  --success: #207a55;
  --success-soft: #e8f6ef;
  --danger: #b52d45;
  --danger-soft: #fff0f2;
  --warning: #855400;
  --warning-soft: #fff6df;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  --font-xs: 12px;
  --font-sm: 14px;
  --font-md: 16px;
  --font-lg: 20px;
  --font-xl: 28px;
  --line-tight: 1.35;
  --line-body: 1.65;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;

  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 44px;
  --radius-badge: 999px;
  --radius-control: 8px;
  --radius-panel: 8px;
  --radius-dialog: 12px;

  --motion-fast: 120ms;
  --motion-base: 180ms;
  --motion-slow: 240ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
  --shadow-dialog: 0 24px 64px #1b2e5c24;
  --layer-nav: 10;
  --layer-toast: 30;
  --sidebar-width: 240px;
  --content-width: 1360px;
}

:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #141720;
  --surface: #1b1f2b;
  --sidebar: #171b26;
  --subtle: #232939;
  --soft: #24345a;
  --text: #eef1f8;
  --muted: #a9b2c6;
  --line: #343d52;
  --control-line: #77849d;
  --accent: #a1b9ff;
  --accent-hover: #b7caff;
  --on-accent: #15244c;
  --success: #7ed9af;
  --success-soft: #193c32;
  --danger: #ffa5b5;
  --danger-soft: #452630;
  --warning: #ebc583;
  --warning-soft: #41351f;
  --shadow-dialog: 0 24px 64px #040a1f66;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --bg: #141720;
    --surface: #1b1f2b;
    --sidebar: #171b26;
    --subtle: #232939;
    --soft: #24345a;
    --text: #eef1f8;
    --muted: #a9b2c6;
    --line: #343d52;
    --control-line: #77849d;
    --accent: #a1b9ff;
    --accent-hover: #b7caff;
    --on-accent: #15244c;
    --success: #7ed9af;
    --success-soft: #193c32;
    --danger: #ffa5b5;
    --danger-soft: #452630;
    --warning: #ebc583;
    --warning-soft: #41351f;
    --shadow-dialog: 0 24px 64px #040a1f66;
  }
}
