:root { color-scheme: light; font-family: system-ui, sans-serif; color: #1c2a3a; background: #f3f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
.topbar { background: #142a42; color: white; }
.topbar-inner { max-width: 1100px; margin: auto; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; }
.brand { color: white; text-decoration: none; font-size: 20px; font-weight: 750; }
.brand span { color: #91c6fa; font-weight: 500; }
.container { max-width: 1100px; margin: auto; padding: 36px 24px; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.eyebrow { color: #226bb3; font-size: 12px; font-weight: 800; letter-spacing: .1em; }
h1 { margin: 6px 0; font-size: 30px; } h2 { margin: 0 0 20px; font-size: 19px; } p { color: #57697c; line-height: 1.5; }
.counts, .info, .notice { border-radius: 8px; padding: 14px 18px; }
.counts { background: white; color: #5d7082; } .counts strong { color: #163d62; margin-left: 12px; }
.info { background: #e7f2fe; color: #285276; } .notice { background: #e7f5eb; color: #25553a; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-top: 24px; }
.card, .auth-card { background: white; border: 1px solid #e1e8ef; border-radius: 12px; padding: 24px; box-shadow: 0 3px 14px #253c530b; }
.auth-card { max-width: 440px; margin: 50px auto; }
.stack { display: grid; gap: 14px; } .inline { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
label { display: grid; gap: 6px; color: #374e64; font-size: 14px; font-weight: 600; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #bbc9d7; border-radius: 6px; font: inherit; background: white; }
button { padding: 10px 16px; border: 0; border-radius: 6px; background: #1c68ad; color: white; cursor: pointer; font: inherit; font-weight: 600; }
button:hover { background: #14528b; } .link-button { background: transparent; padding: 6px; }
.danger { background: #fff3f2; color: #a22e2e; margin-top: 12px; } .danger:hover { background: #f8dedb; }
.list { margin-top: 20px; } .list h2 span { color: #718499; font-size: 14px; }
details { border-top: 1px solid #e8edf2; padding: 16px 0; } summary { cursor: pointer; font-weight: 650; } summary small { display: block; margin: 5px 0 0 18px; font-weight: 400; }
details form { margin-top: 14px; } small { color: #708296; }
footer { color: #8493a3; text-align: center; padding: 20px; font-size: 13px; }
.status-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #708296; font-size: 13px; }
.secondary { background: #e8f1fa; color: #24577f; } .secondary:hover { background: #d7e8f7; } button:disabled { opacity: .6; cursor: wait; }
.device-status { margin-left: 8px; padding: 3px 8px; border-radius: 12px; background: #edf1f5; color: #516477; font-size: 12px; }
.device-status[data-status="online"] { background: #dff3e7; color: #1d7145; }
.device-status[data-status="offline"] { background: #fff1dd; color: #80530c; }
.server-config label { margin: 12px 0; } .server-config input { color: #2d4d69; background: #f7fafc; }
.navigation { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.navigation a { color: #e4effa; text-decoration: none; font-size: 14px; }
.navigation a:hover { text-decoration: underline; }
.audit-event { display: grid; gap: 5px; border-top: 1px solid #e8edf2; padding: 15px 0; }
.audit-event span { color: #57697c; font-size: 14px; }
.record-summary { white-space: pre-wrap; overflow-wrap: anywhere; }
.pagination { display: flex; gap: 16px; align-items: center; margin-top: 20px; font-size: 14px; }
.pagination a { color: #1c68ad; }
[hidden] { display: none !important; }
.inventory { display: grid; grid-template-columns: minmax(100px, 160px) 1fr; gap: 8px; overflow-wrap: anywhere; }
.inventory dt { font-weight: 650; } .inventory dd { margin: 0; }
.connect-link { color: #1c68ad; font-weight: 650; }
