.otta-health-check {
  max-width: 760px;
  margin: 2rem auto;
  padding: 2rem;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #fff;
}

.otta-health-check [hidden] {
  display: none !important;
}

.otta-hc-eyebrow,
.otta-hc-category {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
}

.otta-hc-progress-wrap {
  margin-bottom: 2rem;
}

.otta-hc-progress-text {
  margin-bottom: .5rem;
  font-size: .9rem;
}

.otta-hc-progress {
  width: 100%;
  height: 8px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
}

.otta-hc-progress-bar {
  height: 100%;
  width: 0;
  background: currentColor;
  transition: width .2s ease;
}

.otta-hc-question {
  margin-top: .5rem;
}

.otta-hc-answers {
  display: grid;
  gap: .75rem;
  margin: 1.5rem 0;
}

.otta-hc-answer {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  cursor: pointer;
}

.otta-hc-answer:hover {
  border-color: currentColor;
}

.otta-hc-controls,
.otta-hc-actions {
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.otta-hc-primary,
.otta-hc-secondary {
  padding: .8rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}

.otta-hc-primary {
  border: 1px solid #111;
  background: #111;
  color: #fff;
}

.otta-hc-secondary {
  border: 1px solid #bbb;
  background: #fff;
  color: #111;
}

.otta-hc-primary:disabled,
.otta-hc-secondary:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.otta-hc-score {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin: .75rem 0;
}

.otta-hc-category-results {
  display: grid;
  gap: .5rem;
  margin: 2rem 0;
}

.otta-hc-category-score {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.otta-hc-results section {
  margin-top: 2rem;
}

.otta-hc-disclaimer {
  margin-top: 2rem;
  font-size: .85rem;
  opacity: .75;
}

@media (max-width: 600px) {
  .otta-health-check {
    padding: 1.25rem;
    margin: 1rem 0;
  }

  .otta-hc-controls {
    flex-direction: column-reverse;
  }

  .otta-hc-primary,
  .otta-hc-secondary {
    width: 100%;
  }
}


.otta-hc-category-score-value {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: .15rem;
  text-align: right;
}

.otta-hc-category-band {
  font-size: .8rem;
  opacity: .7;
}

.otta-hc-critical-alert {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.otta-hc-extra-improvements {
  margin-top: .75rem;
  font-size: .95rem;
  opacity: .8;
}


.otta-hc-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.otta-hc-link-button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: .25rem 0;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.otta-hc-extra-wrap {
  margin-top: .75rem;
}

.otta-hc-extra-list {
  margin-top: .75rem;
}

.otta-hc-cta {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
}

.otta-hc-cta h3 {
  margin-top: .35rem;
}

.otta-hc-cta-link {
  display: inline-block;
  text-decoration: none;
  margin-top: .5rem;
}

@media (max-width: 600px) {
  .otta-hc-report-actions {
    flex-direction: column;
  }

  .otta-hc-report-actions .otta-hc-primary,
  .otta-hc-report-actions .otta-hc-secondary {
    width: 100%;
  }
}


/* v0.7 OTTA brand alignment */
.otta-health-check {
  color: #102033;
}

.otta-hc-eyebrow,
.otta-hc-category {
  color: #117D7A;
}

.otta-hc-primary {
  background: #0F2B3A;
  border-color: #0F2B3A;
}

.otta-hc-progress-bar {
  background: #117D7A;
}

.otta-hc-score {
  color: #FF8A1D;
}

.otta-hc-critical-alert {
  border-color: #FF8A1D;
  background: #F6F2EA;
  color: #0F2B3A;
}

.otta-hc-cta {
  background: #EEF5F6;
  border-color: #117D7A;
}

.otta-hc-link-button,
.otta-hc-cta-link {
  color: #117D7A;
}