/* MambaHub V169 - ultimo foglio caricato, non riutilizza la vecchia cache */
@media (max-width:700px){
  body{font-size:15px!important;line-height:1.38!important}
  body>header{min-height:0!important;padding:7px 9px!important;gap:5px!important}
  body>header .brand.branded{justify-content:flex-start!important}
  body>header .brand.branded img{width:34px!important;height:34px!important;flex:0 0 34px!important}
  body>header .brand-copy strong{font-size:10px!important;line-height:1.05!important;max-width:235px!important}
  body>header nav{display:flex!important;grid-template-columns:none!important;flex-flow:row nowrap!important;justify-content:flex-start!important;width:100%!important;gap:5px!important;overflow-x:auto!important;padding:1px 0 3px!important;scrollbar-width:none!important}
  body>header nav::-webkit-scrollbar{display:none!important}
  body>header nav a{flex:0 0 auto!important;width:auto!important;min-height:34px!important;padding:6px 10px!important;font-size:11px!important;border-radius:8px!important}
  .shell{width:calc(100% - 20px)!important;margin:12px auto 34px!important;padding:0!important}
  h1{font-size:clamp(28px,8vw,37px)!important;line-height:1.06!important;margin:0 0 14px!important;overflow-wrap:anywhere!important}
  h2{font-size:1.28rem!important;line-height:1.18!important;margin:0 0 9px!important}
  h3{font-size:1.04rem!important}
  .card{padding:15px!important;margin:11px 0!important;border-radius:14px!important;min-height:0!important}
  .card p{margin:7px 0!important}
  button,.button{min-height:43px!important;padding:9px 13px!important;font-size:15px!important}
  input,select,textarea{min-height:45px!important;padding:9px 11px!important;font-size:16px!important}
  .stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:11px 0!important}
  .stats article{min-height:0!important;height:auto!important;padding:13px!important;border-radius:13px!important}
  .stats article b{font-size:1.55rem!important;line-height:1.05!important}
  .stats article span{font-size:.77rem!important;line-height:1.22!important;margin-top:4px!important}
  .profile-hero{align-items:center!important;gap:11px!important;margin-bottom:11px!important}
  .profile-hero .profile-photo{width:68px!important;height:68px!important;flex:0 0 68px!important}
  .profile-hero h1{font-size:1.65rem!important;margin-bottom:7px!important}
  .profile-hero .button{min-height:37px!important;padding:7px 11px!important}
  .profile-progress-card,.last-training-card,.athlete-booking-card,.personal-data-card{padding:13px 15px!important}
  .last-training-card h2,.athlete-booking-card h2{font-size:1.08rem!important}
  .personal-qr-card>summary,.mobile-collapse>summary{cursor:pointer!important;font-weight:900!important;font-size:1.1rem!important}
  .personal-qr-card[open]>summary,.mobile-collapse[open]>summary{margin-bottom:12px!important}
  #personal-qr{display:flex!important;justify-content:center!important;width:max-content!important;max-width:100%!important;margin:12px auto!important;padding:10px!important;border-radius:12px!important;background:#fff!important}
  .athlete-health-summary>h2{display:none!important}
  .mobile-collapse{padding:15px!important}
  .athlete-health-summary>div[style*="linear-gradient"]{height:16px!important;background:linear-gradient(90deg,#1681ff 0 20%,#00c845 20% 45%,#ffdb1f 45% 65%,#ff7b16 65% 82%,#f31b27 82%)!important;box-shadow:0 0 0 3px rgba(255,255,255,.28)!important}
  .athlete-health-summary>div[style*="linear-gradient"] span{width:6px!important;background:#fff!important;border:2px solid #111!important}
  .rank-history-table{overflow:visible!important}
  .rank-history-table table,.rank-history-table tbody{display:block!important;width:100%!important;min-width:0!important}
  .rank-history-table thead{display:none!important}
  .rank-history-table tr{display:block!important;margin:9px 0!important;padding:11px 13px!important;border:1px solid #555!important;border-radius:11px!important;background:#202020!important}
  .rank-history-table td{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;gap:8px!important;width:100%!important;padding:7px 0!important;border-bottom:1px solid #505050!important;overflow-wrap:anywhere!important}
  .rank-history-table td,.rank-history-table td b,.rank-history-table td span,.rank-history-table td small,.rank-history-table td em,.rank-history-table td a{color:#fff!important}
  .rank-history-table td:last-child{border-bottom:0!important}
  .rank-history-table td::before{content:attr(data-label)!important;color:#aaa!important;font-size:.69rem!important;font-weight:900!important;text-transform:uppercase!important}
  .history-add-panel>summary{padding:10px!important;border:1px solid #555!important;border-radius:9px!important;background:#080808!important;color:#fff!important}
  .history-add-panel>form{margin-top:13px!important}
  #athletes-table tbody{gap:9px!important}
  #athletes-table tr{padding:10px 12px!important}
  #athletes-table td{padding:7px 0!important}
  .table{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .table table{font-size:.84rem!important}
  .privacy-footer{margin:24px 0!important}
}
