:root{color-scheme:dark;--gold:#c9b489;--line:#d8c28c35;--ink:#0a1616}*{box-sizing:border-box}body{margin:0;background:var(--ink);color:#ecebe1;font-family:Arial,Helvetica,sans-serif;font-size:13px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer;border:1px solid var(--line);background:#ffffff05;min-height:44px;padding:10px 8px;transition:background .25s,border-color .25s}button:hover{background:#b8b99223;border-color:#d9c99c99}button:focus-visible,a:focus-visible{outline:2px solid #a3e2df;outline-offset:3px}button.active,button.selected{background:#d9c18c20;border-color:#d9c18ca8}button:disabled{opacity:.35;cursor:not-allowed}a{color:inherit;text-decoration:none}.sidebar{width:210px;position:fixed;inset:0 auto 0 0;padding:16px;background:#071111;border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:8}.logo{height:78px;position:relative;overflow:hidden;display:block}.logo img{position:absolute;width:260px;left:-23px;top:-55px}.side-label{font-size:9px;letter-spacing:.24em;color:var(--gold);margin:21px 9px}.sidebar nav{display:flex;flex-direction:column;gap:8px}.sidebar nav button{display:flex;align-items:center;gap:12px;min-height:49px;text-align:left;font-size:11px;letter-spacing:.03em}.sidebar nav button span{color:var(--gold);font-size:9px}.sidebar nav button span:last-child{margin-left:auto}.side-bottom{margin-top:auto;font-size:10px;line-height:1.8;color:#c7cec8}.side-bottom small{font-size:8px;color:#94a09a}.side-bottom a{display:block;margin-top:15px;color:var(--gold);font-size:9px}.status-dot,.scene-top i{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#9bd6be;box-shadow:0 0 12px #b4e7cd55}main{margin-left:210px;padding:26px 28px 20px}header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:23px}.eyebrow{font-size:9px;letter-spacing:.22em;color:var(--gold);margin:0 0 12px}h1{font:400 clamp(27px,2.7vw,49px)/1.1 Georgia,serif;margin:0}.back{font-size:10px;color:var(--gold)}.experience-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;align-items:start}.scene-column{min-width:0}.scene{position:relative;isolation:isolate;width:100%;aspect-ratio:1672/941;overflow:hidden;border:1px solid var(--line);background:#102727}.pool-photo,.pool-effects{position:absolute;width:100%;height:100%;inset:0;object-fit:contain}.pool-effects{z-index:2}.scene .physical-garden{z-index:3}.scene .physical-garden svg{object-fit:contain}.scene .natural-water{z-index:4}.scene-top{position:absolute;top:0;left:0;right:0;padding:15px 17px;display:flex;justify-content:space-between;align-items:center;z-index:5;background:linear-gradient(#0008,transparent);gap:12px}.scene-top>span{font-size:8px;letter-spacing:.15em}.scene-top button{min-height:32px;padding:8px 12px;font-size:9px;background:#0c1e1dcc;backdrop-filter:blur(12px)}.scene-bottom{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:flex-end;justify-content:space-between;padding:45px 22px 20px;background:linear-gradient(transparent,#061210b0);z-index:5;pointer-events:none}.scene-bottom p{font-size:8px;letter-spacing:.17em;color:#dfcd9b;margin:0 0 9px}.scene-bottom strong{font:400 clamp(16px,1.6vw,29px) Georgia,serif}.scene-weather{font:30px Georgia,serif;text-align:right}.scene-weather small{font:7px Arial;letter-spacing:.12em;display:block;margin-top:7px}.scene-footer{display:flex;justify-content:space-between;gap:16px;font-size:9px;line-height:1.6;color:#a8bab0;padding:12px 0}.scene-footer span:last-child{color:#a5afa5}.scene-switches{display:flex;gap:8px;flex-wrap:wrap}.scene-switches button{min-height:40px;padding:9px 15px;font-size:10px}.controls{display:grid;gap:11px}.control-group{padding:17px;background:linear-gradient(130deg,#172823bd,#11201e99);border:1px solid var(--line);transition:border-color .3s,background .3s}.control-group.highlight{border-color:#d9c28ba8;background:#25352c}.control-group h2{font:400 9px Arial;letter-spacing:.15em;color:var(--gold);margin:0 0 16px}.readout{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;font-size:11px}.readout strong{font:24px Georgia;color:#d6e4d9}.progress{height:3px;background:#63726b50;margin-bottom:15px;overflow:hidden}.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#88bfb8,#dfd0a5)}.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.controls button{font-size:10px;min-height:43px}.control-group p{font-size:9px;color:#b1bdb2;line-height:1.6;margin:11px 0 0;min-height:14px}.mower-title{font-size:9px;letter-spacing:.05em;margin:20px 0 10px;color:#d9d5b8}.mower-title span{float:right;color:#9fb7ac;font-size:8px;letter-spacing:0}.swatch{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:6px}.warm{background:#e8ca8a;box-shadow:0 0 8px #e8ca8a99}.aqua{background:#8ddbe5;box-shadow:0 0 8px #8ddbe599}.immersive .sidebar,.immersive header,.immersive .controls,.immersive .scene-footer,.immersive .scene-switches{display:none}.immersive main{padding:0;margin:0;height:100dvh;display:grid;place-items:center;background:#040909}.immersive .experience-layout{display:block;width:min(100vw,177.7dvh)}.immersive .scene{border:0}.embedded main{padding:20px}.embedded header{margin-bottom:20px}.embedded .sidebar{width:180px}.embedded main{margin-left:180px}.embedded .experience-layout{grid-template-columns:minmax(0,1fr) 275px}.embedded .scene-footer{font-size:8px}.embedded .control-group{padding:12px}.embedded .controls{gap:8px}.embedded .control-group h2{margin-bottom:10px}.embedded .controls button{min-height:37px}.embedded .readout{margin-bottom:8px}.embedded .progress{margin-bottom:10px}.embedded .mower-title{margin-top:11px}.embedded h1{font-size:35px}@media(min-width:1600px){.experience-layout{grid-template-columns:minmax(0,1fr) 330px}.control-group{padding:20px}.scene{margin-top:0}}@media(max-width:1250px){.sidebar{width:180px;padding:12px}.sidebar nav button{font-size:10px}.logo img{width:235px;left:-29px;top:-49px}main{margin-left:180px;padding:22px 20px}.experience-layout{grid-template-columns:minmax(0,1fr) 270px;gap:13px}.control-group{padding:13px}.scene-top>span{font-size:7px}.scene-footer span:last-child{display:none}.scene-bottom{padding:40px 15px 15px}.scene-switches button{font-size:9px;padding:8px 10px}}@media(max-width:980px){.experience-layout{grid-template-columns:1fr}.controls{grid-template-columns:1fr 1fr}.scene{max-height:none}.sidebar{width:165px}main{margin-left:165px;padding:20px 16px}.sidebar nav button{gap:8px}.logo img{left:-33px}.side-label{font-size:8px}.scene-bottom strong{font-size:24px}}@media(max-width:620px){.sidebar{position:relative;width:auto;padding:6px 12px 12px;border-right:0;border-bottom:1px solid var(--line)}.logo{width:150px;height:54px}.logo img{width:235px;left:-34px;top:-60px}.side-label,.side-bottom{display:none}.sidebar nav{display:flex;flex-direction:row;overflow-x:auto;gap:6px}.sidebar nav button{min-height:42px;flex-shrink:0;padding:8px 11px;font-size:10px}.sidebar nav button span{display:none}main,.embedded main{margin:0;padding:19px 12px}.eyebrow{font-size:8px;letter-spacing:.12em}header{margin-bottom:17px}h1{font-size:29px}.back{font-size:8px}.controls{gap:8px}.control-group{padding:12px}.controls button{font-size:9px;min-height:44px;padding:7px 3px}.control-group h2{font-size:8px;line-height:1.6;margin-bottom:10px}.readout{font-size:10px}.readout strong{font-size:22px}.scene-top{padding:8px}.scene-top>span{font-size:6px;letter-spacing:.06em}.scene-top button{font-size:7px;min-height:30px;padding:6px}.scene-bottom{padding:25px 11px 10px}.scene-bottom strong{font-size:18px}.scene-bottom p{font-size:6px;margin-bottom:5px}.scene-weather{font-size:22px}.scene-weather small{font-size:5px}.scene-switches{gap:5px}.scene-switches button{flex:1;font-size:9px;padding:8px 4px}.mower-title{line-height:1.6}.mower-title span{display:block;float:none}.controls .three{gap:3px}.embedded .sidebar{width:auto}.embedded .experience-layout{grid-template-columns:1fr}.embedded h1{font-size:29px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.readout strong{white-space:nowrap;flex-shrink:0}.readout{gap:8px}@media(max-width:620px){.readout span{max-width:100px}.readout strong{font-size:20px}.control-group p{font-size:8px}}
.ph-panel{margin-top:20px;padding:22px;border:1px solid var(--line);background:linear-gradient(120deg,#19302a99,#10211f88)}.ph-panel.highlight{border-color:#d9c28ba8}.ph-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.ph-heading h2{font:400 clamp(21px,1.9vw,32px) Georgia,serif;margin:0}.ph-heading .eyebrow{font-size:8px;margin-bottom:10px}.ph-badge{border:1px solid #91c5a555;background:#79bf9410;color:#b3d8bd;padding:8px 10px;font-size:9px;white-space:nowrap}.ph-badge.warning{border-color:#ed937b88;color:#ffc0a8;background:#ae4b351a}.ph-grid{display:grid;grid-template-columns:180px minmax(0,1fr);gap:28px;margin-top:24px}.ph-reading>span{font-size:10px;color:#c1ccc3}.ph-reading strong{display:block;font:52px Georgia;color:#b6dbd0;margin:10px 0}.ph-reading.warning strong{color:#f0a48f}.ph-reading small{font-size:9px;color:#a7bcb2;line-height:1.7}.ph-steps{display:flex;gap:8px;flex-wrap:wrap}.ph-steps span{font-size:9px;border:1px solid #93bfa52d;padding:7px 10px;color:#a2b4aa}.ph-steps .active{border-color:#b2d2be88;color:#e2e9d9;background:#a4d4be12}.ph-process p{font-size:11px;line-height:1.6;margin:12px 0 0}.ph-process #ph-detail{font-size:9px;color:#a3b8ad;margin-top:5px;min-height:15px}.ph-trend{width:100%;height:55px;margin-top:7px}.ph-actions{display:flex;gap:18px;align-items:start;border-top:1px solid var(--line);padding-top:16px;margin-top:12px}.ph-actions>button{font-size:10px;min-width:125px}.ph-actions details{flex:1;font-size:10px;color:#b7c6b8}.ph-actions summary{cursor:pointer;padding:13px 0}.ph-actions details button{font-size:10px}.ph-actions details small{display:block;font-size:8px;line-height:1.6;margin-top:8px}.light-zone{padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid var(--line)}.light-zone .readout strong{font:12px Arial;color:#c6dccb}.light-caption{margin-bottom:10px!important}.immersive .ph-panel{display:none}@media(max-width:1250px){.light-zone .readout{font-size:10px}.ph-panel{padding:18px}.ph-grid{grid-template-columns:155px minmax(0,1fr);gap:18px}}@media(max-width:620px){.ph-panel{padding:16px}.ph-heading{align-items:start;flex-direction:column;gap:12px}.ph-grid{grid-template-columns:1fr;gap:16px;margin-top:17px}.ph-reading{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px}.ph-reading strong{grid-column:2;grid-row:1/3;margin:0;font-size:43px}.ph-reading small{grid-column:1}.ph-actions{flex-direction:column;gap:5px}.ph-actions details{width:100%}.light-zone .readout{gap:5px;align-items:start}.light-zone .readout span{max-width:none;overflow-wrap:anywhere;font-size:9px}.light-zone .readout strong{font-size:10px}.light-zone{padding-bottom:11px;margin-bottom:11px}.ph-actions .two{gap:6px}.ph-actions details button{min-height:44px}.ph-process #ph-detail{min-height:0}}
.led-controls{margin-top:16px}.led-heading{display:flex;flex-direction:column;gap:7px;margin-bottom:13px}.led-heading>span{font-size:8px;letter-spacing:.12em;color:var(--gold)}.led-heading strong{font-size:11px;font-weight:400;color:#c7dbd1}.led-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.led-palette button{min-height:58px;padding:8px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px}.led-palette button span{font-size:8px}.led-swatch{display:block;width:17px;height:17px;border-radius:50%;background:var(--led-color);box-shadow:0 0 10px color-mix(in srgb,var(--led-color) 40%,transparent);border:1px solid #ffffff55}.led-dimmer{display:grid;grid-template-columns:1fr auto;gap:9px;margin:17px 0}.led-dimmer label,.led-dimmer output{font-size:10px}.led-dimmer output{color:var(--gold)}.led-dimmer input{width:100%;grid-column:1/-1;accent-color:#c4b587;height:26px;cursor:pointer;margin:0}.led-note{font-size:8px!important}.led-controls>.two button{font-size:9px}@media(max-width:620px){.led-palette{grid-template-columns:repeat(2,minmax(0,1fr))}.led-palette button{min-height:53px}.led-palette button span{font-size:8px}.led-controls>.two{grid-template-columns:1fr}.led-heading>span{font-size:7px;line-height:1.6}.led-heading strong{font-size:10px}.led-dimmer input{height:32px}}
.led-panel{margin-top:20px;padding:18px 20px;background:linear-gradient(120deg,#172c2699,#10211f88);border:1px solid var(--line)}.led-panel.highlight{border-color:#d9c28ba8}.led-panel .led-controls{margin:0;display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:12px 20px}.led-panel .led-heading{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;justify-content:space-between;margin:0 0 4px}.led-panel .led-palette{grid-template-columns:repeat(8,minmax(0,1fr))}.led-panel .led-dimmer{margin:0;align-content:center}.led-panel .led-note{margin:0;align-self:center}.led-panel .led-controls>.two{grid-column:2;grid-row:3}.led-panel .led-note{grid-column:1;grid-row:3}.immersive .led-panel{display:none}@media(max-width:1250px){.led-panel .led-controls{grid-template-columns:1fr}.led-panel .led-palette{grid-template-columns:repeat(4,minmax(0,1fr))}.led-panel .led-controls>.two{grid-column:1;grid-row:auto}.led-panel .led-note{grid-column:1;grid-row:auto}}@media(max-width:620px){.led-panel{padding:15px}.led-panel .led-heading{align-items:start;flex-direction:column;gap:8px}.led-panel .led-palette{grid-template-columns:repeat(4,minmax(0,1fr))}.led-panel .led-controls>.two{grid-template-columns:1fr 1fr}.led-panel .led-note{line-height:1.6}}
.jet-panel{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:16px;padding:17px 20px;border:1px solid var(--line);background:#142823aa}.jet-panel .eyebrow{font-size:8px;margin-bottom:8px}.jet-panel strong{font:400 19px Georgia,serif}.jet-panel p:last-child{font-size:9px;color:#a8c1b2;margin:8px 0 0}.jet-strength{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;min-width:230px}.jet-strength button{font-size:10px;min-height:44px}.immersive .jet-panel{display:none}@media(max-width:950px){.jet-panel{align-items:start;flex-direction:column;gap:14px}.jet-strength{width:100%;min-width:0}}@media(max-width:620px){.jet-panel{padding:15px}.jet-panel strong{font-size:19px}.jet-panel .eyebrow{font-size:7px}}
.jet-panel.highlight{border-color:#d9c28ba8}
.cleaner-panel{margin-top:18px;padding:19px 20px;background:linear-gradient(130deg,#173031aa,#122420aa);border:1px solid var(--line)}.cleaner-panel.highlight{border-color:#d9c28ba8}.cleaner-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.cleaner-heading .eyebrow{font-size:8px;margin-bottom:8px}.cleaner-heading h2{font:400 25px Georgia,serif;margin:0}.cleaner-heading>strong{font-size:10px;font-weight:400;color:#b5d6cf}.cleaner-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:17px}.cleaner-actions button{font-size:11px;min-height:44px}.cleaner-progress{display:grid;grid-template-columns:1fr auto;gap:10px;font-size:9px;color:#b7cabe;margin-top:16px}.cleaner-progress strong{color:var(--gold);font-weight:400}.cleaner-progress .progress{grid-column:1/-1;margin:0}.cleaner-panel>p{font-size:9px;line-height:1.6;color:#9db6af;margin:12px 0 0}.immersive .cleaner-panel{display:none}@media(max-width:620px){.cleaner-panel{padding:15px}.cleaner-heading{align-items:start;flex-direction:column;gap:10px}.cleaner-heading h2{font-size:23px}.cleaner-actions button{font-size:9px;padding:8px 4px}.cleaner-heading .eyebrow{font-size:7px}}

/* Compact pH controls in the right column; the pool scene keeps its full width. */
.controls .ph-panel{margin:0;padding:16px;min-width:0}
.controls .ph-heading{align-items:flex-start;flex-direction:column;gap:10px}
.controls .ph-heading h2{font-size:21px;line-height:1.2;letter-spacing:0}
.controls .ph-heading .eyebrow{font-size:7px;line-height:1.6;margin-bottom:7px}
.controls .ph-badge{font-size:9px;padding:6px 8px}
.controls .ph-grid{grid-template-columns:1fr;gap:12px;margin-top:15px}
.controls .ph-reading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px}
.controls .ph-reading>span{font-size:9px;line-height:1.5}
.controls .ph-reading strong{grid-column:2;grid-row:1/3;font-size:39px;margin:0}
.controls .ph-reading small{grid-column:1;font-size:8px}
.controls .ph-steps{gap:4px;flex-wrap:nowrap}
.controls .ph-steps span{flex:1;text-align:center;padding:7px 3px;font-size:8px}
.controls .ph-process p{font-size:10px;margin-top:8px}
.controls .ph-process #ph-detail{font-size:8px;min-height:0;line-height:1.5}
.controls .ph-trend{height:36px;margin-top:3px}
.controls .ph-actions{flex-direction:column;gap:4px;padding-top:10px;margin-top:6px}
.controls .ph-actions>button,.controls .ph-actions details{width:100%;min-width:0}
.controls .ph-actions summary{font-size:9px;padding:10px 0}
@media(max-width:980px){.controls .ph-panel{grid-column:1/-1}.controls .ph-grid{grid-template-columns:160px minmax(0,1fr)}}
@media(max-width:620px){.controls .ph-panel{padding:14px}.controls .ph-grid{grid-template-columns:1fr}.controls .ph-heading h2{font-size:22px}}

/* All function panels share the compact right-hand control column. */
.controls>.cleaner-panel,.controls>.jet-panel,.controls>.led-panel{margin:0;padding:16px;min-width:0}
.controls .cleaner-heading{align-items:flex-start;flex-direction:column;gap:9px}
.controls .cleaner-heading h2{font-size:21px;line-height:1.2}
.controls .cleaner-heading .eyebrow,.controls .jet-panel .eyebrow{font-size:7px;line-height:1.5}
.controls .cleaner-actions{grid-template-columns:1fr 1fr;gap:6px;margin-top:13px}
.controls .cleaner-actions button:last-child{grid-column:1/-1}
.controls .cleaner-progress{margin-top:12px}
.controls .cleaner-panel>p{font-size:8px;line-height:1.6}
.controls .jet-panel{flex-direction:column;align-items:stretch;gap:13px}
.controls .jet-strength{min-width:0;width:100%;gap:5px}
.controls .jet-panel strong{font-size:20px}
.controls .jet-panel p:last-child{font-size:8px;line-height:1.6}
.controls .led-panel .led-controls{display:flex;flex-direction:column;gap:12px}
.controls .led-panel .led-heading{align-items:flex-start;flex-direction:column;gap:8px}
.controls .led-panel .led-palette{grid-template-columns:repeat(4,minmax(0,1fr))}
.controls .led-panel .led-palette button{padding:7px 2px;min-height:52px}
.controls .led-panel .led-palette button span{font-size:8px}
.controls .led-panel .led-dimmer{margin:0;width:100%}
.controls .led-panel .led-controls>.two{display:grid;grid-template-columns:1fr 1fr}
.controls .led-panel .led-note{line-height:1.6}
@media(min-width:981px){.scene-column{position:sticky;top:20px}}
@media(max-width:620px){.controls>.cleaner-panel,.controls>.jet-panel,.controls>.led-panel{grid-column:1/-1;padding:14px}}

.controls>.scene-switches{display:grid;grid-template-columns:1fr;gap:6px}.controls>.scene-switches button{width:100%;min-height:44px}
@media(max-width:980px){.controls>.scene-switches{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}}

.controls .jet-strength{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Desktop: three columns finish on the same baseline; controls scroll inside. */
@media(min-width:981px){
 body:not(.immersive){height:100dvh;overflow:hidden}
 body:not(.immersive) .sidebar{top:16px;bottom:16px;padding-top:0;padding-bottom:0}
 body:not(.immersive) .sidebar nav{min-height:0;overflow-y:auto;scrollbar-width:thin}
 body:not(.immersive) .side-bottom{padding-top:12px;flex-shrink:0}
 body:not(.immersive) main{height:100dvh;display:flex;flex-direction:column;padding-bottom:16px}
 body:not(.immersive) main>header{flex-shrink:0}
 body:not(.immersive) .experience-layout{flex:1;min-height:0;align-items:stretch}
 body:not(.immersive) .scene-column{position:relative;top:auto;min-height:0;height:100%}
 body:not(.immersive) .scene{height:100%;aspect-ratio:auto}
 body:not(.immersive) .scene>.pool-photo,body:not(.immersive) .scene>.pool-effects,body:not(.immersive) .scene>.physical-garden,body:not(.immersive) .scene>.natural-water{width:var(--scene-content-width,100%);height:var(--scene-content-height,100%);inset:auto;left:50%;top:50%;transform:translate(-50%,-50%)}
 body:not(.immersive) .controls{height:100%;min-height:0;overflow-y:auto;align-content:start;padding-right:5px;scrollbar-width:thin;scrollbar-color:#aa9870 #0a1616;overscroll-behavior:contain}
}

.controls>[hidden]{display:none!important}
.pool-info{border:1px solid var(--line);padding:16px;background:#10232088;min-width:0}
.pool-info .eyebrow{font-size:8px;margin-bottom:14px}
.pool-info-hint{font-size:11px;line-height:1.7;color:#c5d3c9;margin:0 0 15px}
.pool-info dl{margin:0}.pool-info dl>div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #d8c28c20;font-size:10px}
.pool-info dt{color:#aebfb4}.pool-info dd{margin:0;color:#deebe1;white-space:nowrap}
.pool-info small{display:block;margin-top:14px;font-size:8px;color:#9bad9f}
@media(max-width:980px){.controls>.pool-info{grid-column:1/-1}}

/* Caption sits in its own row, never over the photo or animation plane. */
.scene-column>.scene-bottom{position:static;inset:auto;z-index:auto;background:#0b1c1b;border:1px solid var(--line);border-top:0;padding:16px 18px;min-width:0;gap:18px;align-items:center;flex-shrink:0}
.scene-column>.scene-bottom strong{font-size:clamp(17px,1.65vw,26px);line-height:1.2;display:block}
.scene-column>.scene-bottom p{margin-bottom:7px;line-height:1.5}
.scene-column>.scene-bottom .scene-weather{font-size:26px;flex-shrink:0;line-height:1.1;white-space:nowrap}
.scene-column>.scene-bottom .scene-weather small{line-height:1.5;margin-top:5px}
@media(min-width:981px){body:not(.immersive) .scene-column{display:grid;grid-template-rows:minmax(0,1fr) auto}body:not(.immersive) .scene{min-height:0}}
@media(max-width:620px){.scene-column>.scene-bottom{padding:12px;gap:12px}.scene-column>.scene-bottom .scene-weather{font-size:22px}.scene-column>.scene-bottom .scene-weather small{font-size:6px}}
/* Restore the spacious control design, keeping the fixed non-scrolling area. */
@media(min-width:981px){
 body:not(.immersive) .controls{overflow:visible;padding-right:0;gap:11px;display:flex;flex-direction:column}
 .controls>.pool-info{margin-top:auto}
}
/* Smaller XPanels need less spacing while retaining full-size controls. */
@media(min-width:981px) and (max-height:850px){
 .controls>.led-panel,.controls>.ph-panel,.controls>.control-group{padding:12px}
 .controls .led-panel .led-controls{gap:8px}
 .controls .led-panel .led-heading{gap:5px;margin:0}
 .controls .led-panel .led-palette button{min-height:44px;gap:4px;padding:5px 2px}
 .controls .led-panel .led-note{display:none}
 .controls .led-dimmer{gap:4px!important}
 .controls .led-dimmer input{height:22px}
 .controls .control-group h2{margin-bottom:9px}
 .controls .light-zone{padding-bottom:8px;margin-bottom:8px}
 .controls .light-zone .readout{margin-bottom:7px}
 .controls .light-zone:last-of-type{margin:0;padding:0;border:0}
 .controls .light-zone~p{display:none}
 .controls>.pool-info{padding:10px 12px}
 .pool-info .eyebrow{margin-bottom:7px}
 .pool-info dl{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
 .pool-info dl>div{font-size:9px;padding:6px 0;gap:6px;flex-wrap:wrap}
 .pool-info small{display:none}
 .controls .ph-heading{gap:7px}
 .controls .ph-grid{gap:8px;margin-top:10px}
 .controls .ph-trend{height:26px}
 .controls .ph-actions{padding-top:8px;gap:0}
 .controls .ph-actions summary{padding:8px 0}
}
@media(min-width:981px) and (max-height:650px){
 .controls{gap:6px!important}
 .controls>.led-panel,.controls>.ph-panel,.controls>.control-group{padding:9px}
 .controls .led-panel .led-controls{gap:6px}
 .controls .led-panel .led-palette button{min-height:40px}
 .controls button{min-height:40px;padding:7px 5px}
 .controls .light-zone .readout{margin-bottom:5px}
 .controls .ph-heading h2{font-size:18px}
 .controls .ph-process #ph-detail{display:none}
 .controls .ph-trend{height:22px;margin:0}
}
/* Slim caption rail beneath the pool image. */
.scene-column>.scene-bottom{padding:8px 14px;gap:12px}
.scene-column>.scene-bottom strong{font-size:clamp(15px,1.15vw,19px);line-height:1.15}
.scene-column>.scene-bottom p{font-size:6px;line-height:1.3;letter-spacing:.13em;margin:0 0 4px}
.scene-column>.scene-bottom .scene-weather{font-size:21px;line-height:1}
.scene-column>.scene-bottom .scene-weather small{font-size:5px;line-height:1.2;margin-top:4px}
@media(max-width:620px){.scene-column>.scene-bottom{padding:8px 10px}.scene-column>.scene-bottom strong{font-size:15px}.scene-column>.scene-bottom .scene-weather{font-size:19px}}
@media(min-width:981px) and (max-height:650px){
 .controls>.pool-info{padding:7px 10px}
 .pool-info .eyebrow{display:none}
 .pool-info dl>div{padding:3px 0}
 .controls .control-group h2{margin-bottom:5px}
 .controls .led-dimmer input{height:18px}
 .controls .light-zone{padding-bottom:5px;margin-bottom:5px}
}
/* Close the right tile on the same baseline as the image and caption tile. */
@media(min-width:981px){
 body:not(.immersive) .controls{align-self:stretch;border-bottom:1px solid var(--line);padding-bottom:0}
 .controls>.pool-info{margin-bottom:0;border-bottom:0;flex-shrink:0}
}

/* Overview card starts level with the top of the image frame. */
.controls.overview-mode>.pool-info{margin-top:0;border-bottom:1px solid var(--line)}
@media(min-width:981px){body:not(.immersive) .controls.overview-mode{border-bottom:0}}

/* Right-hand cards follow one another without a stretched empty gap. */
.controls>.pool-info{margin-top:0;margin-bottom:0;border-bottom:1px solid var(--line)}
@media(min-width:981px){
 body:not(.immersive) .controls{justify-content:flex-start;border-bottom:0}
 .controls>.pool-info{margin-top:0;border-bottom:1px solid var(--line)}
}
