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

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

.plan-intro__lead {
  max-width: 640px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-card--gap-4 {
  gap: 4px;
}

.plan-card--gap-12 {
  gap: 12px;
}

.plan-card--gap-16 {
  gap: 16px;
}

.plan-card--fill {
  height: 100%;
}

.plan-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.plan-bullets__item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.plan-bullets__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--text-muted);
  flex: none;
  margin-top: 8px;
}

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

.plan__priority {
  height: 100%;
}

.plan__pair {
  align-items: flex-start;
}

.plan-habits__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.plan-habits__cols {
  padding: 0 8px 10px;
  border-bottom: 1px solid var(--border);
}

.plan-habit {
  padding: 14px 8px;
  align-items: flex-start;
}

.plan-habit + .plan-habit {
  border-top: 1px solid var(--border);
}

.plan-habits__col-body {
  min-width: 0;
}

.plan-habits__cells {
  align-items: flex-start;
}

.plan-habits__heading {
  display: block;
}

.plan-habit__check {
  display: block;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--anchor);
  flex: none;
}

.plan-habit__name {
  display: block;
  font-weight: 600;
  cursor: pointer;
}

.plan-habit__note {
  color: var(--text-muted);
}

.plan-habit__cap {
  display: block;
  margin-bottom: 2px;
}

.plan-supplement {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.plan-supplement__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-supplement__name {
  font-weight: 600;
}

.plan-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.plan-cta__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-cta__title {
  font-weight: 700;
  font-size: 17px;
}

.progress-tests {
  justify-content: space-between;
}

.progress-tests__row {
  --grid-gutter-x: 12px;
  align-items: center;
}

.progress-tests__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.progress-tests__score {
  font-size: 15px;
  font-weight: 500;
}

.progress-tests__of {
  color: var(--text-muted);
  font-weight: 400;
}

.progress-tests__date {
  font-size: 12px;
  color: var(--text-muted);
}

.progress-tests__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.progress-radar {
  width: 100%;
  height: auto;
  display: block;
  max-width: 460px;
  margin: 0 auto;
}

.progress-radar--sm {
  max-width: 340px;
}

.progress-radar__ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1;
}

.progress-radar__axis {
  stroke: var(--border);
  stroke-width: 1;
}

.progress-radar__tick {
  font-family: var(--font-mono);
  font-size: 10px;
  fill: var(--text-muted);
}

.progress-radar__area {
  fill: var(--anchor-tint);
  fill-opacity: 0.75;
  stroke: none;
}

.progress-radar__prev {
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  stroke-linejoin: round;
}

.progress-radar__now {
  fill: none;
  stroke: var(--anchor);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.progress-radar__prev-dot {
  fill: var(--surface);
  stroke: var(--text-muted);
  stroke-width: 2;
}

.progress-radar__now-dot {
  fill: var(--anchor);
  stroke: var(--surface);
  stroke-width: 2;
}

.progress-radar__label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  fill: var(--text);
}

.progress-radar__value {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--text-muted);
}

.progress-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
  justify-content: center;
}

.progress-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.progress-legend__line {
  width: 28px;
  height: 6px;
}

.progress-legend__prev {
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-dasharray: 5 4;
}

.progress-legend__now {
  stroke: var(--anchor);
  stroke-width: 2.5;
}

.progress-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 8px 8px;
}

.progress-group__title {
  font-weight: 700;
}

.progress-group__count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.progress-change {
  align-items: center;
  padding: 8px 8px 2px;
  border-top: 1px solid var(--border);
}

.progress-change__name {
  display: block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.progress-change__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.progress-change__now {
  font-weight: 700;
  color: var(--text);
}

.progress-change__unit {
  font-size: 12px;
  color: var(--text-muted);
}

.progress-change__badge {
  display: flex;
  justify-content: flex-end;
}

.progress-change__badge-top {
  display: none;
}

.progress-changes__note {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.retest-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  line-height: 18px;
}

.retest-crumbs__link {
  text-decoration: none;
  font-weight: 600;
}

.retest__grid {
  --grid-gutter-x: 32px;
  --grid-gutter-y: 24px;
}

.retest__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.retest__aside {
  position: sticky;
  top: 24px;
}

.retest-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.retest-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.retest-option--selected {
  border: 1px solid var(--anchor);
  background: var(--anchor-tint);
}

.retest-option__radio {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--anchor);
  flex: none;
}

.retest-option__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.retest-option__head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.retest-option__title {
  font-weight: 600;
}

.retest-option__count {
  font-size: 12px;
  color: var(--text-muted);
}

.retest-option__price {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

.retest-markers__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.retest-markers__meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

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

.retest-markers__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.retest-markers__count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.retest-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.retest-summary__item {
  display: block;
}

.retest-summary__price {
  font-weight: 500;
  white-space: nowrap;
}

.retest-summary__total {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.retest-summary__total-label {
  font-weight: 700;
}

.retest-summary__total-sum {
  font-size: 24px;
  font-weight: 700;
}

.retest-summary__note {
  text-align: center;
}

.retest-summary__tags {
  gap: 8px;
  justify-content: center;
}

@media (min-width: 768px) {
  .plan-habits__col-check {
    width: 46px;
    padding-right: 16px;
  }

  .plan-habits__col-name {
    flex-grow: 1.1;
  }

  .plan-habits__col-note {
    flex-grow: 1.4;
    padding-left: 16px;
  }
}

@media (min-width: 992px) {
  .progress-change__head {
    width: 170px;
    padding-right: 20px;
  }

  .progress-change__scale {
    padding-right: 20px;
  }

  .progress-change__value {
    width: 190px;
  }

  .progress-change__badge {
    width: 160px;
    padding-left: 20px;
  }

  .retest__aside {
    width: 360px;
  }
}

@media (max-width: 991px) {
  .progress-group {
    padding: 16px 0 6px;
  }

  .progress-change {
    align-items: stretch;
    padding: 12px 0;
  }

  .progress-change__scale {
    padding: 4px 0;
  }

  .progress-change__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .progress-change__value {
    text-align: left;
    white-space: normal;
  }

  .progress-change__badge {
    display: none;
  }

  .progress-change__badge-top {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .plan__body {
    padding-top: 20px;
    gap: 20px;
  }

  .plan-intro__title {
    font-size: 24px;
  }

  .plan-card {
    padding: 20px;
  }

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

  .plan__pair {
    --grid-gutter-y: 20px;
  }

  .plan-habits {
    gap: 8px;
  }

  .plan-habits__head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .plan-habit {
    padding: 14px 0;
  }

  .plan-habits__col-check {
    padding-right: 12px;
  }

  .plan-habits__cells {
    --grid-gutter-y: 6px;
  }

  .plan-habit__note {
    font-size: 14px;
    line-height: 20px;
  }

  .plan-cta {
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .plan-cta__text {
    gap: 12px;
  }

  .plan-cta__title {
    font-size: inherit;
  }

  .plan-cta__btn {
    width: 100%;
  }

  .progress__top {
    --grid-gutter-y: 20px;
  }

  .progress-tests__row {
    --grid-gutter-x: 8px;
    align-items: flex-start;
  }

  .progress-tests__item {
    gap: 8px;
  }

  .progress-tests__score {
    font-size: 14px;
  }

  .progress-radar-card {
    padding: 20px 12px;
  }

  .progress-radar-card__title {
    padding: 0 8px;
  }

  .retest__grid {
    --grid-gutter-y: 20px;
  }

  .retest__form {
    gap: 20px;
  }

  .retest__aside {
    position: static;
  }

  .retest-option {
    padding: 14px 16px;
  }
}
