.check-hero {
  background:
    linear-gradient(135deg, rgba(245, 249, 236, 0.98), rgba(238, 245, 220, 0.92)),
    var(--soft);
}

.check-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.check-hero-points li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  background: var(--paper);
  font-size: 0.92rem;
  font-weight: 800;
}

.quick-check-section {
  padding-top: 3.5rem;
}

.check-shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.check-sidebar {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--soft);
}

.check-sidebar h2 {
  font-size: 1.5rem;
}

.check-sidebar > p:not(.section-kicker) {
  margin: 0.75rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.check-sidebar progress,
.category-result progress {
  width: 100%;
  height: 0.75rem;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--green);
  background: var(--line);
}

progress::-webkit-progress-bar {
  background: var(--line);
}

progress::-webkit-progress-value {
  background: var(--green);
}

progress::-moz-progress-bar {
  background: var(--green);
}

.category-navigation {
  display: grid;
  gap: 0.35rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.category-navigation li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
  border-radius: 6px;
  padding: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.category-navigation li > span:first-child {
  display: grid;
  place-items: center;
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-weight: 900;
}

.category-navigation li > span:nth-child(2) {
  color: var(--ink);
  font-weight: 700;
}

.category-navigation li small {
  font-size: 0.72rem;
}

.category-navigation .is-current {
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.category-navigation .is-current > span:first-child,
.category-navigation .is-complete > span:first-child {
  border-color: var(--green);
  background: var(--green);
}

.local-note {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  font-size: 0.84rem;
}

.local-note p {
  margin: 0.3rem 0 0;
}

.check-workspace {
  min-width: 0;
}

.check-step-heading {
  margin-bottom: 1.5rem;
}

.check-step-heading > span {
  color: var(--olive);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.check-step-heading h2 {
  margin-top: 0.35rem;
}

.check-step-heading p {
  max-width: 720px;
  color: var(--muted);
}

.check-question {
  min-width: 0;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.check-question legend {
  width: 100%;
  padding: 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}

.check-question legend span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--olive);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.answer-option {
  position: relative;
  cursor: pointer;
}

.answer-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.answer-option span {
  display: grid;
  place-items: center;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.55rem;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.answer-option input:checked + span {
  border-color: var(--olive);
  background: var(--green-light);
  box-shadow: inset 0 0 0 2px var(--green);
}

.answer-option input:focus-visible + span {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.na-reason {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.8rem;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.na-reason input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.72rem;
  color: var(--ink);
  background: var(--paper);
}

.is-hidden {
  display: none;
}

.check-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.check-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.form-message {
  min-height: 1.5rem;
  color: #9f1f1f;
  font-weight: 800;
}

.check-result {
  scroll-margin-top: 100px;
}

.check-result[hidden],
#nis2-quick-check[hidden] {
  display: none;
}

.result-summary {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--soft);
}

.result-score {
  display: grid;
  place-items: center;
  align-content: center;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--paper) 78%, transparent 79% 100%), conic-gradient(var(--green) var(--score, 0deg), var(--line) 0);
  color: var(--ink);
  text-align: center;
}

.result-score strong {
  font-size: 2.35rem;
  line-height: 1;
}

.result-score span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.result-summary h2 {
  margin-top: 0;
}

.result-summary h3 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.result-summary p:last-child {
  margin-top: 0.5rem;
}

.result-disclaimer {
  margin: 1.25rem 0 2rem;
  border-left: 4px solid var(--green);
  padding: 0.9rem 1rem;
  background: var(--soft-accent);
}

.category-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.category-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
}

.category-result > div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.category-result span {
  color: var(--olive);
  font-weight: 900;
  white-space: nowrap;
}

.category-result small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
}

.priority-section {
  margin-top: 2rem;
}

.priority-list {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.5rem;
}

.priority-list li {
  border-bottom: 1px solid var(--line);
  padding: 0 0 0.75rem 0.35rem;
}

.priority-list span,
.priority-list strong {
  display: block;
}

.priority-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.priority-list strong {
  margin-top: 0.2rem;
}

.reset-button {
  border-color: var(--line);
  color: var(--ink);
  background: var(--paper);
}

.deep-check-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--green-light);
}

.report-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(47, 50, 52, 0.3);
}

.report-dialog::backdrop {
  background: rgba(47, 50, 52, 0.72);
}

.report-send-form {
  display: grid;
  gap: 0.9rem;
  padding: 1.4rem;
}

.dialog-heading {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.dialog-heading h3,
.dialog-heading p,
.report-send-form > p {
  margin: 0;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

.report-send-form > label:not(.report-consent) {
  display: grid;
  gap: 0.35rem;
  font-weight: 800;
}

.report-send-form input[type="email"] {
  width: 100%;
  border: 1px solid #aeb7a2;
  border-radius: 6px;
  padding: 0.75rem;
}

.report-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.report-consent input {
  margin-top: 0.25rem;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.report-status {
  min-height: 1.4rem;
  color: var(--olive);
  font-weight: 800;
}

.dialog-privacy,
.dialog-privacy a {
  color: var(--muted);
  font-size: 0.84rem;
}

.deep-check-teaser h3,
.deep-check-teaser p {
  margin-top: 0;
}

@media (max-width: 960px) {
  .check-shell {
    grid-template-columns: 1fr;
  }

  .check-sidebar {
    position: static;
  }

  .category-navigation {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .answer-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .check-hero-points,
  .category-navigation,
  .answer-options,
  .category-results,
  .result-summary,
  .deep-check-teaser {
    grid-template-columns: 1fr;
  }

  .check-hero-points {
    display: grid;
  }

  .category-navigation {
    display: none;
  }

  .result-score {
    width: 150px;
    height: 150px;
  }

  .check-actions,
  .result-actions {
    flex-direction: column;
  }

  .check-actions .button,
  .result-actions .button,
  .deep-check-teaser .button {
    width: 100%;
  }
}

@media print {
  .site-header,
  .site-footer,
  .check-sidebar,
  .result-actions,
  .deep-check-teaser,
  .boundary-section {
    display: none !important;
  }

  .quick-check-section {
    padding: 0;
  }

  .check-shell,
  .result-summary,
  .category-results {
    display: block;
  }

  .category-result,
  .priority-list li,
  .result-summary {
    break-inside: avoid;
  }
}
