.report-page {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.report-page--findings {
  gap: 20px;
}

.report-page__stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.report-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.report-page__medium {
  font-weight: 500;
}

.report-page__semibold {
  font-weight: 600;
}

.report-page__bold {
  font-weight: 700;
}

.overview__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.overview__card--stretch {
  height: 100%;
}

.overview__metric {
  display: flex;
  align-items: center;
  gap: 20px;
}

.overview__facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overview__trend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.overview__value {
  color: var(--text);
  font-weight: 500;
}

.overview__value--bold {
  font-weight: 700;
}

.overview__note-lead {
  color: var(--text);
  font-weight: 600;
}

.overview__donut {
  position: relative;
  width: 140px;
  height: 140px;
  flex: none;
}

.overview__donut-svg {
  width: 140px;
  height: 140px;
}

.overview__donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overview__donut-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

.overview__donut-label {
  font-size: 10px;
  line-height: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

.overview__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.overview__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overview__split {
  align-items: start;
}

.overview__chains {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.overview__chain {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.overview__chain--last {
  border-bottom: 1px solid var(--border);
}

.overview__chain-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.overview__chain-factor {
  padding: 3px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}

.overview__chain-arrow {
  color: var(--anchor);
  display: inline-flex;
}

.overview__chain-result {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--anchor-tint);
  color: var(--anchor);
}

.overview__system,
.overview__system:hover {
  color: inherit;
  text-decoration: none;
}

.overview__system {
  display: block;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 100%;
}

.overview__more {
  align-self: flex-start;
}

.body-systems__map-row {
  --grid-gutter-x: 32px;
  --grid-gutter-y: 32px;
  align-items: start;
}

.body-systems__figure {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.body-systems__fig {
  width: 240px;
}

.body-systems__legend {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.body-systems__levels {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.body-systems__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.body-systems__card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.body-systems__link,
.body-systems__link:hover {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--anchor);
  text-decoration: none;
  margin-top: auto;
}

.findings__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.findings__filter-label {
  margin-right: 4px;
}

.findings__grid {
  --grid-gutter-x: 24px;
  --grid-gutter-y: 20px;
}

.findings__sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.findings__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.findings__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.findings__count {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
}

.findings__group-label {
  padding: 8px 8px 4px;
  border-bottom: 1px solid var(--border);
}

.findings__row {
  border-bottom: 0;
}

.findings__row-note {
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--border);
}

.findings__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.findings__doctor {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.findings__questions {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  counter-reset: none;
}

.findings__question {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.findings__question--last {
  border-bottom: 1px solid var(--border);
}

.findings__question-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--anchor-tint);
  color: var(--anchor);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.findings__question-text {
  font-size: 14px;
  line-height: 20px;
}

.findings__tags {
  gap: 8px;
}

@media (min-width: 1200px) {
  .findings__doctor {
    width: 360px;
  }
}

@media (max-width: 767px) {
  .report-page {
    padding-top: 16px;
    padding-bottom: 8px;
    gap: 16px;
  }

  .report-page__head {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .report-page__rating-head {
    flex-wrap: wrap;
  }

  .overview__doctor {
    flex-wrap: wrap;
  }

  .overview__doctor-text {
    flex: 1 1 240px;
    min-width: 0;
  }

  .overview__doctor-action {
    margin-left: 40px;
  }

  .overview__card {
    padding: 20px;
    gap: 12px;
  }

  .overview__donut {
    width: 128px;
    height: 128px;
  }

  .overview__donut-svg {
    width: 128px;
    height: 128px;
  }

  .overview__donut-value {
    font-size: 26px;
  }

  .overview__systems {
    --grid-gutter-y: 12px;
  }

  .overview__system {
    padding: 14px;
  }

  .body-systems__map {
    padding: 0;
    background: none;
    border: 0;
  }

  .body-systems__map-row {
    --grid-gutter-x: 0;
    --grid-gutter-y: 16px;
  }

  .body-systems__figure {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .body-systems__fig {
    width: 180px;
  }

  .body-systems__legend {
    gap: 12px;
    border-color: transparent;
  }

  .body-systems__levels {
    padding-top: 12px;
  }

  .body-systems__list {
    gap: 12px;
  }

  .body-systems__cards {
    --grid-gutter-y: 12px;
  }

  .body-systems__card {
    padding: 20px;
  }

  .findings__filter {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    margin: 0 -16px;
  }

  .findings__filter-label {
    margin-right: 0;
    padding: 0 16px;
  }

  .findings__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }

  .findings__chip {
    flex: none;
  }

  .findings__grid {
    --grid-gutter-y: 16px;
  }

  .findings__sections {
    gap: 16px;
  }

  .findings__card {
    padding: 20px;
    gap: 12px;
  }

  .findings__head {
    gap: 8px;
  }

  .findings__more {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .findings__more-link {
    align-self: flex-start;
  }

  .findings__doctor {
    position: static;
    padding: 20px;
    gap: 12px;
  }
}
