/* Model-first viewport. The scene and its inspector are the only surfaces. */
html:has(body[data-immersive]){height:100%;overflow:hidden;color-scheme:dark;background:#101b28}
body[data-immersive]{margin:0!important;height:100dvh!important;overflow:hidden!important;overscroll-behavior:none;color-scheme:dark;background:#101b28!important;color:#eaf0f5}
body[data-immersive]>header,body[data-immersive]>footer{display:none!important}
body[data-immersive] main{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;max-width:none!important;display:block!important;overflow:hidden!important;background:#101b28!important;color:#eaf0f5}
body[data-immersive] .viewer{position:absolute!important;inset:0!important;height:100%!important;width:100%!important;min-height:0!important;max-height:none!important}
body[data-immersive] #stage,body[data-immersive] #scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;touch-action:none}
/* Drawing-buffer pixels must never become CSS pixels on Retina screens. */
body[data-immersive] #stage>canvas,body[data-immersive] #scene>canvas{display:block;width:100%!important;height:100%!important;max-width:100%;touch-action:none}
body[data-immersive] #app>:not(.viewer):not(.floating-info):not(.model-vr-entry):not(.model-vr-dialog),
body[data-immersive] .viewer>:not(#stage):not(#loading):not(#status):not(.temperature-dock),
body[data-immersive] main:not(#app)>:not(#scene):not(#inspector):not(#loading):not(.floating-info):not(.model-vr-entry):not(.model-vr-dialog){display:none!important}
body[data-immersive] #inspector,body[data-immersive] .floating-info{display:block!important;position:absolute!important;top:auto!important;bottom:calc(18px + env(safe-area-inset-bottom))!important;right:18px!important;left:auto!important;box-sizing:border-box!important;width:min(270px,calc(100% - 28px))!important;max-width:calc(100% - 28px)!important;max-height:min(34dvh,280px)!important;overflow:auto;z-index:35!important;direction:rtl;border-radius:18px!important;background:#10212aef!important;border:1px solid #d2e5ed26!important;color:#e5edf1;box-shadow:0 14px 60px #0005;backdrop-filter:blur(20px);padding:16px!important}
body[data-immersive] #inspector[hidden],body[data-immersive] .floating-info[hidden]{display:none!important}
body[data-immersive] #inspector h2,body[data-immersive] .floating-info h2{font-size:21px;margin:4px 0 9px}
body[data-immersive] #inspector p,body[data-immersive] .floating-info p{font-size:15px;line-height:1.75;margin:8px 0;color:#c8d6de}
body[data-immersive] #inspector button,body[data-immersive] .floating-info button{cursor:pointer}
body[data-immersive] #inspector .close,body[data-immersive] .floating-info-close{position:absolute;left:8px;right:auto;top:7px;min-width:36px;min-height:36px;border:0;background:transparent;color:#dce5eb;font-size:25px}
body[data-immersive] .temperature-dock{position:absolute!important;left:calc(14px + env(safe-area-inset-left))!important;bottom:calc(20px + env(safe-area-inset-bottom))!important;top:auto!important;z-index:25;background:#10212abb!important;border:1px solid #d2e5ed22;border-radius:22px;padding:13px 8px!important;box-shadow:none!important}
body[data-immersive] .temperature-dock>span{display:none!important}
body[data-immersive] .temperature-dock[hidden]{display:none!important}
body[data-immersive] .temperature-dock input{touch-action:auto}
body[data-immersive] dialog:not([open]){display:none}

body[data-immersive] #inspector,body[data-immersive] .floating-info{overflow-wrap:anywhere;transform:none!important;margin:0!important}
