:root {
  color-scheme: dark;

  --bg: #08090c;
  --bg-elevated: #0c0e13;
  --surface-1: #101319;
  --surface-2: #151922;
  --surface-3: #1c212c;
  --surface-hover: #232937;
  --surface-glass: rgba(16, 19, 25, 0.82);

  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.22);

  --text: #f4f6f8;
  --text-muted: #9ba4b4;
  --text-dim: #7f899a;

  --accent: #6366f1;
  --accent-hover: #7c7ff7;
  --accent-active: #5255e0;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-border: rgba(99, 102, 241, 0.42);
  --accent-ring: rgba(99, 102, 241, 0.36);
  --accent-text: #c7caff;
  --accent-sub: #a5a9f5;
  --accent-gradient: linear-gradient(140deg, #6366f1, #818cf8);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --success-border: rgba(52, 211, 153, 0.32);
  --success-text: #86efac;

  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.11);
  --warn-border: rgba(251, 191, 36, 0.3);
  --warn-text: #fde08d;

  --danger: #f43f5e;
  --danger-hover: #f65d78;
  --danger-soft: rgba(244, 63, 94, 0.14);
  --danger-border: rgba(244, 63, 94, 0.38);
  --danger-text: #fda4af;
  --danger-gradient: linear-gradient(140deg, #f43f5e, #be123c);

  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.72);
  --shadow-lg: 0 28px 68px -18px rgba(0, 0, 0, 0.84);

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

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.16s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(960px 580px at 14% -10%, rgba(99, 102, 241, 0.11), transparent 62%),
    radial-gradient(760px 500px at 96% 104%, rgba(56, 189, 248, 0.055), transparent 58%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(99, 102, 241, 0.35);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.11);
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
  background-clip: content-box;
}

