/* Approved Apex direction. Visual layer only: the data model stays unchanged. */
:root {
  color-scheme: dark;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #101216;
  --surface: #171a20;
  --surface-inset: #1d222a;
  --surface-accent: #283123;
  --surface-purple: #2c2537;
  --surface-amber: #332c24;
  --surface-danger: #342326;
  --ink: #e7eaf1;
  --muted: #a5aebd;
  --soft: #bec5d1;
  --line: #303641;
  --accent: #d9ed96;
  --accent-border: #697b4c;
  --green: #d9ed96;
  --lime: #d9ed96;
  --blue-text: #a5c3e3;
  --purple-text: #c5afe2;
  --amber-text: #dfbf8e;
  --danger-text: #e5a09c;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
}
html,
body {
  background: var(--bg);
  color: var(--ink);
}
body.apex-app {
  font-family: var(--font-sans);
  min-width: 320px;
}
h1,
h2,
h3,
.metric > div,
.record-hero > b,
.integration-logo,
.apex-brand,
.detail-stats b,
.athlete-numbers b {
  font-family: var(--font-sans);
}
h1 {
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -1.2px;
}
h2 {
  font-weight: 550;
  font-size: 24px;
  letter-spacing: -0.6px;
}
h3 {
  font-weight: 550;
  font-size: 16px;
  letter-spacing: -0.1px;
}
button {
  font-family: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8eaa58;
  outline-offset: 1px;
}
a {
  color: var(--accent);
}
small {
  color: var(--muted);
}
::selection {
  background: #64783f;
  color: #fff;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.apex-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  vertical-align: middle;
}
.apex-app-shell {
  min-height: 100vh;
}
.main-shell {
  margin: 0;
  min-width: 0;
}
.sidebar {
  display: none !important;
}
main {
  max-width: 1700px;
  padding: 30px 34px 32px;
  margin: auto;
}
#content {
  min-height: 65vh;
}
.page-heading {
  margin-bottom: 27px;
}
.page-heading h1 {
  font-size: 32px;
}
.page-heading p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.eyebrow {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.eyebrow span {
  color: var(--muted);
}
.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #1a2214;
  font-weight: 600;
  box-shadow: none;
  font-size: 12px;
  gap: 8px;
  padding: 12px 17px;
  border-radius: 6px;
}
.primary:hover {
  background: #e5f6b1;
  border-color: #e5f6b1;
}
.primary .apex-icon {
  height: 15px;
  width: 15px;
}
.secondary {
  background: var(--surface);
  border: 1px solid #3c434f;
  color: var(--soft);
  font-size: 12px;
}
.secondary:hover {
  background: #262d36;
  color: var(--ink);
}
.danger {
  background: #3c2629;
  border: 1px solid #704344;
  color: #efb1ab;
  font-size: 12px;
}
.text-button {
  color: var(--soft);
  font-size: 12px;
}
.text-button:hover {
  color: var(--accent);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}
.card-heading {
  margin-bottom: 21px;
}
.card-heading h3 {
  font-size: 16px;
  font-weight: 550;
}
.card-heading p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.fineprint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.body-text,
.ride-notes {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.8;
}
.empty {
  color: var(--muted);
  font-size: 14px;
}
.notice {
  background: #22291f;
  border-color: #3a4730;
  color: #c3ceb3;
  font-size: 13px;
  padding: 16px 19px;
}
.notice b {
  color: #e1edcc;
}
.tag,
.chip,
.demo-small {
  border-color: #3c4535;
  background: #242d22;
  color: #c8d8ac;
  font-size: 10px;
}
.tag.amber {
  background: #342d23;
  color: #dfc090;
  border-color: #5b4d36;
}
.demo-small {
  letter-spacing: 0.8px;
  font-size: 9px;
  color: var(--muted);
  background: var(--surface-inset);
  border-color: var(--line);
}
.cycling-discipline {
  background: #242b33;
  color: #bac5d3;
  border-color: #394453;
  font-size: 10px;
}
.cycling-discipline.unspecified {
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
/* Apex navigation is shared by every real screen. */
.apex-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 12;
}
.apex-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.apex-brand-mark {
  display: block;
  position: relative;
  font-size: 35px;
  font-weight: 750;
  letter-spacing: -4px;
  width: 33px;
  line-height: 1;
}
.apex-brand-mark > span {
  font-size: 17px;
  letter-spacing: 0;
  position: absolute;
  right: -1px;
  top: -3px;
  color: var(--accent);
}
.apex-brand-light {
  font-weight: 350;
  margin-left: 4px;
}
.apex-navigation {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: auto;
  min-width: 0;
}
.apex-nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  white-space: nowrap;
  padding: 25px 12px;
  height: 72px;
  border-bottom: 2px solid transparent;
  color: #b6becc;
  font-weight: 450;
  border-radius: 0;
}
.apex-nav-button:hover {
  color: var(--ink);
  background: #ffffff04;
}
.apex-nav-button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 550;
}
.apex-more {
  position: relative;
}
.apex-more > summary {
  list-style: none;
  cursor: pointer;
}
.apex-more > summary::-webkit-details-marker {
  display: none;
}
.apex-more > summary::marker {
  display: none;
}
.apex-more > summary .apex-icon {
  height: 13px;
  width: 13px;
}
.apex-more[open] > summary {
  background: var(--surface-inset);
  color: var(--ink);
}
.apex-more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 250px;
  border: 1px solid #424a58;
  background: #1a1f27;
  border-radius: 8px;
  padding: 7px;
  box-shadow: 0 20px 60px #0008;
  z-index: 35;
}
.apex-more-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 12px 13px;
  border-radius: 5px;
  color: var(--soft);
  font-size: 13px;
}
.apex-more-menu button:hover,
.apex-more-menu button.selected {
  background: #30382c;
  color: var(--accent);
}
.apex-more-menu .apex-icon {
  height: 17px;
  width: 17px;
}
.apex-header-tools {
  display: flex;
  gap: 15px;
  align-items: center;
}
.apex-notification {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 36px;
  min-height: 40px;
  color: var(--soft);
  border: 1px solid transparent;
  border-radius: 6px;
}
.apex-notification span {
  font-size: 10px;
  color: var(--accent);
}
.apex-notification:hover {
  background: var(--surface);
}
.apex-role {
  margin: 0;
  display: block;
}
.apex-role select {
  width: 130px;
  min-height: 34px;
  padding: 7px 8px;
  margin: 0;
  background: #181d24;
  border-color: var(--line);
  font-size: 11px;
  color: var(--soft);
}
.apex-coach {
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
}
.apex-coach > span {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #30392a;
  color: var(--accent);
  font-size: 10px;
}
.apex-coach b {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.apex-coach small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: var(--muted);
}
.apex-roster {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 34px;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  background: #12151a;
}
.apex-roster-label {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
  white-space: nowrap;
  line-height: 1.6;
}
.apex-roster-label b {
  display: block;
  font-size: 10px;
  color: #d1d7df;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 3px;
}
.apex-rider-list {
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: auto;
  min-width: 0;
  scrollbar-width: thin;
}
.apex-rider-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: none;
  border-radius: 6px;
  padding: 7px 15px 7px 7px;
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  min-height: 43px;
  white-space: nowrap;
}
.apex-rider-chip:hover {
  background: #20262d;
  color: var(--ink);
}
.apex-rider-chip.active {
  border-color: #687b4e;
  background: #242d20;
  color: var(--ink);
}
.apex-rider-chip > i {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 3px;
}
.apex-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--avatar);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 9px;
  color: #253b2d;
  overflow: hidden;
  opacity: 0.75;
}
.apex-rider-chip.active .apex-avatar {
  opacity: 1;
}
.apex-avatar img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.apex-rider-select {
  margin: 0 0 0 auto;
}
.apex-rider-select select {
  margin: 0;
  min-height: 34px;
  background: #171c23;
  width: 150px;
  max-width: 150px;
  padding: 7px 9px;
  font-size: 11px;
  color: var(--soft);
}
.apex-demo-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 9px 34px;
  border-bottom: 1px solid #252c34;
  color: #929dab;
  font-size: 10px;
  background: #111419;
}
.apex-demo-note > span {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}
.apex-demo-note > span > i {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: #a8bd7d;
  flex-shrink: 0;
}
.apex-demo-note > button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  padding: 0;
}
.apex-demo-note .apex-icon {
  height: 12px;
  width: 12px;
}
.apex-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 34px 24px;
  max-width: 1700px;
  margin: auto;
  color: #8e98a7;
  font-size: 10px;
}
.apex-footer > span:first-child,
.apex-footer > span:last-child {
  font-size: 10px;
  color: #8e98a7;
  margin: 0;
}
.apex-footer i {
  margin: 0 7px;
  color: #54606c;
}
/* Approved three-column overview composition, now reading the actual local model. */
.apex-overview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.apex-overview-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
.apex-overview-heading h1 {
  font-size: 39px;
  letter-spacing: -1.5px;
  font-weight: 620;
  line-height: 1.15;
}
.apex-overview-heading h1 > span {
  color: var(--accent);
}
.apex-overview-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.6;
}
.apex-overview-heading .body-summary {
  margin-left: 7px;
  color: var(--muted);
  font-size: 11px;
}
.apex-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 280px;
  gap: 24px;
  margin-bottom: 24px;
}
.apex-score {
  padding: 25px 24px 22px;
  background: #171c20;
  display: flex;
  flex-direction: column;
}
.apex-small-label {
  font-size: 8px;
  letter-spacing: 1.3px;
  font-weight: 450;
  color: var(--muted);
  display: block;
}
.apex-score > .apex-small-label {
  font-size: 8px;
  color: #adb99b;
}
.apex-hero-number {
  font-size: 82px;
  font-weight: 550;
  letter-spacing: -4.5px;
  line-height: 1.15;
  margin: 12px 0 15px;
  white-space: nowrap;
}
.apex-hero-number small {
  font-size: 16px;
  letter-spacing: 0;
  margin-left: 9px;
  font-weight: 350;
  color: var(--muted);
}
.apex-plan-status {
  font-size: 11px;
  color: var(--soft);
  line-height: 1.7;
}
.apex-plan-status > span > i {
  height: 4px;
  width: 4px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}
.apex-plan-status b {
  color: var(--accent);
  font-weight: 500;
}
.apex-plan-status small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.apex-progress {
  margin-top: 18px;
}
.apex-progress-track {
  height: 3px;
  border-radius: 3px;
  background: #30363d;
  overflow: hidden;
}
.apex-progress-track > span {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}
.apex-progress-track.is-incomplete {
  background: repeating-linear-gradient(
    100deg,
    #3a4149,
    #3a4149 4px,
    #252c32 4px,
    #252c32 8px
  );
}
.apex-progress > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 8px;
  text-align: right;
}
.apex-score-stats {
  margin-top: 28px;
  display: grid;
  gap: 26px;
}
.apex-score-stats > div > span {
  font-size: 11px;
  color: var(--muted);
}
.apex-score-stats b {
  font-size: 24px;
  display: block;
  letter-spacing: -0.7px;
  font-weight: 450;
  margin: 8px 0 5px;
  line-height: 1.25;
}
.apex-score-stats b em {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
  font-style: normal;
  letter-spacing: 0;
}
.apex-score-stats small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.65;
}
.apex-balance {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 5px;
}
.apex-balance > span {
  color: var(--muted);
  font-size: 11px;
  grid-column: 1/-1;
  margin-bottom: 5px;
}
.apex-balance strong {
  font-size: 34px;
  font-weight: 450;
  letter-spacing: -1px;
  white-space: nowrap;
}
.apex-balance strong small {
  font-size: 9px;
  font-weight: 450;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}
.apex-balance p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  text-align: right;
}
.apex-center,
.apex-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.apex-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.apex-section-head h2 {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.2px;
  line-height: 1.4;
}
.apex-section-head p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.6;
}
.apex-text-button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--soft);
  padding: 0;
  white-space: nowrap;
}
.apex-text-button:hover {
  color: var(--accent);
}
.apex-text-button .apex-icon {
  height: 14px;
  width: 14px;
}
.apex-load-panel {
  padding: 21px 22px 18px;
}
.apex-chart-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.apex-chart-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  color: var(--soft);
}
.apex-chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.apex-chart-legend span:before {
  content: "";
  width: 12px;
  height: 1.4px;
  background: var(--accent);
}
.apex-chart-legend .atl:before {
  background: #969ed1;
}
.apex-chart-legend .tsb:before {
  background: #c4a17d;
}
.apex-chart-legend b {
  font-weight: 500;
  color: var(--ink);
  margin-left: 1px;
}
.apex-chart-modes {
  padding: 3px;
  border-radius: 5px;
  gap: 3px !important;
}
.apex-chart-modes button {
  font-size: 10px;
  padding: 5px 9px;
  min-height: 26px;
}
.apex-chart-shell .chart {
  margin-top: 4px;
  min-height: 0;
  width: 100%;
  height: auto;
  display: block;
}
.chart text {
  fill: #a8b2c2;
  font: 12px var(--font-sans);
}
.chart-grid-line {
  stroke: #303641;
  stroke-width: 0.65;
}
.chart path {
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
.chart-foot {
  color: var(--muted);
}
.apex-chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.apex-chart-foot b {
  font-weight: 400;
  color: var(--soft);
}
.apex-chart-foot > span:last-child {
  text-align: right;
}
.apex-recent-panel {
  padding: 21px 22px 16px;
  flex: 1;
}
.apex-recent-panel .apex-section-head {
  margin-bottom: 8px;
}
.apex-recent-list {
  display: flex;
  flex-direction: column;
}
.apex-recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
  min-width: 0;
}
.apex-recent-row:last-child {
  border: 0;
}
.apex-ride-symbol {
  height: 32px;
  width: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #283329;
  color: #d0dfa5;
  border-radius: 5px;
}
.apex-ride-symbol.threshold {
  background: #392f28;
  color: #d2ac83;
}
.apex-ride-symbol .apex-icon {
  height: 16px;
  width: 16px;
}
.apex-recent-row > div {
  min-width: 0;
  flex: 1;
}
.apex-recent-row > div > b {
  font-size: 12px;
  font-weight: 500;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.apex-recent-row > div > small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.apex-recent-row > strong {
  font-size: 18px;
  font-weight: 450;
  letter-spacing: -0.5px;
  text-align: right;
  white-space: nowrap;
}
.apex-recent-row > strong small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.1px;
  font-weight: 400;
  margin-top: 3px;
}
.apex-recent-row > .apex-icon {
  height: 13px;
  width: 13px;
  color: var(--muted);
}
.apex-recovery-panel {
  padding: 21px;
}
.apex-recovery-panel .apex-section-head {
  margin-bottom: 23px;
}
.apex-recovery-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.apex-recovery-ring {
  height: 94px;
  width: 94px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--score), #30353e 0);
  padding: 2px;
  transform: rotate(-30deg);
}
.apex-recovery-ring > div {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding-top: 26px;
  transform: rotate(30deg);
}
.apex-recovery-ring strong {
  font-size: 35px;
  letter-spacing: -1.1px;
  font-weight: 500;
}
.apex-recovery-ring span {
  font-size: 11px;
  color: var(--muted);
}
.apex-recovery-copy > span {
  font-size: 8px;
  letter-spacing: 1.1px;
  color: var(--muted);
}
.apex-recovery-copy h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 8px 0;
  line-height: 1.4;
}
.apex-recovery-copy p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.apex-recovery-metrics {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.apex-recovery-metrics > div > span {
  font-size: 9px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.apex-recovery-metrics .apex-icon {
  height: 11px;
  width: 11px;
}
.apex-recovery-metrics b {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 8px;
  white-space: nowrap;
}
.apex-recovery-metrics small {
  font-size: 8px;
  font-weight: 400;
}
.apex-recovery-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--soft);
  padding: 16px 0 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.apex-recovery-link .apex-icon {
  height: 14px;
  width: 14px;
}
.apex-next-panel {
  padding: 21px;
  flex: 1;
}
.apex-next-panel .apex-small-label {
  font-size: 8px;
}
.apex-next-date {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
  margin: 13px 0;
  text-transform: uppercase;
}
.apex-next-date > b {
  font-size: 27px;
  color: var(--ink);
  font-weight: 450;
  letter-spacing: -0.7px;
}
.apex-next-panel h3 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.apex-next-panel p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 8px;
}
.apex-next-panel .apex-text-button {
  margin-top: 20px;
  color: var(--accent);
  font-size: 11px;
}
.apex-week-panel {
  padding: 20px 22px;
  position: relative;
}
.apex-week-panel .apex-section-head {
  margin-bottom: 12px;
}
.apex-week-panel .apex-section-head p {
  font-size: 10px;
}
.apex-week-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 14px;
}
.apex-week-summary > span {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.6;
}
.apex-week-summary b {
  font-weight: 450;
  color: var(--soft);
}
.apex-week-summary i {
  height: 4px;
  width: 4px;
  background: var(--accent);
  border-radius: 50%;
}
.apex-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.apex-day {
  border-right: 1px solid var(--line);
  padding: 3px 16px;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  min-height: 152px;
  border-radius: 0;
  background: none;
}
.apex-day:first-child {
  padding-left: 0;
}
.apex-day:last-child {
  padding-right: 0;
  border: 0;
}
.apex-day:hover {
  background: #ffffff03;
}
.apex-day-top {
  display: flex;
  gap: 7px;
  align-items: baseline;
  width: 100%;
  color: var(--muted);
  margin-bottom: 10px;
}
.apex-day-top > span {
  font-size: 11px;
}
.apex-day-top > b {
  font-size: 16px;
  font-weight: 450;
  color: var(--ink);
}
.apex-day.today .apex-day-top > b {
  color: var(--accent);
}
.apex-day-top .apex-icon {
  height: 11px;
  width: 11px;
  margin-left: auto;
  color: var(--accent);
}
.apex-workout-type {
  height: 3px;
  width: 16px;
  background: #93aa85;
  display: block;
  border-radius: 3px;
  margin-bottom: 9px;
}
.apex-workout-type.threshold {
  background: #c7a37d;
}
.apex-day > strong {
  font-size: 11px;
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 13px;
  min-height: 31px;
}
.apex-day > strong small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.apex-day-stats {
  margin-top: auto;
}
.apex-day-stats b {
  display: block;
  font-size: 11px;
  font-weight: 450;
  white-space: nowrap;
}
.apex-day-stats span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
}
.apex-day-status {
  font-size: 9px;
  margin-top: 10px;
  color: var(--muted);
}
.apex-day.done .apex-day-status {
  color: #d0dfa5;
}
.apex-day.rest .apex-workout-type {
  background: #687060;
}
.apex-day.rest > strong {
  color: var(--muted);
}
.apex-plan-note {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 16px;
}
/* Every existing functional component uses the same dark surface and clear contrast. */
input,
textarea,
select {
  color: var(--ink);
  background: #11161d;
  border-color: #414956;
  border-radius: 5px;
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: #8f9aaa;
  opacity: 1;
}
label {
  font-size: 12px;
  color: #bdc7d4;
}
input[readonly] {
  background: #252b33;
  color: #b0bac7;
}
input:disabled,
select:disabled {
  opacity: 0.65;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
}
input[type="file"] {
  font-size: 12px;
}
input[type="file"]::file-selector-button {
  color: var(--ink);
  background: #303946;
  border: 1px solid #4a5464;
  border-radius: 4px;
  padding: 7px 10px;
  margin-right: 12px;
  cursor: pointer;
}
.form-row {
  gap: 16px;
}
.checkbox-label {
  font-size: 12px;
  color: var(--soft);
}
.checkbox-label input {
  min-height: 0;
}
.segmented {
  background: #14181f;
  border: 1px solid var(--line);
  padding: 4px;
}
.segmented button {
  font-size: 12px;
  color: #a7b1bf;
  min-height: 34px;
}
.segmented button.selected {
  background: #303742;
  color: var(--ink);
  box-shadow: none;
}
.segmented button:hover {
  color: var(--ink);
}
.toolbar {
  gap: 15px;
}
.toolbar strong {
  font-size: 14px;
  color: var(--ink);
}
.icon-button,
.toolbar .icon-button {
  background: var(--surface);
  color: var(--soft);
  border-color: var(--line);
}
.calendar {
  background: var(--surface);
  border-color: var(--line);
}
.calendar-day {
  border-right-color: var(--line);
  padding: 12px;
}
.calendar-date small {
  color: var(--muted);
  font-size: 10px;
}
.calendar-date b {
  color: var(--ink);
  font-size: 28px;
}
.calendar-day.current {
  background: #1e251d;
}
.current .calendar-date b {
  background: #34432a;
  color: var(--accent);
}
.workout {
  background: #242e22;
  border-color: #9eb775;
  border-left-width: 2px;
  padding: 14px 12px;
  gap: 10px;
  color: #e1e9d8;
}
.workout.by-athlete {
  background: #2c2536;
  border-color: #b49acf;
  color: #e4dbec;
}
.workout > b {
  font-size: 12px;
  line-height: 1.55;
}
.workout > span {
  font-size: 11px;
}
.workout-state {
  color: #bac9a9;
}
.workout strong {
  font-size: 19px;
  color: var(--ink);
}
.workout strong small {
  color: #bac5b1;
  font-size: 10px;
}
.author {
  background: #34442a;
  color: #cee0ad;
  font-size: 10px;
}
.author.athlete {
  background: #3d2f4d;
  color: #d6bee9;
}
.race-workout {
  background: #332c22;
  border-color: #c4a167;
  color: #e8dabf;
}
.calendar-context {
  background: #332a35;
  color: #d4b5d2;
  font-size: 11px;
  line-height: 1.7;
}
.add-day {
  border-color: #3b444f;
  color: #a8b68e;
}
.add-day:hover {
  background: #262f23;
}
.calendar .cycling-discipline {
  background: #ffffff08;
  color: #d0d8c7;
}
.calendar .by-athlete .cycling-discipline {
  color: #dbcee6;
}
.table-wrap {
  border-color: var(--line);
  border-radius: 7px;
}
table {
  color: var(--ink);
  font-size: 13px;
}
th {
  background: #1e242d;
  color: #a9b5c5;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.7px;
  border-bottom-color: #3c4551;
  padding: 13px 15px;
}
td {
  border-bottom-color: var(--line);
  font-size: 12px;
  color: #d6dde8;
  padding: 14px 15px;
}
tbody tr:hover {
  background: #ffffff03;
}
.table-link {
  color: #d4e7a8;
  font-size: 12px;
}
.selected-row {
  background: #283223;
}
.metric {
  background: var(--surface);
  border-color: var(--line);
}
.metric > span {
  font-size: 12px;
  color: var(--soft);
}
.metric > div {
  color: var(--ink);
  font-weight: 500;
}
.metric p {
  color: var(--muted);
  font-size: 11px;
}
.metric.highlight {
  background: #252f22;
  border-color: #3c4a30;
}
.detail-stats {
  background: #202630;
  border: 1px solid var(--line);
  color: var(--ink);
}
.detail-stats small {
  font-size: 11px;
  color: var(--muted);
}
.detail-stats b {
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.detail-heading p {
  color: var(--muted);
  font-size: 13px;
}
.stream-controls h3 {
  font-weight: 500;
}
.ride-interval-panel {
  background: #151b22;
  border-color: #3a4551;
}
.interval-result {
  border-top-color: #394451;
}
.interval-result > div > span {
  font-size: 11px;
  color: var(--muted);
}
.interval-result b {
  color: var(--accent);
  font-weight: 450;
}
.interval-result small {
  color: var(--muted);
  font-size: 11px;
}
.interval-quick button {
  color: var(--soft);
  background: #202630;
  border-color: #3b4653;
  font-size: 11px;
}
.interval-quick button.selected {
  background: #34432a;
  color: var(--accent);
  border-color: #657949;
}
.ranking-explainer {
  background: #1e252e;
  border-color: #3a4551;
  color: var(--soft);
}
.record-hero {
  background: #20291e;
  border: 1px solid #3e4c32;
}
.record-hero > b {
  color: var(--accent);
  font-weight: 500;
}
.record-hero > span,
.record-hero p {
  color: #b9c7a7;
}
.record-hero > .paired-hr b,
.paired-hr b {
  color: #e5aa9d;
}
.record-hero > .weight-basis {
  color: #c2cfb5;
}
.weight-basis {
  color: var(--muted);
}
.honor {
  border-color: #665839;
  background: #332d22;
  color: #e2c88d;
}
.honor.history-best {
  color: #f1d68e;
  background: #3b321e;
}
.honor.year-best {
  color: #d4dfad;
  background: #2d3823;
}
.honor.month-best {
  color: #bfcee5;
  background: #293446;
}
.year-best.annual-first {
  color: #e8d59e;
  border-color: #7f6c3e;
  background: #352e20;
}
.honors {
  gap: 5px;
}
.score-ring {
  background: conic-gradient(var(--accent) var(--score), #303641 0);
  padding: 3px;
}
.score-ring b {
  background: var(--surface);
  color: var(--ink);
  font-weight: 450;
}
.score-ring small {
  color: var(--muted);
}
.calm-card {
  background: #222b20;
}
.calm-card p {
  color: #bcc9b0;
}
.zones > div {
  border-color: var(--line);
  color: var(--soft);
}
.local-info,
.editor-section,
.record-summary,
.menu-list article,
.week-plan-brief {
  background: #1e252d;
  border-color: var(--line);
  color: var(--soft);
}
.rider-profile {
  background: var(--surface);
}
.profile-numbers b,
.athlete-numbers b {
  color: var(--ink);
}
.profile-numbers {
  border-color: var(--line);
}
.athlete-card p,
.profile-numbers small {
  color: var(--muted);
}
.athlete-open {
  border-color: var(--line);
  color: var(--accent);
}
.timeline article {
  border-color: #424b59;
}
.maintenance-row {
  border-color: var(--line);
}
.body-summary {
  color: #aeb9c9;
}
.bike-placeholder {
  background: #20262c;
  color: #9aaa98;
}
.focus-options label {
  background: #293122;
  color: #d6e3c3;
}
.nutrition-row {
  background: #1b222a;
  border-color: var(--line);
}
.nutrition-row input,
.nutrition-row select {
  color: var(--ink);
}
.block-row {
  background: #1c232c;
  border-color: var(--line);
  padding: 14px;
}
.structure-bars {
  border-bottom-color: #414a58;
  background: #13191f;
  border-radius: 5px 5px 0 0;
}
.structure-bars > div {
  background: #94ad73;
  border-color: #bdce9e;
}
.block-summary span {
  background: #252d34;
  border-color: var(--line);
  color: #d5dfc8;
  font-size: 12px;
}
.zone-chart div > span {
  color: var(--soft);
}
.zone-chart small {
  color: var(--muted);
}
.document-metrics span {
  background: #252d36;
  color: var(--muted);
}
.document-metrics b {
  color: var(--ink);
}
.document-preview {
  background: #11161c;
  border-color: var(--line);
}
.report-text {
  background: #11171d;
  border-color: var(--line);
  color: #cbd5e4;
  font-size: 12px;
}
.food-source {
  color: var(--muted);
  font-size: 11px;
}
.menu-list article {
  background: #202730;
  border-color: var(--line);
}
.menu-total {
  background: #2b3524;
  color: #dce9c7;
  border-color: #45543a;
}
.notification-item {
  border-color: var(--line);
}
.glossary-item,
.exercise-edit {
  border-color: var(--line);
}
.glossary-item p {
  color: var(--soft);
  font-size: 13px;
}
.exercise-card {
  background: var(--surface-inset);
  border-color: #35424a;
  box-shadow: none;
  color: var(--ink);
}
.exercise-card p {
  color: #b8c2d0;
}
.exercise-card b {
  color: #d3ddc8;
}
.exercise-animation > rect:first-of-type {
  fill: #20272a;
}
.exercise-animation > text {
  fill: #b2c1ac;
}
.exercise-animation polygon[fill="#54775b"] {
  fill: #87a579;
}
.exercise-animation > path {
  fill: #2e3a36;
}
.exercise-animation > ellipse {
  fill: #111b17;
}
.route-panel {
  border-color: var(--line);
}
.route-map {
  background: #151e1a;
  border-color: #344239;
}
.route-map text {
  fill: #d1dfbf;
}
.map-caption {
  color: var(--muted);
}
.map-caption a {
  color: #b8ca9d;
}
.integration {
  border-color: var(--line);
}
.integration p {
  color: var(--muted);
  font-size: 12px;
}
.integration a {
  color: var(--accent);
  font-size: 12px;
}
.integration-logo {
  background: #202630;
  border-color: #3c4653;
}
.notification-button {
  border-color: var(--line);
  color: var(--ink);
}
.allergy-options label {
  color: var(--soft);
}
.calorie-toggle {
  background: #20281d;
  border-color: #3c4b32;
}
.calorie-toggle small {
  color: #bdcbb0;
}
.pagination span {
  color: var(--muted);
}
/* Dialogs preserve all existing forms and data actions. */
dialog {
  background: #191e26;
  border: 1px solid #424b59;
  color: var(--ink);
  border-radius: 11px;
  box-shadow: 0 24px 100px #000a;
  padding: 28px;
  max-height: 92dvh;
}
dialog::backdrop {
  background: #03070bc7;
  backdrop-filter: blur(5px);
}
.modal-top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.modal-top > span {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #9ca9b9;
}
.modal-top .icon-button {
  background: #252d37;
  border: 1px solid #414d5c;
  color: var(--ink);
  border-radius: 6px;
}
dialog h2 {
  font-weight: 550;
}
dialog label {
  color: #c0cad7;
}
dialog .fineprint {
  font-size: 12px;
}
.detail-stats div {
  min-width: 0;
}
dialog .button-row {
  gap: 10px;
}
#toast {
  background: #d9ed96;
  color: #1a2412;
  box-shadow: 0 12px 45px #0006;
  font-size: 13px;
  border: 1px solid #e2f2bc;
}
summary {
  color: var(--soft);
  cursor: pointer;
  line-height: 1.6;
}
summary::marker {
  color: #b3c78a;
}
.glossary-item summary {
  color: var(--ink);
}
@media (min-width: 1680px) {
  .apex-grid {
    grid-template-columns: 290px minmax(0, 1fr) 310px;
  }
  .apex-hero-number {
    font-size: 92px;
  }
  .apex-chart-shell .chart {
    max-height: 300px;
  }
  .apex-score-stats b {
    font-size: 27px;
  }
}
@media (max-width: 1280px) {
  .apex-header {
    gap: 19px;
    padding-inline: 25px;
  }
  .apex-brand {
    font-size: 18px;
  }
  .apex-header-tools {
    gap: 10px;
  }
  .apex-coach {
    display: none;
  }
  .apex-nav-button {
    font-size: 11px;
    padding-inline: 10px;
  }
  .apex-roster {
    padding-inline: 25px;
    gap: 18px;
  }
  .apex-rider-select {
    display: none;
  }
  .apex-grid {
    grid-template-columns: 230px minmax(0, 1fr) 245px;
    gap: 20px;
  }
  .apex-score {
    padding: 22px 20px;
  }
  .apex-hero-number {
    font-size: 72px;
  }
  .apex-recovery-panel,
  .apex-next-panel {
    padding: 19px;
  }
  .apex-recovery-metrics {
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
  }
  .apex-recovery-metrics > div:last-child {
    grid-column: 1/-1;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .apex-recovery-metrics > div:last-child b {
    margin: 0;
  }
  .apex-recent-row > div > small {
    font-size: 9px;
  }
  .apex-section-head h2 {
    font-size: 13px;
  }
  .apex-chart-legend {
    gap: 13px;
  }
  .apex-chart-foot {
    font-size: 8px;
  }
  .apex-load-panel,
  .apex-recent-panel {
    padding-inline: 19px;
  }
  .apex-day {
    padding-inline: 12px;
  }
  .apex-day > strong {
    font-size: 10px;
  }
  .apex-demo-note {
    padding-inline: 25px;
  }
  .apex-footer {
    padding-inline: 25px;
  }
  .card-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 1050px) {
  .apex-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
  }
  .apex-side {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
  }
  .apex-recovery-main {
    flex-direction: row;
    align-items: center;
    gap: 23px;
  }
  .apex-recovery-panel .apex-section-head {
    margin-bottom: 18px;
  }
  .apex-recovery-metrics {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
  .apex-recovery-metrics > div:last-child {
    display: block;
    grid-column: auto;
  }
  .apex-recovery-metrics > div:last-child b {
    margin-top: 8px;
  }
  .apex-score {
    min-height: 490px;
  }
  .apex-navigation {
    margin-left: auto;
    margin-right: 0;
  }
  .apex-nav-button {
    font-size: 10px;
    padding-inline: 8px;
  }
  .apex-header {
    gap: 15px;
  }
  .apex-header-tools {
    gap: 7px;
  }
  .apex-role select {
    width: 116px;
    font-size: 10px;
  }
  .apex-brand {
    font-size: 17px;
  }
  .apex-brand-mark {
    font-size: 30px;
    width: 29px;
  }
  .apex-brand-mark > span {
    font-size: 15px;
  }
  .apex-roster-label {
    font-size: 7px;
  }
  .apex-rider-chip {
    font-size: 11px;
  }
  .apex-day > strong {
    font-size: 10px;
  }
  .apex-week-grid {
    overflow: auto;
    grid-template-columns: repeat(7, minmax(115px, 1fr));
    padding-bottom: 8px;
  }
  .calendar {
    grid-template-columns: repeat(7, minmax(155px, 1fr));
    overflow: auto;
  }
  .apex-week-summary {
    justify-content: flex-start;
  }
  .apex-overview-heading h1 {
    font-size: 35px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-wrap: wrap;
  }
  .form-row > label {
    flex-basis: 180px;
  }
  .metric p {
    font-size: 11px;
  }
  .apex-chart-shell .chart {
    min-height: 210px;
  }
  .apex-rider-list {
    scrollbar-width: thin;
  }
}
@media (max-width: 760px) {
  .apex-header {
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    padding: 0 18px;
    position: relative;
  }
  .apex-brand {
    display: flex;
    font-size: 18px;
    min-height: 59px;
  }
  .apex-brand-mark {
    font-size: 32px;
    width: 30px;
  }
  .apex-header-tools {
    grid-column: 2;
    grid-row: 1;
    gap: 8px;
  }
  .apex-role select {
    font-size: 10px;
    width: 119px;
    min-height: 34px;
  }
  .apex-notification {
    min-width: 31px;
  }
  .apex-notification .apex-icon {
    width: 16px;
    height: 16px;
  }
  .apex-notification span {
    font-size: 9px;
  }
  .apex-navigation {
    grid-column: 1/-1;
    grid-row: 2;
    display: flex;
    justify-content: flex-start;
    gap: 2px;
    margin: 0 -18px;
    padding: 0 12px;
    overflow-x: auto;
    scrollbar-width: none;
    min-height: 44px;
    border-top: 1px solid #252c34;
  }
  .apex-navigation::-webkit-scrollbar {
    display: none;
  }
  .apex-nav-button {
    height: 44px;
    padding: 12px 11px;
    font-size: 11px;
    flex-shrink: 0;
  }
  .apex-more {
    position: static;
    flex-shrink: 0;
  }
  .apex-more-menu {
    position: fixed;
    top: 105px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100dvh - 125px);
    overflow: auto;
    z-index: 40;
    padding: 9px;
    box-shadow: 0 30px 100px #000c;
  }
  .apex-more-menu button {
    font-size: 14px;
    padding: 14px;
  }
  .apex-roster {
    padding: 11px 17px;
    min-height: 65px;
    gap: 14px;
  }
  .apex-roster-label {
    font-size: 6px;
    letter-spacing: 0.7px;
  }
  .apex-roster-label b {
    font-size: 8px;
  }
  .apex-rider-chip {
    font-size: 11px;
    padding: 6px 11px 6px 6px;
    gap: 8px;
    min-height: 39px;
  }
  .apex-avatar {
    height: 25px;
    width: 25px;
    font-size: 8px;
  }
  .apex-rider-list {
    gap: 7px;
  }
  .apex-demo-note {
    padding: 8px 18px;
    gap: 10px;
    font-size: 9px;
    align-items: flex-start;
  }
  .apex-demo-note > button {
    font-size: 9px;
    min-height: 26px;
  }
  .apex-demo-note > span {
    line-height: 1.6;
  }
  .apex-footer {
    font-size: 9px;
    padding: 0 18px 23px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }
  .apex-footer > span:first-child,
  .apex-footer > span:last-child {
    font-size: 9px;
  }
  .apex-footer > span:nth-child(2) {
    width: 100%;
    order: 3;
    line-height: 1.7;
  }
  .apex-footer > span:last-child {
    margin-left: auto;
  }
  main {
    padding: 24px 18px 27px;
  }
  .main-shell {
    margin: 0;
    padding: 0;
  }
  .apex-overview-heading {
    align-items: center;
    gap: 12px;
    margin-bottom: 23px;
  }
  .apex-overview-heading h1 {
    font-size: 30px;
    letter-spacing: -1.2px;
  }
  .apex-overview-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1.15px;
  }
  .apex-overview-heading p {
    font-size: 10px;
    line-height: 1.6;
  }
  .apex-overview-heading p .body-summary {
    margin: 5px 0 0;
    display: block;
  }
  .apex-overview-heading .primary {
    font-size: 10px;
    padding: 10px 12px;
    gap: 6px;
    min-height: 40px;
    white-space: normal;
    max-width: 145px;
    line-height: 1.5;
  }
  .apex-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .apex-score {
    min-height: 0;
    padding: 21px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 23px;
  }
  .apex-score > .apex-small-label {
    grid-column: 1/-1;
    font-size: 7px;
  }
  .apex-hero-number {
    grid-column: 1;
    grid-row: 2;
    font-size: 65px;
    letter-spacing: -4px;
    align-self: center;
    margin: 13px 0;
  }
  .apex-hero-number small {
    font-size: 13px;
    margin-left: 6px;
  }
  .apex-plan-status {
    grid-column: 1;
    grid-row: 3;
    font-size: 10px;
  }
  .apex-plan-status small {
    font-size: 9px;
  }
  .apex-progress {
    grid-column: 1;
    grid-row: 4;
  }
  .apex-progress > span {
    font-size: 9px;
    line-height: 1.6;
  }
  .apex-score-stats {
    grid-column: 2;
    grid-row: 2/5;
    margin-top: 17px;
    gap: 22px;
    justify-content: end;
  }
  .apex-score-stats > div > span {
    font-size: 10px;
  }
  .apex-score-stats b {
    font-size: 22px;
    letter-spacing: -0.8px;
    margin: 7px 0 4px;
  }
  .apex-score-stats b em {
    font-size: 10px;
  }
  .apex-score-stats small {
    font-size: 9px;
    line-height: 1.7;
  }
  .apex-balance {
    grid-column: 1/-1;
    margin-top: 22px;
    grid-template-columns: 0.8fr 1fr 1.35fr;
    gap: 13px;
    align-items: center;
    padding-top: 17px;
  }
  .apex-balance > span {
    grid-column: auto;
    font-size: 10px;
    margin: 0;
  }
  .apex-balance strong {
    font-size: 29px;
    text-align: center;
  }
  .apex-balance p {
    font-size: 9px;
    text-align: right;
    line-height: 1.8;
  }
  .apex-balance strong small {
    font-size: 8px;
  }
  .apex-center {
    gap: 18px;
  }
  .apex-side {
    grid-column: auto;
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
  }
  .apex-recovery-panel,
  .apex-next-panel {
    padding: 17px;
  }
  .apex-recovery-panel .apex-section-head {
    margin-bottom: 18px;
  }
  .apex-recovery-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 17px;
  }
  .apex-recovery-ring {
    height: 76px;
    width: 76px;
  }
  .apex-recovery-ring > div {
    padding-top: 20px;
  }
  .apex-recovery-ring strong {
    font-size: 28px;
  }
  .apex-recovery-ring span {
    font-size: 9px;
  }
  .apex-recovery-copy > span {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .apex-recovery-copy h3 {
    font-size: 13px;
  }
  .apex-recovery-copy p {
    font-size: 10px;
  }
  .apex-recovery-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .apex-recovery-metrics > div > span {
    font-size: 8px;
  }
  .apex-recovery-metrics b {
    font-size: 10px;
  }
  .apex-recovery-metrics > div:last-child {
    grid-column: 1/-1;
  }
  .apex-recovery-link {
    font-size: 9px;
    gap: 8px;
    line-height: 1.6;
  }
  .apex-recovery-link .apex-icon {
    width: 12px;
    height: 12px;
  }
  .apex-next-panel .apex-small-label {
    font-size: 7px;
    line-height: 1.7;
  }
  .apex-next-date {
    flex-wrap: wrap;
    font-size: 8px;
    margin: 15px 0;
  }
  .apex-next-date > b {
    font-size: 25px;
  }
  .apex-next-panel h3 {
    font-size: 14px;
  }
  .apex-next-panel p {
    font-size: 10px;
  }
  .apex-next-panel .apex-text-button {
    font-size: 10px;
    white-space: normal;
    line-height: 1.7;
  }
  .apex-section-head h2 {
    font-size: 14px;
  }
  .apex-section-head p {
    font-size: 10px;
  }
  .apex-section-head {
    gap: 10px;
  }
  .apex-text-button {
    font-size: 10px;
  }
  .apex-load-panel,
  .apex-recent-panel {
    padding: 19px 17px;
  }
  .apex-chart-toolbar {
    gap: 9px;
  }
  .apex-chart-legend {
    font-size: 10px;
    gap: 11px;
  }
  .apex-chart-legend span {
    gap: 4px;
  }
  .apex-chart-legend span:before {
    width: 9px;
  }
  .apex-chart-modes {
    padding: 2px;
  }
  .apex-chart-modes button {
    font-size: 9px;
    padding: 4px 7px;
    min-height: 24px;
  }
  .apex-chart-shell {
    width: 100%;
    overflow: hidden;
  }
  .apex-chart-shell .chart {
    height: 190px;
    min-height: 0;
    width: 100%;
  }
  .chart text {
    font-size: 13px;
  }
  .apex-chart-foot {
    font-size: 8px;
    gap: 12px;
    line-height: 1.7;
  }
  .apex-chart-foot > span:last-child {
    max-width: 175px;
  }
  .apex-recent-row {
    gap: 10px;
    padding: 15px 0;
  }
  .apex-recent-row > div > b {
    font-size: 12px;
  }
  .apex-recent-row > div > small {
    font-size: 10px;
  }
  .apex-recent-row > strong {
    font-size: 17px;
  }
  .apex-recent-row > .apex-icon {
    width: 12px;
    height: 12px;
  }
  .apex-week-panel {
    padding: 19px 17px;
  }
  .apex-week-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 10px;
  }
  .apex-week-grid {
    grid-template-columns: repeat(7, minmax(119px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .apex-day {
    padding-inline: 13px;
    min-height: 160px;
  }
  .apex-day > strong {
    font-size: 11px;
  }
  .apex-day-stats b {
    font-size: 11px;
  }
  .apex-day-stats span {
    font-size: 9px;
  }
  .apex-plan-note {
    font-size: 10px;
    line-height: 1.8;
  }
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading .button-row,
  .page-heading > .primary {
    width: 100%;
  }
  .card {
    padding: 21px 18px;
  }
  .card-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .card-heading h3 {
    font-size: 16px;
  }
  .card-heading p {
    font-size: 12px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .metric {
    padding: 17px;
  }
  .metric > span {
    font-size: 11px;
  }
  .metric > div {
    font-size: 28px;
  }
  .metric p {
    font-size: 11px;
  }
  .calendar {
    grid-template-columns: repeat(7, minmax(155px, 1fr));
    overflow: auto;
  }
  .calendar-day {
    padding: 10px;
  }
  .calendar-date small {
    font-size: 9px;
  }
  .calendar-date b {
    font-size: 25px;
  }
  .workout {
    padding: 12px 10px;
  }
  .workout > b {
    font-size: 12px;
  }
  .workout > span {
    font-size: 10px;
  }
  .workout strong small {
    font-size: 9px;
  }
  .two-col,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .form-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .form-row > label {
    flex: initial;
    width: 100%;
    min-width: 0;
  }
  .form-row > button {
    width: 100%;
    margin-bottom: 17px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 44px;
  }
  input[type="checkbox"],
  input[type="radio"] {
    min-height: 0;
  }
  .primary,
  .secondary,
  .danger {
    min-height: 42px;
  }
  .segmented {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .segmented button {
    font-size: 12px;
    padding: 8px 11px;
  }
  .apex-chart-modes {
    flex-wrap: nowrap;
  }
  .apex-chart-modes button {
    font-size: 9px;
    padding: 4px 7px;
    min-height: 24px;
  }
  .legend {
    font-size: 11px;
    gap: 12px;
  }
  .legend i {
    height: 2px;
    width: 13px;
    border-radius: 0;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar > div {
    flex-wrap: wrap;
  }
  .toolbar strong {
    font-size: 13px;
  }
  .record-hero {
    padding: 21px 15px;
  }
  .record-hero > b {
    font-size: 45px;
  }
  .record-hero p {
    font-size: 11px;
  }
  .interval-picker {
    grid-template-columns: 1fr 1fr;
  }
  .interval-picker > button {
    grid-column: 1/-1;
  }
  .interval-result {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .interval-result > div > span {
    font-size: 11px;
  }
  .interval-result b {
    font-size: 30px;
  }
  .paired-hr b {
    font-size: 16px;
  }
  .paired-hr small {
    font-size: 11px;
  }
  .table-wrap {
    max-width: 100%;
    overflow: auto;
  }
  th {
    font-size: 10px;
    white-space: nowrap;
    padding: 12px;
  }
  td {
    font-size: 12px;
    padding: 13px 12px;
  }
  .table-link {
    font-size: 12px;
  }
  .report-field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-numbers {
    gap: 25px;
    flex-wrap: wrap;
  }
  .bike-card .athlete-numbers {
    gap: 18px;
    flex-wrap: wrap;
  }
  .exercise-grid {
    grid-template-columns: 1fr;
  }
  .block-row {
    grid-template-columns: 1fr 1fr;
  }
  .block-row input,
  .block-row select {
    font-size: 14px;
  }
  .nutrition-row {
    grid-template-columns: 1fr 1fr;
  }
  .allergy-options {
    grid-template-columns: 1fr 1fr;
  }
  .fineprint {
    font-size: 12px;
  }
  .body-text {
    font-size: 14px;
  }
  .detail-stats {
    grid-template-columns: 1fr 1fr;
    padding: 17px;
    gap: 18px;
  }
  .detail-stats b {
    font-size: 19px;
  }
  .detail-heading h2 {
    font-size: 25px;
    line-height: 1.35;
  }
  .detail-heading p {
    font-size: 12px;
  }
  dialog {
    max-width: calc(100vw - 20px);
    width: 760px;
    padding: 21px 18px;
    max-height: 94dvh;
  }
  .modal-top {
    margin-bottom: 17px;
  }
  .modal-top > span {
    font-size: 9px;
  }
  .modal-top .icon-button {
    min-height: 36px;
    min-width: 36px;
  }
  .route-map {
    min-height: 180px;
  }
  .map-caption {
    font-size: 11px;
    gap: 10px;
  }
  .map-caption .text-button {
    font-size: 11px;
    white-space: normal;
  }
  .integration {
    gap: 13px;
    flex-wrap: wrap;
  }
  .integration p {
    font-size: 12px;
  }
  .integration a {
    font-size: 12px;
  }
  .integration-logo {
    height: 36px;
    width: 36px;
  }
  .calorie-toggle {
    align-items: flex-start;
  }
  .calorie-toggle label {
    font-size: 12px;
    line-height: 1.7;
  }
  .calorie-toggle small {
    font-size: 11px;
  }
  .allergy-options label {
    font-size: 12px;
  }
  .zone-chart > div {
    grid-template-columns: 25px 1fr 88px 42px;
  }
  .zone-chart b,
  .zone-chart small {
    font-size: 10px;
  }
  .glossary-item p {
    font-size: 13px;
  }
  .glossary-item summary {
    font-size: 14px;
  }
}
@media (max-width: 390px) {
  .apex-header {
    padding-inline: 14px;
  }
  .apex-brand {
    font-size: 16px;
    gap: 8px;
  }
  .apex-brand-mark {
    font-size: 29px;
    width: 28px;
  }
  .apex-brand-mark > span {
    font-size: 14px;
  }
  .apex-role select {
    font-size: 9px;
    width: 109px;
  }
  .apex-header-tools {
    gap: 5px;
  }
  .apex-notification {
    min-width: 28px;
  }
  .apex-navigation {
    margin-inline: -14px;
    padding-inline: 9px;
  }
  .apex-roster {
    padding-inline: 14px;
  }
  .apex-roster-label {
    display: none;
  }
  .apex-demo-note {
    padding-inline: 15px;
  }
  .apex-demo-note > button {
    display: none;
  }
  main {
    padding-inline: 14px;
  }
  .apex-overview-heading h1 {
    font-size: 28px;
  }
  .apex-overview-heading .primary {
    font-size: 9px;
    max-width: 128px;
    padding-inline: 10px;
  }
  .apex-score {
    padding: 18px;
    column-gap: 16px;
  }
  .apex-hero-number {
    font-size: 58px;
  }
  .apex-score-stats b {
    font-size: 20px;
  }
  .apex-side {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .apex-recovery-panel,
  .apex-next-panel {
    padding: 15px;
  }
  .apex-section-head h2 {
    font-size: 13px;
  }
  .apex-recovery-copy h3 {
    font-size: 12px;
  }
  .apex-recovery-copy p {
    font-size: 9px;
  }
  .apex-recovery-metrics > div > span {
    font-size: 7px;
  }
  .apex-recovery-metrics b {
    font-size: 9px;
  }
  .apex-next-panel h3 {
    font-size: 13px;
  }
  .apex-recent-row > div > small {
    font-size: 9px;
  }
  .apex-chart-legend {
    font-size: 9px;
    gap: 9px;
  }
  .apex-chart-modes button {
    font-size: 8px;
    padding-inline: 6px;
  }
  .report-field-grid,
  .allergy-options {
    grid-template-columns: 1fr;
  }
  .apex-chart-foot {
    font-size: 7px;
  }
  .apex-chart-foot > span:last-child {
    max-width: 145px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep all secondary sections discoverable on a narrow screen. */
.apex-primary-links {
  display: contents;
}
@media (max-width: 760px) {
  .apex-navigation {
    overflow: visible;
    min-width: 0;
  }
  .apex-primary-links {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .apex-primary-links::-webkit-scrollbar {
    display: none;
  }
  .apex-more {
    flex: 0 0 auto;
    background: var(--bg);
    border-left: 1px solid var(--line);
  }
}

.startup-message {
  color: var(--soft);
  padding: 48px;
  font: 16px var(--font-sans);
}
.apex-demo-actions {
  margin-left: auto;
  flex-shrink: 0;
}
.apex-demo-actions button {
  font-size: 11px;
  color: var(--accent);
  border: 1px solid #566342;
  padding: 7px 12px;
  border-radius: 5px;
}
.apex-demo-actions button:hover {
  background: #283120;
}
.apex-demo-note > span {
  flex-wrap: wrap;
}
.apex-demo-note > span small {
  width: 100%;
  color: var(--amber);
}
@media (max-width: 760px) {
  .apex-demo-note {
    flex-wrap: wrap;
    gap: 8px;
  }
  .apex-demo-actions {
    margin-left: 0;
  }
  .apex-demo-actions button {
    min-height: 34px;
    padding: 6px 10px;
  }
}

/* Login and first-run screens (server mode) */
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 14px;
}
.auth-card h1 {
  font-size: 28px;
  margin: 6px 0 0;
}
.auth-card form {
  display: grid;
  gap: 12px;
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
}
#auth-error,
#first-error {
  color: #e0a193;
  min-height: 1em;
}
.apex-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: inherit;
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

/* Sport icons (src/sport-icons.js) */
.sport-icon {
  width: 17px;
  height: 17px;
  flex: none;
  display: inline-block;
  vertical-align: -3px;
  margin-right: 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sport-cycling { color: #c8df94; }
.sport-run { color: #f0a868; }
.sport-swim { color: #7cc4e8; }
.sport-walk { color: #b9c7a5; }
.sport-hike { color: #a8c47a; }
.sport-row { color: #6fb7b0; }
.sport-ski { color: #b8c8f0; }
.sport-strength { color: #e58a8a; }
.sport-yoga { color: #e3c97a; }
.sport-stairs { color: #f2c36b; }
.sport-other { color: #c9b6e4; }
.apex-ride-symbol .sport-icon { width: 22px; height: 22px; margin: 0; vertical-align: middle; }
.apex-day-sports { display: flex; gap: 2px; min-height: 17px; }
.apex-day-sports .sport-icon { margin-right: 0; }
.tag .sport-icon { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* Ride timeline (src/ride-chart.js) */
.stream-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.stream-tabs button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: transparent; color: inherit; border: 1px solid #3a4038; cursor: pointer;
}
.stream-tabs button i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.stream-tabs button.selected { background: #2a3324; border-color: #c8df94; color: #e9f3cf; }
.stream-wrap { position: relative; }
.ride-stream { width: 100%; height: auto; display: block; touch-action: pan-y; cursor: crosshair; }
.ride-stream text { font-size: 11px; fill: #8b938a; }
.stream-tip {
  position: absolute; top: 4px; min-width: 150px; pointer-events: none;
  background: rgba(17, 22, 19, .94); border: 1px solid #3a4038; border-radius: 10px;
  padding: 8px 10px; font-size: 12px; display: grid; gap: 3px; z-index: 2;
}
.stream-tip[hidden] { display: none; }
.stream-tip span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.stream-tip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.route-cursor { transition: cx .05s linear, cy .05s linear; }

/* Week board on the overview (src/week-board.js) */
.week-board { margin: 22px 0 0; padding: 18px 18px 8px; }
.wb-headline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wb-headline h3 { margin: 0; }
.wb-head, .wb-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) 170px; gap: 6px; }
.wb-head { padding: 0 4px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8b938a; }
.wb-scroll { height: 760px; overflow-y: auto; padding: 0 4px; overscroll-behavior: contain; }
.wb-week { min-height: 180px; padding: 6px 0; border-top: 1px solid #262c27; }
.wb-week.current { background: rgba(200, 223, 148, .04); }
.wb-day { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 10px; background: #161b18; min-width: 0; }
.wb-day.today { outline: 1px solid #c8df94; }
.wb-date { font-size: 12px; color: #8b938a; }
.wb-day.today .wb-date { color: #c8df94; font-weight: 600; }
.wb-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 4px; row-gap: 2px; text-align: left; padding: 7px 8px; border-radius: 8px; border: 1px solid #2c332d; background: #1d241f; color: inherit; cursor: pointer; font-size: 13px; min-width: 0; }
.wb-item .sport-icon { margin: 0; width: 15px; height: 15px; }
.wb-item .wb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-item small { grid-column: 1 / -1; color: #9aa398; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-item.planned { border-style: dashed; background: transparent; }
.wb-item:hover { border-color: #c8df94; }
.wb-add { margin-top: auto; align-self: flex-start; opacity: 0; border: 0; background: none; color: #8b938a; cursor: pointer; font-size: 16px; padding: 0 4px; }
.wb-day:hover .wb-add { opacity: 1; }
.wb-sum { padding: 8px 10px; border-radius: 10px; background: #1b221d; font-size: 12px; }
.wb-sum-head { color: #8b938a; margin-bottom: 6px; }
.wb-sum-grid { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; }
.wb-sum-grid span { color: #8b938a; }
.wb-sum-grid b { text-align: right; font-weight: 600; }
.wb-sum-grid b small { font-weight: 400; color: #8b938a; }
.wb-sum-grid b.neg { color: #e0796b; }
@media (max-width: 900px) {
  .wb-head { display: none; }
  .wb-week { grid-template-columns: 1fr 1fr; }
  .wb-sum { grid-column: 1 / -1; }
  .wb-scroll { height: 70vh; }
}

/* Weather (src/weather.js) */
.weather-badge { margin-left: 6px; font-size: 12px; white-space: nowrap; color: #cfd6cb; }
.wb-item .weather-badge { margin-left: 2px; font-size: 11px; color: #cfd6cb; }
.weather-sub { display: block; font-size: 11px; font-weight: 400; color: #8b938a; margin-top: 2px; }
.weather-slot:empty { display: none; }
.wb-item .weather-slot { grid-column: 3; }

.wb-desc { grid-column: 1 / -1; font-size: 12px; line-height: 1.3; color: #dfe6d6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.workout-desc { display: block; font-style: normal; font-size: 12px; line-height: 1.3; color: #dfe6d6; margin: 2px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wb-sum-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.wb-sum-actions .wb-act:last-child { grid-column: 1 / -1; }
.wb-act { flex: 1; padding: 5px 4px; font-size: 11px; border-radius: 7px; border: 1px solid #3a4038; background: #222a24; color: #dfe6d6; cursor: pointer; white-space: nowrap; }
.wb-act:hover { border-color: #c8df94; color: #e9f3cf; }
.wb-race { border-color: #8a7330; background: #2a2416; }
.wb-trophy { font-size: 13px; }
.wb-date .calendar-context { margin-left: 4px; font-size: 10px; }

/* Recovery strip under the load chart (src/recovery-strip.js) */
.recovery-strip { margin-top: 6px; border-top: 1px solid #262c27; padding-top: 8px; }
.recovery-strip-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #cfd6cb; padding: 0 4px; }
.recovery-strip-head small { color: #8b938a; }
.recovery-legend { color: #8b938a; display: inline-flex; align-items: center; gap: 5px; }
.recovery-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.recovery-legend .avg-key { width: 16px; height: 2px; background: #cfd6cb; display: inline-block; margin-left: 8px; }
.recovery-chart circle { cursor: help; }
.recovery-strip .fineprint .neg { color: #e0796b; }
.apex-recovery-toggle { margin-left: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12px; border: 1px solid #3a4038; background: transparent; color: #8b938a; cursor: pointer; }
.apex-recovery-toggle.selected { color: #6fcf7f; border-color: #6fcf7f; }
.wb-absence { border-color: #d0564a; background: #3a1c1a; color: #ffb4a8; }
.wb-absence .wb-title { color: #ffb4a8; font-weight: 600; }
.wb-absence .wb-desc { color: #f2c9c2; }
.wb-absence.excused { border-style: dashed; }
.wb-day.alert { box-shadow: inset 3px 0 0 #d0564a; }
.wb-day.away { background: repeating-linear-gradient(135deg, #1b1717 0 8px, #181414 8px 16px); }

/* Plan from the library */
.pick-choice { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; flex-wrap: wrap; }
.pick-choice span { color: #8b938a; font-size: 13px; }
.template-pick-list { display: grid; gap: 6px; max-height: 52vh; overflow-y: auto; margin: 10px 0; }
.template-pick { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid #2c332d; background: #1b221d; color: inherit; cursor: pointer; }
.template-pick:hover { border-color: #c8df94; }
.template-pick b { display: block; font-size: 14px; }
.template-pick small { color: #9aa398; font-size: 12px; }
.template-pick em { font-style: normal; font-size: 11px; color: #8b938a; }
.template-pick .sport-icon { width: 20px; height: 20px; margin: 0; }
.check-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.check-row input { width: auto; }

/* Login details for athletes */
.cred-row { display: grid; gap: 6px; margin: 12px 0; }
.cred-row small { color: #8b938a; }
.cred-box { margin: 0; padding: 10px 12px; border-radius: 10px; background: #141916; border: 1px solid #2c332d; white-space: pre-wrap; word-break: break-all; font-size: 14px; user-select: all; }
.cred-secret { font-size: 18px; letter-spacing: .04em; }
.cred-row button { justify-self: start; }
.wb-dow { display: none; }
@media (max-width: 900px) {
  .wb-dow { display: inline; font-weight: 600; color: #cfd6cb; }
  .wb-item .wb-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .wb-item small { white-space: normal; }
}

/* Load chart day cursor (0.9.10) */
.load-hover-on svg.chart { cursor: crosshair; touch-action: pan-y; }
.load-hover-tip {
  position: absolute; z-index: 5; min-width: 170px; max-width: 240px;
  background: rgba(16, 18, 22, 0.96); border: 1px solid #2f3440; border-radius: 10px;
  padding: 9px 11px; font-size: 12px; color: #e8eae4; pointer-events: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.load-hover-tip .lh-date { font-weight: 700; margin-bottom: 6px; color: #fff; }
.load-hover-tip .lh-row { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.load-hover-tip .lh-row span { flex: 1; color: #aab0a6; }
.load-hover-tip .lh-row b { font-variant-numeric: tabular-nums; }
.load-hover-tip .lh-row i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.load-hover-tip .lh-row.dim { opacity: 0.5; }
.load-hover-tip .lh-acts { margin-top: 5px; color: #cfd6cb; font-size: 11px; line-height: 1.45; }
.load-hover-tip .lh-acts.muted { color: #7b8079; }
.load-hover-tip .lh-sep { border-top: 1px solid #2f3440; margin: 6px 0 4px; }
.load-hover-tip .lh-warn { color: #e0796b; font-size: 11px; margin-top: 3px; }
