/* Athlete web — plan home + full-page workout sections */

.athlete-page {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 94, 191, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 40, 80, 0.1), transparent 50%),
    var(--bg, #0f1218);
  color: #e8ebf2;
}

.athlete-badge { display: none; }
.athlete-main { padding-bottom: 48px; max-width: 560px; }

.athlete-card {
  padding: 18px 16px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.athlete-lede {
  margin: 0 0 16px;
  color: rgba(232, 235, 242, 0.65);
  line-height: 1.45;
  font-size: 0.95rem;
}

.athlete-section-title { margin: 0; font-size: 1.2rem; color: #fff; }
.page-title { color: #fff; }

.nav-link-btn {
  background: none;
  border: 0;
  color: var(--muted, rgba(232, 235, 242, 0.7));
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.nav-link-btn:hover,
.nav-link-btn:focus-visible {
  color: var(--ink, #fff);
}

.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-apple-icon {
  flex-shrink: 0;
}

.btn-apple:hover { background: #222; }
.btn-apple:disabled,
.btn-google:disabled,
.btn-auth:disabled { opacity: 0.55; cursor: not-allowed; }

.athlete-coach-banner {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(47, 94, 191, 0.18);
  border: 1px solid rgba(47, 94, 191, 0.35);
  font-size: 0.9rem;
  line-height: 1.4;
}

.athlete-settings-account {
  margin: 0 0 14px;
  color: rgba(232, 235, 242, 0.55);
  font-size: 0.9rem;
}

.athlete-settings-hub {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.athlete-settings-group {
  margin: 0;
  padding: 12px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 235, 242, 0.45);
  background: rgba(0, 0, 0, 0.12);
}

.athlete-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.athlete-settings-group + .athlete-settings-row {
  border-top: 0;
}

.athlete-settings-row:hover,
.athlete-settings-row:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.athlete-settings-row strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 650;
  color: #fff;
}

.athlete-settings-row em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(232, 235, 242, 0.55);
  line-height: 1.35;
}

.athlete-settings-chevron {
  flex: none;
  color: rgba(232, 235, 242, 0.35);
  font-size: 1.25rem;
  line-height: 1;
}

.athlete-settings-row--danger strong {
  color: #ff8b8b;
}

.athlete-plan-list,
.athlete-exercise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.athlete-plan-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
}

.athlete-plan-item:hover,
.athlete-plan-item.is-active { border-color: rgba(47, 94, 191, 0.65); }
.athlete-plan-item-name { font-weight: 700; font-size: 1.05rem; color: #fff; }
.athlete-plan-item-meta { font-size: 0.88rem; color: rgba(232, 235, 242, 0.6); }

.athlete-active-coach-line {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(232, 235, 242, 0.75);
}

.athlete-coach-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.athlete-coach-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.athlete-coach-item.is-active {
  border-color: rgba(47, 94, 191, 0.65);
  background: rgba(47, 94, 191, 0.16);
}

.athlete-coach-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.athlete-coach-item-name {
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.athlete-coach-item-meta {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-coach-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  color: #9ec1ff;
}

.athlete-coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.athlete-coach-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ec1ff;
}

.athlete-view-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.athlete-view-sub {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-back-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e8ebf2;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}

/* Week bar + day chips */
.athlete-week-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.athlete-week-nav {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.athlete-week-label {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.athlete-week-label strong { font-size: 1rem; color: #fff; }
.athlete-week-label span {
  font-size: 0.82rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-day-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.athlete-day-chips::-webkit-scrollbar { display: none; }

.athlete-day-chip {
  flex: 0 0 auto;
  width: 88px;
  min-height: 88px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e8ebf2;
  padding: 10px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: inherit;
}

.athlete-day-chip.is-selected {
  border-color: #2f5ebf;
  background: rgba(47, 94, 191, 0.35);
  box-shadow: 0 0 0 1px #2f5ebf;
}

.athlete-day-chip.is-rest { opacity: 0.7; }

.athlete-day-chip.is-done {
  border-color: rgba(46, 180, 110, 0.7);
  background: rgba(46, 180, 110, 0.18);
}

.athlete-day-chip.is-done.is-selected {
  border-color: #2eb46e;
  background: rgba(46, 180, 110, 0.28);
  box-shadow: 0 0 0 1px #2eb46e;
}

.athlete-day-chip-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-day-chip-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.athlete-day-chip-dist {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: rgba(232, 235, 242, 0.88);
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.athlete-day-chip.is-done .athlete-day-chip-dist {
  color: #7dffb4;
}

.athlete-day-chip-check {
  font-size: 0.9rem;
  color: #2eb46e;
  line-height: 1;
}

.athlete-day-chip-dot {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #2563eb;
  margin-top: 2px;
}

.athlete-day-chip.is-rest .athlete-day-chip-dot { background: #6b7280; }
.athlete-day-chip.is-done .athlete-day-chip-dot { background: #2eb46e; }
.athlete-day-chip.is-free .athlete-day-chip-dot { background: rgba(232, 235, 242, 0.35); }

/* Hero */
.athlete-hero-card { text-align: left; position: relative; }

.athlete-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.athlete-hero-copy { flex: 1; min-width: 0; }

.athlete-hero-day {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 750;
  color: #fff;
}

.athlete-hero-status {
  margin: 0;
  color: rgba(232, 235, 242, 0.65);
  font-size: 0.92rem;
}

.athlete-ver-sesion-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 235, 242, 0.85);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
}

.athlete-ver-sesion-btn[aria-expanded="true"] {
  border-color: #2f5ebf;
  background: rgba(47, 94, 191, 0.28);
  color: #fff;
}

.athlete-annotations {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
}

.athlete-annotations-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #e8ebf2;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.athlete-annotations-toggle-copy strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 750;
}

.athlete-annotations-toggle-copy em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.78rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-annotations-chevron {
  color: rgba(232, 235, 242, 0.5);
}

.athlete-annotations-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.athlete-annotation-block,
.athlete-annotation-ex {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.athlete-annotation-block strong,
.athlete-annotation-ex strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #fff;
}

.athlete-annotation-block p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(232, 235, 242, 0.7);
  line-height: 1.4;
}

.athlete-annotation-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.athlete-annotation-table th,
.athlete-annotation-table td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.athlete-annotation-table th {
  color: rgba(232, 235, 242, 0.5);
  font-weight: 650;
}

.athlete-session-preview {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.athlete-exercise-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px;
}

.athlete-exercise-name { font-weight: 700; margin-bottom: 6px; color: #fff; }
.athlete-exercise-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
}
.athlete-exercise-meta span {
  background: rgba(47, 94, 191, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  color: #dce6ff;
}
.athlete-exercise-notes {
  margin-top: 8px;
  font-size: 0.86rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-footer {
  padding-bottom: 28px;
  font-size: 0.9rem;
  color: rgba(232, 235, 242, 0.5);
}

/* Readiness */
.athlete-readiness-form { display: grid; gap: 14px; }

.athlete-readiness-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 0 14px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.athlete-readiness-mode-btn {
  border: 0;
  border-radius: 12px;
  min-height: 42px;
  background: transparent;
  color: rgba(232, 235, 242, 0.7);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
}

.athlete-readiness-mode-btn.is-active {
  background: rgba(47, 94, 191, 0.28);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(110, 160, 255, 0.35);
}

.athlete-readiness-progress {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.athlete-readiness-progress p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #e8ebf2;
}

.athlete-readiness-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.athlete-readiness-progress-track span {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: inherit;
  background: #3b82f6;
  transition: width 0.18s ease;
}

.athlete-readiness-form.is-one-mode .athlete-slider-field.is-current-question {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.athlete-readiness-form.is-one-mode .athlete-slider-field input[type="range"] {
  display: none;
}

.athlete-readiness-choices {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.athlete-readiness-choice {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8ebf2;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.athlete-readiness-choice.is-selected {
  border-color: rgba(110, 160, 255, 0.55);
  background: rgba(47, 94, 191, 0.35);
  color: #fff;
}

.athlete-slider-field {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.athlete-slider-field > span:first-child {
  display: flex;
  justify-content: space-between;
  color: rgba(232, 235, 242, 0.85);
}

.athlete-slider-field input[type="range"] { width: 100%; }

.athlete-scale-captions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.athlete-scale-captions em {
  font-style: normal;
  font-size: 0.72rem;
  color: rgba(232, 235, 242, 0.45);
  line-height: 1.2;
}

.athlete-scale-captions em:nth-child(1) { text-align: left; }
.athlete-scale-captions em:nth-child(2) {
  text-align: center;
  font-weight: 650;
  color: rgba(232, 235, 242, 0.55);
}
.athlete-scale-captions em:nth-child(3) { text-align: right; }

.athlete-readiness-one-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.athlete-readiness-one-nav .btn {
  min-height: 40px;
  padding: 0 14px;
}

.athlete-readiness-score {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(232, 235, 242, 0.7);
}

/* Workout */
.athlete-workout-list {
  display: grid;
  gap: 12px;
  padding-bottom: 12px;
}

.athlete-workout-ex {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.athlete-workout-ex.is-open {
  border-color: rgba(47, 94, 191, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.athlete-workout-ex.is-done {
  border-color: rgba(46, 180, 110, 0.45);
}

.athlete-workout-ex-head {
  width: 100%;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.athlete-workout-ex-head--manual {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: default;
  padding: 10px 12px;
}

.athlete-workout-ex-head--manual.is-warmup-head {
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 8px 10px;
}

.athlete-video-thumb {
  position: relative;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.athlete-video-thumb.is-compact {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.athlete-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.athlete-video-thumb-play {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.65rem;
  line-height: 1;
  pointer-events: none;
}

.athlete-video-thumb.is-compact .athlete-video-thumb-play {
  width: 18px;
  height: 18px;
  right: 4px;
  bottom: 4px;
  font-size: 0.55rem;
}

.athlete-video-thumb.is-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.athlete-video-thumb.is-fallback .athlete-video-thumb-play {
  position: static;
  width: 28px;
  height: 28px;
  background: rgba(47, 94, 191, 0.55);
  font-size: 0.75rem;
}

.athlete-workout-check-btn.is-compact {
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
}

.athlete-workout-ex.is-warmup .athlete-workout-ex-copy strong {
  font-size: 0.92rem;
}

.athlete-workout-ex.is-warmup .athlete-workout-ex-copy em {
  font-size: 0.72rem;
}

.athlete-workout-ex-open {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 4px 0;
}

.athlete-workout-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.athlete-workout-ex-copy strong { color: #fff; display: block; }
.athlete-workout-ex-copy em,
.athlete-workout-chevron {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-code-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(47, 94, 191, 0.28);
  color: #dce6ff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.athlete-workout-check,
.athlete-workout-check-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: transparent;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.athlete-workout-ex.is-done .athlete-workout-check,
.athlete-workout-check-btn.is-on {
  border-color: #2eb46e;
  background: #2eb46e;
  color: #fff;
}

.athlete-workout-ex-head strong { color: #fff; display: block; }
.athlete-workout-ex-head em {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-workout-ex-body {
  padding: 0 14px 16px;
  display: grid;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.athlete-workout-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
}

.athlete-workout-open-name {
  color: #fff;
  font-size: 1.05rem;
  flex: 1;
  min-width: 0;
}

.athlete-history-eye-btn {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e8ebf2;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.athlete-history-eye-btn:hover,
.athlete-history-eye-btn:focus-visible {
  border-color: rgba(110, 160, 255, 0.45);
  background: rgba(47, 94, 191, 0.22);
}

.athlete-history-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.athlete-history-sheet[hidden] {
  display: none !important;
}

.athlete-history-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.athlete-history-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  margin: 0;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px 28px;
}

.athlete-history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.athlete-history-close {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
}

.athlete-history-scopes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.athlete-history-scope-btn {
  border: 0;
  border-radius: 10px;
  min-height: 40px;
  background: transparent;
  color: rgba(232, 235, 242, 0.7);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.athlete-history-scope-btn.is-active {
  background: rgba(47, 94, 191, 0.28);
  color: #fff;
}

.athlete-history-weeks,
.athlete-history-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.athlete-history-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(232, 235, 242, 0.8);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.athlete-history-chip.is-active {
  border-color: rgba(110, 160, 255, 0.45);
  background: rgba(47, 94, 191, 0.28);
  color: #fff;
}

.athlete-history-log {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.athlete-history-log-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.athlete-history-log-head strong {
  display: block;
  color: #fff;
}

.athlete-history-log-head em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.78rem;
  color: rgba(232, 235, 242, 0.5);
}

.athlete-history-badge {
  flex: none;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(47, 94, 191, 0.25);
  color: #cfe0ff;
  font-size: 0.72rem;
  font-weight: 700;
}

.athlete-history-best-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(47, 94, 191, 0.16);
  border: 1px solid rgba(110, 160, 255, 0.28);
}

.athlete-history-best-summary strong {
  color: #fff;
  font-size: 0.95rem;
}

.athlete-history-best-summary span {
  color: #e8ebf2;
  font-weight: 650;
}

.athlete-history-best-summary em {
  font-style: normal;
  font-size: 0.78rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-link-icon {
  text-decoration: none;
  font-size: 1.1rem;
  line-height: 1;
}

.athlete-link-icon.is-disabled { opacity: 0.35; }

.athlete-rx-block h4,
.athlete-log-block h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: rgba(232, 235, 242, 0.7);
  font-weight: 650;
}

.athlete-rx-table,
.athlete-log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.athlete-rx-table th,
.athlete-log-table th,
.athlete-rx-table td,
.athlete-log-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.athlete-rx-table th,
.athlete-log-table th {
  color: rgba(232, 235, 242, 0.55);
  font-size: 0.75rem;
  font-weight: 650;
}

.athlete-rx-table td { color: #e8ebf2; }

.athlete-log-table input,
.athlete-log-table select {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 8px 6px;
  font: inherit;
  font-size: 0.95rem;
}

.athlete-log-table tr.is-set-done td {
  background: rgba(46, 180, 110, 0.08);
}

.athlete-set-done-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0;
}

.athlete-set-done-btn.is-on {
  border-color: #2eb46e;
  background: #2eb46e;
  color: #fff;
}

.athlete-workout-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
}

.athlete-mode-pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9ec1ff;
  background: rgba(47, 94, 191, 0.22);
  border: 1px solid rgba(110, 160, 255, 0.28);
}

.athlete-mode-pill--inline {
  margin: 6px 0 2px;
}

.athlete-workout-ex.is-warmup {
  border-color: rgba(47, 94, 191, 0.28);
}

.athlete-warmup-section .athlete-workout-ex {
  margin: 0;
  border-radius: 12px;
}

.athlete-warmup-section-body {
  padding: 0 8px 8px;
  display: grid;
  gap: 6px;
}

.athlete-warmup-section {
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.athlete-warmup-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #e8ebf2;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.athlete-warmup-section-toggle strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.athlete-warmup-section-toggle em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.75rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-warmup-section-chevron {
  flex-shrink: 0;
  color: rgba(232, 235, 242, 0.55);
  font-size: 0.85rem;
}

.athlete-warmup-section-body {
  padding: 0 8px 8px;
  display: grid;
  gap: 6px;
}

.athlete-warmup-section .athlete-workout-ex {
  margin: 0;
  border-radius: 12px;
}

.athlete-rx-block .athlete-sprint-rx-card + .athlete-sprint-rx-card {
  margin-top: 0;
}

.athlete-sprint-rx-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 12px 10px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.athlete-sprint-rx-card.is-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.athlete-sprint-rx-card.is-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.athlete-sprint-rx-cell {
  text-align: center;
  min-width: 0;
}

.athlete-sprint-rx-cell strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 750;
  color: #fff;
  line-height: 1.2;
  word-break: break-word;
}

.athlete-sprint-rx-cell span {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  color: rgba(232, 235, 242, 0.5);
}

.athlete-campo-block-header {
  margin: 12px 0 6px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-campo-group {
  margin-bottom: 12px;
}

.athlete-campo-group-title {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #cfe0ff;
}

.athlete-log-table--campo th:last-child,
.athlete-log-table--campo td:last-child {
  width: 48px;
}

.athlete-link-btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.athlete-set-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.athlete-set-row label {
  display: grid;
  gap: 4px;
  font-size: 0.75rem;
  color: rgba(232, 235, 242, 0.55);
}

.athlete-set-row input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  padding: 12px 10px;
  font: inherit;
  font-size: 1rem;
}

.athlete-set-idx {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.athlete-workout-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.athlete-workout-footer {
  position: sticky;
  bottom: 0;
  padding: 12px 0 8px;
  background: linear-gradient(180deg, transparent, rgba(15, 18, 24, 0.96) 30%);
}

.athlete-rpe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.athlete-rpe-btn {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e8ebf2;
  padding: 12px 8px;
  cursor: pointer;
  font: inherit;
  line-height: 1.25;
}

.athlete-rpe-btn small {
  display: block;
  margin-top: 4px;
  color: rgba(232, 235, 242, 0.5);
  font-size: 0.78rem;
}

.athlete-rpe-btn.is-selected {
  border-color: #2f5ebf;
  background: rgba(47, 94, 191, 0.35);
}

.athlete-view textarea,
.athlete-card textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  padding: 12px;
  font: inherit;
  resize: vertical;
}

@media (max-width: 560px) {
  .athlete-set-row { grid-template-columns: 32px 1fr 1fr 1fr; gap: 8px; }
}
