:root { --bg:#f5f6f8; --card:#fff; --text:#1c2230; --muted:#6b7385; --accent:#2f6df6; --danger:#d23b3b; --line:#e3e6ec; }
@media (prefers-color-scheme: dark) {
  :root { --bg:#12151c; --card:#1b2029; --text:#e8ebf2; --muted:#98a0b3; --accent:#6a96ff; --line:#2b3240; }
}
* { box-sizing: border-box; }
body { margin:0; font:15px/1.5 system-ui, sans-serif; background:var(--bg); color:var(--text); }
header { display:flex; justify-content:space-between; padding:12px 20px; background:var(--card); border-bottom:1px solid var(--line); }
main { max-width:860px; margin:0 auto; padding:20px 16px 60px; }
h1 { font-size:22px; margin:8px 0 16px; } h2 { font-size:16px; margin:0 0 12px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px; margin-bottom:16px; }
.narrow { max-width:380px; margin:60px auto; }
.row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:14px; }
.stats { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.big { font-size:28px; font-weight:600; }
.muted { color:var(--muted); font-size:13px; } .error { color:var(--danger); min-height:1.2em; margin:4px 0; }
label { display:block; margin-bottom:12px; } input { width:100%; padding:9px 10px; margin-top:4px; border:1px solid var(--line); border-radius:8px; background:var(--bg); color:var(--text); font:inherit; }
button, a.button { display:inline-block; padding:9px 16px; border:0; border-radius:8px; background:var(--accent); color:#fff; font:inherit; cursor:pointer; text-decoration:none; }
button.secondary { background:transparent; color:var(--accent); border:1px solid var(--line); }
button.danger { background:transparent; color:var(--danger); border:1px solid var(--danger); }
button.link { background:none; color:var(--accent); padding:0 4px; }
form.inline { display:flex; gap:8px; margin-top:8px; } form.inline input { margin:0; }
.device { cursor:pointer; } .device:hover { border-color:var(--accent); }
.code { font:700 34px/1.2 ui-monospace, monospace; letter-spacing:6px; margin:10px 0; }
ol li { margin-bottom:18px; }
.bar { display:flex; align-items:center; gap:10px; margin:6px 0; }
.bar .name { width:190px; flex:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bar .track { flex:1; background:var(--bg); border-radius:6px; height:14px; }
.bar .fill { background:var(--accent); height:100%; border-radius:6px; min-width:2px; }
.bar .val { width:70px; text-align:right; flex:none; color:var(--muted); font-size:13px; }
.tl { position:relative; height:34px; background:var(--bg); border-radius:6px; overflow:hidden; }
.tl div { position:absolute; top:0; bottom:0; background:var(--accent); opacity:.8; }
.tl-axis { display:flex; justify-content:space-between; color:var(--muted); font-size:12px; margin-top:4px; }
.filters { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.filters select { width:auto; margin:0; padding:6px 8px; }
label.chk { display:flex; align-items:center; gap:6px; margin:0; font-size:13px; color:var(--muted); }
label.chk input { width:auto; margin:0; }
.loghead { margin:14px 0 4px; font-weight:600; font-size:13px; color:var(--muted); border-bottom:1px solid var(--line); padding-bottom:4px; }
.logrow { display:grid; grid-template-columns:170px 1fr 70px; gap:10px; padding:5px 0; font-size:14px; border-bottom:1px solid var(--line); }
.logrow .t { color:var(--muted); font-variant-numeric:tabular-nums; } .logrow .d { text-align:right; color:var(--muted); }
@media (max-width:520px) { .logrow { grid-template-columns:120px 1fr 56px; font-size:13px; } }
@media (max-width:520px) { .bar .name { width:110px; } .stats { grid-template-columns:1fr; } }
