/* ==================================================
   RC16.258 · Mobile Scroll + Icon + Sync Speed
   ================================================== */

/* Guided mode on mobile must end ABOVE the fixed pandabu navigation.
   Reserving only padding inside the stage was insufficient on iOS because the
   fullscreen shell itself still extended behind the fixed bottom bar. */
@media(max-width:899px){
  .rc251-form-shell{
    height:auto!important;
    bottom:calc(var(--nav-h,42px) + env(safe-area-inset-bottom,0px))!important;
  }
  .rc251-form-stage{
    padding-bottom:34px!important;
    scroll-padding-bottom:34px!important;
  }
  .rc251-form-stage .emergency-requirement,
  .rc251-form-stage .emergency-smart-group,
  .rc251-form-stage .emergency-wizard-complete{
    margin-bottom:18px!important;
  }

  /* Normal pages need real scroll room as well. This does not increase the
     navigation bar; it only ensures the final Settings/card/button can be
     scrolled completely above it. */
  body.pandabu-authenticated .page{
    padding-bottom:calc(var(--nav-h,42px) + env(safe-area-inset-bottom,0px) + 18px)!important;
  }
}

/* Avoid Safari repaint gaps while an image is decoded. */
.settings-dashboard-tile img,
.settings-item-icon,
.bottom-nav .nicon img,
.rc251-form-shell img{
  backface-visibility:hidden;
  transform:translateZ(0);
}
