/* Keep iOS text autosizing consistent across Safari and Home Screen launches. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Touch devices need readable control text to avoid focus-driven viewport zoom. */
@media (hover:none) and (pointer:coarse){
 input:not([type=checkbox]):not([type=radio]),select,textarea,
 .simple-context input,.simple-context select,.incharge-date input,
 .caregiver-patient select,.directory-filters input,.directory-filters select{
  font-size:16px!important;
 }
}
/* Let narrow standalone windows shrink their grid items naturally. */
.login-wrap,.login-card,.shell,#app-view,main{min-width:0;max-width:100%}
.login-card{width:min(440px,100%)}
.login-wrap{min-height:100vh;min-height:100dvh}
@media(max-width:700px){
 .header-controls{flex-wrap:wrap;min-width:0;max-width:100%}
 #account-name{overflow-wrap:anywhere;min-width:0}
 dialog{box-sizing:border-box;max-width:calc(100% - 24px)}
}
