.studio-athlete-area {
  max-width: 840px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.athlete-banner { min-width: 0; }
.athlete-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 5px 2px;
  scrollbar-width: thin;
}
.athlete-tabs > button { flex: 0 0 auto; white-space: nowrap; }
.athlete-badge {
  display: inline-grid;
  min-width: 1.35em;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--wash);
  color: var(--ink);
  font-size: .75em;
  padding-inline: 3px;
}
.athlete-offline,
.athlete-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.athlete-offline { padding-block: 12px; }
.athlete-offline > button { flex: 0 0 auto; }
.athlete-field-grid,
.athlete-form,
.athlete-exercises,
.athlete-exercise-body {
  display: grid;
  gap: 12px;
}
.athlete-field-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
.athlete-form,
.athlete-field-grid { margin-block: 12px; }
.athlete-form > button { justify-self: start; }
.athlete-workout h2 { margin: 4px 0 8px; }
.athlete-description { color: var(--muted); }
.athlete-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.athlete-clock strong,
.athlete-timer strong { font-variant-numeric: tabular-nums; }
.athlete-clock strong { font-size: 1.4rem; }
.athlete-exercise {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.athlete-exercise > summary {
  cursor: pointer;
  padding: 13px;
  min-height: 47px;
}
.athlete-exercise > summary span {
  color: var(--muted);
  display: block;
  padding-left: 1em;
  font-size: .85rem;
  margin-top: 4px;
}
.athlete-exercise-body {
  padding: 12px;
  border-top: 1px solid var(--line);
}
.athlete-exercise-body > button { justify-self: start; }
.athlete-previous {
  border-radius: 8px;
  background: var(--wash);
  padding: 8px 11px;
  color: var(--muted);
}
.athlete-previous strong { color: var(--ink); }
.athlete-set {
  display: grid;
  grid-template-columns: 1.45rem repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
}
.athlete-set + .athlete-set { margin-top: 7px; }
.athlete-set-fields-3 { grid-template-columns: 1.45rem repeat(3, minmax(0, 1fr)); }
.athlete-set-fields-2 { grid-template-columns: 1.45rem repeat(2, minmax(0, 1fr)); }
.athlete-set-target { grid-column: 2 / -1; overflow-wrap: anywhere; }
.athlete-set-target .studio-actions { margin-top: .25rem; }
.athlete-exercise-group { display: grid; gap: .5rem; padding: .65rem; border: 1px solid #d5caec; border-radius: 13px; background: #f8f5ff; }
.athlete-exercise-group h3 { margin: 0; font-size: .92rem; }
.athlete-set input { padding-inline: 6px; font-variant-numeric: tabular-nums; }
.athlete-set-number {
  align-self: end;
  color: var(--muted);
  padding-bottom: 12px;
  text-align: center;
  font-size: .85rem;
}
.athlete-phases { padding-left: 22px; color: var(--muted); }
.athlete-history details,
.athlete-check-item {
  border-top: 1px solid var(--line);
  padding-block: 12px;
}
.athlete-history summary,
.athlete-check-item summary { cursor: pointer; font-weight: 650; }
.athlete-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 9px 0;
  padding: 0;
}
.athlete-list > li {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.athlete-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr));
  gap: 8px;
}
.athlete-gallery figure { margin: 0; }
.athlete-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}
.athlete-gallery figcaption { color: var(--muted); font-size: .85rem; }
.athlete-timer {
  position: sticky;
  z-index: 5;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--coach-accent, var(--green));
  box-shadow: 0 8px 28px #14343d38;
  border-radius: 15px;
  padding: 10px 14px;
}
.athlete-timer strong { font-size: clamp(1.5rem, 6vw, 2rem); }
.athlete-timer-expanded {
  position: fixed;
  inset: 0;
  z-index: 100;
  border-radius: 0;
  border: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 15px;
}
.athlete-timer-expanded strong { font-size: clamp(3.2rem, 19vw, 12rem); line-height: 1; }
@media (max-width: 520px) {
  .athlete-section-title { flex-wrap: wrap; }
  .athlete-clock { flex-direction: row; align-items: center; }
  .athlete-set label { gap: 3px; font-size: .8rem; }
  .athlete-set input { font-size: 1rem; }
}

