/* Shared form sizing for the private administration pages. */
body.admin-page {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/*
 * Labels are intentionally smaller than body text. Controls must not inherit
 * that size: Safari automatically zooms focused fields below 16 CSS pixels.
 * The rem value also respects a larger user-selected root font size.
 */
body.admin-page :is(
  input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
  select,
  textarea
) {
  font-size: max(16px, 1rem) !important;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

/*
 * Guest and invoice forms use fieldsets. Their default min-content minimum can
 * force the containing form wider than a phone when native controls grow.
 * Let the existing responsive grids determine the width instead.
 */
body.admin-page fieldset {
  min-inline-size: 0;
  max-inline-size: 100%;
}
