:root { --bg:#0b0f17; --card:#151d2b; --text:#f1f5f9; --muted:#9aa9bd; --line:#263244; --accent:#38bdf8; --on:#04121d; --good:#34d399; --bad:#f87171; color-scheme:dark }
@media (prefers-color-scheme: light) { :root { --bg:#f7f9fc; --card:#fff; --text:#0e1626; --muted:#4c5a70; --line:#d5ddea; --accent:#0369a1; --on:#fff; --good:#047857; --bad:#b91c1c; color-scheme:light } }
* { box-sizing:border-box }
body { margin:0; background:var(--bg); color:var(--text); font:400 1rem/1.55 system-ui,"Segoe UI",sans-serif }
header { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; padding:.8rem 1.25rem; border-bottom:1px solid var(--line) }
header a { color:var(--muted); text-decoration:none }
header .brand { color:var(--text); font-weight:700 }
nav { display:flex; gap:1.1rem; align-items:center }
nav form { margin:0 }
main { width:min(640px,100% - 2rem); margin:2rem auto 3rem }
h1 { font-size:1.7rem; margin:0 0 .4rem }
h2 { font-size:1.15rem; margin:0 0 .5rem }
a { color:var(--accent) }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:1.4rem; margin:1.2rem 0; overflow-wrap:anywhere }
.narrow { max-width:420px; margin-inline:auto }
.muted { color:var(--muted) }
.small { font-size:.87rem }
label { display:block; margin:.9rem 0; font-weight:600; font-size:.93rem }
label span { font-weight:400 }
input:not([type=checkbox]):not([type=hidden]) { display:block; width:100%; margin-top:.3rem; min-height:44px; padding:.5rem .7rem; font:inherit; color:inherit; background:var(--bg); border:1px solid var(--line); border-radius:8px }
.check { display:flex; gap:.6rem; align-items:center; font-weight:400 }
.check input { width:20px; height:20px }
button, .button { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:.5rem 1.2rem; font-family:inherit; font-size:.95rem; font-weight:600; border:1px solid var(--accent); border-radius:8px; background:var(--accent); color:var(--on); cursor:pointer; text-decoration:none }
button.quiet { background:transparent; color:var(--text); border-color:var(--line) }
button.link { background:none; border:0; color:var(--muted); padding:0; min-height:36px; font-weight:400 }
:focus-visible { outline:3px solid var(--accent); outline-offset:2px }
.error { border-left:3px solid var(--bad); padding-left:.8rem }
.notice { border-left:3px solid var(--good); padding-left:.8rem }
.status::before { content:""; display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:.45rem; background:var(--muted) }
.status.up::before { background:var(--good) }
.status.down::before { background:var(--bad); border-radius:2px }
pre { background:var(--bg); border:1px solid var(--line); border-radius:8px; padding:.8rem; white-space:pre-wrap; word-break:break-all; font-size:1rem }
.devices { list-style:none; padding:0 }
.devices li { display:flex; justify-content:space-between; gap:1rem; align-items:center; padding:.7rem 0; border-bottom:1px solid var(--line) }
.devices span { display:block; font-size:.86rem }
.devices form { margin:0 }
