:root { color-scheme: dark; font-family: Inter, "Segoe UI", sans-serif; background: #09111f; color: #e6edf7; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top, #17315a 0, #09111f 45%); }
a { color: #77b7ff; }
button, input { font: inherit; }
button { border: 0; border-radius: .6rem; padding: .7rem 1rem; background: #2e82ff; color: white; cursor: pointer; }
button.secondary { background: #26364f; }
input { width: 100%; margin-top: .35rem; border: 1px solid #40516c; border-radius: .55rem; padding: .7rem; background: #0e192a; color: inherit; }
label { display: block; margin: .9rem 0; }
.auth-card { width: min(92vw, 430px); margin: 8vh auto; padding: 2rem; background: rgba(14,25,42,.96); border: 1px solid #2b3c58; border-radius: 1rem; box-shadow: 0 1.5rem 5rem #0008; }
.auth-card button { width: 100%; }
details { margin-top: 1.5rem; }
.topbar { min-height: 64px; padding: 1rem 5vw; display: flex; align-items: center; justify-content: space-between; background: #0d1728e8; border-bottom: 1px solid #273852; }
.content { width: min(1100px, 92vw); margin: 2rem auto; display: grid; gap: 1.25rem; }
.panel, .device-card { background: #0e192af2; border: 1px solid #2b3c58; border-radius: .9rem; padding: 1.25rem; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 1rem; }
.device-card h3 { margin-top: 0; }
.online { color: #55d99b; }
.offline, .muted { color: #93a4bd; }
.error { color: #ff8585; }
.success { color: #55d99b; }
.tools { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
dl { display: grid; grid-template-columns: 8rem 1fr; gap: .55rem; }
dt { color: #93a4bd; }
dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 850px) { .content { grid-template-columns: 2fr 1fr; } .content .panel:first-child:last-child { grid-column: 1 / -1; } }

