/* bp-cabinet-dark-shell-v1 — Body Progress sellable cabinet (brand_visual_system) */
:root {
  --bp-bg: #08111f;
  --bp-surface: #101c2e;
  --bp-panel: #17263b;
  --bp-panel-strong: #1b2b43;
  --bp-text: #f8fafc;
  --bp-muted: #94a3b8;
  --bp-accent: #ff9f0a;
  --bp-accent-gold: #ffc247;
  --bp-success: #22c55e;
  --bp-locked: #41516a;
  --bp-line: rgba(248, 250, 252, 0.1);
  --text: var(--bp-text);
  --muted: var(--bp-muted);

  font-family:
    "SF Pro Display",
    "Segoe UI",
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--tg-theme-text-color, var(--bp-text));
  background: var(--tg-theme-bg-color, var(--bp-bg));
  font-synthesis: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--tg-theme-text-color, var(--bp-text));
  background:
    radial-gradient(circle at 88% -4%, rgba(255, 159, 10, 0.16), transparent 34%),
    radial-gradient(circle at 8% 12%, rgba(96, 165, 250, 0.08), transparent 28%),
    linear-gradient(180deg, #0a1424 0%, var(--bp-bg) 42%, #060d18 100%);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}

.hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.logo {
  flex: 0 0 auto;
  border-radius: 50%;
  background: #050505;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.30),
    0 8px 28px rgba(245, 158, 11, 0.24);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 5px;
  font-size: clamp(1.7rem, 7vw, 2.3rem);
  line-height: 1.05;
}

h2 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--tg-theme-hint-color, #6b7280);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.subtitle,
.status-card p,
.empty,
.footer {
  color: var(--tg-theme-hint-color, #6b7280);
}

.subtitle,
.status-card p {
  margin-bottom: 0;
}

.card {
  border: 1px solid color-mix(in srgb, var(--tg-theme-hint-color, var(--bp-muted)) 22%, transparent);
  border-radius: 22px;
  background: var(--tg-theme-secondary-bg-color, var(--bp-surface));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  color: var(--tg-theme-text-color, var(--bp-text));
}

.status-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
}

.status-card .button {
  grid-column: 1 / -1;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid color-mix(in srgb, var(--tg-theme-button-color, #f59e0b) 22%, transparent);
  border-top-color: var(--tg-theme-button-color, #f59e0b);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  color: #08111f;
  background: linear-gradient(135deg, var(--bp-accent), #ffb340);
  box-shadow: 0 10px 28px rgba(255, 159, 10, 0.22);
}

.button.secondary {
  color: var(--tg-theme-button-text-color, var(--bp-text));
  background: var(--tg-theme-button-color, var(--bp-panel-strong));
  box-shadow: none;
  border: 1px solid var(--bp-line);
}

.button.tertiary {
  color: inherit;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, var(--bp-muted)) 30%,
    transparent
  );
  background: transparent;
  box-shadow: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 2px 12px;
}

.section-heading.compact {
  margin: 0 0 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--tg-theme-button-text-color, #ffffff);
  background: var(--tg-theme-button-color, #f59e0b);
  font-size: 0.78rem;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-width: 0;
  padding: 15px 12px;
  text-align: center;
}

.metric span {
  display: block;
  min-height: 34px;
  color: var(--tg-theme-hint-color, #6b7280);
  font-size: 0.78rem;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 1.65rem;
}

.client-list {
  display: grid;
  gap: 10px;
}

.client-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--tg-theme-hint-color, #6b7280) 18%, transparent);
  border-radius: 17px;
  color: inherit;
  background: var(--tg-theme-secondary-bg-color, #ffffff);
  text-align: left;
  cursor: pointer;
}

.client-item:focus-visible,
.button:focus-visible,
.icon-button:focus-visible,
.measurement-form input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tg-theme-button-color, #f59e0b) 45%, transparent);
  outline-offset: 2px;
}

.client-primary {
  min-width: 0;
}

.client-name {
  display: block;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-meta {
  display: block;
  margin-top: 4px;
  color: var(--tg-theme-hint-color, #6b7280);
  font-size: 0.78rem;
}

.client-arrow {
  color: var(--tg-theme-hint-color, #6b7280);
  font-size: 1.25rem;
}

#client-detail {
  margin-top: 18px;
  padding: 18px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: inherit;
  background: color-mix(in srgb, var(--tg-theme-hint-color, #6b7280) 12%, transparent);
  font-size: 1.4rem;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--tg-theme-hint-color, #6b7280) 18%, transparent);
}

.detail-list dt {
  color: var(--tg-theme-hint-color, #6b7280);
}

.detail-list dd {
  margin: 0;
  font-weight: 750;
  text-align: right;
}


.detail-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 24%,
    transparent
  );
}

.detail-section h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.detail-wide {
  max-width: 62%;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.empty {
  padding: 18px;
  border: 1px dashed color-mix(in srgb, var(--tg-theme-hint-color, #6b7280) 35%, transparent);
  border-radius: 16px;
  text-align: center;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 26px;
  font-size: 0.75rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 560px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .metric span {
    min-height: 0;
  }

  .metric strong {
    margin-top: 0;
  }

  #client-detail {
    padding: 16px;
  }

  .detail-list div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .detail-list dd {
    text-align: left;
  }

  .detail-wide {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 2s;
  }
}

.progress-overview {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.progress-bar-card {
  padding: 16px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 18%,
    transparent
  );
  border-radius: 17px;
  background: var(
    --tg-theme-secondary-bg-color,
    #ffffff
  );
}

.progress-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.progress-heading span,
.detail-note,
.measurement-label,
.progress-metric span {
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
}

.progress-heading strong {
  font-size: 1.15rem;
}

.program-progress {
  width: 100%;
  height: 12px;
  margin-top: 13px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: var(
    --tg-theme-button-color,
    #f59e0b
  );
}

.program-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 16%,
    transparent
  );
}

.program-progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(
    --tg-theme-button-color,
    #f59e0b
  );
}

.program-progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(
    --tg-theme-button-color,
    #f59e0b
  );
}

.detail-note {
  margin: 9px 0 0;
  font-size: 0.82rem;
}

.progress-metrics {
  display: grid;
  grid-template-columns: repeat(
    4,
    minmax(0, 1fr)
  );
  gap: 9px;
}

.progress-metric {
  min-width: 0;
  padding: 13px 10px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 18%,
    transparent
  );
  border-radius: 15px;
  background: var(
    --tg-theme-secondary-bg-color,
    #ffffff
  );
  text-align: center;
}

.progress-metric span {
  display: block;
  min-height: 34px;
  font-size: 0.74rem;
}

.progress-metric strong {
  display: block;
  margin-top: 5px;
  font-size: 1.35rem;
}

.progress-detail-list {
  margin-top: 18px;
}

.detail-subtitle {
  margin: 20px 0 0;
  font-size: 0.94rem;
}

.measurement-grid {
  display: grid;
  grid-template-columns: repeat(
    3,
    minmax(0, 1fr)
  );
  gap: 9px;
  margin-top: 12px;
}

.measurement-card {
  min-width: 0;
  padding: 13px 11px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 18%,
    transparent
  );
  border-radius: 15px;
  background: var(
    --tg-theme-secondary-bg-color,
    #ffffff
  );
}

.measurement-label,
.measurement-value,
.measurement-change {
  display: block;
}

.measurement-label {
  font-size: 0.76rem;
}

.measurement-value {
  margin-top: 6px;
  font-size: 1.05rem;
}

.measurement-change {
  min-height: 17px;
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 750;
}

.measurement-change-positive {
  color: var(
    --tg-theme-button-color,
    #f59e0b
  );
}

.measurement-change-negative {
  color: #dc2626;
}

.measurement-change-neutral {
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
}

.measurement-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.measurement-heading .detail-subtitle {
  margin: 0;
}

.measurement-add-button {
  width: auto;
  flex: 0 0 auto;
  padding: 10px 13px;
  font-size: 0.82rem;
}

.measurement-form {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 22%,
    transparent
  );
  border-radius: 17px;
  background: color-mix(
    in srgb,
    var(--tg-theme-secondary-bg-color, #ffffff) 92%,
    var(--tg-theme-button-color, #f59e0b) 8%
  );
}

.measurement-form h5 {
  margin: 0;
  font-size: 0.96rem;
}

.measurement-form-grid {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  );
  gap: 11px;
  margin-top: 15px;
}

.measurement-form-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
  font-size: 0.78rem;
  font-weight: 700;
}

.measurement-form input,
.measurement-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 30%,
    transparent
  );
  border-radius: 12px;
  color: inherit;
  background: var(
    --tg-theme-bg-color,
    #f9fafb
  );
}

.measurement-form-actions {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  );
  gap: 10px;
  margin-top: 15px;
}

.athlete-start-workout-form
.measurement-form-actions {
  grid-template-columns: minmax(0, 1fr);
}

.athlete-start-workout-form
.measurement-form-actions .button {
  width: 100%;
}

.athlete-warmup-panel {
  margin-top: 16px;
}

.athlete-warmup-plan {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.athlete-warmup-panel
.measurement-form-actions .button {
  width: 100%;
}

/* athlete-workout-ux-brand-v1 */
.athlete-set-add-extra {
  width: 100%;
  margin-top: 8px;
}

.athlete-exercise-warmup-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
}

.athlete-exercise-warmup-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--bp-accent, #ffb85c);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athlete-exercise-warmup-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 6px;
  color: var(--bp-text, #f8fafc);
}

.athlete-exercise-warmup-list li {
  margin: 0;
  font-weight: 700;
}

/* athlete-advanced-methods-v1 */
.athlete-set-structure-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: rgba(15, 23, 42, 0.72);
}

.athlete-set-structure-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.athlete-set-structure-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--bp-accent, #ffb85c);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.athlete-set-structure-heading strong {
  color: var(--bp-text, #f8fafc);
  font-size: 0.95rem;
}

.athlete-set-structure-members {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.athlete-set-structure-member {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.35);
}

.athlete-set-structure-member.is-current {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.1);
}

.athlete-set-structure-member strong {
  color: var(--bp-text, #f8fafc);
  font-size: 0.88rem;
}

.athlete-set-structure-member span {
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.84rem;
  text-align: right;
}

.athlete-set-structure-panel .detail-note {
  margin: 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.86rem;
  line-height: 1.45;
}

@media (max-width: 480px) {
  .athlete-set-structure-member {
    flex-direction: column;
    align-items: flex-start;
  }

  .athlete-set-structure-member span {
    text-align: left;
  }
}

.athlete-next-exercise-preview {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--bp-line, rgba(148, 163, 184, 0.18));
  background: rgba(15, 28, 46, 0.72);
}

.athlete-next-exercise-preview strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bp-muted, #94a3b8);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.athlete-next-exercise-preview p {
  margin: 0;
  color: var(--bp-text, #f8fafc);
  font-weight: 700;
}

.athlete-set-last-session-link {
  width: 100%;
  margin-top: 8px;
}

.athlete-set-overview-row.is-extra strong {
  color: var(--bp-accent, #ffb85c);
}

.athlete-active-workout-indicator {
  position: fixed;
  left: 50%;
  bottom: calc(68px + env(safe-area-inset-bottom));
  z-index: 59;
  width: min(calc(100% - 16px), 744px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 10px 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(8, 17, 31, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.athlete-active-workout-indicator-body {
  min-height: 44px;
  display: grid;
  gap: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.athlete-active-workout-indicator-body strong,
#athlete-active-workout-indicator-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--bp-text, #f8fafc);
}

#athlete-active-workout-indicator-meta {
  font-size: 0.82rem;
  color: var(--bp-muted, #94a3b8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-active-workout-indicator-return {
  min-height: 40px;
  padding-inline: 12px;
  white-space: nowrap;
}

.athlete-timer-sound-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--bp-line, rgba(148, 163, 184, 0.18));
  display: grid;
  gap: 10px;
}

.athlete-timer-sound-option {
  display: grid;
  gap: 6px;
}

.athlete-timer-sound-option select {
  width: 100%;
  min-height: 44px;
}

.athlete-timer-sound-custom-row {
  display: grid;
  gap: 8px;
}

.athlete-timer-sound-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.athlete-timer-sound-vibration {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}

.measurement-form-feedback {
  margin: 12px 0 0;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
  background: color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 10%,
    transparent
  );
  font-size: 0.82rem;
  font-weight: 700;
}

.measurement-form-feedback.is-success {
  color: var(
    --tg-theme-button-color,
    #047857
  );
}

.measurement-form-feedback.is-error {
  color: #dc2626;
}

@media (max-width: 560px) {
  .measurement-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .measurement-add-button {
    width: 100%;
  }

  .measurement-form-grid,
  .measurement-form-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .progress-metrics {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    );
  }

  .measurement-grid {
    grid-template-columns: repeat(
      2,
      minmax(0, 1fr)
    );
  }
}

@media (max-width: 360px) {
  .measurement-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.measurement-history {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 22%,
    transparent
  );
  border-radius: 17px;
  background: color-mix(
    in srgb,
    var(--tg-theme-secondary-bg-color, #ffffff) 96%,
    var(--tg-theme-button-color, #f59e0b) 4%
  );
}

.measurement-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 800;
}

.measurement-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(
    --tg-theme-button-text-color,
    #ffffff
  );
  background: var(
    --tg-theme-button-color,
    #f59e0b
  );
  font-size: 0.75rem;
}

.measurement-history-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.measurement-history-card {
  padding: 13px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 18%,
    transparent
  );
  border-radius: 14px;
  background: var(
    --tg-theme-bg-color,
    #f9fafb
  );
}

.measurement-history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.measurement-history-latest {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(
    --tg-theme-button-text-color,
    #ffffff
  );
  background: var(
    --tg-theme-button-color,
    #f59e0b
  );
  font-size: 0.7rem;
  font-weight: 800;
}

.measurement-history-values {
  display: grid;
  grid-template-columns: repeat(
    2,
    minmax(0, 1fr)
  );
  gap: 8px;
  margin-top: 11px;
}

.measurement-history-value {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 11px;
  background: color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 8%,
    transparent
  );
}

.measurement-history-value span,
.measurement-history-value strong {
  display: block;
}

.measurement-history-value span {
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
  font-size: 0.72rem;
}

.measurement-history-value strong {
  margin-top: 3px;
  font-size: 0.86rem;
}

@media (max-width: 360px) {
  .measurement-history-values {
    grid-template-columns: minmax(0, 1fr);
  }
}

.questionnaire-details {
  margin-top: 20px;
}

.questionnaire-details-heading h4 {
  margin: 0;
  font-size: 0.94rem;
}

.questionnaire-section-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.questionnaire-section-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 18%,
    transparent
  );
  border-radius: 17px;
  background: var(
    --tg-theme-secondary-bg-color,
    #ffffff
  );
}

.questionnaire-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.questionnaire-section-heading h4 {
  margin: 0;
  font-size: 0.96rem;
}

.questionnaire-visibility {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--tg-theme-button-color, #f59e0b) 12%,
    transparent
  );
  font-size: 0.68rem;
  font-weight: 700;
}

.questionnaire-section-meta,
.questionnaire-history-meta {
  margin: 8px 0 0;
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
  font-size: 0.74rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.questionnaire-field-list {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
}

.questionnaire-field-list div {
  display: grid;
  grid-template-columns:
    minmax(0, 0.85fr)
    minmax(0, 1.15fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 13%,
    transparent
  );
}

.questionnaire-field-list dt {
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
  font-size: 0.78rem;
}

.questionnaire-field-list dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.questionnaire-history {
  margin-top: 11px;
  border-top: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 13%,
    transparent
  );
  padding-top: 10px;
}

.questionnaire-history summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
}

.questionnaire-history-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.questionnaire-history-item {
  padding: 11px;
  border-radius: 13px;
  background: color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 7%,
    transparent
  );
}

.questionnaire-history-item
.questionnaire-field-list {
  margin-top: 8px;
}

@media (max-width: 560px) {
  .questionnaire-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .questionnaire-visibility {
    justify-self: start;
  }

  .questionnaire-field-list div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .questionnaire-field-list dd {
    text-align: left;
  }
}

.program-details-heading,
.program-history-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.program-details-heading h3,
.program-history-heading h4 {
  margin: 0;
}

.program-detail-overview {
  margin-top: 14px;
}

.program-week-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.program-week-card {
  overflow: hidden;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 22%,
    transparent
  );
  border-radius: 17px;
  background: var(
    --tg-theme-secondary-bg-color,
    #ffffff
  );
}

.program-week-card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  cursor: pointer;
  list-style: none;
}

.program-week-card > summary::-webkit-details-marker {
  display: none;
}

.program-week-card > summary span {
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
  font-size: 0.78rem;
  text-align: right;
}

.program-week-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.program-week-meta,
.program-history-meta {
  margin: 0;
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
  font-size: 0.79rem;
  line-height: 1.45;
}

.program-day-card {
  padding: 13px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 17%,
    transparent
  );
  border-radius: 14px;
  background: color-mix(
    in srgb,
    var(--tg-theme-secondary-bg-color, #ffffff) 94%,
    var(--tg-theme-button-color, #f59e0b) 6%
  );
}

.program-day-card h5 {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.program-day-auxiliary {
  margin: 7px 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.program-exercise-list {
  display: grid;
  gap: 9px;
  margin: 11px 0 0;
  padding-left: 23px;
}

.program-exercise-list li {
  padding-left: 3px;
}

.program-exercise-list strong,
.program-exercise-list span {
  display: block;
}

.program-exercise-list strong {
  font-size: 0.86rem;
}

.program-exercise-list span {
  margin-top: 3px;
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
  font-size: 0.76rem;
  line-height: 1.4;
}

.program-history-panel {
  margin-top: 18px;
}

.program-history-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.program-history-item {
  padding: 12px 13px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 18%,
    transparent
  );
  border-radius: 14px;
}

.program-history-item > strong {
  display: block;
  margin-bottom: 5px;
}

@media (max-width: 560px) {
  .program-details-heading,
  .program-history-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .program-history-heading .badge {
    width: fit-content;
  }

  .program-week-card > summary {
    align-items: start;
  }
}

.program-preview-button {
  width: auto;
  flex: 0 0 auto;
  padding: 10px 13px;
  font-size: 0.82rem;
}

.program-preview-feedback {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 13px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.program-preview-feedback.is-success {
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-button-color, #f59e0b) 34%,
    transparent
  );
  background: color-mix(
    in srgb,
    var(--tg-theme-secondary-bg-color, #ffffff) 90%,
    var(--tg-theme-button-color, #f59e0b) 10%
  );
}

.program-preview-feedback.is-error {
  border: 1px solid color-mix(
    in srgb,
    #dc2626 34%,
    transparent
  );
  background: color-mix(
    in srgb,
    var(--tg-theme-secondary-bg-color, #ffffff) 92%,
    #dc2626 8%
  );
}

@media (max-width: 560px) {
  .program-preview-button {
    width: 100%;
  }
}

.program-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.program-versions-panel {
  margin-top: 18px;
}

.program-versions-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.program-version-item {
  padding: 12px 13px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 18%,
    transparent
  );
  border-radius: 14px;
}

.program-version-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

@media (max-width: 560px) {
  .program-action-group {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .program-action-group .button {
    width: 100%;
  }
}

.program-version-edit-button {
  width: 100%;
  margin-top: 9px;
}

.program-exercise-editor {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
  padding: 10px;
  border-radius: 12px;
  background: color-mix(
    in srgb,
    var(--tg-theme-secondary-bg-color, #f3f4f6) 92%,
    var(--tg-theme-button-color, #2563eb) 8%
  );
}

.program-exercise-edit-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.program-exercise-edit-field span {
  font-size: 0.72rem;
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
}

.program-exercise-edit-field input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 25%,
    transparent
  );
  border-radius: 9px;
  padding: 8px 7px;
  background: var(
    --tg-theme-bg-color,
    #ffffff
  );
  color: var(
    --tg-theme-text-color,
    #111827
  );
  font: inherit;
}

@media (max-width: 560px) {
  .program-exercise-editor {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

.program-exercise-replacement {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 18%,
    transparent
  );
}

.program-replacement-select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 25%,
    transparent
  );
  border-radius: 10px;
  padding: 9px 10px;
  background: var(
    --tg-theme-bg-color,
    #ffffff
  );
  color: var(
    --tg-theme-text-color,
    #111827
  );
  font: inherit;
}

.program-replacement-load,
.program-replacement-apply {
  width: 100%;
}

.program-replacement-note {
  margin: 0;
}

/* Stage 4.1b — nutrition plan read-only view */

.nutrition-plan-heading,
.nutrition-note-heading,
.nutrition-meal-heading,
.nutrition-history-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.nutrition-plan-days {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.nutrition-day-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.nutrition-day-card > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
}

.nutrition-day-card > summary span {
  text-align: right;
  color: var(--muted);
  font-size: 0.86rem;
}

.nutrition-day-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.nutrition-meal-card,
.nutrition-note-card,
.nutrition-history-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}

.nutrition-meal-heading h5 {
  margin: 0;
}

.nutrition-item-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.nutrition-item-row {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.nutrition-item-primary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.nutrition-item-primary span,
.nutrition-item-macros,
.nutrition-item-note {
  color: var(--muted);
  font-size: 0.86rem;
}

.nutrition-private-note {
  margin-top: 12px;
}

.nutrition-note-card p {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.nutrition-plan-history {
  margin-top: 18px;
}

.nutrition-plan-history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.nutrition-history-card .detail-note {
  margin-bottom: 0;
}

/* Stage 4.2b — nutrition AI preview controls */

.nutrition-preview-panel {
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-button-color, #f59e0b) 22%,
    transparent
  );
  border-radius: 14px;
  background: color-mix(
    in srgb,
    var(--tg-theme-button-color, #f59e0b) 6%,
    transparent
  );
}

.nutrition-preview-field {
  display: grid;
  gap: 8px;
}

.nutrition-preview-field > span {
  font-size: 0.86rem;
  font-weight: 750;
}

.nutrition-preview-request {
  width: 100%;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(
    --tg-theme-text-color,
    #111827
  );
  background: var(
    --tg-theme-bg-color,
    #ffffff
  );
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.nutrition-preview-request:focus {
  outline: none;
  border-color: var(
    --tg-theme-button-color,
    #f59e0b
  );
}

.nutrition-preview-request:disabled {
  opacity: 0.66;
}

.nutrition-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.nutrition-preview-feedback {
  margin: 10px 0 0;
  color: var(
    --tg-theme-hint-color,
    #6b7280
  );
  font-size: 0.82rem;
  line-height: 1.5;
}

.nutrition-preview-feedback.success {
  color: var(
    --tg-theme-button-color,
    #f59e0b
  );
}

.nutrition-preview-feedback.error {
  color: #dc2626;
}

@media (max-width: 640px) {
  .nutrition-day-card > summary,
  .nutrition-item-primary {
    align-items: flex-start;
    flex-direction: column;
  }

  .nutrition-day-card > summary span {
    text-align: left;
  }

  .nutrition-preview-actions {
    display: grid;
  }

  .nutrition-preview-actions .button {
    width: 100%;
  }
}

/* Stage 4.4c — immutable nutrition draft editor */

.nutrition-draft-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.nutrition-draft-edit-meta {
  display: grid;
  gap: 11px;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.nutrition-draft-edit-meta label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nutrition-draft-edit-meta label > span,
.nutrition-meal-edit-field > span,
.nutrition-item-edit-field > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.nutrition-draft-edit-meta input,
.nutrition-draft-edit-meta textarea,
.nutrition-meal-edit-field input,
.nutrition-item-edit-field input,
.nutrition-item-edit-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  background: var(
    --tg-theme-bg-color,
    #ffffff
  );
  color: var(
    --tg-theme-text-color,
    #111827
  );
  font: inherit;
}

.nutrition-draft-edit-meta textarea,
.nutrition-item-edit-field textarea {
  resize: vertical;
}

.nutrition-history-edit-button {
  width: 100%;
  margin-top: 9px;
}

.nutrition-meal-editor {
  margin-top: 9px;
}

.nutrition-meal-edit-field {
  display: grid;
  gap: 5px;
}

.nutrition-item-editor {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 11px;
  background: color-mix(
    in srgb,
    var(--tg-theme-button-color, #f59e0b) 7%,
    transparent
  );
}

.nutrition-item-edit-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.nutrition-item-edit-field-wide {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .nutrition-draft-edit-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .nutrition-draft-edit-actions .button {
    width: 100%;
  }

  .nutrition-item-editor {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 360px) {
  .nutrition-item-editor {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Stage 4.4e — nutrition draft activation confirmation */

.nutrition-history-actions {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

.nutrition-history-actions .button {
  width: 100%;
  margin-top: 0;
}

.nutrition-history-activation-confirm {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(
    --tg-theme-secondary-bg-color,
    #f8fafc
  );
}

.nutrition-history-activation-warning {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
}

.nutrition-history-activation-buttons {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 560px) {
  .nutrition-history-actions,
  .nutrition-history-activation-buttons {
    grid-template-columns:
      minmax(0, 1fr);
  }
}

/* Adaptive athlete workout frequency */
.athlete-frequency-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  border-radius: 16px;
}

.athlete-frequency-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.athlete-frequency-hint {
  margin: 6px 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0.72;
}

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

.athlete-frequency-choice {
  min-width: 0;
  min-height: 44px;
  padding: 8px 4px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.athlete-frequency-choice[aria-pressed="true"] {
  border-width: 2px;
}

.athlete-frequency-choice:disabled {
  cursor: wait;
  opacity: 0.55;
}

.athlete-frequency-status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 420px) {
  .athlete-frequency-panel {
    padding: 14px;
  }

  .athlete-frequency-choices {
    gap: 6px;
  }

  .athlete-frequency-choice {
    min-height: 42px;
  }
}


/* site-first-login-button */
a.button {
  align-items: center;
  appearance: none;
  background: var(--tg-theme-button-color, #111827);
  border: 0;
  border-radius: 14px;
  color: var(--tg-theme-button-text-color, #ffffff);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  line-height: 1.2;
  min-height: 44px;
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
}

.status-card a.button {
  margin-top: 12px;
  width: 100%;
}

.status-card a.button:focus-visible {
  outline: 3px solid color-mix(
    in srgb,
    var(--tg-theme-button-color, #111827) 40%,
    transparent
  );
  outline-offset: 3px;
}


.athlete-access-card {
  display: grid;
  gap: 14px;
}

.athlete-payment-link {
  width: fit-content;
}


/* athlete-dashboard-profile-card-v1 */
#athlete-section {
  display: grid;
  gap: 14px;
}

#athlete-section.hidden {
  display: none;
}

.hero,
.section-heading {
  align-items: flex-start;
}

.card {
  overflow: clip;
}

.athlete-profile-card,
.athlete-birthday-greeting-card {
  margin-bottom: 16px;
}

.athlete-birthday-greeting-card {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
}

.athlete-birthday-greeting-card .detail-note {
  white-space: pre-line;
  margin: 0;
}

.athlete-offline-status {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.35;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  color: var(--text);
}

.athlete-offline-status.is-offline {
  border-color: color-mix(in srgb, #64748b 35%, transparent);
  background: color-mix(in srgb, #64748b 12%, var(--card));
}

.athlete-offline-status.is-syncing {
  border-color: color-mix(in srgb, #0ea5e9 35%, transparent);
  background: color-mix(in srgb, #0ea5e9 12%, var(--card));
}

.athlete-offline-status.is-error {
  border-color: color-mix(in srgb, #f97316 35%, transparent);
  background: color-mix(in srgb, #f97316 12%, var(--card));
}

.personal-appointment-overlay,
.personal-greeting-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: color-mix(in srgb, #1a1020 55%, transparent);
  backdrop-filter: blur(8px);
}

.personal-appointment-backdrop,
.personal-greeting-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.personal-appointment-card,
.personal-greeting-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  margin: auto 0 0;
  padding: 20px 18px 16px;
  border-radius: 24px 24px 0 0;
  border: 1px solid #e8b4c8;
  background: #fffdfb;
  box-shadow: 0 24px 60px rgba(47, 18, 36, 0.28);
  text-align: center;
  color: #1a0b14;
  color-scheme: only light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.personal-appointment-card :where(h3, p, button, span),
.personal-greeting-card :where(h3, p, button, span) {
  color: inherit;
}

.personal-appointment-scroll,
.personal-greeting-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
  text-align: left;
}

.personal-appointment-actions,
.personal-greeting-actions {
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, #ff8ab0 18%, transparent);
}

.personal-overlay-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 88%, #ffd8e8);
  color: #5b1f3f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, #5b1f3f 12%, transparent);
}

.personal-overlay-dismiss:focus-visible {
  outline: 2px solid #ff8ab0;
  outline-offset: 2px;
}

.personal-appointment-flowers {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.personal-flower {
  display: inline-block;
  animation: personal-float 4.8s ease-in-out infinite;
}

.personal-flower-b {
  animation-delay: 0.8s;
}

.personal-flower-c {
  animation-delay: 1.6s;
}

@keyframes personal-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .personal-flower {
    animation: none;
  }
}

.personal-appointment-title,
.personal-greeting-title {
  margin: 0 0 14px;
  padding-right: 28px;
  font-size: clamp(1.35rem, 5vw, 1.55rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  color: #1a0b14;
}

.personal-appointment-body,
.personal-greeting-text {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(91, 31, 63, 0.1);
  background: #ffffff;
  white-space: pre-line;
  color: #2f1a26;
  font-size: 1.0625rem;
  line-height: 1.68;
  letter-spacing: 0.01em;
  text-align: left;
}

.personal-greeting-title {
  text-align: center;
}

.personal-greeting-scroll {
  text-align: center;
}

.personal-greeting-text {
  text-align: left;
}

.personal-appointment-close,
.personal-greeting-close {
  color: #08111f;
}

.personal-gift-visual {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 2rem;
  background: color-mix(in srgb, #ffd8e8 70%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #ff8ab0 25%, transparent);
}

.athlete-personal-love-entry,
.athlete-operations-admin-entry,
.athlete-channel-content-entry,
.athlete-payments-admin-entry,
.athlete-pricing-admin-entry {
  width: 100%;
  margin-bottom: 12px;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
  appearance: none;
  color: inherit;
}

.athlete-admin-hub {
  display: grid;
  gap: 0;
}

.athlete-personal-love-entry span,
.athlete-operations-admin-entry span,
.athlete-channel-content-entry span,
.athlete-payments-admin-entry span,
.athlete-pricing-admin-entry span {
  color: var(--bp-muted);
  font-size: 0.92rem;
  font-weight: 400;
}

.athlete-injury-options {
  display: grid;
  gap: 10px;
}

.athlete-injury-options label.athlete-injury-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.32);
  color: #f8fafc;
  font-size: 0.92rem;
  line-height: 1.35;
  cursor: pointer;
}

.athlete-injury-option-text {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.athlete-injury-options label.athlete-injury-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--tg-theme-button-color, #f59e0b);
}

.athlete-injury-option:has(input:checked) {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(245, 158, 11, 0.16);
}

body:has(.athlete-active-workout-indicator:not(.hidden)) #athlete-screen-profile {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

.athlete-access-card {
  padding: 16px;
}

.profile-heading {
  margin-bottom: 8px;
}

.profile-summary {
  margin-top: 6px;
  margin-bottom: 14px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.profile-grid div {
  min-width: 0;
  padding: 10px;
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.10);
}

.profile-grid dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.profile-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
  line-height: 1.25;
}

.athlete-profile-action,
.athlete-access-card .button,
.athlete-payment-link {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.metrics {
  gap: 10px;
}

.metric.card {
  min-width: 0;
  padding: 14px;
}

.metric strong {
  overflow-wrap: anywhere;
}

.badge {
  max-width: 46%;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

@media (max-width: 520px) {
  .shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero {
    padding: 16px;
    gap: 12px;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric.card {
    padding: 12px 10px;
  }

  .metric span {
    font-size: 0.72rem;
  }

  .metric strong {
    font-size: 1rem;
  }

  .badge {
    max-width: 52%;
    font-size: 0.72rem;
    padding-left: 8px;
    padding-right: 8px;
  }
}


/* Standalone web password login */
.web-password-panel {
  margin: 16px 0 22px;
  padding: 18px;
}

.web-password-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.web-password-hint,
.web-password-feedback {
  color: var(--tg-theme-hint-color, #6b7280);
  font-size: 0.92rem;
  line-height: 1.45;
}

.web-password-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.web-password-field {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.web-password-field input {
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--tg-theme-hint-color, #6b7280) 26%, transparent);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--tg-theme-bg-color, #ffffff);
  color: var(--tg-theme-text-color, #111827);
  font: inherit;
}

.web-password-submit {
  width: 100%;
}
.telegram-login-widget-container-optional {
  min-height: 0;
  margin: 0;
}

.web-password-new-user-primary-button {
  width: 100%;
  background: #111827;
  color: #ffffff;
  border: 0;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
}

.web-password-new-user-primary-button:hover {
  background: #020617;
  color: #ffffff;
}

.web-password-new-user-primary-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.language-switcher {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: min(100%, 720px);
  margin: 0 auto 12px;
}

.language-switcher-button {
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #475569;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  padding: 8px 11px;
  cursor: pointer;
}

.language-switcher-button.active,
.language-switcher-button[aria-pressed="true"] {
  background: #0f172a;
  color: #ffffff;
}

.web-login-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 4px 0;
}

.web-login-divider::before,
.web-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.web-telegram-secondary,
.web-switch-account {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.web-switch-account {
  border: 0;
  background: transparent;
  color: #64748b;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 10px;
}

.web-email-disabled-note {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.web-telegram-finish {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a !important;
  text-decoration: none;
  font-weight: 900;
  padding: 13px 16px;
}

.web-password-submit.is-disabled-legacy {
  opacity: 0.55;
  cursor: not-allowed;
}

.web-password-form .is-hidden-legacy {
  display: none;
}

.web-email-actions {
  display: grid;
  gap: 10px;
}

.web-password-verify {
  background: #0f172a;
  color: #ffffff;
}

.telegram-account-link-panel {
  display: grid;
  gap: 12px;
}

.telegram-account-link-command {
  display: grid;
  gap: 8px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.06);
  padding: 14px;
}

.telegram-account-link-command.is-hidden {
  display: none;
}

.telegram-account-link-code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  font-size: 16px;
  font-weight: 900;
}

.telegram-account-link-actions {
  display: grid;
  gap: 10px;
}

.telegram-account-link-feedback {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.telegram-login-fallback-hidden {
  display: none !important;
}

.telegram-login-fallback {
  display: block;
  margin-top: 10px;
  color: #93c5fd;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.switch-account-button {
  position: fixed;
  right: 16px;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 55;
  width: auto;
  min-width: 96px;
  max-width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--bp-line, rgba(248, 250, 252, 0.12));
  border-radius: 999px;
  background: rgba(16, 28, 46, 0.96);
  color: var(--bp-text, #f8fafc);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .switch-account-button {
    left: auto;
    right: 12px;
    width: auto;
  }
}

/* bp-cabinet-layout-polish-v1 */
.metric span {
  min-height: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  font-size: 0.7rem;
}

.metric strong {
  font-size: clamp(1.15rem, 4.5vw, 1.55rem);
}

.badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.telegram-account-link-card {
  margin: 16px 0 24px;
  padding: 16px;
  border: 1px solid rgba(255, 159, 10, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(27, 43, 67, 0.96),
      rgba(16, 28, 46, 0.98)
    );
  color: var(--bp-text, #f8fafc);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.telegram-account-link-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
}

.telegram-account-link-card > p,
.telegram-account-link-feedback {
  color: var(--bp-muted, #94a3b8);
}

.telegram-account-link-command {
  background: rgba(8, 17, 31, 0.55);
  border: 1px solid rgba(255, 159, 10, 0.16);
}

.telegram-account-link-command p {
  color: var(--bp-muted, #94a3b8);
}

.telegram-account-link-code {
  color: #fff;
  background: rgba(8, 17, 31, 0.85);
  border: 1px dashed rgba(255, 159, 10, 0.45);
  font-size: 0.92rem;
  font-weight: 800;
}

.telegram-account-link-actions .button.tertiary,
.telegram-account-link-actions a.button.tertiary {
  color: var(--bp-text, #f8fafc);
  border: 1px solid rgba(248, 250, 252, 0.16);
  background: rgba(8, 17, 31, 0.45);
  box-shadow: none;
}

.telegram-account-link-actions .button {
  min-height: 44px;
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: normal;
}

#athlete-section:not(.hidden) {
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
}

.athlete-frequency-panel[hidden],
.athlete-frequency-panel.hidden {
  display: none !important;
}

.athlete-finalize-panel {
  border-color: rgba(34, 197, 94, 0.28);
}

.athlete-finalize-hint {
  white-space: pre-wrap;
}


.athlete-set-replacement-panel {
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 18%,
    transparent
  );
}

.athlete-set-replacement-body {
  display: grid;
  gap: 8px;
}

#athlete-set-replacement-toggle.is-expanded {
  border-color: color-mix(
    in srgb,
    var(--bp-accent, #ff9f0a) 45%,
    transparent
  );
  background: rgba(255, 159, 10, 0.1);
}

.athlete-set-replacement-select {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid color-mix(
    in srgb,
    var(--bp-accent, #ff9f0a) 35%,
    transparent
  );
  border-radius: 10px;
  padding: 9px 10px;
  background: var(--bp-panel, #17263b);
  color: var(--bp-text, #f8fafc);
  color-scheme: dark;
  font: inherit;
}

.athlete-set-replacement-panel .button {
  width: 100%;
}

.athlete-set-replacement-reason-panel {
  display: grid;
  gap: 8px;
}

.athlete-set-replacement-reason-panel strong {
  color: var(--bp-text, #f8fafc);
  font-size: 0.92rem;
}

.athlete-set-replacement-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.athlete-set-replacement-reasons .button {
  width: auto;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.athlete-set-replacement-reasons .button.is-selected {
  border-color: var(--bp-accent, #ff9f0a);
  background: rgba(255, 159, 10, 0.18);
}

/* athlete-today-replacement-picker-v2 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.athlete-set-replacement-picker {
  display: grid;
  gap: 8px;
}

.athlete-set-replacement-picker-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(
    in srgb,
    var(--bp-accent, #ff9f0a) 35%,
    transparent
  );
  background: var(--bp-panel, #17263b);
  color: var(--bp-text, #f8fafc);
  color-scheme: dark;
  font: inherit;
  text-align: left;
}

.athlete-set-replacement-picker-toggle[aria-expanded="true"] .athlete-set-replacement-picker-arrow {
  transform: rotate(180deg);
}

.athlete-set-replacement-picker-arrow {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.athlete-set-replacement-picker-menu {
  display: grid;
  gap: 6px;
}

.athlete-set-replacement-picker-option {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 28%,
    transparent
  );
  background: color-mix(
    in srgb,
    var(--bp-panel, #17263b) 88%,
    #000 12%
  );
  color: var(--bp-text, #f8fafc);
  font: inherit;
  text-align: left;
}

.athlete-set-replacement-picker-option.is-selected {
  border-color: var(--bp-accent, #ff9f0a);
  background: rgba(255, 159, 10, 0.18);
}

/* athlete-today-replacement-reason-v1 */


.athlete-measurement-actions {
  margin-top: 16px;
}

.athlete-measurement-actions > .measurement-form {
  margin-top: 14px;
}


.athlete-progress-photo-panel {
  margin-top: 16px;
}


/* athlete-progress-photo-upload-guide-v1 */
.athlete-progress-photo-upload-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 14px;
}

.athlete-progress-photo-upload-guide span {
  border: 1px solid rgba(255, 184, 92, 0.22);
  border-radius: 14px;
  background: rgba(255, 184, 92, 0.07);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
  padding: 10px;
}

@media (max-width: 640px) {
  .athlete-progress-photo-upload-guide {
    grid-template-columns: 1fr;
  }
}

.athlete-progress-photo-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.athlete-progress-photo-consent input {
  width: auto;
  margin-top: 3px;
}

.athlete-progress-photo-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}


/* athlete-progress-photo-empty-state-v1 */
.athlete-progress-photo-empty {
  border: 1px dashed rgba(255, 184, 92, 0.28);
  border-radius: 18px;
  background: rgba(255, 184, 92, 0.06);
  padding: 14px;
}

.athlete-progress-photo-empty strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.3;
}

.athlete-progress-photo-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

.athlete-progress-photo-card {
  border: 1px solid rgba(218, 165, 32, 0.2);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.athlete-progress-photo-card strong,
.athlete-progress-photo-card span {
  display: block;
}



/* athlete-progress-photo-compare-v1 */
.athlete-progress-photo-comparison {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.athlete-progress-photo-comparison-header {
  display: grid;
  gap: 4px;
}

.athlete-progress-photo-comparison-header span,
.athlete-progress-photo-comparison p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.athlete-progress-photo-comparison-view {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.athlete-progress-photo-comparison-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.athlete-progress-photo-comparison-figure {
  display: grid;
  gap: 6px;
  margin: 0;
}

.athlete-progress-photo-comparison-figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
}

.athlete-progress-photo-comparison-figure figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.athlete-progress-photo-compare {
  min-height: 40px;
}

/* athlete-cabinet-product-completion-v1 */
.athlete-progress-hub {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.athlete-progress-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.athlete-progress-hub-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 184, 92, 0.14);
}

.athlete-progress-hub-label {
  color: var(--bp-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athlete-progress-hub-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.athlete-progress-hub-card small {
  color: var(--bp-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.athlete-progress-hub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* athlete-progress-hub-detail-v1 */
#athlete-screen-progress .athlete-progress-section {
  display: none;
  margin-bottom: 16px;
}

#athlete-screen-progress.is-progress-detail-open #athlete-progress-hub {
  display: none;
}

#athlete-screen-progress.is-progress-detail-open
  .athlete-progress-section.is-active {
  display: block;
}

#athlete-screen-progress.is-progress-detail-open
  .athlete-progress-section.is-active.hidden {
  display: none !important;
}

#athlete-screen-progress.is-progress-detail-open
  .athlete-progress-section.is-active
  > .measurement-history-heading,
#athlete-screen-progress.is-progress-detail-open
  .athlete-progress-section.is-active
  > h5:first-child {
  display: none;
}

.athlete-progress-backbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  min-width: 0;
}

.athlete-progress-backbar strong {
  font-size: 1.05rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-progress-back {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.athlete-progress-charts-collapse {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.athlete-progress-tile--charts {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  min-height: 0;
  text-align: left;
  cursor: pointer;
}

.athlete-progress-tile--charts > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 72px;
  padding: 12px 14px;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bp-text);
}

.athlete-progress-tile--charts > summary::-webkit-details-marker {
  display: none;
}

.athlete-progress-tile--charts > summary::after {
  content: "▾";
  color: var(--bp-muted);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.athlete-progress-tile--charts[open] > summary::after {
  transform: rotate(180deg);
}

.athlete-progress-charts-collapse > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bp-text);
  list-style: none;
}

.athlete-progress-charts-collapse > summary::-webkit-details-marker {
  display: none;
}

.athlete-progress-charts-collapse > summary::after {
  content: "▾";
  color: var(--bp-muted);
  font-size: 0.9rem;
  transition: transform 0.15s ease;
}

.athlete-progress-charts-collapse[open] > summary::after {
  transform: rotate(180deg);
}

.athlete-progress-charts-collapse .athlete-progress-charts {
  margin: 0;
  padding: 0 12px 12px;
}

.athlete-progress-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.athlete-progress-tile {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.1s ease;
}

.athlete-progress-tile:active {
  transform: scale(0.98);
}

.athlete-progress-tile-label {
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.25;
  color: var(--bp-text);
}

.athlete-progress-tile small {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--bp-muted);
}

.athlete-training-path-card {
  margin: 16px 0;
}

.athlete-training-path-meta {
  margin-top: 12px;
}

/* athlete-cabinet-release1-v1 */
.athlete-training-path-visual {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.athlete-training-path-week-row {
  display: grid;
  gap: 6px;
}

.athlete-training-path-week-label {
  color: var(--bp-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athlete-training-path-week-cells {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 6px;
}

.athlete-training-path-legend {
  margin: 0 0 12px;
  text-align: center;
  line-height: 1.45;
}

.athlete-training-path-cell {
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: var(--bp-muted);
}

.athlete-training-path-cell.is-done {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.athlete-training-path-cell.is-current {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
  font-weight: 700;
}

.athlete-training-path-cell.is-locked {
  opacity: 0.55;
}

.athlete-training-path-xp {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}

.athlete-training-path-xp-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.athlete-training-path-xp-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.athlete-training-path-xp-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.athlete-training-path-streak-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.athlete-my-path-actions {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.athlete-program-open-my-path {
  margin-top: 12px;
  width: 100%;
}

.athlete-progress-charts {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.athlete-progress-chart-card {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.athlete-progress-chart-card h5 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.athlete-progress-chart-body {
  display: grid;
  gap: 8px;
  min-height: 48px;
}

.athlete-progress-chart-bar-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

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

.athlete-progress-chart-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
}

.athlete-settings-card {
  display: grid;
  gap: 18px;
}

.athlete-trainer-handoff-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.athlete-trainer-handoff-categories,
.athlete-support-categories {
  margin: 0;
  padding-left: 18px;
}

.athlete-trainer-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.athlete-settings-section {
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.athlete-settings-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.athlete-settings-toggle,
.athlete-settings-field {
  display: grid;
  gap: 6px;
}

.athlete-settings-reminder-days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 0;
  margin: 0;
  padding: 0;
}

.athlete-settings-reminder-days label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
}

.athlete-profile-open-settings {
  margin-top: 10px;
  width: 100%;
}

.athlete-notification-settings-panel {
  margin-top: 12px;
}

.athlete-profile-hub-compact {
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.athlete-profile-hub-compact div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 8px;
  align-items: start;
}

.athlete-profile-hub-compact dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.athlete-profile-hub-compact dd {
  margin: 0;
  font-size: 0.92rem;
}

.athlete-profile-hub-menu {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.athlete-profile-hub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.athlete-profile-hub-item.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.athlete-profile-hub-item--danger {
  color: #ffb4b4;
}

.athlete-profile-hub-back {
  width: 100%;
  margin-bottom: 12px;
}

.athlete-profile-hub-help-panel {
  margin-bottom: 12px;
}

.athlete-profile-hub-help-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.athlete-profile-hub-home-hidden {
  display: none !important;
}

.athlete-notification-settings-panel .section-heading {
  align-items: start;
}

.athlete-notification-settings {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.athlete-notification-settings hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

@media (max-width: 520px) {
  .athlete-settings-reminder-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.athlete-workout-analytics-panel {
  margin-bottom: 18px;
}

.athlete-workout-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.athlete-workout-analytics-metric {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.athlete-workout-analytics-metric span {
  color: var(--bp-muted);
  font-size: 0.8rem;
}

.athlete-workout-analytics-empty {
  display: grid;
  gap: 6px;
  padding: 12px 0;
}

.athlete-workout-analytics-empty p,
.athlete-strength-analytics-list p {
  margin: 0;
  color: var(--bp-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.athlete-strength-analytics-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.athlete-strength-analytics-list h6 {
  margin: 0;
  font-size: 0.95rem;
}

.athlete-strength-analytics-card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 184, 92, 0.06);
  border: 1px solid rgba(255, 184, 92, 0.12);
}

.athlete-strength-analytics-card p {
  margin: 0;
  color: var(--bp-muted);
  font-size: 0.86rem;
}

.athlete-strength-analytics-card.is-clickable {
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.athlete-strength-detail-panel,
.athlete-achievements-panel,
.athlete-checkin-panel {
  margin-bottom: 18px;
}

.athlete-strength-period-label {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
  font-size: 0.86rem;
  color: var(--bp-muted);
}

.athlete-strength-period-label select {
  width: 100%;
  max-width: 220px;
}

.athlete-strength-exercise-picker {
  display: grid;
  gap: 6px;
  max-height: 42vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.athlete-strength-detail-panel.is-exercise-selected
  .athlete-strength-exercise-picker {
  max-height: none;
  overflow: visible;
}

.athlete-strength-detail-panel.is-exercise-selected
  .athlete-strength-exercise-option:not(.is-active) {
  display: none;
}

.athlete-strength-detail-toolbar {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 10px;
}

.athlete-strength-change-exercise {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.88rem;
}

.athlete-strength-exercise-detail {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 92, 0.22);
  background: rgba(255, 184, 92, 0.05);
}

.athlete-strength-exercise-option {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
}

.athlete-strength-exercise-option.is-active {
  border-color: rgba(255, 184, 92, 0.35);
  background: rgba(255, 184, 92, 0.08);
}

.athlete-strength-exercise-option span {
  color: var(--bp-muted);
  font-size: 0.82rem;
}

.athlete-strength-detail-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.athlete-strength-detail-metric {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.athlete-strength-detail-metric span {
  color: var(--bp-muted);
  font-size: 0.8rem;
}

.athlete-strength-detail-chart {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
}

.athlete-strength-trend-bar {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
}

.athlete-strength-trend-bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.athlete-strength-trend-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb85c, #ff8f3d);
}

.athlete-strength-trend-bar-fill.is-deload {
  background: linear-gradient(90deg, #7eb6ff, #5a8fd6);
}

.athlete-strength-detail-history {
  display: grid;
  gap: 10px;
}

.athlete-strength-session-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.athlete-strength-session-card.is-deload {
  border-color: rgba(126, 182, 255, 0.25);
}

.athlete-strength-session-card header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: baseline;
}

.athlete-strength-deload-badge {
  color: #9ec7ff;
  font-size: 0.78rem;
  font-weight: 700;
}

.athlete-achievements-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 14px;
}

.athlete-achievements-summary-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 184, 92, 0.06);
  border: 1px solid rgba(255, 184, 92, 0.12);
}

.athlete-achievements-summary-card span {
  color: var(--bp-muted);
  font-size: 0.8rem;
}

.athlete-achievements-earned,
.athlete-achievements-badges {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.athlete-achievement-item,
.athlete-achievement-badge {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.athlete-achievement-badge.is-unlocked {
  border-color: rgba(255, 184, 92, 0.28);
  background: rgba(255, 184, 92, 0.08);
}

.athlete-achievement-badge.is-locked {
  opacity: 0.72;
}

.athlete-checkin-actions {
  margin: 10px 0;
}

.athlete-checkin-steps {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 18px;
}

.athlete-checkin-timeline {
  display: grid;
  gap: 10px;
}

.athlete-checkin-point {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.athlete-photo-ai-panel {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.athlete-photo-ai-panel .button {
  margin-top: 10px;
}

.athlete-photo-ai-result,
.athlete-photo-ai-history {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.athlete-photo-ai-report {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.9rem;
}

.athlete-strength-detail-feedback,
.athlete-achievements-feedback,
.athlete-checkin-feedback,
.athlete-photo-ai-feedback {
  margin-top: 10px;
  font-size: 0.9rem;
}

.athlete-strength-detail-feedback[data-state="error"],
.athlete-achievements-feedback[data-state="error"],
.athlete-checkin-feedback[data-state="error"],
.athlete-photo-ai-feedback[data-state="error"] {
  color: #ff9b9b;
}

.athlete-strength-detail-feedback[data-state="pending"],
.athlete-photo-ai-feedback[data-state="pending"] {
  color: var(--bp-muted);
}

/* athlete-progress-photo-delete-v1 */
.athlete-progress-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.athlete-progress-photo-delete {
  min-height: 40px;
}

.athlete-progress-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.athlete-progress-photo-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(218, 165, 32, 0.18);
}

.athlete-progress-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 12px;
  border: 1px dashed rgba(218, 165, 32, 0.25);
  color: rgba(245, 245, 245, 0.6);
  font-size: 0.84rem;
}

@media (max-width: 640px) {
  .athlete-progress-photo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* athlete-start-workout-form-scan-v1 */
.athlete-start-workout-form {
  border-color: rgba(255, 184, 92, 0.24);
  background:
    linear-gradient(
      135deg,
      rgba(255, 184, 92, 0.08),
      rgba(15, 23, 42, 0.28)
    );
}

.athlete-start-workout-form .measurement-form-grid label {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.26);
  padding: 12px;
}

.athlete-start-workout-form .measurement-form-grid label > span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athlete-start-workout-form select {
  min-height: 46px;
  font-weight: 800;
}

.athlete-start-workout-form .measurement-form-actions .button {
  min-height: 48px;
  width: 100%;
  font-weight: 900;
}

@media (min-width: 720px) {
  .athlete-start-workout-form .measurement-form-actions .button {
    width: auto;
    min-width: 220px;
  }
}

/* athlete-web-profile-questionnaire-edit-v1 */
.athlete-profile-form {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.32);
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-form-grid label {
  display: grid;
  gap: 7px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 700;
}

.profile-form-grid input,
.profile-form-grid select,
.profile-form-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.42);
  color: #f8fafc;
  font: inherit;
  padding: 10px 12px;
}

.profile-form-grid textarea {
  resize: vertical;
}

.profile-form-wide {
  grid-column: 1 / -1;
}

.profile-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-form-feedback {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.86);
}

.profile-form-feedback[data-state="success"] {
  color: #86efac;
}

.profile-form-feedback[data-state="error"] {
  color: #fecaca;
}

.athlete-injury-profile {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.24);
}

.athlete-injury-profile-intro {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.86);
}

.athlete-female-physiology {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(244, 114, 182, 0.28);
  border-radius: 16px;
  background: rgba(76, 29, 149, 0.12);
}

.athlete-female-physiology-intro {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.86);
}

.athlete-female-physiology-options,
.athlete-female-physiology-check-group,
.athlete-female-physiology-radio-group {
  display: grid;
  gap: 8px;
}

.athlete-female-physiology-options label,
.athlete-female-physiology-check-group label,
.athlete-female-physiology-radio-group label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.92);
}

.athlete-female-physiology-panel {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.athlete-female-physiology-warning {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.athlete-profile-attestation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.9);
}

.athlete-profile-attestation input {
  margin-top: 3px;
}

.profile-legal-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.92);
}

.athlete-legal-links {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.athlete-legal-links .athlete-legal-link {
  justify-content: flex-start;
  text-align: left;
  white-space: normal;
}

.athlete-profile-edit-warning {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
}

.athlete-profile-edit-warning-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--bp-text, #f8fafc);
}

.athlete-profile-edit-warning-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.92);
}

.athlete-legal-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: end center;
  padding: 16px;
}

.athlete-legal-modal.hidden {
  display: none;
}

.athlete-legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.athlete-legal-modal-card {
  position: relative;
  width: min(100%, 560px);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 18px 16px 16px;
  border-radius: 18px 18px 0 0;
  background: var(--bp-surface, #0f172a);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 48px rgba(2, 6, 23, 0.45);
}

.athlete-legal-modal-body {
  margin: 10px 0 14px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: rgba(226, 232, 240, 0.95);
}

.athlete-profile-safety-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  padding: 16px;
}

.athlete-profile-safety-modal.hidden {
  display: none;
}

.athlete-profile-safety-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
}

.athlete-profile-safety-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 18px;
  border-radius: 20px 20px 16px 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0f172a;
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.athlete-profile-safety-modal-card h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.athlete-profile-safety-modal-intro {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(226, 232, 240, 0.9);
  white-space: pre-wrap;
}

.athlete-profile-safety-modal-claims {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #fecaca;
  font-size: 13px;
  line-height: 1.45;
}

.athlete-profile-safety-modal-reasons,
.athlete-profile-safety-modal-choices {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.athlete-profile-safety-modal-reasons label,
.athlete-profile-safety-modal-choices button {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.athlete-profile-safety-modal-attestation {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.athlete-profile-safety-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 720px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}

/* athlete-web-subscription-api-v1 */
.athlete-payment-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.78);
}


/* athlete-web-program-card-v1 */
.athlete-program-card {
  overflow: visible;
}

.athlete-program-meta {
  margin-top: 12px;
}

.athlete-program-weeks {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}


/* athlete-program-empty-state-v1 */
.athlete-program-empty {
  border: 1px dashed rgba(255, 184, 92, 0.28);
  border-radius: 18px;
  background: rgba(255, 184, 92, 0.06);
  padding: 14px;
}

.athlete-program-empty strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.3;
}

.athlete-program-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

.athlete-program-week {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.26);
}

.athlete-program-week h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.athlete-program-days {
  display: grid;
  gap: 10px;
}

.athlete-program-day {
  padding: 12px;
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.32);
}

.athlete-program-day h5 {
  margin: 0 0 6px;
  font-size: 14px;
}

.athlete-program-day-count {
  margin: 0 0 8px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 13px;
}

.athlete-program-exercises {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: rgba(248, 250, 252, 0.9);
  font-size: 13px;
  line-height: 1.35;
}

@media (min-width: 760px) {
  .athlete-program-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* pwa-profile-selection-panel-v1 */
.pwa-profile-selection-panel {
  display: grid;
  gap: 12px;
}

.pwa-profile-selection-panel h3 {
  margin: 0;
  font-size: 18px;
}

.pwa-profile-selection-list {
  display: grid;
  gap: 10px;
}

.pwa-profile-selection-button {
  width: 100%;
  justify-content: center;
}


/* pwa-install-button-v1 */
.pwa-install-button {
  align-self: center;
  margin-left: auto;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .hero {
    align-items: flex-start;
  }

  .pwa-install-button {
    width: 100%;
    margin-left: 0;
  }
}

/* pwa-safari-install-guide-v1 */
.pwa-safari-install-panel {
  display: grid;
  gap: 12px;
}

.pwa-safari-install-panel.hidden {
  display: none;
}


/* athlete-measurement-history-v1 */
.athlete-measurement-history {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.measurement-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.measurement-history-heading h5 {
  margin: 0;
}

.measurement-history-count {
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(245, 158, 11, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.athlete-measurement-history-list {
  display: grid;
  gap: 10px;
}

.athlete-measurement-history-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.24);
}

.athlete-measurement-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.athlete-measurement-history-grid div {
  display: grid;
  gap: 2px;
}

.athlete-measurement-history-grid dt {
  font-size: 11px;
  color: var(--muted);
}

.athlete-measurement-history-grid dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 760px) {
  .athlete-measurement-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}



/* athlete-measurement-history-empty-state-v1 */
.athlete-measurement-history-empty {
  border: 1px dashed rgba(255, 184, 92, 0.28);
  border-radius: 18px;
  background: rgba(255, 184, 92, 0.06);
  padding: 14px;
}

.athlete-measurement-history-empty strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.3;
}

.athlete-measurement-history-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

/* athlete-measurement-delta-v1 */
.athlete-measurement-history-delta {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  border-radius: 999px;
  padding: 1px 6px;
  background: rgba(148, 163, 184, 0.14);
  font-size: 11px;
  font-weight: 800;
}


/* athlete-nutrition-readonly-v1 */
.athlete-nutrition-card {
  display: grid;
  gap: 14px;
}

.athlete-nutrition-plan {
  display: grid;
  gap: 14px;
}

.athlete-nutrition-targets {
  margin: 0;
}

.athlete-nutrition-days {
  display: grid;
  gap: 12px;
}

.athlete-nutrition-day {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.24);
}

.athlete-nutrition-meal {
  display: grid;
  gap: 8px;
  border-radius: 16px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.22);
}

.athlete-nutrition-meal h5 {
  margin: 0;
}

.athlete-nutrition-meal ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.athlete-nutrition-meal li {
  color: var(--muted);
}


/* athlete-nutrition-create-v1 */
.athlete-nutrition-create {
  width: 100%;
}

.athlete-nutrition-feedback {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.athlete-nutrition-feedback[data-state="success"] {
  color: var(--tg-theme-button-color, #f59e0b);
}

.athlete-nutrition-feedback[data-state="error"] {
  color: #dc2626;
}

/* athlete-nutrition-upsell-v1 */
.athlete-nutrition-subscribe {
  margin-top: 10px;
}

.athlete-access-card.is-nutrition-upsell-focus {
  border-color: rgba(255, 184, 92, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 184, 92, 0.28),
    0 12px 32px rgba(255, 184, 92, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* athlete-workout-history-v1 */
.athlete-workout-history-panel {
  margin-top: 1rem;
}

.athlete-workout-history-list {
  display: grid;
  gap: 0.75rem;
}

.athlete-workout-history-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 0.85rem;
  background: rgba(15, 23, 42, 0.28);
}

.athlete-workout-history-card summary {
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  list-style: none;
}

.athlete-workout-history-card summary::-webkit-details-marker {
  display: none;
}

.athlete-workout-history-card summary span {
  color: var(--muted);
  font-size: 0.82rem;
}

.athlete-workout-history-card summary strong {
  font-size: 0.98rem;
}

.athlete-workout-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.athlete-workout-history-meta span {
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
}

.athlete-workout-history-exercises {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.athlete-workout-history-exercise {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.athlete-workout-history-exercise span {
  color: var(--muted);
  font-size: 0.82rem;
}

.athlete-workout-history-exercise ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: 0.86rem;
}



/* athlete-workout-history-empty-state-v1 */
.athlete-workout-history-empty {
  border: 1px dashed rgba(255, 184, 92, 0.28);
  border-radius: 18px;
  background: rgba(255, 184, 92, 0.06);
  padding: 14px;
}

.athlete-workout-history-empty strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1.3;
}

.athlete-workout-history-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
}

/* athlete-workout-history-latest-v1 */
.athlete-workout-history-card-latest {
  border-color: rgba(255, 184, 92, 0.44);
  background:
    radial-gradient(circle at top left, rgba(255, 184, 92, 0.14), transparent 34%),
    rgba(15, 23, 42, 0.36);
}

.athlete-workout-history-latest-badge {
  justify-self: start;
  border: 1px solid rgba(255, 184, 92, 0.34);
  border-radius: 999px;
  background: rgba(255, 184, 92, 0.1);
  color: #ffd08a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  text-transform: uppercase;
}



/* athlete-workout-history-volume-chip-v1 */
.athlete-workout-history-volume-chip {
  border-color: rgba(255, 184, 92, 0.42) !important;
  background: rgba(255, 184, 92, 0.14) !important;
  color: #ffd08a !important;
  font-weight: 900 !important;
}

/* athlete-workout-history-latest-summary-v1 */
.athlete-workout-history-latest-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.athlete-workout-history-latest-summary span {
  border: 1px solid rgba(255, 184, 92, 0.22);
  border-radius: 999px;
  background: rgba(255, 184, 92, 0.08);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
}

@media (max-width: 640px) {
  .athlete-workout-history-meta {
    display: grid;
  }
}

/* athlete-cabinet-collapsible-v1 */
.athlete-card-collapse-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.athlete-card-collapse-toggle {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.athlete-collapsible-body {
  width: 100%;
}

.athlete-collapsible-body.hidden {
  display: none;
}

.athlete-card-collapsed {
  gap: 0;
}

.athlete-card-collapsed > .section-heading,
.athlete-card-collapsed > .card-heading {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .athlete-card-collapse-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .athlete-card-collapse-toggle {
    width: auto;
  }
}

/* athlete-telegram-account-ui-polish-v1 */
.web-telegram-link-button,
.web-switch-account {
  min-height: 44px;
  border-radius: 14px;
  text-decoration: none;
}

.web-switch-account {
  color: var(--tg-theme-hint-color, #64748b);
  background: color-mix(
    in srgb,
    var(--tg-theme-secondary-bg-color, #ffffff) 82%,
    transparent
  );
}

.telegram-account-link-card {
  margin: 16px 0 24px;
  padding: 16px;
  border: 1px solid rgba(255, 159, 10, 0.2);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(27, 43, 67, 0.96),
      rgba(16, 28, 46, 0.98)
    );
  color: var(--bp-text, #f8fafc);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.telegram-account-link-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.05rem;
}

.telegram-account-link-card > p {
  margin: 0;
  color: var(--bp-muted, #94a3b8);
  line-height: 1.45;
}

.telegram-account-link-command {
  border: 1px solid rgba(255, 159, 10, 0.16);
  background: rgba(8, 17, 31, 0.55);
}

.telegram-account-link-command p {
  margin: 0;
  color: var(--bp-muted, #94a3b8);
  font-size: 0.84rem;
  font-weight: 700;
}

.telegram-account-link-code {
  border: 1px dashed rgba(255, 159, 10, 0.45);
  color: #fff;
  background: rgba(8, 17, 31, 0.85);
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  font-weight: 800;
}

.telegram-account-link-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.telegram-account-link-actions .button {
  width: 100%;
  min-height: 44px;
  font-size: 0.86rem;
  line-height: 1.2;
  white-space: normal;
}

.telegram-account-link-primary {
  grid-column: 1 / -1;
}

.telegram-account-link-actions a.button.tertiary,
.telegram-account-link-actions .button.tertiary {
  color: var(--bp-text, #f8fafc);
  border: 1px solid rgba(248, 250, 252, 0.16);
  background: rgba(8, 17, 31, 0.45);
  box-shadow: none;
}

.telegram-account-link-feedback {
  min-height: 18px;
  margin: 0;
}

.account-action-button.switch-account-button {
  top: auto;
  right: 14px;
  bottom: 14px;
  left: auto;
  width: auto;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid color-mix(
    in srgb,
    var(--tg-theme-hint-color, #6b7280) 24%,
    transparent
  );
  border-radius: 999px;
  color: var(--tg-theme-text-color, #111827);
  background: color-mix(
    in srgb,
    var(--tg-theme-secondary-bg-color, #ffffff) 88%,
    transparent
  );
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  font-size: 0.86rem;
}

@media (max-width: 640px) {
  .telegram-account-link-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .account-action-button.switch-account-button {
    right: 12px;
    bottom: 12px;
    left: auto;
    width: auto;
    max-width: calc(100vw - 24px);
  }
}


/* athlete-multi-focus-profile-ui-v1 */
.athlete-profile-focus-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
}

.athlete-profile-focus-field legend {
  padding: 0 6px;
  color: rgba(226, 232, 240, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.athlete-profile-focus-hint {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.athlete-profile-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.athlete-profile-focus-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.athlete-profile-focus-done {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.84rem;
}

.athlete-profile-focus-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.32);
  color: #f8fafc;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: normal;
}

.athlete-profile-focus-option span {
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.athlete-profile-focus-option input {
  width: 16px;
  height: 16px;
  accent-color: var(--tg-theme-button-color, #f59e0b);
}

.athlete-profile-focus-option:has(input:checked) {
  border-color: rgba(245, 158, 11, 0.58);
  background: rgba(245, 158, 11, 0.16);
}

.athlete-profile-focus-option:has(input:disabled):not(:has(input:checked)) {
  opacity: 0.45;
}

@media (max-width: 520px) {
  .athlete-profile-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.payments-admin-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.payments-admin-nav .cabinet-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
}


/* athlete-cabinet-ux-v1 */
.pwa-profile-selection-panel {
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.pwa-profile-selection-list {
  display: grid;
  gap: 10px;
}

.pwa-profile-selection-button {
  appearance: none;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(31, 41, 55, 0.96));
  color: #f8fafc;
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.pwa-profile-selection-button strong {
  font-size: 15px;
  font-weight: 900;
}

.pwa-profile-selection-button span {
  color: rgba(226, 232, 240, 0.78);
  font-size: 12px;
  font-weight: 700;
}

.pwa-profile-selection-button:disabled {
  opacity: 0.72;
}

.pwa-profile-selection-button[data-loading="1"]::after {
  content: "Открываем профиль…";
  color: rgba(245, 158, 11, 0.95);
  font-size: 12px;
  font-weight: 900;
}

.athlete-profile-focus-toggle {
  appearance: none;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  color: #f8fafc;
  text-align: left;
}

.athlete-profile-focus-toggle strong {
  min-width: 0;
  max-width: none;
  overflow: visible;
  color: rgba(245, 158, 11, 0.95);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: unset;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.athlete-profile-focus-arrow {
  transition: transform 0.18s ease;
}

.athlete-profile-focus-field[data-focus-open="1"] .athlete-profile-focus-arrow {
  transform: rotate(180deg);
}

.athlete-profile-focus-field[data-focus-open="0"] .athlete-profile-focus-hint,
.athlete-profile-focus-field[data-focus-open="0"] .athlete-profile-focus-grid {
  display: none;
}





/* athlete-ai-coach-center-v4-css */

.athlete-ai-coach-block.hidden {
  display: none;
}

.athlete-ai-coach-block {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 184, 92, 0.06);
}

/* athlete-ai-coach-card-v1-css */

.athlete-ai-coach-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 184, 92, 0.35);
  background: linear-gradient(
    145deg,
    rgba(255, 184, 92, 0.12),
    rgba(20, 20, 30, 0.9)
  );
}

.athlete-ai-coach-header {
  font-weight: 900;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.athlete-ai-coach-block {
  margin-bottom: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.athlete-ai-coach-reason {
  opacity: .85;
  font-size: .9rem;
}

.athlete-ai-coach-button {
  margin-top: 14px;
  width: 100%;
}

/* athlete-current-workout-scan-cards-v1 */
.athlete-current-workout-card .detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.athlete-current-workout-card .detail-list > div {
  border: 1px solid rgba(255, 184, 92, 0.18);
  border-radius: 16px;
  background: rgba(255, 184, 92, 0.055);
  padding: 11px 12px;
}

.athlete-current-workout-card .detail-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.athlete-current-workout-card .detail-list dd {
  margin-top: 5px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.28;
}

.athlete-current-workout-card .detail-list dd.detail-wide {
  font-size: 0.9rem;
  font-weight: 750;
}

@media (max-width: 640px) {
  .athlete-current-workout-card .detail-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .athlete-current-workout-card .detail-list > div {
    padding: 10px 11px;
  }
}


/* athlete-today-layout-v1 */

.athlete-current-workout-card {
  order: -1;
}

.athlete-current-hero {
  margin-bottom: 18px;
}

.athlete-ai-coach-card {
  margin-top: 18px;
}

.athlete-ai-coach-header {
  text-transform: uppercase;
}

.athlete-home-hub {
  margin-top: 18px;
}

/* athlete-current-workout-next-step-v1 */
.athlete-workout-next-action {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(255, 184, 92, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 92, 0.12), transparent 42%),
    rgba(15, 23, 42, 0.34);
}

.athlete-workout-next-action strong,
.athlete-workout-next-action p {
  display: block;
}

.athlete-workout-next-action strong {
  color: #ffd08a;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.athlete-workout-next-action p {
  margin: 7px 0 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.35;
}

.athlete-current-workout-card .detail-note,
.athlete-program-card .detail-note {
  font-size: 14px;
  line-height: 1.45;
}


/* athlete-website-hub-v1 */
.athlete-home-hub {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 20px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 180, 45, 0.34), transparent 30%),
    linear-gradient(135deg, #111827 0%, #172033 52%, #0b1120 100%);
  color: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}

.athlete-home-hub-copy {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-bottom: 16px;
}

.athlete-home-hub-copy h3 {
  margin: 4px 0 8px;
  color: #ffffff;
  font-size: clamp(1.45rem, 7vw, 2.2rem);
  line-height: 0.98;
}

.athlete-home-hub-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.athlete-home-hub-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.athlete-home-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(14px);
}

.athlete-home-card:active {
  transform: translateY(1px);
}

.athlete-home-card-visual {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 181, 46, 0.96), rgba(255, 111, 0, 0.86));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.athlete-home-card-visual::before,
.athlete-home-card-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.athlete-home-card-visual::before {
  left: 9px;
  right: 9px;
  top: 15px;
  height: 7px;
  background: rgba(15, 23, 42, 0.72);
}

.athlete-home-card-visual::after {
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 7px;
  background: rgba(255, 255, 255, 0.72);
}

.athlete-home-card-copy strong,
.athlete-home-card-copy small {
  display: block;
}

.athlete-home-card-copy strong {
  margin-bottom: 4px;
  font-size: 0.98rem;
  line-height: 1.08;
}

.athlete-home-card-copy small {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.18;
}

.athlete-home-card.is-program .athlete-home-card-visual {
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.96), rgba(180, 83, 9, 0.92));
}

.athlete-home-card.is-progress .athlete-home-card-visual {
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.92), rgba(37, 99, 235, 0.86));
}

.athlete-home-card.is-photo .athlete-home-card-visual {
  background:
    linear-gradient(135deg, rgba(244, 114, 182, 0.9), rgba(124, 58, 237, 0.86));
}

.athlete-home-card.is-nutrition .athlete-home-card-visual {
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.92), rgba(21, 128, 61, 0.86));
}

.athlete-home-card.is-profile .athlete-home-card-visual {
  background:
    linear-gradient(135deg, rgba(148, 163, 184, 0.94), rgba(51, 65, 85, 0.92));
}

.athlete-home-card.is-access .athlete-home-card-visual {
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.98), rgba(161, 98, 7, 0.9));
}

@media (max-width: 460px) {
  .athlete-home-hub {
    padding: 18px;
    border-radius: 28px;
  }

  .athlete-home-hub-grid {
    grid-template-columns: 1fr;
  }

  .athlete-home-card {
    min-height: 78px;
  }
}


/* athlete-current-exercise-set-overview-v1 */
.athlete-set-overview-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(251, 146, 60, 0.08));
}

.athlete-set-overview-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.athlete-set-overview-heading strong {
  color: #111827;
}

.athlete-set-overview-heading span {
  color: #9a3412;
  font-size: 0.84rem;
  font-weight: 800;
}

.athlete-set-overview-list {
  display: grid;
  gap: 8px;
}

.athlete-set-overview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.athlete-set-overview-row strong {
  color: #111827;
  font-size: 0.9rem;
}

.athlete-set-overview-row span {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: right;
}

.athlete-set-overview-row.is-current {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(255, 237, 213, 0.78);
}

.athlete-set-overview-row.is-current span {
  color: #c2410c;
}

.athlete-set-overview-row.is-done {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(240, 253, 244, 0.86);
}

.athlete-set-overview-row.is-done span {
  color: #166534;
}

.athlete-set-overview-row.is-skipped,
.athlete-set-overview-row.is-missing {
  background: rgba(248, 250, 252, 0.9);
}

.athlete-set-overview-row.is-skipped span,
.athlete-set-overview-row.is-missing span {
  color: #64748b;
}

@media (max-width: 460px) {
  .athlete-set-overview-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .athlete-set-overview-row span {
    text-align: left;
  }
}


/* athlete-trainer-set-recommendation-v1 */
.athlete-set-coach-suggestion-panel {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 237, 213, 0.72));
}

.athlete-set-coach-suggestion-panel strong {
  color: #9a3412;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.athlete-set-coach-suggestion-panel p {
  margin: 0;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 900;
  white-space: pre-line;
}

.athlete-set-coach-suggestion-panel small {
  color: #7c2d12;
  font-weight: 750;
  line-height: 1.35;
}



/* athlete-replacement-cancel-v1 */
.athlete-set-replacement-panel #athlete-set-replacement-cancel {
  width: 100%;
}




/* athlete-set-coach-feedback-v1 */
.athlete-set-coach-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 193, 7, 0.35);
  background: rgba(255, 193, 7, 0.08);
}

.athlete-set-coach-feedback strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.athlete-set-coach-feedback p {
  margin: 4px 0;
}

/* athlete-set-save-result-panel-v1 */
.athlete-set-result-panel {
  display: grid;
  gap: 6px;
  margin: 14px 0;
  padding: 13px;
  border: 1px solid rgba(22, 163, 74, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(220, 252, 231, 0.72));
}

.athlete-set-result-panel strong {
  color: #166534;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.athlete-set-result-panel p {
  margin: 0;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 900;
}

.athlete-set-result-panel small {
  color: #166534;
  font-weight: 750;
  line-height: 1.35;
}


/* athlete-set-skip-reason-picker-v1 */
.athlete-set-skip-reason-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(254, 243, 199, 0.74));
}

.athlete-set-skip-reason-panel strong {
  color: #92400e;
  font-size: 0.92rem;
}

.athlete-set-skip-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.athlete-set-skip-reasons .button {
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.athlete-set-skip-reason-panel .button.subtle {
  width: 100%;
}


/* athlete-undo-last-set-v1 */
#athlete-set-undo-last {
  width: 100%;
  margin: 10px 0 12px;
  border-style: dashed;
}







/* athlete-active-set-mobile-final-polish-v1 */
.athlete-set-form #athlete-set-feedback {
  margin-top: 0;
}

.athlete-set-note-field textarea {
  min-height: 56px;
  resize: vertical;
}

.athlete-set-actions .button {
  min-height: 48px;
}

@media (max-width: 640px) {
  .athlete-set-form {
    gap: 10px;
  }

  .athlete-set-note-field textarea {
    min-height: 52px;
  }

  .athlete-set-actions {
    gap: 8px;
  }

  .athlete-set-actions .button {
    width: 100%;
  }
}

/* athlete-active-set-input-polish-v1 */
.athlete-set-input-grid {
  align-items: stretch;
}

.athlete-set-input-field {
  border: 1px solid rgba(255, 184, 92, 0.2);
  border-radius: 18px;
  background: rgba(255, 184, 92, 0.06);
  padding: 10px;
}

.athlete-set-input-field span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.athlete-set-input-field input {
  font-size: 1.22rem;
  font-weight: 800;
  min-height: 48px;
  text-align: center;
}

.athlete-set-input-field input:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 184, 92, 0.16);
}

@media (max-width: 640px) {
  .athlete-set-input-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .athlete-set-input-field {
    padding: 8px;
  }

  .athlete-set-input-field input {
    font-size: 1.08rem;
    min-height: 46px;
  }
}

/* athlete-active-set-actions-polish-v1 */
.athlete-set-coach-suggestion-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffd08a;
  letter-spacing: 0.02em;
}

.athlete-set-repeat-action {
  justify-self: start;
  border-color: rgba(255, 184, 92, 0.32);
  background: rgba(255, 184, 92, 0.08);
  font-weight: 800;
}

.athlete-set-repeat-action:not(.hidden) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .athlete-set-repeat-action:not(.hidden) {
    width: 100%;
  }
}

/* athlete-active-set-visual-hierarchy-v1 */
.athlete-set-exercise-name {
  border: 1px solid rgba(255, 184, 92, 0.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 92, 0.12), transparent 38%),
    rgba(15, 23, 42, 0.3);
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 2px;
  padding: 12px 14px;
}

.athlete-set-exercise-name--demo {
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.athlete-set-exercise-name--demo::after {
  content: "▾ Демо";
  display: block;
  margin-top: 6px;
  color: var(--bp-muted, #94a3b8);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athlete-set-exercise-name--demo.is-demo-open::after {
  content: "▴ Скрыть демо";
}

.athlete-update-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
  background: color-mix(in srgb, #060b13 62%, transparent);
  backdrop-filter: blur(10px);
}

.athlete-update-card {
  width: min(100%, 420px);
  margin: 0;
  padding: 22px 18px 20px;
  text-align: left;
  overflow: visible;
}

.athlete-path-celebration-overlay {
  position: fixed;
  inset: 0;
  z-index: 131;
  display: grid;
  place-items: center;
  padding: 20px;
  background: color-mix(in srgb, #060b13 62%, transparent);
  backdrop-filter: blur(10px);
}

.athlete-path-celebration-card {
  width: min(100%, 420px);
  margin: 0;
  text-align: left;
}

.athlete-path-celebration-xp {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--bp-accent, #ffb85c);
}

.athlete-path-celebration-level {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bp-text, #f8fafc);
}

.athlete-path-celebration-streak {
  margin: 0 0 16px;
  color: var(--bp-muted, #9aa7b8);
  line-height: 1.45;
}

.athlete-update-notes {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--bp-text, #f8fafc);
}

.athlete-set-position {
  margin: 0;
  color: var(--bp-accent, #ffb85c);
  font-size: 1.02rem;
  font-weight: 800;
}

.athlete-set-plan-note {
  border-left: 3px solid rgba(255, 184, 92, 0.58);
  margin-top: 0;
  padding: 10px 12px;
  color: var(--bp-text, #f8fafc);
  font-size: 1.02rem;
  font-weight: 750;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .athlete-set-exercise-name {
    font-size: 1.08rem;
    padding: 11px 12px;
  }
}

/* athlete-active-set-form-cleanup-v1 */
.athlete-set-form {
  display: grid;
  gap: 12px;
}

.athlete-set-form .measurement-form-grid {
  gap: 10px;
  margin-top: 4px;
}

.athlete-set-form .measurement-form-grid label {
  min-width: 0;
}

.athlete-set-form input {
  min-height: 44px;
}

.athlete-set-note-field {
  display: grid;
  gap: 8px;
}

.athlete-set-note-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.athlete-set-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.athlete-set-note-chips .button {
  width: auto;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
}

.athlete-set-note-chips .button.is-selected {
  border-color: var(--bp-accent, #ff9f0a);
  background: rgba(255, 159, 10, 0.18);
}

.athlete-set-note-extra {
  display: grid;
}

.athlete-set-actions {
  margin-top: 2px;
}

@media (max-width: 640px) {
  .athlete-set-actions {
    display: grid;
  }
}

/* athlete-set-note-v1 */
/* athlete-today-set-note-chips-v1 */
#athlete-set-note {
  min-height: 56px;
  resize: vertical;
}


/* athlete-strength-completion-summary-v1 */
.athlete-strength-completion-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 14px 0 4px;
}

.athlete-strength-completion-summary span {
  border: 1px solid rgba(255, 184, 92, 0.24);
  border-radius: 18px;
  background: rgba(255, 184, 92, 0.07);
  padding: 12px;
}

.athlete-strength-completion-summary strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.athlete-strength-completion-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

@media (max-width: 620px) {
  .athlete-strength-completion-summary {
    grid-template-columns: 1fr;
  }
}


/* athlete-finalize-summary-v1 */
.athlete-finalize-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 14px 0 4px;
}

.athlete-finalize-summary span {
  border: 1px solid rgba(255, 184, 92, 0.24);
  border-radius: 18px;
  background: rgba(255, 184, 92, 0.07);
  padding: 12px;
  min-width: 0;
  text-align: center;
}

.athlete-finalize-summary strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1;
}

.athlete-finalize-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .athlete-finalize-summary {
    grid-template-columns: 1fr;
  }
}



/* athlete-post-workout-result-coach-v1 */
.athlete-post-workout-result-coach {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 92, 0.35);
  background: rgba(255, 184, 92, 0.08);
}

.athlete-post-workout-result-coach strong {
  display: block;
  margin-bottom: 8px;
}

.athlete-post-workout-result-coach p {
  margin: 6px 0;
}

/* athlete-post-workout-result-v1 */
.athlete-post-workout-result-panel {
  border-color: rgba(255, 184, 92, 0.34);
  background:
    radial-gradient(circle at top left, rgba(255, 184, 92, 0.16), transparent 34%),
    rgba(16, 17, 20, 0.82);
}

.athlete-post-workout-result-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin-top: 14px;
}

.athlete-post-workout-result-summary span {
  border: 1px solid rgba(255, 184, 92, 0.24);
  border-radius: 18px;
  background: rgba(255, 184, 92, 0.07);
  padding: 12px;
  min-width: 0;
}

.athlete-post-workout-result-summary strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
  word-break: break-word;
}

.athlete-post-workout-result-summary small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
  word-break: break-word;
}

@media (max-width: 760px) {
  .athlete-post-workout-result-summary {
    grid-template-columns: 1fr;
  }
}


/* athlete-post-workout-polish-v1 */
.athlete-post-workout-result-actions {
  margin-top: 14px;
}


/* athlete-auxiliary-execution-ux-v1 */
#athlete-core-plan,
#athlete-cardio-plan {
  border: 1px solid rgba(255, 184, 92, 0.22);
  border-radius: 18px;
  background: rgba(255, 184, 92, 0.07);
  padding: 14px;
  white-space: pre-wrap;
}

.athlete-auxiliary-next-hint {
  border-left: 3px solid rgba(255, 184, 92, 0.72);
  margin-top: 12px;
  padding-left: 12px;
}


/* athlete-pain-replacement-shortcut-v1 */
.athlete-set-result-pain-actions {
  margin-top: 12px;
}
/* athlete-set-coach-actions-v1 */
.athlete-set-coach-feedback-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.athlete-set-coach-feedback-actions .button {
  min-height: 44px;
}



/* athlete-drop-set-extra-v1 */
.athlete-drop-set-extra-set {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(249,115,22,.35);
  background: rgba(249,115,22,.08);
}

.athlete-drop-set-extra-set.hidden {
  display: none;
}


/* athlete-frequency-settings-compat-v1 */
.athlete-program-settings-frequency {
  display: grid;
  gap: 12px;
}

.athlete-program-settings-frequency .athlete-frequency-choice {
  display: flex;
  align-items: center;
}

.athlete-program-settings-frequency .athlete-frequency-status {
  margin-top: 8px;
}


/* athlete-coach-center-section-v1 */

.athlete-coach-center {
  display: grid;
  gap: 12px;
}

.athlete-coach-center-section {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.athlete-coach-center-section h4 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
}

.athlete-coach-center-section p {
  margin: 4px 0;
  line-height: 1.45;
}



/* athlete-coach-center-before-v2 */

.athlete-coach-center-before {
  white-space: pre-line;
  line-height: 1.65;
  font-weight: 700;
}

.athlete-coach-center-before::first-line {
  font-size: 1.05rem;
}


/* athlete-coach-center-decision-cards-v1 */

.athlete-coach-center-section p {
  white-space: pre-line;
}

.coach-decision-positive {
  color: #7ee787;
  font-weight: 900;
}

.coach-decision-warning {
  color: #ffcc66;
  font-weight: 900;
}

/* athlete-coach-center-source-migration-v1 */

.coach-source-only {
  display: none !important;
}



/* athlete-coach-center-actions-v1 */

.athlete-coach-center-actions,
.athlete-set-coach-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.athlete-coach-center .button {
  min-height: 46px;
}



/* athlete-program-preview-v1 */

.athlete-program-preview-card {
  margin-top: 16px;
}

.athlete-program-preview-card .section-heading {
  margin-bottom: 14px;
}

.athlete-program-preview-first-day,
.athlete-program-preview-trial,
.athlete-program-preview-locked {
  border-radius: 18px;
  padding: 16px;
  margin-top: 12px;
  white-space: pre-line;
  line-height: 1.5;
}

.athlete-program-preview-first-day {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.athlete-program-preview-trial {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.athlete-program-preview-locked {
  background: rgba(148, 163, 184, 0.10);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

#athlete-program-preview-start {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 800;
}

@media (min-width: 700px) {
  #athlete-program-preview-start {
    width: auto;
    min-width: 280px;
  }
}


/* athlete-ai-coach-feedback-v3-css */
.athlete-ai-coach-card[data-decision="increase"] {
  border-color: rgba(70, 220, 130, 0.45);
}

.athlete-ai-coach-card[data-decision="decrease"] {
  border-color: rgba(255, 120, 120, 0.45);
}

.athlete-ai-coach-card[data-decision="maintain"] {
  border-color: rgba(120, 180, 255, 0.45);
}

.athlete-ai-coach-block {
  white-space: pre-line;
  line-height: 1.45;
}



/* athlete-ai-coach-premium-layout-v1-css */

.athlete-ai-coach-premium-layout {
  margin-top: 18px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 184, 92, 0.45);
  background:
    linear-gradient(
      160deg,
      rgba(255, 184, 92, 0.14),
      rgba(15, 15, 20, 0.96)
    );
}

.athlete-ai-coach-premium-layout .athlete-ai-coach-header {
  font-size: 1.05rem;
  text-transform: uppercase;
}

.athlete-ai-coach-section-title {
  margin: 14px 0 8px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.athlete-ai-coach-premium-layout
.athlete-ai-coach-block {
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: rgba(255,184,92,.08);
  font-weight: 750;
}

.athlete-ai-coach-premium-layout
#athlete-ai-coach-working-weight {
  font-size: 1.05rem;
}

.athlete-ai-coach-premium-layout
#athlete-ai-coach-next-step {
  border: 1px solid rgba(255,184,92,.35);
}




/* athlete-today-hero-premium-v1 */

.athlete-current-hero {
  position: relative;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255, 184, 92, 0.28);
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 184, 92, 0.18),
      transparent 45%
    ),
    rgba(18, 18, 26, 0.96);
  overflow: hidden;
}

.athlete-current-hero h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.athlete-current-hero-readiness {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
}

.athlete-current-hero-readiness strong {
  font-size: 2.2rem;
  font-weight: 950;
}

.athlete-current-priority-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,184,92,0.08);
  border: 1px solid rgba(255,184,92,0.16);
  font-weight: 800;
}

.athlete-ai-coach-premium-layout {
  margin-top: 18px;
  border-radius: 24px;
}

.athlete-ai-coach-premium-layout
.athlete-ai-coach-header {
  font-size: 0.82rem;
  text-transform: uppercase;
  opacity: 0.85;
}


/* athlete-current-hero-premium-v2-css */

.athlete-current-hero {
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,184,92,.32);
  background:
    linear-gradient(
      145deg,
      rgba(255,184,92,.14),
      rgba(12,12,18,.98)
    );
  margin-bottom: 18px;
}

.athlete-current-hero h2 {
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  line-height: 1.15;
  font-weight: 950;
  margin: 8px 0 14px;
}

.athlete-current-hero-readiness {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
}

.athlete-current-hero-readiness strong {
  font-size: 2rem;
  font-weight: 950;
}

.athlete-current-hero-ai {
  font-size: .95rem;
  line-height: 1.45;
  opacity: .85;
}

.athlete-current-workout-card {
  overflow: hidden;
}

.athlete-current-workout-card
.section-heading.compact {
  margin-bottom: 14px;
}


/* athlete-ai-coach-premium-order-v1-css */

.athlete-ai-coach-premium-order-v1 {
  position: relative;
  z-index: 2;
  margin-top: 18px;
}

.athlete-ai-coach-premium-order-v1
.athlete-ai-coach-header {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.athlete-ai-coach-premium-order-v1
.athlete-ai-coach-block {
  background: rgba(255,184,92,.08);
  border: 1px solid rgba(255,184,92,.14);
  border-radius: 16px;
  padding: 12px 14px;
}

.athlete-current-workout-card
.athlete-current-hero {
  margin-bottom: 20px;
}

/* athlete-today-quick-actions-v1 */
.athlete-today-quick-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

.athlete-hub-start-workout {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fb923c);
  color: #111827;
  font-weight: 800;
}

.athlete-hub-start-workout:disabled {
  opacity: 0.55;
}

/* athlete-today-home-v1 */
.athlete-home-program-card,
.athlete-home-today-card {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid rgba(255, 159, 10, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(
      180deg,
      rgba(27, 43, 67, 0.92),
      rgba(16, 28, 46, 0.96)
    );
}

.athlete-home-program-heading,
.athlete-home-today-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.athlete-home-program-heading h4,
.athlete-home-today-heading h4 {
  margin: 2px 0 0;
  color: #fff;
  font-size: 1.12rem;
  line-height: 1.15;
}

.athlete-home-program-badge,
.athlete-home-today-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 159, 10, 0.16);
  color: var(--bp-accent-gold, #ffc247);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.athlete-home-program-meta,
.athlete-home-program-progress-label,
.athlete-home-today-empty {
  margin: 0;
  color: var(--bp-muted, #94a3b8);
  font-size: 0.88rem;
  line-height: 1.4;
}

.athlete-home-program-progress {
  margin: 12px 0 8px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.08);
}

.athlete-home-program-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff9f0a, #ffc247);
  transition: width 0.35s ease;
}

.athlete-home-today-exercises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.athlete-home-today-exercise {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(8, 17, 31, 0.45);
  border: 1px solid rgba(248, 250, 252, 0.06);
}

.athlete-home-today-mark {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 159, 10, 0.45);
  background: transparent;
}

.athlete-home-today-exercise.is-done .athlete-home-today-mark {
  border-color: #22c55e;
  background:
    radial-gradient(circle at center, #22c55e 0 45%, transparent 46%);
}

.athlete-home-today-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.athlete-home-today-copy strong {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.25;
}

.athlete-home-today-copy small {
  color: var(--bp-muted, #94a3b8);
  font-size: 0.78rem;
}

.athlete-home-today-empty {
  margin-top: 4px;
}

.athlete-home-hub-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.athlete-home-hub-grid-compact .athlete-home-card {
  min-height: 74px;
  padding: 12px;
}

.athlete-today-quick-actions {
  margin-top: 4px;
}

.athlete-hub-start-workout {
  width: 100%;
  border-radius: 16px;
}

/* athlete-bottom-nav-v2 — mockup app bar */
.athlete-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: min(100%, 760px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--bp-line);
  background: rgba(8, 17, 31, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.athlete-bottom-nav.is-admin-visible {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.athlete-admin-screen-card {
  margin-bottom: 12px;
}

.athlete-admin-screen-lead {
  margin: 0;
}

.athlete-admin-nav-button.hidden {
  display: none;
}

.athlete-operations-admin-permissions {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--bp-muted);
}

.athlete-operations-admin-permissions li + li {
  margin-top: 0.35rem;
}

.athlete-admin-hub .card {
  width: 100%;
  text-align: left;
}

#athlete-section .athlete-screen[data-athlete-screen="admin-pricing"] .pricing-admin,
#athlete-section .athlete-screen[data-athlete-screen="admin-payments"] .payments-admin,
#athlete-section .athlete-screen[data-athlete-screen="admin-analytics"] .admin-analytics {
  color: var(--bp-text, #f8fafc);
}

.admin-analytics-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.admin-analytics-tabs button {
  border: 1px solid var(--bp-border, rgba(148, 163, 184, 0.18));
  border-radius: 999px;
  background: transparent;
  color: inherit;
  padding: 8px 12px;
}

.admin-analytics-tabs button.is-active {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(59, 130, 246, 0.45);
}

.admin-analytics-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-analytics-grid article,
.admin-analytics-row {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--bp-border, rgba(148, 163, 184, 0.18));
}

.admin-analytics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-analytics-list input[type="number"],
.admin-analytics-list input[type="search"] {
  width: 100%;
}

.athlete-admin-back-entry {
  width: 100%;
  margin-bottom: 12px;
  text-align: left;
}

.athlete-admin-back-entry span {
  display: block;
  margin-top: 4px;
  color: var(--bp-muted);
  font-size: 0.88rem;
}

.athlete-screen[data-athlete-screen="admin-pricing"] .pricing-admin,
.athlete-screen[data-athlete-screen="admin-payments"] .payments-admin {
  color: var(--bp-text, #f8fafc);
}

.athlete-bottom-nav button {
  min-height: 58px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--bp-muted);
  font: inherit;
  cursor: pointer;
}

.athlete-bottom-nav button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.athlete-bottom-nav button strong {
  display: block;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

@media (max-width: 360px) {
  .athlete-bottom-nav button {
    min-height: 52px;
    gap: 2px;
    padding-left: 2px;
    padding-right: 2px;
  }

  .athlete-bottom-nav button strong {
    font-size: 0.58rem;
  }
}

.athlete-bottom-nav button.is-active,
.athlete-bottom-nav button:active,
.athlete-bottom-nav button:focus-visible {
  background: rgba(255, 159, 10, 0.12);
  color: var(--bp-accent);
  outline: none;
}

.athlete-bottom-nav button.is-active svg {
  stroke: var(--bp-accent);
}

#athlete-section:not(.hidden) {
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
}

#athlete-section .button,
#athlete-section button,
#athlete-section .athlete-hub-tile,
#athlete-section .athlete-progress-tile,
#athlete-section .athlete-collapsible-toggle {
  scroll-margin-bottom: calc(96px + env(safe-area-inset-bottom));
}

.shell {
  color: var(--bp-text);
}

.footer {
  color: var(--bp-muted);
}

.client-item {
  background: var(--bp-panel);
  color: var(--bp-text);
  border-color: var(--bp-line);
}

input,
select,
textarea {
  color: var(--bp-text);
  background: var(--bp-panel);
  border-color: var(--bp-line);
}

/* athlete-ia-screens-v1 */
.athlete-screen {
  display: grid;
  gap: 16px;
}

.athlete-screen.hidden {
  display: none;
}

#athlete-section[data-athlete-home-mode="idle"] [data-athlete-home-idle="hide"],
#athlete-section[data-athlete-home-mode="idle"]
.athlete-current-workout-card > .section-heading,
#athlete-section[data-athlete-home-mode="idle"]
.athlete-current-workout-card > dl.detail-list,
#athlete-section[data-athlete-home-mode="idle"] #athlete-current-summary {
  display: none !important;
}

#athlete-screen-today > .section-heading,
#athlete-screen-today > .metrics {
  display: none;
}

/* athlete-today-start-inline-v1 */
.athlete-home-today-why {
  margin: 10px 0 0;
  color: var(--bp-muted, #94a3b8);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 650;
}

.athlete-home-today-why:empty {
  display: none;
}

#athlete-home-today-card .athlete-start-workout-form {
  margin: 12px 0 0;
  padding: 14px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#athlete-home-today-card #athlete-resume-workout {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
}

#athlete-home-today-card #athlete-resume-feedback {
  margin-top: 10px;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-collapsible-body,
#athlete-section[data-athlete-home-mode="active"] .athlete-collapsible-body.hidden {
  display: block !important;
}

#athlete-section[data-athlete-home-mode="idle"]
.athlete-current-workout-card
> :not(#athlete-post-workout-result-panel) {
  display: none;
}

#athlete-section[data-athlete-home-mode="idle"]
.athlete-current-workout-card:not(
  :has(#athlete-post-workout-result-panel:not(.hidden))
) {
  display: none;
}

#athlete-screen-profile .athlete-collapsible-body,
#athlete-screen-profile .measurement-form {
  min-width: 0;
}

#athlete-screen-profile {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

#athlete-screen-program .athlete-program-card,
#athlete-screen-program .athlete-program-week,
#athlete-screen-program .athlete-program-day {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* athlete-today-premium-v1 */
.athlete-today-premium-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.athlete-today-premium-coach {
  position: relative;
  width: 120px;
  min-height: 104px;
  margin-left: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 159, 10, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 159, 10, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(16, 28, 46, 0.95) 0%, rgba(8, 17, 31, 0.98) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  isolation: isolate;
}

.athlete-today-premium-coach-glow {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 88px;
  height: 52px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 159, 10, 0.14);
  filter: blur(14px);
}

.athlete-today-premium-coach-photo {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 88%;
  max-height: 92px;
  margin: 0;
  object-fit: contain;
  object-position: bottom center;
}

.athlete-today-premium-brand-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px rgba(255, 159, 10, 0.42),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

.athlete-today-premium-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.athlete-today-premium-copy .eyebrow {
  margin: 0 0 6px;
  color: rgba(255, 194, 71, 0.88);
}

.athlete-today-premium-copy h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 6.2vw, 1.95rem);
  line-height: 1.05;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.athlete-today-premium-focus {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.athlete-today-progress-strip {
  padding: 12px 14px;
}

.athlete-today-progress-strip .athlete-home-program-heading h4 {
  font-size: 0.98rem;
}

.athlete-today-progress-strip .athlete-home-program-meta {
  font-size: 0.82rem;
}

.athlete-today-progress-strip .athlete-home-program-progress {
  margin: 8px 0 6px;
  height: 6px;
}

.athlete-today-idle-coach {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(255, 184, 92, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 184, 92, 0.1), transparent 42%),
    rgba(12, 18, 30, 0.72);
}

.athlete-today-idle-coach-eyebrow {
  margin: 0 0 10px;
  color: rgba(255, 194, 71, 0.88);
}

.athlete-today-idle-coach-block {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 92, 0.14);
  background: rgba(255, 184, 92, 0.08);
  color: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.athlete-today-idle-coach-reason {
  margin: 4px 0 0;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.84rem;
  line-height: 1.4;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.athlete-home-today-heading .eyebrow {
  color: rgba(255, 194, 71, 0.82);
}

#athlete-section[data-athlete-home-mode="active"]
.athlete-today-premium-hero,
#athlete-section[data-athlete-home-mode="active"]
.athlete-today-idle-coach {
  display: none;
}

/* athlete-today-session-focus-v1 */
#athlete-section[data-athlete-home-mode="active"] #athlete-home-hub,
#athlete-section[data-athlete-home-mode="active"] #athlete-home-last-workout {
  display: none;
}

#athlete-section[data-athlete-home-mode="active"] [data-athlete-home-idle="hide"],
#athlete-section[data-athlete-home-mode="active"]
.athlete-current-workout-card > .section-heading,
#athlete-section[data-athlete-home-mode="active"]
.athlete-current-workout-card > dl.detail-list,
#athlete-section[data-athlete-home-mode="active"] #athlete-current-summary,
#athlete-section[data-athlete-home-mode="active"] #athlete-current-priority-status {
  display: none !important;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-current-workout-card {
  margin-top: 0;
  overflow: visible;
}

/* athlete-today-hide-next-action-v1 */
#athlete-section[data-athlete-home-mode="active"] .athlete-workout-next-action {
  display: none !important;
}

/* athlete-today-gym-chrome-v1 */
.shell:has(#athlete-section[data-athlete-home-mode="active"]) > .hero,
.shell:has(#athlete-section[data-athlete-home-mode="active"]) > .footer {
  display: none !important;
}

#athlete-section[data-athlete-home-mode="active"]
.athlete-warmup-panel .measurement-form-actions,
#athlete-section[data-athlete-home-mode="active"]
#athlete-rest-timer-panel .measurement-form-actions,
#athlete-section[data-athlete-home-mode="active"]
#athlete-strength-completion-panel .measurement-form-actions,
#athlete-section[data-athlete-home-mode="active"]
#athlete-core-panel .measurement-form-actions,
#athlete-section[data-athlete-home-mode="active"]
#athlete-cardio-panel .measurement-form-actions,
#athlete-section[data-athlete-home-mode="active"]
#athlete-finalize-panel .measurement-form-actions,
#athlete-section[data-athlete-home-mode="active"] .athlete-set-actions {
  grid-template-columns: minmax(0, 1fr);
}

/* athlete-today-set-primary-v1 */
#athlete-section[data-athlete-home-mode="active"] #athlete-set-form {
  display: flex;
  flex-direction: column;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-heading {
  order: 1;
  display: grid;
  gap: 8px;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-title {
  order: unset;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-exercise {
  order: unset;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-plan {
  order: unset;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-overview-panel {
  order: 4;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-exercise-warmup-panel,
#athlete-section[data-athlete-home-mode="active"] #athlete-set-coach-suggestion-panel {
  text-align: left;
}

.athlete-exercise-warmup-list,
.athlete-exercise-warmup-list li,
.athlete-set-coach-suggestion-panel p,
.athlete-set-coach-suggestion-panel small,
.athlete-set-coach-suggestion-panel strong {
  text-align: left;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-exercise-warmup-panel {
  order: 6;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-next-exercise-preview,
#athlete-section[data-athlete-home-mode="active"] #athlete-set-last-session-link {
  order: 7;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-coach-suggestion-panel {
  order: 8;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-repeat-previous {
  order: 9;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-input-grid {
  order: 10;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-drop-set-extra-set,
#athlete-section[data-athlete-home-mode="active"] #athlete-rest-pause-extra-set,
#athlete-section[data-athlete-home-mode="active"] #athlete-rest-pause-timer {
  order: 11;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-feedback {
  order: 12;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-actions {
  order: 13;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-replacement-panel,
#athlete-section[data-athlete-home-mode="active"] #athlete-set-skip-reason-panel,
#athlete-section[data-athlete-home-mode="active"] .athlete-set-note-field,
#athlete-section[data-athlete-home-mode="active"] #athlete-coach-center,
#athlete-section[data-athlete-home-mode="active"] #athlete-set-coach-feedback {
  order: 20;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-replacement-toggle {
  min-height: 44px;
  font-weight: 700;
  background: transparent;
  box-shadow: none;
}

/* athlete-today-gym-nav-v1 */
#athlete-section[data-athlete-home-mode="active"] {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-skip {
  min-height: 40px;
  font-weight: 700;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

/* athlete-today-set-keyboard-v1 */
#athlete-section[data-athlete-home-mode="active"] #athlete-set-form {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-actions {
  position: sticky;
  bottom: calc(68px + env(safe-area-inset-bottom));
  z-index: 8;
  margin-top: 8px;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(
    180deg,
    transparent,
    var(--bp-panel, #101c2e) 24%
  );
}

#athlete-section[data-athlete-home-mode="active"] .athlete-coach-card,
#athlete-section[data-athlete-home-mode="active"] .athlete-exercise-warmup-card,
#athlete-section[data-athlete-home-mode="active"] .athlete-set-replacement-panel,
#athlete-section[data-athlete-home-mode="active"] .athlete-set-note-panel {
  padding-inline: 14px;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-coach-card h4,
#athlete-section[data-athlete-home-mode="active"] .athlete-exercise-warmup-card h4,
#athlete-section[data-athlete-home-mode="active"] #athlete-set-title,
#athlete-section[data-athlete-home-mode="active"] #athlete-set-plan {
  margin-inline: 0;
}

/* athlete-today-set-gym-v1 */
/* athlete-today-set-heading-v1 */
#athlete-section[data-athlete-home-mode="active"] #athlete-set-title {
  font-size: clamp(1.35rem, 5.2vw, 1.85rem);
  font-weight: 950;
  line-height: 1.15;
  margin: 0;
  color: var(--bp-text, #f8fafc);
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-exercise {
  margin: 0;
  color: var(--bp-accent, #ffb85c);
  font-size: 1.08rem;
  font-weight: 800;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-set-plan {
  margin: 0;
  color: var(--bp-text, #f8fafc);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.4;
  background: rgba(255, 184, 92, 0.16);
  border: 1px solid rgba(255, 184, 92, 0.42);
  border-radius: 16px;
  padding: 12px 14px;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-input-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-input-grid input {
  min-height: 56px;
  font-size: 1.32rem;
  font-weight: 800;
  text-align: center;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-actions .button {
  min-height: 52px;
  font-weight: 800;
}

/* athlete-today-finalize-on-today-v1 */
#athlete-section[data-athlete-home-mode="active"] #athlete-warmup-panel .button,
#athlete-section[data-athlete-home-mode="active"] #athlete-rest-timer-panel .button,
#athlete-section[data-athlete-home-mode="active"] #athlete-strength-completion-panel .button,
#athlete-section[data-athlete-home-mode="active"] #athlete-core-panel .button,
#athlete-section[data-athlete-home-mode="active"] #athlete-cardio-panel .button,
#athlete-section[data-athlete-home-mode="active"] #athlete-finalize-panel .button {
  min-height: 52px;
  font-weight: 800;
}

/* athlete-today-stage-gym-v1 */
#athlete-section[data-athlete-home-mode="active"] #athlete-warmup-title,
#athlete-section[data-athlete-home-mode="active"] #athlete-strength-completion-title,
#athlete-section[data-athlete-home-mode="active"] #athlete-core-title,
#athlete-section[data-athlete-home-mode="active"] #athlete-cardio-title,
#athlete-section[data-athlete-home-mode="active"] #athlete-finalize-title {
  font-size: clamp(1.2rem, 4.4vw, 1.55rem);
  font-weight: 950;
  line-height: 1.2;
  margin: 0 0 8px;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-warmup-plan,
#athlete-section[data-athlete-home-mode="active"] #athlete-core-plan,
#athlete-section[data-athlete-home-mode="active"] #athlete-cardio-plan,
#athlete-section[data-athlete-home-mode="active"] #athlete-strength-completion-hint,
#athlete-section[data-athlete-home-mode="active"] #athlete-finalize-hint {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.45;
  font-weight: 650;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-overview-heading strong,
#athlete-section[data-athlete-home-mode="active"] .athlete-set-overview-row strong {
  color: var(--bp-text, #f8fafc);
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-overview-heading span,
#athlete-section[data-athlete-home-mode="active"] .athlete-set-overview-row span {
  color: var(--bp-muted, #94a3b8);
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-overview-row {
  background: rgba(12, 12, 18, 0.55);
  border-color: var(--bp-line, rgba(255, 255, 255, 0.12));
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-overview-row.is-current {
  background: rgba(255, 184, 92, 0.16);
  border-color: rgba(255, 184, 92, 0.42);
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-overview-row.is-current span {
  color: var(--bp-accent, #ffb85c);
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-overview-row.is-done {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.28);
}

#athlete-section[data-athlete-home-mode="active"] .athlete-set-overview-row.is-done span {
  color: #86efac;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-rest-timer-panel {
  text-align: center;
  padding: 22px 16px 18px;
}

/* athlete-today-rest-focus-v1 */
#athlete-section[data-athlete-home-mode="active"]:has(
  #athlete-rest-timer-panel:not(.hidden)
) #athlete-set-result-panel {
  display: none !important;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-rest-timer-panel:not(.hidden) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(68vh, 580px);
  padding: 32px 16px 28px;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-rest-timer-title {
  margin: 0 0 8px;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-rest-timer-clock,
#athlete-section[data-athlete-home-mode="active"] #athlete-rest-timer-value {
  display: block;
  margin: 12px 0 16px;
  color: var(--bp-accent, #ffb85c);
  font-size: clamp(3.8rem, 22vw, 6.4rem);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

/* athlete-today-finish-gym-v1 */
#athlete-section[data-athlete-home-mode="active"]:has(
  #athlete-strength-completion-panel:not(.hidden)
) #athlete-set-result-panel,
#athlete-section[data-athlete-home-mode="active"]:has(
  #athlete-core-panel:not(.hidden)
) #athlete-set-result-panel,
#athlete-section[data-athlete-home-mode="active"]:has(
  #athlete-cardio-panel:not(.hidden)
) #athlete-set-result-panel,
#athlete-section[data-athlete-home-mode="active"]:has(
  #athlete-finalize-panel:not(.hidden)
) #athlete-set-result-panel {
  display: none !important;
}

#athlete-section[data-athlete-home-mode="active"]
#athlete-strength-completion-panel:not(.hidden),
#athlete-section[data-athlete-home-mode="active"]
#athlete-core-panel:not(.hidden),
#athlete-section[data-athlete-home-mode="active"]
#athlete-cardio-panel:not(.hidden),
#athlete-section[data-athlete-home-mode="active"]
#athlete-finalize-panel:not(.hidden) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(68vh, 580px);
  padding: 32px 16px 28px;
  text-align: center;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-auxiliary-next-hint {
  display: none;
}

#athlete-section[data-athlete-home-mode="active"]
.athlete-strength-completion-summary,
#athlete-section[data-athlete-home-mode="active"]
.athlete-finalize-summary {
  gap: 12px;
  margin: 18px 0 22px;
}

#athlete-section[data-athlete-home-mode="active"]
.athlete-strength-completion-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#athlete-section[data-athlete-home-mode="active"]
.athlete-finalize-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#athlete-section[data-athlete-home-mode="active"]
.athlete-finalize-summary span:nth-child(-n+3),
#athlete-section[data-athlete-home-mode="active"]
.athlete-finalize-summary span:nth-child(n+4) {
  grid-column: auto;
  min-width: 0;
  text-align: center;
}

#athlete-section[data-athlete-home-mode="active"]
.athlete-strength-completion-summary strong,
#athlete-section[data-athlete-home-mode="active"]
.athlete-finalize-summary strong {
  color: var(--bp-accent, #ffb85c);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

#athlete-section[data-athlete-home-mode="active"]
.athlete-strength-completion-summary small,
#athlete-section[data-athlete-home-mode="active"]
.athlete-finalize-summary small {
  margin-top: 8px;
  color: var(--bp-muted, #94a3b8);
  font-size: 0.82rem;
  font-weight: 700;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-core-panel #athlete-core-skip,
#athlete-section[data-athlete-home-mode="active"] #athlete-cardio-panel #athlete-cardio-skip {
  min-height: 40px;
  font-weight: 700;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

/* athlete-today-warmup-gym-v1 */
#athlete-section[data-athlete-home-mode="active"]
#athlete-warmup-panel:not(.hidden) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(68vh, 580px);
  margin-top: 0;
  padding: 32px 16px 28px;
  text-align: center;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-warmup-plan {
  margin: 8px 0 22px;
  font-size: clamp(1.08rem, 4.2vw, 1.32rem);
  line-height: 1.5;
  font-weight: 750;
}

#athlete-section[data-athlete-home-mode="active"] #athlete-warmup-panel #athlete-warmup-skip {
  min-height: 40px;
  font-weight: 700;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}

#athlete-section[data-athlete-home-mode="active"] .athlete-card-collapse-actions,
#athlete-section[data-athlete-home-mode="active"] .athlete-card-collapse-toggle {
  display: none !important;
}

.athlete-home-last-workout {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--bp-muted, #94a3b8);
  font-size: 0.88rem;
  font-weight: 650;
}

#athlete-screen-profile .switch-account-button,
#athlete-screen-profile .account-action-button.switch-account-button {
  position: static;
  width: 100%;
  max-width: none;
  min-height: 46px;
  margin-top: 4px;
  border-radius: 16px;
}

/* athlete-profile-switch-v1 */
.athlete-profile-switch-slot:empty {
  display: none;
}

/* athlete-profile-section-cards-v1 */
#athlete-section .card > .section-heading.compact,
#athlete-section .card > .card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
}

#athlete-section .card > .section-heading.compact > div,
#athlete-section .card > .card-heading > div {
  min-width: 0;
}

#athlete-section .card > .section-heading.compact .eyebrow,
#athlete-section .card > .card-heading .eyebrow {
  margin: 0 0 6px;
}

#athlete-section .card > .section-heading.compact h3,
#athlete-section .card > .card-heading h3 {
  margin: 0;
  text-align: left;
  line-height: 1.25;
}

#athlete-section .card > .detail-note,
#athlete-section .card > .athlete-referral-actions,
#athlete-section .card > .athlete-channel-boost-actions,
#athlete-section .card > .athlete-payment-history-list {
  margin-left: 0;
  margin-right: 0;
}

#athlete-screen-my-path .athlete-progress-backbar {
  margin: 0 0 12px;
}

.athlete-profile-switch-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 12px;
}

.athlete-profile-switch-panel h3 {
  margin: 0;
  font-size: 18px;
}

.athlete-profile-switch-list {
  display: grid;
  gap: 10px;
}

.athlete-profile-switch-button.is-current {
  border-color: var(--bp-accent, #4f8cff);
  background: color-mix(in srgb, var(--bp-accent, #4f8cff) 12%, transparent);
  cursor: default;
}

.athlete-profile-switch-button.is-current strong {
  color: var(--bp-text, inherit);
}

/* bp-progress-dark-palette-v1 */
#athlete-screen-progress .measurement-form,
#athlete-screen-progress .athlete-measurement-history,
#athlete-screen-progress .athlete-progress-photo-panel,
#athlete-screen-progress .athlete-workout-history-panel,
#athlete-screen-today .athlete-start-workout-form,
#athlete-screen-today .measurement-form {
  background: var(--bp-panel);
  border: 1px solid var(--bp-line);
  color: var(--bp-text);
  box-shadow: none;
}

#athlete-screen-progress .measurement-form h5,
#athlete-screen-progress .athlete-measurement-history h5,
#athlete-screen-progress .athlete-workout-history-panel h5,
#athlete-screen-today .athlete-start-workout-form h5 {
  color: var(--bp-text);
}

#athlete-screen-progress .measurement-form input,
#athlete-screen-progress .measurement-form select,
#athlete-screen-today .athlete-start-workout-form select {
  background: var(--bp-bg);
  color: var(--bp-text);
  border-color: var(--bp-line);
}

#athlete-screen-progress .athlete-measurement-history-card,
#athlete-screen-progress .athlete-workout-history-card,
#athlete-screen-progress .athlete-progress-photo-card {
  background: var(--bp-surface);
  border: 1px solid var(--bp-line);
  color: var(--bp-text);
}

/* athlete-program-phase3-v1 */
/* athlete-program-real-view-v1 */
.athlete-program-week-tabs,
.athlete-program-day-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.athlete-program-week-tabs::-webkit-scrollbar,
.athlete-program-day-tabs::-webkit-scrollbar {
  display: none;
}

.athlete-program-week-tab,
.athlete-program-day-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--bp-line);
  border-radius: 999px;
  background: rgba(16, 28, 46, 0.88);
  color: var(--bp-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  cursor: pointer;
}

.athlete-program-week-tab.is-active,
.athlete-program-day-tab.is-active {
  border-color: rgba(255, 159, 10, 0.45);
  background: rgba(255, 159, 10, 0.14);
  color: var(--bp-accent-gold);
}

.athlete-program-day-board {
  display: grid;
  gap: 10px;
}

.athlete-program-exercise-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 159, 10, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(27, 43, 67, 0.96),
      rgba(12, 20, 34, 0.98)
    );
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.athlete-program-exercise-card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.athlete-program-exercise-card-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.athlete-program-exercise-card strong {
  color: #fff;
  font-size: 0.96rem;
  line-height: 1.25;
}

.athlete-program-exercise-card small {
  color: var(--bp-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.athlete-program-exercise-chevron {
  color: var(--bp-accent-gold);
  font-size: 1.35rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.athlete-program-exercise-card.is-clickable {
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease;
}

.athlete-program-exercise-card.is-clickable:active,
.athlete-program-exercise-card.is-clickable.is-pressed {
  transform: scale(0.985);
  border-color: rgba(255, 159, 10, 0.42);
}

.athlete-access-current {
  margin: 0 0 8px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.athlete-access-help-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--bp-muted);
  font-size: 0.82rem;
  text-decoration: underline;
}

.athlete-subscription-summary-cost-label {
  margin: 8px 0 0;
  color: var(--bp-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.telegram-account-link-card--connected {
  border-color: rgba(76, 217, 100, 0.28);
}

.telegram-account-link-connected-meta {
  margin: 0;
  color: var(--bp-muted);
  font-size: 0.86rem;
}

.athlete-program-exercise-detail {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  align-items: end;
}

.athlete-program-exercise-detail.hidden {
  display: none;
}

.athlete-program-exercise-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.72);
}

.athlete-program-exercise-detail-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px 24px 0 0;
  background:
    linear-gradient(
      180deg,
      rgba(27, 43, 67, 0.98),
      rgba(12, 20, 34, 1)
    );
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
}

.athlete-program-exercise-detail-header {
  display: grid;
  gap: 8px;
}

.athlete-program-exercise-detail-header h4 {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.athlete-program-exercise-detail-media {
  display: grid;
  gap: 8px;
}

.athlete-program-exercise-detail-video,
.athlete-program-exercise-detail-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.athlete-program-exercise-detail-body {
  display: grid;
  gap: 12px;
}

.athlete-program-exercise-detail-section h5 {
  margin: 0 0 6px;
  color: var(--bp-accent-gold);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athlete-program-exercise-detail-list {
  margin: 0;
  padding-left: 18px;
  color: #fff;
}

.athlete-program-exercise-detail-list li + li {
  margin-top: 4px;
}

.athlete-program-exercise-detail-fallback,
.athlete-program-exercise-detail-loading {
  margin: 0;
  color: var(--bp-muted);
  font-size: 0.88rem;
}

.athlete-program-exercise-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.athlete-program-exercise-metric {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.athlete-program-exercise-metric span {
  color: var(--bp-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athlete-program-exercise-metric strong {
  color: var(--bp-accent-gold);
  font-size: 0.95rem;
  line-height: 1.2;
}

.athlete-exercise-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 159, 10, 0.22);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 159, 10, 0.18), transparent 55%),
    rgba(8, 17, 31, 0.95);
  flex: 0 0 auto;
}

.athlete-exercise-thumb--md {
  width: 56px;
  height: 56px;
}

.athlete-exercise-thumb--lg {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
}

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

.athlete-exercise-thumb.is-fallback {
  display: grid;
  place-items: center;
}

.athlete-exercise-thumb-fallback {
  color: var(--bp-accent-gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.athlete-set-exercise-media {
  margin: 0 0 14px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 159, 10, 0.22);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 159, 10, 0.12), transparent 58%),
    rgba(8, 17, 31, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.athlete-set-exercise-media-fallback {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: 12px;
}

.athlete-set-exercise-media-fallback .athlete-exercise-thumb {
  width: min(100%, 280px);
  min-height: 160px;
}

.athlete-set-exercise-media-image,
.athlete-set-exercise-media-video {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  background: #08111f;
}

.athlete-progress-chart-line {
  display: grid;
  gap: 10px;
}

.athlete-progress-chart-line-svg {
  width: 100%;
  height: auto;
  display: block;
}

.athlete-progress-chart-line-area {
  fill: url(#athlete-progress-line-fill);
}

.athlete-progress-chart-line-stroke {
  fill: none;
  stroke: #ff9f0a;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(255, 159, 10, 0.45));
}

.athlete-progress-chart-line-dot {
  fill: #ffc247;
  stroke: #08111f;
  stroke-width: 1.5;
}

.athlete-progress-chart-line-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 6px;
}

.athlete-progress-chart-line-label {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.athlete-progress-chart-line-label span {
  color: var(--bp-muted);
  font-size: 0.72rem;
  line-height: 1.2;
}

.athlete-progress-chart-line-label strong {
  color: var(--bp-accent-gold);
  font-size: 0.82rem;
  line-height: 1.2;
}

.athlete-program-week-tab.is-current,
.athlete-program-day-tab.is-current {
  box-shadow: inset 0 0 0 1px rgba(255, 159, 10, 0.35);
}

.athlete-program-day-notes {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
}

.athlete-program-day-note {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 159, 10, 0.14);
  border-radius: 14px;
  background: rgba(255, 159, 10, 0.06);
}

.athlete-program-day-note-label {
  color: var(--bp-accent-gold, #ffc247);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.athlete-program-day-note-text {
  margin: 0;
  color: var(--bp-text-secondary, #94a3b8);
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.athlete-program-day-notes p {
  margin: 0;
  color: var(--bp-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  white-space: normal;
}

.athlete-program-open-today {
  width: 100%;
  margin-top: 14px;
}

.athlete-program-exercise-card small {
  color: var(--bp-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

/* athlete-welcome-gate-v1 */
.athlete-welcome-gate {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 18px 26px;
  overflow: visible;
}

.athlete-welcome-hero {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.athlete-welcome-brand {
  position: relative;
  width: 100%;
  min-height: 196px;
  border-radius: 18px;
  border: 1px solid var(--bp-line);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 159, 10, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(16, 28, 46, 0.95) 0%, rgba(8, 17, 31, 0.98) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  color: var(--bp-text);
}

.athlete-welcome-brand-glow {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 160px;
  height: 88px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(255, 159, 10, 0.12);
  filter: blur(18px);
}

.athlete-welcome-coach {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 78%;
  height: 168px;
  margin: 0;
  object-fit: contain;
  object-position: bottom center;
}

.athlete-welcome-brand-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px rgba(255, 159, 10, 0.42),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

.athlete-welcome-copy {
  margin: 0;
  color: var(--bp-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.athlete-welcome-points {
  width: 100%;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.athlete-welcome-points li {
  padding: 10px 12px;
  border: 1px solid var(--bp-line);
  border-radius: 14px;
  background: rgba(16, 28, 46, 0.72);
  color: var(--bp-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.athlete-welcome-points strong {
  color: var(--bp-text);
}

.athlete-welcome-status {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.athlete-login-slot {
  display: grid;
  gap: 12px;
}

.athlete-welcome-gate.is-guest-login-open .athlete-welcome-hero {
  display: none;
}

.athlete-welcome-gate.is-guest-login-open .athlete-login-slot {
  display: grid;
}

.athlete-welcome-gate.is-welcome-loading .athlete-welcome-hero,
.athlete-welcome-gate.is-welcome-loading .athlete-login-slot {
  display: none;
}

/* pwa-channel-content-admin-v1 */
button.athlete-channel-content-entry {
  width: 100%;
  display: grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  appearance: none;
}

button.athlete-channel-content-entry span {
  color: var(--bp-muted);
  font-size: 0.92rem;
  font-weight: 400;
}

#athlete-screen-channel-content {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

#athlete-screen-channel-content .channel-content-admin {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 860px) {
  #athlete-screen-channel-content .cca-workspace {
    grid-template-columns: 1fr;
  }
}

/* workout-flow-ux-v1 */
:root {
  --bp-text-primary: var(--tg-theme-text-color, #f5f7fb);
  --bp-text-secondary: rgba(245, 247, 251, 0.82);
  --bp-text-muted: rgba(245, 247, 251, 0.68);
  --bp-text-disabled: rgba(245, 247, 251, 0.48);
  --bp-text-error: #ff9b9b;
}

.workout-hero-heading,
#athlete-strength-completion-title,
#athlete-cardio-title,
#athlete-finalize-title {
  text-align: center;
}

.workout-info-card,
.athlete-set-overview-panel,
.athlete-set-coach-suggestion-panel,
#athlete-start-hint,
.detail-note.athlete-workout-copy {
  text-align: left;
}

.detail-note,
.athlete-set-plan,
#athlete-strength-completion-hint,
#athlete-cardio-hint,
#athlete-cardio-plan,
.athlete-home-today-why {
  color: var(--bp-text-secondary);
}

.detail-note.is-muted,
.athlete-set-overview-row span,
.athlete-strength-completion-summary small,
.athlete-finalize-summary small {
  color: var(--bp-text-muted);
}

.athlete-strength-completion-summary,
.athlete-finalize-summary {
  align-items: stretch;
}

.athlete-strength-completion-summary span,
.athlete-finalize-summary span {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 84px;
  padding: 12px 14px;
}

.athlete-strength-completion-summary strong,
.athlete-finalize-summary strong {
  min-height: 1.25rem;
  line-height: 1.2;
  margin-bottom: 6px;
}

.athlete-strength-completion-summary small,
.athlete-finalize-summary small {
  margin-top: auto;
  line-height: 1.3;
}

.athlete-start-actions,
.athlete-set-actions,
.athlete-rest-timer-actions,
#athlete-cardio-panel .measurement-form-actions,
#athlete-strength-completion-panel .measurement-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}

.athlete-start-actions .button,
.athlete-set-actions .button,
.athlete-rest-timer-actions .button {
  flex: 1 1 140px;
  justify-content: center;
  text-align: center;
}

#athlete-cardio-panel .button.primary,
#athlete-strength-completion-action {
  order: -1;
}

.athlete-rest-timer-collapsed {
  position: sticky;
  top: calc(8px + env(safe-area-inset-top));
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 184, 92, 0.28);
  background: rgba(18, 22, 30, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.athlete-rest-timer-collapsed strong {
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
}

.athlete-rest-timer-collapsed .button {
  min-height: 36px;
  padding-inline: 12px;
}

.athlete-deload-notice {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  background: rgba(86, 156, 214, 0.14);
  border: 1px solid rgba(86, 156, 214, 0.35);
  color: var(--bp-text-secondary);
  font-size: 0.92rem;
  line-height: 1.4;
}

.athlete-deload-notice strong {
  color: #f5f7fb;
  font-weight: 600;
}

@media (max-width: 520px) {
  .athlete-finalize-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .athlete-strength-completion-summary span,
  .athlete-finalize-summary span {
    min-height: 76px;
  }
}

#athlete-section[data-athlete-home-mode="active"] {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}


/* athlete-mobile-product-acceptance-v1 */
html,
body {
  overflow-x: clip;
}

.shell,
#athlete-section,
.athlete-screen {
  max-width: 100%;
  min-width: 0;
}

.progress-heading span,
.detail-note,
.measurement-label,
.progress-metric span {
  color: var(--bp-text-muted);
}

.athlete-progress-hub-links .button.secondary {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.86rem;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
}

.athlete-strength-detail-panel,
.athlete-strength-detail-chart,
.athlete-strength-trend-bar,
.athlete-strength-trend-bar-track,
.athlete-strength-exercise-picker,
.athlete-workout-analytics-panel {
  min-width: 0;
  max-width: 100%;
}

.athlete-strength-period-label select,
.athlete-strength-exercise-option,
.athlete-progress-hub-links .button.secondary {
  min-height: 44px;
}

.athlete-strength-exercise-option {
  width: 100%;
  text-align: left;
}

.athlete-achievements-earned:empty,
.athlete-achievements-badges:empty {
  display: none;
}

.athlete-set-overview-panel {
  border-color: rgba(255, 184, 92, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.athlete-set-overview-heading strong,
.athlete-set-overview-row strong {
  color: var(--bp-text);
}

.athlete-set-overview-heading span {
  color: var(--bp-accent-gold);
}

.athlete-set-overview-row {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.athlete-set-coach-suggestion-panel {
  border-color: rgba(255, 159, 10, 0.28);
  background: rgba(255, 159, 10, 0.08);
}

.athlete-set-coach-suggestion-panel strong {
  color: var(--bp-accent-gold);
}

.athlete-set-coach-suggestion-panel p {
  color: var(--bp-text);
}

.athlete-set-coach-suggestion-panel small {
  color: var(--bp-text-secondary);
}

.athlete-set-result-panel {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.athlete-set-result-panel strong {
  color: #86efac;
}

.athlete-set-result-panel p {
  color: var(--bp-text);
}

.athlete-set-result-panel small {
  color: var(--bp-text-secondary);
}

@media (max-width: 520px) {
  .athlete-progress-photo-comparison-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .athlete-progress-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .athlete-progress-hub-grid,
  .athlete-workout-analytics-grid,
  .athlete-achievements-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

.athlete-subscription-plans {
  display: grid;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.athlete-subscription-plans-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bp-text-primary);
}

.athlete-subscription-plan-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.athlete-subscription-plan {
  position: relative;
  display: grid;
  gap: 0.25rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--bp-border);
  background: var(--bp-surface-elevated);
  color: var(--bp-text);
  cursor: pointer;
}

.athlete-subscription-plan-featured {
  padding: 1rem 1rem 1.05rem;
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(
    180deg,
    rgba(245, 158, 11, 0.14),
    rgba(15, 23, 42, 0.98)
  );
}

.athlete-subscription-plan-compact {
  min-height: 100%;
  padding: 0.8rem 0.75rem;
}

.athlete-subscription-plan.is-selected {
  border-color: var(--bp-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bp-accent) 35%, transparent);
}

.athlete-subscription-plan-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f172a;
  background: #fbbf24;
}

.athlete-subscription-plan-check {
  position: absolute;
  top: 0.72rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f172a;
  background: #fbbf24;
}

.athlete-subscription-plan-featured .athlete-subscription-plan-check {
  top: auto;
  bottom: 0.85rem;
  right: 0.85rem;
  left: auto;
}

.athlete-subscription-plan-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.athlete-subscription-plan strong {
  font-size: 1rem;
  line-height: 1.25;
  padding-right: 4.5rem;
}

.athlete-subscription-plan-compact strong {
  font-size: 0.92rem;
  padding-right: 0;
}

.athlete-subscription-plan-compact .athlete-subscription-plan-check {
  top: 0.55rem;
  right: 0.55rem;
  left: auto;
}

.athlete-subscription-plan-summary {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--bp-text-secondary);
}

.athlete-subscription-plan-price {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fbbf24;
}

.athlete-subscription-plan-featured .athlete-subscription-plan-price {
  font-size: clamp(1.45rem, 6vw, 1.85rem);
}

.athlete-subscription-plan small {
  color: var(--bp-text-secondary);
  font-size: 0.78rem;
}

.athlete-subscription-duration-section {
  display: grid;
  gap: 0.55rem;
}

.athlete-subscription-duration-title {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bp-text-primary);
}

.athlete-subscription-duration-row {
  display: grid;
  gap: 0.55rem;
}

.athlete-subscription-duration-card {
  position: relative;
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--bp-border);
  background: var(--bp-surface-elevated);
  color: var(--bp-text);
  text-align: left;
  cursor: pointer;
}

.athlete-subscription-duration-card.is-selected {
  border-color: var(--bp-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bp-accent) 35%, transparent);
}

.athlete-subscription-duration-card.is-featured-duration {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(
    180deg,
    rgba(245, 158, 11, 0.1),
    rgba(15, 23, 42, 0.98)
  );
}

.athlete-subscription-duration-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f172a;
  background: #fbbf24;
}

.athlete-subscription-duration-card strong {
  font-size: 0.92rem;
  line-height: 1.25;
  padding-right: 4.2rem;
}

.athlete-subscription-duration-price {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fbbf24;
}

.athlete-subscription-duration-full {
  font-size: 0.78rem;
  color: var(--bp-text-secondary);
}

.athlete-subscription-duration-saving,
.athlete-subscription-duration-effective {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--bp-text-secondary);
}

.athlete-subscription-duration-saving {
  color: #86efac;
}

.athlete-subscription-actions {
  display: grid;
  gap: 0.65rem;
}

.athlete-payment-methods {
  display: grid;
  gap: 0.75rem;
}

.athlete-payment-methods-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bp-text-primary);
}

.athlete-payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.athlete-payment-method-tile {
  display: grid;
  gap: 0.2rem;
  min-height: 4.6rem;
  padding: 0.65rem 0.45rem;
  border: 1px solid var(--bp-border-subtle);
  border-radius: 0.85rem;
  background: var(--bp-surface-muted);
  color: var(--bp-text-primary);
  text-align: center;
  cursor: pointer;
}

.athlete-payment-method-tile:disabled,
.athlete-payment-method-tile.is-unavailable {
  opacity: 0.55;
  cursor: not-allowed;
}

.athlete-payment-method-title {
  font-size: 0.82rem;
  line-height: 1.2;
}

.athlete-payment-method-subtitle {
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--bp-text-secondary);
}

.athlete-payment-method-sber {
  border-color: rgba(245, 158, 11, 0.55);
  background: linear-gradient(
    180deg,
    rgba(245, 158, 11, 0.16),
    rgba(245, 158, 11, 0.05)
  );
}

.athlete-sbp-checkout {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1rem 1.1rem;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 1rem;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.98),
    rgba(2, 6, 23, 0.98)
  );
}

.athlete-sbp-checkout-head {
  display: grid;
  gap: 0.2rem;
}

.athlete-sbp-checkout-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bp-text-primary);
}

.athlete-sbp-amount {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fbbf24;
}

.athlete-sbp-hint {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--bp-text-secondary);
}

.athlete-sbp-fields {
  display: grid;
  gap: 0.65rem;
}

.athlete-sbp-field {
  display: grid;
  gap: 0.2rem;
}

.athlete-sbp-field-phone strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.athlete-sbp-label {
  font-size: 0.72rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bp-text-secondary);
}

.athlete-sbp-actions {
  display: grid;
  gap: 0.55rem;
}

.athlete-sbp-copy-button {
  width: 100%;
}

.athlete-sbp-status {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--bp-text-secondary);
}

.athlete-sbp-alt {
  border-top: 1px solid var(--bp-border-subtle);
  padding-top: 0.55rem;
}

.athlete-sbp-alt summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bp-text-secondary);
}

.athlete-sbp-alt-body {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.athlete-sbp-alt-row {
  display: grid;
  gap: 0.15rem;
}

.athlete-sbp-alt-row strong {
  font-size: 0.92rem;
  word-break: break-word;
}

.athlete-payment-method-telegram {
  border-color: rgba(42, 171, 238, 0.45);
}

.athlete-payment-method-card {
  border-color: rgba(245, 158, 11, 0.45);
}

.athlete-payment-method-ozon,
.athlete-payment-method-alfa,
.athlete-payment-method-tinkoff {
  border-style: dashed;
}

.athlete-checkout-legal-gate {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--bp-border-subtle);
  border-radius: 0.85rem;
  background: var(--bp-surface-muted);
}

.athlete-checkout-legal-summary {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--bp-text-primary);
}

.athlete-checkout-legal-links {
  margin-top: 0.15rem;
}

.athlete-checkout-legal-accept {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.athlete-checkout-legal-accept input {
  margin-top: 0.2rem;
}

.athlete-referral-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.athlete-referral-stats dt {
  color: var(--bp-text-secondary);
  font-size: 0.82rem;
}

.athlete-referral-stats dd {
  margin: 0.15rem 0 0;
  font-weight: 600;
}

.athlete-referral-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.athlete-referral-link {
  word-break: break-all;
}

.athlete-payment-history-list {
  display: grid;
  gap: 0.75rem;
}

.athlete-payment-history-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--bp-border);
}

.athlete-payment-history-item:last-child {
  border-bottom: 0;
}

.athlete-payment-history-meta {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  text-align: right;
}

.athlete-payment-return-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bp-accent) 10%, var(--bp-surface-elevated));
}

/* athlete-mobile-text-layout-v155 */
#athlete-section .card {
  padding: 18px 16px;
}

#athlete-section .card > .section-heading.compact:has(.athlete-card-collapse-actions),
#athlete-section .card > .card-heading:has(.athlete-card-collapse-actions) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title actions"
    "badge actions";
  align-items: start;
  gap: 8px 10px;
}

#athlete-section .card > .section-heading.compact:has(.athlete-card-collapse-actions) > div:first-child,
#athlete-section .card > .card-heading:has(.athlete-card-collapse-actions) > div:first-child {
  grid-area: title;
}

#athlete-section .card > .section-heading.compact:has(.athlete-card-collapse-actions) > .badge,
#athlete-section .card > .card-heading:has(.athlete-card-collapse-actions) > .badge {
  grid-area: badge;
  justify-self: start;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
  text-align: left;
}

#athlete-section .card > .section-heading.compact:has(.athlete-card-collapse-actions) > .athlete-card-collapse-actions,
#athlete-section .card > .card-heading:has(.athlete-card-collapse-actions) > .athlete-card-collapse-actions {
  grid-area: actions;
  margin-left: 0;
  align-self: start;
}

.athlete-update-card .section-heading.compact {
  margin: 0 0 12px;
  padding: 0;
}

.athlete-update-card .detail-note,
.athlete-update-notes li {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.athlete-update-notes {
  padding-left: 1.1rem;
  padding-right: 0;
}

.athlete-program-day,
.athlete-program-weeks,
.athlete-collapsible-body,
.athlete-program-exercise-card-body {
  min-width: 0;
}

.athlete-program-exercise-card strong,
.athlete-program-day h5,
.athlete-program-card .detail-note,
.athlete-welcome-copy,
.athlete-welcome-points li,
.athlete-welcome-status p,
.profile-grid dt,
.profile-grid dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.athlete-program-day {
  overflow-wrap: anywhere;
}

.status-card.athlete-welcome-gate .athlete-welcome-status p {
  margin: 0;
  line-height: 1.45;
}

/* athlete-subscription-pricing-ui-v220 */
.athlete-subscription-plans {
  gap: 0.85rem;
  margin: 0.75rem 0 0.35rem;
}

.athlete-subscription-picker {
  display: grid;
  gap: 1rem;
}

.athlete-subscription-step {
  display: grid;
  gap: 0.65rem;
}

.athlete-subscription-step-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bp-text-secondary);
}

.athlete-subscription-product-grid {
  display: grid;
  gap: 0.65rem;
}

.athlete-subscription-product-card {
  position: relative;
  display: grid;
  gap: 0.28rem;
  width: 100%;
  text-align: left;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--bp-border);
  background: var(--bp-surface-elevated);
  color: var(--bp-text);
  cursor: pointer;
}

.athlete-subscription-product-card.is-selected {
  border-color: var(--bp-accent);
  background: color-mix(in srgb, var(--bp-accent) 8%, var(--bp-surface-elevated));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bp-accent) 35%, transparent);
}

.athlete-subscription-product-card strong {
  font-size: 0.98rem;
  line-height: 1.25;
  padding-right: 4.5rem;
}

.athlete-subscription-product-hint {
  font-size: 0.8rem;
  color: var(--bp-text-secondary);
}

.athlete-subscription-wizard-progress {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--bp-text-secondary);
  letter-spacing: 0.04em;
}

.athlete-subscription-wizard-back {
  margin-bottom: 0.75rem;
}

.athlete-subscription-product-description {
  font-size: 0.84rem;
  color: var(--bp-text-secondary);
  line-height: 1.35;
}

.athlete-subscription-product-action {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--bp-accent);
  font-weight: 600;
}

.athlete-subscription-duration-period {
  font-size: 0.92rem;
  line-height: 1.25;
  padding-right: 4.2rem;
}

.athlete-subscription-duration-price {
  margin: 0.1rem 0 0;
  font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fbbf24;
}

.athlete-subscription-duration-monthly {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--bp-text-secondary);
}

.athlete-subscription-summary {
  display: grid;
  gap: 0.65rem;
  margin: 0.35rem 0 0.85rem;
}

.athlete-subscription-summary.is-sticky {
  position: sticky;
  bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 8;
}

.athlete-subscription-summary-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 14px;
  background: rgba(8, 17, 31, 0.92);
  backdrop-filter: blur(12px);
}

.athlete-subscription-summary-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bp-text-secondary);
}

.athlete-subscription-summary-product {
  font-size: 1rem;
  line-height: 1.25;
}

.athlete-subscription-summary-duration {
  font-size: 0.86rem;
  color: var(--bp-text-secondary);
}

.athlete-subscription-summary-price {
  margin: 0.2rem 0 0;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fbbf24;
}

.athlete-subscription-summary-meta {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--bp-text-secondary);
}

.athlete-subscription-payment-soon {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--bp-text-secondary);
}

.athlete-subscription-continue {
  width: 100%;
  min-height: 3rem;
}

.athlete-subscription-checkout-panel {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--bp-border);
}

.athlete-subscription-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.athlete-subscription-checkout-step {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bp-text-secondary);
}

.athlete-checkout-legal-details {
  border: 1px solid var(--bp-border);
  border-radius: 12px;
  background: var(--bp-surface-muted);
}

.athlete-checkout-legal-details summary {
  padding: 0.7rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.athlete-checkout-legal-details .athlete-checkout-legal-summary {
  margin: 0;
  padding: 0 0.85rem 0.85rem;
  max-height: 9rem;
  overflow: auto;
  font-size: 0.76rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

@media (min-width: 640px) {
  .athlete-subscription-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* athlete-nutrition-experience-v1 */
.nutrition-experience-root {
  display: grid;
  gap: 14px;
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
}

.nutrition-experience-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nutrition-experience-tabs button {
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.12));
  background: transparent;
  border-radius: 999px;
  padding: 10px 12px;
  color: inherit;
}

.nutrition-experience-tabs button.is-active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.nutrition-experience-header-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.nutrition-experience-macros {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
}

.nutrition-experience-macros div {
  display: grid;
  gap: 4px;
}

.nutrition-experience-macros dt {
  font-size: 12px;
  opacity: 0.72;
}

.nutrition-experience-macros dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.nutrition-meal-list {
  display: grid;
  gap: 12px;
}

.nutrition-meal-card-main {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
}

.nutrition-meal-card.is-completed {
  opacity: 0.82;
}

.nutrition-meal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nutrition-week-chips {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.nutrition-week-chip {
  border-radius: 999px;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: inherit;
  padding: 8px 0;
}

.nutrition-week-chip.is-active {
  background: rgba(255, 255, 255, 0.1);
}

.nutrition-shopping-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nutrition-shopping-category-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0 0 8px;
}

.nutrition-shopping-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nutrition-shopping-items li.is-purchased {
  opacity: 0.55;
  text-decoration: line-through;
}

.nutrition-preview-meals {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.nutrition-preview-meals li {
  display: grid;
  gap: 4px;
}

.athlete-home-nutrition-card {
  display: grid;
  gap: 10px;
}

.athlete-home-nutrition-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.nutrition-meal-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  padding: 16px;
  padding-bottom: calc(128px + env(safe-area-inset-bottom, 0px));
}

.nutrition-meal-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  padding: 0;
}

.nutrition-meal-detail-overlay .nutrition-meal-detail {
  position: relative;
  z-index: 1;
}

.nutrition-action-error {
  display: grid;
  gap: 10px;
}

.nutrition-day-targets,
.nutrition-day-planned,
.nutrition-day-deviation {
  margin-top: 12px;
}

.nutrition-day-deviation .detail-note {
  margin: 6px 0 0;
}

.nutrition-meal-portion-badge,
.nutrition-meal-replaced-badge {
  display: inline-block;
  margin-top: 6px;
  margin-right: 8px;
  font-size: 12px;
  opacity: 0.82;
}

.nutrition-meal-card.is-replaced {
  border-color: rgba(255, 255, 255, 0.18);
}

.nutrition-meal-detail-items {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.nutrition-meal-detail-item-macros {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.78;
}

.nutrition-week-chip.is-disabled {
  opacity: 0.45;
}

.nutrition-shopping-error {
  margin-bottom: 8px;
}

.nutrition-meal-detail {
  width: min(100%, 520px);
  max-height: min(80vh, 720px);
  overflow: auto;
}

.nutrition-meal-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* athlete-program-features-v1 */
.program-features-root {
  display: grid;
  gap: 12px;
  padding-bottom: calc(128px + env(safe-area-inset-bottom));
}

.program-features-header h3 {
  margin: 0.2rem 0 0.4rem;
}

.program-features-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.program-features-tabs button {
  border: 1px solid var(--bp-line, #243247);
  background: var(--bp-surface, #101c2e);
  color: var(--bp-text, #f8fafc);
  border-radius: 12px;
  padding: 10px 8px;
  font: inherit;
}

.program-features-tabs button.is-active {
  border-color: var(--bp-accent, #60a5fa);
  color: var(--bp-accent, #60a5fa);
  background: rgba(96, 165, 250, 0.12);
}

.program-features-exercise-list,
.program-features-gym-list {
  display: grid;
  gap: 10px;
}

.program-features-exercise-card,
.program-features-gym-card {
  text-align: left;
}

.program-features-exercise-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--bp-line, #243247);
  border-radius: 14px;
  padding: 14px;
  background: var(--bp-panel, #17263b);
  color: var(--bp-text, #f8fafc);
}

.program-features-exercise-card strong {
  display: block;
  color: var(--bp-text, #f8fafc);
}

.program-features-exercise-card small {
  display: block;
  color: var(--bp-muted, #94a3b8);
  margin-top: 4px;
  font-size: 0.78rem;
}

.program-features-gym-card.is-current {
  border-color: var(--accent, #2563eb);
}

.program-features-gym-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.program-features-gym-actions,
.program-features-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.program-features-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}

.program-features-modal.hidden {
  display: none;
}

.program-features-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.program-features-modal-card {
  position: relative;
  width: min(100%, 520px);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: var(--bp-panel, #17263b);
  color: var(--bp-text, #f8fafc);
  border: 1px solid var(--bp-line, #243247);
  border-radius: 18px 18px 12px 12px;
  padding: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.program-features-modal-card select,
.program-features-modal-card input,
.program-features-modal-card textarea {
  color: var(--bp-text, #f8fafc);
  background: var(--bp-surface, #101c2e);
  border: 1px solid var(--bp-line, #243247);
}

.program-features-modal-card .button.secondary {
  color: var(--bp-text, #f8fafc);
  background: rgba(148, 163, 184, 0.12);
}

.program-features-modal-card .button.tertiary {
  color: var(--bp-muted, #cbd5e1);
}

.program-features-modal-card--form label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.program-features-scope-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.program-features-scope-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--bp-line, #243247);
  border-radius: 12px;
  background: var(--bp-surface, #101c2e);
  color: var(--bp-text, #f8fafc);
}

.program-features-scope-option small {
  display: block;
  color: var(--bp-muted, #94a3b8);
}

.program-features-media video,
.program-features-media img {
  width: 100%;
  border-radius: 12px;
  margin: 12px 0;
}

.program-features-empty,
.program-features-trial-note {
  margin: 0;
}

.program-features-equipment-grid {
  display: grid;
  gap: 8px;
  max-height: min(52vh, 420px);
  overflow: auto;
  margin-top: 12px;
}

.program-features-scope-option.is-disabled {
  opacity: 0.55;
}

@media (max-width: 360px) {
  .program-features-tabs {
    grid-template-columns: 1fr;
  }

  .program-features-tabs button {
    font-size: 0.82rem;
    padding: 8px 6px;
  }
}

.program-features-equipment-option,
.program-features-field {
  display: grid;
  gap: 6px;
}

.program-features-equipment-option {
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: 8px 10px;
  border: 1px solid var(--bp-line, #243247);
  border-radius: 10px;
  background: var(--bp-surface, #101c2e);
  color: var(--bp-text, #f8fafc);
}

.program-features-remember {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

/* athlete-nutrition-preferences-v1 */
.nutrition-preferences-root,
.nutrition-preferences-panel {
  display: grid;
  gap: 14px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

@media (max-width: 500px) {
  .nutrition-pref-actions,
  .nutrition-empty-actions {
    scroll-margin-bottom: calc(128px + env(safe-area-inset-bottom));
  }
}

.nutrition-pref-header h3 {
  margin: 0;
}

.nutrition-pref-progress-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.nutrition-pref-progress-bar span {
  display: block;
  height: 100%;
  background: rgba(245, 158, 11, 0.85);
}

.nutrition-pref-step,
.nutrition-preferences-loading,
.nutrition-preferences-success {
  display: grid;
  gap: 12px;
}

.nutrition-pref-field,
.nutrition-pref-tag-field,
.nutrition-pref-toggle {
  display: grid;
  gap: 8px;
}

.nutrition-pref-field span,
.nutrition-pref-field-label {
  font-size: 0.92rem;
  opacity: 0.88;
}

.nutrition-pref-text-input,
.nutrition-pref-field input,
.nutrition-pref-field select {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 10px 12px;
}

.nutrition-pref-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nutrition-pref-preset {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: inherit;
}

.nutrition-pref-preset.is-active {
  border-color: rgba(245, 158, 11, 0.8);
  background: rgba(245, 158, 11, 0.12);
}

.nutrition-pref-tag-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.nutrition-pref-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nutrition-pref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.nutrition-pref-chip-label {
  overflow-wrap: anywhere;
}

.nutrition-pref-chip-remove {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
}

.nutrition-pref-summary {
  display: grid;
  gap: 10px;
  margin: 0;
}

.nutrition-pref-summary div {
  display: grid;
  gap: 4px;
}

.nutrition-pref-summary dt {
  font-size: 0.82rem;
  opacity: 0.72;
}

.nutrition-pref-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.nutrition-pref-actions,
.nutrition-empty-actions {
  display: grid;
  gap: 10px;
}

.nutrition-pref-actions .button,
.nutrition-empty-actions .button,
.nutrition-preferences-open {
  min-height: 44px;
}

.nutrition-pref-feedback {
  margin: 0;
}

.nutrition-pref-feedback[data-state="error"] {
  color: #fca5a5;
}

.nutrition-pref-skeleton-block {
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.05)
  );
  background-size: 200% 100%;
  animation: nutrition-pref-skeleton 1.2s linear infinite;
}

.nutrition-pref-skeleton-block.short {
  width: 60%;
}

@keyframes nutrition-pref-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 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;
}

@media (max-width: 430px) {
  .nutrition-pref-tag-input-row {
    grid-template-columns: 1fr;
  }
}

/* athlete-nutrition-generation-v1 */
.nutrition-generation-panel,
.nutrition-generation-notice {
  display: grid;
  gap: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.nutrition-generation-actions,
.nutrition-empty-actions {
  display: grid;
  gap: 10px;
}

.nutrition-generation-actions .button,
.nutrition-generation-notice .button {
  min-height: 44px;
}

.nutrition-generation-progress {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.nutrition-generation-progress-bar {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  animation: nutrition-generation-progress 1.4s ease-in-out infinite;
}

@keyframes nutrition-generation-progress {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (prefers-reduced-motion: reduce) {
  .nutrition-generation-progress-bar {
    animation: none;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .nutrition-generation-actions {
    grid-template-columns: 1fr;
  }
}
