/* Training overview and goals share the same compact analytical surface. */
.settings-layout>div,.settings-layout>aside,.zone-fields label{min-width:0}.zone-fields input:not([type=checkbox]){min-width:0;max-width:100%;width:100%}.zone-form .zone-open-ended input{min-width:1rem;max-width:1rem;flex:0 0 1rem}
.zone-fields{min-width:0;margin:0;padding:0;border:0}.zone-date-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin:.6rem 0}.zone-date-actions .text-button{font-size:.72rem}.zone-help{font-size:.75rem;line-height:1.6}.zone-connection-link{display:block;margin-top:1rem;font-size:.8rem}.zone-form .zone-open-ended{flex-direction:row;align-items:center;gap:.5rem}.zone-open-ended input{width:1rem;height:1rem}.strava-zone-import{margin-bottom:1rem}.strava-zone-import p{font-size:.8rem;line-height:1.6}
.goal-editor-fields{border:0;padding:0;margin:0;min-width:0}
.fitness-hit{fill:transparent;stroke:transparent;stroke-width:2}.fitness-hit:hover{fill:white;stroke:#386e9b}
.shell:has(.training-dashboard),.shell:has(.goal-editor),.shell:has(.goal-detail-layout){max-width:96rem;padding-top:2rem}
.training-dashboard{--run:#2878b5;--ride:#e77632;--other:#83938f;--chronic:#386e9b;--acute:#bf7853;font-variant-numeric:tabular-nums}
.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;margin-bottom:1.5rem}
.dashboard-heading h1{font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.1;letter-spacing:-.04em}
.dashboard-heading p{margin-bottom:.3rem}.dashboard-heading .eyebrow{font-size:.65rem}
.dashboard-freshness{display:flex;flex-direction:column;align-items:flex-end;gap:.35rem;font-size:.8rem}.dashboard-freshness small{color:var(--muted);font-size:.7rem}.freshness-link{font-weight:650;text-decoration:none}
.dashboard-filters{display:flex;align-items:center;gap:1rem;padding:.85rem 1rem;margin-bottom:1.8rem;border:1px solid var(--line);border-radius:.8rem;background:#fff}
.dashboard-filters label,.goal-editor label,.inline-select{display:flex;flex-direction:column;gap:.3rem;font-size:.7rem;font-weight:650;color:var(--muted)}
.dashboard-filters select,.inline-select select,.goal-editor input,.goal-editor select,.goal-editor textarea,.goal-detail-layout~.dashboard-panel input,.goal-detail-layout~.dashboard-panel select{min-height:2.25rem;padding:.4rem .65rem;border:1px solid var(--line);border-radius:.4rem;background:var(--paper);color:var(--ink);font-size:.8rem}
.dashboard-filters .check-label,.goal-editor .check-label{flex-direction:row;align-items:center;gap:.45rem}.check-label input[type=checkbox]{min-height:0;width:1rem;height:1rem;accent-color:var(--accent)}
.dashboard-conventions{margin-left:auto;font-size:.7rem;color:var(--muted)}
.dashboard-section-title{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-bottom:.75rem}.dashboard-section-title h2{font-size:1rem;margin:0}.dashboard-section-title h2 span{margin-left:.6rem;font-weight:400;color:var(--muted)}.dashboard-section-title>span{font-size:.7rem;color:var(--muted)}
.headline-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.8rem}.headline-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:1rem 1rem .75rem;border:1px solid var(--line);border-radius:.7rem;background:#fff;text-decoration:none;overflow:hidden;color:var(--ink)}
.headline-card>span{font-size:.7rem;font-weight:650;color:var(--muted)}.headline-card>strong{margin:.55rem 0 .35rem;font-size:clamp(1.4rem,2.2vw,2.25rem);line-height:1.1;letter-spacing:-.04em}.headline-card>small{min-height:2rem;color:var(--muted);font-size:.67rem}.headline-card:hover{border-color:#9caeaa;box-shadow:0 4px 16px #17242b08}.run-accent{border-top:3px solid var(--run)}.ride-accent{border-top:3px solid var(--ride)}.effort-accent{border-top:3px solid #8a799c}.mini-trend{display:block;width:100%;height:1.6rem;margin-top:.3rem;overflow:visible}.mini-trend polyline{fill:none;stroke:#8d9e98;stroke-width:1.7;vector-effect:non-scaling-stroke}.run-accent polyline{stroke:var(--run)}.ride-accent polyline{stroke:var(--ride)}.effort-accent polyline{stroke:#8a799c}
.dashboard-footnote,.dashboard-data-note{margin:.7rem .1rem 1rem;font-size:.7rem;line-height:1.5;color:var(--muted)}.dashboard-data-note{padding:.6rem .8rem;background:#f2eee4;border-radius:.4rem}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(20rem,1fr);gap:1rem;align-items:start}.dashboard-panel{min-width:0;padding:1.3rem;border:1px solid var(--line);border-radius:.8rem;background:#fff}.dashboard-panel h2{margin:0;font-size:1.15rem;letter-spacing:-.025em}.dashboard-panel h3{font-size:.9rem}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.1rem}.panel-heading .eyebrow{margin-bottom:.35rem;font-size:.6rem;letter-spacing:.11em}.panel-heading .text-link{font-size:.75rem;white-space:nowrap}.scope-badge{padding:.3rem .5rem;border-radius:.35rem;background:var(--soft);color:var(--muted);font-size:.65rem;white-space:nowrap}
.chart-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.7rem;margin-bottom:1rem}.segmented{display:inline-flex;padding:.2rem;border:1px solid var(--line);border-radius:.4rem;background:#f5f6f3}.segmented button{padding:.3rem .55rem;border:0;border-radius:.25rem;background:transparent;color:var(--muted);font-size:.7rem;cursor:pointer}.segmented button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 4px #17242b15;font-weight:700}.chart-unit,.chart-caption{color:var(--muted);font-size:.68rem;line-height:1.55}.chart-caption{margin:.8rem 0}.chart-toolbar .text-link{font-size:.7rem}
.volume-chart{display:grid;grid-template-columns:2rem 1fr;gap:.35rem;margin-top:1.5rem}.volume-y-axis{display:flex;flex-direction:column;justify-content:space-between;height:12rem;font-size:.6rem;color:var(--muted);text-align:right;padding-right:.25rem}.volume-bars{display:flex;gap:clamp(.1rem,.8vw,.8rem);min-width:0;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent calc(6rem - 1px),#e8ece8 6rem);height:12rem}.volume-column{position:relative;display:flex;flex:1;min-width:0;flex-direction:column;height:100%}.volume-stack{display:flex;flex-direction:column-reverse;justify-content:flex-start;width:100%;height:100%;text-decoration:none;border-radius:.2rem .2rem 0 0;transition:filter .15s}.volume-stack span{display:block;min-height:0}.volume-stack:hover{filter:brightness(.9)}.volume-column>small{position:absolute;top:calc(100% + .4rem);left:50%;transform:translateX(-50%);color:var(--muted);white-space:nowrap;font-size:.56rem}.volume-column.is-partial .volume-stack{opacity:.65;outline:1px dashed #a0aaa4;outline-offset:2px}.partial-marker{position:absolute;top:calc(100% + 1.25rem);left:50%;transform:translateX(-50%);font-size:.55rem;color:var(--muted)}
.sport-run{background:#2878b5}.sport-ride{background:#e77632}.sport-other{background:#83938f}.chart-legend{display:flex;flex-wrap:wrap;gap:.75rem;margin:2.4rem 0 .8rem;color:var(--muted);font-size:.65rem}.chart-legend span{display:flex;align-items:center;gap:.35rem}.chart-legend i,.mix-table i,.sport-dot{display:inline-block;width:.55rem;height:.55rem;border-radius:.15rem;flex:none}.chart-data{border-top:1px solid #edf0ec;margin-top:.9rem;padding-top:.7rem;font-size:.75rem;color:var(--muted)}.chart-data summary{cursor:pointer}.chart-data p{margin-top:.7rem;line-height:1.6}.chart-empty{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;min-height:12rem;padding:1rem 0;color:var(--muted);font-size:.8rem;line-height:1.6}.chart-empty strong{color:var(--ink)}.chart-empty p{max-width:34rem;margin-top:.5rem}.chart-empty a{font-weight:650}
.fitness-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin:1.3rem 0}.fitness-numbers>div{display:flex;flex-direction:column;gap:.3rem}.fitness-numbers span,.fitness-numbers small{font-size:.65rem;color:var(--muted)}.fitness-numbers strong{font-size:1.65rem;font-weight:650;letter-spacing:-.04em}.fitness-plot{position:relative;padding-left:2.7rem;margin-top:1.2rem}.fitness-plot svg{display:block;width:100%;height:10.5rem;overflow:visible}.plot-axis{position:absolute;inset:0 auto 0 0;width:2.3rem;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;font-size:.6rem;color:var(--muted)}.plot-axis span:nth-child(2){font-size:.5rem}.plot-grid{stroke:#e5eae6;stroke-width:1;vector-effect:non-scaling-stroke}.fitness-chronic,.fitness-acute,.fitness-balance{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.fitness-chronic{stroke:#386e9b;stroke-width:2.5}.fitness-acute{stroke:#bf7853;stroke-dasharray:5 3}.fitness-balance{stroke:#818578}.plot-dates{display:flex;justify-content:space-between;color:var(--muted);font-size:.6rem;margin-top:.4rem}.fitness-panel .chart-legend{margin:1rem 0}.chronic-swatch{background:#386e9b}.acute-swatch{background:#bf7853}.balance-plot svg{height:4rem}.fitness-data{max-height:20rem;overflow:auto}
.consistency-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem;margin:1rem 0 1.2rem}.consistency-totals>div{display:flex;flex-direction:column;gap:.25rem}.consistency-totals strong{font-size:1.6rem;letter-spacing:-.04em}.consistency-totals small{font-weight:400;color:var(--muted);font-size:.8rem}.consistency-totals span{font-size:.65rem;color:var(--muted)}.training-calendar{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,1fr);grid-template-columns:repeat(12,1fr);gap:.25rem}.training-calendar>a,.training-calendar>span{display:block;aspect-ratio:1.35;border-radius:.2rem;background:#edf0eb}.training-calendar .heat-1{background:#c8d9ce}.training-calendar .heat-2{background:#90b39c}.training-calendar .heat-3{background:#54836a}.training-calendar .heat-4{background:#285c44}.training-calendar .calendar-future{background:transparent;border:1px dotted var(--line)}.training-calendar a:hover{outline:2px solid var(--ink);outline-offset:1px}.calendar-caption{display:flex;justify-content:space-between;gap:.4rem;margin:.5rem 0 1rem;color:var(--muted);font-size:.6rem}.calendar-caption small{font-size:inherit}
.mix-table>a{display:grid;grid-template-columns:1fr auto;gap:.3rem;padding:.55rem 0;border-top:1px solid #edf0eb;text-decoration:none;font-size:.75rem}.mix-table>a>span{display:flex;gap:.4rem;align-items:center}.mix-table strong{font-size:.8rem}.mix-table small{grid-column:1/-1;color:var(--muted);font-size:.65rem}.environment-mix{display:flex;gap:1.2rem;margin:1rem 0;font-size:.7rem;color:var(--muted)}.environment-mix strong{display:block;color:var(--ink);margin-top:.25rem}.minor-heading{margin:1.2rem 0 .6rem}.zone-distribution{display:flex;gap:2px;height:.65rem;border-radius:.2rem;overflow:hidden}.zone-1{background:#9eb5c2}.zone-2{background:#5f9c8d}.zone-3{background:#c9b36e}.zone-4{background:#d28859}.zone-5{background:#b25e62}.zone-labels{display:grid;grid-template-columns:repeat(5,1fr);gap:.3rem;margin:.5rem 0 .7rem;font-size:.6rem;color:var(--muted)}.zone-labels strong{display:block;margin-top:.2rem;color:var(--ink);font-weight:600}
.long-view-panel,.recent-panel{margin-top:1rem}.year-total-grid{display:grid;grid-template-columns:repeat(4,1fr);margin:1.5rem 0 2rem;gap:1rem}.year-total-grid>div{display:flex;flex-direction:column;gap:.4rem;border-left:2px solid var(--line);padding-left:.8rem}.year-total-grid span{font-size:.7rem;color:var(--muted)}.year-total-grid strong{font-size:1.8rem;letter-spacing:-.04em}.year-total-grid small{font-size:.65rem;color:var(--muted)}.table-scroll{max-width:100%;overflow-x:auto}.dashboard-table{width:100%;border-collapse:collapse;font-size:.75rem;text-align:left;font-variant-numeric:tabular-nums}.dashboard-table th{padding:.65rem .6rem;color:var(--muted);font-size:.62rem;font-weight:650;white-space:nowrap;border-bottom:1px solid var(--line);text-transform:uppercase;letter-spacing:.03em}.dashboard-table td{padding:.8rem .6rem;border-bottom:1px solid #edf0eb;white-space:nowrap}.dashboard-table td a{font-weight:650;text-decoration:none}.dashboard-table td a:hover{text-decoration:underline}.dashboard-table td small{display:block;margin-top:.25rem;color:var(--muted);font-size:.62rem}.dashboard-table .sport-dot{margin-right:.4rem}.dashboard-table tbody tr:last-child td{border-bottom:0}.dashboard-onboarding{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0}.dashboard-onboarding p{margin:.6rem 0 0;color:var(--muted);font-size:.8rem}
.goal-progress-card{padding:1rem 0;border-top:1px solid #edf0eb}.goal-card-title{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.75rem;font-size:.9rem;font-weight:650}.goal-card-title a{text-decoration:none}.goal-card-title a:hover{text-decoration:underline}.goal-reward{color:#927016;font-size:1.2rem}.goal-clause{margin:.65rem 0}.goal-clause>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.35rem;font-size:.65rem}.goal-clause>div>span{color:var(--muted)}.goal-clause progress{display:block;width:100%;height:.4rem;margin:.5rem 0;border:0;border-radius:999px;background:#e9ede7;accent-color:#54836a;overflow:hidden}.goal-clause progress::-webkit-progress-bar{background:#e9ede7}.goal-clause progress::-webkit-progress-value{background:#54836a}.goal-clause progress::-moz-progress-bar{background:#54836a}.goal-clause small,.goal-progress-card>small{color:var(--muted);font-size:.65rem}.goal-period-note{margin:.65rem 0 .35rem;font-size:.65rem;color:var(--muted)}.goal-streak{display:block;margin-top:.3rem}.goal-filter-note{margin-top:.65rem;font-size:.6rem;color:var(--muted);line-height:1.5}.goal-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:2rem}.goal-card-grid .goal-progress-card{padding:0;border:0}.goal-detail-layout{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1rem}.goal-detail-layout .goal-progress-card{border:0;padding-top:0}.goal-detail-layout details{margin-top:1.5rem;font-size:.8rem}.goal-detail-layout summary{cursor:pointer}.goal-editor{max-width:65rem;margin:0 auto}.goal-editor h2{margin-bottom:.75rem}.goal-editor>.muted,.goal-requirement .muted{font-size:.75rem;line-height:1.6}.goal-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1.2rem 0}.goal-description{grid-column:1/-1}.goal-editor textarea{min-height:4rem;resize:vertical}.goal-editor>label{margin-top:1rem;max-width:25rem}.goal-editor>.check-label{max-width:none}.goal-requirement{padding:1rem;margin:1.5rem 0;border:1px solid var(--line);border-radius:.6rem}.goal-requirement legend{font-size:.8rem;font-weight:650;padding:0 .4rem}.goal-requirement .goal-form-grid{margin:.4rem 0 1rem}.goal-editor .actions{margin:1.3rem 0}.goal-editor .actions .button{font-size:.8rem}.goal-detail-layout~.dashboard-panel>label{display:flex;flex-direction:column;gap:.4rem;max-width:25rem;font-size:.75rem;margin:1rem 0}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:where(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #2878b5;outline-offset:3px}
@media(min-width:90rem){.dashboard-main-grid{grid-template-columns:minmax(0,1.8fr) minmax(22rem,1fr)}.dashboard-panel{padding:1.5rem}.volume-bars,.volume-y-axis{height:14rem}.volume-bars{background-size:auto 7rem}}
@media(max-width:68rem){.dashboard-main-grid{grid-template-columns:minmax(0,1.3fr) minmax(18rem,1fr)}.headline-grid{gap:.5rem}.headline-card{padding:.8rem}.headline-card>strong{font-size:1.65rem}.headline-card>small{font-size:.6rem}.dashboard-conventions{display:none}.goal-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:52rem){.dashboard-main-grid{display:flex;flex-direction:column}.dashboard-main-grid>.dashboard-panel{width:100%}.goals-panel{order:0}.volume-panel{order:1}.fitness-panel{order:2}.consistency-panel{order:3}.headline-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-heading{align-items:flex-start}.dashboard-filters{flex-wrap:wrap}.goal-form-grid{grid-template-columns:1fr 1fr}.goal-detail-layout{grid-template-columns:1fr}.year-total-grid{grid-template-columns:repeat(2,1fr)}.dashboard-section-title{flex-wrap:wrap}.training-calendar>a,.training-calendar>span{aspect-ratio:1.7}.volume-column>small{font-size:.6rem}.goal-card-grid{grid-template-columns:1fr}}
@media(max-width:38rem){.shell:has(.training-dashboard){padding:1.3rem .8rem 3rem}.dashboard-heading{gap:.8rem}.dashboard-heading h1{font-size:1.7rem}.dashboard-heading>div>p.muted{font-size:.75rem}.dashboard-freshness{max-width:8rem;font-size:.65rem}.dashboard-freshness small{font-size:.6rem;text-align:right}.dashboard-freshness .text-button{font-size:.6rem}.dashboard-heading .eyebrow{font-size:.55rem}.headline-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.headline-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.headline-card:last-child>strong{grid-column:1;grid-row:2}.headline-card:last-child>small{grid-column:1;grid-row:3}.headline-card:last-child .mini-trend{grid-column:2;grid-row:1/4;align-self:center}.headline-card>small{min-height:1.8rem}.dashboard-filters{gap:.7rem;padding:.7rem}.dashboard-filters label:not(.check-label){flex:1;min-width:7rem}.dashboard-filters select{width:100%}.dashboard-panel{padding:1rem}.panel-heading{gap:.5rem}.panel-heading h2{font-size:1rem}.scope-badge{font-size:.55rem}.volume-column:nth-child(even)>small{visibility:hidden}.volume-bars{gap:.35rem}.volume-chart{grid-template-columns:1.6rem 1fr}.chart-unit{font-size:.6rem}.fitness-numbers strong{font-size:1.5rem}.fitness-numbers span,.fitness-numbers small{font-size:.58rem}.year-total-grid strong{font-size:1.5rem}.dashboard-onboarding{align-items:flex-start;flex-direction:column}.goal-form-grid{grid-template-columns:1fr}.goal-editor .actions{flex-wrap:wrap}.goal-detail-layout .actions{flex-wrap:wrap}.site-header .nav-links>a{font-size:.65rem}.site-header .logout-form button{font-size:.65rem}}
@media(prefers-reduced-motion:reduce){.volume-stack{transition:none}}
