:root {
  --paper: #f1f6f4;
  --ink: #1a3840;
  --forest: #1f5f5b;
  --sage: #97b89d;
  --sun: #f1b85b;
  --coral: #d96b53;
  --white: #ffffff;
  --mist: #eaf1ee;
  --line: rgba(20, 51, 59, 0.08);
  --sidebar: #17363d;
  --shadow: 0 4px 16px rgba(20, 51, 59, 0.07);
  --shadow-soft: 0 2px 8px rgba(20, 51, 59, 0.05);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-main: "Aptos", "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f1f6f4;
  line-height: 1.6;
  font-family: var(--font-main);
}

.skip-link {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 50;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  transform: translateY(-180%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  position: relative;
  overflow: hidden;
  padding: 40px 24px 56px;
}

.background-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-a {
  top: -90px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: linear-gradient(135deg, rgba(217, 107, 83, 0.45), rgba(241, 184, 91, 0.2));
}

.orb-b {
  bottom: 120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: linear-gradient(135deg, rgba(31, 95, 91, 0.2), rgba(151, 184, 157, 0.4));
}

.hero,
.layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px);
  align-items: stretch;
  margin-bottom: 28px;
}

.layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
}

.hero-copy,
.hero-card,
.panel {
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 28px;
}

.hero-card {
  background: linear-gradient(135deg, #1a3840 0%, #1f5f5b 100%);
  color: #ffffff;
}

.eyebrow,
.panel-kicker,
.card-kicker {
  margin: 0 0 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.77rem;
  color: var(--forest);
  font-weight: 700;
}

.hero-card .card-kicker {
  color: rgba(255, 250, 243, 0.78);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-main);
  line-height: 1.08;
}

h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.3rem;
}

.hero-text,
.panel-note,
.microcopy,
.question-hint,
.section-description,
.muted {
  color: rgba(20, 51, 59, 0.74);
}

.hero-card .microcopy,
.hero-card .muted {
  color: rgba(255, 250, 243, 0.75);
}

.hero-text {
  max-width: 48rem;
  margin: 18px 0 0;
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.panel-head,
.row-split,
.domain-head,
.submit-block {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.panel-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.panel-note {
  max-width: 22rem;
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.5;
}

.stack {
  display: grid;
  gap: 18px;
}

.survey-toolbar,
.insight-toolbar,
.school-create-card,
.section-card,
.metric-card,
.rank-card,
.comparison-card,
.text-card,
.empty-state,
.status-banner {
  border-radius: var(--radius-lg);
}

.survey-toolbar,
.insight-toolbar,
.school-create-card,
.empty-state,
.status-banner {
  background: rgba(20, 51, 59, 0.04);
  border: 1px solid rgba(20, 51, 59, 0.09);
  padding: 18px;
}

.toolbar-grid,
.metric-grid,
.rank-grid,
.comparison-grid,
.text-grid,
.checkbox-grid,
.scale-grid {
  display: grid;
  gap: 14px;
}

.toolbar-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.rank-grid,
.comparison-grid,
.text-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scale-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(20, 51, 59, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.role-toggle,
.actions-row,
.small-metrics {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-button,
.action-button,
.ghost-button {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.pill-button {
  padding: 10px 16px;
  background: rgba(20, 51, 59, 0.08);
  color: var(--ink);
  font-weight: 600;
}

.pill-button.active {
  background: linear-gradient(135deg, var(--forest), #2d7d74);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(31, 95, 91, 0.22);
}

.action-button,
.ghost-button {
  padding: 12px 20px;
  font-weight: 700;
}

.action-button {
  background: linear-gradient(135deg, var(--coral), #be523b);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(217, 107, 83, 0.23);
}

.action-button:disabled,
.action-button.is-dimmed {
  background: rgba(20, 51, 59, 0.12);
  color: rgba(20, 51, 59, 0.38);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.ghost-button {
  background: rgba(20, 51, 59, 0.08);
  color: var(--ink);
}

.pill-button:hover,
.action-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.section-card,
.metric-card,
.rank-card,
.comparison-card,
.text-card {
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  padding: 18px;
}

.question-card,
.domain-item,
.rank-item,
.text-item,
.chip-card {
  padding: 14px;
  border-radius: 16px;
  background: #f4f9f7;
}

.question-card {
  display: grid;
  gap: 12px;
}

.question-card h4 {
  font-size: 1.03rem;
  line-height: 1.35;
}

.scale-option,
.choice-option {
  position: relative;
}

.scale-option input,
.choice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale-option label,
.choice-option label {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  border: 1px solid rgba(20, 51, 59, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px 10px;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.scale-option label {
  text-align: center;
}

.scale-number {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
}

.scale-label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.choice-list,
.domain-list,
.rank-list,
.chip-list,
.text-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choice-option input:checked + label,
.scale-option input:checked + label {
  background: linear-gradient(135deg, rgba(151, 184, 157, 0.4), rgba(241, 184, 91, 0.32));
  border-color: rgba(31, 95, 91, 0.4);
  transform: translateY(-1px);
}

.checkbox-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 51, 59, 0.12);
}

.checkbox-chip input {
  accent-color: var(--forest);
}

.submit-block {
  position: sticky;
  bottom: 16px;
  z-index: 2;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  padding: 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.submit-block p,
.status-banner {
  line-height: 1.5;
}

.status-banner {
  display: grid;
  gap: 10px;
}

.status-banner strong,
.submit-copy strong {
  font-size: 1rem;
}

.status-banner p,
.submit-copy p {
  margin: 0;
}

.status-detail-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.status-banner.success {
  background: rgba(151, 184, 157, 0.18);
  border-color: rgba(31, 95, 91, 0.22);
}

.status-banner.info {
  background: rgba(241, 184, 91, 0.14);
  border-color: rgba(241, 184, 91, 0.3);
}

.status-banner.error {
  background: rgba(217, 107, 83, 0.13);
  border-color: rgba(217, 107, 83, 0.26);
}

.metric-value,
.rank-score {
  font-weight: 700;
  color: var(--forest);
}

.metric-value {
  display: block;
  margin-top: 12px;
  font-size: 2rem;
}

.rank-score {
  font-size: 1.18rem;
}

.domain-item,
.rank-item,
.text-item {
  display: grid;
  gap: 8px;
}

.domain-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(20, 51, 59, 0.08);
  overflow: hidden;
}

.domain-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--forest);
  transition: width 400ms ease;
}

.domain-bar-small {
  height: 8px;
  flex: 1;
}

.domain-score-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.domain-role-bars {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.domain-role-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.domain-role-label {
  font-size: 0.78rem;
  color: var(--ink-muted, #6b7280);
  white-space: nowrap;
  min-width: 130px;
}

.domain-role-score {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 24px;
  text-align: right;
}

.domain-gap-row {
  margin-top: 6px;
}

.domain-item.score-low {
  border-left: 3px solid var(--coral, #d96b53);
}

.domain-item.score-mid {
  border-left: 3px solid var(--sun, #f1b85b);
}

.domain-item.score-high {
  border-left: 3px solid var(--forest, #1f5f5b);
}

.gap-badge,
.role-badge,
.school-badge,
.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
}

.gap-badge {
  background: rgba(241, 184, 91, 0.2);
  color: #7e5205;
}

.role-badge {
  background: rgba(151, 184, 157, 0.2);
  color: var(--forest);
}

.school-badge {
  background: rgba(20, 51, 59, 0.08);
  color: var(--ink);
}

.count-badge {
  background: rgba(217, 107, 83, 0.12);
  color: #94422f;
}

.chip-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.chip-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.hidden {
  display: none;
}

.loading-state,
.empty-state {
  padding: 18px;
}

.step-section,
.beginsituatie-step {
  display: grid;
  gap: 18px;
}

.step-intro,
.school-info-bar .microcopy {
  margin: 8px 0 0;
}

.step-footer,
.insights-toggle-section,
.school-info-bar,
.response-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.school-info-bar {
  justify-content: space-between;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(20, 51, 59, 0.04);
  border: 1px solid rgba(20, 51, 59, 0.09);
}

.response-summary {
  justify-content: flex-end;
}

.toggle-label,
.step-complete-label,
.b1-completed-label,
.b3-completed-label {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 600;
}

.toggle-label input,
.step-complete-label input,
.b1-completed-label input,
.b3-completed-label input {
  accent-color: var(--forest);
}

/* B6 Analyse & synthese */
.b6-synthesis-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.b6-synthesis-card {
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.09);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  gap: 8px;
}

.b6-synthesis-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest);
  display: flex;
  align-items: center;
  gap: 8px;
}

.b6-optional {
  font-weight: 400;
  font-size: 0.8rem;
  color: #6a8078;
}

.b6-synthesis-hint {
  font-size: 0.82rem;
  color: #5c7870;
  line-height: 1.5;
  margin: 0;
}

.b6-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid rgba(20, 51, 59, 0.18);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.55;
  color: var(--forest);
  background: #fafcfb;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.b6-textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: #fff;
}

.b6-ai-block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(20, 51, 59, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f4f9f7 0%, #eef5f8 100%);
  margin-bottom: 4px;
}
.b6-ai-copy { flex: 1; min-width: 0; }
.b6-ai-copy strong { display: block; font-size: 0.95rem; color: #14333b; margin-bottom: 2px; }
.b6-ai-copy .microcopy { margin: 0; font-size: 0.82rem; color: #4a6b60; }
.b6-ai-btn { flex: 0 0 auto; white-space: nowrap; }
.b6-ai-btn:disabled { opacity: 0.7; cursor: wait; }

.b6-reference-details {
  border: 1px solid rgba(20, 51, 59, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 4px;
}

.b6-reference-summary {
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #4a6b60;
  cursor: pointer;
  background: #f4f9f7;
  list-style: none;
  user-select: none;
}

.b6-reference-summary::-webkit-details-marker { display: none; }

.b6-reference-details[open] .b6-reference-summary {
  border-bottom: 1px solid rgba(20, 51, 59, 0.1);
}

.b6-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: #f4f9f7;
}

.b6-reference-card {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  display: grid;
  gap: 8px;
}

.b6-reference-card h4 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest);
}

.b6-reference-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #3d5a52;
}

.b6-no-b4-notice {
  padding: 14px 18px;
  background: #fdf8ed;
  border: 1px solid #e8d89a;
  border-radius: 10px;
  font-size: 0.86rem;
  color: #6b5a1e;
  margin-bottom: 4px;
}

.b8-actions-list {
  display: grid;
  gap: 16px;
}

.b8-action-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
}

.b8-guide-card {
  gap: 10px;
}

.b8-action-card.is-ready {
  border-color: rgba(31, 95, 91, 0.2);
  background: #f0f8f4;
}

.b8-action-card.is-progress {
  border-color: rgba(241, 184, 91, 0.26);
}

.b8-action-card.is-draft {
  border-color: rgba(20, 51, 59, 0.1);
}

.b8-action-card.is-done {
  border-color: rgba(31, 95, 91, 0.15);
  background: #f7faf9;
  opacity: 0.8;
}

.b8-action-card.is-done .b8-action-heading h4 {
  text-decoration: line-through;
  color: rgba(20, 51, 59, 0.5);
}

.b8-done-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1f5f5b;
  background: #d4ede8;
  padding: 1px 7px;
  border-radius: 99px;
  font-family: var(--font-main);
  vertical-align: middle;
  margin-left: 6px;
}

.b8-done-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f5f5b;
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}

.b8-action-header,
.b8-action-footer,
.b8-status-pill,
.b8-meta-pill,
.b8-empty-actions,
.b8-empty-checklist,
.b10-badge-row,
.dashboard-onboarding-card {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.b8-action-header {
  width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.b8-action-heading {
  display: grid;
  gap: 6px;
}

.b8-action-status-strip {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.b8-status-pill,
.b8-meta-pill {
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.b8-status-pill.is-ready {
  background: rgba(151, 184, 157, 0.24);
  color: var(--forest);
}

.b8-status-pill.is-progress {
  background: rgba(241, 184, 91, 0.22);
  color: #7e5205;
}

.b8-status-pill.is-draft {
  background: rgba(20, 51, 59, 0.08);
  color: rgba(20, 51, 59, 0.76);
}

.b8-meta-pill {
  background: #eaf1ee;
  color: rgba(20, 51, 59, 0.76);
}

.b8-action-body {
  display: grid;
  gap: 14px;
}

.b8-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.b8-action-footer {
  justify-content: space-between;
  align-items: center;
}

.b8-action-missing {
  margin: 0;
  max-width: 56ch;
}

.b8-action-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.b8-action-tools .ghost-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.b8-delete-btn {
  padding: 10px 16px;
}

.b8-empty-state {
  display: grid;
  gap: 14px;
}

.b8-empty-state strong {
  font-size: 1.1rem;
}

.b8-empty-checklist {
  color: rgba(20, 51, 59, 0.68);
}

.b8-empty-checklist span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 51, 59, 0.08);
}

.b9-guide-card {
  gap: 10px;
}

/* === B8 compacte rijweergave === */
.b8-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
}
.b8-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(20, 51, 59, 0.14);
  background: #fff;
  color: rgba(20, 51, 59, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.b8-filter-chip:hover { background: #f0f5f3; }
.b8-filter-chip.is-active {
  background: var(--forest, #1f5f5b);
  color: #fff;
  border-color: var(--forest, #1f5f5b);
}
.b8-filter-chip .b8-filter-count {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(20, 51, 59, 0.08);
  font-size: 0.72rem;
}
.b8-filter-chip.is-active .b8-filter-count { background: rgba(255, 255, 255, 0.25); }
.b8-filter-empty {
  padding: 20px;
  text-align: center;
  color: rgba(20, 51, 59, 0.6);
  background: #f7faf9;
  border-radius: 14px;
}

.b8-row {
  background: #fff;
  border: 1px solid rgba(20, 51, 59, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.b8-row:hover { border-color: rgba(20, 51, 59, 0.18); }
.b8-row.is-expanded {
  border-color: rgba(31, 95, 91, 0.35);
  box-shadow: 0 4px 16px rgba(20, 51, 59, 0.06);
}
.b8-row.bucket-ready { border-left: 4px solid #6fae8f; }
.b8-row.bucket-draft { border-left: 4px solid #d6b866; }
.b8-row.bucket-done { border-left: 4px solid rgba(31, 95, 91, 0.3); opacity: 0.85; }

.b8-row-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.b8-row-caret {
  font-size: 0.8rem;
  color: rgba(20, 51, 59, 0.5);
  width: 14px;
}
.b8-row-title {
  font-weight: 600;
  color: #14333b;
  overflow: hidden;
  text-overflow: ellipsis;
}
.b8-row.bucket-done .b8-row-title { text-decoration: line-through; color: rgba(20, 51, 59, 0.5); }
.b8-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.b8-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: #eaf1ee;
  color: rgba(20, 51, 59, 0.76);
  white-space: nowrap;
}
.b8-chip--owner { background: #e4eef0; color: #14555e; }
.b8-chip--date { background: #f2ecd9; color: #7e5205; }
.b8-chip--quadrant { background: rgba(31, 95, 91, 0.12); color: #1f5f5b; }
.b8-chip--muted { background: rgba(20, 51, 59, 0.05); color: rgba(20, 51, 59, 0.5); }

.b8-row-detail {
  display: grid;
  gap: 14px;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(20, 51, 59, 0.08);
  background: #fafcfb;
}
.b8-row-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 640px) {
  .b8-row-head { grid-template-columns: auto 1fr; }
  .b8-row-meta { grid-column: 1 / -1; justify-content: flex-start; }
}

/* B10 — simplified checklist */
.b10-intro-note {
  padding: 12px 16px;
  background: #f4f9f7;
  border-left: 3px solid rgba(31, 95, 91, 0.4);
  border-radius: 8px;
  font-size: 0.86rem;
  color: #3d5a52;
  line-height: 1.5;
  margin-bottom: 4px;
}

.b10-checklist {
  display: grid;
  gap: 6px;
}

.b10-check-row {
  background: #fff;
  border: 1px solid rgba(20, 51, 59, 0.09);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.b10-check-row.is-ok {
  background: #f2faf5;
  border-color: rgba(31, 95, 91, 0.2);
}

.b10-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
}

.b10-check-input {
  margin-top: 2px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  accent-color: var(--forest);
  cursor: pointer;
}

.b10-check-number {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(20, 51, 59, 0.35);
  min-width: 18px;
  padding-top: 2px;
}

.b10-check-text {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--forest);
}

.b10-check-row.is-ok .b10-check-text {
  color: #2a7a55;
}

.b10-auto-hint {
  margin: 0 0 4px 44px;
  font-size: 0.76rem;
  font-family: var(--font-main);
  color: #2a7a55;
  opacity: 0.75;
  font-style: italic;
}

.b10-notes-details {
  border-top: 1px solid rgba(20, 51, 59, 0.06);
}

.b10-notes-toggle {
  padding: 6px 16px;
  font-size: 0.78rem;
  color: #5c7870;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.b10-notes-toggle::-webkit-details-marker { display: none; }
.b10-notes-toggle::before { content: "+ "; }
.b10-notes-details[open] .b10-notes-toggle::before { content: "− "; }

.b10-notes-textarea {
  width: 100%;
  padding: 8px 16px 12px;
  border: none;
  font-size: 0.86rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--forest);
  background: transparent;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
}

.b10-notes-textarea:focus {
  outline: none;
  background: #f8fcfa;
}

/* B9 — simplified collapsible theme rows */
.b9-help {
  padding: 12px 16px;
  background: #f4f9f7;
  border-left: 3px solid var(--forest);
  border-radius: 8px;
  font-size: 0.88rem;
  color: #3d5a52;
  margin-bottom: 4px;
  line-height: 1.5;
}

.b9-theme-list {
  display: grid;
  gap: 8px;
}

.b9-theme-row {
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}

.b9-theme-row.status-afgerond {
  border-color: rgba(31, 95, 91, 0.25);
  background: #f4faf7;
}

.b9-theme-row.status-bezig {
  border-color: rgba(241, 184, 91, 0.35);
  background: #fffbf2;
}

.b9-theme-row.status-niet_van_toepassing {
  opacity: 0.6;
}

.b9-theme-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.b9-theme-summary::-webkit-details-marker { display: none; }

.b9-theme-summary::before {
  content: "▸";
  color: rgba(20, 51, 59, 0.4);
  font-size: 0.75rem;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.b9-theme-row[open] .b9-theme-summary::before {
  transform: rotate(90deg);
}

.b9-theme-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--forest);
}

.b9-theme-status {
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  flex-shrink: 0;
}

.b9-theme-status--gray { background: #eef2f0; color: #5c7268; }
.b9-theme-status--muted { background: #f0f0f0; color: #888; }
.b9-theme-status--progress { background: #fdf2d9; color: #8a6a1c; }
.b9-theme-status--ready { background: #d8ecdf; color: #1f5f5b; }

.b9-theme-body {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(20, 51, 59, 0.06);
  display: grid;
  gap: 12px;
  padding-top: 14px;
}

.b9-status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.b9-status-btn {
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(20, 51, 59, 0.15);
  background: #fafcfb;
  color: #5c7268;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
}

.b9-status-btn:hover { background: #eef2f0; }

.b9-status-btn.is-active.b9-status-btn--gray { background: #e5e9e7; color: #3d5a52; border-color: #3d5a52; }
.b9-status-btn.is-active.b9-status-btn--muted { background: #e0e0e0; color: #555; border-color: #888; }
.b9-status-btn.is-active.b9-status-btn--progress { background: #fdf2d9; color: #8a6a1c; border-color: #d7b965; }
.b9-status-btn.is-active.b9-status-btn--ready { background: #d8ecdf; color: #1f5f5b; border-color: #1f5f5b; }

.b9-theme-notes {
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 51, 59, 0.15);
  border-radius: 8px;
  font-size: 0.86rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--forest);
  background: #fff;
  resize: none;
  overflow: hidden;
  box-sizing: border-box;
}

.b9-theme-notes:focus {
  outline: none;
  border-color: var(--forest);
}

.export-section {
  display: grid;
  gap: 32px;
}

.export-preview-frame {
  width: 100%;
  min-height: 900px;
  border: 1px solid rgba(20, 51, 59, 0.12);
  border-radius: 16px;
  background: #fff;
}

.export-frame-shell {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 51, 59, 0.08);
}

.export-frame-shell:fullscreen {
  border-radius: 0;
  padding: 0;
  background: #fff;
}
.export-frame-shell:fullscreen .export-preview-frame {
  width: 100%;
  height: 100vh;
  min-height: 0;
  border: none;
  border-radius: 0;
}

.export-readiness-panel {
  gap: 16px;
}

.export-missing-panel {
  gap: 16px;
}

.export-readiness-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.export-readiness-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(20, 51, 59, 0.07);
  background: #f4f9f7;
}

.export-readiness-card.is-ready {
  border-color: rgba(31, 95, 91, 0.18);
  background: #f0f8f4;
}

.export-readiness-card.is-progress {
  border-color: rgba(241, 184, 91, 0.24);
}

.export-readiness-link {
  min-height: 42px;
}

.export-missing-list {
  display: grid;
  gap: 12px;
}

.export-missing-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(20, 51, 59, 0.07);
  background: #f4f9f7;
}

.export-complete-state {
  background: rgba(151, 184, 157, 0.12);
  border-style: solid;
  border-color: rgba(31, 95, 91, 0.18);
}

.export-preview-note {
  margin: 0 0 10px;
}

.export-pdf-tip {
  font-size: 0.84rem;
  font-family: var(--font-main);
  background: rgba(79, 157, 166, 0.07);
  border: 1px solid rgba(79, 157, 166, 0.22);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 14px;
  line-height: 1.55;
  color: #14333b;
}

.export-pdf-tip strong { color: #1f5f5b; }
.export-pdf-tip em { font-style: italic; color: #2d6a6a; }

/* ── Export: document panel ─────────────────────────── */
.export-document-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(31, 95, 91, 0.04), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(20, 51, 59, 0.08);
}
.export-document-head {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  gap: 18px;
  align-items: start;
}
.export-document-head h3 { margin: 4px 0 6px; }
.export-document-head .microcopy { margin: 0; }
.export-document-tip {
  font-size: 0.83rem;
  font-family: var(--font-main);
  background: rgba(79, 157, 166, 0.08);
  border: 1px solid rgba(79, 157, 166, 0.22);
  border-radius: 12px;
  padding: 10px 14px;
  line-height: 1.5;
  color: #14333b;
}
.export-document-tip strong { color: #1f5f5b; }
.export-document-tip em { font-style: italic; color: #2d6a6a; }

@media (max-width: 720px) {
  .export-document-head { grid-template-columns: 1fr; }
}

/* ── Export: preflight panel ────────────────────────── */
.preflight-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}
.preflight-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.preflight-head h3 { margin: 4px 0 0; }

.preflight-progress {
  display: flex;
  align-items: center;
  gap: 14px;
}
.preflight-progress__ring {
  --pct: 0;
  --size: 64px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(#1f5f5b calc(var(--pct) * 1%), rgba(20, 51, 59, 0.08) 0);
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}
.preflight-progress__ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: #fff;
  border-radius: 50%;
}
.preflight-progress__value {
  position: relative;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f5f5b;
  display: flex;
  align-items: baseline;
  gap: 1px;
  z-index: 1;
}
.preflight-progress__value small { font-size: 0.6rem; font-weight: 500; opacity: 0.7; }

.preflight-progress__meta {
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: #5a7a7f;
  line-height: 1.35;
}
.preflight-progress__meta strong {
  color: #14333b;
  font-size: 1.05rem;
  font-weight: 700;
}
.preflight-progress__sub { font-size: 0.75rem; opacity: 0.85; }

/* Banner */
.preflight-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 14px;
  font-family: var(--font-main);
}
.preflight-banner strong { display: block; color: #14333b; font-size: 0.95rem; }
.preflight-banner .microcopy { margin: 4px 0 0; font-size: 0.85rem; }
.preflight-banner__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 1rem;
}
.preflight-banner.is-ready {
  background: rgba(31, 95, 91, 0.08);
  border: 1px solid rgba(31, 95, 91, 0.18);
}
.preflight-banner.is-ready .preflight-banner__icon {
  background: #1f5f5b; color: #fff;
}
.preflight-banner.is-attention {
  background: rgba(241, 184, 91, 0.12);
  border: 1px solid rgba(241, 184, 91, 0.32);
}
.preflight-banner.is-attention .preflight-banner__icon {
  background: #f1b85b; color: #5a3d0a;
}
.preflight-banner a {
  color: #1f5f5b;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Phase grid */
.preflight-phases {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.preflight-phase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(20, 51, 59, 0.025);
  border: 1px solid rgba(20, 51, 59, 0.06);
}
.preflight-phase__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f5f5b;
}
.preflight-phase__icon { font-size: 0.95rem; }

.preflight-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preflight-step__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(20, 51, 59, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.preflight-step__link:hover {
  border-color: rgba(31, 95, 91, 0.32);
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(20, 51, 59, 0.06);
}
.preflight-step__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.preflight-step__dot.is-ready    { background: #1f5f5b; box-shadow: 0 0 0 3px rgba(31, 95, 91, 0.18); }
.preflight-step__dot.is-progress { background: #f1b85b; box-shadow: 0 0 0 3px rgba(241, 184, 91, 0.28); }
.preflight-step__dot.is-draft    { background: #ccd5d5; }

.preflight-step__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.preflight-step__title {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  color: #14333b;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.preflight-step__optional {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(20, 51, 59, 0.06);
  color: #5a7a7f;
  padding: 1px 6px;
  border-radius: 999px;
}
.preflight-step__status {
  font-family: var(--font-main);
  font-size: 0.76rem;
  color: #5a7a7f;
}
.preflight-step--afgerond .preflight-step__status { color: #1f5f5b; font-weight: 600; }
.preflight-step--bezig .preflight-step__status    { color: #b07d10; font-weight: 600; }

.preflight-step__chevron {
  color: #b0bec0;
  font-size: 1.2rem;
  font-family: var(--font-main);
  transition: transform 0.12s ease, color 0.12s ease;
}
.preflight-step__link:hover .preflight-step__chevron {
  color: #1f5f5b;
  transform: translateX(3px);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 220ms ease;
}

.app-shell.sidebar-is-collapsed {
  grid-template-columns: 64px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  transition: width 220ms ease;
  padding: 22px 16px;
  background:
    linear-gradient(180deg, rgba(38, 76, 82, 0.96), rgba(28, 58, 64, 0.96)),
    radial-gradient(circle at top right, rgba(241, 184, 91, 0.10), transparent 35%);
  border-right: 1px solid rgba(255, 250, 243, 0.08);
}

/* ── Sidebar edge toggle (always visible on the seam) ─────── */

.sidebar-edge-toggle {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: calc(320px - 14px);
  z-index: 100;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(31, 95, 91, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--forest);
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 220ms ease, transform 220ms ease, background 120ms ease;
}

.sidebar-edge-toggle:hover {
  background: #f0f7f6;
}

.app-shell.sidebar-is-collapsed .sidebar-edge-toggle {
  left: calc(64px - 14px);
  transform: translateY(-50%) rotate(180deg);
}

.app-shell.sidebar-is-collapsed .sidebar-expanded-only {
  display: none !important;
}

.app-shell.sidebar-is-collapsed .sidebar-brand-text {
  display: none;
}

.app-shell.sidebar-is-collapsed .sidebar-header {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
}

.app-shell.sidebar-is-collapsed .sidebar-brand {
  justify-content: center;
}

.main-content {
  min-width: 0;
  padding: 30px 34px 56px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.main-content:focus-visible {
  outline: 3px solid rgba(31, 95, 91, 0.24);
  outline-offset: 6px;
}

.main-content > * {
  max-width: 1380px;
  margin: 0 auto;
  animation: rise-in 220ms ease both;
}

.action-button,
.ghost-button,
.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.action-button:focus-visible,
.ghost-button:focus-visible,
.pill-button:focus-visible,
.sidebar-step:focus-visible,
.sidebar-quick-link:focus-visible,
.school-card:focus-visible,
.step-overview-item:focus-visible,
.home-search:focus-visible,
.home-filter-select:focus-visible,
.sidebar-select:focus-visible,
.share-link-input:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgba(31, 95, 91, 0.24);
  outline-offset: 2px;
}

.home-search,
.home-filter-select,
.sidebar-select,
.share-link-input {
  width: 100%;
  border: 1px solid rgba(20, 51, 59, 0.15);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.home-search:focus,
.home-filter-select:focus,
.sidebar-select:focus,
.share-link-input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(31, 95, 91, 0.4);
  box-shadow: 0 0 0 4px rgba(31, 95, 91, 0.1);
  background: #fff;
}

.loading-state,
.empty-state {
  border-radius: 24px;
  background: #f4f9f7;
  border: 1px dashed rgba(20, 51, 59, 0.14);
  color: rgba(20, 51, 59, 0.76);
}

.step-navigation {
  display: flex;
  justify-content: flex-end;
}

.step-section,
.beginsituatie-step {
  max-width: 1220px;
  margin: 0 auto;
  gap: 20px;
}

.section-card,
.survey-toolbar,
.school-info-bar,
.question-card {
  box-shadow: var(--shadow-soft);
}

.section-card {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
}

/* ── Inklapbare step-guide (vervangt section-card voor 'Wat zie je hier'-blokken) ── */
.step-guide {
  background: rgba(31, 95, 91, 0.04);
  border: 1px solid rgba(31, 95, 91, 0.12);
  border-radius: 14px;
  padding: 0;
  margin: 0 0 12px;
}

.step-guide > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  border-radius: 14px;
  user-select: none;
}

.step-guide > summary::-webkit-details-marker { display: none; }

.step-guide > summary::after {
  content: "▸";
  margin-left: auto;
  color: rgba(20, 51, 59, 0.4);
  font-size: 0.85rem;
  transition: transform 0.15s;
}

.step-guide[open] > summary::after {
  transform: rotate(90deg);
}

.step-guide > summary:hover {
  background: rgba(31, 95, 91, 0.06);
}

.step-guide-kicker {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--forest);
  flex-shrink: 0;
}

.step-guide-lead {
  font-size: 0.92rem;
  color: rgba(20, 51, 59, 0.78);
  line-height: 1.45;
  flex: 1 1 200px;
  min-width: 0;
}

.step-guide > p,
.step-guide > div {
  padding: 0 16px 14px;
  margin: 0;
}

.step-guide > .b4-legend {
  padding-top: 8px;
}

.survey-toolbar {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
}

.school-info-bar {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fcfa 0%, #eef5f2 100%);
}

.question-card {
  padding: 18px;
  border: 1px solid rgba(20, 51, 59, 0.07);
  background: #f8fcfa;
}

.question-card:hover {
  transform: translateY(-1px);
}

.survey-comment-card {
  background: #fafcfb;
  border-color: rgba(20, 51, 59, 0.05);
}

.survey-comment-label {
  font-size: 0.88rem;
  color: #4a6b60;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.survey-comment-optional {
  font-size: 0.78rem;
  color: #7a9690;
  font-weight: 400;
}

.survey-comment-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(20, 51, 59, 0.15);
  border-radius: 10px;
  font-size: 0.88rem;
  font-family: inherit;
  line-height: 1.5;
  color: var(--forest);
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.survey-comment-textarea:focus {
  outline: none;
  border-color: var(--forest);
}

.insights-panel {
  display: grid;
  gap: 18px;
}

.insights-toggle-section {
  justify-content: flex-end;
}

.submit-block {
  gap: 16px;
}

.submit-block .action-button,
.step-navigation .action-button {
  min-height: 48px;
}

.beleid-close-block {
  border-left: 4px solid var(--forest, #1f5f5b);
}

.beleid-close-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.beleid-close-stat {
  flex: 1 1 100px;
  padding: 12px 16px;
  background: rgba(31, 95, 91, 0.06);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.beleid-close-stat-value {
  font-size: 24px;
  font-weight: 600;
  color: var(--forest, #1f5f5b);
}

.beleid-close-stat-label {
  font-size: 13px;
  color: rgba(20, 51, 59, 0.7);
}

.step-shell {
  display: grid;
  gap: 22px;
}

.step-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  padding: 24px;
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  box-shadow: var(--shadow-soft);
}

.step-hero-main,
.step-hero-side {
  display: grid;
  gap: 14px;
}

.step-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.step-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(20, 51, 59, 0.06);
  color: rgba(20, 51, 59, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
}

.step-chip-accent {
  background: rgba(31, 95, 91, 0.12);
  color: var(--forest);
  font-weight: 700;
}

.step-chip-optional {
  background: #fdf2d9;
  color: #8a6a1c;
  border: 1px dashed #d7b965;
}

.step-position {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(20, 51, 59, 0.45);
  letter-spacing: 0.02em;
}

.step-hero--optional {
  border: 1px dashed rgba(180, 140, 60, 0.35);
  background: linear-gradient(135deg, #fffbf2 0%, #fef8ea 100%);
}

.step-optional-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin: -8px 0 16px;
  background: #fffaed;
  border: 1px solid #e8d89a;
  border-radius: 12px;
  flex-wrap: wrap;
}

.step-optional-banner-copy strong {
  display: block;
  font-size: 0.92rem;
  color: #6b5a1e;
  margin-bottom: 2px;
}

.step-optional-banner-copy p {
  margin: 0;
  font-size: 0.84rem;
  color: #8a7a45;
  line-height: 1.4;
}

.step-optional-skip {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── AI-kompas panel (dashboard aside) ── */

.ai-score-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ai-score-row {
  display: grid;
  grid-template-columns: 80px 1fr 36px;
  align-items: center;
  gap: 10px;
}

.ai-score-label {
  font-size: 0.83rem;
  color: rgba(20, 51, 59, 0.7);
  font-weight: 500;
}

.ai-score-bar-track {
  height: 8px;
  background: rgba(20, 51, 59, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.ai-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4f9da6, #2d6a6a);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.ai-score-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: #14333b;
  text-align: right;
}

.ai-signals-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ai-signal {
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-signal--strength {
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.ai-signal--attention {
  background: rgba(234, 179, 8, 0.07);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.ai-signal .panel-kicker {
  margin: 0;
  font-size: 0.72rem;
}

.ai-signal-text {
  margin: 0;
  font-size: 0.85rem;
  color: #14333b;
  line-height: 1.45;
}

.ai-signal-score {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(20, 51, 59, 0.6);
}

.ai-kompas-cta {
  width: 100%;
  text-align: center;
  display: block;
}

/* ── B9 startsjabloon hint ── */

.b9-template-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
  background: rgba(79, 157, 166, 0.07);
  border: 1px solid rgba(79, 157, 166, 0.25);
  border-radius: 10px;
  font-size: 0.83rem;
  color: rgba(20, 51, 59, 0.75);
}

.b9-template-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(79, 157, 166, 0.5);
  background: white;
  color: #2d6a6a;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.b9-template-btn:hover {
  background: rgba(79, 157, 166, 0.1);
  border-color: #4f9da6;
}

/* ── Visie-fase banner (boven B1/B2/B3) ── */
.visie-phase-banner {
  display: grid;
  gap: 16px;
  padding: 18px 22px;
  margin: 0 0 4px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(31, 95, 91, 0.08) 0%, rgba(31, 95, 91, 0.02) 100%);
  border: 1px solid rgba(31, 95, 91, 0.18);
}

.visie-phase-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.visie-phase-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--forest);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.visie-phase-intro p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(20, 51, 59, 0.82);
  line-height: 1.45;
  flex: 1;
  min-width: 240px;
}

.visie-track {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}

.visie-track-step {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(20, 51, 59, 0.7);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(20, 51, 59, 0.08);
  transition: background 0.15s, border 0.15s, transform 0.1s;
}

.visie-track-step:hover {
  background: #fff;
  border-color: rgba(31, 95, 91, 0.3);
}

.visie-track-step.is-current {
  background: #fff;
  border: 2px solid var(--forest);
  color: var(--forest);
  box-shadow: 0 4px 12px rgba(31, 95, 91, 0.12);
}

.visie-track-step.is-done {
  background: rgba(31, 95, 91, 0.12);
  border-color: rgba(31, 95, 91, 0.25);
  color: var(--forest);
}

.visie-track-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(20, 51, 59, 0.08);
  color: rgba(20, 51, 59, 0.6);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.visie-track-step.is-current .visie-track-marker {
  background: var(--forest);
  color: #fff;
}

.visie-track-step.is-done .visie-track-marker {
  background: var(--forest);
  color: #fff;
}

.visie-track-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.visie-track-copy strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.visie-track-copy small {
  font-size: 0.78rem;
  opacity: 0.7;
  line-height: 1.2;
}

.visie-track-connector {
  flex: 0 0 20px;
  align-self: center;
  height: 2px;
  background: rgba(20, 51, 59, 0.15);
  margin: 0 -4px;
}

.step-hero--visie {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

@media (max-width: 720px) {
  .visie-track-connector {
    display: none;
  }
}

.step-hero-side {
  align-content: start;
}

.step-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 10px 0 2px;
  align-items: baseline;
}

.step-completion-panel {
  padding: 14px 16px;
  border-radius: 20px;
  background: #f4f9f7;
  border: 1px solid rgba(20, 51, 59, 0.07);
}

.step-summary-card {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  position: relative;
}

.step-summary-card + .step-summary-card::before {
  content: "·";
  position: absolute;
  left: -12px;
  color: rgba(20, 51, 59, 0.28);
  font-weight: 400;
}

.step-summary-card strong {
  font-family: var(--font-main);
  font-size: 1.05rem;
  color: var(--forest);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.step-summary-card span {
  color: rgba(20, 51, 59, 0.62);
  font-size: 0.82rem;
}

.step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.step-completion-panel {
  align-content: center;
}

.step-feedback-slot {
  min-height: 0;
  display: flex;
  justify-content: flex-end;
}

.step-feedback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: rgba(20, 51, 59, 0.65);
  background: transparent;
  border: 1px solid transparent;
  line-height: 1;
}

.step-feedback-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.step-feedback-text {
  white-space: nowrap;
}

.step-feedback-saving .step-feedback-icon {
  animation: spin 1.2s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.step-feedback-button {
  margin-left: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.step-feedback-button:hover {
  background: rgba(217, 107, 83, 0.08);
}

/* Legacy classes — uitgeschakeld zodat oude markup niet meer als panel toont */
.step-feedback-head,
.step-feedback strong,
.step-feedback span.step-feedback-badge,
.step-feedback-detail,
.step-feedback-actions {
  display: none;
}

/* Type-specifieke kleuraccenten op de pill (subtiel) */
.step-feedback-saving { color: #9a6c19; }
.step-feedback-success { color: #2a6b3d; }
.step-feedback-error {
  color: #a84a36;
  background: rgba(217, 107, 83, 0.08);
  border-color: rgba(217, 107, 83, 0.22);
}

.step-feedback-info {
  color: rgba(20, 51, 59, 0.7);
}

.step-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.step-pagination-link {
  min-height: 48px;
}

.step-pagination-spacer {
  display: block;
  min-height: 48px;
}

.survey-layout {
  display: grid;
  gap: 20px;
  grid-template-columns: 220px minmax(0, 1fr) minmax(260px, 0.6fr);
  align-items: start;
}

/* Teacher layout: nav + form + radar (fixed widths) */
.survey-layout--teacher {
  grid-template-columns: 220px minmax(0, 1fr) 300px;
}

/* ── Leerkracht inzichten (schoolprofiel) ────────────────── */

.li-page { max-width: 960px; }

.li-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.li-hero-text { flex: 1; min-width: 0; }
.li-hero-text h1 { font-size: 1.8rem; margin: 6px 0 10px; }
.li-hero-sub { color: rgba(20,51,59,0.7); line-height: 1.55; max-width: 520px; }

.li-hero-stats {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.li-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(31,95,91,0.06);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 72px;
}

.li-stat-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
}

.li-stat-label {
  font-size: 0.72rem;
  color: rgba(20,51,59,0.55);
  font-weight: 600;
  margin-top: 4px;
  text-align: center;
}

.li-empty-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  gap: 12px;
  color: rgba(20,51,59,0.65);
}

.li-empty-icon { font-size: 2.5rem; }

.li-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.li-radar-card { display: flex; flex-direction: column; gap: 10px; }
.li-radar-wrap { display: flex; justify-content: center; padding: 12px 0; overflow: visible; }

.radar-data--school {
  fill: rgba(31, 95, 91, 0.18);
  stroke: var(--forest);
  stroke-width: 2.5;
}

.li-score-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border-radius: 20px;
  padding: 22px 20px;
  border: 1px solid rgba(31,95,91,0.08);
  box-shadow: var(--shadow-soft);
}

.li-score-row { display: flex; flex-direction: column; gap: 5px; }

.li-score-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.li-score-head strong { font-size: 0.85rem; }

.li-score-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.li-score-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(31,95,91,0.08);
  overflow: hidden;
}

.li-score-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 400ms ease;
}

.li-score-num {
  font-size: 0.72rem;
  color: rgba(20,51,59,0.5);
  font-weight: 600;
}

.li-domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.li-domain-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(31,95,91,0.08);
  box-shadow: var(--shadow-soft);
  padding: 18px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.li-domain-icon { font-size: 1.6rem; flex-shrink: 0; line-height: 1; }

.li-domain-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.li-domain-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.li-domain-head h3 { font-size: 0.92rem; margin: 0; }

.li-domain-why,
.li-domain-what {
  font-size: 0.78rem;
  color: rgba(20,51,59,0.65);
  line-height: 1.45;
  margin: 0;
}

.li-domain-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(31,95,91,0.08);
  overflow: hidden;
  margin-top: 2px;
}

.li-domain-fill {
  height: 100%;
  border-radius: inherit;
}

/* ── Rolvergelijking in domein-kaarten ── */

.li-role-compare {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.li-role-row {
  display: grid;
  grid-template-columns: 80px 1fr 30px;
  align-items: center;
  gap: 8px;
}

.li-role-label {
  font-size: 0.76rem;
  color: rgba(20, 51, 59, 0.6);
  font-weight: 500;
}

.li-role-bar-track {
  height: 5px;
  border-radius: 999px;
  background: rgba(20, 51, 59, 0.08);
  overflow: hidden;
}

.li-role-bar-fill {
  height: 100%;
  border-radius: inherit;
}

.li-role-bar--teacher { background: #4f9da6; }
.li-role-bar--leader  { background: #1f5f5b; }

.li-role-score {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(20, 51, 59, 0.6);
  text-align: right;
}

.li-role-gap {
  margin: 4px 0 0;
  font-size: 0.77rem;
  font-weight: 600;
  font-family: var(--font-main);
}

/* ── Leerkracht beleidsplan status ───────────────────────── */

.lbp-page { max-width: 860px; }

.lbp-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.lbp-hero-text { flex: 1; min-width: 0; }
.lbp-hero-text h1 { font-size: 1.8rem; margin: 6px 0 10px; }
.lbp-status-msg { font-size: 1rem; color: rgba(20,51,59,0.75); line-height: 1.5; margin-bottom: 8px; }

.lbp-donut-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }

.lbp-donut-pct {
  font-size: 18px;
  font-weight: 900;
  fill: var(--forest);
  font-family: inherit;
}

.lbp-donut-label {
  font-size: 9px;
  fill: rgba(20,51,59,0.5);
  font-family: inherit;
}

.lbp-phases { display: flex; flex-direction: column; gap: 16px; }

.lbp-phase {
  border: 1px solid rgba(31,95,91,0.1);
  border-radius: 16px;
  overflow: hidden;
}

.lbp-phase--done { border-color: rgba(31,95,91,0.3); background: rgba(31,95,91,0.02); }
.lbp-phase--active { border-color: rgba(201,137,58,0.35); }

.lbp-phase-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(31,95,91,0.04);
  border-bottom: 1px solid rgba(31,95,91,0.06);
}

.lbp-phase-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(31,95,91,0.1);
  color: rgba(20,51,59,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.lbp-phase-badge.done { background: var(--forest); color: white; }
.lbp-phase-badge.active { background: #c9893a; color: white; }

.lbp-steps { padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }

.lbp-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: rgba(20,51,59,0.55);
}

.lbp-step--done { color: var(--forest); }
.lbp-step--active { color: #c9893a; background: rgba(201,137,58,0.06); }

.lbp-step-icon { font-size: 1rem; text-align: center; }
.lbp-step-label { font-weight: 600; }
.lbp-step-status { font-size: 0.75rem; white-space: nowrap; }

.lbp-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 32px;
  gap: 10px;
  background: rgba(31,95,91,0.03);
}

.lbp-callout--success { background: rgba(31,95,91,0.06); border-color: rgba(31,95,91,0.2); }
.lbp-callout-icon { font-size: 2.2rem; }

/* ── Live radar panel ────────────────────────────────────── */

.live-radar-panel {
  position: sticky;
  top: 24px;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(31, 95, 91, 0.1);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.radar-completion-ring {
  flex-shrink: 0;
}

.radar-ring-fill {
  transition: stroke-dasharray 400ms ease;
}

.radar-pct-text {
  font-size: 11px;
  font-weight: 800;
  fill: var(--forest);
  font-family: inherit;
}

.radar-chart-wrap {
  display: flex;
  justify-content: center;
  overflow: visible;
  padding: 12px 0;
}

.radar-svg {
  overflow: visible;
}

/* Grid rings */
.radar-ring {
  fill: none;
  stroke: rgba(31, 95, 91, 0.08);
  stroke-width: 1;
}

/* Spokes */
.radar-spoke {
  stroke: rgba(31, 95, 91, 0.1);
  stroke-width: 1;
}

/* Data shape */
.radar-data {
  fill: rgba(31, 95, 91, 0.15);
  stroke: var(--forest);
  stroke-width: 2;
  stroke-linejoin: round;
  transition: all 300ms ease;
}

/* Dots on data points */
.radar-dot {
  fill: var(--forest);
  stroke: white;
  stroke-width: 1.5;
}

/* Axis labels */
.radar-label {
  font-size: 8.5px;
  fill: rgba(20, 51, 59, 0.45);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.radar-label--active {
  fill: var(--forest);
  opacity: 1;
}

/* Motivation text */
.radar-motivation {
  font-size: 0.8rem;
  color: var(--forest);
  font-weight: 600;
  text-align: center;
  background: rgba(31, 95, 91, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  line-height: 1.4;
}

/* Domain score bars */
.radar-domain-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.radar-domain-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
}

.radar-domain-name {
  font-size: 0.72rem;
  color: rgba(20, 51, 59, 0.65);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  grid-column: 1 / -1;
}

.radar-domain-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.radar-domain-row:not(:last-child) {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(31, 95, 91, 0.06);
}

.radar-domain-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.radar-domain-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(31, 95, 91, 0.08);
  overflow: hidden;
}

.radar-domain-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), #2d8b85);
  transition: width 350ms ease;
  min-width: 0;
}

.radar-domain-score {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--forest);
  min-width: 24px;
  text-align: right;
}

/* ── Survey nav column (sticky theme sidebar) ────────────── */

.survey-nav-col {
  position: sticky;
  top: 24px;
  width: 220px;
  flex-shrink: 0;
}

.survey-nav-col .survey-section-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  grid-template-columns: unset;
}

.survey-nav-col .survey-section-link {
  padding: 10px 12px;
  gap: 10px;
}

.survey-nav-col .survey-section-copy strong {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  font-size: 0.88rem;
  line-height: 1.25;
}

.survey-nav-col .survey-section-status {
  white-space: nowrap;
  font-size: 0.78rem;
}

/* ── Glossary tooltips ───────────────────────────────────── */

.glossary-term {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed rgba(31, 95, 91, 0.45);
  display: inline;
}

.glossary-icon {
  font-size: 0.68em;
  opacity: 0.55;
  margin-left: 1px;
  vertical-align: super;
  font-style: normal;
}

.glossary-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a3836;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  width: 240px;
  white-space: normal;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.glossary-term:hover .glossary-tooltip,
.glossary-term:focus-within .glossary-tooltip {
  opacity: 1;
}

.survey-main,
.survey-side {
  min-width: 0;
}

.survey-side {
  position: sticky;
  top: 24px;
}

.survey-side-card h3 {
  font-size: 1.24rem;
  line-height: 1.3;
}

.survey-progress-meter {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(20, 51, 59, 0.08);
  overflow: hidden;
}

.survey-progress-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--forest), var(--sun));
  transition: width 160ms ease;
}

.survey-section-nav {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.survey-section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f9f7;
  border: 1px solid rgba(20, 51, 59, 0.07);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    box-shadow 120ms ease;
}

.survey-section-link:hover {
  transform: translateY(-1px);
}

.survey-section-link.is-active {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(31, 95, 91, 0.28);
  box-shadow: 0 12px 28px rgba(31, 95, 91, 0.16);
}

.survey-section-link.is-complete {
  border-color: rgba(31, 95, 91, 0.22);
}

.survey-section-index {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(31, 95, 91, 0.14);
  color: var(--forest);
  font-weight: 800;
}

.survey-section-link.is-active .survey-section-index {
  background: rgba(31, 95, 91, 0.2);
}

.survey-section-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.survey-section-copy strong {
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.survey-section-copy small,
.survey-section-status {
  color: rgba(20, 51, 59, 0.68);
}

.survey-section-status {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
}

.survey-section-link.is-complete .survey-section-status {
  color: var(--forest);
}

.survey-section-card {
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.survey-section-card.is-active {
  border-color: rgba(31, 95, 91, 0.2);
  box-shadow: 0 14px 30px rgba(31, 95, 91, 0.08);
}

.survey-section-card.is-complete {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 246, 0.88));
}

.survey-insights-section {
  gap: 16px;
}

.survey-draft-note {
  margin: 0;
}

.submit-copy {
  display: grid;
  gap: 6px;
}

.b1-columns,
.b2-board,
.b3-split {
  display: grid;
  gap: 18px;
}

.b1-guide-card,
.b3-kickoff-card {
  gap: 10px;
}

.b2-guide-card,
.b4-guide-card,
.b5-guide-card,
.b6-guide-card,
.b7-guide-card {
  gap: 10px;
}

.b4-banner,
.swot-banner {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(20, 51, 59, 0.08);
}

.b4-banner--info,
.swot-banner--info {
  background: rgba(241, 184, 91, 0.12);
  border-color: rgba(241, 184, 91, 0.24);
}

.b4-grid,
.swot-grid {
  display: grid;
  gap: 18px;
}

.b4-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.swot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.b4-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  box-shadow: var(--shadow-soft);
}

.b4-card.is-complete {
  border-color: rgba(31, 95, 91, 0.18);
  background: #f0f8f4;
}

.b4-card.is-progress {
  border-color: rgba(241, 184, 91, 0.24);
}

.b4-card__desc,
.b4-card__label,
.swot-quadrant__prompt {
  margin: 0;
}

.b4-card__desc {
  color: rgba(20, 51, 59, 0.72);
}

.b4-card__label {
  font-weight: 700;
}

.b4-textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid rgba(20, 51, 59, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  resize: none;
  overflow: hidden;
  background: #ffffff;
  line-height: 1.6;
  font-size: 0.95rem;
  box-sizing: border-box;
  display: block;
}

.b4-textarea:focus {
  border-color: var(--forest);
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.1);
}

.b4-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.b4-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.b4-status-dot--is-complete { background: #1a7a4a; }
.b4-status-dot--is-progress { background: #e8a020; }
.b4-status-dot--is-empty    { background: #d0d8d4; }

.b4-pillar-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.b4-status-pill {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1.5px solid transparent;
  transition: background 0.15s;
}

.b4-status-pill--done    { background: #e6f5ec; border-color: #1a7a4a; color: #1a7a4a; }
.b4-status-pill--partial { background: #fff3dc; border-color: #e8a020; color: #9a6200; }
.b4-status-pill--empty   { background: #f0f2f1; border-color: #c5ceca; color: #6a8078; }

.b4-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(20, 51, 59, 0.75);
}

.b4-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.b4-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid;
  display: inline-block;
}

.b4-legend-dot--done    { background: #e6f5ec; border-color: #1a7a4a; }
.b4-legend-dot--partial { background: #fff3dc; border-color: #e8a020; }
.b4-legend-dot--empty   { background: #f0f2f1; border-color: #c5ceca; }

.b4-bottom-complete {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 4px;
}

/* ── Unified step completion button (rechtsonder) ───────── */
.step-complete-bar {
  display: flex;
  justify-content: flex-end;
  padding: 14px 0 6px;
}
.step-complete-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(31, 95, 91, 0.28);
  background: #fff;
  color: #1f5f5b;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms, border-color 120ms, transform 80ms, box-shadow 120ms;
  user-select: none;
}
.step-complete-button:hover {
  background: rgba(31, 95, 91, 0.06);
  border-color: rgba(31, 95, 91, 0.55);
  transform: translateY(-1px);
}
.step-complete-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}
.step-complete-icon {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(31, 95, 91, 0.4);
  color: transparent;
  background: #fff;
  flex-shrink: 0;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.step-complete-text { line-height: 1.2; }
.step-complete-text__on { display: none; }
.step-complete-text__off { display: inline; }

.step-complete-button.is-done {
  background: #1f5f5b;
  border-color: #1f5f5b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(31, 95, 91, 0.22);
}
.step-complete-button.is-done:hover {
  background: #18504c;
  border-color: #18504c;
}
.step-complete-button.is-done .step-complete-icon {
  background: #fff;
  border-color: #fff;
  color: #1f5f5b;
}
.step-complete-button.is-done .step-complete-text__on { display: inline; }
.step-complete-button.is-done .step-complete-text__off { display: none; }

.step-complete-checkbox:focus-visible + .step-complete-icon,
.step-complete-button:focus-within {
  outline: 2px solid rgba(31, 95, 91, 0.5);
  outline-offset: 2px;
}

.swot-quadrant {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  box-shadow: var(--shadow-soft);
}

.swot-quadrant--green {
  border-top: 4px solid rgba(31, 95, 91, 0.72);
}

.swot-quadrant--red {
  border-top: 4px solid rgba(217, 107, 83, 0.72);
}

.swot-quadrant--blue {
  border-top: 4px solid rgba(42, 108, 164, 0.72);
}

.swot-quadrant--yellow {
  border-top: 4px solid rgba(241, 184, 91, 0.9);
}

.swot-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 120px;
}

.swot-item,
.swot-empty {
  border-radius: 16px;
  border: 1px solid rgba(20, 51, 59, 0.08);
}

.swot-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: #ffffff;
}

.swot-item--editing {
  grid-template-columns: 1fr auto auto;
}

.swot-empty {
  padding: 14px;
  background: #eef4f2;
  color: rgba(20, 51, 59, 0.66);
}

.swot-item__text {
  line-height: 1.5;
}

.swot-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.swot-badge--suggestion {
  background: rgba(241, 184, 91, 0.18);
  color: #7e5205;
}

.swot-btn {
  border: none;
  cursor: pointer;
}

.swot-btn--edit,
.swot-btn--delete,
.swot-btn--save,
.swot-btn--cancel {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.swot-btn--edit {
  background: rgba(20, 51, 59, 0.08);
  color: var(--ink);
}

.swot-btn--delete,
.swot-btn--cancel {
  background: rgba(217, 107, 83, 0.12);
  color: #94422f;
}

.swot-btn--save,
.swot-btn--add {
  background: rgba(31, 95, 91, 0.12);
  color: var(--forest);
}

.swot-edit-input {
  width: 100%;
  border: 1px solid rgba(20, 51, 59, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}

.swot-add {
  display: flex;
  gap: 10px;
}

.swot-add-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(20, 51, 59, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
}

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

.b2-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.b3-split {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.b1-column,
.b2-column,
.b3-editor,
.b3-reference,
.b7-grid {
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  box-shadow: var(--shadow-soft);
}

.b1-column,
.b2-column,
.b3-editor,
.b3-reference {
  display: grid;
  gap: 14px;
}

.b1-accordion,
.b3-ref-section {
  padding: 12px 14px;
  border-radius: 18px;
  background: #eef4f2;
  border: 1px solid rgba(20, 51, 59, 0.07);
}

.b1-accordion-summary,
.b3-ref-section summary {
  cursor: pointer;
  font-weight: 700;
}

.b1-question-list,
.b3-must-list,
.b3-guide-list {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.7;
}

.b1-textarea,
.b3-textarea {
  width: 100%;
  min-height: 260px;
  border: 1px solid rgba(20, 51, 59, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  resize: vertical;
  background: #ffffff;
}

.b3-textarea {
  min-height: 420px;
}

.b1-word-count,
.b3-word-count {
  justify-self: end;
  color: rgba(20, 51, 59, 0.68);
  font-size: 0.86rem;
  font-weight: 600;
}

.b2-column-header {
  display: grid;
  gap: 6px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(20, 51, 59, 0.08);
}

.b2-column-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.b2-column-title {
  margin: 0;
  font-size: 0.95rem;
}

.b2-column-count {
  background: rgba(20, 51, 59, 0.1);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}

.b2-column--must .b2-column-title { color: #b43a2e; }
.b2-column--must .b2-column-count { background: rgba(180, 58, 46, 0.1); color: #b43a2e; }
.b2-column--should .b2-column-title { color: #836015; }
.b2-column--should .b2-column-count { background: rgba(131, 96, 21, 0.1); color: #836015; }
.b2-column--could .b2-column-title { color: #1f5f5b; }
.b2-column--could .b2-column-count { background: rgba(31, 95, 91, 0.1); color: #1f5f5b; }
.b2-column--wont .b2-column-title { color: #4a4a5a; }
.b2-column--wont .b2-column-count { background: rgba(74, 74, 90, 0.1); color: #4a4a5a; }

.b2-column-question {
  margin: 0;
  font-size: 0.82rem;
  color: #5c7268;
  line-height: 1.4;
  font-style: italic;
}

.b2-card-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
  font-size: 0.88rem;
  line-height: 1.45;
}

.b2-list {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(20, 51, 59, 0.14);
  background: #f4f9f7;
  align-content: start;
}

.b2-list--dragover {
  border-color: rgba(31, 95, 91, 0.42);
  background: rgba(151, 184, 157, 0.18);
}

.b2-empty {
  padding: 12px;
  font-size: 0.82rem;
  color: rgba(20, 51, 59, 0.5);
  font-style: italic;
}

.b2-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(20, 51, 59, 0.08);
  cursor: grab;
}

.b2-card--dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.b2-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.b2-card-move-btn {
  border: 1px solid rgba(20, 51, 59, 0.15);
  background: #f0f5f3;
  color: var(--forest);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.b2-card-move-btn:hover { background: #ddeee8; }

.b2-card-delete,
.b7-delete-btn {
  border: none;
  background: rgba(217, 107, 83, 0.1);
  color: #94422f;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.b2-card-delete:hover { background: rgba(217, 107, 83, 0.22); }

.b2-add-row,
.b7-add-row {
  display: flex;
  gap: 10px;
}

.b2-add-input,
.b7-add-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(20, 51, 59, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  background: #ffffff;
}

.b2-add-btn,
.b7-add-btn {
  flex: 0 0 44px;
  border: none;
  border-radius: 14px;
  background: rgba(31, 95, 91, 0.12);
  color: var(--forest);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}

.b3-ref-content {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.b3-ref-block {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #eef4f2;
}

.b3-ref-block p {
  margin: 0;
  line-height: 1.6;
}

.b7-empty {
  padding: 14px;
  border-radius: 16px;
  background: #eef4f2;
  color: rgba(20, 51, 59, 0.68);
}

.b7-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 120px repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.b7-col-header,
.b7-row-header {
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #eef4f2;
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.b7-quadrant {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
}

.b7-quadrant[data-quadrant="urgentImportant"] {
  border-top: 4px solid rgba(217, 107, 83, 0.72);
}

.b7-quadrant[data-quadrant="notUrgentImportant"] {
  border-top: 4px solid rgba(31, 95, 91, 0.72);
}

.b7-quadrant[data-quadrant="urgentNotImportant"] {
  border-top: 4px solid rgba(241, 184, 91, 0.9);
}

.b7-quadrant[data-quadrant="notUrgentNotImportant"] {
  border-top: 4px solid rgba(20, 51, 59, 0.46);
}

.b7-item-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 120px;
}

.b7-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 51, 59, 0.08);
}

.b7-item-text {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  font-size: 0.88rem;
  word-break: break-word;
}

.b7-item-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  align-items: center;
}

.b7-move-select {
  border: 1px solid rgba(20, 51, 59, 0.15);
  border-radius: 8px;
  padding: 3px 6px;
  font-size: 0.75rem;
  background: #f0f5f3;
  color: var(--forest);
  cursor: pointer;
  max-width: 130px;
}

.b7-quadrant-count {
  background: rgba(20, 51, 59, 0.1);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
}

.sidebar-shell {
  display: grid;
  gap: 18px;
}

.sidebar-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 16px 16px 8px;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241, 184, 91, 0.92), rgba(217, 107, 83, 0.94));
  color: var(--sidebar);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar-subtitle {
  margin: 0;
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.92rem;
}

.sidebar-empty,
.sidebar-school-card,
.sidebar-phase,
.sidebar-footer {
  display: grid;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 20px;
  background: rgba(255, 250, 243, 0.05);
  border: 1px solid rgba(255, 250, 243, 0.06);
  box-shadow: none;
}

.sidebar-shell .panel-kicker,
.sidebar-shell .microcopy,
.sidebar-shell .muted,
.sidebar-shell .field label {
  color: rgba(255, 250, 243, 0.76);
}

.sidebar-empty h2,
.sidebar-school-name {
  color: var(--white);
}

.sidebar-school-name {
  font-size: 1.5rem;
}

.sidebar-progress-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.sidebar-progress-card .microcopy {
  color: rgba(20, 51, 59, 0.72);
}

.sidebar-progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 51, 59, 0.08);
}

.sidebar-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sun), var(--forest));
}

.sidebar-quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sidebar-quick-link,
.sidebar-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 243, 0.14);
  background: rgba(255, 250, 243, 0.06);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.sidebar-quick-link.active {
  background: rgba(255, 250, 243, 0.94);
  color: var(--ink);
  border-color: transparent;
}

.sidebar-nav {
  display: grid;
  gap: 14px;
}

.sidebar-phase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sidebar-phase-label,
.sidebar-phase-count {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-phase-count {
  color: rgba(255, 250, 243, 0.7);
}

.sidebar-step-list {
  display: grid;
  gap: 8px;
}

/* Core path grouping */
.sidebar-phase--core .sidebar-phase-head {
  margin-bottom: 10px;
}

.sidebar-phase-group {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.sidebar-phase-sublabel {
  color: rgba(255, 250, 243, 0.55);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 2px;
}

/* Optional (Aanvullende analyses) section */
.sidebar-phase--optional {
  margin-top: 14px;
  border-top: 1px dashed rgba(255, 250, 243, 0.12);
  padding-top: 14px;
}

.sidebar-phase--optional > summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 10px;
}

.sidebar-phase--optional > summary::-webkit-details-marker { display: none; }
.sidebar-phase--optional > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  color: rgba(255, 250, 243, 0.5);
  transition: transform 0.15s;
}
.sidebar-phase--optional[open] > summary::before {
  transform: rotate(90deg);
}

.sidebar-optional-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
  color: rgba(255, 250, 243, 0.5);
  margin-left: 4px;
}

.sidebar-step.is-optional {
  opacity: 0.75;
  border-style: dashed;
}

.sidebar-step.is-optional:hover,
.sidebar-step.is-optional.active {
  opacity: 1;
}

.sidebar-step.is-optional .sidebar-step-copy strong::after {
  content: "optioneel";
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: rgba(241, 184, 91, 0.18);
  color: #f1b85b;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 99px;
  letter-spacing: 0.02em;
  text-transform: none;
  vertical-align: middle;
}

.sidebar-step,
.school-card,
.action-card,
.step-overview-item {
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.sidebar-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 250, 243, 0.92);
}

.sidebar-step:hover {
  background: rgba(255, 250, 243, 0.05);
}

.sidebar-step.active {
  border-color: rgba(241, 184, 91, 0.34);
  background: rgba(241, 184, 91, 0.10);
}

.step-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  color: transparent;
  font-size: 0;
  position: relative;
}

/* Subtiele status-bullets i.p.v. tekst-badges */
.status-afgerond .step-icon {
  background: rgba(151, 184, 157, 0.55);
}
.status-afgerond .step-icon::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  border-left: 2px solid #14403d;
  border-bottom: 2px solid #14403d;
  transform: rotate(-45deg) translate(0px, -1px);
}

.status-bezig .step-icon {
  background: rgba(241, 184, 91, 0.55);
}
.status-bezig .step-icon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14403d;
}

.status-niet_gestart .step-icon {
  background: rgba(255, 250, 243, 0.12);
}

.sidebar-step-copy {
  display: grid;
  gap: 2px;
}

.sidebar-step-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.sidebar-step-copy small {
  color: rgba(255, 250, 243, 0.5);
  font-size: 0.72rem;
}

/* Status-tekst onder de stap-naam onderdrukken — de bullet zegt het al */
.sidebar-phase--core .sidebar-step-copy small {
  display: none;
}

.sidebar-footer-link {
  justify-content: flex-start;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.home-shell,
.dashboard-shell {
  display: grid;
  gap: 24px;
}

.home-hero-panel,
.dashboard-hero-panel {
  display: grid;
  gap: 24px;
  padding: 32px;
  border-radius: 36px;
  border: 1px solid rgba(20, 51, 59, 0.07);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.home-hero-panel {
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
}

.dashboard-hero-panel {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 360px);
  align-items: stretch;
}

.home-hero-main,
.home-hero-aside,
.dashboard-hero-main {
  display: grid;
  gap: 18px;
}

.home-hero-actions,
.dashboard-hero-actions,
.dashboard-meta-strip,
.school-card-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Eerste-bezoek hint boven de primaire CTA op het schooldashboard */
.dashboard-first-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 10px 14px 10px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(241, 184, 91, 0.18), rgba(241, 184, 91, 0.08));
  border: 1px solid rgba(241, 184, 91, 0.4);
  color: #6b5320;
  font-size: 0.92rem;
  line-height: 1.4;
  position: relative;
  max-width: 540px;
  animation: dashboardHintPulse 2.4s ease-in-out infinite;
}

@keyframes dashboardHintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 184, 91, 0.0); }
  50% { box-shadow: 0 0 0 6px rgba(241, 184, 91, 0.10); }
}

.dashboard-first-hint-pointer {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dashboard-first-hint-text {
  flex: 1 1 auto;
}

.dashboard-first-hint-close {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(107, 83, 32, 0.55);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: inline-grid;
  place-items: center;
}

.dashboard-first-hint-close:hover {
  background: rgba(107, 83, 32, 0.1);
  color: #6b5320;
}

/* "Meer opties" dropdown op het dashboard */
.dashboard-more-actions {
  position: relative;
}

.dashboard-more-actions > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: rgba(20, 51, 59, 0.65);
  background: transparent;
  border: 1px solid transparent;
  user-select: none;
}

.dashboard-more-actions > summary::-webkit-details-marker { display: none; }

.dashboard-more-actions > summary::after {
  content: "▾";
  margin-left: 2px;
  font-size: 0.75rem;
  transition: transform 0.15s;
}

.dashboard-more-actions[open] > summary::after {
  transform: rotate(180deg);
}

.dashboard-more-actions > summary:hover {
  background: rgba(20, 51, 59, 0.05);
}

.dashboard-more-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.08);
  box-shadow: 0 8px 24px rgba(20, 51, 59, 0.10);
  min-width: 220px;
}

.dashboard-more-list .ghost-button {
  justify-content: flex-start;
  width: 100%;
}

.home-link-button,
.dashboard-link-button {
  min-height: 48px;
}

.home-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.highlight-card {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  background: #f4f9f7;
  border: 1px solid rgba(20, 51, 59, 0.07);
}

.highlight-value {
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: -0.03em;
}

.highlight-label {
  color: rgba(20, 51, 59, 0.72);
  font-size: 0.92rem;
}

.home-hero-aside {
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(145deg, #1a3840 0%, #1f5f5b 100%);
  color: #ffffff;
}

.home-hero-aside .card-kicker,
.home-hero-aside .microcopy {
  color: rgba(255, 250, 243, 0.78);
}

.home-type-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  color: var(--white);
  font-size: 0.88rem;
}

.home-note-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.1);
  border: 1px solid rgba(255, 250, 243, 0.12);
}

.home-note-card p {
  margin: 0;
}

.deadline-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.08);
  border: 1px solid rgba(255, 250, 243, 0.14);
  margin-bottom: 16px;
}

.deadline-card .card-kicker {
  margin: 0;
}

.deadline-days {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.deadline-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.deadline-card.urgent {
  background: rgba(217, 107, 83, 0.18);
  border-color: rgba(217, 107, 83, 0.3);
}

.deadline-card.warning {
  background: rgba(241, 184, 91, 0.18);
  border-color: rgba(241, 184, 91, 0.3);
}

.deadline-card.comfortable {
  background: rgba(31, 95, 91, 0.18);
  border-color: rgba(31, 95, 91, 0.3);
}

.dashboard-mini-stat.urgent strong {
  color: var(--coral);
}

.dashboard-mini-stat.warning strong {
  color: var(--sun);
}

.home-control-panel,
.home-grid-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  box-shadow: var(--shadow-soft);
}

.home-control-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px) minmax(240px, 320px);
  align-items: end;
}

.home-results-summary {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(20, 51, 59, 0.04);
  border: 1px solid rgba(20, 51, 59, 0.08);
}

.home-results-summary strong {
  font-family: var(--font-main);
  font-size: 1.3rem;
}

.school-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

/* Wanneer school-grid gegroepeerd rendert, stapelt het de groep-secties verticaal */
.school-grid:has(.school-group) {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.school-group-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.school-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(20, 51, 59, 0.12);
}

.school-group-head h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #14333b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.school-group-icon {
  font-size: 0.95rem;
}

.school-group-count {
  color: rgba(20, 51, 59, 0.55);
  font-weight: 500;
}

.school-group-head .microcopy {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(20, 51, 59, 0.6);
}

/* Subtiele accent-lijn links per groep */
.school-group--active .school-group-head { border-bottom-color: rgba(234, 179, 8, 0.35); }
.school-group--ready .school-group-head { border-bottom-color: rgba(220, 38, 38, 0.25); }
.school-group--done .school-group-head { border-bottom-color: rgba(34, 197, 94, 0.3); }

.school-card {
  display: grid;
  gap: 16px;
  min-height: 290px;
  padding: 20px;
  border-radius: 26px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.07);
  box-shadow: var(--shadow-soft);
}

.school-card-top,
.school-card-footer,
.step-overview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.school-card-main {
  display: grid;
  gap: 10px;
}

.school-card-name {
  font-size: 1.45rem;
  line-height: 1.15;
}

.school-card-slogan,
.dashboard-slogan {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(20, 51, 59, 0.78);
}

.school-card-meta {
  display: grid;
  gap: 6px;
  color: rgba(20, 51, 59, 0.68);
  font-size: 0.94rem;
}

.school-card-state,
.school-type-badge,
.step-overview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.school-type-badge {
  background: rgba(20, 51, 59, 0.08);
  color: var(--ink);
}

.school-card-state.is-ready,
.step-status-niet-gestart .step-overview-badge {
  background: rgba(20, 51, 59, 0.08);
  color: var(--ink);
}

.school-card-state.is-active,
.step-status-bezig .step-overview-badge {
  background: rgba(241, 184, 91, 0.18);
  color: #8b5f0a;
}

.school-card-state.is-complete,
.step-status-afgerond .step-overview-badge {
  background: rgba(151, 184, 157, 0.22);
  color: var(--forest);
}

.school-card-progress {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.mini-progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(20, 51, 59, 0.08);
}

.mini-progress-fill {
  height: 100%;
  border-radius: inherit;
}

.school-card-stats {
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(20, 51, 59, 0.7);
}

.school-card-link,
.step-overview-link {
  color: var(--forest);
  font-weight: 700;
}

.dashboard-title {
  max-width: 14ch;
}

.dashboard-summary {
  margin-top: 0;
}

.dashboard-hero-aside {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, #f5f9f6 0%, #eaf1ee 100%);
  color: var(--ink);
  border: 1px solid rgba(31, 95, 91, 0.12);
}

.dashboard-hero-aside .microcopy {
  color: rgba(20, 51, 59, 0.65);
}

.dashboard-progress-circle {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto;
}

.progress-ring {
  width: 100%;
  height: 100%;
}

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--forest);
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 700;
}

.dashboard-progress-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dashboard-mini-stat:first-child {
  grid-column: 1 / -1;
}

.dashboard-mini-stat {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(31, 95, 91, 0.08);
}

.dashboard-mini-stat strong {
  font-size: 1.15rem;
  color: var(--forest);
}

.dashboard-mini-stat span {
  color: rgba(20, 51, 59, 0.65);
  font-size: 0.86rem;
}

.dashboard-content-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.9fr);
}

.dashboard-main-column,
.dashboard-side-column {
  min-width: 0;
}

.dashboard-metrics-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-value-small {
  font-size: 1.34rem;
  line-height: 1.25;
}

.action-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.action-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(20, 51, 59, 0.07);
  background: #f4f9f7;
}

.action-card p {
  margin: 0;
  color: rgba(20, 51, 59, 0.7);
}

.action-card-primary {
  background: linear-gradient(145deg, #1a3840 0%, #1f5f5b 100%);
  border-color: transparent;
  color: #ffffff;
}

.action-card-primary p {
  color: rgba(255, 250, 243, 0.8);
}

.steps-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step-overview-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(20, 51, 59, 0.07);
  background: #f4f9f7;
}

.step-overview-phase {
  color: var(--forest);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.step-overview-label {
  font-size: 1rem;
  line-height: 1.35;
}

.step-status-afgerond {
  background: rgba(151, 184, 157, 0.16);
  border-color: rgba(31, 95, 91, 0.16);
}

.step-status-bezig {
  background: rgba(241, 184, 91, 0.16);
  border-color: rgba(241, 184, 91, 0.28);
}

.step-status-niet-gestart {
  background: #f4f9f7;
}

/* ── Routekaart ─────────────────────────────────────────── */
.routekaart {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rk-arrow {
  text-align: center;
  font-size: 1.4rem;
  color: rgba(20, 51, 59, 0.25);
  padding: 2px 0;
  line-height: 1;
}

.rk-phase {
  border-radius: 18px;
  border: 1.5px solid rgba(20, 51, 59, 0.08);
  background: #f8fcfa;
  overflow: hidden;
}

.rk-phase--complete {
  border-color: rgba(31, 95, 91, 0.22);
  background: #f0f8f4;
}

.rk-phase-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(20, 51, 59, 0.07);
}

.rk-phase--blue   .rk-phase-head { background: #edf4fb; border-bottom-color: #c8dcf0; }
.rk-phase--green  .rk-phase-head { background: #ebf5ee; border-bottom-color: #b8ddc2; }
.rk-phase--yellow .rk-phase-head { background: #fdf8ec; border-bottom-color: #e8d89a; }
.rk-phase--teal   .rk-phase-head { background: #e8f5f3; border-bottom-color: #a8d8d0; }
.rk-phase--gray   .rk-phase-head { background: #f4f4f4; border-bottom-color: #ddd; }

.rk-phase-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.rk-phase-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.rk-phase-label {
  font-size: 0.97rem;
  color: var(--forest);
}

.rk-phase-progress {
  font-size: 0.76rem;
  color: #6a8878;
}

.rk-step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px 14px;
}

.rk-step {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  border-radius: 99px;
  border: 1px solid rgba(20, 51, 59, 0.1);
  background: #fff;
  font-size: 0.86rem;
  color: var(--forest);
  font-weight: 500;
  transition: transform 0.12s, box-shadow 0.12s;
}

.rk-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(20, 51, 59, 0.1);
}

.rk-step--afgerond {
  background: #eaf5ee;
  border-color: rgba(31, 95, 91, 0.2);
}

.rk-step--bezig {
  background: #fdf8ec;
  border-color: rgba(241, 184, 91, 0.35);
}

.rk-step--optional {
  opacity: 0.7;
  border-style: dashed;
}

.rk-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(20, 51, 59, 0.2);
  flex-shrink: 0;
}

.rk-step-dot.is-done  { background: #2a8a5e; }
.rk-step-dot.is-busy  { background: #d4a017; }

.rk-step-opt {
  font-size: 0.68rem;
  color: #8a7a45;
  background: #fdf2d9;
  padding: 1px 5px;
  border-radius: 99px;
  font-weight: 600;
}

.rk-optional-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  padding-top: 6px;
  border-top: 1px dashed rgba(20, 51, 59, 0.1);
  margin-top: 2px;
}

/* ── einde Routekaart ─────────────────────────────────── */

.share-link-box {
  display: grid;
  gap: 12px;
}

.dashboard-signal-list {
  display: grid;
  gap: 12px;
}

.dashboard-signal-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  background: #f4f9f7;
  border: 1px solid rgba(20, 51, 59, 0.07);
}

.dashboard-signal-card p {
  margin: 0;
}

.share-link-copy {
  margin: 12px 0 0;
}

.dashboard-onboarding-list {
  display: grid;
  gap: 12px;
}

.dashboard-onboarding-card {
  align-items: flex-start;
  padding: 14px;
  border-radius: 18px;
  background: #f4f9f7;
  border: 1px solid rgba(20, 51, 59, 0.07);
}

.dashboard-onboarding-card div {
  display: grid;
  gap: 4px;
}

.dashboard-onboarding-card p {
  margin: 0;
}

.dashboard-onboarding-step {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(31, 95, 91, 0.16);
  color: var(--forest);
  font-weight: 800;
  flex: 0 0 34px;
}

.sidebar-step:hover,
.sidebar-quick-link:hover,
.sidebar-footer-link:hover,
.school-card:hover,
.action-card:hover,
.step-overview-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 1320px) {
  .dashboard-content-grid,
  .dashboard-hero-panel,
  .home-hero-panel,
  .step-hero,
  .b3-split {
    grid-template-columns: 1fr;
  }

  .survey-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .hero,
  .layout,
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 250, 243, 0.12);
  }

  .main-content {
    padding-top: 24px;
  }

  .home-control-grid,
  .home-highlight-grid,
  .dashboard-metrics-grid,
  .step-summary-grid,
  .b1-columns,
  .b2-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .page-shell,
  .main-content {
    padding: 22px 14px 34px;
  }

  .hero-copy,
  .hero-card,
  .panel,
  .home-hero-panel,
  .dashboard-hero-panel,
  .home-control-panel,
  .home-grid-panel {
    padding: 20px;
  }

  .toolbar-grid,
  .metric-grid,
  .rank-grid,
  .comparison-grid,
  .text-grid,
  .b4-grid,
  .b6-reference-grid,
  .swot-grid,
  .b10-check-grid,
  .checkbox-grid,
  .scale-grid,
  .dashboard-content-grid,
  .dashboard-metrics-grid,
  .home-control-grid,
  .home-highlight-grid,
  .sidebar-quick-links,
  .b1-columns,
  .b2-board,
  .b3-split,
  .b8-action-grid,
  .b10-digest-grid,
  .survey-section-nav {
    grid-template-columns: 1fr;
  }

  .survey-layout {
    grid-template-columns: 1fr;
  }

  .survey-nav-col {
    display: none;
  }

  .panel-head,
  .row-split,
  .domain-head,
  .school-info-bar,
  .submit-block,
  .school-card-top,
  .school-card-footer,
  .step-overview-footer,
  .step-pagination,
  .step-actions,
  .step-feedback-head,
  .b8-action-header,
  .b8-action-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .b8-action-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .home-hero-actions,
  .dashboard-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .survey-side {
    position: static;
  }

  .survey-section-link {
    align-items: flex-start;
  }

  .b8-action-status-strip {
    justify-items: start;
  }

  .swot-item {
    grid-template-columns: 1fr auto auto;
  }

  .swot-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .b2-card {
    flex-direction: column;
  }

  .b2-card-delete {
    align-self: flex-end;
  }

  .b7-grid {
    grid-template-columns: 1fr;
  }

  .b7-grid > * {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

@media (max-width: 640px) {
  .sidebar {
    padding: 16px 12px;
  }

  .main-content {
    padding: 16px 12px 28px;
  }

  .school-grid,
  .steps-overview,
  .action-cards {
    grid-template-columns: 1fr;
  }

  .metric-value {
    font-size: 1.7rem;
  }
}

/* ── Welcome Modal ─────────────────────────────────────────── */

.welcome-overlay,
.bp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 34, 0.72);
  display: grid;
  place-items: center;
  z-index: 1000;
  padding: 24px;
  backdrop-filter: blur(4px);
}

.bp-modal-overlay.hidden {
  display: none;
}

.welcome-card {
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(20, 51, 59, 0.22);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}

/* School picker gets a wider card */
.welcome-card:has(.ws-school-step) {
  max-width: 820px;
}

.welcome-body {
  padding: 36px;
}

.welcome-step {
  display: grid;
  gap: 20px;
}

/* ── School picker ── */
.ws-school-step {
  gap: 0;
}

.ws-header {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.ws-search-wrap {
  margin-bottom: 16px;
  position: sticky;
  top: 0;
  background: #fff;
  padding-bottom: 4px;
  z-index: 1;
}

.ws-search {
  width: 100%;
  border: 2px solid rgba(20, 51, 59, 0.12);
  border-radius: 16px;
  padding: 12px 18px;
  font: inherit;
  font-size: 1rem;
  background: #f8fbfa;
  transition: border-color 120ms;
  box-sizing: border-box;
}

.ws-search:focus {
  outline: none;
  border-color: var(--forest);
  background: #fff;
}

.ws-school-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  padding: 2px;
}

@media (max-width: 600px) {
  .ws-school-grid {
    grid-template-columns: 1fr;
  }
}

.ws-school-card {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid rgba(20, 51, 59, 0.1);
  background: #f8fbfa;
  cursor: pointer;
  text-align: left;
  transition: border-color 120ms, background 120ms, transform 80ms;
  font: inherit;
}

.ws-school-card.hidden { display: none; }

.ws-school-card:hover {
  border-color: rgba(31, 95, 91, 0.35);
  background: #eef5f2;
  transform: translateY(-1px);
}

.ws-school-card.selected {
  border-color: var(--forest);
  background: #e4f2ec;
  transform: translateY(-1px);
}

.ws-school-type {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
  opacity: 0.7;
}

.ws-school-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.ws-school-location {
  font-size: 0.82rem;
  color: rgba(20, 51, 59, 0.55);
}

.ws-empty {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.welcome-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.welcome-heading {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.welcome-intro {
  margin: 0;
  color: rgba(20, 51, 59, 0.7);
  line-height: 1.6;
}

.welcome-role-list {
  display: grid;
  gap: 10px;
}

.welcome-role-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid rgba(20, 51, 59, 0.1);
  background: #f4f9f7;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.welcome-role-card:hover {
  border-color: rgba(31, 95, 91, 0.3);
  background: #eef4f2;
}

.welcome-role-card.selected {
  border-color: var(--forest);
  background: #eaf4f0;
}

.welcome-role-card strong {
  font-size: 1rem;
  color: var(--ink);
}

.welcome-role-card span {
  font-size: 0.88rem;
  color: rgba(20, 51, 59, 0.66);
}

/* Large 2-option role cards */
.welcome-role-list--large {
  display: grid;
  gap: 12px;
}

.welcome-role-card--large {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.welcome-role-icon {
  font-size: 2rem;
  text-align: center;
  line-height: 1;
}

.welcome-role-card--large div {
  display: grid;
  gap: 4px;
}

.welcome-role-card--large strong {
  font-size: 1.05rem;
}

.welcome-role-card--large span {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Sidebar role pill */
.sidebar-role-pill {
  display: inline-block;
  background: rgba(31, 95, 91, 0.1);
  color: var(--forest);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.welcome-school-search-wrap {
  position: sticky;
  top: 0;
  background: #ffffff;
  padding-bottom: 10px;
  z-index: 1;
}

.welcome-school-search {
  width: 100%;
  border: 1px solid rgba(20, 51, 59, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #f4f9f7;
  color: var(--ink);
}

.welcome-school-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.welcome-school-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid rgba(20, 51, 59, 0.08);
  background: #f4f9f7;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

.welcome-school-item:hover {
  border-color: rgba(31, 95, 91, 0.24);
  background: #eef4f2;
}

.welcome-school-item.selected {
  border-color: var(--forest);
  background: #eaf4f0;
}

.welcome-school-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid rgba(20, 51, 59, 0.2);
  background: #fff;
  display: grid;
  place-items: center;
  transition: background 120ms ease, border-color 120ms ease;
}

.welcome-school-item.selected .welcome-school-check {
  background: var(--forest);
  border-color: var(--forest);
}

.welcome-school-item.selected .welcome-school-check::after {
  content: "✓";
  color: white;
  font-size: 0.7rem;
  font-weight: 900;
}

.welcome-school-info {
  display: grid;
  gap: 2px;
}

.welcome-school-info strong {
  font-size: 0.94rem;
}

.welcome-school-info small {
  color: rgba(20, 51, 59, 0.64);
  font-size: 0.82rem;
}

.welcome-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── Welcome: Context picker ────────────────────────────────── */

.welcome-context-grid {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
}

.welcome-context-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  width: 100%;
}

.welcome-context-card:hover {
  border-color: var(--forest);
  box-shadow: 0 4px 16px rgba(26, 122, 74, 0.12);
  transform: translateY(-1px);
}

.welcome-context-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.welcome-context-card div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.welcome-context-card strong {
  font-size: 1.05rem;
  color: var(--ink);
}

.welcome-context-card span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── Pinned Schools Panel ───────────────────────────────────── */

.home-pinned-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, #eaf4f0 0%, #f0f8f4 100%);
  border: 1px solid rgba(31, 95, 91, 0.14);
  box-shadow: var(--shadow-soft);
}

.home-pinned-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.home-pinned-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(31, 95, 91, 0.1);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.home-pinned-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 95, 91, 0.12);
}

.home-pinned-name {
  font-size: 1rem;
  line-height: 1.3;
}

.home-pinned-meta {
  margin: 0;
}

.home-edit-pinned {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── AI Writing Assist ─────────────────────────────────────── */

.ai-assist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-assist-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(31, 95, 91, 0.1), rgba(31, 95, 91, 0.06));
  color: var(--forest);
  border: 1px solid rgba(31, 95, 91, 0.2);
  cursor: pointer;
  transition: background 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.ai-assist-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(31, 95, 91, 0.16), rgba(31, 95, 91, 0.1));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 95, 91, 0.14);
}

.ai-assist-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ai-suggestion-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0f8f4 0%, #eaf4f0 100%);
  border: 1px solid rgba(31, 95, 91, 0.18);
  margin-top: 4px;
}

.ai-suggestion-label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-suggestion-text {
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--ink);
  font-size: 0.96rem;
}

.ai-suggestion-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* === Blueprints pagina === */

.bp-shell {
  display: grid;
  gap: 40px;
}

.bp-hero {
  background: linear-gradient(135deg, #1a3840 0%, #1f5f5b 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 48px 52px;
}

.bp-hero .eyebrow {
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.bp-hero h1 {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 16px;
  line-height: 1.2;
}

.bp-hero .hero-text {
  color: rgba(255,255,255,0.84);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 0 16px;
}

.bp-disclaimer {
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.bp-cards-section {
  display: grid;
  gap: 24px;
}

.bp-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.bp-card {
  background: #ffffff;
  border: 1px solid rgba(31, 95, 91, 0.12);
  border-radius: 20px;
  padding: 28px 30px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.18s, transform 0.18s;
}

.bp-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.bp-card-top {
  display: flex;
  align-items: center;
}

.bp-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.bp-card-desc {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.bp-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bp-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.bp-card--sgr {
  border-color: rgba(26, 56, 64, 0.3);
  background: linear-gradient(135deg, #f0f8f4 0%, #ffffff 100%);
}

.bp-card--sgr .bp-card-title {
  color: var(--forest);
}

.school-type-badge--sgr {
  background: var(--forest);
  color: #ffffff;
}

.bp-sgr-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(26, 56, 64, 0.1);
  color: var(--forest);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Blueprint detail panel */

.bp-detail-panel {
  background: #ffffff;
  border: 1px solid rgba(31, 95, 91, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ── Blueprint Detail — Document View ───────────────────────── */

.bp-detail {
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* Topbar */
.bp-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 36px 20px;
  border-bottom: 1px solid rgba(31, 95, 91, 0.1);
  background: linear-gradient(135deg, #f0f8f4 0%, #ffffff 100%);
  flex-wrap: wrap;
}

.bp-detail-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bp-detail-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.bp-detail-topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Stat row */
.bp-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-bottom: 1px solid rgba(31, 95, 91, 0.08);
}

.bp-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  border-right: 1px solid rgba(31, 95, 91, 0.08);
  text-align: center;
}

.bp-stat-card:last-child { border-right: none; }

.bp-stat-card strong {
  font-size: 2rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1;
}

.bp-stat-card span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.bp-stat-card--chart {
  gap: 6px;
}

.bp-donut-svg { display: block; }

/* Document sections */
.bp-doc-section {
  padding: 32px 36px;
  border-bottom: 1px solid rgba(31, 95, 91, 0.07);
}

.bp-doc-section:last-of-type {
  border-bottom: none;
}

.bp-doc-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.bp-doc-section-icon {
  width: 44px;
  height: 44px;
  background: #f0f8f4;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.bp-doc-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--forest);
  margin: 0 0 3px;
}

.bp-doc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.bp-donut-wrap {
  margin-left: auto;
}

/* Vision canvas */
.bp-vision-canvas {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: rgba(31, 95, 91, 0.08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.bp-vision-col {
  background: #fff;
  padding: 20px;
}

.bp-vision-col:first-child { border-radius: 14px 0 0 14px; }
.bp-vision-col:last-child  { border-radius: 0 14px 14px 0; }

.bp-vision-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.bp-vision-why  .bp-vision-label { color: #1a7a4a; }
.bp-vision-what .bp-vision-label { color: #2c6e9c; }
.bp-vision-how  .bp-vision-label { color: #7a3fa0; }

.bp-vision-col p:not(.bp-vision-label) {
  font-size: 0.91rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}

.bp-visietekst {
  font-size: 0.97rem;
  line-height: 1.85;
  color: var(--ink);
  border-left: 4px solid var(--forest);
  margin: 0;
  padding: 18px 24px;
  background: #f4f9f7;
  border-radius: 0 14px 14px 0;
}

.bp-visietekst p { margin: 0 0 14px; }
.bp-visietekst p:last-child { margin-bottom: 0; }

/* MoSCoW */
.bp-moscow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bp-moscow-col {
  border-radius: 12px;
  padding: 18px;
  border-top: 4px solid transparent;
}

.bp-moscow-must  { background: #fff8f0; border-color: #e8792a; }
.bp-moscow-should { background: #fffbf0; border-color: #e8c02a; }

.bp-moscow-label {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-moscow-must .bp-moscow-label   { color: #c05a0a; }
.bp-moscow-should .bp-moscow-label { color: #906a00; }

.bp-moscow-count {
  background: rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.78rem;
}

.bp-moscow-col ul {
  margin: 0;
  padding: 0 0 0 16px;
  display: grid;
  gap: 6px;
}

.bp-moscow-col li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink);
}

/* SWOT grid */
.bp-swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 3px;
  background: rgba(31, 95, 91, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.bp-swot-cell {
  background: #fff;
  padding: 20px;
}

.bp-swot-cell:first-child  { border-radius: 14px 0 0 0; }
.bp-swot-cell:nth-child(2) { border-radius: 0 14px 0 0; }
.bp-swot-cell:nth-child(3) { border-radius: 0 0 0 14px; }
.bp-swot-cell:last-child   { border-radius: 0 0 14px 0; }

.bp-swot-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bp-swot-badge {
  background: rgba(0,0,0,0.07);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.78rem;
  font-weight: 700;
}

.bp-swot-s .bp-swot-label { color: #1a7a4a; }
.bp-swot-w .bp-swot-label { color: #c0392b; }
.bp-swot-o .bp-swot-label { color: #2c6e9c; }
.bp-swot-t .bp-swot-label { color: #8c5a00; }

.bp-swot-s { background: #f2faf6; }
.bp-swot-w { background: #fdf4f4; }
.bp-swot-o { background: #f2f6fd; }
.bp-swot-t { background: #fdf8f0; }

.bp-swot-cell ul {
  margin: 0;
  padding: 0 0 0 16px;
  display: grid;
  gap: 5px;
}

.bp-swot-cell li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink);
}

/* Actions timeline */
.bp-actions-timeline {
  display: grid;
  gap: 10px;
}

.bp-action-card {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  background: #f8fbfa;
  border-radius: 12px;
  padding: 16px;
  border-left: 3px solid var(--forest);
}

.bp-action-number {
  width: 40px;
  height: 40px;
  background: var(--forest);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.bp-action-body {
  display: grid;
  gap: 6px;
}

.bp-action-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bp-action-idea {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--ink);
}

.bp-action-status {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.bp-action-goal {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.bp-action-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.bp-action-meta span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Digiplan checks grid */
.bp-checks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.bp-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.87rem;
}

.bp-check-item.is-ok {
  background: #eaf7f0;
  color: #1a7a4a;
}

.bp-check-item.is-open {
  background: #f5f5f5;
  color: var(--muted);
}

.bp-check-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.bp-check-key {
  text-transform: capitalize;
  line-height: 1.3;
}

.bp-empty-item {
  color: var(--muted) !important;
  font-style: italic;
}

.bp-detail-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 24px 36px;
  background: #f8fbfa;
  border-top: 1px solid rgba(31, 95, 91, 0.1);
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .bp-stat-row { grid-template-columns: 1fr 1fr; }
  .bp-vision-canvas { grid-template-columns: 1fr; }
  .bp-vision-col:first-child { border-radius: 14px 14px 0 0; }
  .bp-vision-col:last-child  { border-radius: 0 0 14px 14px; }
  .bp-moscow-grid { grid-template-columns: 1fr; }
  .bp-swot-grid { grid-template-columns: 1fr; }
  .bp-swot-cell { border-radius: 0 !important; }
  .bp-detail-topbar { padding: 20px; }
  .bp-doc-section { padding: 24px 20px; }
}

/* Success banner */

.bp-success-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: linear-gradient(135deg, #eaf7f0 0%, #d4f0e3 100%);
  border: 1px solid rgba(26, 122, 74, 0.3);
  border-radius: 16px;
  animation: slideDown 0.25s ease;
}

.bp-success-banner p {
  margin: 0;
  font-size: 0.96rem;
}

.bp-success-link {
  white-space: nowrap;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sidebar blueprints link */

.sidebar-home-links {
  margin-top: 16px;
}

.blueprints-aside-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.blueprints-aside-link:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   SGR Dashboard
   ========================================================================== */

.sgr-dashboard { max-width: 1120px; }

/* Hero */
.sgr-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.sgr-hero h1 { font-size: 1.9rem; margin: 6px 0 12px; color: var(--ink); }
.sgr-hero p { color: rgba(20,51,59,0.72); line-height: 1.6; max-width: 640px; }
.sgr-hero-actions { flex-shrink: 0; padding-top: 12px; }

/* SGR plan hero card */
.sgr-plan-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(31,95,91,0.06), rgba(241,184,91,0.08));
  border: 1px solid rgba(31,95,91,0.15);
}
.sgr-plan-hero-copy { flex: 1 1 420px; }
.sgr-plan-hero h2 { margin: 6px 0 8px; font-size: 1.3rem; color: var(--ink); }
.sgr-plan-progress { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.sgr-plan-hero-actions { display: flex; flex-direction: column; gap: 10px; align-self: center; }

/* Stat cards */
.sgr-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.sgr-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 18px;
  text-align: center;
}
.sgr-stat-card--accent {
  background: rgba(31,95,91,0.06);
  border-color: rgba(31,95,91,0.18);
}
.sgr-stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.1;
  margin-bottom: 4px;
}
.sgr-stat-label {
  display: block;
  font-size: 0.82rem;
  color: rgba(20,51,59,0.6);
}
.sgr-stat-note {
  display: block;
  font-size: 0.75rem;
  color: rgba(20,51,59,0.4);
  margin-top: 2px;
}

/* Status bar */
.sgr-status-overview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.sgr-status-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(20,51,59,0.06);
  gap: 2px;
}
.sgr-status-segment {
  border-radius: 5px;
  transition: width 0.4s ease;
}
.sgr-status-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}
.sgr-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: rgba(20,51,59,0.7);
}
.sgr-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Filter bar */
.sgr-filter-section { margin-top: -4px; }
.sgr-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.sgr-search-input {
  min-width: 220px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  background: var(--surface);
}
.sgr-search-input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(31,95,91,0.1);
}
.sgr-filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sgr-filter-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.sgr-filter-field { margin: 0; }

/* School grid */
.sgr-school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.sgr-school-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.sgr-school-card:hover {
  border-color: rgba(31,95,91,0.25);
  box-shadow: 0 2px 12px rgba(20,51,59,0.06);
}
.sgr-school-card[data-status="uitgenodigd"] {
  border-style: dashed;
  opacity: 0.85;
}

.sgr-school-card--stuck {
  border-color: rgba(234, 179, 8, 0.4);
  background: rgba(254, 249, 238, 0.7);
}

.sgr-stuck-banner {
  font-size: 0.82rem;
  font-family: var(--font-main);
  color: #92400e;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.45;
}

/* ── SGR aandacht-blok (vastgelopen scholen) ── */

.sgr-attention-block {
  background: rgba(254, 249, 238, 0.9);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sgr-attention-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sgr-attention-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.sgr-attention-head strong {
  font-size: 0.95rem;
  color: #92400e;
  display: block;
  margin-bottom: 2px;
}

.sgr-attention-head .microcopy {
  margin: 0;
  color: rgba(20, 51, 59, 0.65);
}

.sgr-attention-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgr-attention-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 10px;
  background: white;
  border: 1px solid rgba(234, 179, 8, 0.3);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sgr-attention-chip:hover {
  border-color: rgba(234, 179, 8, 0.6);
  box-shadow: 0 2px 8px rgba(234, 179, 8, 0.15);
}

.sgr-attention-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #14333b;
}

.sgr-attention-meta {
  font-size: 0.75rem;
  color: rgba(20, 51, 59, 0.55);
  font-family: var(--font-main);
}
.sgr-school-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.sgr-school-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest);
  margin-bottom: 2px;
}
.sgr-school-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 2px;
  line-height: 1.3;
}
.sgr-status-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Metrics row */
.sgr-school-metrics {
  display: flex;
  gap: 16px;
}
.sgr-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sgr-metric-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.sgr-metric-lbl {
  font-size: 0.7rem;
  color: rgba(20,51,59,0.5);
}

/* Progress bar */
.sgr-school-progress { display: flex; flex-direction: column; gap: 4px; }
.sgr-progress-bar {
  height: 6px;
  background: rgba(20,51,59,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.sgr-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Invite state */
.sgr-school-invite-note {
  font-size: 0.84rem;
  color: rgba(20,51,59,0.55);
  line-height: 1.5;
}
.sgr-invite-btn {
  align-self: flex-start;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  color: var(--forest);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.sgr-invite-btn:hover {
  background: rgba(31,95,91,0.06);
  border-color: var(--forest);
}

/* School link */
.sgr-school-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  margin-top: auto;
}
.sgr-school-link:hover { text-decoration: underline; }

/* Empty state */
.sgr-empty-filter {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: rgba(20,51,59,0.45);
  font-size: 0.92rem;
}

/* Footer */
.sgr-footer {
  text-align: center;
  padding: 20px 0 8px;
  border-top: 1px solid var(--border);
}
.sgr-footer .microcopy {
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

/* Sidebar SGR link styling */
.sidebar-sgr-link {
  font-weight: 600 !important;
}
.sidebar-sgr-link.active {
  color: #ffffff !important;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px 8px;
}

/* ── Landingspagina afgeslankt (apr 2026) ───────────────── */

.home-shell--lite {
  gap: 20px;
}

.home-hero-lite {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.06);
  box-shadow: var(--shadow-soft);
}

.home-hero-lite__text .eyebrow {
  margin: 0 0 6px;
}

.home-hero-lite__text h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.home-hero-lite__sub {
  margin: 0 0 18px;
  color: rgba(20, 51, 59, 0.7);
  font-size: 1rem;
}

.home-hero-lite__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-hero-lite__meta {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.deadline-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  background: rgba(31, 95, 91, 0.1);
  color: var(--forest);
  border: 1px solid rgba(31, 95, 91, 0.18);
}

.deadline-pill strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.deadline-pill--urgent {
  background: rgba(217, 107, 83, 0.14);
  color: #9b3a22;
  border-color: rgba(217, 107, 83, 0.3);
}

.deadline-pill--warning {
  background: rgba(241, 184, 91, 0.18);
  color: #8b5f0a;
  border-color: rgba(241, 184, 91, 0.3);
}

.home-statline {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  color: rgba(20, 51, 59, 0.7);
  font-size: 0.92rem;
}

.home-statline strong {
  color: var(--forest);
  font-weight: 700;
  margin-right: 4px;
}

.home-pinned-lite {
  padding: 20px 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.06);
  box-shadow: var(--shadow-soft);
}

.home-pinned-lite__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.home-pinned-lite__head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.home-pinned-lite__grid,
.school-group-lite__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.home-grid-lite {
  padding: 20px 24px 24px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.06);
  box-shadow: var(--shadow-soft);
}

.home-grid-lite__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.home-grid-lite__head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.home-grid-lite__controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.home-search-lite,
.home-filter-lite {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 51, 59, 0.14);
  background: #f8faf9;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  min-height: 38px;
}

.home-search-lite {
  min-width: 220px;
}

.home-search-lite:focus,
.home-filter-lite:focus {
  outline: 2px solid rgba(31, 95, 91, 0.3);
  outline-offset: 1px;
  background: #ffffff;
}

.home-grid-lite__count {
  color: rgba(20, 51, 59, 0.6);
  font-size: 0.88rem;
}

.school-grid-lite {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.school-group-lite__label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(20, 51, 59, 0.55);
}

.school-group-lite--active .school-group-lite__label { color: #8b5f0a; }
.school-group-lite--ready .school-group-lite__label { color: #9b3a22; }
.school-group-lite--done .school-group-lite__label { color: var(--forest); }

.school-group-lite__count {
  font-weight: 500;
  opacity: 0.7;
}

.school-card-lite {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(20, 51, 59, 0.08);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.school-card-lite:hover {
  border-color: rgba(31, 95, 91, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(20, 51, 59, 0.06);
}

.school-card-lite__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.school-card-lite__head strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.school-card-lite__head .school-type-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  flex-shrink: 0;
}

.school-card-lite__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.school-card-lite__meta {
  color: rgba(20, 51, 59, 0.6);
  font-size: 0.82rem;
}

.school-card-lite__cta {
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 720px) {
  .home-hero-lite {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .home-hero-lite__text h1 { font-size: 1.55rem; }
  .home-grid-lite__controls { width: 100%; }
  .home-search-lite { flex: 1; min-width: 0; }
}

/* ── Brand splash ───────────────────────────────────────── */

.splash-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  cursor: pointer;
  user-select: none;
  opacity: 1;
  transition: opacity 0.42s ease;
}

.splash-overlay.is-exiting {
  opacity: 0;
}

.splash-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.02;
}

.splash-prefix {
  display: block;
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  font-weight: 900;
  color: #14333b;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.splash-overlay.phase-prefix .splash-prefix {
  opacity: 1;
  transform: translateX(0);
}

.splash-row {
  display: flex;
  align-items: baseline;
  gap: clamp(0.6rem, 1.5vw, 1.4rem);
  transition: gap 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-overlay.phase-join .splash-row,
.splash-overlay.phase-prefix .splash-row {
  gap: 0;
}

.splash-syl {
  position: relative;
  display: inline-block;
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  font-weight: 900;
  color: #14333b;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(-50px);
  animation: splash-drop 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes splash-drop {
  to { opacity: 1; transform: translateY(0); }
}

.splash-syl-text {
  position: relative;
  z-index: 1;
}

.splash-highlight {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 8%;
  bottom: 8%;
  background: #F1B85B;
  border-radius: 6px;
  z-index: 0;
  opacity: 0.55;
}

.splash-sep {
  display: inline-block;
  overflow: hidden;
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  font-weight: 900;
  color: #9CA3AF;
  max-width: 2rem;
  opacity: 1;
  transition: max-width 0.45s ease, opacity 0.45s ease;
}

.splash-overlay.phase-join .splash-sep,
.splash-overlay.phase-prefix .splash-sep {
  max-width: 0;
  opacity: 0;
}

.splash-dot {
  display: inline-block;
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 8.5vw, 7.5rem);
  font-weight: 900;
  color: #D96B53;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.splash-overlay.phase-prefix .splash-dot {
  opacity: 1;
}

.splash-tagline {
  margin: 24px 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(20, 51, 59, 0.55);
  opacity: 0;
  transform: translateY(8px);
  animation: splash-fade-up 0.6s ease 0.9s forwards;
  text-align: center;
  padding: 0 20px;
}

@keyframes splash-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

.splash-hint {
  position: absolute;
  bottom: 28px;
  margin: 0;
  font-size: 0.75rem;
  color: rgba(20, 51, 59, 0.35);
  opacity: 0;
  animation: splash-hint-in 0.5s ease 2s forwards;
  letter-spacing: 0.04em;
}

@keyframes splash-hint-in {
  to { opacity: 1; }
}

/* ── Welcome gate step ──────────────────────────────────── */

.welcome-gate-step .welcome-gate-form {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
}

.welcome-gate-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(20, 51, 59, 0.15);
  background: #f8faf9;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.welcome-gate-input:focus {
  outline: none;
  border-color: var(--forest);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(31, 95, 91, 0.14);
}

.welcome-gate-error {
  margin: 0;
  color: #9b3a22;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Confirmation screen (teacher submit) ─────────────────────────── */
.confirm-page { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; gap: 2.5rem; }
.confirm-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.confirm-checkmark { display: inline-flex; }
.confirm-check-circle { fill: rgba(31,95,91,0.08); stroke: var(--forest, #1f5f5b); stroke-width: 2; }
.confirm-check-path { stroke: var(--forest, #1f5f5b); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: confirmCheck 0.6s ease-out 0.2s forwards; }
@keyframes confirmCheck { to { stroke-dashoffset: 0; } }
.confirm-title { font-size: 2rem; margin: 0; }
.confirm-lead { max-width: 560px; color: var(--ink-muted, #6b7280); font-size: 1.05rem; line-height: 1.6; }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 820px) { .confirm-grid { grid-template-columns: 1fr; } }
.confirm-radar-card, .confirm-next-card { padding: 1.75rem; }
.confirm-radar-wrap { display: flex; justify-content: center; padding: 1rem 0; }
.confirm-avg { display: flex; align-items: baseline; gap: 0.5rem; justify-content: center; margin-top: 0.5rem; }
.confirm-avg-value { font-size: 2rem; font-weight: 700; color: var(--forest, #1f5f5b); }
.confirm-avg-label { color: var(--ink-muted, #6b7280); font-size: 0.9rem; }
.confirm-steps { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.confirm-steps li { padding-left: 1.75rem; position: relative; line-height: 1.5; }
.confirm-steps li::before { content: "→"; position: absolute; left: 0; color: var(--forest, #1f5f5b); font-weight: 700; }
.confirm-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

/* ── Fix truncated domain card footnote ───────────────────────────── */
.li-domain-card .microcopy { white-space: normal; overflow: visible; text-overflow: clip; word-break: normal; }
.li-domain-card { min-width: 0; }
.li-domain-body { min-width: 0; }

/* ─────────────────────────────────────────────────────────────────
   B9 — Sjabloonbibliotheek per thema (minimaal / ambitieus / AI-verfijnen)
   ───────────────────────────────────────────────────────────────── */
.b9-template-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(31, 95, 91, 0.05);
  border: 1px dashed rgba(31, 95, 91, 0.18);
  font-size: 0.82rem;
}
.b9-template-bar__label {
  color: #3d5a52;
  font-weight: 500;
  margin-right: 4px;
}
.b9-template-bar__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.b9-template-btn {
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(31, 95, 91, 0.25);
  background: #fff;
  color: #1f5f5b;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.b9-template-btn:hover { background: #eaf3f0; border-color: #1f5f5b; }
.b9-template-btn:disabled { opacity: 0.6; cursor: wait; }
.b9-template-btn--ai {
  background: linear-gradient(135deg, #f6f0ff 0%, #eaf3f0 100%);
  border-color: rgba(115, 90, 175, 0.3);
  color: #5b3fa8;
}
.b9-template-btn--ai:hover {
  background: linear-gradient(135deg, #ece0ff 0%, #d8ecdf 100%);
  border-color: #5b3fa8;
}
.b9-template-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.74rem;
  color: #6b7e76;
}
.b9-template-sources__label { font-style: italic; }
.b9-source-pill {
  padding: 2px 8px;
  border-radius: 99px;
  background: #eef2f0;
  color: #3d5a52;
  border: 1px solid rgba(20, 51, 59, 0.08);
  font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────
   B10 — Rollenmatrix (afgeleid uit B8 acties)
   ───────────────────────────────────────────────────────────────── */
.b10-roles-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f6faf8 100%);
  border: 1px solid rgba(20, 51, 59, 0.08);
  margin-bottom: 18px;
}
.b10-roles-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
}
.b10-roles-head > div { flex: 1 1 320px; min-width: 0; }
.b10-roles-head h4 { margin: 0 0 4px 0; font-size: 1.05rem; color: #14333b; line-height: 1.3; }
.b10-roles-head p { margin: 0; font-size: 0.86rem; color: #5c7268; line-height: 1.55; }
.b10-roles-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.b10-roles-table th, .b10-roles-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(20, 51, 59, 0.06);
  vertical-align: top;
}
.b10-roles-table th {
  font-weight: 600;
  color: #3d5a52;
  background: rgba(31, 95, 91, 0.04);
}
.b10-roles-count {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 99px;
  background: #eaf3f0;
  color: #1f5f5b;
  font-weight: 600;
  font-size: 0.78rem;
}
.b10-roles-row.is-missing { background: rgba(239, 119, 95, 0.06); }
.b10-roles-row.is-missing .b10-roles-count {
  background: #fdebd2;
  color: #a85a18;
}
.b10-roles-titles {
  color: #5c7268;
  font-size: 0.78rem;
}
.b10-roles-empty {
  padding: 16px;
  border-radius: 10px;
  background: rgba(239, 119, 95, 0.07);
  color: #6b3318;
  font-size: 0.85rem;
}
.b10-roles-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
}
.b10-roles-banner.is-ok {
  background: #d8ecdf;
  color: #1f5f5b;
}
.b10-roles-banner.is-warn {
  background: #fdf2d9;
  color: #8a6a1c;
}

/* ─────────────────────────────────────────────────────────────────
   B10 — Gap-fix knop & paneel
   ───────────────────────────────────────────────────────────────── */
.b10-gapfix-btn {
  margin-top: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(115, 90, 175, 0.3);
  background: linear-gradient(135deg, #f6f0ff 0%, #eaf3f0 100%);
  color: #5b3fa8;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.b10-gapfix-btn:hover { background: linear-gradient(135deg, #ece0ff 0%, #d8ecdf 100%); }
.b10-gapfix-btn:disabled { opacity: 0.6; cursor: wait; }

.b10-gapfix-panel {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: #f9f6ff;
  border: 1px solid rgba(115, 90, 175, 0.2);
  display: grid;
  gap: 10px;
}
.b10-gapfix-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.82rem;
  color: #5b3fa8;
}
.b10-gapfix-panel__text {
  width: 100%;
  min-height: 110px;
  padding: 10px 12px;
  border: 1px solid rgba(115, 90, 175, 0.25);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #14333b;
  background: #fff;
  resize: vertical;
  box-sizing: border-box;
}
.b10-gapfix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.b10-gapfix-actions button {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid rgba(20, 51, 59, 0.15);
  background: #fff;
}
.b10-gapfix-actions .b10-gapfix-apply {
  background: var(--forest, #1f5f5b);
  color: #fff;
  border-color: var(--forest, #1f5f5b);
  font-weight: 500;
}
.b10-gapfix-actions .b10-gapfix-apply:hover { filter: brightness(1.08); }
.b10-gapfix-target-select {
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid rgba(20, 51, 59, 0.15);
  font-size: 0.82rem;
  background: #fff;
}

/* ─────────────────────────────────────────────────────────────────
   B8 — Professionaliseringsplan-paneel
   ───────────────────────────────────────────────────────────────── */
.b8-prof-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9f6ff 0%, #f6faf8 100%);
  border: 1px solid rgba(115, 90, 175, 0.18);
  margin: 18px 0;
}
.b8-prof-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.b8-prof-card__head > div { flex: 1 1 320px; min-width: 0; }
.b8-prof-card .b8-prof-card__head h3 {
  margin: 0 0 8px 0;
  color: #5b3fa8;
  font-size: 1.1rem;
  line-height: 1.35;
  font-weight: 700;
}
.b8-prof-card__head p {
  margin: 0;
  font-size: 0.88rem;
  color: #5c7268;
  line-height: 1.55;
}
.b8-prof-empty {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(115, 90, 175, 0.06);
  color: #5b3fa8;
  font-size: 0.85rem;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.b8-prof-vertrekpunt {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  color: #14333b;
  line-height: 1.55;
  border-left: 3px solid #5b3fa8;
}
.b8-prof-trajecten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.b8-prof-traject {
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(115, 90, 175, 0.15);
  display: grid;
  gap: 8px;
}
.b8-prof-traject h4 {
  margin: 0;
  font-size: 0.95rem;
  color: #5b3fa8;
}
.b8-prof-traject .b8-prof-doelgroep {
  font-size: 0.8rem;
  color: #6b7e76;
  font-style: italic;
}
.b8-prof-traject ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: #14333b;
  line-height: 1.5;
}
.b8-prof-traject .b8-prof-meta {
  font-size: 0.74rem;
  color: #6b7e76;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.b8-prof-meta span {
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(115, 90, 175, 0.08);
}
.b8-prof-borging {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(31, 95, 91, 0.05);
  font-size: 0.84rem;
  color: #14333b;
  line-height: 1.55;
  border-left: 3px solid #1f5f5b;
}
.b8-prof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.b8-prof-btn {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid rgba(115, 90, 175, 0.3);
  background: linear-gradient(135deg, #f6f0ff 0%, #eaf3f0 100%);
  color: #5b3fa8;
  font-weight: 500;
}
.b8-prof-btn:hover { background: linear-gradient(135deg, #ece0ff 0%, #d8ecdf 100%); }
.b8-prof-btn:disabled { opacity: 0.6; cursor: wait; }
.b8-prof-btn--ghost {
  background: #fff;
  border-color: rgba(20, 51, 59, 0.15);
  color: #3d5a52;
}

/* Eigenaar-keuze in prof-card head */
.b8-prof-owner-edit {
  flex-shrink: 0;
  display: grid;
  gap: 4px;
  align-items: start;
}
.b8-prof-owner-edit label {
  display: grid;
  gap: 3px;
  font-size: 0.78rem;
  color: #5c7268;
}
.b8-prof-owner-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  font-size: 0.7rem;
}
.b8-prof-owner-edit select {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(115, 90, 175, 0.25);
  background: #fff;
  font-size: 0.84rem;
  color: #14333b;
  font-family: inherit;
}
.b8-prof-owner-edit select:focus {
  outline: none;
  border-color: #5b3fa8;
}

/* Bronnen-paneel — auditeerbaarheid */
.b8-prof-sources {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(31, 95, 91, 0.04);
  border: 1px solid rgba(31, 95, 91, 0.12);
}
.b8-prof-sources summary {
  cursor: pointer;
  font-size: 0.86rem;
  color: #1f5f5b;
  font-weight: 500;
}
.b8-prof-sources summary::-webkit-details-marker { display: none; }
.b8-prof-sources[open] summary { margin-bottom: 8px; }
.b8-prof-sources__text {
  margin: 0 0 4px 0;
  font-size: 0.84rem;
  color: #14333b;
  line-height: 1.55;
  font-style: italic;
}

/* ─────────────────────────────────────────────────────────────────
   Kwaliteitslabel — Achievement Star bij 100% afgewerkte kernstappen
   ───────────────────────────────────────────────────────────────── */

/* Het starburst-medallion zelf — schaalbaar via --ql-size */
.quality-badge {
  --ql-size: 280px;
  position: relative;
  width: var(--ql-size);
  height: var(--ql-size);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 18px 28px rgba(13, 47, 38, 0.22));
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.quality-badge__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.quality-badge__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: calc(var(--ql-size) * 0.14);
}
.quality-badge__eyebrow {
  font-size: calc(var(--ql-size) * 0.032);
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #FCC89B;
  text-transform: uppercase;
}
.quality-badge__rule {
  width: calc(var(--ql-size) * 0.14);
  height: 1px;
  background: #FCC89B;
  margin: calc(var(--ql-size) * 0.028) 0;
}
.quality-badge__title {
  font-size: calc(var(--ql-size) * 0.1);
  font-weight: 700;
  color: #FFF;
  letter-spacing: -0.02em;
  line-height: 1;
}
.quality-badge__years {
  font-size: calc(var(--ql-size) * 0.085);
  font-weight: 700;
  background: linear-gradient(180deg, #CCEFD5 0%, #FCC89B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
  line-height: 1;
  margin-top: calc(var(--ql-size) * 0.014);
  font-variant-numeric: tabular-nums;
}
.quality-badge__school {
  font-size: calc(var(--ql-size) * 0.029);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(204, 239, 213, 0.7);
  text-transform: uppercase;
  max-width: 80%;
  line-height: 1.2;
}
.quality-badge__stars {
  margin-top: calc(var(--ql-size) * 0.022);
  display: flex;
  gap: calc(var(--ql-size) * 0.011);
  color: #FCC89B;
  font-size: calc(var(--ql-size) * 0.04);
}
.quality-badge__shine {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180%;
  height: calc(var(--ql-size) * 0.21);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translate(-50%, -50%) rotate(45deg) translateX(-120%);
  transition: transform 1400ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.quality-badge:hover .quality-badge__shine {
  transform: translate(-50%, -50%) rotate(45deg) translateX(120%);
}
@media (prefers-reduced-motion: reduce) {
  .quality-badge__shine { transition: none; }
}

/* Grote variant — export-pagina, badge naast samenvatting */
.quality-label--large {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(204, 239, 213, 0.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(252, 200, 155, 0.25), transparent 55%),
    #FAFAF9;
  color: #1a3840;
  margin: 18px 0 24px;
  box-shadow: 0 4px 14px rgba(20, 51, 59, 0.06);
  border: 1px solid rgba(31, 95, 91, 0.12);
  position: relative;
  overflow: hidden;
}
.quality-label__seal {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.quality-label__copy {
  flex: 1 1 360px;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.quality-label__kicker {
  margin: 0 0 6px 0;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b88424;
  font-weight: 700;
}
.quality-label__title {
  margin: 0 0 10px 0;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--ink);
}
.quality-label__lead {
  margin: 0 0 16px 0;
  font-size: 0.92rem;
  color: rgba(20, 51, 59, 0.72);
  line-height: 1.55;
  max-width: 60ch;
}
.quality-label__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(31, 95, 91, 0.06);
  border: 1px solid rgba(31, 95, 91, 0.12);
}
.quality-label__stats > div { display: grid; gap: 2px; }
.quality-label__stats dt {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(20, 51, 59, 0.55);
  font-weight: 600;
}
.quality-label__stats dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
}

/* Compacte variant — dashboard hero-aside, vervangt donut */
.quality-label--compact {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 4px;
}
.quality-label__compact-text {
  display: grid;
  text-align: center;
  margin: 0;
  gap: 2px;
}
.quality-label__compact-text strong {
  font-size: 0.88rem;
  color: #1f5f5b;
}
.quality-label__compact-text span {
  font-size: 0.78rem;
  color: #6b7e76;
}

/* ─────────────────────────────────────────────────────────────────
   Export-formaten — kaartjes met uitleg per formaat
   ───────────────────────────────────────────────────────────────── */
.export-formats { padding: 24px 28px; }
.export-formats__head { margin-bottom: 18px; }
.export-formats__head h3 { margin: 4px 0 0 0; font-size: 1.15rem; line-height: 1.3; }
.export-formats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.export-format-card {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f6faf8;
  border: 1px solid rgba(20, 51, 59, 0.08);
  display: grid;
  gap: 6px;
}
.export-format-card__icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 2px;
}
.export-format-card strong {
  font-size: 0.95rem;
  color: #1f5f5b;
}
.export-format-card p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #3d5a52;
}
.export-format-card a {
  color: #1f5f5b;
  text-decoration: underline;
}

/* ─────────────────────────────────────────────────────────────────
   Cyclussen & vergelijking
   ───────────────────────────────────────────────────────────────── */
.cycles-page__head { display: grid; gap: 6px; margin-bottom: 18px; }
.cycle-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 22px; }
.cycle-card {
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(20, 51, 59, 0.08);
  display: grid;
  gap: 8px;
}
.cycle-card.is-active { border-color: rgba(31, 95, 91, 0.3); background: linear-gradient(180deg, #fff 0%, #f0f8f4 100%); }
.cycle-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cycle-card__head h4 { margin: 0; font-size: 1rem; color: #14333b; }
.cycle-status { padding: 2px 10px; border-radius: 99px; font-size: 0.72rem; font-weight: 600; }
.cycle-status--active { background: #d8ecdf; color: #1f5f5b; }
.cycle-status--archived { background: #eef2f0; color: #5c7268; }
.cycle-card__meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 0; font-size: 0.78rem; }
.cycle-card__meta dt { color: #6b7e76; font-weight: 500; }
.cycle-card__meta dd { margin: 0; color: #14333b; font-weight: 600; }
.cycle-card__notes { font-size: 0.82rem; color: #3d5a52; margin: 0; }

.cycle-start-form { background: #f9f6ff; border-radius: 12px; border: 1px dashed rgba(115, 90, 175, 0.3); margin-bottom: 22px; }
.cycle-start-form summary { padding: 10px 16px; cursor: pointer; font-weight: 500; }
.cycle-start-form__body { padding: 14px 16px 16px; display: grid; gap: 10px; }
.cycle-start-form__body label { display: grid; gap: 4px; font-size: 0.84rem; color: #3d5a52; }
.cycle-start-form__body input[type="text"], .cycle-start-form__body textarea {
  padding: 8px 10px; border-radius: 8px; border: 1px solid rgba(20, 51, 59, 0.15); font-family: inherit; font-size: 0.88rem;
}
.cycle-checkbox-row { flex-direction: row !important; align-items: center; gap: 8px !important; }
.cycle-checkbox-row input { width: auto; }

.cycle-compare-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 12px; border-radius: 12px; background: #f4f9f7; margin-bottom: 14px; }
.cycle-compare-controls label { display: grid; gap: 4px; font-size: 0.82rem; color: #3d5a52; }
.cycle-compare-controls select { padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(20, 51, 59, 0.15); background: #fff; }
.cycle-compare-result { margin-top: 8px; }

.cycle-compare-card { display: grid; gap: 14px; padding: 18px; border-radius: 14px; background: #fff; border: 1px solid rgba(20, 51, 59, 0.08); }
.cycle-compare-card h4 { margin: 0; }
.cycle-compare-card h5 { margin: 14px 0 4px; font-size: 0.95rem; color: #1f5f5b; }
.cycle-compare-card h6 { margin: 0 0 4px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: #6b7e76; }
.cycle-domains-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.cycle-domains-table th, .cycle-domains-table td { padding: 6px 10px; text-align: left; border-bottom: 1px solid rgba(20, 51, 59, 0.06); }
.cycle-domains-table th { font-weight: 600; background: rgba(31, 95, 91, 0.04); color: #3d5a52; }
.cycle-delta { display: inline-block; padding: 1px 8px; border-radius: 99px; font-weight: 600; background: #eef2f0; color: #5c7268; }
.cycle-delta.is-up { background: #d8ecdf; color: #1f5f5b; }
.cycle-delta.is-down { background: #fdebd2; color: #a85a18; }

.cycle-diff-panel { padding: 8px 12px; border-radius: 8px; background: rgba(20, 51, 59, 0.03); margin-bottom: 6px; }
.cycle-diff-panel summary { cursor: pointer; font-size: 0.86rem; }
.cycle-diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; padding-top: 10px; }
.cycle-diff-grid ul { margin: 0; padding-left: 18px; font-size: 0.82rem; line-height: 1.45; }
.cycle-status-changes { margin: 0; padding-left: 18px; font-size: 0.84rem; }

/* ─────────────────────────────────────────────────────────────────
   AVG-toestemming banner (eenmalig bovenaan bevraging)
   ───────────────────────────────────────────────────────────────── */
.consent-banner {
  margin: 14px 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8ec 0%, #fef3e0 100%);
  border: 1px solid rgba(168, 90, 24, 0.18);
  display: grid;
  gap: 8px;
}
.consent-banner__copy strong { display: block; color: #6b3318; font-size: 0.95rem; }
.consent-banner__copy p { margin: 0; font-size: 0.84rem; color: #5d4a2c; line-height: 1.55; max-width: 75ch; }
.consent-banner__copy a { color: #6b3318; text-decoration: underline; }
.consent-banner .action-button { justify-self: start; margin-top: 4px; }

/* Demoschool — visueel duidelijk te onderscheiden van echte scholen */
.school-card-lite.is-demo {
  border: 1px dashed rgba(115, 90, 175, 0.4);
  background: linear-gradient(180deg, #faf6ff 0%, #fff 100%);
}
/* ─────────────────────────────────────────────────────────────────
   Stem van het team — vrije commentaren per sectie
   ───────────────────────────────────────────────────────────────── */
.li-comments-card { display: grid; gap: 14px; }
.li-comments-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.li-comments-head h2 { margin: 0; }
.li-comments-grid { display: grid; gap: 8px; }
.li-comments-section {
  border-radius: 12px;
  background: #f6faf8;
  border: 1px solid rgba(20, 51, 59, 0.06);
  padding: 0;
}
.li-comments-section[open] { background: #fff; border-color: rgba(20, 51, 59, 0.1); }
.li-comments-section summary {
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  list-style: none;
}
.li-comments-section summary::-webkit-details-marker { display: none; }
.li-comments-section summary::before { content: "▸ "; color: #6b7e76; transition: transform 0.15s; display: inline-block; }
.li-comments-section[open] summary::before { transform: rotate(90deg); }
.li-comments-count {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 99px;
  background: #eaf3f0;
  color: #1f5f5b;
  font-size: 0.78rem;
  font-weight: 600;
}
.li-comments-list { margin: 0; padding: 4px 16px 14px 16px; list-style: none; display: grid; gap: 8px; }
.li-comment-item {
  padding: 10px 12px;
  background: #fafcfb;
  border-radius: 8px;
  border-left: 3px solid #d8ecdf;
  font-size: 0.88rem;
  color: #14333b;
  line-height: 1.55;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.li-comment-item.is-intense {
  border-left-color: #e8a37b;
  background: #fdf6f0;
}
.li-comment-text { flex: 1; }
.li-comment-tone-flag {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: #a85a18;
  background: #fcdfca;
  padding: 1px 8px;
  border-radius: 99px;
  align-self: flex-start;
}
.li-comments-short-note { padding: 0 16px 12px 16px; }

.school-demo-badge {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 4px;
  border-radius: 99px;
  background: linear-gradient(135deg, #ece0ff 0%, #d8ecdf 100%);
  color: #5b3fa8;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(115, 90, 175, 0.25);
}

/* ───────────────────────────────────────────────────────────────────────────
   Concurrent-write conflict toast — verschijnt rechtsonder als een tweede
   bewerker tegelijk een B-stap heeft opgeslagen. Gebruiker moet bewust
   herladen of later sluiten.
   ─────────────────────────────────────────────────────────────────────── */
.conflict-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: 380px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #f1b85b;
  border-left: 6px solid #d96b53;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(20, 51, 59, 0.18);
  display: grid;
  gap: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #14333b;
  animation: conflictToastIn 280ms ease-out;
}
.conflict-toast__body strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  color: #d96b53;
}
.conflict-toast__body p {
  margin: 0 0 6px;
}
.conflict-toast__hint {
  font-size: 0.85rem;
  color: #5a7a7f;
  font-style: italic;
}
.conflict-toast__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@keyframes conflictToastIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (max-width: 480px) {
  .conflict-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

/* ───────────────────────────────────────────────────────────────────────────
   Google Docs export-dialoog
   ─────────────────────────────────────────────────────────────────────── */
.gdocs-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 51, 59, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 24px;
  animation: gdocsFadeIn 200ms ease-out;
}
.gdocs-dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 36px 24px;
  box-shadow: 0 30px 80px rgba(20, 51, 59, 0.32);
  animation: gdocsSlideUp 240ms ease-out;
}
.gdocs-dialog__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
  color: #5a7a7f;
  border-radius: 50%;
}
.gdocs-dialog__close:hover {
  background: #f8f5ef;
  color: #14333b;
}
.gdocs-dialog__head {
  text-align: center;
  margin-bottom: 20px;
}
.gdocs-dialog__icon {
  display: inline-block;
  font-size: 2.4rem;
  margin-bottom: 6px;
}
.gdocs-dialog__head h3 {
  margin: 4px 0 6px;
  font-size: 1.45rem;
  color: #1f5f5b;
}
.gdocs-dialog__head p {
  margin: 0;
  color: #5a7a7f;
}
.gdocs-steps {
  list-style: none;
  counter-reset: gdocs-step;
  padding: 0;
  margin: 0;
}
.gdocs-steps li {
  counter-increment: gdocs-step;
  position: relative;
  padding: 16px 16px 18px 60px;
  border: 1px solid #dce8e6;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #f8f5ef;
}
.gdocs-steps li::before {
  content: counter(gdocs-step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  background: #1f5f5b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.gdocs-steps li strong {
  display: block;
  color: #14333b;
  font-size: 1rem;
  margin-bottom: 4px;
}
.gdocs-steps li p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #14333b;
}
.gdocs-steps li code {
  background: #fff;
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid #dce8e6;
  font-size: 0.85em;
}
.gdocs-steps button.is-success {
  background: #1f5f5b;
  color: #fff;
}
.gdocs-dialog__foot {
  margin-top: 14px;
  padding: 12px 14px;
  background: #fef9ee;
  border: 1px solid #f1b85b;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #14333b;
  line-height: 1.5;
}
@keyframes gdocsFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes gdocsSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 540px) {
  .gdocs-dialog { padding: 24px 18px 18px; }
  .gdocs-steps li { padding-left: 50px; }
  .gdocs-steps li::before { left: 10px; width: 28px; height: 28px; }
}

/* ───────────────────────────────────────────────────────────────────────────
   Evidence-chips: subtiele badges die statistische context tonen op de
   /inzichten-pagina (lage N, 95% CI, Cronbach's α, polarisatie).
   ─────────────────────────────────────────────────────────────────────── */
.li-evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px;
}
.evidence-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: help;
}
.evidence-chip--lown {
  background: #fef9ee;
  color: #a86c00;
  border-color: #f1b85b;
}
.evidence-chip--ci {
  background: #f5f5f5;
  color: #5a7a7f;
  border-color: #e0e0e0;
}
.evidence-chip--alpha.is-good { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.evidence-chip--alpha.is-ok   { background: #f0f7ff; color: #1f5f5b; border-color: #b8d4e8; }
.evidence-chip--alpha.is-meh  { background: #fef9ee; color: #a86c00; border-color: #f1b85b; }
.evidence-chip--alpha.is-low  { background: #fceae6; color: #a83220; border-color: #d96b53; }
.evidence-chip--pol {
  background: #fceae6;
  color: #a83220;
  border-color: #d96b53;
}

/* ───────────────────────────────────────────────────────────────────────────
   Polarisatie-paneel — "vragen waar het team verdeeld is"
   ─────────────────────────────────────────────────────────────────────── */
.li-polarization-card {
  /* Volgt sectie-card styling, geen extra werk nodig */
}
.li-polarization-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.li-polarization-item {
  padding: 12px 14px;
  background: #fef9ee;
  border: 1px solid #f1b85b;
  border-left: 4px solid #d96b53;
  border-radius: 10px;
}
.li-polarization-text {
  font-size: 0.95rem;
  color: #14333b;
  line-height: 1.45;
  margin-bottom: 8px;
}
.li-polarization-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.li-polarization-bar-track {
  flex: 1;
  min-width: 100px;
  height: 8px;
  background: #fff;
  border: 1px solid #f1b85b;
  border-radius: 99px;
  overflow: hidden;
}
.li-polarization-bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  transition: width 200ms ease-out;
}
.li-polarization-pct {
  font-weight: 700;
  font-size: 0.85rem;
  min-width: 42px;
}
.li-polarization-stats small {
  color: #5a7a7f;
  font-size: 0.78rem;
}

/* ───────────────────────────────────────────────────────────────────────────
   Export-configuratie paneel — kies wat in de export verschijnt
   ─────────────────────────────────────────────────────────────────────── */
.export-settings-card {
  background: #f8f5ef;
  border: 1px solid #e0d8c8;
}
.export-settings__head {
  margin-bottom: 12px;
}
.export-settings__head h3 {
  margin: 4px 0 6px;
}

.export-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e0d8c8;
}
.export-presets__label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #5a7a7f;
  margin-right: 4px;
}
.export-preset-btn {
  background: #fff;
  border: 1.5px solid #c8d5d2;
  color: #1f5f5b;
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease;
}
.export-preset-btn:hover {
  border-color: #1f5f5b;
  background: #d4ede8;
}
.export-preset-btn.is-active {
  background: #1f5f5b;
  color: #fff;
  border-color: #1f5f5b;
}
.export-presets__custom {
  font-size: 0.82rem;
  color: #a86c00;
  font-style: italic;
  margin-left: auto;
}

.export-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.export-section-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e0d8c8;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.export-section-row:hover {
  border-color: #1f5f5b;
  background: #fdfcf8;
}
.export-section-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #1f5f5b;
  flex-shrink: 0;
}
.export-section-row:has(input:not(:checked)) {
  opacity: 0.55;
}
.export-section-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.export-section-text strong {
  font-size: 0.93rem;
  color: #14333b;
}
.export-section-text .microcopy {
  font-size: 0.78rem;
  color: #5a7a7f;
  line-height: 1.4;
}

.export-settings__status {
  margin-top: 12px;
  font-size: 0.82rem;
  color: #1f5f5b;
  min-height: 18px;
  font-weight: 600;
}
.export-settings__status.is-error {
  color: #a83220;
}

/* ─────────────────────────────────────────────────────────────────
   Auth-info onderaan sidebar (login/logout/identiteit)
   ───────────────────────────────────────────────────────────────── */
.sidebar-auth-info {
  padding: 8px 12px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 2px;
}
.sidebar-auth-name {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-auth-email {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-auth-login,
.sidebar-auth-logout {
  display: block;
  text-align: center;
}
.sidebar-auth-login {
  background: rgba(204, 239, 213, 0.12);
  border-radius: 8px;
  padding: 8px 12px !important;
  font-weight: 600;
}
.sidebar-auth-login:hover {
  background: rgba(204, 239, 213, 0.18);
}
.sidebar-auth-logout {
  color: rgba(252, 200, 155, 0.85) !important;
  font-size: 0.78rem;
}

/* ─────────────────────────────────────────────────────────────────
   Admin: gebruikersbeheer
   ───────────────────────────────────────────────────────────────── */
.admin-users {
  padding: 28px 32px;
}
.admin-users__toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 18px 0 22px;
}
.admin-users__search {
  flex: 1 1 auto;
  padding: 10px 14px;
  border: 1px solid rgba(31, 95, 91, 0.18);
  border-radius: 10px;
  font-size: 0.92rem;
  background: #fff;
}
.admin-users__list {
  margin-top: 8px;
}
.admin-users__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-users__table thead th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(20, 51, 59, 0.55);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(31, 95, 91, 0.16);
  font-weight: 600;
}
.admin-users__table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(31, 95, 91, 0.08);
  color: #14333b;
  vertical-align: top;
}
.admin-users__table tbody tr:hover {
  background: rgba(204, 239, 213, 0.12);
}
.admin-users__role {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: lowercase;
}
.admin-users__role--coordinator {
  background: rgba(31, 95, 91, 0.1);
  color: #1f5f5b;
}
.admin-users__role--admin {
  background: rgba(252, 200, 155, 0.25);
  color: #b88424;
}
.admin-users__row-actions {
  white-space: nowrap;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.admin-users__row-actions .ghost-button {
  padding: 4px 10px;
  font-size: 0.78rem;
}
.admin-users__delete {
  color: #a83220 !important;
}

/* Dialog / form */
.admin-users__dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 560px;
  width: 90vw;
  box-shadow: 0 20px 50px rgba(20, 51, 59, 0.28);
}
.admin-users__dialog::backdrop {
  background: rgba(20, 51, 59, 0.45);
  backdrop-filter: blur(2px);
}
.admin-users__form {
  padding: 28px 30px;
  display: grid;
  gap: 14px;
}
.admin-users__form h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.admin-users__form label {
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
  color: rgba(20, 51, 59, 0.7);
  font-weight: 600;
}
.admin-users__form input[type="email"],
.admin-users__form input[type="text"],
.admin-users__form select {
  padding: 10px 12px;
  border: 1px solid rgba(31, 95, 91, 0.2);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 400;
  background: #fff;
}
.admin-users__form input:read-only {
  background: rgba(31, 95, 91, 0.04);
  color: rgba(20, 51, 59, 0.55);
}
.admin-users__schools {
  border: 1px solid rgba(31, 95, 91, 0.18);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0;
}
.admin-users__schools legend {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(20, 51, 59, 0.75);
  padding: 0 6px;
}
.admin-users__hint {
  margin: 0 0 10px 0;
  font-size: 0.78rem;
  color: rgba(20, 51, 59, 0.55);
  line-height: 1.4;
}
.admin-users__schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 14px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 6px;
}
.admin-users__school-item {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  font-size: 0.85rem !important;
  cursor: pointer;
  color: #14333b !important;
}
.admin-users__form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.admin-users__dev-banner {
  margin: -8px 0 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(252, 200, 155, 0.18);
  border: 1px solid rgba(232, 157, 96, 0.32);
  color: #b88424;
  font-size: 0.84rem;
  line-height: 1.5;
}
.admin-users__dev-banner code {
  background: rgba(232, 157, 96, 0.22);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.82rem;
}
.sidebar-auth-devlink {
  color: rgba(252, 200, 155, 0.85) !important;
  font-size: 0.78rem;
}
