/* Athlete Home: assigned materials and progress use one surface each. */
#clientView .athlete-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0 12px;
}

#clientView .athlete-coach-section .client-content-access-actions {
  display: flex;
  min-width: 0;
}

#clientView .athlete-section-link {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--fs-ink);
  font-size: 14px;
  white-space: normal;
}

#clientView .athlete-section-link:hover { color: var(--fs-accent); text-decoration: underline; }

.athlete-coach-panel,
.athlete-progress-panel {
  min-width: 0;
  border: 1px solid var(--fs-stroke);
  border-radius: var(--fs-radius);
  background: var(--fs-paper);
}

.athlete-materials { padding: var(--athlete-card-pad); }

#clientView #clientScreenHome h3:is(#athleteMaterialsTitle, #athleteIndicatorsTitle, #athleteTrendTitle, #athleteWeeklyTitle, #athleteBodyTitle) {
  margin: 0;
  color: var(--fs-ink);
  font: 700 clamp(17px, 1.45vw, 20px)/1.25 var(--fs-display);
  letter-spacing: -.018em;
}

.athlete-material-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.athlete-material-row {
  display: grid;
  grid-template-columns: clamp(52px, 6vw, 64px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--fs-stroke);
}

.athlete-material-row:last-child { padding-bottom: 0; }
.athlete-material-row .athlete-material-preview { border-radius: 8px; }
.athlete-material-symbol {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  color: var(--fs-accent);
  background: var(--fs-accent-surface);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
}

.athlete-material-copy { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.athlete-material-copy strong { color: var(--fs-ink); font-size: 15px; }
.athlete-material-copy > span,
.athlete-material-empty { color: var(--fs-secondary); font-size: 13px; }
.athlete-material-copy i { margin-inline: 3px; font-style: normal; }
.athlete-material-empty { margin: 4px 0 0; padding-block: 10px 2px; }

#clientView .athlete-material-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  gap: 5px;
  border-color: var(--fs-stroke);
  white-space: nowrap;
}

#clientView .athlete-package-panel {
  grid-area: auto;
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0 var(--athlete-card-pad);
  background: var(--fs-recessed);
  border: 0;
  border-top: 1px solid var(--fs-stroke);
  border-radius: 0 0 var(--fs-radius) var(--fs-radius);
  box-shadow: none;
}

.athlete-package-overview {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 12px 16px;
  padding: 12px 0;
}

#clientView #clientScreenHome .athlete-package-overview :is(#clientPlanName, #clientPlanExpiry, #clientNextCheckDate) {
  display: block;
  color: var(--fs-ink);
  font: 700 15px/1.35 var(--fs-display);
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

#clientView .athlete-package-overview :is(.athlete-package-label, #clientNextCheck > span) {
  display: block;
  margin: 0 0 3px;
  color: var(--fs-secondary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: normal;
  text-transform: none;
}

#clientView .athlete-package-overview #clientNextCheck {
  padding: 0;
  border: 0;
  background: transparent;
}

#clientView .athlete-package-overview #clientNextCheck > small { margin: 3px 0 0; font-size: 12px; }

#clientView .athlete-package-details {
  color: var(--fs-secondary);
  padding: 15px 0;
  border-top: 1px solid var(--fs-stroke);
}

#clientView .athlete-package-details[hidden] { display: none; }
#clientView .athlete-package-details #clientPlanPrice { color: var(--fs-ink); }
#clientView .athlete-package-details #clientReminderSchedule { font-size: 13px; }
#clientView .athlete-package-panel.plan-expanded #clientPlanFeatures {
  padding-inline-start: 19px;
  column-gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: disc;
  font-size: 14px;
}

#clientView .athlete-progress-panel .athlete-indicators { padding: var(--athlete-card-pad); }
#clientView .athlete-progress-panel .athlete-indicator-grid { margin-top: 12px; }
#clientView .athlete-progress-panel .client-performance-strip { gap: 0; }
#clientView .athlete-progress-panel .client-performance-strip article {
  margin: 0;
  padding: 5px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#clientView .athlete-progress-panel .client-performance-strip article + article { border-inline-start: 1px solid var(--fs-stroke); }
#clientView .athlete-progress-panel .client-performance-strip article:first-child { padding-inline-start: 0; }
#clientView .athlete-progress-panel .client-performance-strip article > span,
#clientView .athlete-progress-panel .readiness-copy p { font-size: 13px; }

.athlete-progress-panel .athlete-analysis-grid {
  border: 0;
  border-top: 1px solid var(--fs-stroke);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#clientView .athlete-progress-panel .trend-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

#clientView .athlete-progress-panel :is(.trend-summary-grid, .athlete-trend-single) dt { color: var(--fs-secondary); font-size: 13px; }
#clientView .athlete-progress-panel :is(.trend-summary-grid, .athlete-trend-single) dd { margin: 2px 0 0; color: var(--fs-ink); font-size: 15px; font-weight: 750; }
#clientView .athlete-progress-panel :is(.athlete-trend-single, .client-progress-chart .chart-empty) {
  min-height: 0;
  padding: 11px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#clientView .athlete-progress-panel :is(.athlete-trend-single p, .athlete-trend-single time, .chart-empty span) { font-size: 13px; }
#clientView .athlete-progress-panel .weekly-report-grid article {
  padding: 6px 0;
  border: 0;
  background: transparent;
}

#clientView .athlete-progress-panel :is(.weekly-report-grid article span, .client-weekly-report-card > p, .body-data-list > span, .athlete-body-head small) { font-size: 13px; }
#clientView .athlete-progress-panel .client-trend-raw summary { min-height: 44px; padding: 11px 0; font-size: 14px; }

@media (max-width: 720px) {
  .athlete-package-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #clientView #toggleClientPlanDetails { justify-self: start; }
  #clientView .athlete-progress-panel .client-performance-strip article:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  #clientView .athlete-progress-panel .client-performance-strip article:nth-child(n+3) { margin-top: 8px; }
  #clientView .athlete-progress-panel .trend-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #clientView .athlete-progress-panel .client-progress-chart > svg text { font-size: 26px; }
}

@media (max-width: 480px) {
  #clientView .athlete-package-panel.plan-expanded #clientPlanFeatures { grid-template-columns: minmax(0, 1fr); }
}
