:root {
  /* Design system: quiet dark surfaces, a single blue product accent, semantic states. */
  color-scheme: dark;

  --surface-0: #090b10;
  --surface-1: #0f1219;
  --surface-2: #151a23;
  --surface-3: #1b222d;
  --surface-code: #0b0f16;
  --surface-code-line: #10151e;
  --surface-raised: #202734;

  --text-strong: #f2f5f9;
  --text-primary: #d5dce6;
  --text-muted: #a5b0bf;
  --text-faint: #7f8b9b;
  --text-inverse: #07101d;

  --border-hairline: rgba(174, 192, 216, 0.14);
  --border-default: rgba(174, 192, 216, 0.2);
  --border-strong: rgba(193, 209, 229, 0.32);
  --border-focus: rgba(105, 162, 242, 0.76);

  --accent: #659bf0;
  --accent-hover: #7daafb;
  --accent-pressed: #4d86de;
  --accent-soft: rgba(101, 155, 240, 0.12);
  --accent-subtle: rgba(101, 155, 240, 0.07);
  --accent-border: rgba(101, 155, 240, 0.42);

  --success: #4fc286;
  --success-soft: rgba(79, 194, 134, 0.11);
  --success-border: rgba(79, 194, 134, 0.34);
  --warning: #e3ae55;
  --warning-soft: rgba(227, 174, 85, 0.12);
  --warning-border: rgba(227, 174, 85, 0.35);
  --danger: #ee746a;
  --danger-soft: rgba(238, 116, 106, 0.12);
  --danger-border: rgba(238, 116, 106, 0.38);

  --radius-1: 5px;
  --radius-2: 8px;
  --radius-3: 12px;
  --radius-4: 16px;
  --radius-pill: 999px;

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

  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: clamp(1.75rem, 2vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 4vw, 3.5rem);
  --tracking-tight: -0.028em;
  --tracking-heading: -0.018em;
  --tracking-label: 0.08em;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.22), 0 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px rgba(0, 0, 0, 0.2);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, 0.48);
  --focus-ring: 0 0 0 3px rgba(101, 155, 240, 0.28);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 260ms;
  --duration-count-up: 400ms;
  --duration-loading: 1400ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);

  /* Legacy aliases keep every runtime selector stable while moving it onto the system. */
  --bg: var(--surface-0);
  --panel: var(--surface-1);
  --card: var(--surface-2);
  --card-hover: var(--surface-3);
  --code-bg: var(--surface-code);
  --code-line: var(--surface-code-line);
  --bd: var(--border-hairline);
  --bd-strong: var(--border-strong);
  --tx: var(--text-primary);
  --mu: var(--text-muted);
  --faint: var(--text-faint);
  --ac: var(--accent);
  --ac-strong: var(--accent-hover);
  --ac-soft: var(--accent-soft);
  --ac-border: var(--accent-border);
  --on-ac: var(--text-inverse);
  --easy: var(--success);
  --medium: var(--warning);
  --hard: var(--danger);
  --easy-soft: var(--success-soft);
  --easy-border: var(--success-border);
  --medium-soft: var(--warning-soft);
  --medium-border: var(--warning-border);
  --hard-soft: var(--danger-soft);
  --hard-border: var(--danger-border);
  --impact: var(--accent);
  --impact-soft: var(--accent-soft);
  --impact-border: var(--accent-border);
  --radius: var(--radius-3);
  --radius-sm: var(--radius-2);
  --nav-h: 60px;
  --sans: var(--font-sans);
  --mono: var(--font-mono);
  --tok-comment: #7f8b9b;
  --tok-string: #a5d69b;
  --tok-keyword: #83adfa;
  --tok-number: #e9bb70;
  --tok-function: #8cc5f4;
  --code-text: #d4dce8;
  --code-muted: #a5b0bf;
}

@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --ease-spring: linear(0, 0.008 1.1%, 0.033 2.4%, 0.124 5.2%, 0.576 13.2%, 0.84 18.4%, 0.981 24.2%, 1.055 28.2%, 1.083 32.6%, 1.079 36.4%, 1.045 44.4%, 1.012 52.6%, 0.994 61.2%, 0.989 68.2%, 1.001 84.2%, 1);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #232a31;
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: #2f3741;
}
/* Visually hidden, but available to assistive technologies. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
