:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --border: #e2e5ed;
  --text: #1a1f36;
  --muted: #5e6478;
  --primary: #4f46e5;
  --primary-light: #eef2ff;
  --primary-dark: #3730a3;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --amber: #d97706;
  --amber-light: #fffbeb;
  --rose: #e11d48;
  --rose-light: #fff1f2;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 6px 16px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* === NAV === */
.topbar {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--primary);
  text-decoration: none;
}

.topbar-brand a {
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-brand a:hover {
  opacity: 0.8;
}

.topbar-brand svg {
  flex-shrink: 0;
}

.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* === LAYOUT === */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #fdf2f8 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hero p {
  color: var(--muted);
  font-size: 15px;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* === SECTION HEADING === */
.sec-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.sec-head h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sec {
  margin-bottom: 32px;
}

/* === GRID === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

/* === CARDS === */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.card-body {
  padding: 16px 20px;
  flex-grow: 1;
}

.card-body p {
  font-size: 13px;
  color: var(--muted);
}

.card-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  gap: 8px;
}

/* === PAGE HEADER === */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-header .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* === TABLES === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.data-table thead {
  background: var(--bg);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: var(--bg);
}

.value-cell {
  text-align: center;
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-light);
  color: var(--primary);
}

.badge-selected {
  background: var(--green-light);
  color: var(--green);
}

/* === ALERTS === */
.alert {
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.alert-info {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.alert p {
  margin: 0;
  font-size: 14px;
}

/* === OPTION GROUP (Checkboxes/Radios) === */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  cursor: default;
  transition: all 0.15s ease;
  background: var(--bg);
  color: var(--muted);
  opacity: 0.65;
}

/* Aangevinkte optie: groen highlight */
.option-group label:has(input:checked) {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--text);
  font-weight: 600;
  opacity: 1;
}

/* Custom checkbox */
.option-group input[type="checkbox"],
.option-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 5px;
  background: white;
  cursor: default;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}

.option-group input[type="radio"] {
  border-radius: 50%;
}

/* Aangevinkt: groen vinkje */
.option-group input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
}

.option-group input[type="radio"]:checked {
  background: var(--green);
  border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Ccircle cx='4' cy='4' r='2.5' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
}

/* Uitgeschakeld niet-aangevinkt: zacht grijs */
.option-group input[type="checkbox"]:disabled:not(:checked),
.option-group input[type="radio"]:disabled:not(:checked) {
  background: #f1f5f9;
  border-color: #e2e8f0;
  opacity: 0.5;
}

/* === OPEN VRAAG (Anders, namelijk:) === */
.open-vraag-display {
  margin-left: 28px;
  margin-top: -4px;
  margin-bottom: 8px;
  padding: 10px 12px;
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  word-wrap: break-word;
}

/* === BADGES & LABELS === */
.badge-format {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 12px;
}

/* === FORM GROUPS === */
.form-group {
  margin: 16px 0;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
}

.text-input-display {
  margin: 0;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* === MATRIX TABEL === */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 16px 0;
  table-layout: fixed;
}

.matrix-table thead {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}

.matrix-header {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
}

.matrix-header:first-child {
  text-align: left;
  word-wrap: break-word;
  white-space: normal;
}

.matrix-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.matrix-table tbody tr:last-child {
  border-bottom: none;
}

.matrix-table tbody tr:hover {
  background: var(--bg);
}

.matrix-rij-label {
  padding: 12px 10px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.3;
}

.matrix-radio-cell {
  padding: 12px 6px;
  text-align: center;
  vertical-align: middle;
  width: auto;
}

.matrix-radio-cell input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: white;
  cursor: default;
  transition: all 0.15s;
}

.matrix-radio-cell input[type="radio"]:checked {
  background: var(--green);
  border-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Ccircle cx='4' cy='4' r='2.5' fill='white'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.matrix-radio-cell input[type="radio"]:not(:checked) {
  opacity: 0.35;
}

.matrix-cell-selected {
  background: var(--green-light);
}

.matrix-selected-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  white-space: normal;
  line-height: 1.3;
}

/* === TOPIC GRID (dashboard kaarten) === */
.topic-grid {
  display: grid;
  /* auto-fit (i.p.v. auto-fill) laat lege tracks instorten, zodat een
     alleenstaande laatste kaart de resterende breedte van de rij opvult */
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.topic-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
}

.topic-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.topic-card-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.topic-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.topic-card-head h3 {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.sub-label {
  font-size: 11px;
  color: var(--muted);
}

/* === STACKED BAR === */
.stacked-bar {
  display: flex;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f1f5f9;
}

.stacked-bar > div {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: white;
  transition: width 0.4s ease;
  min-width: 0;
  overflow: hidden;
}

.bar-green { background: var(--green) }
.bar-amber { background: var(--amber) }
.bar-rose  { background: var(--rose) }
.bar-muted { background: #94a3b8 }

/* === TOPIC LEGEND === */
.topic-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.topic-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* === MULTI BAR ROWS === */
.topic-card-multi {
  grid-column: span 2;
}

.bar-rows {
  display: flex;
  flex-direction: column;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
}

.bar-row + .bar-row {
  border-top: 1px solid #f1f5f9;
}

.bar-label {
  flex: 0 0 44%;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  cursor: default;
}

.bar-track {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  min-width: 40px;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.bar-fill-green { background: var(--green); }
.bar-fill-amber { background: var(--amber); }
.bar-fill-muted { background: #94a3b8; }

.bar-pct {
  flex: 0 0 30px;
  text-align: right;
  font-weight: 700;
  font-size: 11px;
  white-space: nowrap;
}

/* === KEY STATS LIST === */
.key-stats {
  margin: 0;
}

.key-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
  gap: 8px;
}

.key-stat-row + .key-stat-row {
  border-top: 1px solid #f1f5f9;
}

.key-stat-label {
  color: var(--muted);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-stat-value {
  font-weight: 700;
  white-space: nowrap;
}

/* === CARD EXAMPLES (tekst quotes) === */
.tekstvol-inhoud {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.card-examples {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.card-examples summary {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  user-select: none;
}

.card-examples summary:hover {
  text-decoration: underline;
}

.card-examples ul {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-examples li {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
  padding: 6px 10px;
  background: #f8fafc;
  border-radius: 4px;
  border-left: 2px solid var(--primary);
}

/* === DONUT CHART === */
.donut-chart {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-hole {
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background: white;
}

/* === DONUT CHART LAYOUT === */
.donut-layout {
  display: flex;
  align-items: center;
  gap: 12px;
}

.donut-legend {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.donut-legend-label {
  flex: 1;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-legend-pct {
  font-weight: 700;
  white-space: nowrap;
}

/* === SEC BADGE === */
.sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.sec-badge.green {
  background: var(--green-light);
  color: var(--green);
}

.sec-badge.purple {
  background: var(--primary-light);
  color: var(--primary);
}

/* === PEILING SELECTOR === */
/* Statisch peiling-label in topbar */
.peiling-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* Toggle-schuifje "Licht mijn gemeente uit" in topbar */
.topbar-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.topbar-toggle-cb {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.topbar-toggle-track {
  position: relative;
  width: 36px;
  height: 20px;
  background: #cbd5e1;
  border-radius: 10px;
  flex-shrink: 0;
  transition: background .2s;
}
.topbar-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .2s;
}
.topbar-toggle-cb:checked ~ .topbar-toggle-track            { background: var(--primary); }
.topbar-toggle-cb:checked ~ .topbar-toggle-track .topbar-toggle-thumb { transform: translateX(16px); }
.topbar-toggle-tekst {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Gemeente-selector (knoppen of dropdown) verborgen tot toggle aan */
#gemeente-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.peiling-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: var(--panel);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.peiling-select:focus {
  border-color: var(--primary);
}

.wt-gemeente-kiezer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.wt-gemeente-kiezer p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

/* === GEMEENTE HIGHLIGHT === */
.gem-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: 6px;
  white-space: nowrap;
}
.gem-highlight {
  font-weight: 700;
}
.gem-answer {
  background: #fef3c7;
  border-left: 3px solid #d97706;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  list-style: none;
}

/* === GEMEENTE KNOPPEN (niet-admin) === */
.gemeente-knoppen { display: flex; gap: 6px; flex-wrap: wrap; }
.gemeente-knop {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.gemeente-knop:hover { border-color: var(--accent); color: var(--accent); }
.gemeente-knop.actief {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
  font-weight: 700;
}

/* === ADMIN BLOK (gemeente-navigatie onderaan dashboard) === */
.wt-admin-blok {
  margin-top: 48px;
  border-top: 2px dashed var(--border);
  padding: 24px 0 8px;
}
.wt-admin-blok-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.wt-admin-blok-label {
  background: #f59e0b;
  color: #78350f;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
}
.wt-admin-blok-titel {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.wt-admin-blok-intro {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 12px;
}
.wt-admin-blok-rij {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.wt-admin-actief {
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 4px 12px;
  margin-top: 8px;
  display: inline-block;
}

/* === GEMEENTEN POPUP === */
.gem-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gem-modal {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
  width: 90%;
  max-width: 420px;
  max-height: 80vh;
  overflow-y: auto;
}
.gem-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
  position: sticky;
  top: 0;
  background: var(--panel);
}
.gem-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 0;
}
.gem-modal-close:hover { color: var(--text); }
.gem-modal-body { padding: 16px 20px; }
.gem-modal-count { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.gem-modal-list { list-style: none; padding: 0; margin: 0; }
.gem-modal-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.gem-modal-list li:last-child { border-bottom: none; }
.gem-modal-list li.gem-match { font-weight: 700; color: #92400e; }
.gem-modal-loading { color: var(--muted); font-size: 13px; }
[data-kenmerk] { cursor: pointer; }
[data-kenmerk]:hover { opacity: .82; }

/* === VERIFICATIE UI (gemeente open peiling) === */

/* Vraag-sectie in concept-status: lichte oranje rand */
.sec-concept {
  border-left: 3px solid var(--amber);
  padding-left: 12px;
  border-radius: 4px;
}

/* Badge: nieuwe vraag */
.badge-nieuw {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  margin-left: 10px;
  border: 1px solid #c7d2fe;
}

/* Badge: te controleren */
.badge-concept {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--amber-light);
  color: var(--amber);
  font-weight: 600;
  margin-left: 10px;
  border: 1px solid #fde68a;
}

/* Badge: geverifieerd */
.badge-verified {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--green-light);
  color: var(--green);
  font-weight: 600;
  margin-left: 10px;
}

/* Badge: peiling open */
.badge-open {
  display: inline-block;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
  margin-left: 6px;
}

/* Verificeer-knop per vraag */
.btn-verify {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--amber);
  background: var(--amber-light);
  color: var(--amber);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

.btn-verify:hover {
  background: var(--amber);
  color: white;
}

.btn-verify.btn-verified {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green);
}

.btn-verify:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Textarea voor tekst-vragen in open peiling */
.tekst-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

.tekst-input:focus {
  border-color: var(--primary);
}

/* Verificatie-samenvatting rechtsboven in page-header */
.verify-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.verify-count {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.verify-count.verified {
  background: var(--green-light);
  color: var(--green);
}

.verify-count.concept {
  background: var(--amber-light);
  color: var(--amber);
}

/* sec-head met verify-knop: zet knop rechts */
.sec-head {
  justify-content: space-between;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .wt-db-layout {
    grid-template-columns: 1fr;
  }

  .wt-sidebar {
    position: static;
  }

  .thema-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .thema-nav-btn {
    display: inline-block;
    white-space: nowrap;
    overflow: visible;
  }

  .wrap {
    padding: 16px;
  }

  .hero {
    padding: 20px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-card-multi {
    grid-column: span 1;
  }

  .page-header {
    flex-direction: column;
  }

  .topbar {
    padding: 0 16px;
  }
}

/* === DASHBOARD SIDEBAR LAYOUT === */

.wt-db-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}

.wt-sidebar {
  position: sticky;
  top: 80px;
}

.wt-sidebar-inner {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
}

.wt-sidebar-titel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px 6px;
}

.wt-sidebar-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.wt-sidebar-tab-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s;
}

.wt-sidebar-tab-btn:hover {
  background: var(--primary-light);
}

.wt-db-main {
  min-width: 0;
}

/* === THEMA-NAVIGATIE === */

.thema-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
}

.thema-nav-btn {
  display: block;
  padding: 6px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  border: none;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thema-nav-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.thema-nav-btn.actief {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

/* === MATRIX / STACKED BARS === */

.topic-card-matrix {
  grid-column: 1 / -1;
}

.stack-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}

.stack-row {
  display: grid;
  grid-template-columns: minmax(200px, 2fr) 1fr auto;
  align-items: center;
  gap: 10px;
}

.stack-label {
  font-size: 13px;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.stack-bar {
  display: flex;
  height: 26px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}

.stack-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: rgba(255,255,255,0.92);
  font-weight: 600;
  min-width: 1px;
  cursor: default;
  transition: opacity 0.15s;
  overflow: hidden;
}

.stack-seg:hover {
  opacity: 0.82;
}

.stack-seg span {
  white-space: nowrap;
  padding: 0 3px;
}

.stack-n {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  text-align: right;
  min-width: 40px;
}

.stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.stack-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text);
}

.stack-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* === THEMA SECTIES === */

/* Gemeente-pagina: thema als `<h2>` boven een `.thema-sectie` blok */
.thema-sectie {
  margin-top: 2.5rem;
}

.thema-sectie:first-child {
  margin-top: 1rem;
}

.thema-titel {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

/* Thema-groep: één thema tegelijk zichtbaar, eigen grid */
.thema-groep {
  animation: thema-in .15s ease;
}

@keyframes thema-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dashboard: thema als breedte-brekend header-item in de grid */
.thema-sectie-header {
  position: relative;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 0.5rem 1rem;
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  align-self: center;
}

.thema-groep .thema-sectie-header:first-child {
  margin-top: 0;
}

.thema-sub-header {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  background: var(--bg);
  border-left: 3px solid var(--border);
  border-radius: 4px;
  margin-top: 2rem;
  margin-bottom: 0.1rem;
}

.thema-groep .thema-sub-header:first-of-type {
  margin-top: 1rem;
}

.thema-top-link {
  position: absolute;
  right: 1.25rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  opacity: 0.45;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity 0.15s;
  text-transform: none;
  letter-spacing: 0;
}

.thema-top-link:hover {
  opacity: 1;
}

/* ============================================================
   VIEW TABS (dashboard / zoek dichtbij)
   ============================================================ */
.view-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.view-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  position: relative;
  bottom: -2px;
}

.view-tab:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.view-tab.active {
  background: var(--panel);
  border-color: var(--border);
  border-bottom-color: var(--panel);
  color: var(--primary);
  font-weight: 700;
}

/* ============================================================
   ZOEK DICHTBIJ — panel
   ============================================================ */
#dichtbij-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
}

.dichtbij-gemeente-kiezer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
}

.dichtbij-kiezer-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.dichtbij-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}

.dichtbij-kiezer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.dichtbij-kiezer h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.dichtbij-intro {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 16px;
}

.dichtbij-laden {
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  margin: 8px 0;
}

/* Thema-groepen in de vragenlijst */
.dichtbij-thema-groep {
  margin-bottom: 18px;
}

.dichtbij-thema-groep:last-child {
  margin-bottom: 0;
}

.dichtbij-thema-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.dichtbij-vraag-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.dichtbij-vraag-item:last-child {
  border-bottom: none;
}

.dichtbij-vraag-item input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.dichtbij-vraag-item label {
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
}

.dichtbij-acties {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Resultatenlijst */
.dichtbij-resultaat-item {
  display: grid;
  grid-template-columns: 28px 1fr 120px 52px auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.dichtbij-resultaat-item:last-child {
  border-bottom: none;
}

.dichtbij-rang {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: var(--border);
}

.dichtbij-rang.top {
  background: var(--primary-light);
  color: var(--primary);
}

.dichtbij-naam {
  font-weight: 500;
  color: var(--text);
}

.dichtbij-score-balk-wrap {
  background: var(--border);
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
}

.dichtbij-score-balk {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width .4s ease;
}

.dichtbij-score-pct {
  font-weight: 700;
  color: var(--primary);
  text-align: right;
  font-size: 13px;
}

.btn-small {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.dichtbij-vergelijk-btn {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  transition: background .15s;
}
.dichtbij-vergelijk-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Vergelijking detail-panel */
#dichtbij-vergelijk-panel {
  margin-top: 8px;
}

.dichtbij-vgl-vraag {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.dichtbij-vgl-vraag:last-child { border-bottom: none; }

.dichtbij-vgl-vraag.vgl-match { background: none; }
.dichtbij-vgl-vraag.vgl-geen-match { background: none; }

.dichtbij-vgl-vraagtekst {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

/* Radio/checkbox: twee cellen naast elkaar */
.dichtbij-vgl-rij {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dichtbij-vgl-cel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  position: relative;
}

.dichtbij-vgl-cel.g1 { border-left: 3px solid var(--amber); }
.dichtbij-vgl-cel.g2 { border-left: 3px solid var(--primary); }

.vgl-gem-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 2px;
}

/* multi/matrix vergelijkingstabel */
.dichtbij-vgl-tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dichtbij-vgl-tabel thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  padding: 4px 8px 6px;
  border-bottom: 1px solid var(--border);
}
.dichtbij-vgl-tabel thead th:first-child { color: transparent; }
.dichtbij-vgl-tabel tbody tr { border-bottom: 1px solid var(--border); }
.dichtbij-vgl-tabel tbody tr:last-child { border-bottom: none; }
.dichtbij-vgl-tabel tbody tr.vgl-sub-match { background: var(--green-light); }

.vgl-sub-tekst {
  padding: 6px 8px;
  color: var(--text);
  width: 60%;
}
.vgl-cel {
  padding: 6px 8px;
  text-align: center;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 768px) {
  .dichtbij-resultaat-item {
    grid-template-columns: 28px 1fr 70px 40px;
    gap: 8px;
  }
  .dichtbij-vergelijk-btn { display: none; } /* verberg op mobiel */
  .dichtbij-vgl-rij { grid-template-columns: 1fr; }
  .view-tab { padding: 7px 14px; font-size: 12px; }
}

/* ============================================================
   Medewerker landing — banners, tile-grid, profiel, vraagformulier
   ============================================================ */

/* Wrapper */
.wt-mw-wrap,
.wt-profiel-wrap,
.wt-vraag-wrap {
  max-width: 820px;
  margin: 32px auto;
  padding: 0 16px;
  font-family: inherit;
}

/* Status-banners */
.wt-mw-banner {
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  border-left: 4px solid;
  line-height: 1.6;
}
.wt-mw-banner strong { display: block; font-size: 17px; margin-bottom: 6px; }
.wt-mw-banner p      { margin: 4px 0; color: var(--text); }
.wt-mw-banner--success { background: var(--green-light);   border-color: var(--green);   }
.wt-mw-banner--amber   { background: var(--amber-light);   border-color: var(--amber);   }
.wt-mw-banner--neutral { background: #f1f5f9;              border-color: #94a3b8;        }
.wt-mw-banner--info    { background: var(--primary-light); border-color: var(--primary); }

.wt-mw-cta { margin-top: 14px; display: inline-block; }

/* Tile-grid */
.wt-mw-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Tile */
.wt-tile {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.wt-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  border-color: var(--primary);
  text-decoration: none;
}
.wt-tile--soon { opacity: .65; pointer-events: none; }

.wt-tile-icon  { font-size: 28px; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.wt-tile-title { font-size: 15px; font-weight: 600; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.wt-tile-desc  { font-size: 13px; color: var(--muted); line-height: 1.5; }

.wt-tile-soon-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--amber-light);
  color: var(--amber);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Profiel & vraagformulier */
.wt-profiel-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.wt-profiel-header h2,
.wt-vraag-wrap h2  { font-size: 22px; font-weight: 700; }
.wt-profiel-gem-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.wt-profiel-form { display: flex; flex-direction: column; gap: 20px; }
.wt-vraag-intro  { color: var(--muted); margin-bottom: 24px; line-height: 1.6; }

.wt-form-row { display: flex; flex-direction: column; gap: 6px; }
.wt-form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.wt-input {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--panel);
  width: 100%;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.wt-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.wt-input--readonly { background: #f8fafc; color: var(--muted); cursor: default; }
textarea.wt-input   { resize: vertical; min-height: 100px; }
select.wt-input     { appearance: auto; }

.wt-form-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }

.wt-form-row--naam {
  flex-direction: row;
  gap: 16px;
}
.wt-form-row--naam > div { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.wt-form-row--naam > div:nth-child(2) { flex: 0 0 140px; }
@media (max-width: 600px) {
  .wt-form-row--naam { flex-direction: column; }
  .wt-form-row--naam > div:nth-child(2) { flex: 1; }
}

.wt-medewerker-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  background: var(--green-light);
  color: var(--green);
}

/* Toggle-schakelaar */
.wt-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.wt-toggle-cb   { position: absolute; opacity: 0; width: 0; height: 0; }
.wt-toggle-track {
  position: relative;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  flex-shrink: 0;
  transition: background .2s;
}
.wt-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s;
}
.wt-toggle-cb:checked ~ .wt-toggle-track             { background: var(--primary); }
.wt-toggle-cb:checked ~ .wt-toggle-track .wt-toggle-thumb { transform: translateX(20px); }
.wt-toggle-tekst { font-size: 14px; font-weight: 500; }

/* Radio-groep voor vraagformulier */
.wt-radio-groep { display: flex; flex-direction: column; gap: 10px; }
.wt-radio-label { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.wt-radio       { width: 16px; height: 16px; accent-color: var(--primary); }

/* Formulier-acties en save-feedback */
.wt-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}
.wt-save-status { font-size: 13px; }
.wt-save-ok     { color: var(--green); }
.wt-save-err    { color: var(--rose); }

/* Responsief */
@media (max-width: 600px) {
  .wt-mw-grid { grid-template-columns: 1fr; }
  .wt-tile    { padding: 16px; }
}

/* ============================================================
   Terug-naar-start knop (fragment-pagina's zonder eigen topbar)
   ============================================================ */
.wt-back-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

/* Tegel met aandacht: openstaande taken/vragen */
.wt-tile--attention {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px var(--amber-light) inset, var(--shadow);
}
.wt-tile-attention-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--amber);
  color: white;
  border-radius: 4px;
  padding: 2px 6px;
}

/* Topbar: linkerkant groeperen (history-back + titel) naast topbar-actions */
.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ============================================================
   Dingen om te doen — takenlijst
   ============================================================ */
.wt-taken-wrap {
  max-width: 820px;
  margin: 32px auto;
  padding: 0 16px;
  font-family: inherit;
}

.wt-taken-lijst {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wt-taak-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wt-taak-titel { font-size: 15px; font-weight: 700; }
.wt-taak-omschrijving { font-size: 13px; color: var(--muted); line-height: 1.5; white-space: pre-wrap; }

.wt-taken-subkop { margin-top: 32px; font-size: 15px; font-weight: 700; }

.wt-taken-voltooid-lijst {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wt-taken-voltooid-lijst li {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 6px;
}

.wt-taken-vraag-link {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Mijn gemeente — collega uitnodigen
   ============================================================ */
.wt-uitnodig-sectie {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.wt-uitnodig-sectie h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.wt-uitnodig-sectie h4 { font-size: 13px; font-weight: 700; margin: 20px 0 8px; }

.wt-uitnodig-lijst ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.wt-uitnodig-lijst li { font-size: 13px; padding: 8px 12px; background: var(--bg); border-radius: 6px; }

.wt-uitnodig-status-open        { color: var(--amber); font-weight: 600; }
.wt-uitnodig-status-goedgekeurd { color: var(--green); font-weight: 600; }
.wt-uitnodig-status-afgewezen   { color: var(--rose);  font-weight: 600; }

@media (max-width: 600px) {
  .wt-taak-item        { padding: 14px 16px; }
  .wt-uitnodig-sectie   { padding: 16px; }
}

/* ============================================================
   Stel een vraag — openbaar vraag-en-antwoordbord ("aan iedereen")
   ============================================================ */
.wt-vraag-bord {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.wt-vraag-bord .sec-head { margin-bottom: 4px; }
.wt-vraag-bord h3        { font-size: 16px; font-weight: 700; }

.wt-vraag-bord-lijst { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }

.wt-vraag-bord-item {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.wt-vraag-bord-head   { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.wt-vraag-bord-bericht { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }

.wt-vraag-bord-reacties {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wt-vraag-bord-reacties li {
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 12px;
  background: var(--panel);
  border-radius: 6px;
}
.wt-vraag-bord-reactie-van { font-weight: 600; margin-right: 4px; }

.wt-reactie-form { display: flex; flex-direction: column; gap: 8px; }
.wt-reactie-form textarea { resize: vertical; }

@media (max-width: 600px) {
  .wt-vraag-bord { padding: 16px; }
}
