.device-summary-head{display:flex;align-items:center;gap:13px;margin:0 0 22px}.device-summary-icon{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#edf2f6;color:#3e596c}.device-summary-icon svg{width:24px;height:24px}.device-summary-head>div{flex:1;min-width:0}.device-summary-head p{margin:0 0 5px;font-size:14px;color:#374b5e}.device-summary-head span:not(.badge):not(.device-summary-icon){font-size:12px;color:#83909c}.device-purpose{font-size:13px;color:#73818f;line-height:1.7;margin:-5px 0 20px}.device-readings{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.device-readings>div{padding:19px;background:#f6f8fa;border:1px solid #e9edf2;border-radius:12px;min-width:0}.device-readings span{font-size:12px;color:#758493}.device-readings strong{display:block;font-size:33px;letter-spacing:-1px;margin:8px 0 12px;font-variant-numeric:tabular-nums}.device-readings small{font-size:16px;color:#83909b;margin-left:5px}.device-readings p{font-size:10px;color:#8a96a2;margin:0;line-height:1.7}.device-details-list{margin:0}.device-details-list>div{padding:11px 0}.device-details-list dd{overflow-wrap:anywhere}.device-connection{border-top:1px solid #e4e9ee;margin:18px 0 0;padding:17px 0 0;box-shadow:none;border-radius:0;background:transparent}.device-connection summary{font-size:12px;cursor:pointer;color:#788594}.device-connection .details{font-size:11px;margin:14px 0}.device-connection dd{word-break:break-all}.device-details-actions{margin-top:24px;align-items:center;flex-wrap:wrap;gap:10px}.device-unassign{color:#b45858;margin-left:auto}@media(max-width:500px){.device-readings{gap:10px}.device-readings>div{padding:14px}.device-readings strong{font-size:28px}.device-details-actions .btn{flex:1;font-size:12px;padding-inline:10px}.device-unassign{margin:8px 0 0;width:100%;text-align:right}.device-summary-head{gap:9px}.device-details-list dd{font-size:12px}}

.device-recovery-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0;align-items:center}.device-recovery-actions .btn{font-size:13px;min-height:42px}.device-recovery-actions .device-unassign{margin-left:auto}.notice.error .form-note{margin-bottom:0}@media(max-width:500px){.device-recovery-actions .btn{flex:1}.device-recovery-actions .device-unassign{width:auto;margin:0}}

.thermostat-locked{margin:20px 0;padding:16px;border:1px solid #e4e9ee;border-radius:14px;background:#f8f9fb}.thermostat-locked strong{font-size:14px}.thermostat-locked p{font-size:13px;line-height:1.7;color:#74808c;margin:7px 0 14px}.thermostat-buttons{display:flex;flex-wrap:wrap;gap:8px}.thermostat-buttons .btn{min-height:44px}.device-inspection{margin:18px 0}.device-inspection pre{max-width:100%;max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;padding:12px;background:#f6f8fa;border-radius:10px}.thermostat-status .device-details-list>div{gap:14px}.thermostat-status .device-details-list dd{min-width:0;text-align:right;max-width:65%}

#app .modal-backdrop dialog.device-panel-dialog{width:min(760px,calc(100vw - 32px));max-width:760px;height:min(760px,90dvh);display:flex;flex-direction:column;overflow:hidden}
#app .device-panel-dialog .dialog-heading{flex-shrink:0}
#app .device-panel-dialog .dialog-body{overflow-y:auto;flex:1;min-height:0;scrollbar-gutter:stable}
.device-panel-nav{position:sticky;top:-1px;z-index:2;display:flex;gap:6px;padding:4px;background:#f1f2f4;border-radius:12px;margin:0 0 24px}
.device-panel-nav button{flex:1;border:0;border-radius:9px;background:transparent;padding:12px;min-height:44px;color:#68717c;font:inherit;cursor:pointer}
.device-panel-nav button[aria-current=page]{background:#fff;color:#9b4b0a;box-shadow:0 1px 4px #20252a12;font-weight:650}
.sensor-settings,.device-removal{border-top:1px solid #e4e9ee;margin-top:28px;padding-top:24px}
.sensor-settings h3,.device-removal h3{font-size:16px;margin:0 0 10px}
.sensor-setting-row{padding:16px 0;border-bottom:1px solid #edf0f3;display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:12px;align-items:center}
.sensor-setting-row label{font-size:14px;font-weight:600}.sensor-setting-row small{display:block;font-size:12px;font-weight:400;color:#737d87;line-height:1.6;margin-top:6px}
.sensor-setting-input{display:flex;align-items:center;gap:7px;min-width:0}.sensor-setting-input input,.sensor-setting-input select{width:100%;min-width:0;padding:10px;font-size:16px}.sensor-setting-input button{flex-shrink:0;min-height:44px}
.sensor-setting-row .form-error{grid-column:1/-1}.device-removal{display:flex;align-items:center;gap:18px}.device-removal p{color:#737d87;line-height:1.6;font-size:12px;margin:0}.device-removal button{flex-shrink:0;white-space:nowrap}
@media(max-width:600px){dialog.device-panel-dialog{width:calc(100vw - 20px)}.sensor-setting-row{grid-template-columns:1fr;gap:10px}.sensor-setting-input{max-width:100%}.device-removal{align-items:stretch;flex-direction:column}.device-panel-nav{margin-bottom:20px}.device-panel-dialog .dialog-body{padding:20px}.device-panel-dialog .dialog-heading{padding:20px}}
.device-energy{margin:20px 0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.energy-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.energy-heading h3{margin:0;font-size:16px}.energy-heading>span{color:var(--muted);font-size:12px}.energy-heading b{color:var(--ink);margin-left:5px;font-weight:600}
.energy-periods{display:flex;gap:4px;background:var(--soft);border-radius:12px;padding:4px;margin:16px 0}.energy-periods button{flex:1;min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}.energy-periods button[aria-pressed=true]{background:var(--panel,#fff);color:var(--ink);box-shadow:0 1px 4px #00000012;font-weight:600}
.energy-total{display:flex;align-items:baseline;gap:8px;font-variant-numeric:tabular-nums}.energy-total strong{font-size:34px;font-weight:600;letter-spacing:-1px}.energy-total>span,.energy-caption{color:var(--muted);font-size:12px}.energy-caption{margin:6px 0 14px}.device-energy .form-note{margin:6px 0;font-size:12px}
.energy-days{margin-top:18px}.energy-days summary{cursor:pointer;font-size:13px;padding:10px 0}.energy-days>div{display:grid;grid-template-columns:45px 1fr 100px;gap:12px;align-items:center;font-size:12px;padding:6px 0}.energy-days progress{width:100%;height:6px;accent-color:#d99a50}.energy-days b{text-align:right;font-weight:500}
@media(max-width:480px){.energy-total strong{font-size:29px}.energy-days>div{gap:8px;grid-template-columns:40px 1fr 90px}}
.energy-periods button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:100px;padding:12px 4px}.energy-periods button strong{font-size:23px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.7px}.energy-periods button small{font-size:11px;font-weight:400;color:var(--muted)}.energy-heading>b{font-size:19px;font-weight:600;font-variant-numeric:tabular-nums}
@media(max-width:480px){.energy-periods button strong{font-size:19px}.energy-periods button{font-size:12px;min-height:90px}.energy-heading>b{font-size:17px}}
@media(max-width:480px){.energy-periods button strong{font-size:17px;max-width:100%;overflow-wrap:anywhere}}
.thermostat-current{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 16px}.thermostat-current strong{font-size:24px;margin-left:8px}.thermostat-current>span:last-child{color:var(--muted);font-size:14px}.thermostat-controls .sensor-setting-row{margin:0;padding:16px 0}.thermostat-control-row>label{min-width:0}.thermostat-control-row input,.thermostat-control-row select{min-width:0;width:100%}.thermostat-controls .sensor-setting-input{min-width:0}.thermostat-more,.thermostat-reports{margin-top:16px;border-top:1px solid var(--line);padding-top:16px}.thermostat-more summary,.thermostat-reports summary{cursor:pointer;font-weight:600}.thermostat-stale{grid-column:1/-1}

.thermostat-overview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;padding:8px 0 16px}.thermostat-overview-label,.thermostat-room>span{display:block;color:var(--muted);font-size:13px;margin-bottom:8px}.thermostat-overview strong{display:block;font-size:30px;line-height:1.2;letter-spacing:-.7px}.thermostat-overview small{display:block;margin-top:9px;font-size:13px;color:var(--muted)}.thermostat-room{text-align:right}.thermostat-room strong{font-size:24px;white-space:nowrap}.thermostat-signal-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding-bottom:14px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.thermostat-combustion{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);line-height:1.5}.thermostat-combustion .icon{width:16px;height:16px;flex-shrink:0}.dashboard-device-copy>.thermostat-combustion{margin-top:5px}@media(max-width:380px){.thermostat-overview{gap:10px}.thermostat-overview strong{font-size:26px}.thermostat-room strong{font-size:22px}}

.thermostat-combustion.is-burning{color:#be5a11}.thermostat-combustion small{font-size:10px;color:var(--muted);margin-left:2px}

.thermostat-temperature-row{grid-template-columns:1fr}.thermostat-temperature-row>.sensor-setting-input{align-items:flex-end}.thermostat-temperature{flex:1;min-width:0}.thermostat-temperature-adjust{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 8px}.thermostat-temperature-adjust output{font-size:30px;font-weight:650;font-variant-numeric:tabular-nums}.thermostat-temperature-adjust .thermostat-step{width:44px;min-width:44px;height:44px;padding:0;font-size:24px;border-radius:50%}.sensor-setting-input .thermostat-temperature input[type=range]{display:block;width:100%;height:44px;margin:0;padding:0;accent-color:#c97127;cursor:pointer;border:0;box-shadow:none;background:transparent;touch-action:pan-y}.thermostat-temperature input[type=range]:disabled{cursor:default;opacity:.45}.thermostat-range-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.thermostat-temperature-row>.sensor-setting-input>.btn{margin-bottom:20px}

.thermostat-direct-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 16px;align-items:center;border-bottom:1px solid var(--line);padding:16px 0}.thermostat-control-label{font-weight:600;font-size:14px}.thermostat-control-label small{display:block;font-size:12px;font-weight:400;color:var(--muted);line-height:1.6;margin-top:5px;max-width:230px}.thermostat-control-input{min-width:0}.thermostat-direct-row:has(.thermostat-segments),.thermostat-direct-row.thermostat-temperature-row{grid-template-columns:1fr}.thermostat-segments{display:flex;gap:4px;padding:4px;background:#f0f2f5;border-radius:12px}.thermostat-segments button{flex:1;min-width:0;min-height:44px;padding:9px 6px;background:transparent;border:0;border-radius:9px;font:inherit;font-size:13px;cursor:pointer;color:var(--muted)}.thermostat-segments button[aria-pressed=true]{color:#974c15;background:#fff;box-shadow:0 1px 4px #20252a12;font-weight:650}.thermostat-toggle{display:inline-flex;align-items:center;gap:9px;border:0;padding:0;background:transparent;font:inherit;font-size:13px;min-height:44px;cursor:pointer;color:var(--muted)}.thermostat-toggle-track{display:block;width:48px;height:28px;background:#c9cdd3;border-radius:16px;position:relative;transition:background .16s}.thermostat-toggle-track:after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .16s}.thermostat-toggle[aria-checked=true] .thermostat-toggle-track{background:#ce7b30}.thermostat-toggle[aria-checked=true] .thermostat-toggle-track:after{transform:translateX(20px)}.thermostat-segments button:disabled,.thermostat-toggle:disabled{cursor:default;opacity:.5}.thermostat-inline-status{grid-column:1/-1;font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0 0;overflow-wrap:anywhere}.thermostat-control-input .thermostat-temperature{width:100%}.thermostat-temperature input[type=range]{width:100%;height:44px;margin:0;padding:0;accent-color:#c97127;cursor:pointer;border:0;background:transparent;touch-action:pan-y}.thermostat-controls button:focus-visible,.thermostat-controls input:focus-visible{outline:2px solid #bd6b27;outline-offset:3px}.dashboard-thermostat-state{display:block;font-size:14px;font-weight:600;line-height:1.6;color:var(--ink);margin-top:5px}.dashboard-device-meta>.thermostat-combustion{margin-left:10px}@media(prefers-reduced-motion:reduce){.thermostat-toggle-track,.thermostat-toggle-track:after{transition:none}}

.thermostat-quick-controls{display:contents}
@media(max-width:760px){
 #app .device-drawer .dialog-body:has(.thermostat-controls){padding-top:12px}
 #app .device-drawer .dialog-body:has(.thermostat-controls):has(>.device-purpose){display:grid;grid-template-columns:minmax(0,1fr);align-content:start}
 #app .device-drawer .dialog-body:has(.thermostat-controls)>.device-purpose{order:1;margin:8px 0 0;font-size:12px;line-height:1.55}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-summary-head{margin-bottom:8px;gap:10px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-summary-icon{width:38px;height:38px;border-radius:12px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-summary-icon svg{width:20px;height:20px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-summary-head p{font-size:13px;margin-bottom:2px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-summary-head span:not(.badge):not(.device-summary-icon){font-size:11px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-panel-nav{margin-bottom:8px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-overview{padding:0 0 6px;gap:10px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-overview-label,#app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-room>span{margin-bottom:4px;font-size:12px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-overview strong{font-size:24px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-overview small{margin-top:4px;font-size:12px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-room strong{font-size:20px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-signal-row{padding-bottom:6px;gap:4px 12px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-quick-controls .thermostat-direct-row{column-gap:8px;min-height:45px;padding:0}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-quick-controls .thermostat-control-label small{font-size:11px;line-height:1.45;margin-top:2px;max-width:none;word-break:keep-all;overflow-wrap:anywhere}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-control-label{min-width:0;line-height:1.45}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-direct-row{padding:5px 0;row-gap:6px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-segments{padding:3px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-temperature-adjust{margin:0 0 2px;gap:8px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-temperature-adjust output{font-size:26px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-inline-status{margin:4px 0 0;word-break:keep-all}
}
@media(max-width:760px) and (max-height:700px){
 #app .device-drawer .dialog-body:has(.thermostat-controls){padding-top:8px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-summary-head{margin-bottom:4px;gap:8px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-summary-icon{width:30px;height:30px;border-radius:10px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-summary-head>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;line-height:1.35}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-summary-head p{font-size:12px;margin-bottom:0}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .device-panel-nav{margin-bottom:4px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-overview{padding:0 0 2px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-overview strong{font-size:20px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-room strong{font-size:18px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-overview-label,#app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-room>span{margin-bottom:2px;font-size:11px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-overview small{margin-top:2px;font-size:11px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-signal-row{padding-bottom:2px;font-size:11px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-direct-row{row-gap:4px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-segments{padding:2px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-segments button{padding:7px 4px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-temperature-row{padding:2px 0;row-gap:2px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-temperature-adjust{margin:0}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-temperature-adjust output{font-size:23px}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-inline-status{margin:0;font-size:11px;line-height:1.5}
 #app .device-drawer .dialog-body:has(.thermostat-controls) .thermostat-range-labels{font-size:10px;line-height:1.3}
}
.air-conditioner-controls .thermostat-buttons{margin:16px 0}.air-conditioner-controls .sensor-setting-input{min-width:0}.air-conditioner-controls input{width:90px;min-width:0}
