*{box-sizing:border-box}html{color-scheme:dark}body{margin:0;background:#071821 url(./assets/layzspa_night_wallpaper.png) center/cover fixed;color:#f2faff;font:16px system-ui;min-height:100dvh;padding-bottom:calc(80px + env(safe-area-inset-bottom))}header,main,#notice,nav{max-width:760px;margin:auto}header{display:flex;justify-content:space-between;align-items:center;padding:calc(16px + env(safe-area-inset-top)) 20px 12px;background:#071821da;font-size:1.35rem}header span{font-size:.8rem;color:#82e8ff}main{padding:16px;background:#07182191;min-height:350px;border-radius:20px}h1{margin:.1em 0 .7em;font-size:1.55rem}h2{font-size:1.15rem}button,input,select{font:inherit;border:1px solid #47707f;background:#102d39;color:inherit;padding:10px;border-radius:12px;min-height:44px;max-width:100%}button{cursor:pointer}button:disabled,input:disabled{opacity:.55;cursor:default}button.active,button[aria-pressed=true]{background:#76e4ff;color:#09202a;border-color:#76e4ff}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #86e8ff;outline-offset:3px}nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);background:#071821;padding:8px 4px calc(8px + env(safe-area-inset-bottom));gap:4px}nav button{padding:8px 2px;font-size:clamp(.7rem,3vw,1rem)}.dial{margin:12px auto;width:min(230px,75vw);aspect-ratio:1;border:8px solid #55cbe8;border-bottom-color:#183d4b;border-radius:50%;display:grid;align-content:center;justify-items:center;background:#0b2736eb}.dial strong{font-size:3.2rem}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.row img{width:34px;height:34px;object-fit:contain;vertical-align:middle}.card{padding:14px;margin:12px 0;border-radius:16px;background:#103341eb}.card strong{display:block;font-size:1.35rem}label{display:block;margin:10px 0}input[type=range]{width:100%;accent-color:#69dff8}#notice{background:#071821;padding:8px 16px;min-height:34px;color:#a8eeff}ul{padding-left:20px}
.chart{display:block;width:100%;height:auto;color:#76e4ff}.chart-labels{display:flex;justify-content:space-between;gap:8px;font-size:.8rem;color:#c5e1ec}.chart-labels+p strong{display:inline;font-size:inherit}select[data-map]{display:block;width:100%;margin-top:4px}
@media(max-width:370px){header{font-size:1.15rem}main{padding:10px}.row button{padding:8px}.row img{width:26px;height:26px}}@supports not (height:100dvh){body{min-height:100vh}}
main label{color:inherit}
main select,main input:not([type=range]):not([type=checkbox]){display:block;width:100%;margin-top:5px;font-size:16px}
main select{-webkit-appearance:none;appearance:none;padding:10px 38px 10px 12px;min-height:48px;
background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);
background-position:calc(100% - 19px) 52%,calc(100% - 13px) 52%;
background-size:6px 6px;background-repeat:no-repeat;text-overflow:ellipsis}
body[data-theme=light] main select{background-color:#f5fbfb;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%)}
main select option{background:#102d39;color:#fff}
body[data-theme=light] main select option{background:#f5fbfb;color:#12333e}
.selection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.selection-grid label{min-width:0}
.checkbox{display:flex;align-items:center;min-height:44px;gap:12px}
.checkbox input{width:22px;height:22px;min-height:0;accent-color:#278898;margin:0;flex-shrink:0}
.home-status,.hero-actions{display:flex;align-items:flex-start;gap:5px}
.home-status{flex-direction:column;min-width:0}
.hero span.weather{font-size:.77rem}
.hero-actions button{margin-left:3px}
body[data-theme=light]{color-scheme:light;color:#18323c}
body[data-theme=light] header,body[data-theme=light] #notice{background:#f4fcfff2;color:#12333e}
body[data-theme=light] header span{color:#176174}
body[data-theme=light] main{background:#e8f7fbdb}
body[data-theme=light] button,body[data-theme=light] select,body[data-theme=light] input{background-color:#f5fbfb;color:#12333e;border-color:#accdd5}
body[data-theme=light] .card{background:#fff}
body[data-theme=light] .chart,body[data-theme=light] .chart-labels{color:#176174}
body:not([data-tab="0"]){background:#080f14}
body[data-theme=light]:not([data-tab="0"]){background:#e8f4f8}
body[data-tab="1"]>header,body[data-tab="2"]>header,body[data-tab="3"]>header{display:none}
body:not([data-tab="0"]) main{background:transparent;padding:calc(16px + env(safe-area-inset-top,0px)) 18px 22px}
body:not([data-tab="0"]) main h1{font-size:clamp(27px,8vw,33px);letter-spacing:-.02em}
body:not([data-tab="0"]) .card,.settings-section,.stats-overview button{background:#121d24;border:1px solid #25353e;color:#eef6fa}
body[data-theme=light]:not([data-tab="0"]) .card,body[data-theme=light] .settings-section,body[data-theme=light] .stats-overview button{background:#fff;border-color:#cedfe5;color:#18323c}
.stats-meta{display:flex;justify-content:space-between;font-size:.8rem;color:#a6bbc6;margin:-8px 0 15px}
.stats-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.stats-overview button{text-align:left;font-size:.78rem;min-height:77px;padding:12px}
.stats-overview strong{display:block;font-size:1.04rem;color:var(--accent);margin-top:5px}
.stats-totals h2{margin:0 0 8px}
.stats-totals div{display:flex;justify-content:space-between;align-items:baseline;gap:6px;padding:4px 0}
.stats-totals strong{font-size:1rem}
.schedule-list{list-style:none;padding:0}
.schedule-list h2{margin:0 0 5px;text-transform:uppercase;font-size:.75rem;color:var(--accent)}
.schedule-day,.settings-lead{color:#a5bac6;font-size:.86rem}
.settings-section{margin:9px 0;border-radius:15px;overflow:hidden}
.settings-section summary{cursor:pointer;list-style:none;padding:13px 34px 13px 14px;position:relative;min-height:48px}
.settings-section summary::-webkit-details-marker{display:none}
.settings-section summary::after{content:"›";position:absolute;right:13px;top:15px;color:var(--accent);font-size:21px}
.settings-section[open] summary::after{transform:rotate(90deg)}
.settings-section summary small{display:block;color:#a5bac6;margin-top:3px}
.settings-content{padding:0 14px 14px}
body[data-theme=light] .settings-lead,body[data-theme=light] .settings-section summary small,body[data-theme=light] .schedule-day,body[data-theme=light] .stats-meta{color:#4b6170}
.days-picker{margin:8px 0;padding:5px 0;border:0;min-width:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.days-picker legend{margin-bottom:5px}
.days-picker label{position:relative;margin:0;text-align:center}
.days-picker input{opacity:0;position:absolute;inset:0;width:100%;height:100%;min-height:44px;margin:0;cursor:pointer}
.days-picker span{display:grid;place-items:center;min-height:44px;border:1px solid #47707f;border-radius:9px;font-size:.8rem}
.days-picker input:checked+span{background:#75deef;color:#09191f;border-color:#75deef}
.days-picker input:focus-visible+span{outline:2px solid #86e8ff;outline-offset:1px}
.effective-schedule{padding-left:20px}
.stats-detail-title{display:flex;align-items:center;gap:7px}
.stats-back{flex-shrink:0;background:transparent;border:0;color:var(--accent);font-size:26px;padding:4px 8px;line-height:1}
.range-options button{min-height:44px}
.data-actions{display:grid;gap:7px}
.data-actions button{text-align:left}
.wipe-confirm{margin-top:12px;padding:12px;border:1px solid #d88c54;border-radius:12px}
.wipe-confirm h3{margin:0}
#wipe-confirm{border-color:#d88c54}
#schedule-add{width:100%;margin-bottom:5px;border-color:#4dd0e1;background:#113840;color:#79e3ef}
#heating-fields[hidden]{display:none}
.supla-status{font-weight:600;color:var(--accent)}
.supla-field-error{color:#ff9e9e}
body[data-theme=light] .supla-field-error{color:#a72924}
.supla-config{display:grid;grid-template-columns:1fr minmax(0,auto);gap:9px}
.supla-config dd{margin:0;text-align:right;overflow-wrap:anywhere}
body[data-tab="2"] main{--schedule-bg:#0d171c;--schedule-option:#101b22;--schedule-edge:#18262d;
 --schedule-muted:#a1b1ba;--schedule-on:#20bfd1;color:#f5fbff;padding-left:16px;padding-right:16px}
body[data-theme=light][data-tab="2"] main{--schedule-bg:#fff;--schedule-option:#f5fbfc;--schedule-edge:#c7e0e6;
 --schedule-muted:#49616d;--schedule-on:#12aebf;color:#142e38}
.schedule-screen-brand{font-size:clamp(25px,8vw,32px);font-weight:620;letter-spacing:-.03em;line-height:1.2}
.schedule-navbar{display:grid;grid-template-columns:30px minmax(0,1fr) 40px;align-items:center;gap:7px;margin:6px -4px 0}
body[data-tab="2"] .schedule-navbar h1{font-size:21px;letter-spacing:0;margin:0}
.schedule-navbar button{background:transparent!important;border:0;color:var(--accent);padding:0;font-size:25px;min-width:0}
.schedule-navbar #retry-schedule{color:var(--schedule-muted)}
.schedule-sync{min-height:44px;margin:0 0 6px;font-size:.73rem;color:var(--schedule-muted);display:flex;flex-direction:column;justify-content:center;gap:4px}
.schedule-master,.schedule-option{display:grid;align-items:center;gap:12px;border-radius:13px;padding:12px;margin:9px 0}
.schedule-master{grid-template-columns:1fr auto;background:var(--schedule-bg);border:1px solid var(--schedule-edge);min-height:67px}
.schedule-master strong{font-size:15px}
body[data-tab="2"] .schedule-switch{appearance:none;-webkit-appearance:none;display:block;margin:0;padding:0;
 width:52px;height:32px;min-height:0;border:1px solid var(--schedule-edge);background:#485966;border-radius:22px;cursor:pointer}
body[data-tab="2"] .schedule-switch::before{content:"";display:block;width:24px;height:24px;border-radius:50%;
 background:#fff;margin:3px;transition:transform .12s}
body[data-tab="2"] .schedule-switch:checked{background:var(--schedule-on);border-color:var(--schedule-on)}
body[data-tab="2"] .schedule-switch:checked::before{transform:translateX(20px)}
body[data-tab="2"] .schedule-switch:disabled{opacity:.55;cursor:default}
body[data-tab="2"] #schedule-add{display:block;width:100%;margin:10px 0 12px;background:var(--schedule-on);border:0;
 border-radius:12px;color:#051619;font-weight:650;font-size:14px;min-height:46px}
.schedule-empty{margin:20px 0 26px;color:var(--schedule-muted);font-size:14px}
.schedule-options{margin:16px 0 8px}
.schedule-options h2{color:var(--schedule-muted);font-size:13px;font-weight:500;margin:0 0 8px}
.schedule-option{grid-template-columns:22px minmax(0,1fr) auto;background:var(--schedule-option);min-height:70px}
.schedule-option svg{height:20px;width:20px;color:var(--accent)}
.schedule-option strong,.schedule-option small{display:block;font-weight:500;font-size:.84rem;line-height:1.55}
.schedule-option small{color:var(--schedule-muted);font-size:.73rem}
body[data-tab="2"] .schedule-list .card{background:var(--schedule-bg);border-color:var(--schedule-edge);margin:7px 0}
.schedule-card-heading{display:flex;align-items:center;gap:3px}
.schedule-card-heading h2{flex:1}
.schedule-card-heading button{display:grid;place-items:center;width:40px;padding:0;background:transparent!important;border:0;color:var(--accent)}
.schedule-card-heading [data-remove]{color:#e15f64}
.schedule-card-heading svg{width:18px;height:18px}
.schedule-list .schedule-heat{color:#d69827;margin:4px 0 5px;font-size:.85rem}
.schedule-list>li>strong{font-variant-numeric:tabular-nums;font-size:1.08rem}
.schedule-effective{font-size:.8rem;margin-top:12px}
body.schedule-dialog-open{overflow:hidden}
.schedule-overlay,.time-picker{position:fixed;inset:0;z-index:20;background:#000a;display:grid;place-items:center;
 padding:max(10px,env(safe-area-inset-top,0px)) 20px max(10px,env(safe-area-inset-bottom,0px));overscroll-behavior:contain}
.schedule-dialog{display:flex;flex-direction:column;width:min(100%,390px);max-height:calc(100vh - 26px);max-height:calc(100dvh - 26px);
 border-radius:26px;background:var(--schedule-bg);padding:20px 22px 10px;color:inherit}
.schedule-dialog-content{overflow:auto;overscroll-behavior:contain;min-height:0;padding:2px 2px 6px}
.schedule-dialog h2{margin:0 0 15px;font-size:clamp(19px,6.6vw,24px)}
.schedule-dialog p,.schedule-dialog legend,.schedule-times span{color:var(--schedule-muted);font-size:.75rem;line-height:1.5}
.schedule-dialog p{margin:0 0 8px}
.schedule-times{margin-bottom:8px}
.schedule-times button{display:flex;flex-direction:column;align-items:flex-start;color:inherit;padding:2px 0;border:0;background:transparent!important}
.schedule-times strong{font-size:clamp(24px,8vw,30px);line-height:1.2;font-variant-numeric:tabular-nums}
.schedule-choice,.schedule-dialog .days-picker,.schedule-heat-editor,.schedule-tail{border:none;margin:0 0 7px;padding:4px 0;min-width:0}
.schedule-choice label{margin:4px 0 0}
.schedule-choice label,.schedule-chips label{position:relative}
.schedule-choice input,.schedule-chips input{position:absolute;inset:0;width:100%;height:100%;min-height:0;opacity:0;margin:0;cursor:pointer}
.schedule-choice span,.schedule-chips span{display:flex;align-items:center;justify-content:center;min-height:43px;line-height:1.2;
 border:1px solid var(--schedule-edge);background:var(--schedule-option);border-radius:8px;color:var(--schedule-muted)}
.schedule-choice span{justify-content:flex-start;padding:0 10px;gap:11px;font-size:.92rem}
.schedule-choice span::before{content:"";width:11px;height:11px;border:1.5px solid currentColor;border-radius:50%}
.schedule-choice input:checked+span,.schedule-chips input:checked+span{background:#20bfd12b;border-color:var(--schedule-on);color:var(--accent)}
.schedule-choice input:checked+span::before{background:currentColor}
.schedule-choice input:focus-visible+span,.schedule-chips input:focus-visible+span{outline:2px solid var(--accent)}
.schedule-dialog .days-picker{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.schedule-chips span{font-size:.86rem}
.schedule-tail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.schedule-tail label{margin:0}
.schedule-tail span{min-height:39px}
.schedule-stepper{display:flex;align-items:center;justify-content:space-between}
.schedule-stepper output{font-size:1.45rem;font-weight:650}
.schedule-stepper button,.schedule-dialog-actions button{background:transparent!important;border:0;color:var(--accent)}
.schedule-stepper button{font-size:23px}
.schedule-dialog-actions{display:flex;justify-content:flex-end;gap:7px;flex-shrink:0}
.schedule-dialog-actions button:first-child{color:var(--schedule-muted)}
.schedule-dialog-actions button:last-child{font-weight:650}
.time-picker{z-index:21}
.time-picker-card h3{margin:0 0 7px}
.time-picker[hidden],.schedule-heat-editor[hidden]{display:none}
#schedule-editor-error{color:#e88875}
#schedule-editor-error:empty{display:none}
#schedule-dialog-title:focus{outline:none}
.time-picker-card{padding:25px 24px 12px}
.time-picker-card h3{margin:0 0 16px;font-size:17px}
.wheel-pair{display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:8px;
 align-self:center;width:min(100%,190px);margin:0 auto 18px;text-align:center}
.wheel-pair>b{margin-top:85px;font-size:27px}
.wheel-column{min-width:0}
.wheel-column>span{display:block;color:var(--schedule-muted);font-size:.77rem;margin-top:7px}
.schedule-wheel{--wheel-step:39px;height:calc(var(--wheel-step)*5);padding-block:calc(var(--wheel-step)*2);
 overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;scroll-behavior:auto}
.schedule-wheel::-webkit-scrollbar{display:none}
.schedule-wheel [role=option]{height:var(--wheel-step);display:grid;place-items:center;scroll-snap-align:center;
 font-size:17px;color:var(--schedule-muted);font-variant-numeric:tabular-nums;cursor:pointer}
.schedule-wheel [role=option][hidden]{display:none}
.schedule-wheel [role=option][data-distance="2"]{opacity:.42}
.schedule-wheel [role=option][aria-selected="true"]{font-size:25px;font-weight:600;color:inherit;border-radius:8px;background:#4dd0e123}
.schedule-wheel:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:8px}
