:root { color-scheme: light; font-family: system-ui, -apple-system, "Noto Sans CJK SC", sans-serif; color: #20242a; background: #f4f5f7; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1160px; margin: auto; padding: 36px 24px; }
header, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
header { flex-wrap: wrap; }
.connection-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
h1 { font-size: 30px; margin: 4px 0 10px; letter-spacing: -.03em; }
h2 { font-size: 18px; margin: 0 0 18px; }
p { margin: 8px 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.muted, .hint, footer { color: #626975; font-size: 13px; }
.badge { border: 1px solid #c9cdd4; border-radius: 30px; padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.badge.warn { border-color: #c47f19; color: #8a5a0a; background: #fff5d9; }
.badge.ok { border-color: #3d8a48; color: #22662d; background: #e7f4e9; }
#feedback { padding: 12px 16px; font-size: 14px; background: #eef1f5; border: 1px solid #dce0e6; border-radius: 8px; margin: 14px 0; }
#feedback.error { color: #9d2525; background: #fbeeee; border-color: #e3c2c2; }
.tabs { display: flex; gap: 8px; margin: 18px 0 14px; flex-wrap: wrap; }
.tab { min-height: 0; padding: 8px 16px; border-radius: 24px; font-size: 14px; }
.tab.active { background: #263b54; border-color: #263b54; color: #fff; }
.tab.active:hover:enabled { background: #263b54; }
.tabpane { display: grid; gap: 20px; }
.card { min-width: 0; background: #fff; border: 1px solid #dce0e6; border-radius: 14px; padding: 24px; }
.section-head { align-items: baseline; flex-wrap: wrap; }
.summary-line { margin: 0 0 14px; }
.temperature { margin: 8px 0 24px; font-size: 64px; line-height: 1.1; font-weight: 650; letter-spacing: -.04em; }
.temperature small { font-size: 24px; font-weight: 400; }
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-bottom: 1px solid #e6e8ec; padding-bottom: 20px; }
.summary strong { display: block; margin-top: 6px; font-size: 19px; }
.summary strong.ok { color: #22662d; }
.summary strong.warn { color: #8a5a0a; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.details div { display: flex; gap: 8px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #eef0f3; font-size: 13px; }
dt { color: #626975; } dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.room-card { padding: 18px; }
.dev { padding: 9px 4px; border-top: 1px solid #eef0f3; font-size: 13px; }
.dev .name { font-weight: 600; }
.dev p { margin: 3px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.sig { display: inline-block; font-family: ui-monospace, monospace; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; font-weight: 600; }
.sig.s { background: #e7f4e9; color: #22662d; }
.sig.m { background: #fff5d9; color: #8a5a0a; }
.sig.w { background: #fbeeee; color: #9d2525; }
.sig.none { background: #eef1f5; color: #626975; }
.lim { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; background: #fff5d9; color: #8a5a0a; }
label { display: block; font-size: 13px; margin: 0 0 7px; }
button, input, select { font: inherit; border-radius: 7px; border: 1px solid #bfc5ce; padding: 10px 12px; color: inherit; background: #fff; min-height: 42px; }
input, select { width: 100%; min-width: 0; }
button { cursor: pointer; font-size: 14px; font-weight: 550; }
button:hover:enabled { background: #eef1f5; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid #456899; outline-offset: 3px; }
.buttons { display: flex; flex-wrap: wrap; gap: 9px; margin: 14px 0 10px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
fieldset { border: 1px solid #e0e3e9; padding: 18px; border-radius: 10px; margin: 0; min-width: 0; }
legend { padding: 0 7px; font-weight: 600; font-size: 14px; }
.hint { line-height: 1.7; margin: 14px 0 0; }
.primary { width: 100%; background: #263b54; border-color: #263b54; color: #fff; }
.primary:hover:enabled { background: #354e6d; }
.danger-outline { border-color: #b85252; }
.login-card { max-width: 360px; margin: 40px auto 0; }
.login-card button { margin-top: 14px; }
footer { margin-top: 24px; text-align: center; line-height: 1.8; }
[hidden] { display: none !important; }
@media(max-width: 750px) { main { padding: 22px 14px; } .details, .fields, .summary { grid-template-columns: 1fr; } .card { padding: 20px; } }
