@media (any-pointer: coarse) {
  /* Apply at the viewport and at the app's own scrolling surfaces. */
  html, body, .phone, .phone > main {
    touch-action: pan-x pan-y !important;
  }

  html, body, .phone > main {
    overscroll-behavior-y: none;
  }

  /* Nested scrollers also participate in double-tap gesture detection. */
  :where(.phone *) {
    touch-action: pan-x pan-y;
  }

  /* An important layered rule also covers lazy-loaded page styles. */
  @layer mobileInputMinimum {
    html body :is(input:not([type]), input[type="text"], input[type="search"],
    input[type="email"], input[type="tel"], input[type="url"], input[type="password"],
    input[type="number"], input[type="date"], textarea, [contenteditable="true"]) {
      font-size: max(16px, 1em) !important;
    }
  }
}
