/* Override the quest module's top:20px and the generic centered transform together. */
html[data-client="mobile"] body #quest-window.window-panel{
 position:fixed!important;
 top:calc(var(--mobile-top,0px) + max(12px,env(safe-area-inset-top)))!important;
 left:50%!important;right:auto!important;bottom:auto!important;
 transform:translateX(-50%)!important;
 width:min(460px,calc(100vw - 24px))!important;
 max-width:calc(100vw - 24px)!important;
 height:auto!important;
 max-height:calc(var(--mobile-height,100dvh) - max(12px,env(safe-area-inset-top)) - max(12px,env(safe-area-inset-bottom)))!important;
 box-sizing:border-box!important;padding:12px!important;
 overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y;
}
html[data-client="mobile"] body #quest-window .window-header{
 position:sticky!important;top:-12px!important;z-index:5;
 background:#1e2b3b;padding:6px!important;min-height:44px;box-sizing:border-box;
}
html[data-client="mobile"] body #quest-window .window-header button{min-width:44px;min-height:44px}
