:root {
  --bg: #f6f7f9; --card: #ffffff; --text: #1d232b; --muted: #5d6875; --line: #dde2e8;
  --accent: #1f6feb; --ok: #1a7f37; --warn: #9a6700; --bad: #cf222e; --grey: #8c959f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e1116; --card: #161b22; --text: #e6edf3; --muted: #9da7b3; --line: #30363d;
    --accent: #4493f8; --ok: #3fb950; --warn: #d29922; --bad: #f85149; --grey: #6e7681; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 16px; align-items: center; }
nav a, .link { color: var(--accent); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
main { max-width: 960px; margin: 0 auto; padding: 16px; }
section, form.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
h1 { font-size: 1.4rem; margin: 0 0 12px; } h2 { font-size: 1.1rem; margin: 0 0 12px; }
p.muted, .muted { color: var(--muted); }
label { display: block; margin: 8px 0 4px; font-weight: 600; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); max-width: 100%; }
button.primary, button.secondary { font: inherit; padding: 6px 14px; border-radius: 6px; cursor: pointer; margin-top: 8px; }
button.primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table { overflow-x: auto; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.8rem; border: 1px solid currentColor; }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); } .grey { color: var(--grey); }
.rejected { color: var(--grey); }
.rejected strong { text-decoration: line-through; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; }
pre { background: var(--bg); border: 1px solid var(--line); padding: 8px; border-radius: 6px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
#toast { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 480px; margin: 0 auto; padding: 10px 14px;
  border-radius: 8px; background: var(--text); color: var(--bg); }
[hidden] { display: none !important; }
