:root {
  --bg: #f6f7f9; --card: #fff; --text: #15181d; --muted: #636b78; --line: #e2e5ea;
  --accent: #2563eb; --accent-text: #fff; --danger: #b42318; --warn-bg: #fff4e5; --warn-text: #7a4a00;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111318; --card: #1a1d24; --text: #e8eaee; --muted: #9aa3b2; --line: #2b303a;
    --accent: #5b8def; --accent-text: #0b1020; --danger: #ff8a7a; --warn-bg: #3a2c12; --warn-text: #ffd699;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px; border-bottom: 1px solid var(--line); background: var(--card); }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 16px; margin: 28px 0 10px; }
main { max-width: 1040px; margin: 0 auto; padding: 16px; }
nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-left: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 8px 14px; }
button[type=submit], .tab.is-active, .seg .is-active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.link { border: 0; background: none; color: var(--muted); text-decoration: underline; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; max-width: 420px; }
.card h2 { margin-top: 0; }
label { display: block; margin: 0 0 12px; color: var(--muted); font-size: 13px; }
input, select { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.range { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.range input { width: auto; margin: 0; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 480px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: 12px; font-weight: 600; color: var(--muted); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: var(--danger); min-height: 1.5em; }
.banner { background: var(--warn-bg); color: var(--warn-text); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; }
.code code { display: block; padding: 10px; margin: 8px 0; background: var(--bg); border-radius: 8px; word-break: break-all; font-size: 14px; }
.revoked td { color: var(--muted); text-decoration: line-through; }
.revoked td:last-child { text-decoration: none; }
[hidden] { display: none !important; }
