/* Dedicated scene controls. Keep these rules after the shared interface styles. */
body[data-mtr-view="scene"] #sceneControls{display:flex;position:fixed;z-index:65;top:86px;left:50%;transform:translateX(-50%);gap:6px;max-width:calc(100vw - 24px);padding:7px;border:1px solid var(--mg-line,#63818d);border-radius:16px;background:var(--mg-glass-strong,#152c38);color:var(--mg-text,#edf7fa);box-shadow:0 8px 26px #0003}
#sceneControls{display:none}#sceneControls button,#sceneControls select{min-height:42px;padding:8px 12px;border:1px solid var(--mg-line,#63818d);border-radius:10px;background:var(--mg-glass-soft,#243e4c);color:inherit;font:inherit;font-size:13px;cursor:pointer}#sceneControls [aria-pressed="true"]{background:#27677b;color:#fff}#sceneControls [hidden]{display:none}
#sceneControls button{white-space:nowrap;min-width:42px}#sceneControls select{width:auto;min-width:0}#sceneControls{width:max-content}
#sceneDesigner label{white-space:normal;overflow-wrap:anywhere}
#app canvas{touch-action:none}
body[data-mtr-view="scene"] #mtrAppShell,body.mtr-worker-mode #panel{display:none!important}
body.mtr-worker-mode #app{left:365px;width:calc(100vw - 365px)}
@media(min-width:761px){body.mtr-worker-mode #mtrSceneBar.worker{left:12px;right:auto;width:330px;box-sizing:border-box}}
body.mtr-worker-mode #sceneControls [data-scene-photos]{display:none}
#mtrSceneBar.worker .workerDockHead{position:sticky;top:0;z-index:2;padding:8px 0;background:var(--mg-glass-strong,#152c38)}
.worker-no-photo{display:block;margin-bottom:4px}
body.scene-designing #sceneControls,body.scene-designing #jarvisDeskNav,body.scene-designing #mtrSceneBar,body.scene-designing #warehouseSummary,body.scene-designing #panel{display:none!important}
#sceneDesigner{position:fixed;inset:16px auto 16px 16px;z-index:95;width:350px;max-width:calc(100vw - 32px);overflow:auto;padding:20px;border-radius:20px;border:1px solid var(--mg-line,#63818d);background:var(--mg-glass-strong,#152c38);color:var(--mg-text,#edf7fa);box-shadow:0 12px 40px #0004;font:14px/1.5 system-ui}
#sceneDesigner header{display:flex;justify-content:space-between;gap:12px;align-items:center}#sceneDesigner h2{margin:4px 0;font-size:23px}#sceneDesigner label{display:flex;flex-direction:column;gap:5px;margin:10px 0}#sceneDesigner input,#sceneDesigner select,#sceneDesigner button{box-sizing:border-box;min-height:42px;max-width:100%;padding:8px;border:1px solid var(--mg-line,#63818d);border-radius:8px;background:var(--mg-glass-soft,#243e4c);color:inherit;font:inherit}#sceneDesigner button{cursor:pointer}#sceneDesigner button:disabled{opacity:.5;cursor:default}#sceneDesigner input[type="color"]{width:100%;padding:3px}.design-two{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}.design-two>*{min-width:0}.design-fields{border:0;padding:0;margin:0}.design-fields>button{width:100%;margin:8px 0}.design-note{font-size:12px;line-height:1.6;color:var(--mg-muted,#bed0d8)}#sceneDesigner .design-check{flex-direction:row;align-items:center;gap:10px}#sceneDesigner .design-check input{min-height:20px;width:20px;flex-shrink:0}.design-publish{border-block:1px solid var(--mg-line,#63818d);margin:14px 0;padding:10px 0}.design-publish button{width:100%}[data-status]{overflow-wrap:anywhere}
.worker-photo-toggle{display:flex!important;flex-direction:row!important;align-items:center;gap:8px}.worker-photo-toggle input{width:18px!important;min-height:18px!important}.worker-photo{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:8px;float:left;margin:0 10px 6px 0;cursor:zoom-in}.worker-no-photo{font-size:11px;opacity:.75}.product-photo-dialog{padding:20px;border:1px solid #6c8894;border-radius:16px;background:#17313e;color:#fff;max-width:90vw}.product-photo-dialog img{display:block;max-width:75vw;max-height:70vh;object-fit:contain}.product-photo-dialog::backdrop{background:#00101db3}.product-photo-dialog button{min-height:44px;float:right}
body.scene-designing #app{left:390px;width:calc(100vw - 390px)}
body.scene-extra .workerHallContent,#mtrSceneBar.worker.is-compact .workerHallContent{display:none}
body.mtr-worker-mode #sceneControls{top:12px;left:auto;right:12px;transform:none}body.mtr-worker-mode #sceneControls [data-scene-hall]{display:none}body.mtr-worker-mode #sceneControls [data-scene-view]{max-width:155px}
@media(min-width:761px){body.mtr-worker-mode #sceneControls{max-width:calc(100vw - 390px);overflow-x:auto}}
@media(max-width:760px){body[data-mtr-view="scene"] #sceneControls{top:68px;width:calc(100vw - 16px);max-width:none;box-sizing:border-box;gap:4px;overflow-x:auto;border-radius:12px;padding:5px}#sceneControls button,#sceneControls select{padding:7px;font-size:12px;flex-shrink:0}body.mtr-worker-mode #sceneControls{top:8px;left:8px;right:8px;transform:none}#sceneDesigner{inset:auto 8px 8px;width:auto;max-width:none;max-height:48dvh;padding:14px}body.scene-designing #app{left:0;width:100vw;height:49dvh}body.mtr-worker-mode #mtrSceneBar.worker{max-height:45dvh}}
@media(max-width:760px){body.mtr-worker-mode #app{left:0;width:100vw;height:52dvh}body.mtr-worker-mode.worker-compact #app{height:calc(100dvh - 130px)}body.mtr-worker-mode #sceneControls [data-fit]{display:none}}
