/* Shared brand, unit controls, and a chat tray with a collision-aware launcher. */
.siteHeader .headerRight{gap:18px;align-items:center}.siteHeader .vpOfficialLogo{display:block;width:170px;max-width:15vw;height:auto;object-fit:contain;flex:none}.unitSwitch{display:flex;align-items:center;gap:8px;white-space:nowrap}.unitSwitch button{font:12px 'Roboto Mono',monospace;color:#ffffffb8;padding:8px 3px;border:0;border-bottom:1px solid transparent;background:none}.unitSwitch button[aria-pressed=true]{color:white;border-bottom-color:white}.languageSwitch{margin-right:8px}.heroDoor img.doorPlannerLogo{display:block;width:clamp(130px,18vw,290px);max-width:65%;height:auto;max-height:none;object-fit:contain}.vpOfficialLogo{aspect-ratio:512/95}
body .vpChat,body.studioMode .vpChat,body.journeyMode .vpChat,body.heroChatRaised .vpChat,body .editorDialog .vpChat{position:fixed!important;left:var(--chat-left,auto)!important;right:auto!important;top:var(--chat-top,100px)!important;bottom:auto!important;max-height:var(--chat-height,70dvh)!important;z-index:160;border-radius:12px;transform:none!important}
body .vpChat.minimized,body.studioMode .vpChat.minimized,body.journeyMode .vpChat.minimized,body .editorDialog .vpChat.minimized{left:var(--chat-left,auto)!important;right:auto!important;top:var(--chat-top,100px)!important;bottom:auto!important;width:54px!important;height:54px!important;min-height:54px!important;max-height:54px!important;border-radius:50%}
body .vpChat:not(.minimized),body.studioMode .vpChat:not(.minimized),body.journeyMode .vpChat:not(.minimized){width:min(400px,calc(100vw - 30px))!important;display:flex;flex-direction:column;height:auto!important;max-height:var(--chat-height,70dvh)!important}
body .vpChat:not(.minimized)>header{flex:none;min-height:54px!important;height:auto!important;padding:12px 18px!important}body .vpChat:not(.minimized) .vpChatBody{flex:1;min-height:0;max-height:calc(var(--chat-height,70dvh) - 65px)!important;overflow:auto;overscroll-behavior:contain;padding:16px}
.vpComposer{display:grid;gap:10px;margin:0 0 18px}.vpChat .vpComposer label{font:500 15px Roboto,Arial,sans-serif}.vpChat .vpComposer textarea{display:block;resize:vertical;min-height:90px;width:100%;padding:12px;border:1px solid #061d3050;border-radius:5px;background:white;color:#061d30;font:14px/1.5 Roboto,Arial,sans-serif;box-sizing:border-box}.vpChat .vpComposer button[type=submit]{background:#061d30;color:white;border:1px solid #061d30;font-size:14px;padding:12px}.vpChat .vpHelp{font-size:12px;border:none;text-decoration:underline}.vpChat .vpBriefOptions>summary{font-size:13px;margin:12px 0;cursor:pointer}.vpChat .vpMessages{max-height:180px;font-size:14px}.vpChat .vpMessages .vpUserMessage{background:#061d30;color:#fff;margin-left:15px;border-radius:10px 0 10px 10px}.vpChat .vpVoiceNote{font-size:12px}.vpChat button{min-height:36px}.vpChat .vpComposer [disabled]{opacity:.6}.vpChat .vpComposer textarea:focus{outline:2px solid #061d30;outline-offset:2px}
body .vpChat.minimized .vpMin:after{content:'Chat'!important;font:12px 'Roboto Mono',monospace!important}.vpChat.minimized>header{cursor:pointer}.jTopOptions .unitSwitch{gap:8px}.jTopOptions .unitSwitch button{font-size:12px}
@media(max-width:760px){.siteHeader .headerRight{gap:8px}.siteHeader .vpOfficialLogo{width:92px;max-width:23vw}.siteHeader .languageSwitch{margin:0}.siteHeader .languageSwitch button,.unitSwitch button{font-size:11px}.unitSwitch{gap:5px}.siteHeader .headerRight{flex-wrap:wrap;justify-content:flex-end;max-width:180px}.siteHeader .vpOfficialLogo{flex-basis:100%;margin-left:auto;max-height:20px}.jTopOptions{gap:10px}.jTopOptions .unitSwitch button{font-size:11px}.jTopOptions .unitSwitch{gap:5px}}
.tourLibrary{width:min(1440px,96vw);height:90dvh;max-width:96vw;max-height:94dvh;padding:0;background:#061d30;color:white;border:1px solid #ffffff40}.tourLibrary::backdrop{background:#061d30e8}.tourLibrary>header{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;min-height:65px}.tourLibrary label{display:flex;align-items:center;gap:18px}.tourLibrary select{background:#061d30;color:white;border:1px solid #fff6;padding:10px;font-size:16px;max-width:65vw}.tourLibraryClose{font-size:30px;width:44px;height:44px;color:white}.tourLibrary iframe{display:block;border:0;width:100%;height:calc(100% - 120px);background:#061d30}.tourLibrary>a{display:block;color:white;padding:14px 20px;font-size:14px}
@media(max-width:760px),(max-width:960px) and (max-height:500px){body>header.siteHeader .headerRight{display:flex;flex-wrap:nowrap;max-width:none;height:44px;gap:8px}body>header.siteHeader .vpOfficialLogo{width:80px;max-width:80px;max-height:24px;flex-basis:auto;margin:0}body>header.siteHeader .languageSwitch button{min-width:28px;min-height:40px;font-size:12px}body>header.siteHeader .unitSwitch button{min-width:24px;min-height:40px;font-size:12px}body>header.siteHeader .languageSwitch{display:flex;gap:0}.unitSwitch{gap:2px}.jTopOptions{gap:8px}#journey .jTop>img{display:none}#journey .jTopOptions .unitSwitch button{min-width:26px;padding:5px 1px}#journey .jTopOptions{gap:7px}}
@media(max-width:360px){body>header.siteHeader .vpOfficialLogo{width:60px;max-width:60px}body>header.siteHeader .headerRight{gap:4px}body>header.siteHeader .languageSwitch button{min-width:24px}body>header.siteHeader .unitSwitch button{min-width:20px}}

.scenePeopleControl{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:15px;color:#fff;margin:16px 0}.scenePeopleControl input{width:20px;height:20px}.scenePeopleControl select{width:auto;min-height:40px;font-size:15px}.scenePeopleControl small{flex-basis:100%;font-size:13px}

#viewportVFX{position:absolute;left:50%;top:auto;bottom:160px;transform:translateX(-50%);z-index:19;pointer-events:auto;touch-action:manipulation;border:1px solid #ffffff80;border-radius:24px;padding:10px 15px;color:white;background:#142b42d9;font-size:13px;letter-spacing:.08em;cursor:pointer;min-height:42px}
#viewportVFX[aria-pressed="true"]{background:#e8eef3;color:#142b42}
@media(max-width:760px),(max-width:960px) and (max-height:500px){#viewportVFX{bottom:calc(var(--mobile-steps,68px) + 184px);padding:9px 12px}}

#studio .viewport>#fpsReadout{position:absolute;top:100px;left:50%;transform:translateX(-50%);z-index:19;pointer-events:none;margin:0;padding:5px 10px;border-radius:12px;background:#061d30b8;color:#fff;opacity:1;font:12px monospace;font-variant-numeric:tabular-nums}
#fpsReadout:empty{display:none}
.sceneDecorControl{margin-top:8px}
@media(max-width:760px),(max-width:960px) and (max-height:500px){#studio .viewport>#fpsReadout{top:calc(var(--mobile-header,112px) + 8px)}}
@media(max-width:960px) and (max-height:500px){#viewportVFX{bottom:calc(var(--mobile-steps,68px) + 144px)}}

/* Additional media gallery: originals stay clear of the room's blue vignette. */
#journey .jPhotoGallery{display:flex;flex-direction:column;align-items:center;gap:12px;flex:1;min-height:0;width:100%;overflow:hidden;background:#080b0e}
#journey .jPhotoGallery>#jGalleryImage{display:block;width:100%;flex:1;min-height:0;object-fit:contain;filter:none;opacity:1;mix-blend-mode:normal}
.jGalleryControls{display:flex;align-items:center;justify-content:center;gap:24px;color:#fff;font-size:14px}
.jGalleryControls button{width:44px;height:44px;border:1px solid #ffffff70;border-radius:50%;color:#fff;font-size:24px}
.jGalleryThumbs{display:flex;gap:8px;max-width:100%;overflow:auto;padding:4px;flex-shrink:0}
.jGalleryThumbs button{padding:2px;border:2px solid transparent;flex:0 0 88px;height:56px}
.jGalleryThumbs button[aria-pressed=true]{border-color:#fff}
#journey .jGalleryThumbs img{display:block;width:100%;height:100%;object-fit:cover;filter:none;opacity:1}

#journey .jGalleryControls #jGalleryFullscreen{width:auto;padding:0 14px;border-radius:22px;font-size:13px}
#journey.galleryExpanded{z-index:1000}
#journey .jMedia.galleryFullscreen,#journey .jMedia:fullscreen{inset:0;padding:20px 3vw!important;width:100%;height:100dvh;background:#080b0e;backdrop-filter:none;animation:none}
#journey .jMedia.galleryFullscreen .jMediaClose{top:12px;right:14px;background:#080b0ed9}
#journey .jMedia.galleryFullscreen .jGalleryThumbs,#journey .jMedia.galleryFullscreen .jMediaBar{display:none}
#journey .jPhotoGallery>#jGalleryImage{touch-action:pan-y}
@media(max-width:760px){#journey .jGalleryControls{gap:10px}#journey .jGalleryControls #jGalleryFullscreen{font-size:11px;padding:0 9px}}

.peopleEditActions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.peopleEditActions[hidden],.peopleRemovalNotice[hidden]{display:none!important}.peopleEditActions button{padding:9px 12px;border:1px solid #ffffff70;border-radius:4px;min-height:42px}.peopleEditActions button:disabled{opacity:.35}.peopleEditActions small{width:100%}
.peopleRemovalNotice{position:absolute;z-index:20;top:150px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;max-width:90%;padding:10px 14px;color:#fff;background:#061d30e8;border:1px solid #ffffff80;border-radius:6px;font-size:14px}.peopleRemovalNotice button{padding:8px 12px;border:1px solid #fff;border-radius:4px}

.studioPanel .layouts button svg{width:64px;height:48px;display:block;margin:0 auto 5px}.studioPanel .layouts button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:84px}
.viewportEffects{position:absolute;left:50%;bottom:160px;transform:translateX(-50%);z-index:22;display:flex;gap:8px;white-space:nowrap;pointer-events:auto}.viewportEffects #viewportVFX{position:static;transform:none}.viewportEffects #shadowLight{border:1px solid #ffffff80;border-radius:24px;padding:10px 15px;color:#fff;background:#142b42e8;font-size:13px;min-height:42px;cursor:pointer;touch-action:manipulation}
.shadowSettings{position:absolute;z-index:25;left:50%;bottom:216px;transform:translateX(-50%);width:min(370px,calc(100% - 24px));max-height:min(55vh,560px);overflow:auto;padding:16px;background:#10283cf5;color:#fff;border:1px solid #ffffff80;border-radius:10px;box-shadow:0 12px 40px #0008;pointer-events:auto}.shadowSettings[hidden]{display:none!important}.shadowSettings .shadowHeading{display:flex;justify-content:space-between;align-items:center}.shadowHeading button{border:0;background:transparent;color:inherit;font-size:24px;cursor:pointer}.shadowSettings p{font-size:12px;line-height:1.4;white-space:normal}.shadowSettings label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;font-size:12px}.shadowSettings input[type=number],.shadowSettings select{width:112px;min-height:32px;background:#fff;color:#142b42;border:0;border-radius:3px;padding:5px}.shadowSettings input[type=checkbox]{width:20px;height:20px}.shadowSettings [data-reset]{padding:8px 12px;background:transparent;color:inherit;border:1px solid #ffffff80;border-radius:4px;cursor:pointer}
@media(max-width:760px),(max-width:960px) and (max-height:500px){.viewportEffects{bottom:calc(var(--mobile-steps,68px) + 184px)}.shadowSettings{bottom:calc(var(--mobile-steps,68px) + 238px);max-height:45vh}.viewportEffects #shadowLight{padding:9px 12px}}
@media(max-width:960px) and (max-height:500px){.viewportEffects{bottom:calc(var(--mobile-steps,68px) + 144px)}.shadowSettings{bottom:calc(var(--mobile-steps,68px) + 198px);max-height:40vh}}

/* Desktop keeps the existing effects position; only mobile moves it top-left. */
#effectsMenuButton{border:1px solid #ffffff80;border-radius:24px;padding:10px 15px;color:#fff;background:#142b42e8;font-size:13px;min-height:44px;cursor:pointer;touch-action:manipulation}
#effectsMenuButton[aria-expanded=true]{background:#e8eef3;color:#142b42}
#viewportVFX[hidden],#effectsPeopleMenu[hidden]{display:none!important}
#effectsPeopleMenu{position:absolute;z-index:35;left:50%;bottom:216px;transform:translateX(-50%);width:min(360px,calc(100% - 24px));max-height:55vh;overflow:auto;box-sizing:border-box;padding:16px;background:#10283cf5;color:#fff;border:1px solid #ffffff80;border-radius:12px;box-shadow:0 12px 40px #0008;pointer-events:auto}
.effectsMenuHeading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.effectsMenuHeading button{color:inherit;background:transparent;border:0;font-size:26px;min-width:44px;min-height:44px}
#effectsPeopleMenu .scenePeopleControl{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0;padding:12px 0;border-bottom:1px solid #ffffff30;color:inherit}
#effectsPeopleMenu input[type=checkbox]{width:22px;height:22px;flex:none}#effectsPeopleMenu select{min-height:44px;width:auto;background:#fff;color:#142b42;padding:6px}#effectsPeopleMenu small{flex-basis:100%}#effectsPeopleMenu .peopleEditActions{margin-top:12px}
@media(max-width:760px),(max-width:960px) and (max-height:500px){.viewportEffects{left:max(12px,env(safe-area-inset-left));top:calc(var(--mobile-header,100px) + 12px + env(safe-area-inset-top));bottom:auto;transform:none;max-width:calc(100% - 24px);flex-wrap:wrap}#effectsPeopleMenu{left:max(12px,env(safe-area-inset-left));top:calc(var(--mobile-header,100px) + 68px + env(safe-area-inset-top));bottom:auto;transform:none;max-height:calc(100dvh - var(--mobile-steps,68px) - 150px)}.shadowSettings{left:12px;top:calc(var(--mobile-header,100px) + 68px + env(safe-area-inset-top));bottom:auto;transform:none}}
