/* v143.3 — transitions d'onglets strictement horizontales.
   Les anciennes animations de sheet ne doivent plus ajouter de mouvement vertical/diagonal. */

/* Réglages / Notifications / Profil sont désormais des pages : leur surface interne reste fixe.
   Seul le root app-main-page est animé par v1432-tab-swipe.css. */
html #month-settings-sheet.app-main-page > .app-main-page-surface,
html #notification-sheet.app-main-page > .app-main-page-surface,
html #profile-sheet.app-main-page > .app-main-page-surface,
html[data-ui-theme="standard"] #month-settings-sheet.app-main-page > .sheet,
html[data-ui-theme="standard"] #notification-sheet.app-main-page > .sheet,
html[data-ui-theme="standard"] #profile-sheet.app-main-page > .sheet {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
  transform-origin: 50% 50% !important;
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}

/* Même règle pour le snapshot de la page quittée : aucune animation interne ne doit
   s'ajouter au translateX du ghost. */
body.v1432-tab-transition .v1432-swipe-ghost .app-main-page-surface,
body.v1432-tab-transition .v1432-swipe-ghost .sheet {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
  transform-origin: 50% 50% !important;
  transition: none !important;
  animation: none !important;
  will-change: auto !important;
}

/* Les roots entrant/sortant sont contraints à un repère horizontal pur. */
body.v1432-tab-transition > #month-settings-sheet.app-main-page,
body.v1432-tab-transition > #notification-sheet.app-main-page,
body.v1432-tab-transition > #profile-sheet.app-main-page,
body.v1432-tab-transition > main.page {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  transform-origin: 50% 50% !important;
}

/* Évite qu'une transition héritée continue après la fin du swipe. */
#month-settings-sheet.app-main-page.open,
#notification-sheet.app-main-page.open,
#profile-sheet.app-main-page.open {
  transition: none !important;
}
