/* v0.31 — locally hosted Pretendard, light surfaces and restrained glass. */
:root{
  font-family:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  color:#1d1d1f;background:#f5f5f7;letter-spacing:-.25px;scroll-padding-top:164px;
  --ink:#1d1d1f;--muted:#68686e;--accent:#0068d9;--line:#e7e7eb;--soft:#f4f4f7;
  --surface:#fff;--glass:rgba(255,255,255,.76);--glass-edge:rgba(255,255,255,.92);
  --surface-shadow:0 2px 4px #20202a03,0 8px 24px #20202a05;
  --glass-shadow:0 5px 24px #20202a0a,inset 0 1px 0 #fff,inset 0 -1px 0 #ffffff70;
}
body{background:linear-gradient(180deg,#eeeef2 0,#f5f5f7 420px);min-height:100vh}
button,input,select,textarea{font-family:inherit;letter-spacing:inherit}
button{transition:background-color .16s,color .16s,box-shadow .16s,border-color .16s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #007aff;outline-offset:3px}
h1{font-size:32px;letter-spacing:-1.1px;font-weight:700}
h2{font-size:18px;font-weight:650;letter-spacing:-.5px}
.global-header{
  position:sticky;top:14px;z-index:20;max-width:1388px;width:calc(100% - 48px);height:66px;
  margin:14px auto 0;padding:0 22px;gap:36px;border:1px solid var(--glass-edge);border-radius:23px;
  background:var(--glass);color:var(--ink);box-shadow:var(--glass-shadow);
  -webkit-backdrop-filter:blur(24px) saturate(1.35);backdrop-filter:blur(24px) saturate(1.35);
}
.global-header .brand{color:var(--ink)}
.global-header .wordmark{font-size:21px;letter-spacing:-1.2px;font-weight:750}
.global-header nav{height:auto;align-items:center;gap:5px}
.global-header nav>button{min-height:40px;padding:9px 18px;border:0;border-radius:14px;color:#626269;font-size:13px;font-weight:550}
.global-header nav>button:hover{color:var(--ink);background:#ffffff80}
.global-header nav>button.active{color:var(--ink);background:#fff;box-shadow:0 2px 7px #1d1d1f12,inset 0 0 0 1px #ffffff80}
.global-header .account{gap:18px;color:#45454a;font-size:12px}
.global-header .account small{color:var(--muted);font-size:10px}
.global-header .icon-button{color:#55555c;background:#ffffff65;border-radius:50%;width:36px;height:36px}
.global-header .icon-button:hover{background:#fff;color:var(--ink)}
.content{max-width:1440px;padding:40px 40px 64px;min-height:calc(100vh - 128px)}
.footer{max-width:1440px;padding:0 40px 24px;color:#71717a}
.space-heading{align-items:center;gap:24px}
.space-heading h1{font-size:34px;letter-spacing:-1.2px;line-height:1.3;gap:12px;flex-wrap:wrap}
.space-heading .back-link{font-size:12px;color:#686870;margin-bottom:12px;min-height:24px}
.space-heading p{font-size:12px;line-height:1.6;margin-top:9px}
.space-heading .source-label{border:0;background:#e6e6ec;color:#65656d;border-radius:7px;font-size:10px;padding:5px 8px;font-weight:500}
.space-switch{min-width:188px;max-width:240px;margin:0;gap:7px}
.space-switch>span{padding-left:13px;font-size:11px}
.space-switch select{border:1px solid #ffffffd9;border-radius:15px;background:#ffffffb0;min-height:44px;padding-left:14px;font-size:13px;box-shadow:0 2px 7px #1d1d1f06}
.space-tabs{
  position:sticky;top:94px;z-index:15;display:flex;align-items:center;gap:3px;width:max-content;max-width:100%;
  margin:24px 0 27px;padding:5px;background:var(--glass);border:1px solid var(--glass-edge);border-radius:18px;
  box-shadow:var(--glass-shadow);scrollbar-width:none;-webkit-backdrop-filter:blur(20px) saturate(1.3);backdrop-filter:blur(20px) saturate(1.3);
}
.space-tabs::-webkit-scrollbar{display:none}
.space-tabs button{min-height:42px;padding:10px 19px;border:0;border-radius:13px;color:#65656c;font-size:13px;font-weight:500}
.space-tabs button:hover{background:#ffffffa6;color:var(--ink)}
.space-tabs button.active{color:var(--ink);background:#fff;box-shadow:0 2px 7px #1d1d1f14;font-weight:650}
.space-tabs button span{font-size:10px;margin-left:4px;background:#ebebf0;border-radius:5px;padding:1px 4px;color:#66666e}
.page-heading{margin:4px 0 24px;gap:18px;align-items:center}
.page-heading h1{font-size:27px;letter-spacing:-.9px}.page-heading p{font-size:13px;color:var(--muted);margin-top:8px}
.panel,.readings,.sensor-card,.space-card,.history-filter,.automation-workbench,.disclosure{border:1px solid #e9e9ee;border-radius:22px;box-shadow:var(--surface-shadow);background:var(--surface)}
.panel-bar{padding:20px 23px;background:transparent;border-bottom:1px solid #f0f0f3}
.panel-bar h2{font-size:16px;font-weight:650}.panel-bar .text-button{font-size:12px}.panel-body{padding:23px}
.btn{min-height:40px;padding:9px 16px;border:1px solid #e7e7ed;border-radius:12px;background:#fff;font-size:13px;font-weight:550;box-shadow:0 1px 2px #20202a04}
.btn:hover{background:#f5f5f8;border-color:#dadbe2}.btn.primary{background:#0071e3;border-color:#0071e3;color:#fff;box-shadow:0 3px 7px #0068d91a}
.btn.primary:hover{background:#0062c7;border-color:#0062c7}.btn.compact{min-height:34px;padding:7px 12px;border-radius:10px}
.btn.danger{color:#b42323;background:#fff7f7;border-color:#f1d8d8}.text-button{color:var(--accent)}
.icon-button{border-radius:10px}.badge{border-radius:7px;padding:5px 8px}.badge.ok{background:#edf8f0;color:#216e36}.badge.error{background:#fff0ef;color:#ab342d}
.source-label{font-size:11px;color:#6c6c73}.notice{border-radius:14px;padding:15px 18px;font-size:13px}.notice.error{background:#fff3f2}
.empty h3{font-size:17px}.empty p{font-size:13px}.loading{color:#73737b}
input:not([type=checkbox]):not([type=radio]),select,textarea,.form input,.form textarea,.form select{border-color:#dedee5;border-radius:11px;background:#fbfbfd;min-height:42px;font-size:13px}
.form input:focus,.form textarea:focus,.form select:focus{background:#fff}
.segmented{padding:3px;border:0;border-radius:11px;background:#ededf2;gap:2px}
.segmented button{min-height:30px;padding:6px 12px;background:none;border-radius:8px;font-size:12px}
.segmented button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px #20202a14;color:var(--ink)}
.filter-tabs{gap:5px}.filter-tabs button{border-radius:11px;min-height:38px}.filter-tabs button[aria-pressed=true]{border-color:#e8e8ed;box-shadow:0 2px 6px #20202a09}
th{background:#fafafd;color:#696971;font-size:12px;padding:14px 22px}td{border-bottom-color:#f0f0f4;padding:18px 22px}
.cell-note{font-size:11px}.table-link{font-size:14px}.table-link:hover{color:var(--accent)}
.spaces-grid{gap:22px}.space-open{padding:29px 26px;min-height:116px;gap:19px}.space-open strong{font-size:22px;font-weight:650;letter-spacing:-.7px}.space-open small{font-size:12px}
.space-open:hover{background:#fafafd}.space-card-tools{padding:14px 26px;border-top-color:#f0f0f4}.space-open>.icon{width:22px;height:22px;color:#888891}
.sensor-card{padding:26px}.sensor-values strong{font-size:40px;font-weight:600}.sensor-meta{font-size:12px}
.space-dashboard{--dash-ok:#0068d9;--dash-warn:#8b5b13;--dash-warn-bg:#fff2d8;--dash-radius:22px}
.dashboard-summary{gap:8px;align-items:center;margin:0 0 30px;padding:0;border:0}
.dashboard-stat{padding:10px 14px;min-height:42px;gap:10px;border-radius:12px;background:transparent;font-size:12px;color:#62626b;border:1px solid transparent}
.dashboard-stat b{font-size:16px;font-weight:650;color:var(--ink)}
.dashboard-stat[aria-pressed=true]{background:#fff;border-color:#e8e8ee;box-shadow:0 2px 7px #20202a09}
.dashboard-stat:hover{background:#ffffffa6}.dashboard-stat.needs-attention{background:#fff6e7;border-color:#f4e2c5}
.dashboard-body{grid-template-columns:minmax(0,1.95fr) minmax(325px,1fr);gap:24px 30px}
.dashboard-section-heading{margin:0 0 19px;min-height:28px}.dashboard-section-heading h2{font-size:19px;letter-spacing:-.6px;font-weight:650}
.dashboard-section-heading>div{gap:11px}.dashboard-section-heading>div>span{font-size:12px}.dashboard-section-heading .text-button{font-size:12px}
.dashboard-room-grid{gap:24px 20px;align-items:start}
.dashboard-room{border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible}
.dashboard-room-heading{min-height:35px;padding:0 4px 12px;border:0;gap:10px}
.dashboard-room-heading h3{font-size:17px;font-weight:650;letter-spacing:-.5px}
.dashboard-room-heading>span{font-size:11px;color:#74747d}.dashboard-room-presence.on{color:#0068d9}.dashboard-room-presence.unknown{color:var(--dash-warn)}
.dashboard-device{background:#fff;border:1px solid #e9e9ef;border-radius:20px;min-height:108px;padding:20px 16px;gap:12px;box-shadow:var(--surface-shadow)}
.dashboard-device+.dashboard-device{border-top:1px solid #e9e9ef;margin-top:10px}
.dashboard-device.selected{border-color:#a4c9ef;box-shadow:0 0 0 3px #007aff13}
.dashboard-device.status-on{border-color:#dbe9f7;background:#fcfdff}
.dashboard-device-open{gap:14px;min-height:54px;align-items:center}
.dashboard-device-open:hover .dashboard-device-copy>b{text-decoration:none;color:var(--accent)}
.dashboard-device .appliance-bubble{width:46px;height:46px;background:#f2f2f7;color:#6d6d77;border-radius:15px}
.dashboard-device .appliance-bubble.on{background:#e8f2ff;color:#0071e3}.dashboard-device .appliance-bubble.sensor{background:#eaf2fd;color:#0068d9}.dashboard-device .appliance-bubble.unknown{background:#fff2d8;color:#986715}
.dashboard-device .mdi-icon{width:27px;height:27px}.dashboard-device-copy{gap:7px}.dashboard-device-copy>b{font-size:16px;font-weight:600;letter-spacing:-.45px;line-height:1.45}
.dashboard-device-meta{display:flex;gap:5px 9px;flex-wrap:wrap;align-items:baseline;line-height:1.5}
.dashboard-device-meta>small{font-size:10px;color:#76767e;line-height:1.7}.dashboard-device-state{font-size:12px;font-weight:550}
.dashboard-device-state.off,.dashboard-device-state.sensor{color:#66666f}
.dashboard-device .sim-power-button{width:44px;height:44px;min-height:44px;border:1px solid #e5e5ec;background:#f6f6f9;color:#74747f;box-shadow:0 1px 3px #20202a08;border-radius:50%}
.dashboard-device .sim-power-button:hover:not(:disabled){background:#ededf3;color:#292930}
.dashboard-device .sim-power-button.is-on{background:#0071e3;border-color:#0071e3;color:#fff;box-shadow:0 3px 8px #0071e329}
.dashboard-device .sim-power-button.is-on:hover:not(:disabled){background:#0062c7;border-color:#0062c7;color:#fff}
.dashboard-device .sim-power-button:disabled{opacity:.4;box-shadow:none}.dashboard-device .sim-power-button .icon{width:20px;height:20px;stroke-width:1.8}
.dashboard-row-arrow{color:#9a9aa2}.dashboard-row-arrow .icon{width:14px;height:14px}
.dashboard-device.climate{min-height:168px;padding:26px}.dashboard-device.climate .dashboard-device-open{align-items:center;gap:20px}
.dashboard-device.climate .dashboard-device-state{font-size:12px;margin:0}.dashboard-device.climate .dashboard-device-meta{display:grid;gap:5px}
.dashboard-sensor-values{gap:20px;margin:3px 0}.dashboard-sensor-values strong{font-size:36px;letter-spacing:-1.2px;font-weight:600}.dashboard-sensor-values small{font-size:15px;color:#777780}
.dashboard-room-note{font-size:11px;color:#73737c;margin:18px 4px 0}
.dashboard-map .panel-bar,.dashboard-automation .panel-bar{padding:21px 22px;border-bottom:0}
.dashboard-map .panel-bar h2,.dashboard-automation .panel-bar h2{font-size:17px;font-weight:650;letter-spacing:-.5px}
.dashboard-map-canvas{margin:0 18px 10px;border-radius:12px;overflow:visible}.dashboard-map-open{border-radius:12px;overflow:hidden}
.dashboard-map-caption{font-size:11px;padding:8px 22px 20px;color:#71717b}
.dashboard-map-pin{width:34px;height:34px;border:2px solid #fff;box-shadow:0 2px 7px #1d1d1f24}
.appliance-bubble.on,.fp-pin.on .fp-pin-symbol{background:#e6f1ff;color:#0068d9}.appliance-bubble.sensor,.fp-pin.sensor .fp-pin-symbol{background:#eaf2fd;color:#0068d9}
.dashboard-rule{padding:18px 22px 23px;gap:10px}.dashboard-rule:hover{background:#fafafd}.dashboard-rule-title{gap:12px;align-items:flex-start}
.dashboard-rule-title>b{font-size:15px;letter-spacing:-.3px;font-weight:600}.dashboard-rule-state{font-size:11px;margin-top:3px}.dashboard-rule-state.waiting{border-radius:6px;padding:3px 7px}
.dashboard-rule>small{font-size:12px;line-height:1.7}.dashboard-rule-failure{font-size:12px;color:#ab3c30}
.dashboard-recent{margin-top:30px}.dashboard-empty-history{padding:24px;font-size:13px}.dashboard-readings{margin-top:30px}
.sim-banner{padding:0;margin:0 0 12px;min-height:14px}.sim-banner .sim-clock{font-size:11px;color:#76767f}
.sim-test-controls{border-radius:16px;background:#ededf280;border-color:#e3e3e9;margin-top:28px}.sim-test-controls>summary{padding:16px 19px;color:#63636d;font-size:12px}
.sim-detail{border-radius:20px}.sim-detail-heading{padding:19px 22px}.sim-detail-body{padding:22px}.sim-time-controls .btn{border-radius:10px}
.sim-power-button{border-radius:50%;color:#62626b;background:#f4f4f8;border-color:#e1e1e8}.sim-power-button.is-on{background:#e8f2ff;border-color:#c4dcf8;color:#0068d9}
.sim-results{padding:20px 22px}.sim-results strong{font-size:13px}
.rule-list{background:#f8f8fb;border-color:#ececf1;padding:10px}.rule-list-item{border:0;border-radius:13px;margin:0 0 6px;padding:17px 15px}
.rule-list-item.selected{border:0;background:#e8f1fc;box-shadow:none}.rule-list-item b{font-size:14px}.rule-list-item small{font-size:11px}.rule-list-item em{font-size:11px}
.rule-status-dot.on{background:#0071e3}.rule-readout{padding:30px}.rule-readout h2{font-size:23px;font-weight:650;letter-spacing:-.7px}
.rule-definition{margin:28px 0}.rule-definition>div{font-size:14px}.rule-runtime{border-radius:12px;background:#f5f6f9}.rule-actions{gap:10px}
.automation-form{padding:28px}.automation-form header h2{font-size:21px}.automation-form input:not([type=checkbox]),.automation-form select{border-radius:10px;min-height:42px}
.rule-section legend b{background:#eff4fc;color:#0068d9;border-radius:8px}.condition-row,.action-row{border-radius:13px;background:#f6f6f9;border-color:#ededf2}
.run-item>summary{padding:18px 23px}.run-item b{font-size:14px;font-weight:550}.run-item small{font-size:11px}.run-detail{padding:0 23px 23px;font-size:13px}.run-steps small{font-size:12px}
.history-filter{padding:21px 23px;margin-bottom:22px}.history-filter-top>label{font-size:12px}.period-buttons{gap:5px}.period-buttons .btn{border-radius:10px}
.period-buttons .btn[aria-pressed=true]{background:#0071e3;border-color:#0071e3;color:#fff}
.history-column-head{background:#fafafd;color:#73737b}.history-item>summary{padding-top:18px;padding-bottom:18px;font-size:13px}.history-item b{font-size:13px}.history-item time{font-size:12px}
.history-item-detail{background:#fafafd}.history-pagination{padding:17px 22px}.history-results .panel-bar>.small{font-size:11px}
.fp-workspace{gap:24px}.fp-toolbar{padding:14px 20px;background:#fafafd}.fp-zoom .icon-button{border-radius:50%;background:#efeff4}.fp-zoom .text-button{font-size:12px}
.fp-inspector-heading{padding:22px}.fp-current-state{padding:20px 22px}.fp-device-list{border-radius:20px}.fp-pin-symbol{box-shadow:0 2px 6px #20202a15}
.modal-backdrop{z-index:100;background:#29293828;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);padding:24px}
.modal-backdrop dialog{border:1px solid #ffffffd9;border-radius:26px;background:#fdfdfef5;box-shadow:0 28px 90px #1d1d1f26,inset 0 1px 0 #fff;max-height:90dvh}
.dialog-heading{padding:22px 26px;border-color:#e8e8ed}.dialog-heading h2{font-size:21px;font-weight:650;letter-spacing:-.6px}.dialog-heading .icon-button{border-radius:50%;background:#eeeeF3;color:#6b6b75}.dialog-body{padding:26px}
.auth{padding-top:82px}.auth>.brand{margin-bottom:30px}.auth .wordmark{font-size:26px;letter-spacing:-1.2px}
.auth-card{max-width:420px;padding:36px;border:1px solid #ffffffd9;border-radius:28px;background:#fff;box-shadow:0 12px 60px #1d1d1f0b,inset 0 1px 0 #fff}
.auth-card h1{font-size:28px;letter-spacing:-1px}.auth-card>p{font-size:13px;margin:12px 0 28px}.auth-card .form .btn{min-height:46px;border-radius:12px;font-size:14px}
.auth-card .form input{min-height:46px;border-radius:12px}.auth-card .auth-note{color:#73737d;font-size:11px}
.toast{z-index:120;border-radius:14px;box-shadow:0 8px 24px #20202a20}
@media(min-width:761px) and (max-width:1180px){
  .content{padding:32px 26px 50px}.dashboard-body{grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:24px}
  .dashboard-room-grid{grid-template-columns:1fr;gap:22px}.dashboard-device{padding:19px 20px}.global-header{width:calc(100% - 32px)}
}
@media(max-width:760px){
  :root{scroll-padding-top:140px}
  body{background:linear-gradient(180deg,#eeeef3,#f5f5f7 360px)}
  .global-header{top:8px;width:calc(100% - 20px);height:58px;margin:8px 10px 0;padding:0 13px;gap:12px;border-radius:20px}
  .global-header .wordmark{font-size:18px;letter-spacing:-1px}.global-header nav{gap:2px}.global-header nav>button{font-size:11px;min-height:36px;padding:8px 10px;border-radius:11px}
  .global-header .account{gap:0}.global-header .account>span{display:none}.global-header .icon-button{width:32px;height:32px;flex:none}
  .content{padding:28px 18px 42px;min-height:calc(100vh - 108px)}.footer{padding:0 20px 22px}
  .space-heading{position:relative;display:block;padding-top:2px}.space-heading>div{min-width:0;width:100%}
  .space-heading h1{font-size:29px;letter-spacing:-1px;gap:7px;padding-top:10px}.space-heading .back-link{font-size:11px;margin-bottom:12px;min-height:24px;max-width:calc(100% - 140px)}
  .space-heading p{font-size:11px}.space-heading .source-label{font-size:9px;padding:4px 7px}
  .space-switch{position:absolute;top:0;right:0;width:128px;max-width:132px;min-width:0;margin:0}.space-switch>span{display:none}.space-switch select{font-size:11px;min-height:36px;border-radius:12px;padding:7px 26px 7px 10px}
  .space-tabs{top:76px;width:100%;margin:21px 0 24px;padding:4px;gap:2px;border-radius:16px}
  .space-tabs button{padding:10px 13px;min-height:42px;font-size:12px;border-radius:12px;flex:none}.space-tabs button span{font-size:9px;padding:1px 3px;margin-left:3px}
  .page-heading{align-items:flex-start;margin-bottom:20px}.page-heading h1{font-size:24px}.page-heading p{font-size:12px;max-width:245px}.page-heading .btn{min-height:40px;padding:9px 12px;border-radius:12px}
  .dashboard-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin-bottom:27px}
  .dashboard-stat{min-height:44px;padding:9px 12px;gap:7px;font-size:11px;border-radius:12px;justify-content:space-between}.dashboard-stat b{font-size:16px}
  .dashboard-body{grid-template-columns:minmax(0,1fr);gap:24px;grid-template-areas:'rooms' 'automation' 'map'}
  .dashboard-section-heading{margin-bottom:19px;gap:10px}.dashboard-section-heading h2{font-size:19px}.dashboard-section-heading>div{gap:7px}.dashboard-section-heading>div>span{font-size:11px}.dashboard-section-heading .text-button{font-size:11px}
  .dashboard-room-grid{grid-template-columns:1fr;gap:23px}.dashboard-room-heading{min-height:34px;padding:0 4px 12px}.dashboard-room-heading h3{font-size:17px}
  .dashboard-device{min-height:100px;padding:18px 16px;gap:12px;border-radius:19px}.dashboard-device+.dashboard-device{margin-top:9px}
  .dashboard-device-open{gap:13px}.dashboard-device-copy>b{font-size:16px}.dashboard-device-meta{gap:3px 8px}.dashboard-device .appliance-bubble{width:44px;height:44px;border-radius:14px}
  .dashboard-device .sim-power-button{width:44px;height:44px;min-height:44px}.dashboard-device-state{font-size:12px}.dashboard-device-meta>small{font-size:10px}
  .dashboard-device.climate{min-height:165px;padding:21px 18px}.dashboard-device.climate .dashboard-device-open{gap:14px;align-items:flex-start}
  .dashboard-device.climate .dashboard-device-state{white-space:nowrap;max-width:none;text-align:left}.dashboard-sensor-values{gap:14px}.dashboard-sensor-values strong{font-size:29px}.dashboard-sensor-values small{font-size:13px}
  .dashboard-map .panel-bar,.dashboard-automation .panel-bar{padding:19px 20px 14px}.dashboard-map-caption{padding:8px 20px 18px;font-size:10px}.dashboard-rule{padding:17px 20px 22px}.dashboard-rule-title>b{font-size:14px}.dashboard-rule-state{font-size:10px}
  .panel,.space-card,.history-filter,.automation-workbench{border-radius:20px}.panel-bar{padding:19px 20px}.panel-bar h2{font-size:16px}.panel-bar .text-button{font-size:11px}
  .space-open{padding:25px 22px}.space-open strong{font-size:21px}.space-card-tools{padding:13px 22px}
  .btn{min-height:42px}.sim-test-controls>summary{padding:16px}.sim-results{padding:18px 20px}
  .rule-list{padding:8px;gap:7px}.rule-list-item{margin:0;min-width:210px}.rule-readout{padding:23px 20px}.rule-readout h2{font-size:21px}.rule-definition>div{font-size:13px}
  .automation-form{padding:22px 18px}.automation-form header h2{font-size:19px}.automation-form input:not([type=checkbox]),.automation-form select{min-height:42px;font-size:13px}
  .run-item>summary{padding:17px 20px}.run-item b{font-size:13px}.run-detail{padding-left:20px;padding-right:20px}
  .history-filter{padding:18px 16px}.history-filter-top{gap:13px}.history-filter-top>label{font-size:11px}.history-filter-top select{font-size:12px}.period-buttons{gap:4px}.period-buttons .btn{padding:7px 6px;min-height:38px;font-size:11px}
  .history-item>summary{padding:17px 18px}.history-item time{font-size:11px}.history-item b{font-size:13px}.history-pagination{padding:15px 18px}
  .fp-workspace{gap:20px}.fp-toolbar{padding:12px 16px}.fp-inspector-heading{padding:20px}.fp-current-state{padding:18px 20px}
  .modal-backdrop{padding:14px}.modal-backdrop dialog{border-radius:23px;max-height:92dvh}.dialog-heading{padding:20px}.dialog-heading h2{font-size:20px}.dialog-body{padding:22px 20px}
  .auth{padding:53px 20px 30px}.auth-card{padding:30px 25px;border-radius:25px}.auth-card h1{font-size:27px}.auth-card>p{font-size:13px}
}
@media(max-width:360px){.global-header{gap:7px;padding:0 10px}.global-header .wordmark{font-size:17px}.global-header nav>button{padding:8px;font-size:10px}.content{padding-left:14px;padding-right:14px}.space-switch{width:113px}.space-heading h1{font-size:27px}.dashboard-section-heading>div{gap:5px;flex-wrap:wrap}.dashboard-device{padding:17px 13px;gap:9px}.dashboard-device-open{gap:10px}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.global-header,.space-tabs{background:#fdfdfd}.modal-backdrop{background:#29293855}.modal-backdrop dialog{background:#fff}}
@media(prefers-reduced-transparency:reduce){.global-header,.space-tabs,.space-switch select,.modal-backdrop dialog{background:#fff;-webkit-backdrop-filter:none;backdrop-filter:none}.modal-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none;background:#29293855}}
@media(prefers-contrast:more){:root{--muted:#44444b;--line:#a6a6b0}.global-header,.space-tabs{background:#fff;border-color:#9b9ba5;-webkit-backdrop-filter:none;backdrop-filter:none}.dashboard-device,.panel{border-color:#aaaab3}.dashboard-device-meta>small,.dashboard-room-heading>span{color:#4a4a52}}
@media(prefers-reduced-motion:reduce){button,input,select,textarea{transition:none;animation:none}html{scroll-behavior:auto}}

.auth-remember{display:grid;gap:0;margin-top:-6px}
.auth-card .form .auth-remember .checkbox{display:flex;align-items:center;gap:9px;min-height:44px;padding:4px 0;font-size:13px;font-weight:500;cursor:pointer}
.auth-card .form .auth-remember input{appearance:auto;width:18px;height:18px;min-height:18px;margin:0;padding:0;flex:none;accent-color:var(--accent)}
.auth-card .form .auth-remember>small{margin-left:27px;font-size:11px}

/* Brief confirmations stay visible without moving the controls. */
.toast.toast-centered{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);max-width:calc(100vw - 40px);width:max-content;text-align:center;pointer-events:none;padding:15px 24px}
.history-chart-events button[aria-pressed="true"]{outline:2px solid #bd6a22;outline-offset:2px;background:#fff2e5}
.history-chart-events button[aria-pressed="true"] i{background:#bd6a22}
.activity-time-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:0 0 18px;background:#fff4e8;border-radius:12px;color:#9b501a;font-size:14px}
.activity-time-selection .text-button{white-space:nowrap}
.activity-record-list{scroll-margin-top:16px}
