.workout-notes-date-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:.35rem;min-height:42px;margin:.7rem 0 .35rem}
.workout-score{grid-column:3;justify-self:end;color:#315269;font-size:.72rem;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.workout-score.is-clickable{min-height:36px;padding:.3rem .5rem;border:1px solid #a8bad0;border-radius:.55rem;background:#f3f7fb;cursor:pointer}.workout-score.is-clickable:hover:not(:disabled){border-color:#377fae;background:#e7f2fb;color:#174c77}.workout-score.is-clickable:disabled{cursor:wait;opacity:.7}
.workout-notes-open{grid-column:1;justify-self:start;min-height:36px;max-width:100%;padding:.35rem .55rem;border:1px solid #a8bad0;border-radius:.55rem;background:#f3f7fb;color:#234865;font-size:.76rem;font-weight:850;white-space:nowrap;cursor:pointer}
.workout-notes-open.has-notes{border-color:#78bc95;background:#dff5e8;color:#17633d}
.workout-notes-date-row .completion-date-field{grid-column:2;justify-self:center;display:grid;justify-items:center;gap:.18rem;width:min(100%,158px);min-width:0;margin:0;font-size:.72rem;text-align:center}
.workout-notes-date-row .completion-date-input{box-sizing:border-box;width:min(100%,150px);min-width:0;padding:.3rem .4rem;font-size:.76rem;white-space:nowrap}
.history-workout-title-row{display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem;width:100%;margin:0 0 .65rem}
.history-workout-title-row .history-workout-title{min-width:0;margin:0;overflow-wrap:anywhere;text-align:left}
.history-workout-meta-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:36px}
.history-workout-title-row .workout-notes-open{justify-self:end;flex:none}
.workout-notes-overlay{position:fixed;inset:0;z-index:130;display:grid;place-items:center;padding:1rem;background:rgba(5,18,32,.75)}
.workout-notes-dialog{width:min(100%,540px);max-height:min(90dvh,760px);overflow:auto;padding:1rem;border-radius:14px;background:#fff;color:#17324f;box-shadow:0 20px 60px rgba(0,0,0,.3)}
.workout-notes-dialog>header{display:flex;align-items:start;justify-content:space-between;gap:1rem;padding-bottom:.65rem;border-bottom:1px solid #d7e2eb}
.workout-notes-dialog h2{margin:.1rem 0;font-size:1.25rem}.workout-notes-dialog header small{color:#657c91;font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.workout-notes-close{width:34px;height:34px;border:0;border-radius:8px;background:#edf2f7;color:#38566f;font-size:1.5rem;line-height:1}
.workout-notes-content{display:grid;gap:.85rem;padding-top:.8rem}.workout-notes-post{padding:.75rem;border:1px solid #bed8ca;border-radius:9px;background:#f2fcf6}.workout-notes-post strong{color:#17633d}.workout-notes-post p{margin:.4rem 0;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.workout-notes-post small{color:#5b7866}
.workout-notes-empty{margin:0;padding:.65rem;border-radius:8px;background:#f4f7fa;color:#5d7285;font-size:.83rem}
.workout-notes-editor label{display:grid;gap:.4rem}.workout-notes-editor textarea{box-sizing:border-box;width:100%;min-height:115px;padding:.7rem;border:1px solid #a7bdce;border-radius:8px;color:#17324f;font:inherit;line-height:1.4;resize:vertical}
.workout-notes-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem;margin-top:.55rem}.workout-notes-actions button,.workout-notes-retry{min-height:36px;padding:.4rem .65rem;border:1px solid #9fb8c9;border-radius:7px;background:#fff;color:#315269;font-weight:800}.workout-notes-actions .workout-notes-save{border-color:#1675c4;background:#1675c4;color:#fff}.workout-notes-actions .workout-notes-delete{border-color:#ecacac;background:#fff6f6;color:#a92121}.workout-notes-status,.workout-notes-error{margin:.45rem 0 0;color:#a92121;font-size:.8rem}
.workout-notes-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.4rem;margin-top:.55rem}.workout-notes-actions button,.workout-notes-retry{min-height:36px;padding:.4rem .65rem;border:1px solid #9fb8c9;border-radius:7px;background:#fff;color:#315269;font-weight:800}.workout-notes-actions .workout-notes-save{border-color:#1675c4;background:#1675c4;color:#fff}.workout-notes-actions .workout-notes-delete{border-color:#ecacac;background:#fff6f6;color:#a92121}.workout-notes-status,.workout-notes-error{margin:.45rem 0 0;color:#a92121;font-size:.8rem}
.workout-score-overview-overlay{position:fixed;inset:0;z-index:180;overflow:auto;background:#f3f6fa;color:#18344e}.workout-score-overview{box-sizing:border-box;width:min(100%,1120px);min-height:100%;margin:0 auto;padding:clamp(1rem,3vw,2rem)}.workout-score-overview>header{position:relative;padding:1rem 0 1.3rem;border-bottom:1px solid #d3dee8}.workout-score-overview-back{min-height:38px;padding:.45rem .75rem;border:1px solid #b5c5d3;border-radius:8px;background:#fff;color:#234865;font-weight:800;cursor:pointer}.workout-score-overview .eyebrow{margin:1.2rem 0 .3rem;color:#52728b;font-size:.72rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.workout-score-overview h1{margin:.2rem 0;font-size:clamp(1.5rem,4vw,2.2rem)}.workout-score-overview-total{display:flex;align-items:baseline;gap:.4rem;margin:.7rem 0;color:#1768a5}.workout-score-overview-total strong{font-size:3.2rem;line-height:1}.workout-score-overview-total span{font-weight:800}.workout-score-overview>header>p:last-child{max-width:680px;color:#557086}.workout-score-overview-volume{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;padding:.9rem 0;color:#315269}.workout-score-overview-sections{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:.85rem}.workout-score-overview-sections article,.workout-score-formula{padding:1rem;border:1px solid #d7e1ea;border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(24,52,78,.05)}.workout-score-overview-sections article>header{display:flex;align-items:center;justify-content:space-between;gap:.6rem}.workout-score-overview-sections h2{margin:0;font-size:1.05rem}.workout-score-overview-sections article>header>strong{color:#1768a5;font-size:1.1rem}.workout-score-overview-sections article>header small{color:#60798e;font-size:.75rem}.workout-score-overview-sections article>p{color:#4e687e;font-size:.84rem;line-height:1.5}.workout-score-overview-sections h3{margin:.9rem 0 .35rem;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#60798e}.workout-score-data{font-size:.82rem;line-height:1.45}.workout-score-data p{margin:.4rem 0;padding:.45rem .55rem;border-radius:7px;background:#f4f7fa;overflow-wrap:anywhere}.workout-score-data p strong,.workout-score-data p span{display:block}.workout-score-data p span{margin-top:.15rem;color:#526d83}.workout-score-formula{margin:1rem 0}.workout-score-formula h2{margin:.1rem 0 .5rem;font-size:1.1rem}.workout-score-formula p{color:#506a80;line-height:1.5}.workout-score-formula code{display:block;padding:.7rem;border-radius:7px;background:#edf3f8;white-space:normal}.workout-score-overview-note{font-size:.75rem}
.workout-score-recommendations{margin:1rem 0 2rem;padding:1rem;border:1px solid #b8d5c7;border-radius:12px;background:#f8fdf9}.workout-score-recommendations>header h2{margin:0;color:#205b42;font-size:1.2rem}.workout-score-recommendations>header p{margin:.35rem 0 .8rem;color:#526d61;font-size:.85rem;line-height:1.45}.workout-score-recommendations ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:.7rem;margin:0;padding:0;list-style:none}.workout-score-recommendations li{padding:.8rem;border:1px solid #d2e4d9;border-radius:9px;background:#fff}.workout-score-recommendations li small{color:#287350;font-size:.7rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.workout-score-recommendations li h3{margin:.25rem 0;font-size:.96rem}.workout-score-recommendations li p{margin:.25rem 0 0;color:#415d50;font-size:.84rem;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:440px){.workout-notes-date-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:.2rem;min-height:42px}.workout-notes-open{padding:.28rem .18rem;font-size:clamp(.54rem,2.1vw,.64rem)}.workout-notes-date-row .workout-score{grid-column:3;grid-row:1;font-size:clamp(.54rem,2vw,.64rem)}.workout-notes-date-row .completion-date-field{width:100%;font-size:.6rem}.workout-notes-date-row .completion-date-input{width:100%;min-height:34px;padding:.25rem .12rem;font-size:clamp(.54rem,2vw,.62rem)}.history-workout-title-row{gap:.25rem}.history-workout-title-row .history-workout-title{font-size:1rem}.workout-notes-dialog{padding:.8rem}}
