.athlete-hero,.athlete-heading,.dash-panel-title,.dash-period,.weekly-goal,.metric-controls,.check-actions,.dash-links {
  display:flex;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}
.athlete-hero,.athlete-heading,.dash-panel-title {justify-content:space-between}
.athlete-hero {
  margin:1.5rem 0 1.8rem;
  padding:clamp(1.25rem,3vw,2.4rem);
  border:1px solid #485b3b;
  border-radius:1.2rem;
  background:radial-gradient(ellipse at 95% 0%,#34452c,transparent 55%),linear-gradient(112deg,#1d261e,#1b231d 65%,#263526);
}
.athlete-date {font-size:.94rem;color:#c2d0b8;margin-bottom:.6rem}
.athlete-date::first-letter {text-transform:uppercase}
.athlete-hero h1,.athlete-heading h1 {margin:.3rem 0 1.15rem;font-size:clamp(2.35rem,5vw,4.35rem)}
.athlete-hero .suggest {margin:0}
.dash-action {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;
  padding:.55rem 1rem;border-radius:.55rem;background:var(--lime);color:#18210f;font-weight:720;text-decoration:none;
}
.athlete-hero .quiet {border-color:#596a53;color:var(--ink)}
.weekly-goal {gap:1rem}
.weekly-goal strong,.metric-reading strong,.athlete-stat strong,.goal-ring span {font-variant-numeric:tabular-nums}
.weekly-goal p,.dash-caption,.check-field small,.recent-log small {font-size:.9rem;color:var(--muted)}
.weekly-goal p {margin:.2rem 0}
.weekly-goal a,.dash-panel-title a,.dash-links a {font-size:.95rem}
.goal-ring {
  width:5.7rem;height:5.7rem;display:grid;place-items:center;border-radius:50%;
  background:conic-gradient(var(--lime) var(--progress),#435240 0);
}
.goal-ring span {
  width:calc(100% - 12px);height:calc(100% - 12px);
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  border-radius:50%;background:#242f25;font-weight:750;font-size:1.8rem;line-height:1;
}
.goal-ring small {font-size:.85rem;font-weight:500;color:var(--muted);margin-top:.25rem}
.overview-period {margin-bottom:1rem}
.dash-panel-title h2,.check-actions p {margin:0}
.dash-period {gap:.6rem;align-items:flex-end}
.dash-switch {display:flex;gap:.22rem;padding:.19rem;background:#1a201a;border:1px solid var(--border);border-radius:.6rem}
.dash-switch button {border:0;border-radius:.45rem;min-height:2.1rem}
.dash-switch [aria-pressed=true] {background:#36472e;color:var(--lime)}
.date-control {max-width:14rem;margin:0;font-size:.875rem}
.date-control input {min-height:2.5rem;line-height:1;padding:.35rem .65rem}
.athlete-stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin-bottom:1rem}
.athlete-stat,.dash-panel {
  background:var(--panel);border:1px solid var(--border);border-radius:1rem;
  padding:clamp(.95rem,2vw,1.35rem);min-width:0;
}
.athlete-stat {display:flex;flex-direction:column;color:var(--ink);text-decoration:none}
.athlete-stat:hover {border-color:#748969}
.athlete-stat>span {font-size:.95rem}
.athlete-stat>strong {font-size:clamp(1.75rem,3vw,2.55rem);letter-spacing:-.05em;line-height:1.25;margin:.2rem 0}
.athlete-stat>small {color:var(--muted);font-size:.875rem}
.overview-grid {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:1rem;margin-bottom:1rem}
.athlete-heading {margin:1.7rem 0 1.15rem}
.athlete-heading h1 {margin-bottom:.55rem}
.athlete-heading p,.dash-caption {margin-bottom:.7rem}
.metric-controls>label {flex:1;min-width:min(100%,12rem)}
.metric-controls select {max-width:100%;text-overflow:ellipsis}
.metric-reading {display:flex;gap:.5rem;align-items:baseline}
.metric-reading strong {font-weight:760;font-size:2rem;line-height:1.15}
.metric-reading span {color:var(--muted)}
.metric-plot {display:block;width:100%;height:auto;max-height:15rem;overflow:visible}
.metric-plot text {fill:var(--muted);font:15px system-ui,sans-serif}
.chart-grid {fill:none;stroke:#414b3f}
.metric-line {fill:none;stroke:var(--lime);stroke-width:2}
.metric-plot circle {fill:var(--lime);stroke:#263026}
.chart-empty {display:grid;align-content:center;justify-items:start;gap:.4rem;min-height:9.5rem}
.chart-empty strong {font-size:1.1rem}
.chart-empty p {max-width:52ch;margin:0}
.chart-empty .dash-action {margin-top:.4rem}
.chart-panel details {margin-block:.75rem}
.rhythm {width:100%;table-layout:fixed;border-spacing:.28rem .4rem}
.rhythm th {font-size:.875rem;font-weight:500;text-align:center;padding:0}
.rhythm th:first-child {text-align:start;width:5.5rem;color:var(--muted)}
.rhythm time span {display:block;color:var(--muted)}
.rhythm td {padding:0}
.rhythm-day {display:block;height:1.25rem;border-radius:.25rem;border:1px solid #384034;background:#252b24}
.rhythm-day.filled.strength {background:#c3e989}
.rhythm-day.filled.cardio {background:#8ac8ca}
.rhythm-day.filled.nutrition {background:#ddb57a}
.rhythm-day.filled.body {background:#b4a1cf}
.action-grid,.check-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(12rem,100%),1fr));gap:.6rem}
.action-grid button {text-align:start}
.dash-links {gap:.7rem 1rem;margin-top:1rem}
.recent-log {list-style:none;padding:0;margin:0}
.recent-log li {display:flex;align-items:baseline;gap:1rem;padding:.45rem 0;border-bottom:1px solid var(--border)}
.recent-log li:last-child {border-bottom:0}
.recent-log time {font-size:.875rem;color:var(--muted);min-width:3.7rem}
.recent-log small {display:block}
#daily-checkin .dash-panel,#view>.dash-period,#view>.date-control {margin-bottom:1rem}
.check-field {gap:.3rem;margin:0}
.check-input {display:flex;align-items:center;gap:.5rem;background:var(--bg);border:1px solid var(--border);border-radius:.55rem;padding-inline:.6rem}
.check-input:focus-within {outline:2px solid var(--lime)}
.check-input input {min-width:0;border:0;background:transparent;padding:.65rem .15rem;font-size:1.1rem}
.check-input input:focus-visible {outline:0}
.check-input>span {white-space:nowrap;font-size:.875rem}
.check-field>label {margin:0}
.check-mass input {flex:1}
.check-mass select {flex:0 0 auto;width:auto;max-width:45%;margin:0;padding:.4rem .2rem}
.check-actions {margin:.8rem 0}
.session-actions {display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin:.75rem 0}
.session-actions button[aria-pressed=true] {border-color:var(--lime);color:var(--lime)}
.session-progress progress {max-width:100%;width:100%}
.session-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.5rem}
.session-fields input {width:100%;min-width:0}
.session-set {min-width:0;margin:.8rem 0;padding:.6rem 1rem;border:1px solid var(--border);border-radius:.7rem}
.session-set legend {padding:0 .4rem}
.strength-comparison {margin-top:1rem}
.strength-comparison .metric-reading strong {font-size:clamp(1.15rem,2.4vw,1.8rem);overflow-wrap:anywhere}
.strength-day {padding:.7rem 0;border-bottom:1px solid var(--border)}
.strength-day summary {cursor:pointer}
.strength-day time {font-variant-numeric:tabular-nums}
.nutrition-cards {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr));gap:.7rem;margin:1rem 0}
.nutrition-cards .nutrition-value {font-size:clamp(1.25rem,2vw,1.8rem);font-weight:680;line-height:1.2;font-variant-numeric:tabular-nums;margin:.45rem 0}
.nutrition-cards small {display:block;color:var(--muted)}
.nutrition-cards progress {display:block;width:100%;margin-bottom:.55rem}
.nutrition-table {overflow-x:auto}
.nutrition-table table {width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.nutrition-table caption {text-align:start;margin-bottom:.6rem}
.nutrition-table td,.nutrition-table th {text-align:start;padding:.45rem;border-bottom:1px solid var(--border)}
.metric-history {max-height:17rem;overflow:auto}
.metric-history table {width:100%;border-collapse:collapse}
.metric-history th,.metric-history td {text-align:start;border-bottom:1px solid var(--border);padding:.35rem}
@media (max-width:1100px) {.overview-grid{grid-template-columns:1fr}}
@media (max-width:790px) {.athlete-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px) {
  .athlete-hero{gap:1.4rem}.weekly-goal{border-top:1px solid #45513f;padding-top:1rem;width:100%}
  .goal-ring{width:3.8rem;height:3.8rem}.goal-ring span{font-size:1.2rem;width:calc(100% - 8px);height:calc(100% - 8px)}
  .athlete-stats,.overview-grid{gap:.65rem}.athlete-stat{padding:.8rem}.dash-period{width:100%}
  .rhythm{border-spacing:.13rem .38rem}.rhythm th:first-child{width:4.7rem}
  .check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-plot{min-height:7rem}
}


.report-controls {margin-bottom:1rem}
#report-output[hidden],#report-date-status:empty {display:none!important}
.report-entry-links {margin:.75rem 0 1rem}
.report-controls fieldset {margin:1rem 0 0;padding:.6rem 1rem;border:1px solid #53634f;border-radius:.65rem;min-width:0}
.report-choices,.report-actions {display:flex;gap:.5rem 1.25rem;flex-wrap:wrap}
.report-choices label {display:inline-flex;align-items:center;gap:.5rem;min-height:44px}
.report-choices input {width:1.13rem;height:1.13rem}
.report-periods span,.report-result dd span {display:block}
.report-result {display:grid;grid-template-columns:minmax(8rem,1fr) minmax(12rem,1.5fr);column-gap:1rem;padding:.9rem 0;border-top:1px solid #465044}
.report-result dt,.report-result strong {font-weight:700}
.report-result dd {margin:0;font-variant-numeric:tabular-nums}
.report-result dd span {color:var(--muted);font-size:.92rem}
.report-bars,.report-result .dash-caption {grid-column:2}
.report-bars {display:grid;gap:3px;margin:.45rem 0!important;max-width:22rem}
.report-bars div {height:4px;background:#374036;border-radius:.3rem}
.report-bars i {display:block;height:100%;border-radius:inherit;background:var(--lime)}
.report-bars div:nth-child(2) i {background:#9cbac7}
.report-section dl {margin-bottom:.5rem}
@media (max-width:560px) {
  .report-controls .metric-controls label {flex:1 1 11rem;min-width:0}
  .report-result {grid-template-columns:minmax(0,1fr);row-gap:.2rem}
  .report-bars,.report-result .dash-caption {grid-column:1}
  #coach-report-preview,.report-controls {overflow-wrap:anywhere}
}
@media print {
  body:has(#coach-report-preview) {display:block!important;background:white!important;color:#111!important}
  body:has(#coach-report-preview) > :not(main),body:has(#coach-report-preview) main > :not(#view),
  body:has(#coach-report-preview) #view > :not(#report-output),body:has(#coach-report-preview) #report-output > :not(#coach-report-preview) {display:none!important}
  body:has(#coach-report-preview) main,#coach-report-preview {display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:white!important}
  #coach-report-preview * {color:#111!important}
  #coach-report-preview .report-result {break-inside:avoid}
  #coach-report-preview .report-section h3 {break-after:avoid}
  #coach-report-preview .report-bars {display:none}
}

.week-target {border-inline-start:2px solid #53634f;padding-inline-start:1rem;margin:0 0 1rem;overflow-wrap:anywhere}
.week-target h4 {margin:0;font-size:1.05rem}
.week-target p {margin:.3rem 0}
.week-routine-editor {margin:1rem 0}
.week-routine-editor fieldset {min-width:0;margin:.75rem 0;border:1px solid #53634f;border-radius:.5rem}
.week-routine-editor input {max-width:100%}
.week-routine-editor .session-fields {margin-top:.5rem}

.lab-entry-line {min-width:0;margin:1.15rem 0;padding:.85rem 1rem;border:1px solid #53634f;border-radius:.65rem}
.lab-entry-line .session-fields {grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr))}
.lab-entry-line button {margin-top:.65rem}
#lab-entry-form .metric-controls label {flex:1 1 11rem;min-width:0}
#lab-entry-form #lab-copies {margin-top:1rem}
.lab-history {list-style:none;padding:0}
.lab-history li {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.55rem 1rem;padding:.85rem 0;border-top:1px solid #465044;overflow-wrap:anywhere}
.lab-history li>div:first-child {display:grid;gap:.16rem}
.lab-history time,.lab-history li span {color:var(--muted);font-size:.92rem}
#lab-series {width:100%;min-width:0;max-width:100%}
@media (max-width:560px) {.lab-entry-line {padding:.6rem}.lab-entry-line .session-fields {grid-template-columns:1fr}}

.health-entries {list-style:none;padding:0}
.health-entries li {border-top:1px solid #465044;padding:.65rem 0}
.health-entries label {align-items:flex-start}
.health-entries span {min-width:0;display:grid;gap:.18rem;overflow-wrap:anywhere}
.health-entries small {color:var(--muted)}
.health-preview {font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;max-height:55vh;overflow:auto;padding:1rem;border:1px solid #53634f;border-radius:.5rem}
#health-results .session-actions {margin:.7rem 0}
.health-dates label {min-width:0;flex:1 1 11rem}
.health-dates input,.health-dates select {width:100%;max-width:100%;box-sizing:border-box}

.coach-question form {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));align-items:end;margin:1rem 0}
.coach-question form label {min-width:0}
.coach-question form label:first-child {grid-column:1/-1}
.coach-question form input:not([type=checkbox]),.coach-question form select {box-sizing:border-box;width:100%;max-width:100%}
.coach-question form button {justify-self:start}
.coach-question details {margin:.75rem 0}
.coach-answer {overflow-wrap:anywhere}
.coach-answer .suggest {margin:1rem 0}
.backup-conflict {border-top:1px solid #53604e;padding:.8rem 0;overflow-wrap:anywhere}
.backup-conflict summary {cursor:pointer;font-weight:600}
.backup-conflict label {display:flex;align-items:center;gap:.55rem;margin-top:.7rem}
.backup-conflict input[type=checkbox] {width:1.15rem;min-height:1.15rem;flex:none;margin:0}
.backup-field {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem .8rem;margin:.75rem 0}
.backup-field strong {grid-column:1/-1}
.backup-field pre {margin:.15rem 0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}
.backup-pager {display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
@media (max-width:36rem) {.backup-field {grid-template-columns:minmax(0,1fr)}}
