/* v1.19: preserve header, navigation and screen order. */
.screen .card{border-radius:14px}.screen .ch{gap:12px}.screen .card .ch h3{line-height:1.35}
.screen .btn,.sheet .btn{min-height:44px;border-radius:10px;line-height:1.45}.screen .helper,.sheet .helper{font-size:13px;line-height:1.65}
.screen .btn svg,.sheet .btn svg{flex-shrink:0;vertical-align:middle}.screen .btn:focus-visible,.sheet .btn:focus-visible{outline:2px solid var(--acc);outline-offset:3px}
.kpi,.stats-grid>*,.chart-card{min-width:0}.kpi-value,.mp-budget-strip strong{white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums;letter-spacing:-.035em;line-height:1.25}.kpi-meta{font-size:13px;line-height:1.6}
.toast{background:var(--surf,#171d25);color:var(--tx,#edf0f3);border:1px solid color-mix(in srgb,var(--acc) 35%,var(--line,#303946));box-shadow:0 8px 30px #0005;border-radius:12px}
.training-workspace{--training-accent:var(--acc)}.gym-split.selected{background:linear-gradient(145deg,color-mix(in srgb,var(--acc) 9%,transparent),var(--surf))}.gym-repeat{border-color:color-mix(in srgb,var(--acc) 30%,var(--line))}
.run-controls .btn.pri{background:var(--acc);border-color:var(--acc);color:var(--acc-text,#101419)}.run-save-total,.run-route-empty svg{color:var(--acc)}.run-recorder{background:linear-gradient(145deg,color-mix(in srgb,var(--acc) 4%,transparent),var(--surf))}
.training-history>span:first-child{min-width:0}.training-history strong{line-height:1.4;overflow-wrap:break-word}.training-history b{flex-shrink:0;font-variant-numeric:tabular-nums}.training-history>svg{flex-shrink:0;width:18px;height:18px;color:var(--tx3)}
.mp-card-meta,.mp-cost,.mp-image-caption{font-size:12px}.mp-macros small{font-size:12px}.mp-card-body>p{font-size:13px;line-height:1.65}.mp-budget-strip small{font-size:11px;letter-spacing:.04em;line-height:1.5}.mp-budget-strip>p,.mp-footer-note,.mp-muted{font-size:12px;line-height:1.65}.mp-hero-proof{font-size:11px}.mp-recipe-card>.mp-photo{aspect-ratio:1.28}.mp-recipe-detail>.mp-photo{max-width:390px}.mp-card-actions .btn{overflow-wrap:normal;min-height:44px}
.nut-date-control{min-width:0}.nut-date-control label{min-width:0;flex:1}.nut-date-control input{width:100%;min-height:44px}.nut-datebar>.btn{white-space:nowrap;overflow-wrap:normal;flex-shrink:0}.nut-datebar .btn{min-width:44px}
.journal-review-status{margin:0 0 14px;display:flex;align-items:center}.journal-review-status .pill{padding:7px 10px;font-size:12px;text-transform:none;letter-spacing:0}.journal-review-status[data-state=complete] .pill{color:var(--acc);border-color:color-mix(in srgb,var(--acc) 35%,var(--line))}.journal-review-status[data-state=draft] .pill{border-style:dashed;color:var(--tx2)}
.cal .cd.journal-draft{outline:1px dashed var(--tx3);outline-offset:-4px}.cal .cd.sel{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}.cal .cd .journal-photo-count{display:flex;align-items:center;justify-content:center;gap:3px;font-size:10px;line-height:1.2;margin-top:4px;color:var(--tx2)}
.journal-screenshots .imgs,.life-day-gallery{gap:10px}.journal-shot,.life-day-gallery .life-journal-photo{aspect-ratio:1;border-radius:12px;background:var(--bg2);border:1px solid var(--line);overflow:hidden}.journal-shot img,.life-day-gallery img{display:block;width:100%;height:100%;object-fit:contain}.life-day-gallery figcaption,.life-photo-status{font-size:12px;line-height:1.55}
.goal-routine-help{max-width:42ch;margin-bottom:0}.goal-card-actions .btn.good{border-color:color-mix(in srgb,var(--acc) 40%,var(--line));color:var(--acc)}.goal-progress,.goal-detail-total{font-variant-numeric:tabular-nums}
.social-stage{text-transform:none;letter-spacing:0;font-size:12px;white-space:nowrap}.social-stage[data-stage=active],.social-stage[data-stage=invited]{color:var(--acc);border-color:color-mix(in srgb,var(--acc) 35%,var(--line))}.social-dates span{display:block;margin-top:5px;font-size:12px;color:var(--tx2)}.social-score{border-radius:12px;padding:16px;margin-top:12px}.social-score-me{border:1px solid color-mix(in srgb,var(--acc) 45%,var(--line));background:color-mix(in srgb,var(--acc) 5%,var(--surf))}.social-score .social-person>div{min-width:0}.social-score .social-person b{overflow-wrap:break-word}.social-score .social-person>strong{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}.social-score small{font-size:12px;line-height:1.6}
.coach-sharing summary{line-height:1.6}.coach-sharing-summary{display:inline;font-size:12px;color:var(--tx3)}.coach-sharing-change{display:inline-block;margin-left:10px;font-size:12px;color:var(--acc)}.coach-sharing[open] .coach-sharing-change{color:var(--tx2)}.memory-state{font-size:12px}.memory-card-foot{font-size:12px;gap:10px;flex-wrap:wrap}
[data-service-status]{text-align:right;font-size:13px;line-height:1.5;max-width:55%}[data-service-status][data-state=ready],[data-service-status][data-state=active]{color:var(--acc)}
@media(max-width:759px){#s-stats>.journal-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}#statRange{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}#statRange button{white-space:nowrap;overflow-wrap:normal;padding:10px 5px;font-size:13px}#statsAccount{width:100%;max-width:none;min-width:0;min-height:44px}.kpi-value{font-size:28px}.kpi-meta{font-size:12px}.nut-datebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.nut-date-control{gap:6px;width:100%}.nut-date-control .btn{padding:10px;flex-shrink:0}.nut-date-control input{padding:10px 6px;font-size:16px}.nut-save{grid-column:1/-1;font-size:12px}.cal .cd{min-height:52px}.social-score .social-person{gap:10px;flex-wrap:wrap}.social-score .social-person>div{flex:1}.social-score .social-person>strong{font-size:20px}.mp-hero-photo{aspect-ratio:1.28;max-height:300px}.mp-recipe-card>.mp-photo{aspect-ratio:1.28}}
@media(max-width:359px){.nut-datebar{gap:8px}.nut-datebar>.btn{padding-inline:9px}.mp-budget-strip{gap:15px 10px}.mp-budget-strip small{font-size:10px}.mp-macros{gap:10px}}
