:root{color-scheme:dark;font-family:system-ui,sans-serif;background:#111a24;color:#eef6ff;font-size:16px}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at top,#193047 0,transparent 58%)}
main{width:min(100% - 2rem,42rem);margin:auto;padding:2rem 0 4rem}
header,.brand,.section-head,.actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
header,.section-head{justify-content:space-between}
header{margin-bottom:2.5rem}.brand img{border-radius:12px}
h1,h2,h3,p{margin:0}h1{font-size:1.55rem}h2{font-size:1.25rem}h3{font-size:1.12rem}
ul{list-style:none;padding:0;display:grid;gap:.8rem;margin:1rem 0}
.panel,dialog{background:#152331;border:1px solid #37516a;border-radius:16px;padding:1.15rem;color:inherit}
#login{max-width:28rem;margin:auto}
form{display:grid;gap:1rem}
#login h2{margin-bottom:1rem}
label{display:grid;gap:.4rem;font-size:.95rem}
input,select{width:100%;border:1px solid #52718d;background:#111a24;color:inherit;border-radius:8px;padding:.7rem;font:inherit}
button{border:1px solid transparent;border-radius:9px;padding:.65rem .85rem;min-height:42px;font:inherit;font-weight:650;background:#7ce6ca;color:#10271f;cursor:pointer}
button:disabled{opacity:.55;cursor:wait}button.secondary{color:#eef6ff;background:#223a50;border-color:#496781}
button.quiet{color:#c3d6e8;background:transparent}
:focus-visible{outline:2px solid #7ce6ca;outline-offset:3px}
.mac{margin:.35rem 0 .95rem;color:#bacbdb;font-family:ui-monospace,monospace}
.device-heading{display:flex;align-items:center;justify-content:space-between;gap:.45rem;flex-wrap:wrap}
.status{display:inline-flex;align-items:center;gap:.4rem;color:#c3d6e8;font-size:.875rem}
.status::before{content:"";width:.55rem;height:.55rem;border-radius:50%;background:currentColor}
.status[data-state=online]{color:#7ce6ca}
.status[data-state=offline]{color:#ffc99b}
.hint{margin-top:.65rem;color:#c3d6e8;font-size:.875rem}
#notice{border-left:3px solid #7ce6ca;padding:.7rem .8rem;margin-bottom:1rem;background:#1a2c39;border-radius:0 6px 6px 0}
#notice.error,#editor-error{border-color:#f8adad;color:#ffcaca}
dialog{width:min(calc(100% - 2rem),27rem)}dialog::backdrop{background:#0b121bdc}
details label{margin-top:.65rem}summary{cursor:pointer;color:#c3d6e8}
@media(max-width:420px){main{padding-top:1rem}header{margin-bottom:1.5rem}.actions{gap:.4rem}button{padding:.55rem .65rem}}
