/* V157 — iPhone: physical viewport caps for form fields, not merely 100% of overflowing parents. */
@media (max-width:768px) {
 #clientProfileContent .profile-bottom, #clientProfileContent .profile-bottom > *,
 #clientProfileContent .profile-side-card, #clientProfileContent .profile-chart-controls,
 #clientProfileContent .chart-custom-dates, #clientProfileContent .chart-custom-dates label {
   min-width:0!important; box-sizing:border-box!important;
 }
 #clientProfileContent .profile-bottom > .profile-side-card {
   width:calc(100% - 24px)!important; max-width:calc(100vw - 64px)!important;
   margin-inline:auto!important; padding:14px!important;
 }
 #clientProfileContent .profile-chart-controls,
 #clientProfileContent .chart-custom-dates {width:100%!important;max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:9px!important;}
 #clientProfileContent .chart-custom-dates[hidden] {display:none!important;}
 #clientProfileContent .chart-custom-dates label {width:100%!important;max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:5px!important;}
 #clientProfileContent #profileChartStart,#clientProfileContent #profileChartEnd,
 #clientProfileContent #profileChartMetric,#clientProfileContent #profileChartPeriod,
 #clientProfileContent #profileDate {
   display:block!important;box-sizing:border-box!important;
   width: min(100%, 270px, calc(100vw - 110px))!important;
   max-width:calc(100vw - 110px)!important;min-width:0!important;
   margin-inline:auto!important;padding:10px 12px!important;
   font-size:16px!important;line-height:1.35!important;text-align:center!important;
 }
 #clientProfileContent input[type="date"]::-webkit-date-and-time-value {min-width:0;text-align:center;}
 #clientProfileContent input[type="date"]::-webkit-datetime-edit {min-width:0;padding:0;}
 #clientProfileContent .profile-side-card .row.between {flex-wrap:wrap!important;justify-content:center!important;gap:10px!important;}
 #clientProfileContent .profile-side-card h3 {overflow-wrap:anywhere;}
 #clientProfileContent .profile-fields input {width:100%!important;max-width:100%!important;min-width:0!important;}
}
