@media (any-pointer: coarse) {
  html, body { touch-action: pan-x pan-y; }

  /* A smaller editable font makes iPhone Safari magnify the field on focus. */
  :where(input:not(:is([type=hidden], [type=button], [type=submit], [type=reset],
                       [type=checkbox], [type=radio], [type=range], [type=color],
                       [type=file], [type=image])), textarea, select, [contenteditable=true]) {
    font-size: max(16px, 1em) !important;
  }
}
