:root {
  --bg: #14161a;
  --panel: #1d2026;
  --line: #2e333c;
  --text: #e8eaed;
  --muted: #9aa0aa;
  --accent: #7c5cff;
  --ok: #3ecf8e;
  --warn: #f5a623;
  --bad: #ff5c5c;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3 { margin: 0; font-weight: 600; }
button, input, select {
  font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px;
}
button { cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: #5b3fd6; border-color: #5b3fd6; }
button.danger { color: var(--bad); }
input[type=range] { padding: 0; width: 100%; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.status i { width: 10px; height: 10px; border-radius: 50%; background: var(--warn); display: inline-block; }
.status.open i { background: var(--ok); }
.status.closed i, .status.revoked i { background: var(--bad); }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #000c; padding: 8px 14px; border-radius: 8px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; }
.center { display: grid; place-items: center; }
.narrow { max-width: 480px; padding: 24px; }
.narrow p { color: var(--muted); }
.narrow a { color: var(--accent); }
