:root {
  --bg: #09090D;
  --surface: #121118;
  --surface-2: #1A1824;
  --surface-hover: #222030;
  --text: #F5F3FA;
  --text-muted: #9892AA;
  --hairline: rgba(215, 204, 245, 0.09);
  --accent: #A78EE0;
  --accent-strong: #C4B3F2;
  --accent-ink: #0B0A10;
  --accent-soft: rgba(167, 142, 224, 0.14);
  --danger: #E57A86;
  --success: #6EC49B;
  --header-top: rgba(9, 9, 13, 0.88);
  --header-mid: rgba(9, 9, 13, 0.52);
  --dock-bg: rgba(20, 19, 28, 0.94);
  --dock-shadow: 0 12px 32px rgba(0, 0, 0, 0.48);

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;

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

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --container-max: 1160px;
  --header-height: 58px;
  --touch-min: 44px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);

  --z-header: 30;
  --z-nav: 40;
  --z-toast: 60;
  --z-dialog: 80;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
}

[data-theme="light"] {
  --bg: #F6F5F9;
  --surface: #FFFFFF;
  --surface-2: #ECEAF3;
  --surface-hover: #E2DFEC;
  --text: #14121B;
  --text-muted: #666078;
  --hairline: rgba(28, 22, 44, 0.09);
  --accent: #6E56B0;
  --accent-strong: #584199;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(110, 86, 176, 0.11);
  --danger: #C23E4E;
  --success: #227D55;
  --header-top: rgba(246, 245, 249, 0.92);
  --header-mid: rgba(246, 245, 249, 0.6);
  --dock-bg: rgba(255, 255, 255, 0.96);
  --dock-shadow: 0 10px 28px rgba(20, 18, 27, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 0.01ms;
    --dur-base: 0.01ms;
  }
}
