/* V100: existing design preserved; only scroll containment and low-cost rendering safeguards. */
#modal{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))!important;align-items:flex-start!important}
#modal>.card{width:min(980px,100%)!important;max-height:calc(100dvh - 20px)!important;margin:auto!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
#modal>.card>.body{min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;padding-bottom:max(14px,env(safe-area-inset-bottom))!important}
#modalBody{min-height:0!important;overflow:visible!important}
#nextWeek,.weekResultActions{position:sticky!important;bottom:0!important;z-index:8!important}
#nextWeek{box-shadow:0 -8px 20px rgba(5,18,32,.14)!important}
html.portalViewMobile #modal>.card{max-height:calc(100dvh - 12px)!important;border-radius:18px!important}
html.portalViewMobile #modal>.card>.body{padding-left:12px!important;padding-right:12px!important}
body.wos-low-power .goalBurst,body.wos-low-power .goalFX,body.wos-low-power .flashText{animation-duration:.45s!important}
body.wos-background-sync .goalBurst,body.wos-background-sync .goalFX,body.wos-background-sync .flashText{animation:none!important;transition:none!important}
