html {
  scroll-padding-top: 5rem;
  scrollbar-color: #173c2b #f7f7f2;
}

::selection {
  background: #9be7b2;
  color: #17201b;
}

input,
textarea {
  caret-color: #173c2b;
}

.cx-root {
  overflow-x: clip;
}

.form-result.is-error {
  border-color: #9b3b2e;
  background: #fff4f1;
  color: #9b3b2e;
}

.form-result {
  overflow-wrap: anywhere;
}

.form-result-success {
  display: grid;
  gap: 1rem;
}

.form-result-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.form-result-heading strong {
  display: block;
  color: #17201b;
  font: 600 1.15rem/1.25 "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.form-result-heading p {
  margin-top: 0.25rem;
}

.form-result-mark {
  color: #173c2b;
  font: 600 0.75rem/1.5 "JetBrains Mono", monospace;
}

.form-result-reference {
  display: grid;
  grid-template-columns: minmax(7rem, auto) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  border-block: 1px solid rgba(23, 60, 43, 0.22);
  padding-block: 0.75rem;
}

.form-result-reference dt,
.form-result-steps span {
  color: #4f5b54;
  font: 600 0.63rem/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-result-reference dd {
  min-width: 0;
  color: #17201b;
  font: 600 0.72rem/1.5 "JetBrains Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.form-result-steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.form-result-steps li {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.45fr) minmax(7rem, 0.55fr) minmax(0, 1.4fr);
  gap: 0.75rem;
  align-items: baseline;
}

.form-result-steps strong {
  color: #17201b;
  font-size: 0.8rem;
}

.form-result-steps small {
  color: #4f5b54;
  font-size: 0.75rem;
  line-height: 1.5;
}

.form-result-safety {
  color: #173c2b;
  font-weight: 600;
}

.form-result-status-link {
  display: block;
  border-radius: 2px;
  background: #173c2b;
  padding: 0.8rem 1rem;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.form-result-status-link[hidden],
.form-result-status-note[hidden] {
  display: none;
}

.form-result-status-note {
  color: #4f5b54;
  font-size: 0.72rem;
  line-height: 1.55;
}

.form-result-error-copy {
  display: none;
  margin: 0;
}

.form-result.is-error .form-result-success {
  display: none;
}

.form-result.is-error .form-result-error-copy {
  display: block;
}

.legal-copy {
  color: #4f5b54;
  font-size: 1rem;
  line-height: 1.8;
}

.legal-copy h2 {
  margin-top: 2.5rem;
  color: #17201b;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.legal-copy h3 {
  margin-top: 1.75rem;
  color: #17201b;
  font-weight: 600;
}

.legal-copy p,
.legal-copy ul {
  margin-top: 0.9rem;
}

.legal-copy ul {
  list-style: square;
  padding-left: 1.35rem;
}

.legal-copy a {
  color: #173c2b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  border-bottom: 1px solid rgba(23, 32, 27, 0.15);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.report-table thead th {
  background: #173c2b;
  color: #fff;
  font: 600 0.7rem/1.4 "JetBrains Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(23, 32, 27, 0.25);
  background: #fff;
}

.report-meta > div {
  padding: 1.25rem;
}

.report-meta > div + div {
  border-left: 1px solid rgba(23, 32, 27, 0.15);
}

.status-pass {
  display: inline-flex;
  border: 1px solid #173c2b;
  background: #e4eee7;
  padding: 0.35rem 0.6rem;
  color: #173c2b;
  font: 600 0.65rem/1.3 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}

.report-note {
  border: 1px solid rgba(23, 60, 43, 0.25);
  background: #e4eee7;
  padding: 1.25rem 1.4rem;
  color: #173c2b;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .form-result-reference,
  .form-result-steps li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .form-result-steps {
    gap: 1rem;
  }

  .report-meta {
    grid-template-columns: 1fr;
  }

  .report-meta > div + div {
    border-top: 1px solid rgba(23, 32, 27, 0.15);
    border-left: 0;
  }

  .report-scroll {
    overflow-x: auto;
  }

  .report-table {
    min-width: 620px;
  }
}
