:root {
  --bg: #f7fbff;
  --bg-soft: #eef5fc;
  --panel: #ffffff;
  --text: #131a22;
  --muted: #667383;
  --line: #d8e2ee;
  --blue: #1f6fe5;
  --blue-soft: #bcd9fb;
  --blue-fill: #6fa7ea;
  --green: #16c85c;
  --gold: #f2b400;
  --orange: #ff8a00;
  --gray: #9aa6b8;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fbfdff 0%, var(--bg-soft) 100%);
}

button, input, select { font: inherit; }

.page-shell {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.topbar-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 180, 0, 0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(242, 180, 0, 0.08);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chip-icon {
  display: none;
}

.hero-copy h1,
.section-head h2,
.testing-head h2,
.result-head h2,
.rating-box strong,
.stat-card strong,
.result-meta-card strong,
.tier-panel h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 0.98;
}

.hero-copy h1 {
  font-size: clamp(3rem, 4.8vw, 4.7rem);
}

.hero-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  line-height: 1.5;
}

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

.panel,
.stat-card,
.modal-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.score-lock-target,
.result-panel,
.breakdown-panel {
  position: relative;
  overflow: hidden;
}

.stat-card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 20px;
}

.score-lock-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(247, 251, 255, 0.22);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  z-index: 4;
}

.score-lock-glass {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: min(280px, 100%);
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 14px 40px rgba(31, 111, 229, 0.12);
  text-align: center;
}

button.score-lock-glass {
  cursor: pointer;
}

.score-lock-icon {
  width: 16px;
  height: 16px;
  color: #202938;
}

.score-lock-glass span {
  display: block;
  color: #202938;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

body.scores-locked .score-lock-overlay {
  display: flex;
}

.stat-label,
.rating-box span,
.result-kicker {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong,
.result-meta-card strong {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 24px;
  margin-top: 22px;
}

.stack-layout,
.left-column,
.right-column {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 28px 30px;
}

.section-head,
.testing-head,
.result-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.section-head--stack { display: block; }

.section-head > div:nth-child(2) {
  flex: 1 1 auto;
}

.section-head h2,
.testing-head h2,
.result-head h2,
.tier-panel h2 {
  font-size: clamp(1.95rem, 2.2vw, 2.6rem);
}

.section-head p,
.testing-head p,
.result-copy,
.data-status,
.modal-copy,
.inline-status,
.disclaimer-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-headline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.session-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.session-meta {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 500;
}

.session-meta:hover {
  color: var(--text);
  background: transparent;
}

.session-meta:disabled {
  opacity: 1;
  cursor: default;
}

.profile-logout-button {
  justify-self: start;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cf3f3f;
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 600;
  cursor: pointer;
}

.profile-logout-button:hover {
  color: #b52e2e;
}

.section-icon,
.icon-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--blue);
}

.icon-svg {
  width: 20px;
  height: 20px;
  display: block;
  color: currentColor;
}

.icon-svg--outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-svg--fill {
  fill: currentColor;
  stroke: none;
}

.icon-svg--trophy {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.athlete-grid,
.testing-grid {
  display: grid;
  gap: 18px 22px;
  margin-top: 20px;
}

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

.athlete-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.field,
.metric-card {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.96rem;
  font-weight: 700;
}

.field input,
.field select,
.metric-input-wrap input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
}

.field input::placeholder,
.metric-input-wrap input::placeholder {
  color: #98a4b5;
}

.field input:focus,
.field select:focus,
.metric-input-wrap input:focus,
.primary-button:focus,
.secondary-button:focus,
.ghost-button:focus,
.switch-button:focus,
.modal-close:focus {
  outline: 2px solid rgba(31, 111, 229, 0.26);
  outline-offset: 2px;
}

.field-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.metric-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.metric-top strong {
  display: block;
  font-size: 1.04rem;
}

.metric-top span {
  color: var(--muted);
}

.metric-top small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #2d3748;
  background: #fff;
  font-size: 0.94rem;
  font-weight: 700;
}

.metric-input-wrap {
  position: relative;
}

.metric-unit {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.submit-row {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #e6edf5;
}

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

.primary-button,
.secondary-button,
.ghost-button {
  min-height: 52px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.ghost-button--small {
  min-height: 44px;
  padding: 10px 16px;
}

.primary-button {
  border: 0;
  color: #fff;
  background: var(--blue);
}

.primary-button:disabled {
  background: #9fc3ef;
  opacity: 1;
  cursor: wait;
}

.primary-button.is-loading {
  background: var(--blue);
  opacity: 1;
  cursor: progress;
}

.primary-button--full { width: 100%; }

.secondary-button,
.ghost-button {
  border: 1px solid var(--line);
  color: #5b6575;
  background: #fff;
}

.text-button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.action-row--stack {
  grid-template-columns: 1fr;
}

.completion-status {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.result-panel {
  border-color: var(--blue-soft);
}

.rating-box {
  display: grid;
  justify-items: start;
  min-width: 200px;
}

.rating-box strong {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(3rem, 4.5vw, 4rem);
}

#total-score {
  color: var(--blue);
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
}

.rating-box small {
  font-family: "Barlow", sans-serif;
  color: var(--muted);
  font-size: 1em;
  font-weight: 700;
  line-height: 1;
}

.score-progress-track {
  height: 11px;
  margin-top: 18px;
  background: #c9dff7;
  border-radius: 999px;
  overflow: hidden;
}

.score-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
  transition: width 160ms ease, background-color 160ms ease;
}

.result-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.result-meta-card,
.disclaimer-card {
  padding: 16px;
  border: 1px solid #edf2f7;
  border-radius: 14px;
  background: #fafcff;
}

.result-meta-card span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.result-meta-card strong {
  font-size: 1.55rem;
}

.disclaimer-card {
  margin-top: 18px;
}

.breakdown-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.breakdown-row {
  display: grid;
  gap: 8px;
}

.breakdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.breakdown-header strong {
  font-size: 1rem;
}

.breakdown-score {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
}

.breakdown-bar {
  height: 8px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}

.breakdown-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 160ms ease, background-color 160ms ease;
}

.dashboard-shell {
  display: grid;
  gap: 20px;
  margin-top: 26px;
}

.dashboard-head h2,
.dashboard-card h3,
.report-card h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  line-height: 0.98;
}

.dashboard-head h2 {
  font-size: clamp(2rem, 2.6vw, 2.9rem);
}

.dashboard-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-section-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-tabs {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.dashboard-tab {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.dashboard-tab.is-active {
  color: #fff;
  background: var(--blue);
}

.dashboard-empty {
  display: grid;
  gap: 6px;
}

.dashboard-empty strong {
  font-size: 1.15rem;
}

.dashboard-empty p {
  margin: 0;
  color: var(--muted);
}

.dashboard-actions {
  display: flex;
  justify-content: flex-end;
}

.dashboard-panel {
  display: none;
  gap: 20px;
}

.dashboard-panel.is-active {
  display: grid;
}

.report-card {
  display: grid;
  gap: 24px;
  padding: 28px 30px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: linear-gradient(135deg, #05080f 0%, #0c1323 62%, #10182c 100%);
  box-shadow: 0 22px 42px rgba(5, 10, 20, 0.2);
}

.report-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.report-kicker {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-card h3 {
  font-size: clamp(3rem, 4vw, 4.4rem);
}

.report-meta {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
}

.report-score-block {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.report-score-block strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(4rem, 5vw, 5.4rem);
  line-height: 0.9;
}

.report-score-block span {
  color: rgba(255, 255, 255, 0.72);
}

.report-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.report-range {
  display: grid;
  gap: 10px;
}

.report-range-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.report-scale {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  height: 20px;
  border-radius: 999px;
}

.report-scale-segment--gray { background: #9da4bb; }
.report-scale-segment--orange { background: var(--orange); }
.report-scale-segment--green { background: #6bb691; }
.report-scale-segment--blue { background: #5a91e8; }
.report-scale-segment--gold { background: #f2b400; }

.report-scale-marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid #0d1528;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.report-scale-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.92rem;
}

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

.dashboard-grid--progress {
  grid-template-columns: 1fr 1.2fr;
}

.dashboard-card {
  padding: 24px;
}

.dashboard-card--success {
  background: #effdf5;
  border-color: #b6efcc;
}

.dashboard-card--warning {
  background: #fff7ec;
  border-color: #ffd4a4;
}

.score-summary-list,
.performance-bars,
.insight-list,
.progress-summary,
.history-list,
.leaderboard-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.score-summary-row,
.performance-row,
.progress-summary-row,
.history-item {
  display: grid;
  gap: 8px;
}

.score-summary-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf2f7;
}

.score-summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.score-summary-value {
  font-weight: 700;
  text-align: right;
}

.score-summary-value span {
  color: var(--muted);
  font-weight: 600;
}

.performance-row-label,
.progress-summary-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.performance-track,
.progress-bar-track {
  height: 10px;
  background: #edf2f7;
  border-radius: 999px;
  overflow: hidden;
}

.performance-bar,
.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.performance-bar {
  transition: width 160ms ease, background-color 160ms ease;
}

.insight-list {
  margin: 18px 0 0;
  padding-left: 18px;
}

.insight-list li {
  color: var(--text);
}

.tier-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tier-track-card {
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
}

.tier-track-icon {
  width: 22px;
  height: 22px;
}

.tier-track-icon--outline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tier-track-card.is-current {
  border-color: var(--blue);
  background: rgba(31, 111, 229, 0.08);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(31, 111, 229, 0.14);
}

.tier-track-card strong {
  font-size: 1.05rem;
}

.current-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}

.history-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.history-head,
.history-meta,
.leaderboard-card-top,
.leaderboard-card-tags,
.leaderboard-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.leaderboard-table-wrap {
  overflow-x: auto;
}

.history-head strong {
  font-size: 1.1rem;
}

.history-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.history-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.delete-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #cf3f3f;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.delete-button:hover {
  color: #b52e2e;
}

.leaderboard-controls {
  padding-bottom: 18px;
}

.leaderboard-filters {
  display: grid;
  grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f5f9;
}

.leaderboard-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.leaderboard-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.leaderboard-rank {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eff3f8;
  font-weight: 700;
}

.leaderboard-rank--1 { background: #f2b400; color: #111; }
.leaderboard-rank--2 { background: #a3afc0; color: #fff; }
.leaderboard-rank--3 { background: #ba6a16; color: #fff; }

.leaderboard-score {
  text-align: right;
}

.leaderboard-score strong {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 3rem;
  line-height: 0.9;
  color: var(--blue);
}

.leaderboard-score span,
.leaderboard-card-copy {
  color: var(--muted);
}

.leaderboard-card-name {
  font-size: 1.15rem;
  font-weight: 700;
}

.leaderboard-card-tags {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.leaderboard-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.leaderboard-tier-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  color: #fff;
  background: #778194;
  font-weight: 700;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
}

.leaderboard-table th {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tier-scale {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.tier-scale-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tier-scale-row span {
  color: var(--muted);
}

.tier-scale-row--gold strong { color: var(--gold); }
.tier-scale-row--blue strong { color: #4b95ff; }
.tier-scale-row--green strong { color: var(--green); }
.tier-scale-row--orange strong { color: var(--orange); }
.tier-scale-row--gray strong { color: var(--gray); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal.hidden { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 28, 45, 0.4);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(680px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: auto;
  padding: 28px;
}

.modal-card--profile {
  width: min(720px, calc(100% - 24px));
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text);
}

.modal-step { display: none; }
.modal-step.is-active { display: block; }

.modal-form,
.field-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.checkbox-field--account {
  margin-top: -2px;
  color: var(--text);
}

.checkbox-field--account input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.auth-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding: 6px;
  border-radius: 999px;
  background: #f1f5f9;
}

.switch-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.switch-button.is-active {
  color: #fff;
  background: var(--blue);
}

.lead-form-host {
  margin: 18px 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.lead-form-host button,
.lead-form-host [type="submit"],
.lead-form-host .button,
.lead-form-host .btn {
  border: 0 !important;
  color: #fff !important;
  background: var(--blue) !important;
  box-shadow: none !important;
}

.lead-form-host button:hover,
.lead-form-host [type="submit"]:hover,
.lead-form-host .button:hover,
.lead-form-host .btn:hover {
  background: #155fd0 !important;
}

.inline-status.is-error { color: #c0392b; }
.inline-status.is-success { color: #13834b; }
.hidden { display: none !important; }

.site-footer {
  width: min(1460px, calc(100% - 32px));
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0.9;
}


@media (max-width: 1180px) {
  .hero-grid,
  .main-grid,
  .hero-stats,
  .dashboard-grid,
  .dashboard-grid--progress,
  .leaderboard-filters,
  .leaderboard-cards {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .hero-stats {
    display: none;
  }

  .page-shell {
    width: min(100% - 16px, 100%);
    padding-top: 16px;
  }

  .site-footer {
    width: min(100% - 16px, 100%);
    margin-bottom: 14px;
    font-size: 0.66rem;
  }

  .panel,
  .modal-card,
  .stat-card {
    padding: 20px;
  }

  .athlete-grid--three,
  .athlete-grid--four,
  .testing-grid,
  .result-meta-grid,
  .field-grid--auth,
  .action-row,
  .tier-track {
    grid-template-columns: 1fr;
  }

  .testing-head,
  .result-head,
  .breakdown-header,
  .report-top,
  .report-range-copy,
  .leaderboard-toolbar,
  .history-head,
  .history-meta {
    display: grid;
  }

  .session-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dashboard-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .leaderboard-card-top {
    align-items: flex-start;
  }

  .modal {
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    overflow: hidden;
  }

  .modal-card,
  .modal-card--profile {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    max-height: min(88vh, 780px);
    margin: 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -18px 42px rgba(17, 24, 39, 0.18);
  }
}
