/* The detector adds mca-dashboard-app only to installed phone/tablet apps.
   Ignore the legacy scroll-time visualViewport top calculation: using both
   top and bottom was moving the bar during iOS elastic scroll. SuperPWA and
   the existing keyboard/course-player rules still decide its visibility. */
html.mca-dashboard-app[data-mca-installed-shell="1"] body > #superpwa-nbfp-menu-wrapper {
  position: fixed !important;
  top: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  transform: none !important;
  translate: none !important;
}

/* Stop native scroll chaining/refresh at the document edge. The progress
   panels retain their own scrolling, touch handlers and pinch zoom. */
html.mca-learning-progress-app[data-mca-installed-shell="1"],
html.mca-learning-progress-app[data-mca-installed-shell="1"] body,
html.mca-puzzle-progress-app[data-mca-installed-shell="1"],
html.mca-puzzle-progress-app[data-mca-installed-shell="1"] body {
  overscroll-behavior-y: none !important;
}
