.unit-group {
  display: none;
}

.unit-group[data-visible="true"] {
  display: grid;
}

.results-note {
  margin-top: 16px;
  color: #4b5563;
  font-size: 0.95rem;
}

.bmi-scale {
  margin-bottom: 20px;
}

.bmi-scale-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.bmi-segment {
  padding: 12px 10px;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-height: 54px;
  text-align: center;
}

.bmi-underweight {
  background: linear-gradient(135deg, #bae6fd, #7dd3fc);
}

.bmi-normal {
  background: linear-gradient(135deg, #bbf7d0, #86efac);
}

.bmi-overweight {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
}

.bmi-obese {
  background: linear-gradient(135deg, #fecdd3, #fb7185);
}

.bmi-indicator {
  position: relative;
  height: 24px;
  margin-top: 10px;
}

.bmi-indicator::before {
  content: "";
  position: absolute;
  left: var(--bmi-pos, 50%);
  top: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid #0f172a;
}

.bmi-indicator-label {
  position: absolute;
  left: var(--bmi-pos, 50%);
  top: 10px;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .results-note {
    font-size: 0.9rem;
  }

  .bmi-segment {
    font-size: 0.72rem;
    padding: 10px 6px;
  }
}
