.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lee-calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(40px, 6vw, 88px);
  padding-block: clamp(44px, 6vw, 76px);
}

.criteria-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.criteria-card {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.criteria-card:hover {
  border-color: #aab4bf;
  background: #fffefb;
}

.criteria-card:has(input:focus-visible) {
  outline: 3px solid rgba(8, 120, 111, .28);
  outline-offset: 2px;
}

.criteria-card:has(input:checked) {
  border-color: var(--teal);
  background: #edf6f3;
  box-shadow: inset 4px 0 0 var(--teal);
}

.criteria-card input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  border: 1.5px solid #7c8999;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.criteria-card input:checked {
  border-color: var(--teal);
  background: var(--teal);
}

.criteria-card input:checked::after {
  display: block;
  width: 10px;
  height: 6px;
  margin: 5px 0 0 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  rotate: -45deg;
}

.criteria-copy { display: grid; gap: 4px; }
.criteria-copy strong { color: var(--ink); font-size: .93rem; line-height: 1.35; }
.criteria-copy span { color: var(--muted); font-size: .78rem; line-height: 1.5; }

.lee-result-panel {
  min-height: 0;
  align-items: flex-start;
  padding-top: 0;
}

#result-card {
  --risk-color: var(--teal);
  position: sticky;
  top: 28px;
  width: 100%;
  padding: 4px 0 0;
  border-top: 4px solid var(--risk-color);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

#result-card.border-green-500 { --risk-color: #25805f; }
#result-card.border-yellow-400 { --risk-color: #b47a11; }
#result-card.border-orange-500 { --risk-color: #bd5e2e; }
#result-card.border-red-600 { --risk-color: #ae3f39; }

.score-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 8px;
}

.score-line strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(4.4rem, 8vw, 6.6rem);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: .9;
}

.score-line span { color: var(--muted); font-size: .85rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }

#risk-class {
  margin: 24px 0 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.1;
}

#risk-desc {
  display: inline-block;
  margin: 10px 0 0;
  padding: 6px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--risk-color) 13%, white);
  color: var(--risk-color);
  font-size: .82rem;
  font-weight: 800;
}

.text-green-600, .text-yellow-600, .text-orange-600, .text-red-600 { color: var(--risk-color); }
.lee-result-note { margin: 20px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.55; }

.report-block {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.report-label {
  margin: 0 0 9px;
  color: var(--teal);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

#report-preview {
  margin: 0;
  color: #334156;
  font-family: var(--serif);
  font-size: .92rem;
  line-height: 1.6;
}

.report-button {
  min-height: 48px;
  margin-top: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
}

.bg-blue-600 { background: var(--navy); }
.bg-blue-600:hover { background: var(--navy-dark); }
.bg-green-600 { background: #25805f; }

.lee-table th:last-child,
.lee-table td:last-child { text-align: center; }

.lee-table td:first-child { font-variant-numeric: tabular-nums; }

@media (max-width: 820px) {
  .lee-calculator-grid { grid-template-columns: 1fr; gap: 46px; }
  .lee-result-panel { border-left: 0; border-top: 1px solid var(--line); padding: 36px 0 0; }
  #result-card { position: static; }
}

@media (max-width: 520px) {
  .criteria-card { padding: 15px 14px; }
  .criteria-copy strong { font-size: .9rem; }
  .score-line strong { font-size: 4.8rem; }
  .report-button { width: 100%; }
  .lee-table { font-size: .82rem; }
}
