/* iPhone Safari focuses small native fields by zooming the viewport.
   Load this first layer before the existing theme layers: important declarations
   in the earliest layer keep later compact-field styles from shrinking inputs.
   The existing iPhone marker also covers landscape; manual zoom stays enabled. */
@layer peOperatingIPhoneInputFocus20261030 {
  html.pe87IPhone input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="range"], [type="color"], [type="file"], [type="button"], [type="submit"], [type="reset"], [type="image"]),
  html.pe87IPhone textarea,
  html.pe87IPhone select,
  html.pe87IPhone [contenteditable="true"],
  html.pe87IPhone [contenteditable=""],
  html.pe87IPhone [contenteditable="plaintext-only"] {
    font-size: 16px !important;
  }

  html.pe87IPhone input::-webkit-date-and-time-value {
    font-size: inherit !important;
  }

  html.pe87IPhone input::-webkit-datetime-edit {
    font-size: inherit !important;
  }

  html.pe87IPhone input::-webkit-datetime-edit-fields-wrapper {
    font-size: inherit !important;
  }

  /* Keep the full date readable with the larger native input text. Do not
     override display: closed settings cards must remain collapsed. */
  @media (max-width: 400px) {
    html.pe87IPhone #settingsCWorkspace .adminSemesterPeriodList {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }
}
