@font-face{font-family:AsanehVazir;src:url('/legacy-live/fonts/Vazir.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:AsanehVazir;src:url('/legacy-live/fonts/Vazir-Bold.woff2') format('woff2');font-weight:600 900;font-display:swap}
html{color-scheme:dark;background:#0d0f1a}html[data-theme=light]{color-scheme:light;background:#f4f6fa}
.legacy-live{--bg:#0d0f1a;--paper:#151927;--raised:#1e2436;--ink:#f0f2fc;--muted:#b2bad2;--brand:#edc66b;--brand-dark:#f6d897;--brand-ink:#242013;--line:#333c52;--soft:#242631;--teal:#6be0cf;--teal-soft:#15352f;--danger:#ffb0b6;--red-soft:#39232d;--warning:#edc66b;--focus:#9bb7ff;--nav:#151927;background:var(--bg);color:var(--ink);font:16px/1.7 AsanehVazir,Tahoma,sans-serif}
[data-theme=light] .legacy-live{--bg:#f4f6fa;--paper:#fff;--raised:#eef1f7;--ink:#1d2941;--muted:#53637e;--brand:#8b5a09;--brand-dark:#6b4100;--brand-ink:#fff;--line:#cdd5e2;--soft:#faf0d7;--teal:#096b61;--teal-soft:#e2f4ef;--danger:#a62d43;--red-soft:#fcecef;--warning:#8b5a09;--focus:#355bd0;--nav:#fff}
.legacy-live .shell{max-width:760px;padding:0 20px 108px}.legacy-live svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}.legacy-live button,.legacy-live input,.legacy-live select{font:inherit}.legacy-live button{touch-action:manipulation}.legacy-live .topbar{margin:0 -20px;padding:14px 20px;gap:12px;background:var(--bg);color:var(--ink);border-bottom:1px solid var(--line);box-shadow:none;flex-wrap:wrap}.legacy-live .brand{color:var(--ink);gap:10px;font-size:1.2rem;flex:1;line-height:1.4}.legacy-live .brand-mark{width:42px;height:42px;border:1px solid var(--brand);border-radius:14px;background:var(--soft);color:var(--brand)}.legacy-live .brand-mark svg{width:26px;height:26px}.legacy-live .brand-caption{display:block;font-size:.75rem;font-weight:400;color:var(--muted);margin-top:3px}.legacy-live .theme-button{width:44px;height:44px;display:grid;place-items:center;background:var(--paper);border:1px solid var(--line);border-radius:13px;color:var(--brand);cursor:pointer}.legacy-live .account-bar{gap:8px;flex-basis:100%;justify-content:space-between;padding-top:4px}.legacy-live .account-bar select{max-width:75%;min-width:0;height:44px}.legacy-live .account-bar .icon-button{margin:0;min-height:44px;background:var(--paper);color:var(--ink);border-color:var(--line);font-size:.87rem}.legacy-live .page-heading{margin:26px 0 14px;gap:12px}.legacy-live .page-heading h1{font-size:1.45rem;margin:3px 0}.legacy-live .eyebrow{color:var(--brand);font-size:.85rem}.legacy-live .icon-button,.legacy-live .primary-button,.legacy-live .switch-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:12px;padding:9px 14px;line-height:1.5;cursor:pointer}.legacy-live .icon-button{background:var(--paper);border:1px solid var(--line);color:var(--ink)}.legacy-live .primary-button,.legacy-live .switch-button{background:var(--brand);color:var(--brand-ink);border:1px solid transparent;font-weight:700}.legacy-live .primary-button:hover,.legacy-live .switch-button:hover{background:var(--brand-dark)}.legacy-live .switch-button.secondary{color:var(--ink);background:var(--raised);border-color:var(--line)}.legacy-live button:disabled{opacity:.55;cursor:not-allowed}.legacy-live .summary{display:flex;gap:12px;margin:16px 0}.legacy-live .summary-card{padding:12px 16px;border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--muted);font-size:.9rem}.legacy-live .summary-card strong{color:var(--ink);font-size:1.3rem}.legacy-live .home-tools{gap:12px;margin:20px 0}.legacy-live .home-tools label{gap:6px;font-size:.85rem;color:var(--muted);min-width:0}.legacy-live .home-tools select{height:46px;border-radius:12px;padding:8px;background:var(--paper);color:var(--ink);width:100%}.legacy-live .home-tools button{font-size:.9rem}.legacy-live .device-list:not(.show-detail){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.legacy-live .device-card{padding:0;border-radius:19px;background:var(--paper);box-shadow:none;margin:0;min-width:0}.legacy-live .device-row{display:flex;flex-direction:column;align-items:stretch;min-height:194px;padding:17px;gap:14px;text-align:right}.legacy-live .device-row-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.legacy-live .device-glyph{display:grid;place-items:center;background:var(--soft);color:var(--brand);width:46px;height:46px;border-radius:14px}.legacy-live .device-glyph.cooler{color:var(--teal);background:var(--teal-soft)}.legacy-live .device-glyph svg{width:27px;height:27px}.legacy-live .device-name{font-size:1rem;line-height:1.8;margin:0 0 3px;overflow-wrap:anywhere}.legacy-live .device-overview{display:block;font-size:.85rem;line-height:1.8;min-height:1.8em}.legacy-live .device-kind{display:block;color:var(--muted);font-size:.78rem;margin-top:3px}.legacy-live .status{font-size:.78rem;white-space:normal;line-height:1.5;padding:5px 8px;display:inline-flex;align-items:center;gap:5px;align-self:flex-start}.legacy-live .status::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}.legacy-live .status.online{background:var(--teal-soft);color:var(--teal)}.legacy-live .status.offline{background:var(--raised);color:var(--muted)}.legacy-live .quick-switch{margin:0 14px 14px;width:calc(100% - 28px);min-height:46px;background:var(--raised);border:1px solid var(--line);border-radius:12px;color:var(--ink);display:flex;align-items:center;justify-content:center;gap:8px;font-size:.85rem;cursor:pointer}.legacy-live .quick-switch.is-on{background:var(--soft);color:var(--brand);border-color:var(--brand)}.legacy-live .privacy-note,.legacy-live .device-help{font-size:.88rem;line-height:1.95;color:var(--muted)}.legacy-live .privacy-note{margin-top:24px}.legacy-live .empty-state{color:var(--muted);border-color:var(--line);grid-column:1/-1}.legacy-live .notice:not(:empty){padding:12px 15px;background:var(--red-soft);color:var(--danger);font-size:.9rem;border:1px solid var(--line)}.legacy-live .notice.info{background:var(--teal-soft);color:var(--teal)}.legacy-live .detail-open{border:0;background:none;box-shadow:none;overflow:visible;max-width:none}.legacy-live .device-heading{gap:12px;margin:20px 0}.legacy-live .device-heading h2{font-size:1.2rem;min-width:80px;overflow-wrap:anywhere}.legacy-live .device-heading .icon-button{padding:10px;min-width:46px}.legacy-live .temperature{width:148px;height:148px;border:2px solid var(--teal);border-radius:50%;margin:28px auto 16px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:var(--muted);font-size:.85rem;background:var(--teal-soft)}.legacy-live .temperature strong{order:-1;color:var(--teal);font-size:2.7rem;line-height:1.4;direction:ltr;margin:0}.legacy-live .mode-pill{display:table;margin:0 auto 24px;padding:6px 12px;border-radius:99px;border:1px solid var(--line);background:var(--raised);color:var(--muted);font-size:.85rem;text-align:center}.legacy-live .mode-pill.is-on{color:var(--brand);border-color:var(--brand);background:var(--soft)}.legacy-live .hvac-grid{gap:14px;margin:22px 0}.legacy-live .hvac-control{gap:8px;background:var(--paper);padding:20px 10px;color:var(--muted);min-height:160px;border-radius:18px}.legacy-live .hvac-control svg{width:44px;height:44px;fill:currentColor;stroke:none}.legacy-live .hvac-control.is-on{color:var(--teal);background:var(--teal-soft);border-color:var(--teal)}.legacy-live .hvac-control span{font-size:.94rem}.legacy-live .hvac-control strong{font-size:.88rem}.legacy-live .hvac-control.is-on strong{color:var(--teal)}.legacy-live .device-tabs,.legacy-live .bottom-nav{padding:9px 12px calc(9px + env(safe-area-inset-bottom));background:var(--nav);box-shadow:none}.legacy-live .device-tabs button,.legacy-live .bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font:inherit;font-size:.86rem;min-height:56px}.legacy-live .device-tabs [aria-current=page],.legacy-live .bottom-nav [aria-current=page]{color:var(--brand);background:var(--soft)}.legacy-live h3{font-size:1.05rem;line-height:1.8}.legacy-live .program-heading button{font-size:.82rem}.legacy-live .automatic-editor{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:16px}.legacy-live .automatic-editor>summary{font-size:.95rem;min-height:44px}.legacy-live .automatic-mode,.legacy-live .automatic-schedule{background:var(--paper);border-color:var(--line);border-radius:12px}.legacy-live .automatic-mode>summary,.legacy-live .automatic-editor h4{font-size:.95rem}.legacy-live .automatic-help,.legacy-live .automatic-field{color:var(--muted);font-size:.88rem;line-height:1.9}.legacy-live .automatic-actions{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.legacy-live .automatic-field input,.legacy-live .automatic-field select,.legacy-live .rename-form input,.legacy-live .rule-editor input,.legacy-live .rule-editor select,.legacy-live .login-card input,.legacy-live .account-bar select{background:var(--raised);color:var(--ink);border:1px solid var(--line);font:inherit;min-height:48px;border-radius:11px;padding:9px 12px;width:100%;min-width:0}.legacy-live .automatic-save,.legacy-live .automatic-add,.legacy-live .automatic-remove{font:inherit;font-size:.86rem;min-height:46px;border-radius:11px;border:1px solid var(--line);background:var(--raised);color:var(--ink)}.legacy-live .automatic-save{color:var(--brand-ink);background:var(--brand);border-color:var(--brand)}.legacy-live .automatic-remove,.legacy-live .automatic-form-notice{color:var(--danger)}.legacy-live .automatic-form-notice{font-size:.88rem}.legacy-live .rename-form,.legacy-live .device-info,.legacy-live .history-row{background:var(--paper);border-color:var(--line);font-size:.9rem}.legacy-live .rename-form label{font-size:.95rem}.legacy-live .staged-message{background:var(--soft);color:var(--warning);font-size:.9rem;border:1px solid var(--line)}.legacy-live .controls{gap:10px;flex-wrap:wrap}.legacy-live .smart-tabs{background:var(--raised);border:1px solid var(--line);padding:5px;gap:5px;flex-wrap:nowrap}.legacy-live .smart-tabs button{font:inherit;font-size:.86rem;min-width:0;min-height:68px;padding:8px 4px;color:var(--muted);line-height:1.7;display:flex;flex-direction:column;justify-content:center;align-items:center}.legacy-live .smart-tabs button span{display:block;font-size:.76rem;font-weight:400}.legacy-live .smart-tabs [aria-pressed=true]{background:var(--paper);color:var(--brand)}.legacy-live .smart-card,.legacy-live .rule-editor,.legacy-live .run-history{background:var(--paper);border-color:var(--line);color:var(--ink);padding:18px;box-shadow:none}.legacy-live .smart-card h2{font-size:1.05rem;line-height:1.8}.legacy-live .location-tag{font-size:.82rem;color:var(--brand);margin:12px 0}.legacy-live .condition-strip{background:var(--teal-soft);color:var(--ink);font-size:.92rem;line-height:2}.legacy-live .action-list{background:var(--raised);color:var(--ink);font-size:.92rem;line-height:2}.legacy-live .enable-rule{background:var(--raised);color:var(--muted);border:1px solid var(--line);font-size:.88rem}.legacy-live .enable-rule.enabled{background:var(--teal-soft);color:var(--teal);border-color:var(--teal)}.legacy-live .rule-editor fieldset{border-color:var(--line)}.legacy-live #smartView:has([data-smart-tab=local][aria-pressed=true]) .run-history{display:none}.legacy-live .onboarding-panel{background:var(--paper);padding:20px;border-radius:18px;margin:20px 0}.legacy-live .onboarding-panel h2{font-size:1.15rem}.legacy-live .onboarding-panel ol{padding:0;list-style:none;counter-reset:step}.legacy-live .onboarding-panel li{counter-increment:step;position:relative;padding:6px 44px 14px 0;border-bottom:1px solid var(--line);margin-bottom:16px}.legacy-live .onboarding-panel li::before{content:counter(step);position:absolute;right:0;top:5px;width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:var(--soft);color:var(--brand)}.legacy-live .onboarding-panel li:last-child{border:0;margin:0}.legacy-live .onboarding-panel li p{font-size:.9rem;color:var(--muted);margin:6px 0}.legacy-live .account-link{background:var(--paper);color:var(--brand);min-height:56px}.legacy-live #accountView{padding:16px 0}.legacy-live #accountIdentity{direction:ltr;text-align:right;overflow-wrap:anywhere}.legacy-live .login-panel{padding:46px 8px 10px;max-width:460px;width:100%;margin:auto}.legacy-live .welcome-copy h1{font-size:1.65rem;line-height:1.7;margin:12px 0}.legacy-live .welcome-copy>p:last-child{font-size:.95rem}.legacy-live .welcome-symbol{display:grid;place-items:center;margin:0 auto 22px;width:66px;height:66px;border:1px solid var(--brand);background:var(--soft);color:var(--brand);border-radius:21px}.legacy-live .welcome-symbol svg{width:35px;height:35px}.legacy-live .login-card{padding:24px;background:var(--paper);box-shadow:none;border-radius:20px;gap:10px}.legacy-live .login-card label{font-size:.95rem}.legacy-live .login-help{font-size:.85rem;color:var(--muted)}.legacy-live footer{font-size:.78rem;color:var(--muted)}.legacy-live :focus-visible{outline:3px solid var(--focus);outline-offset:3px}.legacy-live input:disabled,.legacy-live select:disabled{opacity:.65}
@media(max-width:420px){.legacy-live .shell{padding-inline:14px}.legacy-live .topbar{margin-inline:-14px;padding-inline:14px}.legacy-live .device-row{padding:14px;min-height:188px}.legacy-live .device-list:not(.show-detail){gap:10px}.legacy-live .device-row-top{align-items:flex-start;flex-direction:column;gap:9px}.legacy-live .device-name{font-size:.95rem}.legacy-live .smart-tabs button{font-size:.8rem}.legacy-live .device-overview{font-size:.82rem}.legacy-live .page-heading .icon-button{font-size:.85rem;padding:10px}.legacy-live .login-panel{padding-inline:0}.legacy-live .login-card{padding:20px}.legacy-live .automatic-actions{grid-template-columns:1fr}.legacy-live .automatic-grid{gap:8px}.legacy-live .automatic-field input,.legacy-live .automatic-field select{padding:8px}.legacy-live .program-heading{align-items:start;flex-direction:column}.legacy-live .device-heading h2{font-size:1.06rem}.legacy-live .home-tools button{font-size:.85rem;padding:10px}}
@media(max-width:350px){.legacy-live .brand-caption{font-size:.7rem}.legacy-live .device-name{font-size:.88rem}.legacy-live .smart-tabs button{font-size:.75rem}.legacy-live .home-tools{gap:8px}.legacy-live .home-tools button svg{display:none}.legacy-live .hvac-control{min-height:148px}.legacy-live .device-glyph{width:40px;height:40px}.legacy-live .editor-pair{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.legacy-live *{transition:none!important;scroll-behavior:auto!important}}
.legacy-live .account-bar:has(select[hidden]){display:none}.legacy-live .account-logout{margin-top:20px;color:var(--danger)}
@media(max-width:350px){.legacy-live .smart-tabs button{font-size:.82rem}}
.legacy-live .cooler-preferences{margin:22px 0 30px}.legacy-live .pref-intro{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.legacy-live .pref-group{border:1px solid var(--line);background:var(--paper);border-radius:15px;padding:14px 16px;margin:12px 0}.legacy-live .pref-group>summary{font-weight:700;min-height:44px;cursor:pointer;align-content:center;font-size:.98rem}.legacy-live .pref-group fieldset{min-width:0;padding:0;border:0;margin:8px 0}.legacy-live .pref-field{display:grid;gap:8px;margin:14px 0;font-size:.92rem;color:var(--muted)}.legacy-live .pref-field input:not([type=range]),.legacy-live .pref-field select{width:100%;min-width:0;min-height:48px;border:1px solid var(--line);background:var(--raised);color:var(--ink);border-radius:10px;padding:9px 12px;font:inherit}.legacy-live .pref-field input[type=range]{width:100%;min-height:44px;accent-color:var(--brand);direction:ltr}.legacy-live .pref-check{display:flex;gap:12px;align-items:center;min-height:48px;font-size:.94rem;margin:12px 0}.legacy-live .pref-check input{width:22px;height:22px;accent-color:var(--brand);flex:none}.legacy-live .pref-group fieldset:disabled{opacity:.65}.legacy-live .remote-slot{padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:14px}.legacy-live .remote-slot>strong,.legacy-live .remote-slot>span{display:block}.legacy-live .remote-slot .controls{margin-top:10px}.legacy-live .remote-slot button{font-size:.85rem}.legacy-live .pref-notice{color:var(--danger)}.legacy-live output{color:var(--ink)}
