[data-check-panel] {
  margin-block: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.15rem, 3vw, 2.35rem);
  border: 1px solid #c1d2c4;
  border-radius: 0.85rem;
  background: #f0f5ef;
  color: #173e2f;
  scroll-margin-top: 1rem;
}

[data-check-panel] h2, .sc-form legend {
  max-width: 36ch;
  margin: 0;
  color: #173e2f;
  font: 400 clamp(1.65rem, 3vw, 2.4rem)/1.16 var(--display, Georgia, serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}

[data-check-panel] p {
  max-width: 72ch;
  margin: 0.65rem 0 0;
  line-height: 1.55;
}

[data-check-panel] [data-start-check], [data-check-panel] .sc-primary,
[data-check-panel] .sc-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.62rem 1.14rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  background: #214d3d;
  color: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

[data-check-panel] .sg-check-privacy { font-size: 0.94rem; color: #4f6356; }
[data-check-panel] [data-start-check] { margin-top: 1rem; }
[data-check-panel] [data-start-check][hidden] { display: none; }
[data-check-panel] [data-start-check]:hover, [data-check-panel] .sc-primary:hover {
  background: #163b2b;
}

[data-check-panel] .sc-secondary {
  border-color: #a4baac;
  background: transparent;
  color: #214d3d;
}
[data-check-panel] .sc-secondary:hover { background: #e2ebdf; }

[data-check-panel] :is(button, a, summary, input):focus-visible {
  outline: 3px solid #3f744c;
  outline-offset: 3px;
}

.sc-form, .sc-results { max-width: 57rem; }
.sc-form fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.sc-form legend { float: none; width: 100%; padding: 0; }
[data-check-heading] { scroll-margin-top: 1.25rem; }
[data-check-heading]:focus { outline: none; }
[data-check-panel] .sc-step {
  color: #446451;
  margin: 0 0 0.75rem;
  font-size: 0.94rem;
  font-weight: 650;
}
.sc-hint, .sc-next-step { color: #3d594a; }

.sc-options {
  display: grid;
  max-width: 44rem;
  gap: 0.5rem;
  margin-block: 1.15rem;
}

.sc-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid #b8c8b9;
  border-radius: 0.6rem;
  background: #fff;
  color: #203e30;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sc-option:hover { border-color: #5c8269; }
.sc-option:has(input:checked) {
  border-color: #397049;
  background: #e4efe1;
  box-shadow: inset 0 0 0 1px #397049;
}
.sc-option input {
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  flex: 0 0 1.1rem;
  margin: 0.18rem 0 0;
  padding: 0;
  accent-color: #245c3e;
}
.sc-option span { min-width: 0; }
.sc-actions, .sc-links, .sc-result-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
}
.sc-actions { margin-top: 1.1rem; }
[data-check-panel] .sc-error { color: #87311b; font-weight: 650; }
.sc-error[hidden] { display: none; }

.sc-result {
  margin-top: 0.95rem;
  padding: clamp(0.9rem, 2vw, 1.4rem);
  border: 1px solid #d1dacc;
  border-radius: 0.62rem;
  background: #fff;
}
.sc-result h3 {
  flex: 1 1 16rem;
  margin: 0;
  color: #183e2e;
  font-size: 1.12rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.sc-status {
  display: inline-block;
  padding: 0.23rem 0.63rem;
  border-radius: 1rem;
  background: #e0eddc;
  color: #284d32;
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 650;
}
.sc-result[data-status="review"] .sc-status { background: #f6ecd4; color: #674820; }
.sc-result[data-status="unlikely"] .sc-status { background: #e9ece8; color: #4b554e; }
.sc-links { margin-top: 0.75rem; gap: 0.35rem 1.25rem; }
.sc-links a { color: #27543d; text-decoration: underline; text-underline-offset: 0.18em; }
.sc-lower { margin-top: 1rem; }
.sc-lower summary { width: fit-content; padding-block: 0.65rem; color: #294f39; font-weight: 650; }

@media (max-width: 34rem) {
  [data-check-panel] { padding: 1rem; }
  .sc-actions { row-gap: 0.5rem; }
  .sc-result-head { align-items: flex-start; flex-direction: column; }
  .sc-result h3 { flex: none; }
}

.sc-topic {
  min-width: 0;
  border: 1px solid #b8c8b9;
  border-radius: 0.6rem;
  background: #fff;
}
.sc-topic summary {
  padding: 0.85rem 1rem;
  color: #214d3d;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
}
.sc-topic:has(input:checked) { border-color: #397049; background: #eaf2e6; }
.sc-topic-options { display: grid; gap: 0.45rem; padding: 0 0.65rem 0.65rem; }
.sc-results .sc-result ul { padding-inline-start: 1.4rem; line-height: 1.65; }
