/* Phase 2: replaces mobile boundary V3; preserves auth, playback and navigation ownership. */
:root{--mx-shell-safe-top:env(safe-area-inset-top,0px);--mx-shell-safe-bottom:env(safe-area-inset-bottom,0px);--mx-shell-safe-left:env(safe-area-inset-left,0px);--mx-shell-safe-right:env(safe-area-inset-right,0px)}
@media(max-width:1050px){
html:has(> body:not(.auth-route,.mx-auth-mockup,.video-playback-active,.mxso-launching):not(:has(.mx-flutter-login))){height:100%!important;overflow:hidden!important}
html{--mx-shell-nav-lane:calc(96px + var(--mx-shell-safe-bottom))}
html[data-mx-unified-nav-owner=""],html[data-mx-unified-nav-hidden="1"]{--mx-shell-nav-lane:var(--mx-shell-safe-bottom)}
html body:not(.auth-route,.mx-auth-mockup,.video-playback-active,.mxso-launching):not(:has(.mx-flutter-login)){height:100vh!important;height:var(--mx-shell-keyboard-height,100dvh)!important;min-height:0!important;max-height:none!important;overflow:hidden!important}
html body:not(.auth-route,.mx-auth-mockup,.video-playback-active,.mxso-launching):not(:has(.mx-flutter-login)) > #app.app-shell{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;height:100vh!important;height:var(--mx-shell-keyboard-height,100dvh)!important;min-height:0!important;max-height:none!important;margin:0 auto!important;padding:var(--mx-shell-safe-top) var(--mx-shell-safe-right) var(--mx-shell-nav-lane) var(--mx-shell-safe-left)!important;overflow:hidden!important;transform:none!important}
html body:not(.auth-route,.mx-auth-mockup,.video-playback-active,.mxso-launching):not(:has(.mx-flutter-login)) > #app.app-shell > header.topbar{position:relative!important;inset:auto!important;flex:0 0 auto!important;margin-block:0!important;padding-top:0!important;transform:none!important}
html body:not(.auth-route,.mx-auth-mockup,.video-playback-active,.mxso-launching):not(:has(.mx-flutter-login)) > #app.app-shell > #page.page{position:relative!important;inset:auto!important;flex:1 1 auto!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;margin-block:0!important;padding-top:0!important;padding-bottom:16px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-bottom:16px;transform:none!important}
html body:not(.auth-route,.mx-auth-mockup,.video-playback-active,.mxso-launching):not(:has(.mx-flutter-login)) > #app.app-shell > #page.page > :is(.mxso-page,.mxss-screen){min-height:0!important;padding-bottom:16px!important}
}
