/* Orbit Profile · compact native iOS date/time inputs.
   The iPhone Safari date/time intrinsic min-content width was overflowing
   the profile form's two-column grid. Keep native picker behaviour. */
@media (max-width:700px) {
  html body .app #onboarding #profileForm,
  html body .app #onboarding #profileForm > .form-row,
  html body .app #onboarding #profileForm > .form-row > .field {
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  html body .app #onboarding #profileForm > .form-row {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:14px!important;
  }
  html body .app #onboarding #profileForm :is(#birth,#birthtime) {
    display:block!important;
    box-sizing:border-box!important;
    inline-size:100%!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-inline-size:0!important;
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    margin:0!important;
    padding:8px 14px!important;
    border-radius:13px!important;
    font-size:16px!important;
    line-height:1.25!important;
    overflow:hidden!important;
    color-scheme:dark;
  }
  /* iOS Safari's native displayed date/time string must not enlarge input. */
  html body .app #onboarding #profileForm :is(#birth,#birthtime)::-webkit-date-and-time-value {
    min-height:0!important;
    max-width:100%!important;
    text-align:left!important;
  }
  html body .app #onboarding #profileForm :is(#birth,#birthtime)::-webkit-datetime-edit {
    min-width:0!important;
    max-width:100%!important;
    padding:0!important;
  }
}
/* At small tablet widths two columns may still be too narrow for the
   native iOS picker. Stack only the date/time rows when necessary. */
@media (min-width:701px) and (max-width:820px) {
  html body .app #onboarding #profileForm > .form-row:has(#birth),
  html body .app #onboarding #profileForm > .form-row:has(#birthtime) {
    grid-template-columns:minmax(0,1fr)!important;
  }
}
