:root { --bg:#f6f7f9; --card:#fff; --text:#1c2330; --muted:#69738a; --line:#e2e6ee; --link:#1d5fd1;
        --ok:#1a7f4b; --okbg:#e3f5ea; --bad:#b3261e; --badbg:#fde7e5; --warn:#8a5a00; --warnbg:#fff1d6; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#14171d; --card:#1c2029; --text:#e6e9ef; --muted:#9aa3b5; --line:#2c323e; --link:#7fb0ff;
          --ok:#6fd49a; --okbg:#173425; --bad:#ff8a80; --badbg:#3d1c1a; --warn:#f2c066; --warnbg:#3a2d10; }
}
* { box-sizing: border-box; }
body { margin:0; font:14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background:var(--bg); color:var(--text); }
a { color:var(--link); text-decoration:none; } a:hover { text-decoration:underline; }
header { display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; padding:10px 20px; background:var(--card); border-bottom:1px solid var(--line); }
.brand { font-weight:600; color:var(--text); }
nav { display:flex; gap:14px; }
.search { display:flex; gap:6px; margin-left:auto; }
.who { color:var(--muted); font-size:13px; }
main { padding:16px 20px; max-width:1400px; margin:0 auto; }
footer { padding:12px 20px 24px; color:var(--muted); font-size:12px; max-width:1400px; margin:0 auto; }
h1 { font-size:20px; margin:4px 0 14px; } h2.sec { font-size:17px; margin:30px 0 10px; } h2.sec a { color:var(--text); }
h3 { font-size:15px; margin:0; }
.thead { display:flex; align-items:baseline; gap:14px; margin:22px 0 8px; }
.scroll { overflow-x:auto; }
section + section { margin-top:10px; }
small { color:var(--muted); font-weight:400; font-size:.8em; }
input, select, button { font:inherit; padding:6px 9px; border:1px solid var(--line); border-radius:6px; background:var(--card); color:var(--text); }
button { cursor:pointer; }
table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { padding:7px 10px; text-align:left; border-bottom:1px solid var(--line); vertical-align:top; }
th { font-weight:600; font-size:12px; color:var(--muted); white-space:nowrap; }
tr:last-child td { border-bottom:0; }
.n { text-align:right; font-variant-numeric:tabular-nums; }
.empty, .muted td { color:var(--muted); } .empty { text-align:center; padding:18px; }
table.kv { width:auto; } table.kv th { font-size:14px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:12px; }
.tile { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:12px 14px; color:var(--muted); }
.tile:hover { text-decoration:none; border-color:var(--link); }
.tile b { display:block; font-size:28px; color:var(--text); }
.tile.ok b { color:var(--ok); } .tile.bad b { color:var(--bad); } .tile.warn b { color:var(--warn); }
.st { display:inline-block; padding:1px 8px; border-radius:10px; font-size:12px; white-space:nowrap; }
.st-ok { background:var(--okbg); color:var(--ok); }
.st-bad { background:var(--badbg); color:var(--bad); }
.st-warn { background:var(--warnbg); color:var(--warn); }
.bad { color:var(--bad); } .warn { color:var(--warn); } .muted { color:var(--muted); }
a.bad, a.warn { font-weight:600; }
.filters { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; }
.note { color:var(--muted); max-width:900px; margin:6px 0 10px; }
table.kv { margin-bottom:6px; }
.login { max-width:320px; margin:60px auto; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:20px; display:grid; gap:12px; }
.login label { display:grid; gap:4px; } .error { color:var(--bad); margin:0; }
details.multi { position:relative; }
details.multi summary { list-style:none; cursor:pointer; padding:6px 28px 6px 9px; border:1px solid var(--line); border-radius:6px; background:var(--card); max-width:260px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; position:relative; }
details.multi summary::-webkit-details-marker { display:none; }
details.multi summary::after { content:"▾"; position:absolute; right:9px; color:var(--muted); }
details.multi[open] summary { border-color:var(--link); }
details.multi .menu { position:absolute; z-index:10; top:calc(100% + 4px); left:0; min-width:260px; max-width:420px; max-height:360px; overflow:auto; background:var(--card); border:1px solid var(--line); border-radius:8px; padding:8px; box-shadow:0 6px 24px rgba(0,0,0,.18); display:grid; gap:2px; }
details.multi label { display:flex; gap:8px; align-items:baseline; padding:4px 6px; border-radius:4px; cursor:pointer; }
details.multi label:hover { background:var(--bg); }
details.multi label[hidden] { display:none; }
details.multi .find { margin-bottom:6px; position:sticky; top:0; }
details.multi .actions { display:flex; gap:8px; justify-content:space-between; margin-top:6px; position:sticky; bottom:-8px; background:var(--card); padding:6px 0 2px; }
