/* v143.18 — swipe-back : arrivée strictement fixe, sans rebond de bord. */
html.is-ios .sheet-scroll-content.v14315-edge-back-active {
  position: relative !important;
  overflow-x: hidden !important;
  overflow-anchor: none !important;
}

html.is-ios .sheet-scroll-content.v14315-edge-back-active > * {
}

html.is-ios .section-page.edge-back-tracking,
html.is-ios .section-page.v14315-edge-back-finishing {
  position: relative !important;
  z-index: 3 !important;
  min-height: 100% !important;
  background: var(--paper, #fff) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

html.is-ios .section-page.edge-back-tracking {
  transition: none !important;
}

html.is-ios .v14315-edge-back-real-menu {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  will-change: transform, opacity !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* Le contenu derrière est déjà la vraie page : aucune animation interne. */
html.is-ios .v14315-edge-back-real-menu,
html.is-ios .v14315-edge-back-real-menu * {
  animation: none !important;
}

/* v143.18 : aucune ombre latérale mobile. Sur iOS sa disparition au dernier
   frame ressemblait à un petit rebond du côté utilisé pour le geste. */
html.is-ios .section-page.edge-back-tracking::after,
html.is-ios .section-page.v14315-edge-back-finishing::after {
  content: none !important;
  display: none !important;
}

/* Pendant le commit final aucune ancienne animation ne peut reprendre la main. */
body.v14315-edge-back-commit #profile-menu-view,
body.v14315-edge-back-commit #settings-menu-view,
body.v14315-edge-back-commit #profile-menu-view *,
body.v14315-edge-back-commit #settings-menu-view * {
  animation: none !important;
  transition: none !important;
}
body.v14315-edge-back-commit #profile-menu-view,
body.v14315-edge-back-commit #settings-menu-view {
  transform: translate3d(0,0,0) !important;
  opacity: 1 !important;
}

html[data-motion="minimal"].is-ios .v14315-edge-back-real-menu,
html[data-motion="minimal"].is-ios .section-page.v14315-edge-back-finishing {
  transition-duration: 0ms !important;
}


/* v143.16 — aucune correction de layout/scroll pendant le geste. */
html.is-ios .sheet-scroll-content.v14315-edge-back-active .section-page,
html.is-ios .sheet-scroll-content.v14315-edge-back-active .section-menu-view {
  overflow-anchor: none !important;
  scroll-margin: 0 !important;
  scroll-padding: 0 !important;
}


/* v143.17 — le menu parent garde la même géométrie et le même calque de rendu
   lorsqu'il passe de sous-couche interactive à page active. */
html.is-ios #profile-menu-view,
html.is-ios #settings-menu-view {
  display: flow-root;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translate3d(0,0,0);
  will-change: transform;
}

/* Le geste est neutralisé par preventDefault() dès touchstart : inutile de
   changer overflow-y/-webkit-overflow-scrolling et de recréer le scroller iOS. */
html.is-ios .sheet-scroll-content.v14315-edge-back-active {
  overflow-anchor: none !important;
}


/* v143.19 — les flèches ↑/↓ peuvent se trouver dans la zone du bord droit.
   Elles restent totalement neutres pendant un swipe-back : aucun scale,
   transition ou calque enfant indépendant qui pourrait se remettre en place
   après l'arrivée de la page. */
html.is-ios .sheet-scroll-content.v14315-edge-back-active .preference-order-actions,
html.is-ios .sheet-scroll-content.v14315-edge-back-active .preference-order-actions button,
body.v14315-edge-back-commit .preference-order-actions,
body.v14315-edge-back-commit .preference-order-actions button {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}
html.is-ios .sheet-scroll-content.v14315-edge-back-active .preference-order-actions button.v139-pressed,
body.v14315-edge-back-commit .preference-order-actions button.v139-pressed {
  transform: none !important;
}
