:root { --bg:#0f1420; --card:#1a2233; --line:#2a3a55; --txt:#e8eef7; --muted:#8fa1bd; --ok:#3ecf8e; --bad:#ff6b6b; --warn:#ffb454; --acc:#5aa9ff; }
* { box-sizing: border-box; }
body { margin:0; font-family: system-ui, -apple-system, sans-serif; background:var(--bg); color:var(--txt); }
header { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-bottom:1px solid var(--line); position:sticky; top:0; background:var(--bg); z-index:10; }
header h1 { margin:0; font-size:20px; }
.hdr-right { display:flex; gap:12px; align-items:center; }
main { max-width:960px; margin:0 auto; padding:20px; }
h2 { font-size:15px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; margin:28px 0 12px; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:16px; }
.card h3 { margin:0 0 8px; font-size:15px; }
.muted { color:var(--muted); font-size:13px; }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:8px; }
.dot.ok { background:var(--ok); box-shadow:0 0 8px var(--ok); }
.dot.bad { background:var(--bad); box-shadow:0 0 8px var(--bad); }
/* stale: we do not know the current state, so neither green nor red is honest */
.dot.warn { background:var(--warn); box-shadow:0 0 8px var(--warn); }
.stat { font-size:13px; color:var(--muted); margin:4px 0; }
.stat b { color:var(--txt); font-weight:600; }
.btn-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
button { background:var(--acc); color:#06121f; border:0; border-radius:8px; padding:10px 16px; font-size:14px; font-weight:600; cursor:pointer; }
button.ghost { background:transparent; color:var(--muted); border:1px solid var(--line); }
button.small { padding:6px 12px; font-size:13px; }
button:disabled { opacity:.5; cursor:wait; }
input[type=password] { width:100%; padding:12px; border-radius:8px; border:1px solid var(--line); background:var(--bg); color:var(--txt); font-size:15px; margin:12px 0; }
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.login-card { max-width:360px; width:100%; text-align:center; }
.login-card h1 { margin-top:0; }
.err { color:var(--bad); font-size:13px; min-height:18px; }
.banner { border-radius:12px; padding:12px 16px; margin-bottom:8px; font-size:14px; border:1px solid; }
.banner-warn { background:#3a2b12; border-color:#8a6d2f; color:#ffd98a; }
.banner-bad { background:#3a1414; border-color:#8a2f2f; color:#ff9d9d; }
.hidden { display:none; }
.act-item { font-size:13px; padding:8px 0; border-bottom:1px solid var(--line); }
.act-item:last-child { border-bottom:0; }
.ok-txt { color:var(--ok); } .bad-txt { color:var(--bad); } .warn-txt { color:var(--warn); }
code { background:#0b101c; padding:2px 6px; border-radius:4px; font-size:12px; }
