/*
 * PokeTeamOn M8.2 v1.4.2.6
 * Bottom-sheet visual-viewport correction.
 *
 * The top handle was cosmetic and not draggable, so it is removed.
 * --ptm8so-keyboard-inset is maintained by the paired local JS asset.
 */
@media (max-width: 820px) {
  [data-m8-mobile-single-owner-root] .ptm8so-handle {
    display: none !important;
  }

  [data-m8-mobile-single-owner-root] .ptm8so-sheet {
    bottom: var(--ptm8so-keyboard-inset, 0px) !important;
    max-height: min(
      82vh,
      calc(var(--ptm8so-visual-viewport-height, 100dvh) - 8px)
    ) !important;
    padding-top: 12px;
    overscroll-behavior: contain;
  }

  [data-m8-mobile-single-owner-root] .ptm8so-picker input {
    scroll-margin-bottom: 12px;
  }
}
