
:root{--accent:#4dd0e1;--nav-bg:#0d151b;--nav-edge:#193940;--nav-muted:#a2afb8;--bottom-gap:4px;
 --nav-height:52px;--footer-space:calc(76px + env(safe-area-inset-bottom,0px))}
body{padding-bottom:var(--footer-space)}
body[data-theme=light]{--accent:#13a7bd;--nav-bg:#f3fbfff2;--nav-edge:#fff;--nav-muted:#516775;
 background:#dcebf0 url(./assets/layzspa_day_wallpaper.png) center top/cover fixed}
body[data-tab="0"]>header{display:none}
body[data-tab="0"]>main{padding:0 18px;max-width:530px;background:none;border-radius:0}
body[data-tab="0"]>main>h1{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body[data-tab="0"] #notice:empty{display:none}
body[data-tab="0"] #notice:not(:empty){border-radius:8px;min-height:auto;position:fixed;z-index:3;bottom:var(--footer-space);
 left:18px;right:18px;max-width:494px}
.home-stack{min-height:calc(100vh - var(--footer-space) + 6px - env(safe-area-inset-top,0px));display:flex;flex-direction:column;
 gap:8px;padding-top:calc(8px + env(safe-area-inset-top,0px));padding-bottom:4px}
@supports(height:100dvh){.home-stack{min-height:calc(100dvh - var(--footer-space) + 6px)}}
@media(max-width:500px){
 body[data-tab="0"]:not([data-detail=service]){
  background-size:auto max(100vh,222.22vw);
  background-position:center -26px
 }
}
.hero{flex:1;min-height:86px;display:flex;justify-content:space-between;align-items:flex-start;color:#fff}
.home-title{font-size:clamp(28px,9.75vw,40px);font-weight:500;line-height:1.07;letter-spacing:-.02em;margin:0 0 10px}
.connection{display:inline-flex;align-items:center;font-size:12px;line-height:18px;white-space:nowrap}
.connection:before{content:"";width:9px;height:9px;border-radius:50%;background:#ef5350;margin-right:6px}
.connection.online:before{background:#66bb6a}
.home-demo{display:inline-block;font-size:9px;color:#c5d4dd;margin-left:6px}
.hero-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.hero-actions button{width:44px;background:transparent;border:0;color:inherit;padding:9px}
.hero-actions button svg,.weather svg{width:24px;height:24px;display:block}
.weather{display:flex;align-items:center;gap:5px;border-radius:16px;background:#02070bdc;padding:5px 9px;
 font-size:14px;font-weight:600;white-space:nowrap}
.weather svg{color:#4dd0e1}
body[data-theme=light] .hero{color:#102239}
body[data-theme=light] .weather,body[data-theme=light] .connection{background:#ffffffec;color:#162a3d;border-radius:18px;padding:4px 9px}
body[data-theme=light] .home-demo{color:#1f3b4b}
body[data-theme=light] .hero-actions button{background:transparent;color:#102239}
.thermostat,.service-grid button,.control-grid button{background:#0e1a22cc;border:1px solid #4dd0e155;color:#fbfdff}
.thermostat{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:122px;padding:8px 13px 7px;border-radius:22px}
.temperatures{display:flex;justify-content:space-between;align-items:flex-start}
.temperatures>div+div{display:flex;flex-direction:column;align-items:flex-end}
.temperatures span,.temperatures label{font-size:11px;line-height:1.5;margin:0;color:#a8b7c1}
.temperatures strong{display:block;font-size:clamp(35px,11vw,49px);line-height:1.05;font-weight:650}
.temperatures div+div strong{font-size:18px;color:var(--accent);line-height:1.2}
.temperatures .thermometer{display:grid;place-items:center;width:34px;height:34px;margin-bottom:4px;border-radius:50%;background:#4dd0e133}
.thermometer img{width:21px;height:21px;filter:brightness(0) saturate(100%) invert(73%) sepia(88%) saturate(394%) hue-rotate(133deg)}
.thermostat input[type=range]{appearance:none;-webkit-appearance:none;padding:0;border:0;background:transparent;width:100%;margin:1px 0 0;min-height:28px;touch-action:pan-y;opacity:1}
.thermostat input::-webkit-slider-runnable-track{height:7px;border-radius:4px;background:
 linear-gradient(90deg,#26c6da,#66bb6a,#ffee58,#ffa726) 0 center/var(--level) 100% no-repeat,#1c222b}
.thermostat input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:24px;height:24px;margin-top:-8.5px;border-radius:50%;border:2px solid #4dd0e1;background:#fff}
.thermostat input::-moz-range-track{height:7px;border-radius:4px;background:linear-gradient(90deg,#26c6da,#66bb6a,#ffee58,#ffa726) 0 center/var(--level) 100% no-repeat,#1c222b}
.thermostat input::-moz-range-thumb{width:21px;height:21px;border-radius:50%;border:2px solid #4dd0e1;background:#fff}
.thermostat.day{min-height:0;padding:4px 8px;display:grid;place-items:center}
.arc-gauge{position:relative;width:min(100%,290px);margin:auto}
.thermostat.day .arc{display:block;width:100%;height:auto;overflow:visible}
.arc-track,.arc-progress,.arc-hit{fill:none;stroke-width:11;stroke-linecap:round}
.arc-track{stroke:#dbe8ed}
.arc-progress{stroke:url(#temperature-color)}
.arc-ticks{fill:none;stroke:#3189a4;stroke-width:1.55;stroke-linecap:round}
.arc-thumb{fill:#fff;stroke:#16b5c7;stroke-width:2}
.arc-hit{stroke:transparent;stroke-width:34;pointer-events:stroke;touch-action:none;cursor:grab}
.arc-hit:active{cursor:grabbing}
.thermostat.day:has(input:disabled) .arc-hit{cursor:default}
.arc-copy{position:absolute;top:43%;left:18%;right:18%;text-align:center;pointer-events:none;color:#152840}
.arc-copy span{font-size:.72rem;letter-spacing:.1em;color:#52687a}
.arc-copy strong{display:block;font-size:clamp(29px,11vw,49px);line-height:1.05;font-weight:650}
.arc-copy label{display:block;margin:4px 0 0;color:#087c91;font-size:clamp(12px,4.4vw,16px);font-weight:600}
.thermostat.day #target{position:absolute;width:1px;height:1px;min-height:0;clip-path:inset(50%);overflow:hidden}
.thermostat.day:focus-within .arc-thumb{stroke-width:4}
.service-grid,.control-grid{display:grid;gap:8px}
.service-grid{grid-template-columns:repeat(3,minmax(0,1fr));--service-track:#1c222b}
.service-grid button{display:flex;text-align:left;align-items:center;gap:4px;min-width:0;padding:5px 5px;min-height:72px;border-radius:16px}
.service-grid button>span+span{min-width:0}
.service-grid strong,.service-grid small{display:block;line-height:1.3}
.service-grid strong{font-size:11px}
.service-grid small{font-size:12px}
.service-icon{position:relative;flex:0 0 auto;display:grid;place-items:center;width:45px;height:45px;color:#66bb6a}
.service-icon>svg{position:absolute;inset:0;width:100%;height:100%}
.service-icon>img{display:block;width:76%;height:76%;object-fit:contain}
.service-icon.soon,[data-level=soon] small{color:#ffa726}
.service-icon.late,[data-level=late] small{color:#ff6363}
[data-level=fresh] small{color:#66bb6a}
[data-level=unset] small{color:#a7bac5;font-size:8px}
.control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.control-grid button{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;text-align:left;
 gap:12px;padding:8px 10px;min-width:0;min-height:75px;border-radius:17px;background:#111e26;color:#fafcff}
.control-grid button:last-child{grid-column:span 2;min-height:67px;padding-inline:16px}
.control-grid button[data-action=heat]{--tile-accent:#ffa726;--tile-icon:#3a2a14}
.control-grid button:not([data-action=heat]){--tile-accent:#4dd0e1;--tile-icon:#0e3a42}
.control-grid button:disabled{opacity:.82}
.control-icon{position:relative;display:grid;place-items:center;background:var(--tile-icon);width:45px;height:45px;flex-shrink:0;border-radius:50%}
.control-icon img{width:84%;height:84%;object-fit:contain}
.control-grid button[aria-pressed=false] .control-icon img{opacity:.68}
.control-copy{position:relative;line-height:1.55;min-width:0}
.control-copy strong{display:block;font-size:14px}
.control-copy small{display:block;font-size:11px;color:#a4b4bf}
.control-grid button[data-missing=true] small{color:#ff6363}
.control-grid button[aria-pressed=true] small{color:var(--tile-accent)}
.control-end{position:relative;margin-left:auto;font-size:23px;line-height:1;color:#a1b0ba}
[data-action=air] .control-end{display:grid;place-items:center;border:1.5px solid #4dd0e188;border-radius:50%;width:48px;height:48px}
.control-end svg{width:19px;height:19px}
.tile-wave,.tile-bubbles{position:absolute;z-index:-1;pointer-events:none;color:var(--tile-accent)}
.tile-wave{bottom:-2px;left:0;width:100%;height:24px;opacity:.22}
.tile-bubbles{height:96%;width:70%;bottom:0;right:0;opacity:.49}
body[data-theme=light] .thermostat,body[data-theme=light] .service-grid button,body[data-theme=light] .control-grid button{
 background:#ffffffec;border-color:#fff;color:#152840;box-shadow:0 3px 8px #2b697324}
body[data-theme=light] .temperatures span,body[data-theme=light] .temperatures label,body[data-theme=light] .control-copy small{color:#4d6273}
body[data-theme=light] .service-grid{--service-track:#d5e4e9}
body[data-theme=light] .control-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
body[data-theme=light] .control-grid button{padding:5px;gap:4px;min-height:82px;overflow-wrap:anywhere}
body[data-theme=light] .control-grid button:last-child{grid-column:auto}
body[data-theme=light] .control-icon{width:clamp(27px,9vw,35px);height:clamp(27px,9vw,35px);background:#d9f6f9}
body[data-theme=light] .control-copy strong{font-size:11px}
body[data-theme=light] .control-copy small{font-size:9px}
body[data-theme=light] .control-end{display:none}
nav{z-index:4;left:12px;right:12px;bottom:calc(var(--bottom-gap) + env(safe-area-inset-bottom,0px));
 max-width:552px;height:var(--nav-height);border:1px solid var(--nav-edge);border-radius:24px;padding:0;gap:0;overflow:hidden;background:var(--nav-bg)}
nav button,body[data-theme=light] nav button{border:0;border-radius:0;background:transparent;color:var(--nav-muted);
 padding:4px 0 3px;min-width:0;height:100%;font-size:clamp(9px,2.7vw,10px);white-space:nowrap;
 display:flex;flex-direction:column;justify-content:space-between;align-items:center}
nav button[aria-pressed=true],body[data-theme=light] nav button[aria-pressed=true]{color:var(--accent);background:transparent}
nav button:focus-visible{outline-offset:-3px;border-radius:16px}
nav img{display:block;width:23px;height:23px;margin:0;filter:brightness(0) saturate(100%) invert(69%) sepia(10%) saturate(262%) hue-rotate(160deg)}
nav button[aria-pressed=true] img{filter:brightness(0) saturate(100%) invert(79%) sepia(66%) saturate(635%) hue-rotate(142deg)}
body[data-detail=service]{background:#080f14}
body[data-detail=service] nav{display:none}
.service-screen h1{display:flex;align-items:center;gap:7px;padding-top:8px}
.service-screen h1 button{background:transparent;border:0;color:var(--accent);font-size:25px;padding:3px 6px}
.detail-gauge{text-align:center;color:#66bb6a;padding:8px 0}
.detail-gauge .service-icon{width:min(43vw,140px);height:min(43vw,140px);margin:auto;--service-track:#1c222b}
.detail-gauge .service-icon img{width:38%;height:38%}
.detail-gauge h2{color:#fff;font-size:27px;margin:11px 0 1px}
.detail-gauge strong{font-size:24px}
.detail-gauge p{margin:3px 0 10px}
.service-screen dl{display:grid;grid-template-columns:1fr auto;gap:8px 4px;margin:7px 0}
.service-screen dd{margin:0;text-align:right;font-weight:650}
@media(max-width:350px){
 body[data-tab="0"]>main{padding-inline:13px}
 .home-stack{gap:7px}
 .thermostat{min-height:111px}
 .service-grid button{min-height:62px}
 .service-icon{width:38px;height:38px}
 .control-grid button{min-height:65px;gap:7px;padding:6px}
 .control-grid button:last-child{min-height:58px}
 .control-icon{width:36px;height:36px}
 .control-copy strong{font-size:12px}
 .control-copy small{font-size:10px}
}

.service-action,.service-reset-button{width:100%;margin-top:12px}
.service-action{display:flex;justify-content:space-between;align-items:center;text-align:left;gap:8px;
 padding:13px;border:1px solid #25353e;background:#101b22}
.service-action strong,.service-action small{display:block}
.service-action small{margin-top:4px;color:#a6bbc6}
.service-action>span+span,.service-reset-button{color:var(--accent)}
.service-reset-button{background:#11343c;border-color:var(--accent);font-weight:650;min-height:50px}
.service-overlay{position:fixed;inset:0;display:grid;place-items:center;z-index:20;background:#000a;padding:20px}
.service-dialog{width:min(100%,360px);padding:19px;border-radius:22px;background:#0d171c}
.service-dialog h2{margin:0 0 11px}
.service-dialog .wheel-column{width:85px;margin:auto;text-align:center}
.service-dialog-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:12px}
.service-dialog-actions button{background:transparent;border:0}
.service-dialog-actions button:last-child{color:var(--accent);font-weight:650}
body[data-theme=light] .service-action small{color:#425a67}
body[data-theme=light] .service-dialog{background:#f5fbfb}
body[data-theme=light] .service-dialog .wheel-column>span,body[data-theme=light] .service-dialog .schedule-wheel [role=option]{color:#49616d}
#service-feedback{color:var(--accent);font-size:.875rem;line-height:1.45;margin:2px 0 8px}
#service-feedback:empty{margin:0}
body[data-theme="light"][data-detail="service"]{background:#edf5f8}
body[data-theme="light"] .detail-gauge h2{color:#152840}
body[data-theme="light"] .detail-gauge .service-icon{--service-track:#d5e4e9}
