/* Native elastic surface for gestures that begin on fixed controls or tools.
   Ordinary page lists retain their own native scroller; no JS pull animation. */
@media (pointer: coarse), (display-mode: standalone) {
  body.case-route #app { overflow-anchor: none; }
  /* Clip swipe rows without making each row an invisible scroll container. */
  @supports (overflow: clip) {
    :is(.task-swipe-row,.case-swipe-row,.document-swipe-row,.calendar-event-swipe-row,.plan-swipe-row,.notification-swipe-row,.upload-history-row) { overflow: clip; }
  }
  html {
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
  }
  html body {
    position: relative !important;
    inset: auto !important;
    height: auto !important;
    min-height: calc(100lvh + 1px) !important;
    overflow: visible !important;
    overscroll-behavior-y: contain !important;
  }
  body::before {
    content: '';
    display: block;
    height: 1px;
    margin-bottom: -1px;
    pointer-events: none;
    scroll-snap-align: start;
  }
  body::after {
    content: '';
    display: block;
    height: 1px;
    pointer-events: none;
    scroll-snap-align: none;
  }
}
