:root { --bg:#0b1020; --card:#131a30; --line:#232c4a; --text:#e8ecf8; --dim:#9aa5c4; --accent:#22d3ee; --red:#ff5c7a; --green:#22e39a; --amber:#ffb020; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--text); font:15px/1.5 "Segoe UI", system-ui, sans-serif; }
header { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 24px; border-bottom:1px solid var(--line); }
.brand { color:var(--text); text-decoration:none; font-size:20px; }
.brand b { color:var(--accent); }
.brand span { color:var(--dim); font-size:13px; margin-left:6px; }
nav { display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
nav a, button.link { color:var(--dim); text-decoration:none; background:none; border:0; font:inherit; cursor:pointer; padding:0; }
nav a:hover, button.link:hover { color:var(--text); }
main { max-width:1100px; margin:0 auto; padding:24px; }
h1 { font-size:26px; margin:6px 0 18px; }
h2 { font-size:18px; margin:0 0 8px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px 20px; margin-bottom:18px; overflow-x:auto; }
.narrow { max-width:460px; }
.row { display:flex; align-items:center; gap:12px; justify-content:space-between; }
label { display:block; color:var(--dim); font-size:13px; margin-bottom:12px; }
input, select { display:block; width:100%; margin-top:4px; padding:9px 11px; border-radius:8px; border:1px solid var(--line); background:#0a0f1e; color:var(--text); font:inherit; }
form.inline { display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
form.inline label { margin:0; min-width:150px; }
button { background:linear-gradient(90deg,#22d3ee,#8b5cf6); color:#fff; border:0; border-radius:8px; padding:9px 18px; font:inherit; font-weight:600; cursor:pointer; }
button.small { padding:4px 10px; font-size:13px; }
button.danger { background:#3a1622; color:var(--red); }
table { width:100%; border-collapse:collapse; font-size:14px; }
th, td { text-align:left; padding:7px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
th { color:var(--dim); font-weight:600; }
table.kv th { width:240px; }
a { color:var(--accent); }
.dim { color:var(--dim); }
.error { color:var(--red); }
.flash { background:#0f2a2f; border:1px solid #1d5560; padding:10px 14px; border-radius:10px; }
.pill { font-size:12px; font-weight:700; padding:3px 10px; border-radius:20px; background:#1b2440; }
.pill.active { color:var(--green); } .pill.suspended, .pill.disabled { color:var(--amber); } .pill.revoked, .pill.expired, .pill.removed { color:var(--red); }
code { font-family:Consolas, monospace; color:var(--accent); }
@media (max-width:700px) { main { padding:14px; } header { padding:12px 14px; } table.kv th { width:auto; } form.inline label { min-width:100%; } }
