.fit-reader-page {
  background: #f3f6f8;
  color: #17212b;
}

.fit-reader-page .fit-container {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.fit-app-header {
  padding: 30px 0 22px;
  border-bottom: 1px solid #dce4e9;
  background: #ffffff;
}

.fit-app-header .fit-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.fit-eyebrow,
.section-kicker {
  margin: 0 0 5px;
  color: #087f5b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fit-app-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: 0;
}

.fit-intro {
  margin: 9px 0 0;
  color: #61707d;
}

.privacy-chip {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid #bfe2d4;
  border-radius: 6px;
  background: #eaf7f2;
  color: #076647;
  font-weight: 750;
  white-space: nowrap;
}

.fit-workspace {
  padding-top: 24px;
  padding-bottom: 44px;
}

.upload-panel {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 2px dashed #aebcc6;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.upload-panel.is-dragging {
  border-color: #087f5b;
  background: #edf8f4;
}

.upload-copy {
  display: flex;
  align-items: center;
  gap: 16px;
}

.upload-copy h2 {
  margin: 0 0 5px;
  font-size: 1.25rem;
}

.upload-copy p {
  margin: 0;
  color: #657480;
}

.upload-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  place-items: center;
  border-radius: 8px;
  background: #e8f1f7;
  color: #075985;
  font-size: 1.65rem;
}

.multi-fit-explainer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(270px, .6fr);
  gap: 18px;
  margin-top: 16px;
  padding: 20px;
  border: 1px solid #bfe2d4;
  border-left: 5px solid #087f5b;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3fbf8 0%, #fff 72%);
  box-shadow: 0 8px 24px rgba(22, 69, 55, .06);
}

.multi-fit-explainer-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #087f5b;
  color: #fff;
  font-size: 1.35rem;
}

.multi-fit-explainer h2 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.25;
}

.multi-fit-explainer p {
  color: #4f606d;
  font-size: .94rem;
  line-height: 1.55;
}

.multi-fit-explainer-points {
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.multi-fit-explainer-points li {
  display: flex;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #dcebe5;
  border-radius: 6px;
  background: rgba(255, 255, 255, .86);
}

.multi-fit-explainer-points i {
  margin-top: 1px;
  color: #087f5b;
}

.multi-fit-explainer-points strong,
.multi-fit-explainer-points span {
  display: block;
}

.multi-fit-explainer-points strong {
  color: #17212b;
  font-size: .84rem;
}

.multi-fit-explainer-points span {
  color: #61707d;
  font-size: .78rem;
  line-height: 1.35;
}

@media (max-width: 991.98px) {
  .multi-fit-explainer {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .multi-fit-explainer-points {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .multi-fit-explainer {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .multi-fit-explainer-points {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

.fit-reader-page .btn {
  border-radius: 6px;
}

.fit-reader-page .btn-primary {
  border-color: #087f5b;
  background: #087f5b;
}

.fit-reader-page .btn-primary:hover {
  border-color: #066b4d;
  background: #066b4d;
}

#statusBox {
  margin: 16px 0 0;
}

.multi-fit-results {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid #dce4e9;
  border-radius: 8px;
  background: #fff;
}

.multi-fit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid #dce4e9;
  background: #f8fafb;
}

.multi-fit-head h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.multi-fit-progress {
  padding: 12px 18px;
  border-bottom: 1px solid #e7ecef;
}

.multi-fit-progress .progress {
  height: 7px;
  margin-bottom: 6px;
}

.multi-fit-progress .progress-bar {
  background: #087f5b;
}

.multi-fit-table {
  min-width: 1050px;
  font-size: .88rem;
}

.multi-fit-table thead th {
  padding: .65rem .75rem;
  background: #e8f1f7;
  color: #324657;
  font-size: .72rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.multi-fit-table tbody th,
.multi-fit-table tbody td {
  padding: .6rem .75rem;
  vertical-align: middle;
}

.multi-fit-table tbody th {
  min-width: 175px;
}

.multi-fit-origin {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 4px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #075985;
  text-align: left;
}

.multi-fit-origin:last-child {
  margin-bottom: 0;
}

.multi-fit-origin:hover,
.multi-fit-origin:focus-visible {
  background: #e8f1f7;
  outline: none;
}

.multi-fit-origin span,
.multi-fit-origin small {
  display: block;
}

.multi-fit-origin span {
  font-weight: 750;
}

.multi-fit-origin small {
  max-width: 220px;
  overflow: hidden;
  color: #657480;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-fit-note {
  padding: 12px 18px;
  border-top: 1px solid #dce4e9;
  background: #fbfcfd;
  color: #61707d;
  font-size: .84rem;
}

@media (max-width: 767.98px) {
  .multi-fit-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.summary-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce4e9;
  border-radius: 8px;
  background: #ffffff;
}

.summary-item span {
  display: block;
  overflow: hidden;
  color: #687783;
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.summary-item strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  font-size: 1.16rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.metric-panel,
.chart-panel,
.data-panel,
.raw-panel,
.fit-info {
  border: 1px solid #dce4e9;
  border-radius: 8px;
  background: #ffffff;
}

.metric-panel,
.chart-panel,
.data-panel {
  padding: 18px;
}

.section-heading {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.18rem;
}

.metric-list {
  display: grid;
  max-height: 520px;
  gap: 7px;
  overflow: auto;
  padding-right: 4px;
}

.metric-option {
  display: grid;
  grid-template-columns: 20px 12px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid #e1e7eb;
  border-radius: 6px;
  cursor: pointer;
}

.metric-option:hover {
  background: #f7f9fa;
}

.metric-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.metric-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.metric-name {
  overflow: hidden;
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-count {
  color: #7a8791;
  font-size: 0.72rem;
}

.axis-control {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8ec;
}

.fit-chart {
  width: 100%;
  min-height: 510px;
}

.empty-chart {
  display: none;
  min-height: 430px;
  place-items: center;
  color: #6d7a84;
}

.data-panel {
  margin-top: 14px;
}

.data-heading {
  align-items: center;
}

.data-actions {
  display: flex;
  gap: 8px;
}

.data-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.4fr) 150px;
  gap: 12px;
  margin-bottom: 14px;
}

.data-toolbar .form-label {
  margin-bottom: 5px;
  font-size: 0.82rem;
  font-weight: 750;
}

.fit-table-wrap {
  max-height: 570px;
  border: 1px solid #dfe6ea;
}

.fit-table {
  margin: 0;
  font-size: 0.78rem;
  white-space: nowrap;
}

.fit-table thead {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #eef3f6;
}

.fit-table th,
.fit-table td {
  max-width: 260px;
  padding: 7px 9px;
  overflow: hidden;
  border-color: #e2e8ec;
  text-overflow: ellipsis;
}

.fit-table th {
  color: #44515c;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #687783;
  font-size: 0.84rem;
}

.raw-panel {
  margin-top: 14px;
  overflow: hidden;
}

.raw-panel summary {
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 800;
}

.raw-panel pre {
  max-height: 620px;
  margin: 0;
  overflow: auto;
  padding: 18px;
  border-top: 1px solid #dce4e9;
  background: #101820;
  color: #dbe7ef;
  font-size: 0.74rem;
}

.fit-info {
  margin-top: 18px;
  padding: 20px;
}

.fit-info h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.fit-info p {
  margin: 0;
  color: #5f6e79;
}

@media (max-width: 1050px) {
  .summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .analysis-layout {
    grid-template-columns: 1fr;
  }

  .metric-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 700px) {
  .fit-reader-page .fit-container {
    width: min(100% - 20px, 1480px);
  }

  .fit-app-header .fit-container,
  .upload-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .privacy-chip {
    align-self: flex-start;
  }

  .summary-strip,
  .metric-list,
  .data-toolbar {
    grid-template-columns: 1fr;
  }

  .fit-chart {
    min-height: 390px;
  }

  .section-heading {
    min-height: 0;
  }
}

.performance-panel,
.best-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #dce4e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(34, 51, 63, 0.05);
}

.performance-grid {
  display: block;
}

.performance-group {
  margin-top: 9px;
  overflow: hidden;
  border: 1px solid #dce4e9;
  border-radius: 7px;
  background: #fff;
}
.performance-group > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  color: #087f5b;
  background: #f7fafb;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  list-style: none;
}
.performance-group > summary::-webkit-details-marker { display: none; }
.performance-group > summary i { transition: transform .2s ease; }
.performance-group[open] > summary i { transform: rotate(180deg); }
.performance-group-content {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.performance-stat,
.extreme-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e8ec;
  border-radius: 6px;
  background: #f7fafb;
}

.performance-stat span,
.extreme-stat > span {
  display: block;
  color: #667682;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

.performance-stat strong {
  display: block;
  margin-top: 5px;
  color: #17232c;
  font-size: 1.08rem;
}
.performance-note {
  display: block;
  margin-top: 7px;
  color: #61717c;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
}

.quick-power-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #dce4e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(34, 51, 63, 0.05);
}
.quick-power-note { color: #60717d; font-size: 0.84rem; }
.quick-power-heading { align-items: end; gap: 18px; }
.quick-power-heading .form-label { margin-bottom: 3px; font-size: 0.75rem; font-weight: 700; }
.quick-power-heading .form-select { min-width: 190px; }
.quick-power-table-wrap { max-width: 620px; border: 1px solid #e1e7eb; border-radius: 7px; }
.quick-power-table th { background: #f4f7f9; color: #44515c; font-size: 0.76rem; white-space: nowrap; }
.quick-power-table td { padding: 7px 10px; }
.quick-power-table td:first-child { font-weight: 700; }
.quick-power-table td:nth-child(2) strong { color: #0873b9; }
.quick-power-row { cursor: pointer; }
.quick-power-row:hover, .quick-power-row.is-selected { background: #edf6ff; }
@media (max-width: 700px) {
  .quick-power-heading { align-items: stretch; flex-direction: column; }
  .quick-power-heading .form-select { min-width: 0; }
}

.extremes-grid {
  display: block;
  margin-top: 10px;
}
.extremes-content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.extreme-values {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  font-weight: 800;
}

.extreme-values small { color: #71808b; font-weight: 700; }
.best-heading { align-items: end; gap: 20px; }
.best-controls { display: grid; grid-template-columns: 90px 110px 160px 120px auto; align-items: end; gap: 8px; }
.best-controls .form-label { margin-bottom: 3px; font-size: 0.76rem; font-weight: 700; }
.best-summary { margin: 8px 0 12px; color: #5f6e79; font-size: 0.88rem; }
.best-table { margin: 0; min-width: 1040px; }
.best-table th { color: #44515c; white-space: nowrap; }
.best-table td { vertical-align: middle; }
.best-metric { font-weight: 800; }
.best-metric.power { color: #c43d36; }
.best-metric.heart { color: #9b3d75; }
.best-metric.vam { color: #087f5b; }

@media (max-width: 1050px) {
  .performance-group-content { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .best-heading { align-items: stretch; flex-direction: column; }
}

@media (max-width: 700px) {
  .performance-group-content,
  .extremes-content { grid-template-columns: 1fr 1fr; }
  .best-controls { grid-template-columns: 1fr 1fr; }
  .best-controls .btn { min-height: 38px; align-self: end; }
}

@media (max-width: 430px) {
  .performance-group-content,
  .extremes-content,
  .best-controls { grid-template-columns: 1fr; }
}
.quality-note {
  grid-column: 1 / -1;
  padding: 9px 11px;
  border-left: 3px solid #d98c10;
  background: #fff8e8;
  color: #66501b;
  font-size: 0.82rem;
}
.ftp-control { width: 150px; }
.ftp-control .form-label { margin-bottom: 3px; color: #586874; font-size: 0.76rem; font-weight: 800; }
.athlete-metric-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.performance-panel .section-heading { align-items: end; gap: 18px; }
@media (max-width: 700px) {
  .performance-panel .section-heading { align-items: stretch; flex-direction: column; }
  .athlete-metric-controls { display: grid; grid-template-columns: 1fr; }
  .ftp-control { width: 100%; }
}
.climb-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #dce4e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(34, 51, 63, 0.05);
}
.climb-heading { align-items: end; gap: 18px; }
.climb-controls { display: grid; grid-template-columns: 150px auto; align-items: end; gap: 8px; }
.climb-controls .form-label { margin-bottom: 3px; font-size: 0.76rem; font-weight: 700; }
.climb-summary { margin: 8px 0 12px; color: #5f6e79; font-size: 0.88rem; }
.climb-table { min-width: 850px; margin: 0; }
.climb-table th { color: #44515c; white-space: nowrap; }
@media (max-width: 700px) {
  .climb-heading { align-items: stretch; flex-direction: column; }
  .climb-controls { grid-template-columns: 1fr auto; }
}
.best-row { cursor: pointer; transition: background-color 0.15s ease; }
.best-row:hover,
.best-row:focus { background: #fff7df; outline: none; }
.best-row.is-selected { background: #ffedb5; box-shadow: inset 3px 0 0 #d98c10; }
.map-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #dce4e9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(34, 51, 63, 0.05);
}
.route-summary { color: #61707d; font-size: 0.9rem; }
#googleMapLink.disabled { pointer-events: none; opacity: 0.55; }

.collapsible-section { margin-top: 14px; }
.collapsible-section > summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid #d4dee4;
  border-radius: 8px;
  background: #fff;
  color: #26333d;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}
.collapsible-section > summary::-webkit-details-marker { display: none; }
.collapsible-section > summary i { transition: transform 0.18s ease; }
.collapsible-section[open] > summary { border-radius: 8px 8px 0 0; border-bottom-color: #edf1f3; }
.collapsible-section[open] > summary i { transform: rotate(180deg); }
.collapsible-section > .best-panel,
.collapsible-section > .climb-panel,
.collapsible-section > .data-panel {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: none;
}
.technical-section { border: 0; }
.technical-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 16px;
  border-right: 1px solid #d4dee4;
  border-left: 1px solid #d4dee4;
  background: #fff;
}
.technical-item { min-width: 0; padding: 11px; border: 1px solid #e1e8ec; border-radius: 6px; background: #f7fafb; }
.technical-item span { display: block; color: #687783; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.technical-item strong { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fit-parameter-label { display: inline-flex; align-items: center; gap: 5px; }
.fit-help-button {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 18px; height: 18px; padding: 0; border: 1px solid #8aa0af;
  border-radius: 50%; background: #fff; color: #36576c;
  font-size: 11px; font-weight: 800; line-height: 1;
}
.fit-help-button:hover, .fit-help-button:focus-visible {
  border-color: #0d6efd; background: #0d6efd; color: #fff;
}
.parameter-help-modal .modal-header { background: #f4f8fb; border-bottom-color: #dce6ed; }
.parameter-help-details { display: grid; gap: 10px; }
.parameter-help-details > div { padding: 12px; border: 1px solid #e1e8ec; border-radius: 7px; background: #f8fafb; }
.parameter-help-details dt { color: #526774; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.parameter-help-details dd { margin: 3px 0 0; color: #172b36; }
.parameter-help-caution { margin-top: 16px; padding: 10px 12px; border-left: 3px solid #e0a800; background: #fff9e8; color: #66551b; font-size: .82rem; }
.technical-section .raw-panel { margin-top: 10px; }
@media (max-width: 900px) { .technical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .summary-strip,
  .technical-grid { grid-template-columns: 1fr; }
  .map-panel .section-heading { align-items: stretch; flex-direction: column; }
}
.performance-group-title {
  grid-column: 1 / -1;
  margin-top: 7px;
  padding: 5px 0 3px;
  border-bottom: 1px solid #dce4e9;
  color: #087f5b;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}
.performance-group-title:first-child { margin-top: 0; }
.fit-info {
  margin-top: 34px;
  padding: 32px 0 8px;
  border: 0;
  border-top: 1px solid #ccd8de;
  border-radius: 0;
  background: transparent;
}
.fit-info-header { width: 100%; max-width: none; }
.fit-info-header h2 { margin: 0; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.2; }
.fit-info-header > p:last-child { margin: 12px 0 0; color: #51616d; font-size: 1.02rem; line-height: 1.7; }
.coach-audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 30px; }
.coach-audience-grid section { padding-top: 16px; border-top: 3px solid #087f5b; }
.fit-info h3 { margin: 0 0 9px; color: #24323c; font-size: 1.14rem; }
.fit-info section p { margin: 0; color: #566672; line-height: 1.68; }
.coach-reading,
.method-note,
.fit-faq { margin-top: 34px; }
.metric-definitions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 15px 0 0; }
.metric-definitions > div { padding: 15px; border: 1px solid #d9e2e7; border-radius: 7px; background: #fff; }
.metric-definitions dt { color: #087f5b; font-size: 1rem; font-weight: 850; }
.metric-definitions dd { margin: 5px 0 0; color: #596a76; font-size: 0.9rem; line-height: 1.55; }
.method-note { padding: 18px 20px; border-left: 4px solid #d98c10; background: #fff9e9; }
.fit-faq details { border-bottom: 1px solid #d8e1e6; }
.fit-faq summary { padding: 14px 0; color: #26343e; cursor: pointer; font-weight: 800; }
.fit-faq details p { padding: 0 0 15px; }
@media (max-width: 900px) { .metric-definitions { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) {
  .coach-audience-grid,
  .metric-definitions { grid-template-columns: 1fr; }
  .coach-audience-grid { gap: 22px; }
  .fit-info { padding-top: 25px; }
}
.related-fit-tools { margin-top: 34px; }
.related-fit-tools > p { margin: 0; color: #566672; line-height: 1.65; }
.related-fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.related-fit-grid a { display: flex; min-width: 0; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #d9e2e7; border-radius: 7px; background: #fff; color: #25343e; text-decoration: none; }
.related-fit-grid a:hover { border-color: #79b8a3; background: #f4fbf8; }
.related-fit-grid i { margin-top: 2px; color: #087f5b; font-size: 1.15rem; }
.related-fit-grid span,
.related-fit-grid strong,
.related-fit-grid small { display: block; }
.related-fit-grid small { margin-top: 4px; color: #667681; line-height: 1.45; }
@media (max-width: 700px) { .related-fit-grid { grid-template-columns: 1fr; } }
.chart-actions { display: flex; align-items: center; gap: 14px; }
.chart-actions .form-check-label { color: #455560; font-size: 0.86rem; font-weight: 750; cursor: pointer; }
.chart-actions .form-check-input { cursor: pointer; }
.chart-help-toggle { width: 34px; height: 34px; flex: 0 0 34px; display: inline-grid; place-items: center; border: 1px solid #0b8464; border-radius: 50%; background: #e8f6f1; color: #087457; font-size: 1.05rem; font-weight: 850; line-height: 1; transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.chart-help-toggle:hover, .chart-help-toggle[aria-expanded="true"] { background: #087e60; color: #fff; }
.chart-help-toggle:focus-visible { outline: 3px solid rgba(13, 110, 253, 0.28); outline-offset: 2px; }
.chart-help-toggle:hover { transform: translateY(-1px); }
.chart-help-modal { border: 0; border-radius: 8px; overflow: hidden; }
.chart-help-modal .modal-header { align-items: flex-start; padding: 20px 22px 16px; border-bottom-color: #dbe7e3; background: #f6fbf9; }
.chart-help-modal .modal-title { color: #152832; font-size: 1.35rem; font-weight: 800; }
.chart-help-modal .modal-body { padding: 22px; }
.chart-help-modal .modal-footer { padding: 13px 22px; border-top-color: #e1e9e6; }
.chart-help-modal .chart-help-heading { padding: 12px 14px; border-left: 4px solid #0b8464; border-radius: 4px; background: #f3faf7; }
.chart-help-heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 15px; }
.chart-help-heading > i { color: #087e60; font-size: 1.25rem; line-height: 1.2; }
.chart-help-heading strong { display: block; color: #152832; font-size: 1rem; }
.chart-help-heading span { display: block; margin-top: 3px; color: #5d6e78; font-size: 0.86rem; line-height: 1.45; }
.chart-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.chart-help-grid > div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; }
.chart-help-grid i { color: #087e60; font-size: 0.95rem; margin-top: 2px; }
.chart-help-grid p { margin: 0; color: #52636d; font-size: 0.84rem; line-height: 1.5; }
.chart-help-grid strong { display: block; margin-bottom: 2px; color: #1c303a; font-size: 0.86rem; }
@media (max-width: 700px) {
  .chart-panel .section-heading { align-items: stretch; flex-direction: column; }
  .chart-actions { justify-content: space-between; }
  .chart-help-grid { grid-template-columns: 1fr; }
}
.smoothing-control { display: flex; align-items: center; gap: 7px; }
.smoothing-control label { margin: 0; color: #455560; font-size: 0.82rem; font-weight: 750; white-space: nowrap; }
.smoothing-control .form-select { width: 104px; }
@media (max-width: 700px) {
  .chart-actions { flex-wrap: wrap; }
  .smoothing-control { flex: 1 1 180px; }
}
.climb-row { cursor: pointer; transition: background-color 0.15s ease; }
.climb-row:hover,
.climb-row:focus { background: #eef9f5; outline: none; }
.climb-row.is-selected { background: #dff4eb; box-shadow: inset 3px 0 0 #087f5b; }
.cp-panel {
  padding: 18px;
  border: 1px solid #dce4e9;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #fff;
}
.cp-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cp-metrics > div { min-width: 0; padding: 12px; border: 1px solid #e1e8ec; border-radius: 6px; background: #f7fafb; }
.cp-metrics span { display: block; color: #687783; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.cp-metrics strong { display: block; margin-top: 5px; font-size: 1.05rem; }
.cp-chart { min-height: 360px; margin-top: 14px; }
.cp-note { margin: 10px 0 0; padding: 11px 13px; border-left: 3px solid #d98c10; background: #fff8e8; color: #65501d; font-size: 0.86rem; line-height: 1.55; }
@media (max-width: 1000px) { .cp-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cp-metrics { grid-template-columns: 1fr 1fr; } }
.range-analysis { margin-top: 12px; padding-top: 14px; border-top: 2px solid #d98c10; }
.range-analysis-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.range-analysis-heading h3 { margin: 0; font-size: 1.05rem; }
.range-analysis-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.range-analysis-grid > div { min-width: 0; padding: 10px; border: 1px solid #e1e8ec; border-radius: 6px; background: #f8fafb; }
.range-analysis-grid span { display: block; color: #687783; font-size: 0.69rem; font-weight: 800; text-transform: uppercase; }
.range-analysis-grid strong { display: block; margin-top: 4px; font-size: 0.98rem; }
@media (max-width: 1050px) { .range-analysis-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .range-analysis-grid { grid-template-columns: 1fr 1fr; } }
.upload-actions {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  align-items: center;
  justify-items: stretch;
  gap: 8px 10px;
  max-width: 490px;
}
.upload-divider { color: #77858f; font-size: 0.78rem; font-weight: 700; text-align: center; }
.demo-fit-note { grid-column: 1 / -1; color: #657480; font-size: 0.76rem; line-height: 1.4; text-align: right; }
.demo-fit-note a { color: #086c52; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 700px) {
  .upload-actions { width: 100%; max-width: none; grid-template-columns: 1fr; }
  .upload-divider { display: none; }
  .demo-fit-note { grid-column: 1; text-align: left; }
}

.wbal-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #dce4e9; }
.wbal-heading { align-items: end; }
.wbal-heading h3 { margin: 0; color: #1b2c35; font-size: 1.15rem; }
.wbal-heading h3 small { display: inline-block; margin-left: 5px; color: #687783; font-size: 0.78rem; font-weight: 700; }
.wbal-controls { display: grid; grid-template-columns: max-content 160px 150px 160px; align-items: center; gap: 8px; }
.wbal-controls > label { margin: 0; color: #52636d; font-size: 0.78rem; font-weight: 800; }
.wbal-controls .form-control:disabled { background: #edf1f3; color: #7b8890; }
.wbal-method { margin: 12px 0; padding: 10px 12px; border-left: 3px solid #6f42c1; background: #f7f3fb; color: #514260; font-size: 0.82rem; line-height: 1.5; }
.wbal-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.wbal-metrics > div { min-width: 0; padding: 11px; border: 1px solid #e1e8ec; border-radius: 6px; background: #faf9fc; }
.wbal-metrics span { display: block; color: #6c7480; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.wbal-metrics strong { display: block; margin-top: 4px; color: #392650; font-size: 1rem; }
.wbal-chart { min-height: 330px; margin: 14px 0; }
.wbal-table { min-width: 760px; margin-bottom: 0; }
.wbal-table th { color: #44515c; white-space: nowrap; }
.wbal-table td { vertical-align: middle; }
.wbal-row { cursor: pointer; transition: background-color 0.15s ease; }
.wbal-row:hover, .wbal-row:focus { background: #f5effb; outline: none; }
.wbal-row.is-selected { background: #eee3f8; box-shadow: inset 3px 0 0 #6f42c1; }
.wbal-disclaimer { margin: 12px 0 0; color: #697781; font-size: 0.76rem; line-height: 1.45; }
@media (max-width: 1100px) {
  .wbal-heading { align-items: stretch; flex-direction: column; }
  .wbal-controls { grid-template-columns: max-content 1fr 1fr 1fr; width: 100%; }
  .wbal-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .wbal-controls { grid-template-columns: 1fr; }
  .wbal-controls > label { display: none; }
  .wbal-metrics { grid-template-columns: 1fr 1fr; }
  .wbal-chart { min-height: 300px; }
}
