/* AA Gym Round 22: mobile scroll recovery + responsive recent admissions */
html:not(.invpage){height:auto!important;overflow-x:clip!important;overflow-y:auto!important;overscroll-behavior-y:auto!important}
body:not(.invpage){min-height:100svh!important;height:auto!important;overflow-x:clip!important;overflow-y:visible!important;overscroll-behavior-y:auto!important;-webkit-overflow-scrolling:touch!important}
body.aa-authenticated .app{min-height:100svh;max-height:none!important;overflow:visible!important}
#view{min-height:0!important;overflow:visible!important;touch-action:pan-y}
.app{touch-action:pan-y}
#splash.out{pointer-events:none!important}
#scrim:not([style*="display: block"]){touch-action:auto}
.aa-recent-heading{align-items:center}
.aa-recent-switch{display:flex;gap:5px;align-items:center}
.aa-view-button{display:inline-grid;place-items:center;width:38px;height:38px;min-height:38px;border:1px solid #5f6666;background:#3c4444;color:#e5ede5;border-radius:9px;padding:7px;cursor:pointer}
.aa-view-button[aria-pressed="true"]{background:#9fe592;border-color:#9fe592;color:#162314;box-shadow:none}
.aa-view-button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aa-recent-grid{display:flex;flex-direction:column;gap:8px;margin:0 0 17px}
.aa-recent-grid.is-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr));gap:10px}
.aa-recent-entry{padding:10px 12px;min-height:64px;align-items:center}
.aa-recent-entry .aa-recent-icon{width:46px;height:46px;flex:0 0 46px;border-radius:12px;background-size:cover;background-position:center;background-repeat:no-repeat}
.aa-recent-icon.has-photo{color:transparent!important}
.aa-recent-entry .aa-recent-main b{overflow:visible;white-space:normal;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35;font-size:14px}
.aa-recent-entry .aa-recent-main small{overflow-wrap:anywhere}
.aa-recent-grid:not(.is-grid) .aa-recent-entry{min-height:60px}
.aa-recent-grid.is-grid .aa-recent-entry{display:flex;flex-direction:column;align-items:flex-start;min-height:146px;gap:7px}
.aa-recent-grid.is-grid .aa-recent-icon{width:62px;height:62px;flex-basis:62px}
.aa-recent-grid.is-grid .aa-recent-main{width:100%}
.aa-recent-grid.is-grid .tag{align-self:flex-end}
.aa-help-locked{opacity:.75;pointer-events:none}
.aa-shift-manual{background:#343c37;border:1px solid #576657;border-radius:13px;padding:12px;margin:10px 0}
.aa-shift-manual .two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.aa-shift-manual .two>*{min-width:0}
.aa-fin-edit-actions{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}
.aa-fin-edit-actions button{min-height:44px}
@media(max-width:720px){.app{position:static!important;inset:auto!important;transform:none!important;padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}#view{overflow:visible!important;max-height:none!important}.aa-recent-heading h2{font-size:17px}.aa-recent-grid.is-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.aa-recent-entry .tag{font-size:10px}.aa-recent-payment{min-width:0}}
@media(max-width:365px){.aa-recent-grid.is-grid{grid-template-columns:1fr}}
