/* Smart Nutrition 8.68 - stabilità Premium e nuovo grafico peso */
.sn867-weight-card{background:linear-gradient(180deg,#fff 0%,#f8fbff 100%);border:1px solid #d7e4f1;border-radius:28px;padding:26px;box-shadow:0 16px 44px rgba(17,55,92,.08);color:#102743}
.sn867-weight-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;margin-bottom:20px}
.sn867-weight-head h2{margin:5px 0 7px!important;font-size:clamp(25px,3vw,34px)!important;letter-spacing:-.035em;color:#102743!important}
.sn867-weight-head p{margin:0;max-width:680px;color:#5e748c;line-height:1.55}
.sn867-weight-kicker{display:inline-flex;color:#176fd1;font-size:11px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.sn867-weight-action{flex:0 0 auto;min-height:44px;padding:0 18px!important;border-radius:14px!important}
.sn867-weight-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.sn867-weight-stats article{min-width:0;padding:16px 17px;border:1px solid #dce7f2;border-radius:18px;background:#fff}
.sn867-weight-stats span,.sn867-weight-stats small{display:block;color:#6b7f94}
.sn867-weight-stats span{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.sn867-weight-stats strong{display:block;margin:7px 0 4px;font-size:25px;line-height:1;color:#102743}
.sn867-weight-stats strong.down{color:#0b8f68}.sn867-weight-stats strong.up{color:#cf5a34}.sn867-weight-stats strong.neutral{color:#102743}
.sn867-weight-stats small{font-size:11px;line-height:1.35}
.sn867-weight-chart-wrap{overflow:hidden;border:1px solid #dce7f2;border-radius:22px;background:linear-gradient(180deg,#fbfdff,#f3f8fd);padding:8px 8px 2px}
.sn867-weight-chart{display:block;width:100%;height:auto;min-height:260px;overflow:visible}
.sn867-grid-line{stroke:#dce7f2;stroke-width:1;stroke-dasharray:4 7}
.sn867-axis-text{fill:#71859a;font-size:11px;font-weight:700}
.sn867-weight-area{fill:url(#sn867WeightArea)}
.sn867-weight-line{fill:none;stroke:#177dd1;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 5px 8px rgba(23,125,209,.18))}
.sn867-weight-point{fill:#fff;stroke:#177dd1;stroke-width:4;transition:r .18s ease}
.sn867-weight-point.latest{fill:#13b981;stroke:#fff;stroke-width:4;filter:drop-shadow(0 0 0 rgba(19,185,129,0)) drop-shadow(0 4px 7px rgba(19,185,129,.35))}
.sn867-point-group:hover .sn867-weight-point{r:8}
.sn867-weight-foot{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:13px;color:#60758c;font-size:12px}
.sn867-weight-foot span{display:inline-flex;align-items:center;gap:8px;font-weight:850;color:#24415f}
.sn867-weight-foot i{width:10px;height:10px;border-radius:50%;background:#177dd1;box-shadow:0 0 0 4px rgba(23,125,209,.12)}
.sn867-weight-empty{min-height:250px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #bcd0e2;border-radius:22px;background:#f7fbff;color:#60758c}
.sn867-weight-empty-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;margin-bottom:13px;background:#e4f1fc;color:#176fd1;font-size:28px;font-weight:900}
.sn867-weight-empty strong{color:#102743;font-size:20px;margin-bottom:5px}
.sn867-advanced-preview{margin-top:18px!important}
/* Il caricamento fatturazione deve essere un solo nodo: nessuna moltiplicazione nel DOM. */
.sn-billing-loading{min-height:88px;display:flex;align-items:center;justify-content:center}
@media(max-width:900px){.sn867-weight-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sn867-weight-head{align-items:stretch}.sn867-weight-action{align-self:flex-start}}
@media(max-width:620px){.sn867-weight-card{padding:18px;border-radius:22px}.sn867-weight-head{display:grid;gap:14px}.sn867-weight-action{width:100%}.sn867-weight-stats{grid-template-columns:1fr 1fr}.sn867-weight-stats article{padding:13px}.sn867-weight-stats strong{font-size:21px}.sn867-weight-chart-wrap{margin-inline:-4px;overflow-x:auto}.sn867-weight-chart{width:720px;max-width:none;min-height:250px}.sn867-weight-foot{display:grid}.sn867-weight-foot small{line-height:1.45}}
