/* Keep touch form text readable without changing the viewport or user zoom.
   Small editable text can trigger browser focus magnification. The inherited
   size remains available when surrounding text is already larger than 16px. */
@media (any-pointer: coarse), (max-width: 767px) {
  html
    body
    :is(
      input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
          [type="file"]
        ):not([type="hidden"]):not([type="button"]):not([type="submit"]):not(
          [type="reset"]
        ):not([type="image"]):not([type="color"]),
      select,
      textarea
    ) {
    /* Override legacy per-field sizes, including fields created in dialogs. */
    font-size: max(16px, 1em) !important;
  }
}
