:root {
  --bg: #f5f6f8; --card: #ffffff; --text: #1d2330; --muted: #6b7385; --line: #e2e5ec; --accent: #1f4fd1; --accent-text: #ffffff;
  --ok: #1a7f37; --bad: #b42318; --warn: #9a6700;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #12151b; --card: #1b1f27; --text: #e6e9ef; --muted: #98a0b3; --line: #2b313d; --accent: #6d95ff; --accent-text: #0d1117;
          --ok: #4ac26b; --bad: #ff7b72; --warn: #d29922; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 600; }
#who { margin-left: auto; }
main { max-width: 1100px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.narrow { max-width: 460px; margin: 40px auto; }
h1 { font-size: 22px; margin: 0 0 8px; } h2 { font-size: 19px; margin: 0 0 12px; } h3 { font-size: 16px; margin: 20px 0 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .hidden { display: none !important; }
button { background: var(--accent); color: var(--accent-text); border: 0; border-radius: 8px; padding: 9px 16px; font: inherit; cursor: pointer; }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
button.small { padding: 4px 10px; font-size: 13px; }
button.danger { background: var(--bad); }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; }
textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
label { display: block; margin: 8px 0; color: var(--muted); font-size: 13px; }
label input, label select, label textarea { margin-top: 4px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.row input, .row select { width: auto; flex: 1 1 200px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; margin-bottom: 8px; }
#tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
#tabs button { background: var(--card); color: var(--text); border: 1px solid var(--line); }
#tabs button.on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 500; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow: auto; max-height: 520px;
      font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg { min-height: 1.4em; } .ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); margin-right: 8px; }
@media (max-width: 640px) { th:nth-child(4), td:nth-child(4) { display: none; } header { flex-wrap: wrap; } }
