/* Keep the browser viewport stationary. Route changes scroll this existing
   element instead of window.scrollTo + a document-height change (iOS flash).
   Do not promote content with transforms or mask navigation with animations. */
html.fit-app-viewport, html.fit-app-viewport body { width: 100%; height: 100%; overflow: hidden; }
html.fit-app-viewport body { position: fixed; inset: 0; padding-bottom: 0; }
.app-shell[data-scroll-root] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  overflow-anchor: none;
  scroll-behavior: auto;
  padding-bottom: calc(99px + env(safe-area-inset-bottom));
}
html.yoga-focus .app-shell[data-scroll-root],
html.workout-summary-open .app-shell[data-scroll-root] { overflow: hidden; }
