/* V154 — intrinsic mobile sizing of profile forms, charts and photo uploads. */
@media (max-width: 768px) {
  #clientProfile, #profileSection, .profile-premium-grid, .profile-bottom,
  .premium-measure-form, .profile-chart-card, .profile-history-card,
  .profile-side-card, .profile-history, .profile-fields,
  [class*="profile-photo"], [class*="progress-photo"] {
    box-sizing:border-box!important; min-width:0!important; max-width:100%!important;
  }
  .profile-premium-grid, .profile-bottom {grid-template-columns:minmax(0,1fr)!important;}
  .premium-measure-form, .profile-chart-card, .profile-history-card,
  .profile-side-card {width:100%!important; overflow:hidden;}
  .premium-measure-form *, .profile-chart-card *, .profile-history-card *,
  .profile-side-card * {box-sizing:border-box;}
  .premium-measure-form form, .premium-measure-form .profile-fields,
  .profile-chart-card form, .profile-chart-card .profile-chart-controls {
    width:100%!important;min-width:0!important;max-width:100%!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  .premium-measure-form input, .premium-measure-form select,
  .profile-chart-card input, .profile-chart-card select,
  .profile-side-card input, .profile-side-card select,
  .profile-history-card input, .profile-history-card select,
  input[type="date"], input[type="file"] {
    display:block; width:100%!important; max-width:100%!important;
    min-width:0!important; box-sizing:border-box!important;
  }
  input[type="file"] {overflow:hidden;font-size:14px;}
  .profile-chart-card canvas, .profile-chart-card svg,
  .profile-chart-card > div, .profile-chart-card [class*="chart"] {
    max-width:100%!important;min-width:0!important;
  }
  .profile-chart-card canvas {display:block;width:100%!important;height:auto;}
  .profile-chart-card, .profile-history-card {overflow-x:clip;}
  .premium-measure-form label, .profile-chart-card label,
  .profile-side-card label {min-width:0;max-width:100%;overflow-wrap:break-word;}
  .profile-side-card button, .profile-chart-card button {max-width:100%;}
}
