.follow-up-group {
  margin: -0.35rem 0 1.25rem 2rem;
  padding: 1rem 0 0 1.35rem;
  border-left: 3px solid #7b32d4;
}

.follow-up-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #f3edff;
  color: #311068;
}

.follow-up-heading span { font-weight: 800; }
.follow-up-heading small { color: #6c6280; }

.question-card.follow-up-question {
  position: relative;
  margin-bottom: 1rem;
  border-color: #d9cbed;
  background: linear-gradient(145deg, #ffffff, #fbf8ff);
  box-shadow: 0 10px 28px rgba(42, 22, 86, 0.07);
}

.question-card.follow-up-question::before {
  content: "↳";
  position: absolute;
  left: -2.1rem;
  top: 1.2rem;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #6827da;
  font-weight: 900;
}

.governed-assessment { max-width: 1120px; }

.assessment-section-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 1rem 0 1.4rem;
}

.assessment-section-nav > * {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.55rem;
  min-height: 58px;
  padding: 0.65rem;
  border: 1px solid #d8dceb;
  border-radius: 12px;
  background: #fff;
  color: #34364c;
  text-decoration: none;
}

.assessment-section-nav > * span {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef0f7;
  font-weight: 800;
}

.assessment-section-nav > * em {
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.15;
  font-weight: 700;
}

.assessment-section-nav > *.current {
  border-color: #6827da;
  background: #f5f0ff;
  color: #311068;
  box-shadow: 0 8px 20px rgba(68, 33, 133, 0.10);
}

.assessment-section-nav > *.current span {
  background: #6827da;
  color: #fff;
}

.assessment-section-nav > *.visited span {
  background: #1d7864;
  color: #fff;
}

.profile-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-question-grid .question-card {
  margin: 0;
  min-width: 0;
}

.profile-question-grid .question-card:nth-child(1),
.profile-question-grid .question-card:nth-child(16),
.profile-question-grid .question-card:nth-child(17),
.profile-question-grid .question-card:nth-child(21) {
  grid-column: 1 / -1;
}

.profile-question .question-meta span:last-child {
  color: #6827da;
  background: #f3edff;
}

.profile-choices,
.profile-checks { margin-top: 0.8rem; }

.question-purpose {
  margin: -0.2rem 0 0.9rem;
  color: #62667a;
  line-height: 1.45;
}

.problem-section-intro {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #f8f7fb;
  color: #56596d;
}

.problem-section-intro strong { color: #17182b; }

.problem-selector-card {
  padding: 0;
  overflow: hidden;
  border-color: #d9ddea;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.problem-selector-card:hover {
  border-color: #ad94dc;
  transform: translateY(-1px);
}

.problem-selector-card.selected {
  border-color: #6827da;
  box-shadow: 0 12px 30px rgba(62, 28, 131, 0.12);
}

.problem-selector-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  padding: 1.2rem 1.25rem;
  cursor: pointer;
}

.problem-selector-label > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.problem-selector-control {
  width: 1.55rem;
  height: 1.55rem;
  margin-top: 0.15rem;
  border: 2px solid #aeb5c8;
  border-radius: 6px;
  background: #fff;
  position: relative;
}

.problem-selector-label > input:focus-visible + .problem-selector-control {
  outline: 3px solid rgba(104, 39, 218, 0.28);
  outline-offset: 3px;
}

.problem-selector-label > input:checked + .problem-selector-control {
  border-color: #6827da;
  background: #6827da;
}

.problem-selector-label > input:checked + .problem-selector-control::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.problem-selector-copy {
  display: grid;
  gap: 0.35rem;
}

.problem-selector-copy strong {
  color: #111326;
  font-size: 1.08rem;
  line-height: 1.3;
}

.problem-selector-copy small {
  color: #656a7d;
  line-height: 1.4;
}

.problem-selector-copy em {
  color: #6827da;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 700;
}

.problem-selector-meta {
  width: fit-content;
  padding: 0.2rem 0.45rem;
  border-radius: 5px;
  background: #f1f3f8;
  color: #5d6275;
  font-size: 0.72rem;
  font-weight: 700;
}

.assessment-route-preview {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f7f5fb;
}

.assessment-route-preview ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.4rem;
  margin: 0.8rem 0 0;
  padding-left: 1.4rem;
}

.assessment-actions {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin-top: 1.5rem;
  padding: 1rem 0;
  background: linear-gradient(to top, #fff 72%, rgba(255,255,255,0));
}

.conditional-profile-hidden[hidden],
.follow-up-group[hidden],
.follow-up-question[hidden] { display: none !important; }

.import-stat-grid { margin-top: -18px; }
.import-panel { max-width: 900px; margin: 0 auto 3rem; }
.compact-hero { min-height: 250px; }

@media (max-width: 920px) {
  .assessment-section-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-question-grid { grid-template-columns: 1fr; }
  .profile-question-grid .question-card { grid-column: auto; }
}

@media (max-width: 700px) {
  .follow-up-group {
    margin-left: 0.55rem;
    padding-left: 0.8rem;
  }

  .follow-up-heading { display: grid; }
  .question-card.follow-up-question::before { display: none; }
  .assessment-section-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assessment-section-nav > * em { font-size: 0.72rem; }
  .problem-section-intro { display: grid; }
  .assessment-route-preview ol { grid-template-columns: 1fr; }
}
