:root{color-scheme:dark;--bg:#141819;--panel:#1b2021;--muted:#969d9e;--line:#ffffff13;--amber:#e9bd77;--green:#91cbb0;--font:system-ui,-apple-system,"Segoe UI",sans-serif;font-family:var(--font);color:#f2f1ed;background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:wait;opacity:.5}a{color:var(--amber)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--amber);outline-offset:5px}button svg,span[data-icon] svg{display:block;flex-shrink:0;width:21px;height:21px}button{transition:background .18s,border-color .18s,transform .18s}button:hover{filter:brightness(1.14)}[hidden]{display:none!important}.app{display:flex;min-height:100dvh}.sidebar{width:232px;flex-shrink:0;background:linear-gradient(155deg,#202526,#191d1e 60%);border-right:1px solid var(--line);padding:38px 21px 24px;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:#f1f0eb;text-decoration:none;font-size:36px;font-weight:650;letter-spacing:-2px;line-height:1}.brand svg{color:var(--amber);width:32px!important;height:32px!important}.brand-dot{color:var(--amber)}.home-label{font-size:9px;letter-spacing:1.8px;color:#9da29f;margin:17px 0 55px}.section-label{font-size:10px;color:#989e9d;letter-spacing:1.8px;display:flex;align-items:center;justify-content:space-between;margin:0 10px 14px}.icon-button{border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;border-radius:10px;color:#b6bcba}.icon-button:hover{background:#ffffff0b}.section-label .icon-button{min-width:26px;min-height:26px}.section-label svg{width:16px;height:16px}#room-nav{display:flex;flex-direction:column;gap:8px;overflow:auto}.nav-button{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:none;border:1px solid transparent;border-radius:10px;padding:14px;color:#bdc2c0;font-size:14px}.nav-button>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-button .count{margin-left:auto;min-width:20px;text-align:center;font-size:11px;color:#858d89}.nav-button.active{background:#dfb77614;border-color:#d0a66438;color:var(--amber)}.nav-button.active .count{color:var(--amber)}.sidebar-bottom{margin-top:auto;padding-top:30px}.demo-note{margin:24px 12px 0;padding-top:22px;border-top:1px solid var(--line);font-size:11px;color:#c7b99e}.demo-note small{display:block;color:#7f8986;font-size:10px;margin:8px 0 0 15px}.status-dot{display:inline-block;width:7px;height:7px;background:var(--amber);border-radius:50%;margin-right:8px}.status-dot.live{background:var(--green)}.status-dot.error{background:#e39688}main{margin-left:232px;flex:1;min-width:0}.topbar{padding:27px 35px 25px;display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#86918d;display:flex;gap:12px;margin-bottom:9px}.eyebrow>span:last-child{color:#babeb8}h1{font-size:30px;line-height:1.2;letter-spacing:-.9px;font-weight:550;margin:0}.header-actions{display:flex;align-items:center;gap:22px}.connection{font-size:12px;color:#bdbcae;border:0;background:none;padding:10px 0}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:10px 17px;border-radius:9px;border:1px solid #ffffff27;font-size:12px;font-weight:500;background:transparent;white-space:nowrap}.button svg{width:17px;height:17px}.button.primary{background:var(--amber);border-color:var(--amber);color:#25231d}.button.secondary{background:#ffffff03}.button.danger{color:#efa595;border-color:#efa59555}.button.full{width:100%}#mobile-settings{display:none}.workspace{padding:0 35px 30px}.room-view{position:relative;background:#101516;border:1px solid #ffffff15;border-radius:14px;overflow:hidden}.photo-stage{position:relative;width:100%;aspect-ratio:1672/941;overflow:hidden;isolation:isolate}#room-photo{width:100%;height:100%;display:block;object-fit:fill;user-select:none;transition:filter .6s}#room-photo.dimmed{filter:brightness(.76)}#hotspots{position:absolute;inset:0;pointer-events:none}.hotspot{position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;gap:9px;pointer-events:auto;touch-action:none;z-index:1}.hotspot:focus-within{z-index:4}.hotspot .point{width:58px;height:58px;border:1px solid #ffffffae;border-radius:50%;background:#191e21ad;color:#fff;display:grid;place-items:center;box-shadow:0 3px 16px #0003;backdrop-filter:blur(8px)}.hotspot .point svg{width:27px;height:27px}.hotspot .point:hover{transform:scale(1.07)}.hotspot.on .point{background:#dba645dd;border-color:#ffe4b3;box-shadow:0 0 0 6px #e9bd7720,0 0 65px #ebc06061}.hotspot.on.light:before{content:"";position:absolute;width:185px;height:155px;top:-47px;background:radial-gradient(ellipse,#ffd0803d,transparent 70%);z-index:-1;pointer-events:none}.point-label{display:block;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;background:#171c1de8;border:1px solid #ffffff45;border-radius:30px;padding:7px 12px;box-shadow:0 2px 8px #0002;pointer-events:none}.hotspot.on .point-label{color:#f5d69b;border-color:#e9bd7780}.hotspot.pending .point{animation:pulse 1s infinite}.hotspot.unknown .point{border-style:dashed;color:#b7b7b7}.editing .photo-stage{outline:2px dashed #e9bd7755;outline-offset:-8px}.editing .hotspot{cursor:move}.editing .point{cursor:move}.editing .point-label:after{content:" ✎"}.photo-caption{position:absolute;bottom:18px;left:20px;right:20px;display:flex;align-items:center;gap:8px;font-size:10px;color:#fffbead1;text-shadow:0 1px 4px #000;pointer-events:none}.caption-dot{width:4px;height:4px;background:#f5dfb6;border-radius:50%}.room-footer{display:flex;align-items:center;justify-content:space-between;padding:21px 0 24px;gap:12px;border-bottom:1px solid var(--line)}.room-status{display:flex;align-items:center;gap:13px}.room-status>span{color:var(--amber);border:1px solid #e9bd7727;background:#e9bd770a;border-radius:10px;padding:11px}.room-status strong{font-size:13px;font-weight:500}.room-status small{display:block;margin-top:6px;color:#929b96;font-size:11px}.quick-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0 14px;font-size:9px;letter-spacing:1.6px;color:#a9afa9}.quick-heading>span:last-child{letter-spacing:0;color:#727c77}.quick-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.quick-actions>button{background:linear-gradient(140deg,#222829,#1c2122);border:1px solid var(--line);display:flex;align-items:center;text-align:left;gap:13px;padding:19px 16px;border-radius:11px;min-width:0}.scene-icon{color:#c8b997}.scene-icon svg{width:23px;height:23px}.quick-actions strong{display:block;font-weight:500;font-size:12px}.quick-actions small{display:block;color:#8e9791;font-size:10px;margin-top:6px}.arrow{margin-left:auto;color:#7f8882}.edit-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#e9bd770a;border:1px solid #e9bd7733;border-radius:10px;padding:12px 16px;margin-bottom:16px}.edit-toolbar strong{font-size:12px;font-weight:500;color:var(--amber)}.edit-toolbar small{font-size:11px;color:#a8aba0;display:block;margin-top:4px}.edit-toolbar>div{display:flex;gap:8px}.empty-photo{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 40%,#343d38,#202828 60%,#192020);text-align:center}.empty-photo>span{color:var(--amber);margin-bottom:5px}.empty-photo>span svg{width:38px;height:38px}.empty-photo h2{font-size:24px;font-weight:450;letter-spacing:-.6px;margin:15px 0 0}.empty-photo p{font-size:13px;line-height:1.7;color:#a7b0a9;margin:10px 0 22px}dialog{width:min(510px,calc(100% - 32px));max-height:90dvh;border:1px solid #ffffff25;border-radius:18px;padding:26px;background:#1d2424;color:#efeee8;box-shadow:0 25px 100px #0007}dialog::backdrop{background:#080c0d9c;backdrop-filter:blur(5px)}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.dialog-top h2{font-size:22px;letter-spacing:-.5px;font-weight:550;margin:0}dialog p{font-size:13px;color:#aab2ad;line-height:1.7}label{display:block;font-size:12px;color:#c2c7c1;margin:18px 0 8px}input:not([type=file]):not([type=range]),select{width:100%;background:#101818;border:1px solid #ffffff22;border-radius:8px;min-height:44px;padding:11px 12px;color:#eeeee6;font-size:13px}input[type=range]{width:100%;accent-color:var(--amber);min-height:32px}form .button.primary{margin-top:22px}dialog .note{font-size:11px;line-height:1.6;color:#9da79f}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dialog-divider{height:1px;background:var(--line);margin:24px 0}.dialog-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.error-text{color:#f2a899!important;min-height:0;font-size:12px;margin-bottom:0}.status-box{font-size:12px;padding:14px;border:1px solid #e9bd7733;background:#e9bd7709;border-radius:9px;color:#dbcaad;line-height:1.6}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:20;max-width:min(600px,90vw);border:1px solid #e9bd7750;border-radius:12px;padding:14px 22px;font-size:13px;color:#f2e4c8;background:#202827f5;box-shadow:0 5px 30px #0005}.scene-list{display:flex;flex-direction:column;gap:12px}.scene-list .button{justify-content:flex-start;white-space:normal;min-height:58px}.slider-value{float:right;color:var(--amber)}@keyframes pulse{50%{opacity:.5}}@media(min-width:1600px){.workspace{max-width:1700px;margin:auto}.topbar{padding-top:35px;padding-bottom:30px}.sidebar{width:255px;padding-left:28px;padding-right:28px}main{margin-left:255px}.photo-stage{max-height:calc(100dvh - 335px);min-height:450px;width:auto;margin:auto;aspect-ratio:auto}#room-photo{object-fit:contain}.room-view{background:#101516}}
@media(max-width:1100px){.sidebar{width:190px;padding:28px 14px 20px}main{margin-left:190px}.workspace{padding:0 22px 25px}.topbar{padding:25px 22px}.header-actions{gap:14px}.connection{font-size:10px}.quick-actions>button{padding:16px 12px;gap:9px}.quick-actions small{font-size:9px}.arrow{display:none}.home-label{font-size:8px;letter-spacing:1px}.hotspot .point{width:48px;height:48px}.point-label{font-size:10px;padding:5px 9px}.photo-caption{font-size:9px;bottom:12px}}
@media(max-width:760px){.app{display:block}.sidebar{position:relative;width:100%;padding:18px 20px 0;border-right:0;background:var(--bg)}.brand{font-size:27px}.brand svg{width:25px!important;height:25px!important}.home-label,.section-label,.sidebar-bottom{display:none}#room-nav{flex-direction:row;margin:20px -20px 0;padding:0 20px 14px;gap:8px;border-bottom:1px solid var(--line)}.nav-button{width:auto;flex-shrink:0;font-size:12px;padding:10px 13px;gap:7px}.nav-button svg{width:17px;height:17px}.nav-button .count{display:none}main{margin-left:0}.topbar{padding:22px 20px 18px}.eyebrow{display:none}h1{font-size:25px}.workspace{padding:0 16px 22px}.header-actions{gap:12px}.connection{font-size:10px}.connection .status-dot{width:5px;height:5px;margin-right:5px}#edit-button{padding:8px;min-height:36px;border:0}#edit-button>span:last-child{display:none}#mobile-settings{display:flex;position:absolute;top:15px;right:18px}.room-view{border-radius:11px}.photo-caption{display:none}.room-footer{padding:17px 2px}.room-status{gap:8px}.room-status>span{padding:8px}.room-status strong{font-size:11px}.room-status small{font-size:9px;max-width:170px}.room-footer .button{font-size:10px;gap:6px;padding:9px}.room-footer .button svg{width:15px;height:15px}.quick-heading{margin-top:22px;font-size:8px;letter-spacing:1.1px}.quick-heading>span:last-child{display:none}.quick-actions{grid-template-columns:1fr}.quick-actions>button{padding:16px;gap:14px}.quick-actions strong{font-size:13px}.quick-actions small{font-size:11px}.arrow{display:block}.hotspot{gap:5px}.hotspot .point{width:44px;height:44px}.hotspot .point svg{width:22px;height:22px}.point-label{font-size:9px;padding:4px 7px;max-width:135px}.hotspot.on.light:before{width:100px;height:95px;top:-20px}.edit-toolbar{padding:12px;flex-wrap:wrap}.edit-toolbar>div{width:100%;justify-content:space-between}.edit-toolbar .button{font-size:11px}.empty-photo h2{font-size:18px;margin:6px 0 0}.empty-photo p{font-size:10px;margin:5px 0 12px}.empty-photo>span{display:none}.empty-photo .button{font-size:11px;min-height:36px}dialog{padding:22px}.toast{bottom:15px;font-size:12px;width:max-content}}
@media(prefers-reduced-motion:reduce){*,*:before{transition:none!important;animation:none!important}}
/* Photo and controls always share the same coordinate plane, including wide screens. */
@media(min-width:1600px){.photo-stage{width:100%;max-height:none;min-height:0}#room-photo{object-fit:fill}}
.hotspot.edge-right .point-label{transform:translateX(-35%)}
.hotspot.edge-left .point-label{transform:translateX(35%)}
#room-nav{scrollbar-width:none}#room-nav::-webkit-scrollbar{display:none}
@media(min-width:761px) and (max-width:1100px){.nav-button .count{display:none}}
.overview-button{margin:-28px 0 24px;color:var(--amber);border-color:#e9bd7730;background:#e9bd7708}
.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:28px;background:radial-gradient(ellipse at 25% 20%,#374039,#141819 65%)}.auth-card{width:min(480px,100%);background:#1c2424;border:1px solid #ffffff20;border-radius:20px;padding:32px;box-shadow:0 25px 80px #0003}.auth-card h1{font-size:43px;color:var(--amber);margin-bottom:10px}.auth-card h2{font-size:22px;font-weight:500;margin:28px 0 10px}.auth-card p{color:#aab5ad;font-size:13px;line-height:1.65}.auth-card .button{margin-top:22px}.auth-card .note{font-size:11px}.role-badge{display:inline-block;background:#e9bd7712;color:var(--amber);border:1px solid #e9bd7733;border-radius:20px;padding:6px 12px;font-size:12px}.app.client #edit-button,.app.client #add-room,.app.client #settings-button,.app.client #empty-upload{display:none}.auth-screen input,.auth-screen select{font-size:16px!important}
.device-section{padding:22px 0 5px}.devices-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:13px}.devices-heading h2{font-size:13px;font-weight:500;margin:0}.devices-heading>span{font-size:10px;color:#8e9c93}.devices-heading .save-error{color:#f2a899}.device-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px}.device-control{display:flex;align-items:center;gap:12px;text-align:left;background:#202627;border:1px solid #ffffff14;border-radius:12px;padding:15px;min-width:0;min-height:78px}.device-control.is-on{border-color:#e9bd7745;background:#e9bd7709}.device-symbol{color:#959f98}.is-on .device-symbol{color:var(--amber)}.device-symbol svg{width:25px;height:25px}.device-text{flex:1;min-width:0}.device-text strong{display:block;font-size:13px;font-weight:500;overflow-wrap:anywhere}.device-text small{display:block;margin-top:5px;font-size:11px;color:#a3aca6}.is-on .device-text small{color:var(--amber)}.switch-track{width:38px;height:22px;flex-shrink:0;border-radius:20px;background:#535b58;padding:3px}.switch-track>span{display:block;width:16px;height:16px;background:#e1e5e1;border-radius:50%;transition:transform .2s}.is-on .switch-track{background:#c69b55}.is-on .switch-track>span{transform:translateX(16px);background:#fff5df}.device-empty{font-size:12px;color:#949e97;margin:5px 0 10px}.room-cards{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:22px 0}.room-card{overflow:hidden;text-align:left;background:#151c1c;border:1px solid #ffffff18;border-radius:12px;padding:0 0 15px;min-width:0}.room-card-photo{height:112px;background:linear-gradient(140deg,#39453c,#252d2c);display:grid;place-items:center;color:var(--amber);margin-bottom:13px}.room-card-photo img{width:100%;height:100%;object-fit:cover}.room-card-photo svg{width:30px;height:30px}.room-card strong,.room-card small{display:block;margin:0 13px;overflow-wrap:anywhere}.room-card strong{font-size:14px;font-weight:500}.room-card small{font-size:11px;color:#9fa99f;margin-top:7px}.edit-toolbar>div{flex-wrap:wrap}#undo-edit{color:#d4c3a7}
@media(max-width:760px){.overview-button{display:flex;position:absolute;right:62px;top:17px;margin:0;width:44px;height:40px;font-size:0;padding:10px;gap:0;border:0;background:none}.overview-button svg{width:22px;height:22px}.device-section{padding-top:18px}.devices-heading{align-items:flex-start}.devices-heading>span{font-size:9px;max-width:125px;text-align:right}.device-list{grid-template-columns:1fr}.device-control{min-height:72px}.point-label{max-width:130px}.edit-toolbar>div{justify-content:flex-start}.room-cards{gap:10px}.room-card-photo{height:95px}.room-card strong{font-size:13px}.room-card small{font-size:10px}}
