/* PWA UI only: use existing shell safe areas and navigation lane. */
#mx8Install,#mx8Update{position:fixed;z-index:99998;inset:auto max(12px,env(safe-area-inset-right,0px)) calc(var(--mx-shell-nav-lane,env(safe-area-inset-bottom,0px)) + 12px) max(12px,env(safe-area-inset-left,0px));max-width:460px;margin:auto;box-sizing:border-box;display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#101827;color:#fff;border:1px solid #394052;border-radius:16px;padding:12px;box-shadow:0 8px 32px #0008;font:14px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
#mx8Install>div,#mx8Update>div{flex:1 1 135px;min-width:0}#mx8Install img{border-radius:9px;flex:none}#mx8Install small,#mx8Update small{display:block;color:#c0cad8}#mx8Install button,#mx8Install a,#mx8Update button,#mx8Help button{box-sizing:border-box;min-height:44px;min-width:44px;padding:8px 12px;border:0;border-radius:10px;background:#ff1764;color:#fff;font:600 13px/1.25 system-ui,sans-serif;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;cursor:pointer}#mx8Install [data-close],#mx8Update [data-later],#mx8Help button{background:#253246}#mx8Update [data-now]{background:#f2d13f;color:#111}#mx8Update>div{flex-basis:100%}#mx8Update button{flex:1 1 120px}#mx8Help{position:fixed;inset:0;z-index:99999;background:#000a;display:grid;place-items:center;padding:16px;padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));box-sizing:border-box;overflow:auto}#mx8Help section{width:100%;max-width:360px;max-height:100%;overflow:auto;box-sizing:border-box;background:#101827;color:white;border-radius:18px;padding:20px}#mx8Help h2{font-size:20px}#mx8Help button{width:100%}
body:is(.auth-route,.mx-auth-mockup,.video-playback-active) #mx8Install,body:has(#playerHost > .flutter-global-player) #mx8Install,html[style*="--mx-shell-keyboard-height"] :is(#mx8Install,#mx8Update){display:none!important}
body:has(#playerHost > .flutter-global-player:not(.expanded,.inline-page-player,.mx-floating-video)) #mx8Update{bottom:calc(var(--mx-shell-nav-lane,env(safe-area-inset-bottom,0px)) + 116px)}
body:has(#playerHost > .mx-floating-video) #mx8Update,body.video-playback-active #mx8Update{visibility:hidden;pointer-events:none}
@media(display-mode:standalone){#mx8Install{display:none!important}}
@media(max-height:480px){#mx8Install,#mx8Update{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow:auto}}
