/* Soroban Academy R61 — stable shell: normal document scrolling, one visible screen. */
#loginScreen.hidden,#purchaseScreen.hidden,#app.hidden{display:none!important}
body.r57-login-mode #app,body.r57-login-mode #purchaseScreen{display:none!important}
body.r57-app-mode #loginScreen,body.r57-app-mode #purchaseScreen{display:none!important}
body.r57-purchase-mode #loginScreen,body.r57-purchase-mode #app{display:none!important}
html.r57-shell{height:auto!important;min-height:100%!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:auto!important}
html.r57-shell body{height:auto!important;min-height:100dvh!important;max-height:none!important;margin:0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch!important}
body.r57-login-mode #loginScreen,body.r57-purchase-mode #purchaseScreen{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important;z-index:auto!important}
body.r57-app-mode #app{display:block!important;width:100%!important;height:auto!important;min-height:100dvh!important;max-height:none!important;overflow:visible!important}
body.r57-app-mode #app>header.top{position:sticky!important;top:0!important;z-index:40!important}
body.r57-app-mode #app>main,body.r57-app-mode #app>section{display:block;width:100%!important;height:auto!important;min-height:calc(100dvh - 62px)!important;max-height:none!important;overflow-y:visible!important;overflow-x:clip!important;touch-action:pan-y!important;overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch!important}
body.r57-app-mode #app>main.hidden,body.r57-app-mode #app>section.hidden{display:none!important}
body.r57-app-mode #loginScreen.login{display:none!important}
body.r57-purchase-mode #purchaseScreen.hidden{display:none!important}
@media(max-width:760px){body.r57-app-mode #app>header.top{padding:8px 10px!important;min-height:58px}body.r57-app-mode #app>main,body.r57-app-mode #app>section{padding-bottom:max(28px,env(safe-area-inset-bottom))!important}}
