/* Bravo Juliet: a shared, lightweight control surface with eleven material palettes. */
:root{--paper:#f5eddb;--card:#fff9eb;--ink:#233e3b;--muted:#53655d;--line:#b9b59b;--teal:#28756d;--orange:#aa432d;--gold:#c58b28;--ivory:#fff5df;--wood:#85512e;--frame:#955c35;--panel:#fdf6e6;--active:#d7e8d9;--accent:#28756d;--glow:transparent;--art-teal:#63a99e;--art-coral:#cc6748;--art-gold:#d7a344;--art-cream:#f7e8c9;--art-dark:#453f31;--shadow:0 3px 8px #37271913;color-scheme:light}
:root[data-theme=console]{--frame:#744322;--paper:#e8dbc4;--panel:#f3e5cb;--card:#fff1d8;--accent:#80601d;--teal:#71601f;--active:#eed396}
:root[data-theme=space]{--frame:#697b86;--paper:#e3eced;--panel:#f2f8f6;--card:#eef7f5;--ink:#18313e;--accent:#146c83;--teal:#146c83;--active:#c8e9ed;--orange:#ae4929;--art-teal:#65bdc7;--art-dark:#234355}
:root[data-theme=touring]{--frame:#b5a68c;--paper:#e6ded0;--panel:#f8efdd;--card:#fff5e3;--accent:#216d63;--active:#cde3d2;--art-teal:#4a9281;--art-coral:#d26b39}
:root[data-theme=listening]{--frame:#776147;--paper:#dcded7;--panel:#f1f0e8;--card:#faf8ed;--accent:#8c5b1f;--teal:#6f5927;--active:#eee0af;--art-teal:#738d82}
:root[data-theme=desert]{--frame:#795b6e;--paper:#f5dacc;--panel:#fff0e5;--card:#fff7e9;--ink:#53344b;--accent:#a13f62;--teal:#a13f62;--active:#f3d6ce;--art-teal:#5aabb0;--art-coral:#d86b73}
:root[data-theme=observatory]{--frame:#a78c55;--paper:#e4e3ee;--panel:#f5f1e7;--card:#fffaec;--ink:#333c64;--accent:#4c5388;--teal:#4c5388;--active:#e0deef;--art-teal:#7187bb;--art-coral:#ad7e71}
:root[data-theme=motel]{--frame:#b35b40;--paper:#eee6d9;--panel:#fff3de;--card:#fff9eb;--accent:#a43f31;--teal:#287d7b;--active:#cce4df;--art-coral:#d94e3b;--art-teal:#54b0ac}
:root[data-theme=glass]{--frame:#7b826a;--paper:#e6e8da;--panel:#f6f8ed;--card:#fdfff4;--accent:#456e4d;--teal:#456e4d;--active:#d7e8cb;--art-teal:#8aab80;--art-coral:#c07848}
:root[data-theme=ocean]{--frame:#9a8554;--paper:#dde9df;--panel:#eff5e7;--card:#f8f9e9;--accent:#226a64;--teal:#226a64;--active:#cce4d8;--art-teal:#5dafa2}
:root[data-theme=paper]{--frame:#b2a78d;--paper:#ede6d4;--panel:#f8f2e3;--card:#f8f2e3;--accent:#8c442f;--teal:#416f65;--active:#dddcc3;--shadow:none}
html{background:var(--paper)}body{background:var(--paper);color:var(--ink)}
/* Override the former cabinet without changing device behavior. */
.shell{display:block;max-width:1440px;margin:12px auto;padding:8px;border:7px solid var(--frame);border-radius:25px;background:var(--panel);min-height:calc(100dvh - 24px);box-shadow:0 8px 24px #24170920,inset 0 0 0 1px #e4c89b}
.shell aside{display:flex;flex-direction:row;align-items:center;gap:18px;padding:12px 18px;height:auto;position:static;border:0;border-bottom:1px solid var(--line);background:var(--panel);box-shadow:none;border-radius:14px 14px 0 0}
.shell .brand{flex-shrink:0;padding:8px 18px;background:linear-gradient(130deg,#ffefd1,#e7c483);color:#392a20;border:1px solid #9d793e;border-radius:40px;font:bold 28px Georgia,serif;letter-spacing:-.6px;text-shadow:none;box-shadow:inset 0 0 0 3px #fff3d261}
.shell .brand span{white-space:nowrap}.brand small:empty{display:none}.shell #nav{display:flex;flex:1;gap:6px;margin:0;padding:0;position:static;background:none;border:0;box-shadow:none}
.shell #nav button{display:flex;flex:1;flex-direction:column;gap:0;justify-content:center;align-items:center;text-align:center;min-width:66px;min-height:78px;padding:3px 10px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);box-shadow:none}
.shell #nav button.active{background:var(--active);border-color:var(--accent);box-shadow:inset 0 -3px var(--accent),0 0 10px var(--glow)}
.mid-art{width:74px;height:74px;display:block;overflow:visible;flex-shrink:0}.shell #nav .mid-art{width:53px;height:47px}.shell #nav span{font-size:13px;line-height:20px}
.shell .aside-bottom{display:flex;gap:4px;margin:0}.shell .aside-bottom button{padding:7px 9px;font-size:11px;min-height:44px;background:none;color:var(--ink);border:1px solid var(--line)}.sidebar-art,.shell .landscape,.shell footer{display:none}
.shell main{background:var(--panel);padding:14px 18px 18px;border-radius:0 0 14px 14px}.shell header{min-height:44px;margin-bottom:12px;padding:0 0 10px;border-bottom:1px solid var(--line);align-items:center;gap:8px}.shell header h1{font:normal 25px Georgia,serif;letter-spacing:-.5px;margin:0;color:var(--ink)}.shell header p:empty,.shell header .eyebrow:empty{display:none}.shell .header-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end}.shell .header-actions button{min-height:36px;padding:5px 10px;font-size:12px;color:var(--ink);border:1px solid var(--line);background:var(--card)}
.shell .badge{color:var(--ink);background:var(--active);border-color:var(--line);box-shadow:none;font-size:10px}.shell .dashboard,.shell .page-grid{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.shell .card{padding:14px;border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow);border-radius:15px;min-width:0}.shell .card-head{margin-bottom:10px}.shell h2{font:normal 25px Georgia,serif;letter-spacing:-.5px;color:var(--ink)}.shell .card-head h2{font-size:25px}.shell .section-title{margin-bottom:7px}.shell .section-title h2{font-size:20px}.shell .section-title small{color:var(--muted);font-size:10px}.shell .scenes{gap:7px;margin-bottom:5px}.shell .scene{min-height:44px;padding:8px 12px;background:var(--card);color:var(--ink);border:1px solid var(--line);box-shadow:none;border-radius:9px}.shell .scene:hover{background:var(--active)}.shell .scene small{color:var(--muted);font-size:10px}.shell .scene .glyph{color:var(--accent);font-size:18px}.shell .scene-manage{font-size:11px;margin-bottom:12px;display:inline-block;color:var(--accent)}
.shell .rooms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shell .room{position:relative;padding:8px 48px 8px 6px;background:var(--panel);border:1px solid var(--line);border-radius:10px;min-width:0;box-shadow:none}.shell .room.is-on{background:var(--active);border-color:var(--line);box-shadow:none}.shell .room-open{display:grid;grid-template-columns:70px 1fr;grid-template-rows:1fr 1fr;align-items:center;column-gap:8px;text-align:left;width:100%;min-height:90px;padding:0;border:0;color:var(--ink);background:none}.shell .room-icon{grid-row:1/3;margin:0;line-height:1}.shell .room-open strong{align-self:end;font-size:14px;line-height:1.25;overflow-wrap:anywhere;font-weight:650}.shell .room-open small{align-self:start;margin-top:5px;font-size:13px;color:var(--muted)}.shell .room .switch{position:absolute;top:8px;right:5px;width:38px;height:38px;min-height:38px;border-radius:50%;border:1px solid var(--line);color:var(--ink);background:var(--card);padding:0;box-shadow:none}.shell .room .switch::before{content:'⏻';position:static;display:block;width:auto;height:auto;background:none;transform:none;font-size:24px;line-height:32px}.shell .room .switch.on{background:var(--accent);color:var(--panel);border-color:var(--accent);box-shadow:0 0 8px var(--glow)}.room-expand{position:absolute;right:5px;bottom:5px;width:38px;height:38px;min-height:38px;padding:0;border:0;font-size:20px;color:var(--ink)}
.shell .tools button,.shell .card-foot button{color:var(--ink)}.shell .lighting-tabs{position:static;display:flex;flex-wrap:wrap;gap:5px;margin:0 0 10px;padding:0;border:0;background:none;box-shadow:none}.shell .lighting-tabs a{font-size:11px;color:var(--ink);border:1px solid var(--line);background:var(--panel);padding:7px 9px;border-radius:8px;text-decoration:none;min-height:32px}
.shell .round,.shell .pill{color:var(--ink);background:var(--active);border:1px solid var(--line);box-shadow:none}.shell .temperature{color:var(--ink);text-shadow:none;font-size:50px}.shell .temperature small{font-size:9px;color:var(--muted)}.adjust-value{border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);padding:10px;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y;cursor:ns-resize}.adjust-value [data-adjust-readout]{font:40px Georgia,serif}.adjust-value small{display:block;font:10px -apple-system,sans-serif;color:var(--muted);margin-top:5px}.adjust-value.value-adjusting{outline:2px solid var(--accent);background:var(--active);box-shadow:0 0 12px var(--glow)}.adjust-value.value-saving::after{content:'Saving…';display:block;font:11px sans-serif;color:var(--muted)}.volume-control{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.volume-control .adjust-value{min-width:110px}.volume-control [data-adjust-readout]{font-size:29px}.device-actions{display:flex;align-items:center;gap:5px}.device-actions button{background:var(--panel);color:var(--ink);padding:7px 12px}.device-illustration{display:flex;align-items:center;gap:10px;min-width:0}.device-illustration .mid-art{width:90px;height:80px}.device-illustration strong{overflow-wrap:anywhere}.device-illustration p{margin:4px 0;color:var(--muted);font-size:12px}.shell .media-art{display:none}.shell .media-row{gap:8px}.shell .remote-launcher{min-height:55px;padding:8px 10px;margin-top:12px;background:var(--panel);color:var(--ink);border:1px solid var(--line);box-shadow:none}.shell .remote-launcher small,.shell .launch-arrow{color:var(--muted)}.remote-mini .mid-art{width:53px;height:45px}.shell .entry .lock-icon{background:none}.shell .entry .lock-icon .mid-art{width:64px;height:70px}.shell .ac-options select,.shell .sensor-card select,.shell .pause-all select{background:var(--panel);color:var(--ink);border-color:var(--line)}.shell .card-foot{color:var(--muted);font-size:12px;border-color:var(--line)}.muted{color:var(--muted)}
body:has(.shell) dialog{background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:20px;box-shadow:0 16px 50px #0005;padding:18px;max-width:calc(100vw - 24px)}dialog::backdrop{background:#07151d9c;backdrop-filter:none}.sheet-title{color:var(--ink)}.appearance-controls{display:grid;gap:14px;margin-top:15px}.appearance-controls label{display:grid;gap:6px;font-size:13px}.appearance-controls select,.appearance-controls input{padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);min-height:44px;width:100%}.appearance-close{float:right}.shell .form input:not([type=checkbox]),.shell .form select{background:var(--panel);color:var(--ink);border-color:var(--line)}.shell button.primary{background:var(--accent);color:var(--panel);border-color:var(--accent)}.shell .room-tabs{background:var(--panel);border-color:var(--line)}.shell .room-tabs button{color:var(--ink)}.shell .room-tabs button[aria-selected=true]{background:var(--active);color:var(--ink);box-shadow:none}.shell .sensor-readings,.shell .pause-all,.shell .invite-output{background:var(--panel);border-color:var(--line);color:var(--ink)}.shell .sensor-readings dd,.shell .sensor-readings dt{color:var(--ink)}#sheet-status{color:var(--muted)}body:has(.shell) #toast{background:var(--ink);color:var(--panel);border:1px solid var(--line)}.shell .notice{background:var(--active);color:var(--ink);border-color:var(--line)}.shell .hold-feedback{background:var(--active);color:var(--ink);border-color:var(--accent)}
:root[data-theme=console] .shell,:root[data-theme=listening] .shell{border-width:12px;border-color:var(--frame);border-bottom-width:21px}
:root[data-theme=space] .shell{border-radius:19px;border-color:var(--frame);box-shadow:inset 0 0 0 2px #afbac0,0 7px 20px #0002}:root[data-theme=space] .card{border-radius:10px}:root[data-theme=space] .shell .brand{font:italic bold 26px -apple-system,sans-serif;border-radius:5px;background:var(--panel);color:var(--ink);box-shadow:none;border-color:var(--line)}
:root[data-theme=touring] .shell{border-radius:40px;border-width:8px;border-bottom:12px solid #7e5336}:root[data-theme=touring] .shell .card{border-radius:22px}:root[data-theme=touring] .shell .brand{font-style:italic}:root[data-theme=touring] .adjust-value{border-radius:60px 60px 15px 15px;border-width:3px}:root[data-theme=touring] .scene{border-bottom:4px solid var(--gold)}
:root[data-theme=listening] .shell aside{border-bottom:5px double var(--line)}:root[data-theme=listening] .card{border-radius:5px}:root[data-theme=listening] .shell .scene{border-radius:3px;border-bottom:4px solid var(--gold)}
:root[data-theme=observatory] .adjust-value,:root[data-theme=ocean] .adjust-value{border-radius:50%;aspect-ratio:1;min-width:110px;display:grid;place-content:center;border:3px double var(--line)}:root[data-theme=observatory] .shell{border-color:#958159}:root[data-theme=ocean] .shell .card{border-radius:25px;border-width:2px}
:root[data-theme=motel] .shell .brand{border-radius:4px 25px 4px 25px;background:var(--active);color:var(--ink)}:root[data-theme=glass] .shell .room{border-radius:2px;border-left:4px solid var(--accent)}:root[data-theme=paper] .shell{border-width:2px;box-shadow:none;border-radius:4px}:root[data-theme=paper] .shell .card,:root[data-theme=paper] .shell .room,:root[data-theme=paper] .shell #nav button{border-radius:2px;box-shadow:none}:root[data-theme=paper] .shell .brand{background:none;box-shadow:none;color:var(--ink);border:0}
button, a, input{transition:background-color 90ms ease,border-color 90ms ease,box-shadow 90ms ease}dialog[open]{animation:panel-in 150ms ease-out}@keyframes panel-in{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
/* Lighting studio shares appearance settings without changing its working components. */
body:has(.app){--bg:var(--paper);--surface:var(--card);--surface-2:var(--panel);--text:var(--ink);--text-2:var(--muted);--border:var(--line);background:var(--paper);color:var(--ink)}body:has(.app) .app{background:var(--panel);border-color:var(--frame)}body:has(.app) .panel,body:has(.app) .dash-room,body:has(.app) dialog{background:var(--card);color:var(--ink);border-color:var(--line)}body:has(.app) header{background:var(--panel)}.lighting-appearance{margin:8px 12px;color:var(--ink);background:var(--card);border:1px solid var(--line);padding:7px 12px;border-radius:8px;min-height:40px}
@media(max-width:1000px){.shell aside{gap:9px;padding:10px}.shell .brand{font-size:23px;padding:9px 12px}.shell .aside-bottom{flex-direction:column}.shell .aside-bottom button{font-size:10px}.shell .room-open{grid-template-columns:53px 1fr}.shell .room-icon .mid-art{width:53px;height:65px}}
@media(max-width:760px){.shell{margin:0;border:4px solid var(--frame);padding:3px;min-height:100dvh;border-radius:0}.shell aside{padding:8px;gap:8px;border-radius:0;flex-wrap:nowrap}.shell .brand{font-size:23px;padding:8px 13px;max-width:calc(100% - 100px)}.shell .aside-bottom{flex-direction:row;margin-left:auto}.shell .aside-bottom button{font-size:0;padding:6px;min-width:40px;min-height:40px}.shell .aside-bottom button span{font-size:0}.shell .aside-bottom button::first-letter{font-size:19px}.shell #nav{position:fixed;bottom:0;left:0;right:0;z-index:20;padding:5px 5px max(5px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel);gap:4px}.shell #nav button{min-height:62px;min-width:0;border-radius:8px;padding:0 3px}.shell #nav .mid-art{height:37px;width:43px}.shell #nav span{font-size:11px;line-height:17px}.shell main{padding:10px 8px calc(90px + env(safe-area-inset-bottom));border-radius:0}.shell header{min-height:38px;padding-bottom:8px;gap:3px}.shell header h1{font-size:21px}.shell .header-actions button{font-size:10px;padding:5px 7px;min-height:34px}.shell .header-actions .badge{display:none}.shell .dashboard,.shell .page-grid{grid-template-columns:1fr;gap:9px}.shell .card{padding:11px}.shell .card-head h2{font-size:23px}.shell .room-open{grid-template-columns:52px 1fr;column-gap:4px;min-height:85px}.shell .room-icon .mid-art{width:52px;height:65px}.shell .room{padding-right:38px;padding-left:3px}.shell .room-open strong{font-size:12px}.shell .room-open small{font-size:12px}.shell .room .switch,.shell .room-expand{width:36px;height:40px;min-height:40px;right:1px}.shell .room .switch{top:4px}.shell .room-expand{bottom:3px}.shell .room .switch::before{font-size:22px;line-height:35px}.shell .scene{padding:7px 8px;font-size:11px;min-height:44px}.shell .scene small{font-size:9px}.shell .scenes{grid-template-columns:repeat(2,minmax(0,1fr))}.shell .section-title h2{font-size:18px}.shell .scene-manage{font-size:10px}.shell .lighting-tabs{gap:4px}.shell .lighting-tabs a{font-size:10px;padding:6px 7px}.shell .temperature{font-size:44px}.shell .device-illustration .mid-art{width:72px;height:65px}.shell .volume-control{margin-top:8px}.shell .remote-sheet{width:calc(100% - 16px);padding:10px 12px;max-height:96dvh}.remote-window-link{font-size:12px}.shell .remote-launcher strong{font-size:18px}:root[data-theme=console] .shell,:root[data-theme=listening] .shell{border-width:4px}:root[data-theme=touring] .shell{border-radius:0;border-width:4px}.appearance-controls .two-fields{gap:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Neutralize former cabinet details before applying the selected finish. */
.shell .room-icon{background:none;border-radius:0}.shell .room-icon svg{width:70px;height:74px}.shell .switch::after{display:none}.shell header>div:first-child{display:block}.shell main{box-shadow:none}.shell .room small{color:var(--muted)}
@media(max-width:1000px){.shell .room-icon svg{width:53px;height:65px}}
.shell h1,.shell h2,.shell .card-head h2{text-shadow:none}.shell header>div:first-child{margin-right:auto}.shell .scene:nth-child(n){background:var(--card);color:var(--ink)}.shell .room:nth-child(n){background:var(--panel)}.shell .room.is-on:nth-child(n){background:var(--active)}.shell .card-foot{flex-wrap:wrap}.shell .room-open:focus-visible{outline-offset:1px}
/* Approved Palm Springs composition: painted objects, turquoise panorama, ivory panels. */
.painted-art{display:inline-block;flex-shrink:0;width:96px;height:96px;background-image:url('/palm-atlas.png');background-size:400% 300%;background-repeat:no-repeat;vertical-align:middle}
.art-0{background-position:0 0}.art-1{background-position:33.3333% 0}.art-2{background-position:66.6667% 0}.art-3{background-position:100% 0}.art-4{background-position:0 50%}.art-5{background-position:33.3333% 50%}.art-6{background-position:66.6667% 50%}.art-7{background-position:100% 50%}.art-8{background-position:0 100%}.art-9{background-position:33.3333% 100%}.art-10{background-position:66.6667% 100%}.art-11{background-position:100% 100%}
.shell{border:10px solid #91552b;background:var(--panel);padding:5px;outline:1px solid #caa15e;outline-offset:-3px;box-shadow:inset 0 0 0 2px #d7b16c,0 5px 10px #44240d20}
.shell aside{position:relative;display:block;padding:0;border-radius:14px 14px 0 0;border:1px solid #aa803d;background:var(--panel);overflow:hidden}
.shell aside::before{content:'';display:block;height:150px;background:#83c3ad url('/palm-hero.png') center 53%/cover no-repeat;border-bottom:1px solid #b49150}
.shell .brand{position:absolute;top:19px;left:24px;border:2px solid #af8032;outline:1px solid #f9e5ac;outline-offset:2px;padding:7px 22px;box-shadow:inset 0 0 0 3px #fff5d4,0 3px 2px #6d4a2230;border-radius:35px;font:700 35px Georgia,serif;letter-spacing:-1.3px;background:linear-gradient(135deg,#fff4d8,#f2dba6);color:#462519}
.shell .brand::before,.shell .brand::after{content:'';position:absolute;top:18px;width:23px;height:14px;border-top:2px solid #ac7e33;border-bottom:2px solid #ac7e33;box-shadow:inset 0 5px #e0b45f,inset 0 7px #9f732e}.shell .brand::before{left:-34px}.shell .brand::after{right:-34px}
.theme-badge{position:absolute;top:14px;right:17px;min-height:29px;padding:5px 12px;border:1px solid #a47d39;background:#fff2d3;color:#4e331e;font:12px Georgia,serif;border-radius:25px;box-shadow:inset 0 0 0 2px #f3d89d}
.shell #nav{padding:7px 12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;background:linear-gradient(110deg,var(--card),var(--panel));border:0}
.shell #nav button{display:flex;flex-direction:row;gap:10px;border:0;border-right:1px solid var(--line);border-radius:0;padding:1px 12px;min-height:62px;background:none;box-shadow:none}.shell #nav button:last-child{border-right:0}.shell #nav button.active{background:var(--active);border-radius:9px;box-shadow:none}.shell #nav .painted-art{width:72px;height:62px}.shell #nav span:not(.painted-art){font:bold 21px Georgia,serif}
.shell main{border:0;padding:12px 12px 15px}.shell main header{min-height:30px;margin-bottom:8px;padding-bottom:7px}.shell header h1{font-size:19px}.shell .header-actions{align-items:center}.shell .header-actions .aside-bottom{flex-direction:row;gap:3px;margin:0}.shell .aside-bottom button{font-size:11px;padding:4px 7px;min-height:30px}.shell .card{background:linear-gradient(110deg,var(--card),var(--panel));border:1px solid var(--line);box-shadow:none;border-radius:14px;padding:13px}.shell .card-head h2{font-size:29px;font-weight:600;letter-spacing:-1px}.shell .card-head{border:0;padding:0;margin-bottom:10px}.shell .dashboard{grid-template-areas:'lights media' 'entry climate';grid-template-columns:1.08fr 1fr;align-items:stretch}.shell .dashboard [data-section=lights]{grid-area:lights}.shell .dashboard [data-section=media]{grid-area:media}.shell .dashboard [data-section=entry]{grid-area:entry}.shell .dashboard [data-section=climate]{grid-area:climate}
.shell .dashboard.custom-order{display:grid;grid-template-areas:none}.shell .dashboard.custom-order [data-section]{grid-area:auto}
.shell .room{border:1px solid var(--line);background:transparent;padding:5px 43px 5px 2px}.shell .room.is-on:nth-child(n){background:transparent;border-color:var(--line)}.shell .room-open{grid-template-columns:86px 1fr;min-height:99px;gap:0 5px}.shell .room-icon{height:86px}.shell .room-icon .painted-art{width:86px;height:86px}.shell .room-open strong{font:bold 19px Georgia,serif;color:var(--ink)}.shell .room-open small{font:bold 18px Georgia,serif;color:var(--ink)}.shell .room .switch{width:34px;height:34px;min-height:34px;right:5px;top:29px;border-color:var(--teal)}.shell .room .switch.on{background:#569a85;color:#fff8e6}.shell .room .switch::before{font-size:23px;line-height:30px}.room-expand{font-size:16px;min-height:28px;height:28px;width:30px;bottom:1px;right:5px;opacity:.7}
.shell .card[data-section=lights] .scenes{grid-template-columns:repeat(4,minmax(0,1fr));margin:13px 0 0}.shell .scene:nth-child(n){justify-content:center;text-align:center;background:none;padding:8px 5px;font:600 15px Georgia,serif;min-height:40px;border-radius:13px}.shell .scene.active{background:#569a85;color:white;outline:0}.shell .scene small{display:none!important}.shell .scene .glyph{display:none}.shell .scene-manage{font:11px -apple-system,sans-serif;margin:7px 0 0}.shell .lighting-tabs{margin-bottom:7px}.shell .lighting-tabs a{min-height:26px;padding:4px 7px}
.header-clock{position:absolute;right:17px;top:52px;display:flex;align-items:center;gap:9px;background:#fff3dfe8;border:1px solid #af8d50;border-radius:14px;padding:3px 12px 3px 5px;color:#493321}.starburst-clock{width:70px;height:70px}.clock-time{display:block;font:bold 23px Georgia,serif}.clock-date{display:block;font:11px -apple-system,sans-serif;margin:3px 0}.header-clock small{display:block;font:9px -apple-system,sans-serif;letter-spacing:.2px}
#weather-strip{margin:0 0 10px}#weather-strip button{display:flex;align-items:center;gap:12px;width:100%;padding:6px 12px;min-height:54px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:11px;text-align:left}.weather-symbol{font-size:32px;line-height:1;color:var(--gold)}.weather-current{font:bold 29px Georgia,serif}.weather-current small{font:8px -apple-system,sans-serif;letter-spacing:1px}.weather-description strong{font-size:12px}.weather-description small,.weather-high-low small{display:block;margin-top:3px;font-size:10px;color:var(--muted)}.weather-current small{display:block}.weather-high-low{margin-left:auto;font-size:12px}.weather-more{font-size:11px;white-space:nowrap;margin-left:auto}.forecast-current{display:flex;align-items:center;gap:14px;margin:16px 0}.forecast-current>strong{font:50px Georgia,serif}.forecast-current small{display:block;font-size:11px;line-height:1.5;margin-top:5px}.forecast-hours{display:flex;gap:7px;overflow-x:auto;margin:12px 0 20px;padding-bottom:7px}.forecast-hours>div{min-width:68px;border:1px solid var(--line);border-radius:10px;padding:10px 5px;display:grid;gap:7px;text-align:center;font-size:11px}.forecast-hours span{font-size:23px;color:var(--gold)}.forecast-hours small{font-size:10px;color:var(--muted)}.forecast-days{margin-top:10px}.forecast-days>div{display:grid;grid-template-columns:95px 1fr 78px;gap:6px;align-items:center;border-top:1px solid var(--line);padding:11px 0;font-size:12px}.forecast-days small{grid-column:2/4;color:var(--muted);font-size:10px}
@media(max-width:1050px) and (min-width:761px){.shell .room-open{grid-template-columns:62px 1fr;min-height:90px}.shell .room-icon .painted-art{width:62px;height:78px}.shell .room-open strong{font-size:16px}.shell .room-open small{font-size:16px}.shell #nav span:not(.painted-art){font-size:19px}}
@media(max-width:760px){.shell{border:5px solid #91552b;padding:2px;border-radius:0;outline-offset:-2px}.shell aside{border-radius:10px 10px 0 0;overflow:visible}.shell aside::before{height:146px;border-radius:9px 9px 0 0;background-position:58% 55%}.shell .brand{top:14px;left:50%;transform:translateX(-50%);font-size:25px;letter-spacing:-.8px;padding:6px 15px;white-space:nowrap;max-width:none}.shell .brand::before,.shell .brand::after{width:18px;top:13px}.shell .brand::before{left:-26px}.shell .brand::after{right:-26px}.theme-badge{position:absolute;top:99px;right:7px;padding:4px 9px;font-size:10px;min-height:26px}.header-clock{top:64px;left:7px;right:auto;padding:1px 7px 1px 2px;gap:3px;border-radius:10px}.starburst-clock{width:53px;height:53px}.clock-time{font-size:18px}.clock-date{font-size:9px;margin:2px 0}.header-clock small{font-size:8px}.shell #nav{position:fixed;padding:4px 5px max(6px,env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);gap:2px}.shell #nav button{display:flex;flex-direction:column;gap:0;min-height:61px;padding:0 2px;border:0}.shell #nav .painted-art{width:45px;height:40px}.shell #nav span:not(.painted-art){font:600 12px Georgia,serif}.shell main{padding:8px 6px calc(85px + env(safe-area-inset-bottom))}.shell main header{min-height:30px;gap:4px}.shell header h1{font-size:18px}.shell .header-actions{gap:3px}.shell .header-actions button{min-height:28px;font-size:9px;padding:4px 6px}.shell .header-actions .aside-bottom button{min-width:29px;width:29px;padding:2px;font-size:0}.shell .header-actions .aside-bottom button span{font-size:0}.shell .header-actions .aside-bottom button::first-letter{font-size:16px}.shell .dashboard{display:flex;flex-direction:column;gap:9px}.shell .dashboard [data-section=lights]{order:0}.shell .dashboard [data-section=media]{order:1}.shell .dashboard [data-section=climate]{order:2}.shell .dashboard [data-section=entry]{order:3}.shell .dashboard.custom-order [data-section]{order:initial}.shell .card{padding:10px}.shell .card-head h2{font-size:25px}.shell .room{padding:2px 32px 2px 1px}.shell .room-open{grid-template-columns:49px 1fr;min-height:77px;gap:0 3px}.shell .room-icon{height:65px}.shell .room-icon .painted-art{width:49px;height:65px}.shell .room-open strong{font-size:13px;line-height:1.2}.shell .room-open small{font-size:15px;margin-top:4px}.shell .room .switch{right:1px;top:21px;width:29px;height:30px;min-height:30px}.shell .room .switch::before{font-size:20px;line-height:28px}.shell .room-expand{right:0;bottom:0;width:30px;height:24px;min-height:24px;font-size:14px}.shell .card[data-section=lights] .scenes{gap:6px;margin-top:9px}.shell .scene:nth-child(n){font-size:13px;min-height:34px;padding:5px 3px;border-radius:10px}.shell .scene-manage{font-size:10px}.shell .remote-mini .painted-art{width:48px;height:44px}.weather-description strong{font-size:11px}.weather-description small{font-size:9px}.weather-high-low{font-size:10px}.weather-high-low small{font-size:8px}.weather-more{font-size:0}.weather-more::after{content:'↗';font-size:17px}.weather-symbol{font-size:24px}#weather-strip button{gap:7px;padding:6px 8px;min-height:49px}.weather-current{font-size:25px}.forecast-days>div{grid-template-columns:77px 1fr 68px;font-size:11px}}
.shell .header-actions .aside-bottom button .utility-glyph{font-size:16px;display:inline-block}.shell .header-actions .aside-bottom button{gap:4px}#weather-strip button>span>small{display:block}.shell .forecast-days strong{white-space:nowrap}
/* One balanced Palm Springs palette, independent of system appearance or time. */
:root{--paper:#ede0c6;--card:#f6ead2;--panel:#f0e3c9;--ink:#422e24;--muted:#685b48;--line:#b29a70;--accent:#34796c;--teal:#34796c;--active:#c9ddd0;--gold:#ad7d2c;color-scheme:light}
:root[data-theme=palm]{--paper:#ede0c6;--card:#f6ead2;--panel:#f0e3c9;--ink:#422e24;--muted:#685b48;--line:#b29a70;--accent:#34796c;--teal:#34796c;--active:#c9ddd0;--gold:#ad7d2c}
