/* V149 – mobile readability and measurement layout */
@media(max-width:760px){
 html,body{max-width:100%;overflow-x:clip}
 .profile-premium-grid,.profile-bottom,.profile-side,.profile-side-card,.profile-history-card,.profile-chart-card{min-width:0!important;max-width:100%!important;width:100%;box-sizing:border-box}
 .profile-bottom{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
 #profileChart{min-width:0!important;width:100%;max-width:100%;overflow:hidden}
 #profileChart svg.measure-chart{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-width:0!important}
 .profile-history{max-height:none!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
 .profile-history table,.profile-history tbody{display:block!important;width:100%!important;min-width:0!important;white-space:normal!important}
 .profile-history thead{display:none!important}
 .profile-history tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin:0 0 12px;padding:14px;border:1px solid #50443a;border-radius:14px;background:#24201c}
 .profile-history td{display:flex!important;flex-direction:column;gap:3px;min-width:0!important;width:auto!important;white-space:normal!important;overflow-wrap:anywhere;border:0!important;padding:3px!important;font-size:15px!important;color:#f6ede4!important}
 .profile-history td::before{font-size:12px;font-weight:700;color:#c5b7a9}
 .profile-history td:nth-child(1){grid-column:1/-1;font-size:17px!important;font-weight:800}
 .profile-history td:nth-child(1)::before{content:'Date'}
 .profile-history td:nth-child(2)::before{content:'Poids (kg)'}
 .profile-history td:nth-child(3)::before{content:'Taille (cm)'}
 .profile-history td:nth-child(4)::before{content:'Hanches (cm)'}
 .profile-history td:nth-child(5)::before{content:'Poitrine (cm)'}
 .profile-history td:nth-child(6)::before{content:'Bras (cm)'}
 .profile-history td:nth-child(7)::before{content:'Cuisses (cm)'}
 .profile-history td:nth-child(8)::before{content:'Mollets (cm)'}
 .profile-history td:nth-child(9)::before{content:'Épaules (cm)'}
 .profile-history td:nth-child(10){grid-column:1/-1;display:flex!important;flex-direction:row;flex-wrap:wrap;gap:8px}
 .profile-history td:nth-child(10) button{flex:1 1 110px;min-width:0!important}
 .profile-history td[colspan]{grid-column:1/-1}
 .profile-history td[colspan]::before{display:none}
 .profile-side-card h3{font-size:21px!important;line-height:1.3}
 .profile-side-card .row.between{flex-wrap:wrap;gap:10px}
 .profile-chart-controls,.chart-periods{max-width:100%;min-width:0;flex-wrap:wrap}
 .mini,.muted,.hint,.avatar-caption,.profile-history th{color:#d1c3b6!important}
 .profile-side-card,.premium-measure-form{padding:14px!important}
}
/* Text legibility throughout the dark theme */
.muted,.mini.muted,.hint,.q-helper,.metric small,.program-exercise .mini,.avatar-caption{color:#cbbcaf!important}
button,input,select,textarea{font-size:max(14px,1em)}
