/* Quiet, room-first home controls. Existing actions and access stay intact. */
:root{--bg:#101216;--bg-deep:#101216;--panel:rgba(255,255,255,.045);--panel-solid:#1c1f25;--line:rgba(255,255,255,.11);--line-soft:rgba(255,255,255,.07);--text:#f4f3ef;--mute:#aeb2bb;--faint:#89909c;--amber:#f2bd75;--gold:#f5d5a7;--radius:24px;--glow-on:none}
.aurora{display:none}.shell{max-width:1160px;padding-inline:24px}.topbar{padding-block:24px}.mark{box-shadow:none}.greet b{font-weight:650}.greet span{color:var(--mute)}
.hero{border:1px solid var(--line);box-shadow:none;border-radius:28px}.hero.has-photo{min-height:190px}.hero-temp{font-weight:600;letter-spacing:-2px}.hero-note{color:#eee7db}.hero-stats{gap:8px;flex-wrap:wrap}.stat{border-radius:12px;background:rgba(16,18,22,.66);color:#ebe7df}
.card,.tile{box-shadow:none;border-color:var(--line);background:var(--panel-solid)}.tile{border-radius:22px;padding:20px;gap:18px;min-width:0}.tile.is-on{background:#28241f;border-color:#8d6b43}.tile-ico{background:#292d35;color:#c3c8d0;border-radius:16px}.is-on .tile-ico{background:#443425;color:#f2bd75}.tile-name{font-size:16px;font-weight:650;line-height:1.35;overflow-wrap:anywhere}.tile-sub{font-size:12px;margin-top:4px}.tile-more{min-width:40px;min-height:40px;display:grid;place-items:center;border-radius:12px}.tile-control{min-height:44px}.tile.is-off-line{opacity:.7}.section-title{text-transform:none;letter-spacing:0;font-size:19px;font-weight:650;margin-top:28px;color:var(--text)}
.grid{grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));gap:14px}.chips{gap:7px;flex-wrap:wrap}.chip{border:0;background:#262a31;border-radius:10px;padding:7px 9px;font-size:11px;color:#bfc4cd;white-space:normal;overflow-wrap:anywhere}.chip b{font-weight:600;color:var(--text)}.is-on .chip{background:rgba(255,255,255,.06)}
.room-nav{display:flex;gap:8px;overflow-x:auto;padding:6px 0 14px;margin-top:24px;scrollbar-width:thin}.room-nav button{font:inherit;font-size:13px;white-space:nowrap;border:1px solid var(--line);border-radius:14px;padding:11px 16px;min-height:44px;background:var(--panel-solid);color:var(--mute);cursor:pointer}.room-nav button[aria-pressed=true]{color:#17181b;background:var(--gold);border-color:var(--gold)}.room-section[hidden]{display:none}
.device-summary{flex-wrap:wrap;padding:24px}.device-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));gap:12px;margin-top:16px}.device-value{padding:18px 20px;border:1px solid var(--line);background:var(--panel-solid);border-radius:20px;min-width:0}.device-value span{display:block;color:var(--mute);font-size:12px;margin-bottom:8px}.device-value strong{display:block;font-size:19px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}.device-value em{display:inline-block;width:14px;height:14px;border:1px solid #888;border-radius:50%;margin-right:7px}.device-history{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.device-history .btn{min-height:40px}.device-summary .tile{margin-left:auto}
.tabbar{background:rgba(26,29,35,.97);border:1px solid var(--line);box-shadow:0 12px 30px #0005}.tab{color:#aeb3bd;font-size:11px}.tab.is-active{color:var(--gold);background:#333027;border-radius:14px}.scene,.btn{border-radius:14px}.player{overflow:hidden}.player-head{flex-wrap:wrap;gap:8px}.player-frame{background:#080a0d}.cam-live{font-size:11px;white-space:nowrap}.player-err{overflow-wrap:anywhere}.player-btn{min-width:44px;min-height:44px}.player-foot{flex-wrap:wrap;gap:12px}.player-note{max-width:90%;text-align:center}.feed-row{border-radius:16px}.pulse{font-size:11px}
:focus-visible{outline:3px solid var(--gold);outline-offset:4px}footer{color:var(--faint);line-height:1.7}
/* Controls are available immediately, not hidden until a scroll observer fires. */
.js .reveal,.reveal.in{opacity:1;transform:none;animation:none}.grid{align-items:start}
.players{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}select,input,textarea{max-width:100%;min-width:0}.rule-form>div{min-width:0}
@media(max-width:600px){.shell{padding-inline:16px}.topbar{gap:10px;padding-block:18px}.greet b{font-size:16px}.side{gap:7px}.pulse span{display:none}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile{padding:14px;gap:12px}.tile-head{gap:8px;flex-wrap:wrap}.tile-ico{width:36px;height:36px;flex-shrink:0}.tile-head>div{flex:1}.tile-more{min-width:30px;min-height:30px}.tile-name{font-size:14px}.chips .chip{font-size:10px;padding:6px 7px}.tile-control{gap:6px}.tile-state{font-size:11px}.hero-temp{font-size:48px}.hero{padding:20px}.tabbar{width:calc(100% - 20px);gap:0;bottom:calc(10px + env(safe-area-inset-bottom))}.tab{padding:9px 3px;font-size:10px;min-width:0}.tab svg{width:21px;height:21px}.device-values{grid-template-columns:repeat(2,minmax(0,1fr))}.device-value{padding:14px}.device-value strong{font-size:17px}.device-summary{gap:12px!important;padding:18px}.device-summary .tile{width:100%;margin-left:0!important}.player-head b{max-width:100%;overflow-wrap:anywhere}.player-where{margin-left:0}.hero-stats .stat{font-size:11px}.section-title{font-size:17px}}
@media(prefers-reduced-motion:reduce){.reveal{animation:none!important;opacity:1!important;transform:none!important}}
@media(max-width:360px){.grid{grid-template-columns:1fr}}
