/* The 3D editor is a reversible placement transaction, kept beside the scene. */
.walkthrough .scene-hud-top{right:12px;left:82px;display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;pointer-events:none}
.walkthrough .scene-hud-top>*{pointer-events:auto}
.walkthrough .scene-hud-coords{margin-left:auto}
.walkthrough .scene-wall-switch button{font-size:calc(10px * var(--ui-font-scale,1));padding:7px 9px;white-space:nowrap}
.walkthrough .scene-edit-banner{left:82px;bottom:72px;max-width:min(460px,calc(100% - 102px));width:460px;display:block;padding:16px;border:1px solid var(--rx-line)!important;border-radius:17px;background:linear-gradient(135deg,rgba(var(--rx-surface-rgb),0.949),rgba(var(--rx-surface-rgb),0.937))!important;box-shadow:0 14px 45px rgba(var(--rx-shadow-color-rgb),0.149),inset 0 1px var(--rx-shadow-color)!important;backdrop-filter:blur(18px);color:var(--rx-text)}
.scene-edit-banner header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}
.scene-edit-banner header>span{font-size:calc(9px * var(--ui-font-scale,1));letter-spacing:1.4px;font-weight:800;color:var(--rx-muted)}
.scene-edit-banner header strong{font-size:calc(17px * var(--ui-font-scale,1))}
.scene-edit-banner p{font-size:calc(12px * var(--ui-font-scale,1));line-height:1.45;margin:6px 0 10px}
.scene-draft-coordinates{display:flex;align-items:end;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.scene-draft-coordinates label{font-size:calc(11px * var(--ui-font-scale,1));font-weight:750;display:flex;align-items:center;gap:5px}
.scene-draft-coordinates input{width:78px!important;min-width:0;font-size:calc(13px * var(--ui-font-scale,1));padding:7px!important;background:var(--rx-surface)!important;border:1px solid var(--rx-line)!important;border-radius:7px!important}
.scene-draft-coordinates select{font-size:calc(11px * var(--ui-font-scale,1));padding:7px;background:var(--rx-surface);border:1px solid var(--rx-line);border-radius:7px}
.scene-edit-banner [data-scene-edit-position]{display:block;padding:8px 10px;background:var(--rx-soft);border-radius:8px;line-height:1.4;font-size:calc(12px * var(--ui-font-scale,1));color:var(--rx-accent)!important;margin-bottom:10px}
.scene-edit-banner.invalid [data-scene-edit-position],.scene-edit-banner [data-scene-edit-position].is-invalid{color:var(--rx-danger)!important;background:var(--rx-danger-soft)}
.scene-draft-actions{display:flex;flex-wrap:wrap;gap:6px}
.scene-draft-actions button{padding:8px 10px!important;font-size:calc(11px * var(--ui-font-scale,1));border-radius:8px!important;font-weight:750}
.scene-draft-actions [data-action=scene-edit-save]{background:var(--rx-emphasis)!important;color:var(--rx-on-emphasis)!important;border-color:var(--rx-accent)!important}
.scene-draft-actions [data-action=scene-edit-save]:disabled{background:var(--rx-accent-soft)!important;color:var(--rx-on-emphasis)!important;opacity:.65}
.scene-edit-banner>small{display:block;margin-top:11px;color:var(--rx-muted);line-height:1.5;font-size:calc(9px * var(--ui-font-scale,1))}
.walkthrough:has([data-scene-edit-banner]) .scene-pallet-card{display:none!important}
.scene-edit-rail.expanded{max-height:calc(100% - 142px);overflow-y:auto;scrollbar-width:thin}
@media(max-width:1000px){.walkthrough .scene-occupancy{display:none}.walkthrough .scene-hud-coords{font-size:calc(9px * var(--ui-font-scale,1));margin-left:0}.walkthrough .scene-minimap{width:155px;top:112px}.walkthrough .scene-minimap canvas{width:100%}.walkthrough .scene-hud-top{left:68px}}
@media(max-width:640px){.walkthrough .scene-hud-top{left:50px;right:8px;gap:4px;top:8px}.walkthrough .scene-hud-top button{padding:5px 6px}.walkthrough .scene-wall-switch{order:4}.walkthrough .scene-hud-coords{display:none}.walkthrough .scene-minimap{display:none}.walkthrough .scene-edit-banner{left:50px;bottom:65px;max-width:calc(100% - 58px);padding:10px;width:auto;border-radius:12px}.scene-edit-banner header>span{letter-spacing:.4px}.scene-edit-banner header strong{font-size:calc(13px * var(--ui-font-scale,1))}.scene-edit-banner p{font-size:calc(10px * var(--ui-font-scale,1))}.scene-draft-coordinates input{width:58px!important}.scene-edit-banner>small{font-size:calc(8px * var(--ui-font-scale,1))}.scene-draft-actions button{padding:6px 8px!important}.scene-draft-coordinates{gap:5px}.scene-edit-rail.expanded{max-height:calc(100% - 178px)}}
@media(prefers-reduced-motion:reduce){.scene-edit-banner{transition:none}}

.scene-edit-banner header .scene-panel-toggle{margin-left:auto;width:26px;height:26px;padding:0;border:1px solid var(--rx-line);border-radius:7px;background:var(--rx-surface);color:var(--rx-text);font-size:calc(17px * var(--ui-font-scale,1))}.scene-edit-banner.compact p,.scene-edit-banner.compact .scene-draft-coordinates,.scene-edit-banner.compact>small{display:none}.scene-edit-banner.compact header>span{display:none}.scene-edit-banner.compact [data-scene-edit-position]{font-size:calc(11px * var(--ui-font-scale,1))}.scene-edit-banner.compact .scene-draft-actions [data-action=scene-edit-reset]{display:none}
/* Long guidance must wrap when the user's font size grows on narrow screens. */
.scene-caption{max-width:100%;min-width:0;flex-wrap:wrap}
.scene-caption strong,.scene-caption span{max-width:100%;min-width:0;white-space:normal!important;overflow-wrap:anywhere}
.scene-caption span{flex:1 1 320px}
@media(max-width:640px){.scene-caption{display:block!important}.scene-caption strong,.scene-caption span{display:block}.scene-caption span{margin-top:6px}}
.scene-edit-banner{max-height:calc(100% - 150px);overflow-y:auto;overscroll-behavior:contain}
@media(max-width:640px){.scene-edit-banner{max-height:calc(100% - 170px)}.scene-edit-banner header{position:sticky;top:0;background:rgba(var(--rx-surface-rgb),0.961);z-index:1;padding-block:4px}}
/* Quality control remains visible even when the scene tool drawer is closed. */
.walkthrough .scene-quality-toolbar{position:absolute;z-index:12;top:14px;left:14px;right:14px;display:flex;align-items:center;gap:14px;padding:9px 14px;border-radius:14px;background:rgba(var(--rx-surface-rgb),0.929);color:var(--rx-text);border:1px solid rgba(var(--rx-line-rgb),0.749);box-shadow:0 4px 22px rgba(var(--rx-shadow-color-rgb),0.149);backdrop-filter:blur(24px);font-family:system-ui,sans-serif}
.scene-quality-toolbar>span{font-size:calc(10px * var(--ui-font-scale,1));font-weight:800;letter-spacing:1px;white-space:nowrap}.scene-quality-toolbar>div{display:flex;gap:3px}.walkthrough .scene-quality-toolbar button{border:0!important;background:transparent!important;color:var(--rx-text)!important;border-radius:9px!important;padding:8px 15px;font-size:calc(12px * var(--ui-font-scale,1));font-weight:750}.walkthrough .scene-quality-toolbar button.active{background:var(--rx-accent-soft)!important;color:var(--rx-on-emphasis)!important;box-shadow:0 3px 12px rgba(var(--rx-shadow-color-rgb),0.208)!important}.scene-quality-toolbar small{margin-left:auto;color:var(--rx-muted);font-size:calc(10px * var(--ui-font-scale,1))}
.walkthrough .scene-hud-top{top:78px}.walkthrough .scene-minimap{top:132px}.walkthrough .scene-edit-rail{top:140px}.walkthrough .scene-pallet-card{top:132px;left:82px}.quality-hidden{display:none!important}
.scene-premium-loading{display:none;position:absolute;z-index:15;left:50%;top:50%;transform:translate(-50%,-50%);padding:20px 28px;border-radius:16px;color:var(--rx-on-emphasis);background:rgba(var(--rx-emphasis-rgb),0.918);backdrop-filter:blur(18px);box-shadow:0 16px 50px rgba(var(--rx-shadow-color-rgb),0.333);font-size:calc(14px * var(--ui-font-scale,1))}.premium-loading .scene-premium-loading{display:block}
.scene-visual-panel{position:absolute;z-index:11;top:128px;left:82px;width:220px;max-height:calc(100% - 210px);overflow:auto;border-radius:15px;background:rgba(var(--rx-emphasis-rgb),0.91);color:var(--rx-on-emphasis);box-shadow:0 10px 35px rgba(var(--rx-shadow-color-rgb),0.2);backdrop-filter:blur(22px);border:1px solid rgba(var(--rx-line-rgb),0.133);font-family:system-ui,sans-serif}.scene-visual-panel summary{padding:13px 15px;cursor:pointer;font-size:calc(12px * var(--ui-font-scale,1));font-weight:750}.scene-visual-panel h4{margin:14px 16px 6px;color:var(--rx-muted);font-size:calc(9px * var(--ui-font-scale,1));letter-spacing:1.5px}.walkthrough .scene-visual-panel button{display:block;margin:2px 8px;width:calc(100% - 16px);text-align:left;background:transparent!important;color:var(--rx-on-emphasis)!important;border:0!important;border-radius:7px!important;padding:8px 10px;font-size:calc(12px * var(--ui-font-scale,1))}.walkthrough .scene-visual-panel button:hover{background:var(--rx-accent)!important}.scene-visual-panel label{display:flex;gap:9px;align-items:center;margin:9px 16px;font-size:calc(11px * var(--ui-font-scale,1))}.scene-visual-panel input{width:15px;height:15px;accent-color:var(--rx-accent-soft)}.scene-visual-panel>small{display:block;margin:15px 16px;color:var(--rx-muted);font-size:calc(10px * var(--ui-font-scale,1));line-height:1.7}.premium-scene .scene-minimap{background:rgba(var(--rx-sidebar-rgb),0.91)!important;border-radius:13px!important;box-shadow:0 10px 30px rgba(var(--rx-shadow-color-rgb),0.251)}.premium-scene .scene-minimap span{background:transparent;color:var(--rx-muted)}.premium-scene .scene-pallet-card{top:auto!important;bottom:90px;background:rgba(var(--rx-surface-rgb),0.933)!important;border-radius:17px!important;border-color:rgba(var(--rx-line-rgb),0.6)!important;box-shadow:0 12px 40px rgba(var(--rx-shadow-color-rgb),0.251)!important;backdrop-filter:blur(20px)}.premium-scene .scene-navigation,.premium-scene .scene-control-cluster{background:rgba(var(--rx-emphasis-rgb),0.867)!important;border-radius:12px!important}.premium-scene .scene-navigation button,.premium-scene .scene-control-cluster button{color:var(--rx-on-emphasis)!important;background:transparent!important;border:0!important}.scene-heavy .scene-quality-toolbar small{color:var(--rx-accent)}
@media(max-width:1000px){.scene-quality-toolbar>span{display:none}.scene-quality-toolbar small{max-width:300px}.walkthrough .scene-hud-top{left:68px}.scene-visual-panel{left:68px;width:195px}}
@media(max-width:640px){.walkthrough .scene-quality-toolbar{top:7px;left:7px;right:7px;gap:4px;padding:5px 7px;flex-wrap:wrap}.walkthrough .scene-quality-toolbar button{padding:7px 10px;font-size:calc(11px * var(--ui-font-scale,1))}.scene-quality-toolbar small{width:100%;margin-left:5px;font-size:calc(9px * var(--ui-font-scale,1));max-width:none}.walkthrough .scene-hud-top{top:93px}.walkthrough .scene-edit-rail{top:184px}.scene-visual-panel{top:169px;left:50px;width:190px;max-height:calc(100% - 240px)}.walkthrough .scene-pallet-card{left:50px;max-width:calc(100% - 60px);bottom:72px;padding:10px}.walkthrough .scene-edit-banner{max-height:calc(100% - 235px)}.scene-premium-loading{max-width:80%;text-align:center}.walkthrough .scene-hud-top .scene-aisle-preset{display:none}}
