:root {
  --bg: #f6f7f9; --surface: #fff; --surface-2: #f9fafb; --surface-3: #eff1f4;
  --border: #e2e5ea; --border-strong: #cdd2da;
  --text: #1b2230; --text-2: #4a5465; --text-3: #667184;
  --accent: #4338ca; --accent-hover: #3730a3; --accent-soft: #eceefe; --accent-text: #4338ca; --on-accent: #fff;
  --proxy: #d9730d; --proxy-soft: #fdf0e1;
  --ok: #0c7a47; --ok-bg: #e5f5ec; --warn: #8a5300; --warn-bg: #fcf1d9;
  --danger: #b42318; --danger-bg: #fdebe9; --info: #1d4ed8; --info-bg: #e8effd; --neutral-bg: #edeff3;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-2: 0 8px 24px rgba(16, 24, 40, .14);
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px #6366f1;
  --radius: 8px; --radius-sm: 6px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --dur: 160ms;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e1116; --surface: #151a21; --surface-2: #1a2029; --surface-3: #222a35;
  --border: #262d38; --border-strong: #364050;
  --text: #e7eaef; --text-2: #aab3c0; --text-3: #8b95a4;
  --accent: #5a5de0; --accent-hover: #6b6ff0; --accent-soft: #232650; --accent-text: #a9b6ff; --on-accent: #fff;
  --proxy: #f28b2d; --proxy-soft: #3a2812;
  --ok: #4cc38a; --ok-bg: #12301f; --warn: #f0b752; --warn-bg: #3a2c0d;
  --danger: #ff8d82; --danger-bg: #3d1a18; --info: #8fb0ff; --info-bg: #1a2744; --neutral-bg: #232a35;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .55);
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px #8b8ff5;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.5 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 20px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; line-height: 1.35; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
:focus { outline: none; }
:focus-visible { box-shadow: var(--focus); border-radius: var(--radius-sm); }
[hidden] { display: none !important; }
.skip { position: absolute; left: 8px; top: -48px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 100; transition: top var(--dur); }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
