:root {
  --bg: #0e1116;
  --panel: #161b24;
  --panel-2: #1e2532;
  --line: #2a3344;
  --text: #f2f4f8;
  --muted: #9aa5b8;
  --red: #e0202c;
  --red-dark: #9c121b;
  --blue: #1f4fd8;
  --blue-dark: #12308a;
  --yellow: #f5c518;
  --green: #22c55e;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a { color: #8ab4ff; }
button {
  font: inherit;
  color: inherit;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 16px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button:active { filter: brightness(1.25); }
button:disabled { opacity: .4; cursor: default; }
button.primary { background: #2a62f5; border-color: #2a62f5; }
button.danger { background: #7a1a1a; border-color: #a22; }
button.red { background: var(--red); border-color: var(--red); }
button.blue { background: var(--blue); border-color: var(--blue); }
button.yellow { background: var(--yellow); border-color: var(--yellow); color: #221a00; font-weight: 700; }
button.ghost { background: transparent; }
input, select {
  font: inherit;
  color: var(--text);
  background: #0b0e13;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
input[type=checkbox] { width: 20px; height: 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line); font-size: .8rem;
}
.pill.ok { background: #123b22; border-color: #1f6b3a; color: #9ff0b8; }
.pill.bad { background: #3b1212; border-color: #6b1f1f; color: #ffb3b3; }
.pill.warn { background: #3b3112; border-color: #6b581f; color: #ffe29a; }
.hidden { display: none !important; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #000c; color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 1.1rem; pointer-events: none; opacity: 0; transition: opacity .2s;
  z-index: 50;
}
.toast.show { opacity: 1; }
