@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#343e35;background:#eeeae2;--ink:#354c3b;--line:#dedfd4}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{color:inherit;cursor:pointer}button:disabled,input:disabled,select:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #9c875f;outline-offset:3px}[hidden]{display:none!important}.topbar{height:88px;padding:0 36px;display:flex;align-items:center;border-bottom:1px solid #d6d6cc;gap:30px}.brand{text-decoration:none;color:#354c3b;letter-spacing:5px;font-size:21px;line-height:1.1}.brand span{display:block;font-size:8px;letter-spacing:6px;margin-top:7px}.project-name{font-family:Georgia,serif;font-size:29px;border-left:1px solid #cbcfc0;padding-left:28px}.project-name i{color:#a18a64}.project-name>span{display:block;font:8px 'DM Sans',sans-serif;letter-spacing:2px;margin-top:4px}.live-tag{margin-left:auto;display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.5px;color:#78846f}.live-tag>span,.status-dot{width:6px;height:6px;border-radius:50%;background:#7c9366;display:inline-block}.icon-button{border:0;background:transparent;font-size:25px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 360px;height:calc(100dvh - 88px);min-height:600px}.stage{position:relative;min-width:0;background:#e8e6dc;overflow:hidden;display:flex;flex-direction:column}#viewer{position:absolute;inset:0 0 76px;overflow:hidden;isolation:isolate}canvas{display:block;touch-action:none}#viewer>canvas{width:100%;height:100%;outline:0}.stage-toolbar{position:absolute;left:26px;right:26px;top:22px;z-index:3;display:flex;justify-content:space-between;gap:12px;pointer-events:none}.stage-toolbar>*{pointer-events:auto}.view-switch{display:flex;gap:4px;border:1px solid #ffffffe0;background:#fafaf5dc;padding:5px;border-radius:32px;box-shadow:0 3px 14px #2a362a08}.view-switch button,.round-button{border:0;background:transparent;border-radius:24px;padding:11px 17px;font-size:11px}.view-switch button.active{background:var(--ink);color:#fff}.round-button{width:43px;height:43px;font-size:23px;line-height:1;background:#fafaf5e0;border:1px solid white;padding:0}.stage-top-label{position:absolute;top:95px;left:32px;pointer-events:none;display:flex;flex-direction:column;gap:7px;color:#75806b;letter-spacing:1.8px;font-size:9px}.stage-top-label span+span{font-size:8px;color:#929981}.stage-bottom{position:absolute;bottom:96px;left:28px;right:28px;display:flex;justify-content:space-between;align-items:end;pointer-events:none;gap:20px}#gesture{font-size:10px;color:#838b79}.time-chip{display:flex;align-items:center;gap:10px;background:#fafaf3e5;padding:12px 17px;border-radius:28px;border:1px solid #fff;white-space:nowrap;color:#66755b;font-size:10px}.time-chip b{font-size:12px;font-weight:500}.time-chip #sun-icon{color:#a38c60;font-size:17px}.scene-bar{margin-top:auto;height:76px;padding:14px 28px;z-index:2;border-top:1px solid #d3d5c8;background:#eae9df;display:flex;align-items:center;gap:25px}.scene-bar>span{font-size:8px;letter-spacing:1.6px;max-width:80px;line-height:1.6;color:#8b927c}#presets{display:flex;gap:7px;flex-wrap:wrap}#presets button{border:1px solid #d1d6c6;border-radius:20px;padding:9px 18px;background:transparent;font-size:11px}#presets button.active{background:#fffdf5;border-color:#a99a78;color:#786440}.control-panel{background:#fafaf6;border-left:1px solid #d7dbcf;display:flex;flex-direction:column;overflow:hidden}.panel-heading{padding:26px 26px 20px}.eyebrow{font-size:8px;letter-spacing:1.8px;color:#8a947f}h1{font-family:Georgia,serif;font-size:26px;letter-spacing:-.5px;font-weight:400;margin:10px 0}h2{font:26px Georgia,serif;font-weight:400;margin:14px 0}p{font-size:11px;line-height:1.7;color:#8a9282;margin:0}.panel-tabs{display:flex;padding:0 24px;border-bottom:1px solid var(--line);gap:20px}.panel-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:13px 0;font-size:12px;color:#929987}.panel-tabs button[aria-selected=true]{color:var(--ink);border-color:var(--ink)}.panel-tabs button span{font-size:9px;border-radius:8px;background:#e7ebdf;padding:1px 5px;margin-left:2px}.panel-body{padding:24px 26px;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#d4dacb transparent}.field{margin-bottom:20px}.field>label{display:flex;justify-content:space-between;font-size:11px;margin-bottom:9px}select{width:100%;padding:12px 10px;border:1px solid #d8dfce;color:#52604a;background:#fff;border-radius:6px;font-size:11px;cursor:pointer}.sub-label{color:#9c9e8a;font-size:9px}.group-title{font-size:8px;letter-spacing:1.8px;text-transform:uppercase;color:#96a086;margin:24px 0 16px;padding-top:19px;border-top:1px solid var(--line)}.range-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-top:16px;gap:10px}output{color:#a28c63;font-size:10px;font-variant-numeric:tabular-nums}input[type=range]{width:100%;height:4px;accent-color:#6a8254;margin:17px 0 10px;cursor:pointer}.switch-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin:16px 0;cursor:pointer}input[role=switch]{appearance:none;-webkit-appearance:none;width:31px;height:18px;border-radius:10px;background:#e0e5d8;border:1px solid #d7dece;position:relative;cursor:pointer;flex-shrink:0;margin:0}input[role=switch]:before{content:'';position:absolute;width:12px;height:12px;border-radius:50%;background:#fff;left:2px;top:2px;transition:transform .15s}input[role=switch]:checked{background:#687e56;border-color:#687e56}input[role=switch]:checked:before{transform:translateX(13px)}.text-button{border:0;background:transparent;color:#7c895f;font-size:10px;padding:12px 5px;text-align:left}.full-width{width:100%}.note{font-size:10px;line-height:1.7;color:#9ba18f;margin-top:15px;padding:12px;background:#eff1e7;border-radius:6px}.panel-footer{height:40px;min-height:40px;border-top:1px solid var(--line);display:flex;align-items:center;padding:0 24px;gap:7px;font-size:8px;color:#9ba58d}.version{margin-left:auto;letter-spacing:1.2px;font-size:7px}#labels{position:absolute;inset:0;z-index:2;pointer-events:none}.room-label{position:absolute;transform:translate(-50%,-50%);background:#fffef5eb;border:1px solid #fff;border-radius:20px;padding:7px 10px;white-space:nowrap;color:#68735b;font-size:9px;box-shadow:0 2px 6px #1a2c1010;pointer-events:auto;cursor:pointer}.room-label:hover{background:#354c3b;color:white}#status{position:absolute;inset:0;z-index:10;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:18px;background:#eae8dd;color:#6f7d61}.loader-mark{font:60px Georgia,serif;color:#435b3c}.loader-mark>span{font-size:27px;color:#a18a64}#status strong{font-size:13px;font-weight:400}#status small{font-size:10px;color:#9ba189}progress{width:180px;height:3px;accent-color:#819461}#crosshair{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:23px;color:#fff9;pointer-events:none;text-shadow:0 1px 4px #0006}#interaction{position:absolute;top:57%;left:50%;transform:translateX(-50%);border:1px solid #fff9;background:#253a29d9;color:#fff;border-radius:20px;padding:10px 18px;font-size:11px;max-width:85%;z-index:3}#walk-help{position:absolute;top:96px;left:28px;display:flex;gap:13px;flex-wrap:wrap;pointer-events:none;max-width:80%;font-size:9px;color:#fff;background:#233823b8;padding:9px 12px;border-radius:20px;z-index:2}#walk-controls{position:absolute;bottom:155px;left:28px;z-index:3;text-align:center;user-select:none}#walk-controls button{width:38px;height:36px;border:1px solid #ffffff5c;background:#354c3b9c;color:white;border-radius:6px;margin:2px;touch-action:none}#walk-controls button:active{background:#a28c63}.home-overview{display:flex;gap:23px;align-items:center;padding:0 0 20px;border-bottom:1px solid var(--line);margin-bottom:20px}.home-overview>div{display:flex;flex-direction:column;gap:5px}.home-overview b{font:27px Georgia,serif;color:#75825e}.home-overview span{font-size:8px;color:#99a38c}.home-overview button{margin-left:auto;border:1px solid #d8dece;background:transparent;padding:8px 9px;border-radius:7px;font-size:9px}.device-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:17px}.device-filters button{font-size:9px;border:1px solid #dce1d1;border-radius:15px;background:transparent;padding:6px 10px}.device-filters button.active{background:#40583c;color:#fff;border-color:#40583c}.device-card{border:1px solid #e0e4d6;border-radius:9px;margin:10px 0;padding:14px;background:#fffefa}.device-card.active-device{border-color:#a0b18c}.device-card header{display:flex;gap:10px;align-items:center}.device-icon{font-size:17px;color:#a18c62;width:23px}.device-title{flex:1;min-width:0}.device-title strong{font-size:11px;font-weight:500;display:block;line-height:1.5}.device-title small{display:block;font-size:8px;color:#a0a790;margin-top:2px}.device-card .range-label{font-size:9px;margin-top:13px}.device-card .range-label output{font-size:9px}.device-card input[type=range]{margin-top:13px}.device-card select{padding:8px;font-size:10px;margin-top:10px}.device-state{font-size:8px;color:#a4aa97;margin-top:8px;display:flex;justify-content:space-between;align-items:center;gap:8px}.device-state button{font-size:8px;border:0;background:transparent;color:#8d9e70;padding:0}.config-actions{display:flex;gap:8px}.config-actions button{font-size:10px;border:1px solid #d8dfcc;border-radius:5px;background:transparent;padding:10px;flex:1}#command-form{margin-top:15px}#command-form>label{font-size:10px;display:block;margin-bottom:8px}.command-input{display:flex;border:1px solid #d7decc;border-radius:6px;overflow:hidden}.command-input input{border:0;padding:12px 10px;min-width:0;flex:1;font-size:10px;background:#fff}.command-input button{border:0;background:#6c8156;color:white;width:36px}.section-intro{margin-bottom:25px}.camera-card{display:flex;align-items:center;gap:12px;border:1px solid #dce2d1;border-radius:8px;padding:14px;margin:9px 0;background:#fffefa}.camera-card.selected{border-color:#829363}.camera-card button{border:0;background:transparent;flex:1;text-align:left;font-size:11px}.camera-card button small{font-size:8px;color:#929c82;display:block;margin-top:5px}.camera-card input{flex-shrink:0}#camera-off{position:absolute;inset:0;background:#18291dee;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:#ecf1e3;z-index:2}#camera-off small{font-size:11px;color:#a8b3a0}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;border:1px solid #ffffff5c;background:#334b35ed;color:#f5f5e9;border-radius:9px;padding:13px 22px;font-size:12px;max-width:90vw;box-shadow:0 5px 25px #203d1926}.empty-message{font-size:11px;color:#98a18a;text-align:center;padding:35px 15px;line-height:1.7}body.walking .stage-top-label,body.cctv .stage-top-label{top:155px;color:#ffffffe0}body.walking #gesture,body.cctv #gesture{color:#f5f5e9;text-shadow:0 1px 3px #0008}
@media(min-width:1600px){.workspace{grid-template-columns:minmax(0,1fr) 390px}.panel-heading,.panel-body{padding-left:32px;padding-right:32px}h1{font-size:29px}}
@media(max-width:1050px){.workspace{grid-template-columns:minmax(0,1fr) 310px}.panel-body,.panel-heading{padding-left:20px;padding-right:20px}.view-switch button{padding:10px 11px;font-size:10px}.stage-toolbar{left:15px;right:15px}.scene-bar{padding-left:15px;padding-right:15px;gap:14px}#presets{gap:4px}#presets button{padding:8px 10px;font-size:10px}.scene-bar>span{display:none}.topbar{padding:0 24px}.live-tag{font-size:8px}.panel-tabs{gap:16px;padding:0 20px}}
@media(max-width:760px){.topbar{height:72px;padding:0 18px;gap:20px}.brand{font-size:17px}.brand span{font-size:6px}.project-name{font-size:23px;padding-left:17px}.project-name>span{display:none}.live-tag{font-size:0;gap:0}.icon-button{font-size:23px}.workspace{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 72px)}.stage{height:70dvh;min-height:475px;flex-shrink:0}#viewer{bottom:67px}.stage-toolbar{top:14px;left:12px;right:12px;gap:7px}.view-switch{padding:3px;gap:1px}.view-switch button{padding:9px 10px;font-size:9px;white-space:nowrap}.round-button{width:34px;height:34px;font-size:20px}.stage-top-label{top:74px;left:19px;font-size:8px}.stage-bottom{bottom:82px;left:17px;right:17px;gap:8px}#gesture{font-size:8px;max-width:130px;line-height:1.5}.time-chip{padding:8px 11px;gap:6px;font-size:8px}.time-chip b{font-size:10px}.scene-bar{height:67px;padding:10px 13px}#presets{width:100%;justify-content:space-between}#presets button{font-size:9px;padding:9px 13px}.control-panel{border-left:0;border-top:1px solid #d2d9c6;overflow:visible}.panel-heading{padding:23px 23px 13px}.panel-heading h1{font-size:26px}.panel-tabs{padding:0 23px;gap:28px}.panel-tabs button{font-size:12px}.panel-body{padding:22px 23px;overflow:visible}.panel-footer{padding:0 23px}.field>label,.switch-row,.range-label{font-size:12px}select{font-size:12px;padding:13px}.room-label{font-size:8px;padding:5px 7px}#walk-help{top:72px;left:16px;font-size:8px;gap:7px;max-width:85%;border-radius:9px}#walk-help>span:nth-child(3),#walk-help>span:nth-child(4){display:none}#walk-controls{bottom:128px;left:14px}#walk-controls button{width:42px;height:40px}body.walking .stage-top-label,body.cctv .stage-top-label{top:132px}.device-title strong{font-size:12px}.device-title small,.device-state,.device-state button{font-size:10px}.device-card .range-label{font-size:11px}.device-card input[type=range]{margin-top:18px;margin-bottom:15px}.device-filters button{font-size:10px;padding:8px 12px}.home-overview span{font-size:10px}.home-overview button{font-size:11px}.camera-card button{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
#device-pins{position:absolute;inset:0;pointer-events:none;z-index:2}.device-pin{position:absolute;top:0;left:0;width:28px;height:28px;border-radius:50%;border:1px solid #fff;background:#f8f5e9ed;color:#354c3b;box-shadow:0 2px 6px #15271935;pointer-events:auto;font-size:16px;line-height:1;padding:0}.device-pin.on{background:#405e46;color:#fff;border-color:#dbe8c9}.device-pin:hover,.device-pin:focus-visible{box-shadow:0 0 0 4px #bccea877;z-index:5}#device-popover{position:absolute;left:20px;bottom:62px;width:265px;max-width:calc(100% - 40px);background:#fffdf5f5;border:1px solid #d5ddc8;border-radius:14px;padding:16px;z-index:6;box-shadow:0 8px 25px #1c38232a}#device-popover header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px}#device-popover header button{border:0;background:transparent;font-size:23px}#scene-power{width:100%;padding:9px;border:0;border-radius:8px;background:#405e46;color:#fff;margin:10px 0}#device-popover label{display:block;font-size:11px;margin-top:10px}#device-popover output{float:right;color:#7b8d65}#device-popover input{display:block;width:100%;margin:12px 0}#device-popover select{width:100%;font-size:12px;padding:8px}body.walking #device-popover{left:auto;right:15px;bottom:75px}body.walking #labels{display:none}
@media(max-width:760px){.stage{position:sticky;top:0;z-index:4;height:55dvh;min-height:355px}}
.view-transition{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none;opacity:0;z-index:1}.settings-toggle{border:1px solid #d6dbcc;background:#fafbf5;border-radius:50%;width:36px;height:36px;font-size:21px;flex-shrink:0}.controls-collapsed .workspace{grid-template-columns:minmax(0,1fr)}.controls-collapsed .control-panel{display:none}.stage-toolbar{justify-content:flex-start}.level-switch{display:flex;align-items:center;gap:2px;margin-left:auto;padding:4px;background:#fafaf5e8;border:1px solid #fff;border-radius:25px}.level-switch button{border:0;background:transparent;padding:9px 13px;border-radius:20px;font-size:10px;white-space:nowrap;transition:background .18s,color .18s}.level-switch button.active{background:#405e46;color:#fff}#walk-help{display:block}.device-pin{width:22px;height:22px;font-size:12px;box-shadow:0 1px 5px #15271925;transition:background .18s,color .18s,box-shadow .18s;animation:pin-appear .18s ease-out}.room-label{transition:background .18s,box-shadow .18s}.room-label:hover{background:#fff;box-shadow:0 3px 12px #263e241c}#device-popover{width:225px;padding:12px;box-shadow:0 6px 22px #213a1c1a;background:#fffdf5ed;backdrop-filter:blur(12px)}#device-popover header{font-size:11px}#device-popover label{font-size:10px}#scene-power{padding:8px;font-size:11px}@keyframes pin-appear{from{opacity:0}to{opacity:1}}@media(max-width:760px){.topbar{gap:12px}.settings-toggle{width:30px;height:30px;font-size:18px}.stage-toolbar{flex-wrap:wrap}.view-switch{flex:1;justify-content:center}.view-switch button{padding:9px 6px}.stage-toolbar>.round-button{margin-left:auto;order:2}.level-switch{order:3;margin-left:0;padding:3px}.level-switch button{padding:7px 12px;font-size:9px}.stage-top-label{top:122px}body.walking .stage-top-label,body.cctv .stage-top-label{top:122px}#device-popover{left:12px;bottom:55px;max-width:calc(100% - 24px)}.controls-collapsed .workspace{min-height:calc(100dvh - 72px)}.controls-collapsed .stage{height:calc(100dvh - 72px);position:relative}}@media(prefers-reduced-motion:reduce){.device-pin{animation:none}.view-transition{display:none}}

body.exterior .level-switch{display:none}body.exterior #walk-controls{display:none}@media(max-width:760px){.view-switch button{padding:9px 5px;font-size:8px}}

.mobile-label{display:none}
@media(max-width:760px){
 .topbar{height:60px;padding:0 12px;gap:12px}.brand{font-size:14px;letter-spacing:3px}.brand span{font-size:5px;letter-spacing:4px;margin-top:5px}.project-name{font-size:22px;padding-left:12px;white-space:nowrap;flex-shrink:0}.live-tag{display:none}.settings-toggle{margin-left:auto;width:34px;height:34px}.icon-button{min-width:32px;min-height:40px;padding:0}
 .desktop-label{display:none}.mobile-label{display:inline}.controls-collapsed .workspace{min-height:calc(100dvh - 60px)}.controls-collapsed .stage{height:calc(100dvh - 60px);min-height:0}.stage-toolbar{top:10px;left:10px;right:10px;gap:7px}.view-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:0;flex:1;padding:3px}.view-switch button{font-size:10px;padding:8px 4px;min-height:36px}.stage-toolbar>.round-button{order:0;min-width:36px;width:36px;height:36px}.level-switch{order:3}.level-switch button{font-size:10px;padding:7px 13px;min-height:32px}.stage-top-label,body.walking .stage-top-label{top:111px;left:15px;pointer-events:none}body.exterior .stage-top-label{top:72px}
 #viewer{bottom:calc(60px + env(safe-area-inset-bottom))}.scene-bar{height:calc(60px + env(safe-area-inset-bottom));padding:9px 10px calc(9px + env(safe-area-inset-bottom))}#presets{gap:5px;justify-content:initial;overflow-x:auto;scrollbar-width:none}#presets::-webkit-scrollbar{display:none}#presets button{flex:1;white-space:nowrap;font-size:10px;padding:10px 9px;min-height:38px}#gesture{display:none}.stage-bottom{bottom:calc(74px + env(safe-area-inset-bottom));left:12px;right:12px;justify-content:flex-end}.time-chip{padding:8px 11px;font-size:9px}.time-chip b{font-size:11px}
 #walk-controls{bottom:calc(113px + env(safe-area-inset-bottom));left:12px}#walk-controls button{width:44px;height:44px;min-width:44px;min-height:44px;font-size:20px;touch-action:none}body.walking #device-popover{left:auto;right:12px;bottom:calc(113px + env(safe-area-inset-bottom));width:calc(100% - 176px);max-width:230px;padding:11px}#device-popover header{font-size:11px;line-height:1.4}#scene-power{min-height:36px;font-size:12px}#device-popover input[type=range]{min-height:24px;margin:7px 0}#device-popover label{font-size:10px}.device-pin{width:28px;height:28px;font-size:14px}.control-panel .panel-tabs button{min-height:44px}#toast{bottom:calc(75px + env(safe-area-inset-bottom));font-size:11px;padding:10px 14px}
}
@media(max-height:500px) and (orientation:landscape){.topbar{height:48px}.controls-collapsed .stage{height:calc(100dvh - 48px)}.scene-bar{height:48px;padding:5px 10px}#viewer{bottom:48px}.stage-bottom{bottom:60px}.stage-top-label{display:none}#walk-controls{bottom:65px}body.walking #device-popover{bottom:65px;width:210px;max-height:calc(100% - 130px);overflow:auto}.level-switch{margin-left:auto;order:0}.stage-toolbar .view-switch{max-width:340px}.stage-toolbar{flex-wrap:nowrap}#presets{width:auto;margin:auto}#presets button{padding:6px 16px;min-height:32px}}

@media(max-height:500px) and (orientation:landscape){.desktop-label{display:none}.mobile-label{display:inline}.view-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-width:0;flex:1}.view-switch button{font-size:10px;padding:8px 5px;min-height:34px}}

@media(max-width:760px){.stage-toolbar .view-switch{flex:1 1 calc(100% - 45px)}}@media(max-height:500px) and (orientation:landscape){.stage-toolbar .view-switch{flex:1 1 0}}

#walk-controls,#crosshair,#interaction{transition:opacity .18s ease}body.traveling #walk-controls,body.traveling #crosshair,body.traveling #interaction{opacity:0;pointer-events:none}
.mobile-panel-heading{display:none}
@media(max-width:760px), (max-height:500px) and (orientation:landscape){
 html,body{height:100%;overflow:hidden;overscroll-behavior:none}
 .topbar{height:60px;padding-top:env(safe-area-inset-top);height:calc(60px + env(safe-area-inset-top))}
 .workspace,.controls-collapsed .workspace{display:block;height:calc(100dvh - 60px - env(safe-area-inset-top));min-height:0;position:relative}
 .stage,.controls-collapsed .stage{position:relative;top:auto;height:100%;min-height:0;width:100%;z-index:0}
 .settings-toggle,.icon-button{min-width:44px;min-height:44px}.topbar{gap:8px}.project-name{font-size:20px}
 .stage-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:6px;top:8px;left:8px;right:8px;align-items:start}
 .stage-toolbar .view-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));max-width:none;width:100%;min-width:0;grid-column:1;grid-row:1}
 .view-switch button{min-width:0;min-height:40px;padding:7px 2px;font-size:11px}
 .stage-toolbar>.round-button{grid-column:2;grid-row:1;order:0;width:44px;height:44px;margin:0}
 .level-switch{grid-column:1;grid-row:2;justify-self:start;margin:0;order:0;padding:2px}
 .level-switch button{min-height:36px;padding:5px 13px;font-size:10px}
 .stage-top-label,body.walking .stage-top-label{top:112px;left:14px;font-size:8px}
 body.exterior .stage-top-label{top:66px}
 #device-popover,body.walking #device-popover{left:8px;right:8px;bottom:8px;top:auto;width:auto;max-width:none;max-height:calc(100% - 114px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:10px 12px;border-radius:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px;background:#fffdf5fa}
 #device-popover header{grid-column:1/-1;font-size:12px;min-height:36px;gap:8px}
 #device-popover header strong{min-width:0;overflow-wrap:anywhere}
 #device-popover header button{width:44px;height:36px;min-width:44px;padding:0;font-size:27px}
 #scene-power{grid-column:1/-1;min-height:40px;margin:4px 0 5px;font-size:13px}
 #device-popover label{min-width:0;margin-top:4px;font-size:11px;line-height:1.5}
 #device-popover output{font-size:10px}#device-popover input[type=range]{height:28px;min-height:28px;margin:4px 0 0}
 #device-popover select{grid-column:1/-1;font-size:16px;min-height:40px}
 #walk-controls{left:10px;bottom:calc(76px + env(safe-area-inset-bottom));margin:0}
 body.device-control-open #walk-controls{bottom:calc(76px + env(safe-area-inset-bottom) + var(--device-sheet-height,170px))}
 #walk-controls button{width:44px;height:44px;min-width:44px;min-height:44px}
 body.device-control-open .stage-bottom,body.device-control-open .stage-top-label{visibility:hidden}
 body.device-control-open #interaction{display:none}
 .control-panel{position:absolute;z-index:12;inset:auto 0 0;height:min(72%,620px);min-height:0;overflow:hidden;border:1px solid #d7dbcf;border-radius:20px 20px 0 0;box-shadow:0 -12px 40px #20321c26;padding-bottom:env(safe-area-inset-bottom);background:#fafaf6}
 .mobile-panel-heading{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:6px 16px;border-bottom:1px solid var(--line)}
 .mobile-panel-heading strong{font-size:14px;font-weight:500}.mobile-panel-heading button{border:0;background:transparent;font-size:28px;width:44px;height:44px}
 .control-panel .panel-heading{display:none}.control-panel .panel-tabs{flex-shrink:0;padding:0 18px}.control-panel .panel-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 18px 24px}.control-panel .panel-footer{display:none}
 .control-panel select,.control-panel input:not([type=range]):not([role=switch]){font-size:16px}
 #presets{flex-wrap:nowrap}#presets button{flex:1 0 auto;min-width:max-content;padding:10px 9px;font-size:10px}
}
/* Tour guidance stays compact; its detailed instructions open only on request. */
#walk-help{left:auto;right:28px;top:84px;padding:0;background:none;max-width:none;pointer-events:auto;z-index:5;font-size:12px;border-radius:0}
#tour-help-toggle{min-height:40px;padding:9px 14px;border:1px solid #fff;border-radius:22px;background:#fafaf4f0;color:#354c3b;font-size:11px}
#tour-instructions{position:absolute;top:48px;right:0;width:300px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 270px);overflow:auto;overscroll-behavior:contain;background:#fffdf7fa;border:1px solid #d9dfcd;border-radius:14px;padding:16px;color:#354c3b;box-shadow:0 8px 28px #172d2426}
#tour-instructions strong{display:block;font-size:12px}#tour-instructions p{font-size:12px;color:#687360;line-height:1.7;margin:9px 0 14px}kbd{font:10px 'DM Sans',sans-serif;border:1px solid #d5ddca;background:#f0f2e9;border-radius:4px;padding:2px 4px;white-space:nowrap}
.tour-stops{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.tour-stops button{border:1px solid #d4dcc9;background:#f3f4ed;border-radius:20px;padding:9px 12px;min-height:40px;font-size:11px}
.touch-help{display:none!important}.movement-hint{display:flex;flex-direction:column;gap:4px;color:#fff;text-shadow:0 1px 4px #000c;font-size:9px;line-height:1.45;margin-top:7px;width:165px}
#enter-house{position:absolute;top:135px;left:28px;z-index:3;background:#405e46;color:#fff;border:1px solid #e1e7d6;border-radius:25px;min-height:44px;padding:11px 20px;font-size:12px;box-shadow:0 3px 14px #21372122}
body.walking .stage-top-label{top:94px}body.device-control-open #walk-help,body.device-control-open #enter-house{display:none}
@media(max-width:760px){#walk-help{top:111px;right:14px}.keyboard-help{display:none!important}.touch-help{display:block!important}.movement-hint{width:155px;font-size:9px}#tour-instructions{max-height:max(100px,calc(100dvh - 440px))}body.walking .stage-top-label{top:116px;max-width:calc(100% - 162px);line-height:1.5}#enter-house{top:168px;left:14px}}
@media(max-height:500px) and (orientation:landscape){#walk-help{top:62px;right:12px}.keyboard-help{display:none!important}.touch-help{display:block!important}.movement-hint{width:155px;font-size:9px}#tour-instructions{max-height:calc(100dvh - 220px)}#enter-house{top:76px;left:50%;transform:translateX(-50%)}body.walking .stage-top-label{display:none}}
@media(max-height:500px) and (orientation:landscape){
 .topbar{height:calc(48px + env(safe-area-inset-top))}.workspace,.controls-collapsed .workspace{height:calc(100dvh - 48px - env(safe-area-inset-top))}
 .stage-toolbar{grid-template-columns:minmax(240px,340px) minmax(180px,1fr) 44px;align-items:center;right:max(8px,env(safe-area-inset-right));left:max(8px,env(safe-area-inset-left))}
 .level-switch{grid-column:2;grid-row:1;justify-self:end}.stage-toolbar>.round-button{grid-column:3}
 #device-popover,body.walking #device-popover{left:auto;right:max(8px,env(safe-area-inset-right));bottom:8px;width:280px;max-height:calc(100% - 64px);column-gap:12px}
 body.device-control-open #walk-controls,#walk-controls{bottom:60px;left:max(10px,env(safe-area-inset-left))}
 .control-panel{inset:0 0 0 auto;height:100%;width:min(380px,62%);border-radius:16px 0 0 16px}
 .stage-top-label{display:none}
}

body.tour-help-open #enter-house{visibility:hidden}

#walk-controls button{width:44px;height:44px;min-width:44px;min-height:44px;font-size:18px}.movement-hint{font-size:11px;width:200px}
@media(max-width:760px), (max-height:500px) and (orientation:landscape){.movement-hint{font-size:10px;width:155px}}

.pointer-active{display:none}body.pointer-captured .pointer-active{display:block}body.pointer-captured .pointer-free{display:none}

.back-to-project{border:1px solid #d3dac9;background:#fafbf3;border-radius:20px;padding:9px 14px;min-height:40px;white-space:nowrap;font-size:11px;color:#40583e}body.embedded-tour .live-tag{display:none}body.embedded-tour .back-to-project{margin-left:auto}@media(max-width:760px){body.embedded-tour .brand{display:none}body.embedded-tour .project-name{border:0;padding-left:0;font-size:20px}body.embedded-tour .back-to-project{font-size:10px;padding:8px 10px}body.embedded-tour .settings-toggle{margin-left:0}}

body.tour-ui-pending :is(.topbar,.stage-toolbar,#enter-house,#walk-help,.stage-top-label,.stage-bottom,#walk-controls,.scene-bar,#labels,#device-pins){opacity:0!important;pointer-events:none!important}
