/* Nutrition & Recovery · daily check-in + training checkout */
.recovery-combined-head{margin-bottom:12px;display:flex;justify-content:space-between;align-items:flex-end;gap:14px}.recovery-quick-nav{display:flex;gap:7px;flex-wrap:wrap}.recovery-scale-guide{display:flex;flex-wrap:wrap;gap:7px 14px;align-items:center;margin:0 0 12px;padding:11px 13px;border:1px solid #dfe6ee;border-radius:12px;background:#f7f9fc;color:#617086;font-size:.72rem;line-height:1.4}.recovery-scale-guide>strong{color:#3f5067;margin-right:2px}.recovery-scale-guide span b{color:#526177}.recovery-default-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 16px;padding:11px 13px;border:1px solid #e2e7ee;border-radius:12px;background:#fff}.recovery-default-bar>div{display:grid;gap:3px;min-width:0}.recovery-default-bar strong{font-size:.72rem;color:#435168}.recovery-default-bar span{color:var(--muted);font-size:.64rem;line-height:1.35}.recovery-combined-grid,.recovery-checkout-grid{scroll-margin-top:18px}.recovery-checkout-grid{margin-top:18px}.recovery-combined-grid .field textarea,.recovery-checkout-grid .field textarea{min-height:90px}.recovery-panel-title{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.recovery-panel-title>div{display:grid;gap:3px}.recovery-status-badge{flex:0 0 auto;padding:5px 8px;border:1px solid #e0e5ec;border-radius:999px;background:#fafbfd;color:#748196;font-size:.58rem;font-weight:850}.recovery-status-badge.done{border-color:rgba(69,139,99,.22);background:#f2f8f4;color:#4e7e61}.recovery-one-click{width:100%}.recovery-history-list,.recovery-checkout-list{display:grid}.recovery-history-row,.recovery-checkout-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 14px;border-bottom:1px solid var(--line)}.recovery-history-row:last-child,.recovery-checkout-row:last-child{border-bottom:0}.recovery-history-main{min-width:0;display:grid;gap:9px}.recovery-history-date{display:grid;gap:3px}.recovery-history-date strong,.recovery-checkout-row strong{font-size:.82rem}.recovery-history-date span,.recovery-checkout-row span{color:var(--muted);font-size:.7rem}.recovery-history-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.recovery-metric{display:grid;gap:3px;padding:7px 8px;border:1px solid #e5eaf1;border-radius:9px;background:#fafbfd}.recovery-metric span{color:#748196;font-size:.58rem;font-weight:800;text-transform:uppercase;letter-spacing:.025em}.recovery-metric strong{color:var(--navy-900);font-size:.82rem}.recovery-history-notes,.recovery-checkout-row p{margin:0;padding-top:7px;border-top:1px dashed #e1e6ed;color:#657287;font-size:.71rem;line-height:1.45;white-space:pre-wrap}.recovery-checkout-row>div{display:grid;gap:5px}.recovery-legacy-note{color:#8893a4;font-size:.62rem;font-style:italic}.recovery-no-training label{display:inline-flex;align-items:center;gap:8px;text-transform:none;letter-spacing:0;font-size:.72rem;font-weight:700}.recovery-no-training input{width:auto;margin:0}.recovery-defaults-dialog{width:min(760px,calc(100% - 24px))}.recovery-defaults-dialog .dialog-head p{max-width:600px;margin:4px 0 0;color:var(--muted);font-size:.68rem;line-height:1.45}
@media(max-width:980px){.recovery-history-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.recovery-combined-head{align-items:flex-start;flex-direction:column}.recovery-default-bar{align-items:flex-start;flex-direction:column}.recovery-default-bar .button{width:100%}}
@media(max-width:720px){.recovery-history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.recovery-history-row,.recovery-checkout-row{align-items:start}.recovery-panel-title{flex-direction:column}.recovery-status-badge{align-self:flex-start}.recovery-quick-nav{width:100%}.recovery-quick-nav .button{flex:1}}

/* Recovery analytics + emoji checkout */
.recovery-analytics-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.recovery-analytics-body{display:grid;gap:14px}.recovery-analytics-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.recovery-stat{display:grid;gap:4px;padding:11px 12px;border:1px solid #e5eaf1;border-radius:12px;background:#fafbfd}.recovery-stat span{color:#748196;font-size:.62rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.recovery-stat strong{color:var(--navy-900);font-size:1rem}.recovery-range-switch{display:flex;flex-wrap:wrap;gap:6px}.recovery-range-button{padding:7px 9px;border:1px solid #dce4ee;border-radius:999px;background:#fff;color:#69788f;font-size:.68rem;font-weight:800}.recovery-range-button.active{border-color:#b8cbe0;background:#eef4fb;color:var(--navy-800)}.recovery-chart-card,.recovery-recent-block{padding:13px 14px;border:1px solid #e4ebf2;border-radius:14px;background:#fff}.recovery-chart-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}.recovery-chart-head strong{font-size:.8rem}.recovery-chart-head span{color:var(--muted);font-size:.68rem}.recovery-chart-svg{display:block;width:100%;height:240px;overflow:visible}.recovery-chart-svg-small{height:150px}.recovery-chart-grid line{stroke:#e9eff6;stroke-width:1}.recovery-chart-grid text,.recovery-chart-xaxis text{fill:#8390a2;font-size:11px}.recovery-chart-line{fill:none;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}.recovery-chart-point{stroke:#fff;stroke-width:1.5}.recovery-series-sleep-quality{stroke:#2b6cb0;fill:#2b6cb0}.recovery-series-motivation{stroke:#0f9d8a;fill:#0f9d8a}.recovery-series-concentration{stroke:#8b5cf6;fill:#8b5cf6}.recovery-series-fatigue{stroke:#ef4444;fill:#ef4444}.recovery-series-soreness{stroke:#f59e0b;fill:#f59e0b}.recovery-series-mood{stroke:#06b6d4;fill:#06b6d4}.recovery-series-checkout{stroke:#1d4ed8;fill:#1d4ed8}.recovery-series-moving-average{stroke:#111827;fill:#111827;stroke-dasharray:7 5}.recovery-chart-bar{fill:#9cc1e5}.recovery-chart-legend{display:flex;flex-wrap:wrap;gap:10px 14px;margin-top:10px}.recovery-chart-legend span{display:inline-flex;align-items:center;gap:6px;color:#5e6d83;font-size:.68rem;font-weight:700}.recovery-legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.recovery-chart-empty{display:grid;place-items:center;min-height:160px;padding:16px;border:1px dashed #dde5ee;border-radius:12px;background:#fafbfd;color:#768499;font-size:.8rem;text-align:center}.recovery-recent-block .recovery-history-list,.recovery-recent-block .recovery-checkout-list{border:1px solid #edf1f6;border-radius:12px;overflow:hidden}.recovery-history-row.compact .recovery-history-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.recovery-quality-field{display:grid;gap:10px}.recovery-quality-picker{display:grid;gap:10px;padding:12px;border:1px solid #e3e9f0;border-radius:14px;background:#fafbfd}.recovery-quality-picker.disabled{opacity:.62}.recovery-quality-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.recovery-quality-choice{display:grid;gap:4px;justify-items:center;padding:10px 8px;border:1px solid #dfe6ef;border-radius:12px;background:#fff;color:#5d6b80}.recovery-quality-choice:hover{border-color:#c0cfdf;box-shadow:0 4px 12px rgba(11,31,58,.05)}.recovery-quality-choice.active{border-color:#b6cae1;background:#eef4fb;color:var(--navy-800)}.recovery-quality-choice.disabled{pointer-events:none}.recovery-quality-choice-emoji{font-size:1.45rem;line-height:1}.recovery-quality-choice-score{font-size:.72rem;font-weight:800}.recovery-quality-caption{color:#5f6e83;font-size:.73rem;font-weight:700}.recovery-checkout-row span{display:flex;align-items:center;gap:6px}.recovery-history-row.compact,.recovery-checkout-row.compact{padding:12px 13px}

@media(max-width:1180px){.recovery-analytics-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:860px){.recovery-analytics-head{flex-direction:column;align-items:flex-start}.recovery-analytics-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.recovery-history-row.compact .recovery-history-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:720px){.recovery-chart-head{flex-direction:column;align-items:flex-start}.recovery-quality-buttons{grid-template-columns:repeat(5,minmax(0,1fr))}.recovery-history-row.compact .recovery-history-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.recovery-analytics-stats{grid-template-columns:1fr 1fr}.recovery-quality-buttons{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.recovery-quality-choice{padding:8px 4px}.recovery-quality-choice-score{font-size:.66rem}}

/* v1.1.2 · chart readability, collapsible analytics and Recovery → Health soreness map */
.recovery-chart-line{fill:none!important;stroke-width:3.25!important;stroke-linejoin:round;stroke-linecap:round}.recovery-chart-point{stroke-width:1.5}.recovery-series-moving-average.recovery-chart-line{stroke-width:3.4!important}.recovery-recent-details{overflow:hidden;border:1px solid #e4ebf2;border-radius:14px;background:#fff}.recovery-recent-details>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;cursor:pointer;list-style:none}.recovery-recent-details>summary::-webkit-details-marker{display:none}.recovery-recent-details>summary span{display:grid;gap:3px}.recovery-recent-details>summary strong{font-size:.79rem}.recovery-recent-details>summary small{color:var(--muted);font-size:.65rem}.recovery-recent-details>summary b{color:#65758a;font-size:.67rem}.recovery-recent-details[open]>summary{border-bottom:1px solid #e8edf3;background:#fafbfd}.recovery-recent-details[open]>summary b::after{content:' · chiudi'}.recovery-soreness-location-host:empty{display:none}.recovery-soreness-link{display:grid;gap:12px;padding:12px;border:1px solid #e0e8f0;border-radius:14px;background:#f9fbfd}.recovery-soreness-scope{display:flex;align-items:center;justify-content:space-between;gap:12px}.recovery-soreness-scope>span{color:#55667b;font-size:.72rem;font-weight:800}.recovery-soreness-scope>div{display:flex;gap:12px;flex-wrap:wrap}.recovery-soreness-scope label{display:inline-flex;align-items:center;gap:6px;color:#44556b;font-size:.71rem;font-weight:750;text-transform:none;letter-spacing:0}.recovery-soreness-scope input{width:auto;margin:0}.recovery-soreness-map-wrap{display:grid;gap:10px}.recovery-soreness-map-copy{display:grid;gap:3px}.recovery-soreness-map-copy strong{font-size:.77rem}.recovery-soreness-map-copy span{color:var(--muted);font-size:.68rem;line-height:1.4}.recovery-soreness-map-canvas{position:relative;width:min(100%,520px);margin:0 auto;aspect-ratio:437/442;overflow:hidden;border:1px solid #dfe7ef;border-radius:16px;background:linear-gradient(180deg,#fbfdfe,#f5f8fb)}.recovery-soreness-map-canvas img{display:block;width:100%;height:100%;object-fit:contain;opacity:.78;filter:saturate(.55) contrast(.92);pointer-events:none;user-select:none}.recovery-soreness-hotspot{position:absolute;width:13px;height:13px;padding:0;border:2px solid rgba(75,105,132,.55);border-radius:50%;background:rgba(255,255,255,.9);box-shadow:0 1px 4px rgba(20,44,67,.18);transform:translate(-50%,-50%);cursor:pointer;z-index:2}.recovery-soreness-hotspot>span{position:absolute;inset:2px;border-radius:50%;background:#8ba4b8;opacity:.45}.recovery-soreness-hotspot:hover,.recovery-soreness-hotspot:focus-visible{transform:translate(-50%,-50%) scale(1.4);outline:none;border-color:#6457b8;box-shadow:0 0 0 5px rgba(100,87,184,.12)}.recovery-soreness-hotspot.selected{border-color:#6f5cc2;background:#f6f3ff}.recovery-soreness-hotspot.selected>span{background:#6f5cc2;opacity:1}.recovery-soreness-selected{display:flex;gap:6px;flex-wrap:wrap}.recovery-soreness-selected span{padding:5px 7px;border:1px solid #ddd8f2;border-radius:999px;background:#f7f5ff;color:#5d5297;font-size:.62rem;font-weight:750}.recovery-soreness-selected em{color:var(--muted);font-size:.66rem;font-style:normal}.recovery-soreness-link-note{display:grid;gap:3px;padding:10px 11px;border:1px solid #e7dfc8;border-radius:11px;background:#fffaf0}.recovery-soreness-link-note strong{font-size:.72rem}.recovery-soreness-link-note span{color:#756b53;font-size:.66rem;line-height:1.4}
@media(max-width:720px){.recovery-soreness-scope{align-items:flex-start;flex-direction:column}.recovery-recent-details>summary{align-items:flex-start}.recovery-soreness-map-canvas{width:100%}}

/* v1.1.3 · distinguish overlapping series + compact sleep trend */
.recovery-chart-series-item{transition:opacity .16s ease}.recovery-chart-series-item.muted{opacity:.11}.recovery-chart-legend{align-items:center}.recovery-chart-legend-item{display:inline-flex;align-items:center;gap:6px;padding:4px 6px;border:1px solid transparent;border-radius:8px;background:transparent;color:#5e6d83;font-size:.68rem;font-weight:750;cursor:pointer}.recovery-chart-legend-item:hover{background:#f6f8fb}.recovery-chart-legend-item.active{border-color:#d8e2ed;background:#f3f7fb;color:#28394f}.recovery-chart-legend-item.muted{opacity:.38}.recovery-chart-legend-item svg{display:block;width:34px;height:10px;overflow:visible;flex:0 0 34px}.recovery-chart-hint{margin-top:8px;color:#8490a1;font-size:.62rem;line-height:1.4}.recovery-chart-card-compact{padding-bottom:10px}.recovery-chart-card-compact .recovery-chart-head{margin-bottom:6px}
.recovery-series-sleep-quality.recovery-chart-line{stroke-dasharray:none}.recovery-series-motivation.recovery-chart-line{stroke-dasharray:10 4}.recovery-series-concentration.recovery-chart-line{stroke-dasharray:2 4}.recovery-series-fatigue.recovery-chart-line{stroke-dasharray:12 4 2 4}.recovery-series-soreness.recovery-chart-line{stroke-dasharray:6 3}.recovery-series-mood.recovery-chart-line{stroke-dasharray:1 4}.recovery-series-checkout.recovery-chart-line{stroke-dasharray:none}.recovery-series-moving-average.recovery-chart-line{stroke-dasharray:9 5}.recovery-series-sleep-hours{stroke:#4f93cf;fill:#4f93cf}.recovery-series-sleep-hours.recovery-chart-line{stroke-dasharray:none}.recovery-series-sleep-moving-average{stroke:#24364b;fill:#24364b}.recovery-series-sleep-moving-average.recovery-chart-line{stroke-dasharray:9 5}.recovery-chart-legend-item .recovery-chart-line{stroke-width:3.5!important}
@media(max-width:720px){.recovery-chart-legend{gap:6px 8px}.recovery-chart-legend-item{padding:4px}.recovery-chart-legend-item svg{width:26px;flex-basis:26px}}
