:root {
  color-scheme: light dark;
  --bg: #f7f6f3; --panel: #ffffff; --line: #e4e1da; --text: #1f1d1a; --muted: #6f6a61;
  --accent: #c96a2b; --allow: #2f7a4f; --deny: #b3362c; --ask: #a46a0a; --park: #5b5bb0;
  --radius: 10px; --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151412; --panel: #1d1c19; --line: #2f2d29; --text: #ece9e3; --muted: #9a958b;
    --allow: #5bb282; --deny: #e06a5e; --ask: #d9a23c; --park: #9a9ae6; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 17px; text-decoration: none; }
nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
nav a.on { color: var(--text); font-weight: 600; }
main { max-width: 720px; margin: 0 auto; padding: 22px 16px 60px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 26px 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sub { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
a.card { display: block; text-decoration: none; }
a.card:hover { border-color: var(--accent); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta { color: var(--muted); font-size: 13px; }
.cmd { font-family: var(--mono); font-size: 13.5px; background: var(--bg); border-radius: 8px; padding: 10px 12px; margin: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; border: 1px solid currentColor; }
.critical, .deny, .denied { color: var(--deny); } .high, .ask { color: var(--ask); } .medium, .low, .park, .open { color: var(--park); }
.approved, .allow { color: var(--allow); } .closed, .expired { color: var(--muted); }
dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 14px 0 0; }
dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
button { font: inherit; cursor: pointer; border-radius: 8px; padding: 12px 16px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 600; }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.danger { color: var(--deny); border-color: var(--deny); }
button.ghost { background: transparent; }
button.small { padding: 5px 10px; font-size: 13px; font-weight: 500; }
button.wide { width: 100%; }
input { font: inherit; font-family: var(--mono); font-size: 22px; letter-spacing: .12em; text-align: center; text-transform: uppercase; width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.empty { text-align: center; color: var(--muted); padding: 48px 16px; background: var(--panel); border: 1px dashed var(--line); border-radius: var(--radius); }
.hero { text-align: center; padding: 40px 0 10px; }
.hero img { width: 56px; height: 56px; }
.ok { color: var(--allow); font-weight: 600; }
.notice { position: fixed; left: 16px; right: 16px; bottom: 20px; margin: 0 auto; width: fit-content; max-width: 560px; background: var(--panel); color: var(--deny);
  border: 1px solid var(--deny); border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.12); z-index: 10; }
@media (max-width: 520px) { dl { grid-template-columns: 1fr; gap: 2px; } dt { margin-top: 8px; } }
