
:root {
  --bg: #171717;
  --surface: #262626;
  --border: #414141;
  --text: #ffffff;
  --muted: #aaaaaa;
  --accent: #ff7846;
  --progress-fill: #32d6a0;
  --font-ui: Arial, sans-serif;
  --text-logo: 28px;
  --text-page-title: clamp(27px, 7vw, 32px);
  --text-caption: 12px;
  --text-support: 13px;
  --text-body: 14px;
  --text-body-emphasis: 15px;
  --text-button: 16px;
  --text-card-title: 18px;
  --text-subsection-title: 16px;
  --text-section-title: 20px;
  --text-metric: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

small {
  font-size: var(--text-support);
}

button,
input,
textarea,
select {
  font: inherit;
}

strong,
b {
  font-weight: 700;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.screen {
  display: none;
  min-height: 100dvh;
}

.screen.active {
  display: block;
}

/* ПЕРВЫЙ ЭКРАН */

.welcome {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: #111;
  overflow: hidden;
}

.welcome img {
  display: block;
  width: 100%;
  height: auto;
}

.start-button-area {
  position: absolute;
  left: 6%;
  top: 81%;
  width: 88%;
  height: 7%;
  border: none;
  background: transparent;
}

/* ОБЩИЕ ЭЛЕМЕНТЫ */

.page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 25px 20px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 48px;
}

.logo {
  display: block;
  flex: 0 1 180px;
  width: min(180px, 48vw);
  height: 26px;
  overflow: hidden;
  background-image: url("../assets/trenzo-logo.png");
  background-repeat: no-repeat;
  background-position: center left;
  background-size: 100% 100%;
  font-size: 0 !important;
  line-height: 0;
  letter-spacing: 0;
}

.logo span {
  color: transparent;
  font-size: 0;
}

.back-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 25px;
}

.step-label {
  margin-bottom: 17px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

h1 {
  margin: 0 0 14px;
  font-size: var(--text-page-title);
  line-height: 1.15;
  letter-spacing: -0.5px;
  font-weight: 700;
}

h2,
h3,
h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  line-height: 1.25;
}

h3 {
  font-size: var(--text-card-title);
}

.hint {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: var(--text-body-emphasis);
  line-height: 1.45;
}

.small-note {
  margin: 12px 0 0;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
}

/* ВЫБОР РОЛИ */

.role-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.role-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.role-card:active {
  border-color: var(--accent);
}

.role-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 13px;
  background: #38302d;
  color: var(--accent);
}

.role-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

.role-info strong {
  font-size: var(--text-card-title);
}

.role-info small {
  color: #b0b0b0;
  font-size: var(--text-support);
  line-height: 1.45;
}

.role-arrow {
  color: var(--accent);
  font-size: 27px;
}

.role-screen-page {
  padding: 22px 20px 28px;
}

#roleScreen .role-screen-topbar {
  margin-bottom: clamp(28px, 5dvh, 40px);
}

#roleScreen h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(27px, 7vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

#roleScreen .hint {
  max-width: 32ch;
  margin-bottom: 22px;
  font-size: clamp(16px, 4.2vw, 18px);
  line-height: 1.45;
}

#roleScreen .role-options {
  gap: 12px;
  margin-top: 0;
}

#roleScreen .role-card {
  min-height: 98px;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
}

#roleScreen .role-icon {
  width: 48px;
  height: 48px;
}

#roleScreen .role-info {
  gap: 5px;
}

#roleScreen .role-info strong {
  font-size: clamp(20px, 5.1vw, 23px);
  line-height: 1.2;
}

#roleScreen .role-info small {
  font-size: clamp(15px, 3.9vw, 17px);
  line-height: 1.4;
}

#roleScreen .role-copy-break {
  display: initial;
}

/* АНКЕТА */

.progress-track {
  width: 100%;
  height: 4px;
  margin-bottom: 28px;
  border-radius: 10px;
  background: #383838;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 10px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.field {
  margin-bottom: 22px;
}

.field-title {
  display: block;
  margin-bottom: 10px;
  font-size: var(--text-body-emphasis);
  font-weight: 700;
}

.field-hint {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--text-caption);
  line-height: 1.5;
}

.text-input,
.text-area,
.file-input {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
}

.text-input:focus,
.text-area:focus {
  border-color: var(--accent);
}

.text-area {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.4;
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: #302823;
}

.option input {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--accent);
}

.form-bottom {
  margin-top: auto;
  padding-top: 28px;
}

.primary-btn {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 15px;
  border: none;
  border-radius: 15px;
  background: var(--accent);
  color: #171717;
  font-size: var(--text-button);
  font-weight: 800;
}

.secondary-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
}

.info-card {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: #d2d2d2;
  font-size: var(--text-body);
  line-height: 1.6;
}

.info-card strong {
  color: var(--text);
}

.card-title {
  display: block;
  font-size: var(--text-card-title);
  line-height: 1.25;
}

.card-copy {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.45;
}

.card-copy-support {
  font-size: var(--text-support);
}

.warning-card {
  margin: 15px 0;
  padding: 17px;
  border: 1px solid #ff7846;
  border-radius: 15px;
  background: #35251e;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.5;
}

.summary-row {
  padding: 12px 0;
  border-bottom: 1px solid #3a3a3a;
}

.summary-row small {
  display: block;
  margin-bottom: 5px;
  color: #999;
}

.summary-row strong {
  font-size: var(--text-body-emphasis);
  line-height: 1.4;
}

.nutrition-targets-layout {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(0, 2.4fr);
  gap: 16px;
  align-items: center;
}

.nutrition-control-heading {
  margin-bottom: 8px;
}

.nutrition-control-heading h3 {
  padding-right: 28px;
}

.nutrition-control-subtitle {
  margin: 4px 0 0 !important;
  color: #aaa;
  font-size: var(--text-body);
  line-height: 1.3;
}

.nutrition-control-card {
  position: relative;
}

.nutrition-plan-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 16px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.cabinet-nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  padding: 12px 14px;
  color: inherit;
  font: inherit;
  text-align: left;
}

.cabinet-nav-button-comfortable {
  padding: 14px;
}

.cabinet-nav-icon {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #39302b;
  color: var(--accent);
  font-size: var(--text-card-title);
  font-weight: 700;
}

.cabinet-nav-icon-large {
  font-size: 22px;
}

.cabinet-nav-copy {
  flex: 1;
  min-width: 0;
}

.cabinet-nav-title,
.cabinet-nav-detail {
  display: block;
}

.cabinet-nav-title {
  font-size: var(--text-card-title);
  line-height: 1.25;
}

.cabinet-nav-detail {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.45;
}

.cabinet-nav-detail-compact {
  margin-top: 4px;
  line-height: 1.4;
}

.cabinet-goal {
  display: block;
  margin: 8px 0;
  font-size: var(--text-metric);
  line-height: 1.3;
}

#athleteScreen .athlete-cabinet-page > .athlete-dashboard-next,
#athleteScreen .athlete-cabinet-page > .athlete-dashboard-summary {
  margin: 0 0 10px !important;
}

#athleteScreen .athlete-dashboard-header {
  align-items: center;
  justify-content: space-between;
}

#athleteScreen .athlete-dashboard-header .logo {
  flex-basis: 190px;
  width: min(190px, 51vw);
  height: 28px;
}

.athlete-dashboard-profile-shortcut {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: #e6e6e6;
  cursor: pointer;
}

.athlete-dashboard-profile-shortcut::before {
  position: absolute;
  z-index: 0;
  width: 32.2px;
  height: 32.2px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 120, 70, .72);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #3a241b, #121314 68%);
  box-shadow: 0 0 16px rgba(255, 104, 51, .23), inset 0 0 8px rgba(255, 104, 51, .16);
  content: "";
  pointer-events: none;
}

.athlete-dashboard-profile-shortcut svg {
  position: relative;
  z-index: 1;
  width: 26.6px;
  height: 26.6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.athlete-dashboard-next {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px !important;
  border: 1px solid var(--border, #414141) !important;
  background-image: linear-gradient(90deg, rgba(12, 13, 14, .98) 0%, rgba(12, 13, 14, .9) 38%, rgba(12, 13, 14, .35) 68%, rgba(12, 13, 14, .08) 100%), url("../assets/dashboard-workout-bg.png") !important;
  background-position: center, center 55% !important;
  background-size: cover !important;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.athlete-dashboard-next-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.athlete-dashboard-eyebrow {
  color: var(--accent, #ff7846);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.athlete-dashboard-next-copy > strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.athlete-dashboard-next-meta {
  color: var(--muted, #aaa);
  font-size: 13px;
  line-height: 1.2;
}

.athlete-dashboard-summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 214px;
  box-sizing: border-box;
  padding: 14px 8px 9px !important;
  border-radius: 24px !important;
  background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url("../assets/dashboard-metrics-bg.png?v=5") center / cover no-repeat !important;
  background-position: center, center calc(50% + 15px) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 12px 28px rgba(0, 0, 0, .18);
}

.athlete-dashboard-summary::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(188, 191, 195, .2);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.athlete-dashboard-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-height: 188px;
  grid-template-columns: minmax(68px, .9fr) minmax(138px, 1.75fr) minmax(74px, 1fr);
  align-items: center;
  gap: 4px;
}

.athlete-dashboard-metrics > div {
  display: grid;
  min-width: 0;
  justify-items: center;
  align-content: center;
  gap: 3px;
  padding: 6px 0;
  border: 0;
  background: transparent;
}

.athlete-dashboard-small-gauge {
  position: relative;
  width: min(100%, 84px);
  aspect-ratio: 1;
  margin: 0 auto 4px;
  filter: drop-shadow(0 0 10px rgba(255, 101, 42, .08));
}

.athlete-dashboard-small-gauge > svg:first-child,
.athlete-dashboard-adherence-gauge > svg:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.athlete-dashboard-small-gauge circle {
  fill: none;
  stroke-width: 8;
  vector-effect: non-scaling-stroke;
}

.athlete-dashboard-small-gauge .gauge-track,
.athlete-dashboard-adherence-gauge .gauge-track {
  stroke: rgba(126, 131, 138, .22);
}

.athlete-dashboard-small-gauge .gauge-decorative-arc {
  stroke: #ff703c;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 92 270;
  stroke-dashoffset: -18;
  filter: drop-shadow(0 0 5px rgba(255, 105, 56, .48));
}

.athlete-dashboard-weight-gauge .gauge-decorative-arc {
  stroke-dasharray: 154 270;
  stroke-dashoffset: -60;
}

.athlete-dashboard-small-gauge .gauge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
}

.athlete-dashboard-weight-gauge .gauge-weight-icon {
  width: 44.64px;
  height: 44.64px;
}

.athlete-dashboard-workouts > strong,
.athlete-dashboard-weight > strong {
  color: #fff;
  font-size: clamp(22px, 5.8vw, 28px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .48);
}

.athlete-dashboard-weight > strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  letter-spacing: -.035em;
}

.athlete-dashboard-weight-unit {
  font-size: .72em;
  letter-spacing: 0;
}

.athlete-dashboard-workouts > span,
.athlete-dashboard-weight > span {
  color: #c5c7ca;
  font-size: clamp(12px, 3.3vw, 15px);
  line-height: 1.18;
  text-align: center;
  text-shadow: 0 1px 3px #111;
  white-space: nowrap;
}

.athlete-dashboard-adherence {
  display: grid;
  min-width: 0;
  place-items: center;
  padding: 0 !important;
}

.athlete-dashboard-adherence-gauge {
  position: relative;
  display: grid;
  width: min(100%, 204px);
  aspect-ratio: 1;
  box-sizing: border-box;
  place-items: center;
  border: 1px solid rgba(255, 113, 51, .38);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 12, 13, .22), transparent 70%);
  box-shadow: 0 0 16px rgba(255, 96, 37, .18), inset 0 0 24px rgba(255, 100, 39, .06), 0 0 0 5px rgba(255, 120, 70, .035);
}

.athlete-dashboard-adherence-gauge > svg:first-child circle {
  fill: none;
  stroke-width: 9;
  vector-effect: non-scaling-stroke;
}

.athlete-dashboard-adherence-arc {
  stroke: #ff743f;
  stroke-dasharray: 270.177;
  stroke-dashoffset: 270.177;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(255, 105, 56, .56));
  transition: stroke-dashoffset .45s ease;
}

.athlete-dashboard-adherence-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  justify-items: center;
  align-content: center;
  gap: 2px;
  padding: 12px;
  text-align: center;
  pointer-events: none;
}

.athlete-dashboard-adherence-icon {
  position: relative;
  top: 2px;
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
}

.athlete-dashboard-adherence-copy > strong {
  color: #fff;
  font-size: clamp(36px, 10vw, 54px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .98;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .48);
}

.athlete-dashboard-adherence-copy > span {
  color: #c5c7ca;
  font-size: clamp(11px, 3vw, 15px);
  line-height: 1.18;
  white-space: normal;
  text-shadow: 0 1px 3px #111;
}

.athlete-dashboard-adherence-copy > .athlete-dashboard-adherence-label {
  display: grid;
  justify-items: center;
  gap: 0;
  font-size: clamp(12px, 3vw, 15px);
  line-height: 1.12;
}

#athleteScreen .athlete-cabinet-links {
  gap: 6px !important;
  margin-top: 0 !important;
}

#athleteScreen .athlete-cabinet-links .cabinet-nav-button {
  gap: 9px;
  padding: 6px 10px;
  border-color: rgba(122, 126, 132, .32);
  background: linear-gradient(105deg, rgba(34, 35, 37, .96), rgba(20, 21, 22, .98));
}

#athleteScreen .athlete-cabinet-links .cabinet-nav-icon {
  flex-basis: 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 18px;
}

#athleteScreen .athlete-cabinet-links .cabinet-nav-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#athleteScreen .athlete-cabinet-links .cabinet-nav-title {
  font-size: 17px;
  line-height: 1.18;
}

#athleteScreen .athlete-cabinet-links .cabinet-nav-detail {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.22;
}

#athleteScreen .athlete-cabinet-links .cabinet-nav-copy {
  padding-block: 1px;
}

#athleteScreen .athlete-cabinet-page {
  padding: 10px 14px !important;
}

#athleteScreen .athlete-cabinet-page .topbar {
  margin-bottom: 8px !important;
}

#athleteScreen .athlete-cabinet-page > .info-card {
  padding: 10px !important;
}

@media (max-width: 380px) {
  #athleteScreen .athlete-dashboard-summary {
    padding: 11px 6px 8px !important;
    min-height: 184px;
  }

  .athlete-dashboard-metrics {
    min-height: 164px;
    grid-template-columns: minmax(54px, .9fr) minmax(122px, 1.7fr) minmax(60px, 1fr);
    gap: 0;
  }

  .athlete-dashboard-small-gauge {
    width: min(100%, 72px);
  }

  .athlete-dashboard-adherence-gauge {
    width: min(100%, 164px);
  }

  #athleteScreen .athlete-cabinet-links .cabinet-nav-button {
    padding: 5px 8px;
  }
}

@media (max-height: 760px) and (max-width: 600px) {
  #athleteScreen .athlete-cabinet-page {
    padding-top: 6px !important;
  }

  #athleteScreen .athlete-cabinet-page .topbar {
    margin-bottom: 5px !important;
  }

  #athleteScreen .athlete-dashboard-next,
  #athleteScreen .athlete-dashboard-summary {
    margin-bottom: 7px !important;
  }

  .athlete-dashboard-next {
    min-height: 88px;
  }

  #athleteScreen .athlete-cabinet-links {
    gap: 4px !important;
  }

  #athleteScreen .athlete-cabinet-links .cabinet-nav-button {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

.nutrition-plan-link-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.nutrition-plan-link-copy strong {
  color: #fff;
  font-size: var(--text-card-title);
}

.nutrition-plan-link-copy > span {
  color: #aaa;
  font-size: var(--text-body);
  line-height: 1.4;
}

.training-module-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.training-module-card-copy strong,
.training-module-card-disabled strong {
  font-size: var(--text-card-title);
  line-height: 1.25;
}

.training-module-card-copy > span,
.training-module-card-disabled > span {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.4;
}

.training-upload-card {
  margin-bottom: 12px;
}

.training-module-card-disabled {
  display: grid;
  gap: 5px;
  margin: 0 0 12px;
  padding: 15px 18px;
  border-color: #383b40;
  background: #202020;
  opacity: 0.62;
  cursor: default;
}

.training-module-card-disabled strong {
  color: #d2d2d2;
}

.training-history-card {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 15px 18px;
  text-align: left;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.training-history-card:hover,
.training-history-card:focus-visible {
  border-color: var(--accent, #ff7848);
  background: #292522;
}

.training-history-card:focus-visible {
  outline: 2px solid var(--accent, #ff7848);
  outline-offset: 2px;
}

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

.training-plan-content {
  display: grid;
  gap: 12px;
}

.training-plan-intro,
.training-plan-session,
.training-plan-guidance,
.training-plan-review {
  margin: 0 !important;
  padding: 16px;
}

.training-plan-intro h2 {
  margin: 4px 0 8px;
  font-size: var(--text-card-title);
  line-height: 1.25;
}

.training-plan-intro p,
.training-plan-guidance p,
.training-plan-review p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.training-plan-quality {
  padding-top: 9px;
  border-top: 1px solid #3b3d41;
  font-size: var(--text-support);
}

.training-plan-session {
  overflow: hidden;
  padding: 0 !important;
}

.training-plan-session-summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.training-plan-session-summary::-webkit-details-marker {
  display: none;
}

.training-plan-session-summary:focus-visible {
  outline: 2px solid var(--accent, #ff7848);
  outline-offset: -3px;
}

.training-plan-session-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.training-plan-session-day {
  color: var(--accent, #ff7848);
  font-size: var(--text-support);
  font-weight: 700;
}

.training-plan-session-copy > strong {
  font-size: var(--text-card-title);
  line-height: 1.25;
}

.training-plan-session-copy > small {
  color: var(--muted);
  font-size: var(--text-support);
}

.training-plan-session-chevron {
  flex: 0 0 auto;
  color: var(--accent, #ff7848);
  font-size: 24px;
  line-height: 1;
  transition: transform 140ms ease;
}

.training-plan-session[open] .training-plan-session-chevron {
  transform: rotate(180deg);
}

.training-plan-session.is-completed .training-plan-session-day,
.training-plan-session.is-completed .training-plan-session-copy > small {
  color: #48d597;
}

.training-plan-session-body {
  margin: 0 16px;
  padding: 14px 0 16px;
  border-top: 1px solid #414141;
}

.training-plan-session-form {
  display: grid;
  gap: 14px;
}

.training-plan-entry-hint {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.4;
}

.training-plan-exercises {
  display: grid;
  gap: 18px;
}

.training-plan-exercise {
  display: grid;
  gap: 9px;
}

.training-plan-exercise + .training-plan-exercise {
  padding-top: 14px;
  border-top: 1px solid #414141;
}

.training-plan-exercise-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.training-plan-exercise-heading > strong {
  min-width: 0;
  font-size: var(--text-body);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.training-plan-exercise-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: var(--text-support);
}

.training-plan-set-list {
  display: grid;
  gap: 7px;
}

.training-plan-set-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 76px;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #3c3e42;
  border-radius: 12px;
  background: #202020;
}

.training-plan-set-number {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.training-plan-set-target {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.training-plan-set-target > strong {
  font-size: var(--text-body);
  line-height: 1.2;
}

.training-plan-set-target > small {
  color: var(--muted);
  font-size: var(--text-support);
}

.training-plan-reps-input {
  width: 76px;
  min-height: 42px;
  padding: 7px;
  border: 1px solid #55585d;
  border-radius: 10px;
  background: #171717;
  color: #fff;
  font: inherit;
  font-size: var(--text-body);
  text-align: center;
}

.training-plan-adaptation-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.training-plan-adaptation-inputs .training-plan-reps-input {
  width: 100%;
  min-width: 0;
  padding-inline: 3px;
}

.training-plan-session-form.is-adaptation .training-plan-set-row {
  grid-template-columns: 60px minmax(0, 1fr) 142px;
}

.training-plan-session-form.is-adaptation .training-plan-set-target > strong {
  font-size: var(--text-support);
}

.training-plan-reps-input:focus-visible {
  border-color: var(--accent, #ff7848);
  outline: 2px solid rgba(255, 120, 72, 0.22);
}

.training-plan-set-completed {
  color: #48d597;
  font-size: 21px;
  font-weight: 800;
  text-align: center;
}

.training-plan-exercise-note,
.training-plan-completed-note {
  margin: 0;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.4;
}

.training-plan-completed-note {
  color: #48d597;
  font-weight: 700;
}

.training-plan-form-error {
  margin: 0;
  color: #f2a18a;
  font-size: var(--text-support);
}

.training-plan-complete-button {
  width: 100%;
  min-height: 48px;
  margin: 0;
}

.training-plan-refresh {
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: var(--text-support);
  cursor: pointer;
}

.training-plan-refresh:focus-visible {
  outline: 2px solid var(--accent, #ff7848);
  outline-offset: 2px;
}

.training-plan-locked-note {
  margin: 2px 4px 0;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.4;
}

.training-plan-guidance > strong,
.training-plan-review > strong {
  font-size: var(--text-card-title);
  line-height: 1.3;
}

.training-plan-focus,
.training-plan-session-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: var(--text-support);
  line-height: 1.45;
}

.training-plan-module-card {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  margin: 0 0 12px;
  padding: 15px 44px 15px 18px;
  border-color: var(--border);
  background: var(--surface);
  color: #fff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.training-plan-module-card > strong {
  font-size: var(--text-card-title);
}

.training-plan-module-card > span:not(.nutrition-plan-link-arrow) {
  color: var(--muted);
  font-size: var(--text-body);
}

.training-plan-module-card .nutrition-plan-link-arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.training-plan-module-card:focus-visible {
  outline: 2px solid var(--accent, #ff7848);
  outline-offset: 2px;
}

.training-adaptation-module-card {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 15px 18px;
}

.training-adaptation-module-card > strong {
  color: #fff;
  font-size: var(--text-card-title);
  line-height: 1.25;
}

.training-adaptation-module-card > span {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.4;
}

.training-adaptation-module-card .training-adaptation-start {
  margin-top: 4px;
}

.training-history-workout {
  overflow: hidden;
  border: 1px solid #414141;
  border-radius: 16px;
  background: #232323;
}

.training-history-summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.training-history-summary::-webkit-details-marker {
  display: none;
}

.training-history-summary-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.training-history-summary-copy strong {
  color: #f4f4f4;
  font-size: var(--text-card-title);
  line-height: 1.25;
  text-transform: capitalize;
}

.training-history-summary-copy small,
.training-history-status {
  color: var(--muted, #aaa);
  font-size: var(--text-support);
}

.training-history-chevron {
  flex: 0 0 auto;
  color: var(--accent, #ff7848);
  font-size: 24px;
  line-height: 1;
  transition: transform 140ms ease;
}

.training-history-workout[open] .training-history-chevron {
  transform: rotate(180deg);
}

.training-history-details {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.training-history-exercise {
  padding: 10px 11px;
  border: 1px solid #3d3d3d;
  border-radius: 12px;
  background: #202020;
}

.training-history-exercise.is-superset {
  border-color: rgb(255 120 72 / 56%);
  box-shadow: inset 3px 0 0 rgb(255 120 72 / 68%);
}

.training-history-exercise-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.training-history-exercise-heading strong {
  min-width: 0;
  color: #f2f2f2;
  font-size: var(--text-body);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.training-history-exercise-heading span {
  flex: 0 0 auto;
  color: var(--accent, #ff7848);
  font-size: 12px;
  font-weight: 700;
}

.training-history-exercise ol {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-history-exercise li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  color: #aaa;
  font-size: var(--text-support);
}

.training-history-exercise li strong {
  margin-left: auto;
  color: #e6e6e6;
  font-size: var(--text-support);
  font-weight: 600;
  text-align: right;
}

.training-history-exercise li small {
  flex: 0 0 auto;
  color: var(--accent, #ff7848);
  font-size: 11px;
}

.training-history-empty {
  margin: 0 !important;
}

.training-history-empty p {
  margin: 6px 0 14px;
  color: var(--muted, #aaa);
  font-size: var(--text-body);
  line-height: 1.45;
}

.training-history-empty .primary-btn,
.training-history-retry {
  width: 100%;
  min-height: 44px;
}

.training-history-status {
  margin: 4px 2px;
  text-align: center;
}

.training-upload-notice {
  color: var(--muted);
  font-size: var(--text-support);
}

.training-upload-paths {
  display: grid;
  gap: 12px;
}

.training-upload-path {
  display: grid;
  gap: 14px;
  margin: 0 !important;
  padding: 16px;
  border-radius: 16px;
}

.training-upload-path-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.training-upload-path-heading > strong {
  min-width: 0;
  padding-top: 4px;
  font-size: var(--text-card-title);
  line-height: 1.3;
}

.nutrition-help-button.training-upload-help {
  position: static;
  width: 38px;
  height: 38px;
  margin: -4px -4px 0 0;
}

.training-upload-help span {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.training-upload-path-copy strong {
  display: block;
  font-size: var(--text-card-title);
  line-height: 1.3;
}

.training-upload-path-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.45;
}

.training-upload-start {
  margin: 0;
}

.training-upload-start:disabled {
  border-color: #414141;
  background: #3a3a3a;
  color: #aaa;
  cursor: not-allowed;
  opacity: 1;
}

.training-analysis-hint,
.training-upload-state-error {
  margin: -6px 0 0;
  color: var(--muted, #aaa);
  font-size: var(--text-support);
  line-height: 1.4;
}

.training-upload-state-error {
  margin: 0 2px;
  color: #f2c1ad;
}

.training-adaptation-start {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px;
  border: 1px solid #55585d;
  border-radius: 13px;
  background: transparent;
  color: #f0f0f0;
  font-size: var(--text-button);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.training-adaptation-start:hover {
  border-color: var(--accent);
  background: rgba(255, 120, 70, 0.08);
}

.training-adaptation-start:focus-visible,
.training-upload-cancel:focus-visible {
  outline: 2px solid var(--accent, #ff7848);
  outline-offset: 2px;
}

.training-upload-cancel {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #c5c5c5;
  font: inherit;
  font-size: var(--text-body);
  cursor: pointer;
}

.training-adaptation-selected {
  display: grid;
  gap: 5px;
  margin: 0 0 12px !important;
  padding: 15px 18px;
  border-color: #383b40;
  background: #202020;
}

.training-adaptation-selected strong {
  font-size: var(--text-card-title);
  line-height: 1.25;
}

.training-adaptation-selected span {
  color: var(--muted);
  font-size: var(--text-body);
  line-height: 1.4;
}

.training-adaptation-dialog form {
  display: grid;
  gap: 14px;
}

.training-adaptation-dialog-copy {
  margin: 0 !important;
}

.training-adaptation-equipment {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.training-adaptation-equipment legend,
.training-adaptation-restrictions-label {
  margin-bottom: 2px;
  color: #f5f5f5;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.35;
}

.training-adaptation-equipment label {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #484848;
  border-radius: 13px;
  background: #2b2b2b;
  font-size: var(--text-support);
  line-height: 1.35;
  cursor: pointer;
}

.training-adaptation-equipment input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--accent, #ff7848);
}

.training-adaptation-restrictions-label {
  display: block;
}

.training-adaptation-dialog textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #484848;
  border-radius: 13px;
  background: #2b2b2b;
  color: #f5f5f5;
  font: inherit;
  font-size: var(--text-support);
}

.training-adaptation-privacy {
  margin: -4px 0 0 !important;
  font-size: 13px;
  line-height: 1.4 !important;
}

.training-adaptation-dialog input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #484848;
  border-radius: 13px;
  background: #2b2b2b;
  color: #f5f5f5;
  font: inherit;
  font-size: var(--text-support);
}

.training-adaptation-dialog .primary-btn {
  width: 100%;
  margin: 0;
}

.nutrition-entry-method-options .info-card[aria-disabled="true"] {
  cursor: default;
  text-align: left;
}

.nutrition-plan-link-arrow {
  flex: 0 0 auto;
  color: var(--accent, #ff7848);
  font-size: 28px;
  line-height: 1;
}

#athleteScreen .info-card.nutrition-control-card {
  padding-bottom: 8px;
}

.nutrition-help-button,
.nutrition-help-close {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #484848;
  border-radius: 50%;
  background: #2b2b2b;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nutrition-help-button {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  z-index: 1;
}

.nutrition-help-button span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #41454b;
  border-radius: 50%;
  background: #292b2e;
  color: #c9c9c9;
  font-size: 11px;
  line-height: 1;
}

.nutrition-help-button:hover span,
.nutrition-help-close:hover {
  background: #383838;
}

.nutrition-help-button:focus-visible,
.nutrition-help-close:focus-visible {
  outline: 2px solid var(--accent, #ff7848);
  outline-offset: 2px;
}

.nutrition-help-dialog {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 20px;
  overflow-y: auto;
  outline: none;
  border: 1px solid #484848;
  border-radius: 22px;
  background: #242424;
  color: #f5f5f5;
  box-shadow: 0 18px 60px rgb(0 0 0 / 42%);
}

.nutrition-help-dialog::backdrop {
  background: rgb(0 0 0 / 68%);
  backdrop-filter: blur(2px);
}

.nutrition-help-dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.nutrition-help-dialog-heading h3 {
  margin: 0;
  font-size: var(--text-section-title);
}

.nutrition-plan-section-title {
  display: block;
  font-size: var(--text-subsection-title);
  line-height: 1.35;
}

.nutrition-entry-method-options .info-card strong {
  font-size: var(--text-card-title);
  line-height: 1.25;
}

.nutrition-entry-method-dialog h3 {
  font-size: var(--text-section-title);
}

.nutrition-help-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 24px;
  line-height: 1;
}

.nutrition-help-dialog p {
  margin: 0 0 12px;
  color: #c5c5c5;
  line-height: 1.5;
}

.account-delete-zone {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #573b38;
  border-radius: 18px;
  background: rgb(75 37 32 / 18%);
}

.account-delete-zone h2 {
  margin: 0 0 8px;
  font-size: var(--text-card-title);
}

.account-delete-zone p {
  margin: 0 0 14px;
  color: #bdb5b3;
  line-height: 1.45;
}

.account-delete-button,
.account-delete-confirm {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #a94f42;
  border-radius: 13px;
  background: #3b2421;
  color: #ff9a86;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.account-delete-button:focus-visible,
.account-delete-confirm:focus-visible {
  outline: 2px solid #ff7848;
  outline-offset: 2px;
}

.account-delete-dialog {
  width: min(460px, calc(100% - 32px));
}

.account-delete-confirm-label {
  display: block;
  margin: 16px 0 7px;
  color: #eee;
  font-weight: 700;
}

.account-delete-confirm-input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid #57504e;
  border-radius: 12px;
  background: #171717;
  color: #fff;
  font: inherit;
}

.account-delete-confirm-input:focus-visible {
  outline: 2px solid #ff7848;
  outline-offset: 2px;
}

.account-delete-status {
  min-height: 1.4em;
  margin-top: 10px !important;
  color: #ffb29f !important;
}

.account-delete-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}

.account-delete-confirm:disabled {
  border-color: #514643;
  background: #302725;
  color: #92837f;
  cursor: not-allowed;
}

.nutrition-help-done {
  min-height: 44px;
  margin-top: 4px;
}

.nutrition-entry-method-dialog {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.nutrition-entry-method-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nutrition-entry-method-options .info-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  text-align: left;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.nutrition-entry-method-options .info-card:focus-visible {
  outline: 2px solid var(--accent, #ff7848);
  outline-offset: 2px;
}

.training-manual-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: 84dvh;
  padding: 20px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.training-manual-dialog .nutrition-help-dialog-heading {
  margin-bottom: 16px;
}

.training-manual-date-label,
.training-exercise-name-label {
  display: block;
  margin-bottom: 7px;
  color: #d4d4d4;
  font-size: var(--text-support);
  font-weight: 700;
}

.training-manual-date {
  min-height: 46px;
  margin-bottom: 14px;
  padding: 10px 12px;
}

.training-photo-add {
  margin-top: 18px;
}

.training-photo-add:disabled {
  cursor: wait;
  opacity: 0.6;
}

.training-photo-source-hint {
  margin: 8px 0 0 !important;
  color: var(--muted, #aaa) !important;
  font-size: var(--text-support);
  line-height: 1.4;
}

.training-photo-dialog {
  width: min(480px, calc(100% - 24px));
  max-height: 84dvh;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.training-photo-filename {
  overflow-wrap: anywhere;
  margin: 14px 0 10px !important;
  color: #c5c5c5 !important;
  font-size: var(--text-support);
}

.training-photo-note,
.training-review-note {
  color: var(--muted, #aaa) !important;
  font-size: var(--text-support);
  line-height: 1.45;
}

.training-review-note {
  margin: 0 0 14px !important;
  padding: 11px 12px;
  border: 1px solid rgb(255 120 72 / 40%);
  border-radius: 12px;
  background: rgb(255 120 72 / 8%);
  color: #f2c1ad !important;
}

.training-photo-dialog .training-manual-save {
  width: 100%;
}

.training-exercise-list {
  display: grid;
  gap: 12px;
}

.training-exercise-card {
  padding: 14px;
  border: 1px solid #414141;
  border-radius: 16px;
  background: #202020;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.training-exercise-card.is-superset {
  border-color: rgb(255 120 72 / 66%);
  box-shadow: inset 3px 0 0 rgb(255 120 72 / 72%);
}

.training-exercise-heading,
.training-set-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.training-exercise-heading {
  margin-bottom: 12px;
}

.training-exercise-heading h4 {
  margin: 0;
  font-size: var(--text-subsection-title);
}

.training-remove-exercise,
.training-remove-set {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #484848;
  border-radius: 10px;
  background: #2a2a2a;
  color: #c8c8c8;
  font-size: 21px;
  line-height: 1;
}

.training-remove-exercise[hidden],
.training-remove-set[hidden] {
  display: none;
}

.training-exercise-name-label {
  margin-bottom: 12px;
}

.training-exercise-name-label .text-input,
.training-set-fields .text-input {
  min-height: 42px;
  margin-top: 6px;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 16px;
}

.training-set-row {
  padding: 10px 0;
  border-top: 1px solid #3a3a3a;
}

.training-set-heading {
  margin-bottom: 8px;
  color: #bdbdbd;
  font-size: var(--text-support);
}

.training-remove-set {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
}

.training-set-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.training-set-fields > label {
  min-width: 0;
  color: #bdbdbd;
  font-size: 12px;
  font-weight: 600;
}

.training-failure-toggle {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 5px;
  padding: 0 2px;
  white-space: nowrap;
}

.training-failure-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.training-superset-toggle {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  margin-top: 5px;
  padding: 0 2px;
  color: #c5c5c5;
  font-size: var(--text-support);
  font-weight: 600;
  cursor: pointer;
}

.training-superset-toggle input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent);
}

.training-superset-toggle input:disabled {
  opacity: 0.42;
}

.training-superset-toggle.is-disabled {
  color: #777;
  cursor: default;
}

.training-add-set,
.training-add-exercise {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: var(--text-support);
  font-weight: 700;
}

.training-add-set {
  width: 100%;
  margin-top: 4px;
}

.training-add-exercise {
  width: 100%;
  margin: 10px 0 0;
  border: 1px dashed #555;
  border-radius: 12px;
}

.training-add-exercise span {
  color: #999;
  font-weight: 400;
}

.training-add-set:disabled,
.training-add-exercise:disabled {
  opacity: 0.45;
  cursor: default;
}

.training-manual-error {
  margin: 12px 0 0 !important;
  color: #ff9b7a !important;
  font-size: var(--text-support);
}

.training-manual-save {
  position: sticky;
  bottom: -20px;
  margin-top: 14px;
}

.training-manual-save:disabled {
  opacity: 0.65;
}

.nutrition-calorie-ring {
  position: relative;
  width: min(100%, 190px);
  aspect-ratio: 1;
  margin: 0 auto;
  align-self: center;
}

.nutrition-calorie-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.nutrition-calorie-track,
.nutrition-calorie-progress {
  fill: none;
  stroke-width: 8;
}

.nutrition-calorie-track {
  stroke: #343a40;
}

.nutrition-calorie-progress {
  stroke: var(--progress-fill);
  stroke-linecap: round;
  transition: stroke-dashoffset 260ms ease;
}

.nutrition-calorie-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.05;
}

.nutrition-calorie-value strong {
  font-size: clamp(21px, 6vw, 34px);
}

.nutrition-calorie-value span {
  color: var(--muted);
}

.nutrition-calorie-value span {
  margin-top: 5px;
  font-size: 13px;
}

.nutrition-macro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  align-items: center;
}

.nutrition-macro-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid #383b40;
  border-radius: 13px;
  background: #222428;
}

.nutrition-macro-icon {
  display: grid;
  width: 26px;
  height: 26px;
  margin-bottom: 5px;
  place-items: center;
  border-radius: 9px;
  font-size: 15px;
}

.nutrition-macro-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.nutrition-macro-target {
  display: block;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.nutrition-macro-track {
  height: 5px;
  flex-shrink: 0;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #343a40;
}

.nutrition-macro-progress {
  height: 100%;
  border-radius: inherit;
  background: var(--progress-fill);
  transition: width 260ms ease;
}

.training-targets-layout {
  display: grid;
  grid-template-columns: minmax(130px, 0.9fr) minmax(0, 2.4fr);
  gap: 16px;
  align-items: center;
}

.training-workout-ring .nutrition-calorie-value strong {
  font-size: clamp(19px, 5.3vw, 30px);
  white-space: nowrap;
}

.training-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  align-items: stretch;
}

.training-metric-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 8px;
  border: 1px solid #383b40;
  border-radius: 13px;
  background: #222428;
}

.training-metric-icon {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  place-items: center;
  border-radius: 9px;
  background: var(--training-icon-background, #293a35);
  color: var(--training-icon-color, var(--progress-fill));
  font-size: 17px;
  font-weight: 700;
}

.training-metric-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.training-metric-label {
  min-height: 2.25em;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
}

.training-metric-value {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: clamp(12px, 1.8vw, 17px);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.training-metric-track {
  height: 5px;
  flex-shrink: 0;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #343a40;
}

.training-metric-progress {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--progress-fill);
  transition: width 260ms ease;
}

.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;
}

.nutrition-history-week-picker {
  display: flex;
  align-items: center;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #414141;
}

.nutrition-history-week-control {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
}

.nutrition-history-week-icon {
  position: absolute;
  display: flex;
  left: 11px;
  z-index: 1;
  color: var(--accent);
  pointer-events: none;
}

.nutrition-history-week-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.nutrition-history-week-select {
  width: 100%;
  min-width: 0;
  padding: 9px 34px 9px 36px;
  appearance: none;
  border: 1px solid #484848;
  border-radius: 11px;
  outline: none;
  background: linear-gradient(135deg, #2d2d2d, #222222);
  color: #fff;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}

.nutrition-history-week-select:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(255 120 70 / 18%);
}

.nutrition-history-week-chevron {
  position: absolute;
  right: 13px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #c2c2c2;
  border-bottom: 2px solid #c2c2c2;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.nutrition-history-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nutrition-history-table th {
  padding: 6px 4px;
  border-bottom: 1px solid #414141;
  color: var(--muted);
  font-weight: 700;
}

.nutrition-history-table td {
  padding: 7px 4px;
  border-bottom: 1px solid #383838;
}

.nutrition-history-table th:first-child,
.nutrition-history-table td:first-child {
  width: 33%;
  padding-left: 2px;
  padding-right: 10px;
  border-right: 1px solid #414141;
  text-align: left;
}

.nutrition-history-table th:nth-child(2),
.nutrition-history-table td:nth-child(2) {
  width: 19%;
  padding-left: 10px;
}

.nutrition-history-table th:nth-child(n + 3),
.nutrition-history-table td:nth-child(n + 3) {
  width: 16%;
}

.nutrition-plan-status:empty {
  display: none;
}

.nutrition-plan-detail,
.nutrition-plan-empty {
  margin: 0 0 16px;
}

.nutrition-plan-context {
  color: #ccc;
}

.nutrition-daily-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.nutrition-daily-targets span {
  min-width: 0;
}

.nutrition-daily-targets small {
  display: block;
  margin-bottom: 3px;
  color: #aaa;
  font-size: var(--text-support);
}

.nutrition-daily-targets b {
  font-size: var(--text-body-emphasis);
  line-height: 1.35;
}

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

.nutrition-plan-recommendations ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #ccc;
}

.nutrition-plan-recommendations li {
  margin-bottom: 7px;
}

.nutrition-plan-review-reason {
  margin: 8px 0 0;
  color: #ff8959;
}

#athleteNutritionAnalyzeButton[hidden] {
  display: none;
}

@media (max-width: 420px) {
  .nutrition-targets-layout {
    grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1.7fr);
    gap: 8px;
  }

  .nutrition-calorie-ring {
    width: min(100%, 118px);
  }

  .nutrition-calorie-track,
  .nutrition-calorie-progress {
    stroke-width: 9;
  }

  .nutrition-calorie-value strong {
    font-size: clamp(18px, 5.5vw, 25px);
  }

  .nutrition-calorie-value span {
    font-size: 11px;
  }

  .nutrition-macro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .nutrition-macro-card {
    padding: 6px;
    border-radius: 12px;
  }

  .nutrition-macro-icon {
    display: grid;
    width: 24px;
    height: 24px;
    margin: 0 0 5px;
    border-radius: 8px;
    font-size: 14px;
  }

  .nutrition-macro-label {
    margin: 0;
    font-size: 11px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .nutrition-macro-target {
    margin: 4px 0 0;
    font-size: 14px;
  }

  .nutrition-macro-track {
    height: 5px;
    margin-top: 9px;
  }

  .training-targets-layout {
    grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.7fr);
    gap: 8px;
  }

  .training-workout-ring {
    width: min(100%, 118px);
  }

  .training-workout-ring .nutrition-calorie-value strong {
    font-size: clamp(15px, 4.4vw, 19px);
  }

  .training-metric-grid {
    gap: 5px;
  }

  .training-metric-card {
    padding: 5px;
    border-radius: 10px;
  }

  .training-metric-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
    border-radius: 7px;
    font-size: 13px;
  }

  .training-metric-icon svg {
    width: 15px;
    height: 15px;
  }

  .training-metric-label {
    min-height: 2.25em;
    font-size: 9px;
  }

  .training-metric-value {
    font-size: clamp(9px, 2.65vw, 12px);
  }

  .training-metric-track {
    margin-top: 8px;
  }

}

@media (max-width: 360px) {
  .nutrition-macro-card {
    padding: 4px;
  }

  .nutrition-macro-icon {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .nutrition-macro-label {
    font-size: 10px;
  }

  .nutrition-macro-target {
    font-size: 12px;
  }

  .training-metric-card {
    padding: 5px;
  }

  .training-metric-value {
    font-size: 10px;
  }

  .training-targets-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .training-workout-ring {
    width: min(100%, 108px);
  }

  .training-workout-ring .nutrition-calorie-value strong {
    font-size: 17px;
  }

  .training-metric-grid {
    gap: 8px;
  }

  .page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar {
    margin-bottom: 34px;
  }
}


/* ЗАГРУЗКА ПРИ ВХОДЕ В TRENZO */

.auth-loading[hidden] {
  display: none;
}

.auth-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
  max-width: 320px;

  text-align: center;
}

.auth-spinner {
  width: 64px;
  height: 64px;

  margin-bottom: 28px;

  border: 4px solid #39302c;
  border-top-color: #ff7846;

  border-radius: 50%;

  animation: trenzo-spin 0.8s linear infinite;
}

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

.auth-loading-title {
  margin-bottom: 12px;

  color: #ffffff;
  font-size: var(--text-section-title);
  font-weight: 800;
}

.auth-loading-text {
  color: #c4c4c4;
  font-size: var(--text-body-emphasis);
  line-height: 1.5;
}

.auth-loading-hint {
  margin-top: 22px;

  color: #888888;
  font-size: 12px;
}

/* Отступы на финальном экране анкеты */

#athleteAnalyzeButton {
  margin-bottom: 18px;
}

#athleteAiResult:not([hidden]) {
  margin-bottom: 18px;
}

/* =========================================================
   TRENZO — компактный mobile UI для кабинета спортсмена
   ========================================================= */

#athleteScreen .page {
  min-height: 100dvh;
  padding: 16px 16px 22px;
}

#athleteScreen {
  --athlete-bottom-nav-offset: max(
    22px,
    calc(env(safe-area-inset-bottom, 0px) + 8px),
    calc(var(--tg-safe-area-inset-bottom, 0px) + 8px),
    calc(var(--tg-content-safe-area-inset-bottom, 0px) + 8px)
  );
}

#athleteScreen.has-athlete-bottom-nav.active {
  display: flex;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  padding-bottom: var(--athlete-bottom-nav-offset);
}

#athleteScreen.has-athlete-bottom-nav .page {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px !important;
}

.athlete-bottom-nav {
  position: relative;
  z-index: 1000;
  align-self: center;
  width: calc(100% - 20px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 2px;
  max-width: 480px;
  min-height: 75px;
  flex: 0 0 75px;
  margin: 0 auto;
  padding: 7px 6px 5px;
  border: 1px solid var(--border, #414141);
  border-radius: 24px;
  background: var(--surface, #262626);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.athlete-bottom-nav-item {
  display: grid;
  min-width: 0;
  min-height: 59px;
  grid-template-rows: 26px 1fr 3px;
  justify-items: center;
  align-content: center;
  align-items: center;
  gap: 2px;
  padding: 2px 1px 0;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #8f9298;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 140ms ease, background-color 140ms ease;
}

.athlete-bottom-nav-item.is-active {
  color: var(--accent, #ff7846);
}

.athlete-bottom-nav-item:focus-visible {
  outline: 2px solid var(--accent, #ff7846);
  outline-offset: -2px;
}

.athlete-bottom-nav-icon {
  width: 27px;
  height: 27px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.athlete-bottom-nav-label {
  max-width: 100%;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-bottom-nav-indicator {
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: transparent;
}

.athlete-bottom-nav-item.is-active .athlete-bottom-nav-indicator {
  background: currentColor;
  box-shadow: 0 0 10px rgba(255, 120, 70, 0.25);
}

@media (max-width: 360px) {
  .athlete-bottom-nav {
    min-height: 71px;
    flex-basis: 71px;
    width: calc(100% - 14px);
    padding-right: 4px;
    padding-left: 4px;
  }

  .athlete-bottom-nav-label {
    font-size: 11.5px;
  }
}

@media (max-height: 760px) and (max-width: 600px) {
  #athleteScreen .athlete-cabinet-page {
    padding-top: 8px !important;
  }

  #athleteScreen .athlete-cabinet-page .topbar {
    margin-bottom: 6px !important;
  }

  #athleteScreen .athlete-cabinet-page h1 {
    margin-bottom: 8px !important;
  }

  #athleteScreen .athlete-cabinet-page > .info-card {
    padding: 10px !important;
  }

  #athleteScreen .athlete-cabinet-page .step-label {
    margin-bottom: 4px;
  }

  #athleteScreen .athlete-cabinet-page .cabinet-goal {
    margin: 4px 0;
    font-size: 18px;
    line-height: 1.2;
  }

  #athleteScreen .athlete-cabinet-page > .info-card p {
    margin-top: 4px !important;
  }

  #athleteScreen .athlete-cabinet-links {
    gap: 4px !important;
    margin-top: 0 !important;
  }

  #athleteScreen .athlete-cabinet-links .cabinet-nav-button {
    gap: 8px;
    padding: 4px 8px;
  }

  #athleteScreen .athlete-cabinet-links .cabinet-nav-icon {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
  }

  #athleteScreen .athlete-cabinet-links .cabinet-nav-title {
    font-size: 16px;
    line-height: 1.18;
  }

  #athleteScreen .athlete-cabinet-links .cabinet-nav-detail {
    display: block;
    margin-top: 2px;
    font-size: 12.5px;
    line-height: 1.2;
  }
}

#athleteScreen .topbar {
  gap: 12px;
  margin-bottom: 16px;
}

#athleteScreen .logo {
  font-size: 0 !important;
}

#athleteScreen .back-button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
}

#athleteScreen .athlete-desktop-back-button {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  #athleteScreen.has-athlete-bottom-nav .athlete-desktop-back-button {
    display: grid;
    place-items: center;
  }
}

#athleteScreen .step-label {
  margin-bottom: 8px;
}

#athleteScreen h1 {
  margin-bottom: 10px;
}

#athleteScreen .hint {
  margin-bottom: 16px;
}

#athleteScreen .progress-track {
  margin-bottom: 18px;
}

#athleteScreen .info-card {
  margin-top: 0 !important;
  margin-bottom: 10px;
  padding: 14px;
  border-radius: 14px;
  line-height: 1.45;
}

#athleteScreen .info-card.cabinet-history-card {
  padding: 16px;
}

#athleteScreen .info-card p {
  margin-top: 8px;
  margin-bottom: 0;
}

#athleteScreen .summary-row {
  padding: 9px 0;
}

#athleteScreen .summary-row small {
  margin-bottom: 3px;
}

#athleteScreen .field {
  margin-bottom: 14px;
}

#athleteScreen .field-title {
  margin-bottom: 7px;
}

#athleteScreen .athlete-name-step h1 {
  margin: 2px 0 18px;
  font-size: clamp(28px, 7vw, 32px);
}

#athleteScreen .athlete-name-step .field-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#athleteScreen .athlete-name-step .text-input {
  min-height: 54px;
  font-size: 18px;
}

#athleteScreen .text-input,
#athleteScreen .text-area,
#athleteScreen .file-input {
  padding: 13px 14px;
  border-radius: 12px;
}

#athleteScreen .text-area {
  min-height: 90px;
}

#athleteScreen .option-list {
  gap: 8px;
}

#athleteScreen .option {
  min-height: 50px;
  padding: 12px 13px;
  border-radius: 12px;
}

#athleteScreen .form-bottom {
  margin-top: 0;
  padding-top: 14px;
}

#athleteScreen .primary-btn {
  min-height: 50px;
  padding: 13px;
  border-radius: 13px;
  font-size: var(--text-button);
}

#athleteScreen .secondary-btn {
  min-height: 44px;
  margin-top: 8px;
  padding: 11px;
  border-radius: 12px;
}

#athleteScreen [hidden] {
  display: none !important;
}

#athleteScreen .small-note {
  margin-top: 8px;
  line-height: 1.4;
}

/* Анкета: крупные, удобные для касания поля и единый ритм на каждом шаге. */
#athleteScreen .athlete-onboarding-page .topbar {
  margin-bottom: 14px;
}

#athleteScreen .athlete-onboarding-page {
  /* Даём нижний отступ, чтобы основная кнопка была выше края экрана. */
  padding-bottom: 38px;
}

#athleteScreen .athlete-onboarding-page .step-label {
  margin-bottom: 8px;
  font-size: 13px;
}

#athleteScreen .athlete-onboarding-page .progress-track {
  height: 5px;
  margin-bottom: 20px;
}

#athleteScreen .athlete-onboarding-page h1 {
  margin-bottom: 8px;
  font-size: clamp(27px, 7vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.35px;
}

#athleteScreen .athlete-onboarding-page .hint {
  max-width: 42ch;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.45;
}

#athleteScreen .athlete-onboarding-page .field {
  margin-bottom: 16px;
}

#athleteScreen .athlete-onboarding-page .field-title {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.3;
}

#athleteScreen .athlete-onboarding-page .field-title.visually-hidden {
  margin: -1px;
}

#athleteScreen .athlete-onboarding-page .text-input,
#athleteScreen .athlete-onboarding-page .text-area,
#athleteScreen .athlete-onboarding-page .file-input {
  min-height: 54px;
  padding: 13px 14px;
  border-radius: 13px;
  font-size: 17px;
  line-height: 1.35;
}

#athleteScreen .athlete-onboarding-page .text-input::placeholder,
#athleteScreen .athlete-onboarding-page .text-area::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

#athleteScreen .athlete-onboarding-page .text-input:focus-visible,
#athleteScreen .athlete-onboarding-page .text-area:focus-visible,
#athleteScreen .athlete-onboarding-page .file-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(255 120 70 / 18%);
  outline: none;
}

#athleteScreen .athlete-onboarding-page .text-area {
  min-height: 112px;
  line-height: 1.45;
}

#athleteScreen .athlete-onboarding-page .option-list {
  gap: 9px;
}

#athleteScreen .athlete-onboarding-page .option {
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 13px;
  font-size: 16px;
  line-height: 1.35;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 140ms ease, background-color 140ms ease;
}

#athleteScreen .athlete-onboarding-page .option input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
}

#athleteScreen .athlete-onboarding-page .option:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#athleteScreen .athlete-onboarding-page .info-card {
  padding: 14px;
  font-size: 15px;
  line-height: 1.5;
}

#athleteScreen .athlete-onboarding-page .field-hint,
#athleteScreen .athlete-onboarding-page .small-note {
  font-size: 14px;
  line-height: 1.45;
}

#athleteScreen .athlete-onboarding-page .form-bottom {
  margin-top: auto;
  padding-top: 16px;
}

#athleteScreen .athlete-onboarding-page form {
  display: flex;
  flex: 1;
  flex-direction: column;
}

#athleteScreen .athlete-onboarding-page .primary-btn {
  min-height: 54px;
  font-size: 17px;
}

#athleteScreen .athlete-onboarding-page .primary-btn:focus-visible,
#athleteScreen .athlete-onboarding-page .secondary-btn:focus-visible,
#athleteScreen .athlete-onboarding-page .back-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

#athleteScreen .athlete-onboarding-page .primary-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

#athleteScreen .athlete-onboarding-page #goalWarning:not([hidden]) {
  margin: 0 0 14px;
}

#athleteScreen .athlete-onboarding-page .small-note {
  color: #a3a3a3;
}

#athleteScreen .athlete-onboarding-page input[type="number"] {
  -moz-appearance: textfield;
}

#athleteScreen .athlete-onboarding-page input[type="number"]::-webkit-inner-spin-button,
#athleteScreen .athlete-onboarding-page input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

@media (max-width: 360px) {
  #athleteScreen .athlete-onboarding-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  #athleteScreen .athlete-onboarding-page .option {
    gap: 10px;
    padding-right: 11px;
    padding-left: 11px;
    font-size: 15px;
  }
}
