/* Keep standard mobile fields readable before focus, so iOS does not zoom in.
   Do not disable user zoom. Screen-only also preserves printed document sizing.
   PDF overlay fields keep their document coordinates; the signing editor is
   already 16px. Read-only values and non-text controls retain their sizing. */
@media screen and (max-width: 900px), screen and (hover: none) and (pointer: coarse) {
  :root :where(
    input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="file"],
              [type="range"], [type="color"], [type="button"], [type="submit"],
              [type="reset"], [type="image"], [readonly], :disabled, .page .f input),
    select:not(:disabled),
    textarea:not([readonly], :disabled)
  ) {
    /* Important beats compact per-page and inline field styles, not user CSS. */
    font-size: max(16px, 1em) !important;
  }
  /* Preserve the deliberately larger barcode entry field. */
  :root .scan-form input { font-size: max(16px, 1.3rem) !important; }
}
