:root {
  --bg: #0f1115;
  --surface: #171a21;
  --surface-2: #1e222b;
  --line: #2a2f3a;
  --text: #e8eaef;
  --muted: #9aa3b2;
  --brand: #2f6df6;
  --brand-soft: #1f3f8a;
  --ok: #24c07d;
  --warn: #f5a623;
  --danger: #e5484d;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fa; --surface: #ffffff; --surface-2: #f0f3f8; --line: #e2e6ee;
    --text: #131722; --muted: #5f6a7d; --shadow: 0 6px 20px rgba(20,30,60,.08);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; font-size: 15px;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--brand); }
.btn {
  background: var(--brand); color: #fff; border-radius: 10px; padding: 10px 16px;
  font-weight: 600; transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.input {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; width: 100%; outline: none;
}
.input:focus { border-color: var(--brand); }
.muted { color: var(--muted); }
.tag {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--muted);
}
.spin { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand);
  border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }
