/*
  Maturiteitsscan antiwitwas
  Huisstijl in lijn met amlco.eu: Poppins, merkblauw #3953A0, witte kop, outline-knoppen in pillvorm,
  lichtblauwe vlakken (#F6F8FF) en een blauwe hero. Poppins (SIL Open Font License) wordt zelf gehost in
  wwwroot/fonts: geen externe fontverzoeken, passend bij een privacygevoelige toepassing.
*/
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
    color-scheme: light;
    --ink: #111111;
    --ink-soft: #4a5568;
    --page: #f6f8ff;
    --surface: #ffffff;
    --line: #d6dcee;
    --accent: #3953a0;
    --accent-dark: #2a3d7c;
    --accent-ink: #ffffff;
    --accent-soft: #e8ecf8;
    --warn: #8a4f0e;
    --warn-soft: #fbf0e1;
    --error: #a12f2f;
    --error-soft: #fbeaea;
    --radius: 12px;
    --radius-sm: 8px;
    --pill: 999px;
    --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
}

h1, h2, h3 { line-height: 1.25; font-weight: 700; margin: 0 0 .6rem; color: var(--ink); }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .75rem; max-width: 70ch; }
a { color: var(--accent); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Blazor zet de focus op de h1 na navigatie (voor schermlezers); geen kader rond een kop. */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

#app { min-height: 100vh; display: flex; flex-direction: column; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; background: var(--surface); padding: .5rem .75rem; z-index: 10; }

/* Kop en voet lopen uit tot de randen, maar de inhoud sluit aan op de kolom van main (max 72rem). */
header.site, footer.site {
    padding-block: 1rem;
    padding-inline: max(clamp(1rem, 4vw, 2.5rem), calc((100% - 72rem) / 2 + clamp(1rem, 4vw, 2.5rem)));
}
header.site {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--surface); box-shadow: 0 2px 14px rgba(57, 83, 160, .12);
    position: sticky; top: 0; z-index: 5;
}
.brand { color: var(--accent); font-weight: 700; font-size: 1.3rem; letter-spacing: .01em; text-decoration: none; }
header.site nav { display: flex; align-items: center; gap: 1.25rem; }
footer.site { background: var(--accent); color: #fff; font-size: .875rem; margin-top: 2rem; }
footer.site p { margin: 0; }
main { flex: 1; width: 100%; padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 3rem; max-width: 72rem; margin: 0 auto; }

.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; max-width: 44rem; }
.loading, .boot { color: var(--ink-soft); padding: 2rem; }
.hint, .quiet { color: var(--ink-soft); font-size: .9rem; }

/* Kop van de scan */

/* Invullen: thema-index links, vragen rechts */
.fill { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.fill > * { min-width: 0; }
@media (max-width: 52rem) { .fill { grid-template-columns: minmax(0, 1fr); } }

.index { position: sticky; top: 6.75rem; }
@media (max-width: 52rem) { .index { position: static; } }

.theme > h2 { margin-top: .5rem; }
.intro { margin-bottom: 1.25rem; color: var(--ink-soft); }
.intro summary { cursor: pointer; color: var(--accent); }
.intro p { margin-top: .75rem; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.profile, .question, .panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.25rem; margin-bottom: 1rem;
}
.profile legend, .question legend { font-weight: 600; float: left; width: 100%; margin-bottom: .75rem; padding: 0; }
.profile legend + *, .question legend + * { clear: both; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .75rem; }

.question.has-error { border-color: var(--error); }
.confidential { background: var(--warn-soft); color: var(--warn); padding: .5rem .75rem; border-radius: var(--radius); font-size: .9rem; }


.aside { margin-top: .75rem; }
.aside summary { cursor: pointer; color: var(--ink-soft); font-size: .9rem; }
.aside-body { padding: .5rem 0 0 .25rem; }
.inline { display: inline-flex; gap: .4rem; align-items: center; margin-right: 1.25rem; }
.inline input { accent-color: var(--accent); }

.guidance { margin-top: .75rem; color: var(--ink-soft); font-size: .9rem; }

.field { display: grid; gap: .3rem; font-size: .9rem; margin-top: .5rem; }
input[type="text"]:not([class*="mud-"]), input[type="email"]:not([class*="mud-"]), input[type="number"]:not([class*="mud-"]), input[type="date"]:not([class*="mud-"]), select:not([class*="mud-"]), textarea:not([class*="mud-"]) {
    font: inherit; color: var(--ink); background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .5rem .7rem; width: 100%;
}
textarea { resize: vertical; }

button:not([class*="mud-"]), .btn-outline {
    font: inherit; font-weight: 500; font-size: .95rem; line-height: 1.4;
    display: inline-flex; align-items: center; justify-content: center;
    padding: .4rem 1.1rem; border-radius: var(--pill);
    border: 2px solid var(--accent); background: transparent; color: var(--accent);
    cursor: pointer; text-decoration: none;
    transition: background-color .15s, color .15s;
}
button:not([class*="mud-"]):hover:not(:disabled), .btn-outline:hover { background: var(--accent-soft); }
button.primary { background: var(--accent); color: var(--accent-ink); }
button.primary:hover:not(:disabled) { background: var(--accent-dark); border-color: var(--accent-dark); }
button:not([class*="mud-"]):disabled { opacity: .5; cursor: not-allowed; }

.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.save-status { flex: 1; text-align: center; color: var(--ink-soft); font-size: .9rem; }

.error { color: var(--error); font-size: .9rem; margin: .5rem 0 0; }
.error-panel, .ok-panel, .confirm { border-radius: var(--radius); padding: .9rem 1rem; margin: 1rem 0; }
.error-panel { background: var(--error-soft); color: var(--error); }
.ok-panel { background: var(--accent-soft); }
.confirm { background: var(--surface); border: 1px solid var(--accent); display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.confirm p { flex-basis: 100%; margin: 0; }
.error-panel ul, .ok-panel ul { margin: .5rem 0 0; padding-left: 1.25rem; }

/* Beheer */
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sub { display: flex; gap: 1rem; }
.form-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }
.form-row .field { flex: 1 1 12rem; }
.scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); margin-bottom: 1rem; }
.data th, .data td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data thead th { font-size: .85rem; color: var(--accent-dark); font-weight: 600; background: var(--accent-soft); }
table.data { font-size: .92rem; border-radius: var(--radius); overflow: hidden; }
.data tr.selected { background: var(--accent-soft); }
.data .actions { white-space: nowrap; display: flex; gap: .5rem; }
.results td { font-variant-numeric: tabular-nums; }
.link { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

#blazor-error-ui {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: .75rem 1rem;
    background: var(--warn-soft); color: var(--warn); z-index: 20;
}
#blazor-error-ui .reload { margin-left: 1rem; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Vragenbank nakijken */
.qedit { display: grid; gap: .75rem; margin-bottom: 1rem; }
.qhead { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.qmeta { display: grid; grid-template-columns: minmax(12rem, 16rem) 1fr; gap: 1rem; align-items: start; }
.qactions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.opts input[type="text"] { width: 100%; }
.opts th[scope="row"] { width: 3rem; }
.opts td:last-child { width: 6rem; }
.badge { font-size: .75rem; padding: .1rem .5rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.badge.err { background: var(--error-soft); color: var(--error); border-color: var(--error); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.badge.ok { background: var(--accent-soft); border-color: var(--accent); }
.theme-links { columns: 2; margin: .75rem 0 0; padding-left: 1.25rem; }
@media (max-width: 40rem) { .qmeta { grid-template-columns: 1fr; } .theme-links { columns: 1; } }

/* Invullen (MudBlazor): voortgang, thema-stappen, vraagkaarten en antwoordtegels */
.notice-alert { max-width: 44rem; margin-top: 1rem; }
.alert-title { font-size: 1.25rem; margin: 0 0 .25rem; }
.loading { display: flex; align-items: center; gap: .75rem; }

.index-card { padding: 1rem; border-radius: var(--radius); }
.overall { margin-bottom: 1rem; }
.overall-text { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .4rem; font-size: .9rem; }
.overall-text span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
/* Specificiteit bewust hoger dan de algemene button-regel bovenaan. */
.index button.theme-step {
    display: grid; grid-template-columns: 1.75rem 1fr auto; gap: .5rem; align-items: center; justify-content: stretch;
    width: 100%; text-align: left; font: inherit; font-size: .9rem; font-weight: 400; color: var(--ink);
    background: transparent; border: 0; border-radius: var(--radius-sm); padding: .5rem; cursor: pointer;
}
.index button.theme-step:hover:not(:disabled) { background: var(--accent-soft); }
.index button.theme-step.current { background: var(--accent-soft); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.step-icon { display: grid; place-items: center; color: var(--accent); }
.step-number {
    display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    border: 2px solid var(--line); font-size: .75rem; font-weight: 600; color: var(--ink-soft);
}
.theme-step.current .step-number { border-color: var(--accent); color: var(--accent); }
.theme-step.complete .step-icon { color: #2e7d5b; }
.step-count { font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.theme-head { margin: .25rem 0 .75rem; }
.theme-kicker { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.theme-head h2 { font-size: 1.6rem; margin: .1rem 0 0; }
.intro-toggle { margin-bottom: .5rem; }
.intro-card { padding: 1rem 1.25rem; margin-bottom: 1rem; background: var(--accent-soft); border-color: transparent; border-radius: var(--radius); }
.intro-card p:last-child { margin-bottom: 0; }

.qcard { padding: 1.5rem; margin-bottom: 1.25rem; border-radius: var(--radius); display: grid; gap: .85rem; }
.qcard.answered { border-color: #b9dccb; }
.qcard.has-error { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.qtop { display: flex; align-items: center; gap: .6rem; }
.qnum { font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.qdone { margin-left: auto; display: inline-flex; }
.qtext { font-size: 1.15rem; line-height: 1.5; font-weight: 600; margin: 0; max-width: 60ch; }
.qalert { margin: 0; }
.profile-card { gap: .5rem; }
.profile-card .profile-grid { margin-top: .5rem; }
.badge .mud-icon-root { width: .9rem; height: .9rem; vertical-align: -.15em; }

/* Antwoordopties als aanklikbare tegels. MudBlazor zet Class op de buitenste div van elke MudRadio. */
.options { width: 100%; }
.options .mud-input-control-input-container, .options .mud-radio-group { display: grid; gap: .6rem; width: 100%; }
.mud-input-control.option {
    margin: 0; width: 100%; padding: 0; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
    transition: border-color .15s, background-color .15s;
}
.mud-input-control.option:hover { border-color: var(--accent); background: #fafbff; }
.mud-input-control.option.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.option .mud-radio { width: 100%; margin: 0; padding: .65rem .9rem .65rem .4rem; align-items: flex-start; cursor: pointer; }
.option .mud-radio > .mud-typography { display: flex; gap: .7rem; align-items: baseline; padding-top: .35rem; }
.option .letter {
    flex: none; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent-dark); font-size: .8rem; font-weight: 700;
}
.option.selected .letter { background: var(--accent); color: #fff; }
.option .option-text { line-height: 1.5; }

.qextras { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .25rem; border-top: 1px dashed var(--line); }
.qextras-label { font-size: .85rem; color: var(--ink-soft); margin-right: .25rem; }
.mud-button-root.pill { border-radius: var(--pill); }
.guidance { display: flex; gap: .4rem; align-items: flex-start; margin: 0; padding: .6rem .8rem; background: var(--page); border-radius: var(--radius-sm); font-size: .88rem; color: var(--ink-soft); }
.guidance .mud-icon-root { flex: none; margin-top: .15rem; }
.confirm-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }

.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; position: sticky; bottom: 0; padding: .75rem 0; background: linear-gradient(to top, var(--page) 70%, transparent); }
.save-status { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
@media (max-width: 40rem) { .pager { flex-wrap: wrap; } .save-status { order: 3; flex-basis: 100%; } .qcard { padding: 1rem; } }
/* Smal scherm: thema's als compacte, horizontaal scrollbare strip; enkel de huidige toont zijn titel */
@media (max-width: 52rem) {
    .index-card { padding: .75rem; }
    .index ol { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scroll-snap-type: x proximity; }
    .index button.theme-step { width: auto; flex: none; grid-template-columns: auto auto; padding: .4rem .6rem; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--pill); }
    .index button.theme-step.current { box-shadow: none; border-color: var(--accent); }
    .index button.theme-step .step-title { display: none; }
    .index button.theme-step.current .step-title { display: inline; white-space: nowrap; }
    .index button.theme-step .step-count { display: none; }
    .index button.theme-step.current .step-count { display: inline; }
    .index button.theme-step.current { grid-template-columns: auto auto auto; }
}
/* ===== Huisstijl v2: dichter bij amlco.eu =====
   Brede kop met blauwe menulinks en een omlijnde pill, een blauwe hero met zuilenpatroon, lichtblauwe en witte secties
   met zeer grote vette titels, en een grote blauwe voet met kolommen. */
body { font-size: 1.0625rem; line-height: 1.7; }
h1, h2, h3 { letter-spacing: -.01em; }

header.site { min-height: 5.5rem; padding-block: .75rem; box-shadow: 0 1px 0 var(--line); }
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: .01em; display: inline-flex; align-items: center; }
.brand img { display: block; height: 3rem; width: auto; max-width: 60vw; }
@media (max-width: 40rem) { .brand img { height: 2.25rem; } }
header.site nav { gap: 1.75rem; }
header.site nav a:not(.btn-outline) { color: var(--accent); text-decoration: none; font-size: 1.05rem; padding-block: .25rem; border-bottom: 2px solid transparent; }
header.site nav a:not(.btn-outline):hover, header.site nav a[aria-current="page"] { border-bottom-color: var(--accent); }
header.site .btn-outline { font-size: 1.05rem; padding: .5rem 1.6rem; }

/* Volle breedte, maar de inhoud blijft op de kolom van main (max 72rem). */
.bleed, .hero, .page-head, .scan-head {
    margin-inline: calc(50% - 50vw);
    padding-inline: calc(50vw - 50%);
}
.hero, .page-head, .scan-head {
    margin-top: -1.5rem; margin-bottom: 2.5rem; border-radius: 0; color: #fff;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 72px),
        linear-gradient(135deg, #4a66b8 0%, #3953a0 42%, #1d2c5e 100%);
}
.hero { padding-block: clamp(3.5rem, 10vw, 7rem); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.15; font-weight: 700; margin: 0 0 1.25rem; max-width: 22ch; }
.hero .lead { color: #e8ecf8; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.6; max-width: 38rem; margin: 0; }

.page-head, .scan-head { display: block; padding-block: clamp(2rem, 5vw, 3.25rem); }
.page-head h1, .scan-head h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.2; margin: 0; }
.scan-head .meta { color: #dfe5f7; font-size: 1.05rem; margin: .6rem 0 0; max-width: 60ch; }
.page-head .sub { display: none; } /* de menulinks staan in de kop */

/* Secties zoals op amlco.eu */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); margin-top: -2.5rem; }
.hero + .section { margin-top: -2.5rem; }
.section-light { background: var(--page); }
.section-white { background: #fff; margin-top: 0; }
.bleed-end { margin-bottom: -3.5rem; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.big-title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.2; font-weight: 700; margin: 0; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 2.5rem; }
.feature h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; margin: 0 0 .6rem; }
.feature h3 .mud-icon-root { flex: none; color: var(--accent); }
.feature p { margin: 0; padding-left: 2.1rem; line-height: 1.9; }
.centered-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 3rem; max-width: 62rem; margin: 0 auto; text-align: center; }
.centered-features .mud-icon-root { width: 2.75rem; height: 2.75rem; color: #111; }
.centered-features h3 { font-size: 1.3rem; margin: 1rem 0 .75rem; }
.centered-features p { margin: 0 auto; max-width: 19rem; line-height: 1.9; }
@media (max-width: 52rem) { .split, .features { grid-template-columns: minmax(0, 1fr); } }

/* Voet: grote blauwe band met kolommen */
main { padding-bottom: 3.5rem; }
footer.site { margin-top: 0; padding-block: 3.5rem 2rem; text-align: center; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2.5rem; max-width: 60rem; margin: 0 auto 2.5rem; }
footer.site h2 { color: #fff; font-size: 1.2rem; margin: 0 0 1rem; }
footer.site p { margin: 0 auto .6rem; max-width: 28rem; line-height: 1.7; }
footer.site .copyright { font-size: .9rem; opacity: .9; margin-top: 1rem; }
footer.site .copyright a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
footer.site .copyright a:hover, footer.site .copyright a:focus-visible { text-decoration-thickness: 2px; }

/* Invulpagina: ruimere vragen */
.qcard { padding: 1.75rem; }
.qtext { font-size: 1.25rem; }
.mud-input-control.option .option-text { font-size: 1.05rem; }
/* ===== Antwoordweergaven (lijst, kolommen, keuzelijst) en icoon bij de vraag ===== */
.options-list .mud-input-control.option { border-color: transparent; background: transparent; box-shadow: none; }
.options-list .mud-input-control.option:hover { background: #fafbff; border-color: var(--line); }
.options-list .mud-input-control.option.selected { background: var(--accent-soft); box-shadow: none; }
.options-list .mud-input-control-input-container, .options-list .mud-radio-group { gap: .1rem; }
.options-columns .mud-radio-group { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.options-columns .mud-input-control.option { height: 100%; }
.options-columns .option .mud-radio { flex-direction: column; align-items: center; text-align: center; height: 100%; }
.options-columns .option .mud-radio > .mud-typography { flex-direction: column; align-items: center; gap: .35rem; padding-top: 0; }
@media (max-width: 52rem) { .options-columns .mud-radio-group { grid-template-columns: minmax(0, 1fr); } }
.options-select { max-width: 34rem; }
.qicon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }

/* ===== Vragenlijstbouwer ===== */
.mode-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: .75rem 0; }
.mode-toggle { display: inline-flex; gap: .35rem; }
.copy-row { margin-top: .5rem; }
.theme-bar { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; margin: 2rem 0 .5rem; }
.theme-bar h2 { margin: 0; font-size: 1.25rem; color: var(--accent); }
.theme-bar .theme-title { flex: 1 1 18rem; font-size: 1.1rem; font-weight: 600; width: auto; }
.bar-actions { margin-left: auto; display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
button.icon-btn { padding: .1rem .6rem; min-width: 2.2rem; font-size: .85rem; }
button.danger { border-color: var(--error); color: var(--error); }
button.danger:hover:not(:disabled) { background: var(--error-soft); }
.more { margin: .35rem 0; }
.more > summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: start; gap: 1rem; margin-top: .75rem; }
.checks { display: grid; align-content: start; gap: .25rem; }
.preview-row { display: flex; align-items: flex-start; gap: 1rem; margin: .75rem 0; }
.vpreview { flex: 1; min-width: 0; }
.vp-item { font-size: .85rem; }
.vp-tiles { display: grid; gap: .35rem; }
.vp-tiles .vp-item { border: 1px solid var(--line); border-radius: 8px; padding: .35rem .6rem; background: #fff; }
.vp-list .vp-item { display: block; padding: .1rem 0; }
.vp-list .vp-item::before { content: "○ "; color: var(--accent); }
.vp-dropdown .vp-select { display: inline-block; min-width: 14rem; padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.vp-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.vp-columns .vp-item { border: 1px solid var(--line); border-radius: 8px; padding: .4rem; background: #fff; font-size: .8rem; text-align: center; }
.icon-preview { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.badge.info { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); }

.branch-editor { display: grid; gap: .6rem; margin: .5rem 0; }
/* Breed: "Als [voorwaarde] ga naar [doel] [knoppen]" op één regel; smal (zijpaneel van de stroomweergave): onder elkaar. */
.rule-row {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: .5rem .6rem;
    padding: .6rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.rule-row select { width: 100%; min-width: 0; }
.rule-word { font-weight: 600; color: var(--accent-dark); }
.rule-actions { display: inline-flex; gap: .25rem; justify-self: end; }
.flow-panel .rule-row { grid-template-columns: auto minmax(0, 1fr); }
.flow-panel .rule-actions { grid-column: 1 / -1; }
@media (max-width: 52rem) {
    .rule-row { grid-template-columns: auto minmax(0, 1fr); }
    .rule-actions { grid-column: 1 / -1; }
}
.rule-actions-bar { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Stroomweergave */
.flow-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1rem 0 .5rem; }
.flow-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin: 0; padding: 0; font-size: .85rem; color: var(--ink-soft); }
.swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -.1em; }
.diamond-key { display: inline-block; width: .7rem; height: .7rem; transform: rotate(45deg); border: 2px solid #b7791f; background: #fff7e0; vertical-align: -.05em; margin-right: .25rem; }
.flow-body { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1rem; align-items: start; }
.flow-scroll { overflow: auto; max-height: 78vh; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.flow-panel { position: sticky; top: 6.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.flow-panel h3 { margin-top: 0; }
.panel-text { font-weight: 500; }
@media (max-width: 70rem) { .flow-body { grid-template-columns: minmax(0, 1fr); } .flow-panel { position: static; } }
.flow-scroll svg text { font-family: var(--font); }
.lane-label { font-size: 12px; font-weight: 600; fill: #4a5568; }
.event-label { font-size: 12px; fill: #4a5568; }
.node-code { font-size: 12px; font-weight: 700; fill: #2a3d7c; }
.node-text { font-size: 12.5px; fill: #111; }
.edge-label { font-size: 11px; font-weight: 600; }
.gateway-x { font-size: 14px; font-weight: 700; fill: #b7791f; }
.fnode { cursor: pointer; }
.fnode:hover rect:first-of-type { stroke: #3953a0; }
.fnode.dim { opacity: .3; }
.fnode.target rect:first-of-type { stroke: #2e7d5b; stroke-dasharray: 4 3; }
.fnode:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Icoonkeuzelijst: icoon naast de naam in elk item */
.icon-item { display: inline-flex; align-items: center; gap: .65rem; }
.icon-picker { min-width: 14rem; }

/* ===== Cockpit: kantoorkaarten, scankaarten, uitnodiging ===== */
.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.office-card {
    display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.office-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 8px 22px rgba(57, 83, 160, .14); }
.office-text { display: grid; min-width: 0; flex: 1; }
.office-name { font-weight: 600; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.office-meta { color: var(--ink-soft); font-size: .88rem; }
.office-go { color: var(--accent); font-size: 1.3rem; }
.avatar { display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: linear-gradient(135deg, #4a66b8, #2a3d7c); color: #fff; font-weight: 700; letter-spacing: .02em; }

.empty-state { display: flex; align-items: center; gap: 1.25rem; padding: 1.75rem; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }
.empty-state .mud-icon-root { width: 2.75rem; height: 2.75rem; color: var(--accent); }
.empty-state p { margin: 0; }
.scan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.scan-card { display: grid; gap: .75rem; padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.scan-card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.scan-card header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.scan-card h3 { margin: 0; font-size: 1.1rem; }
.chip { font-size: .75rem; font-weight: 600; padding: .15rem .65rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); }
.chip.open { background: #dff3e8; color: #1f6b46; }
.chip.closed { background: #eceff5; color: #4a5568; }
.progress-line { height: .6rem; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.progress-line > span { display: block; height: 100%; background: linear-gradient(90deg, #4a66b8, #3953a0); border-radius: 999px; transition: width .5s ease; }
.scan-meta { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.scan-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.invite-result { margin-top: 1rem; padding: 1rem 1.25rem; background: #f1f8f4; border: 1px solid #bfe0cd; border-radius: var(--radius); display: grid; gap: .75rem; }
.invite-result p { margin: 0; }
.invite-result .link { width: 100%; }

/* ===== Resultaten: dashboard ===== */
.dash { padding: 1.5rem; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.dash h3 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .85rem; margin: 1rem 0; }
.kpi { display: grid; gap: .1rem; padding: 1rem 1.1rem; background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); }
.kpi-value { font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: var(--accent-dark); }
.kpi-label { font-size: .82rem; color: var(--ink-soft); }
.kpi.good .kpi-value { color: #1f6b46; }
.kpi.warn .kpi-value { color: #a1561a; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 62rem) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.radar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem 1rem 1rem; }
.radar-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; }
.radar-head h3 { margin: .75rem 0 0; }
.radar { width: 100%; max-width: 34rem; height: auto; display: block; margin: 0 auto; }
.radar-label { font-size: 13px; font-weight: 700; fill: #2a3d7c; font-family: var(--font); }
.radar-ring { font-size: 10px; fill: #8a93a6; font-family: var(--font); }
.insights { display: grid; gap: .85rem; }
.insight { padding: 1rem 1.15rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; border-left-width: 5px; }
.insight h3 { margin: 0 0 .5rem; font-size: 1rem; }
.insight ol, .insight ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; font-size: .92rem; }
.insight.good { border-left-color: #2e9d6b; }
.insight.warn { border-left-color: #e0a030; }
.insight.gap { border-left-color: #e07b39; }
.insight-score { display: inline-block; margin-left: .35rem; padding: 0 .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; font-size: .8rem; white-space: nowrap; }
table.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: .9rem; }
.heat th { text-align: left; padding: .35rem .5rem; font-weight: 600; }
.heat thead th { font-size: .78rem; color: var(--accent-dark); text-align: center; }
.heat thead th:first-child { text-align: left; }
.heat-code { color: var(--accent); font-weight: 700; margin-right: .35rem; }
.heat-cell { text-align: center; border-radius: 8px; min-width: 4.2rem; padding: .5rem .35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.heat-cell.suppressed { background: repeating-linear-gradient(45deg, #f0f2f7 0 6px, #e6e9f1 6px 12px); color: #8a93a6; }
.heat-count { text-align: center; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.heat-legend { margin-top: .75rem; }.radar-head .inline { white-space: nowrap; }

/* ===== Begeleide invulmodus: één vraag per scherm ===== */
.stage { max-width: 46rem; margin: 0 auto; padding: .5rem 0 3rem; }
.stage-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 10px 30px rgba(57, 83, 160, .08); }
.eyebrow { display: block; margin-bottom: .4rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.lead-dark { font-size: 1.15rem; color: var(--ink-soft); }
.welcome h1, .review h1, .done h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.promises { display: grid; gap: .9rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.promises li { display: flex; align-items: flex-start; gap: .85rem; }
.promises .mud-icon-root { flex: none; margin-top: .15rem; color: var(--accent); }
.profile-more { margin: 0 0 1.5rem; }
.stage-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; }
button.link-btn, button.hero-link {
    padding: .2rem 0; border: 0; border-radius: 0; background: none; font: inherit; font-weight: 400;
    color: var(--accent); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; text-align: left;
}
button.hero-link { color: #fff; margin-top: .75rem; opacity: .9; }
button.link-btn:hover:not(:disabled), button.hero-link:hover:not(:disabled) { background: none; opacity: 1; }

.focus-top { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; }
.ring-wrap { position: relative; flex: none; width: 3.3rem; height: 3.3rem; }
.ring { width: 100%; height: 100%; }
.ring-text { position: absolute; inset: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 700; color: var(--accent-dark); }
.focus-progress { display: grid; flex: 1 1 14rem; gap: .1rem; font-size: .9rem; }
.focus-progress span { color: var(--ink-soft); }
.focus-progress .progress-line { height: .4rem; margin-top: .3rem; }
.focus-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .85rem; }
.save-chip { display: inline-flex; align-items: center; gap: .3rem; min-width: 5.5rem; color: #1f6b46; }
.inline.small { margin: 0; font-size: .85rem; }
.chapter { margin-bottom: 1rem; padding: 1.5rem 1.75rem; border-radius: 20px; color: #fff; background: linear-gradient(135deg, #4a66b8, #2a3d7c); animation: slide-in .45s ease both; }
.chapter .eyebrow { color: #cdd7f5; }
.chapter h2 { margin: .1rem 0 .5rem; font-size: 1.6rem; color: #fff; }
.chapter p { margin: .35rem 0 0; color: #e8ecf8; }
.q-focus { display: grid; gap: 1rem; animation: slide-in .4s ease both; }
.q-big { margin: 0; font-size: clamp(1.3rem, 3vw, 1.7rem); line-height: 1.35; }
@keyframes slide-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.focus-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; }
.kbd-hint { font-size: .82rem; color: var(--ink-soft); }
kbd { display: inline-block; padding: .05rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; font: inherit; font-size: .78rem; }
@media (max-width: 40rem) { .kbd-hint { display: none; } .focus-nav { justify-content: space-between; } }
.review-list { display: grid; gap: .4rem; margin: .5rem 0 1rem; padding: 0; list-style: none; }
.ok-line { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.done { position: relative; overflow: hidden; padding-block: 3rem; text-align: center; }
.done-check { width: 5rem; margin: 0 auto 1rem; }
.done-check circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s ease forwards; }
.done-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .6s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -14px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: fall 2.8s ease-in forwards; }
.confetti i:nth-child(4n+1) { background: #3953a0; }
.confetti i:nth-child(4n+2) { background: #e07b39; }
.confetti i:nth-child(4n+3) { background: #2e9d6b; }
.confetti i:nth-child(4n) { background: #f0c040; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(460px) rotate(540deg); } }
/* Kop is plakkend: ankers en scrollen houden er rekening mee, en de voortgang in de begeleide modus blijft onder de kop zichtbaar. */
html { scroll-padding-top: 6.5rem; }
.focus-top {
    position: sticky; top: 5.5rem; z-index: 4; margin: 0 0 .75rem; padding: .6rem 0;
    background: rgba(246, 248, 255, .96); backdrop-filter: blur(6px);
}
.focus-progress { flex: 2 1 16rem; }

/* Lijst genodigden importeren */
.import-panel { display: grid; gap: .85rem; margin-top: 1rem; }
.import-text { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; line-height: 1.5; }
.import-summary { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip.err { background: #fbeaea; color: #a12f2f; }
.preview { max-height: 18rem; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.data.compact { margin: 0; font-size: .88rem; }
table.data.compact td, table.data.compact th { padding: .35rem .6rem; }
tr.row-err td { color: #a12f2f; background: #fdf5f5; }
.import-panel code { padding: .05rem .35rem; border-radius: 4px; background: var(--accent-soft); font-size: .85em; }
.panel .mode-toggle { margin: .5rem 0 .25rem; }

/* Advies per thema (draft tot een beheerder het valideert) */
.advice { margin-top: 2rem; }
.advice-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: .75rem 0 1rem; }
.advice-card { padding: 1rem 1.15rem; margin-bottom: .85rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; border-left-width: 5px; }
.advice-card.none { border-left-color: var(--line); }
.advice-card.draft { border-left-color: #e08a1e; }
.advice-card.validated { border-left-color: #2e9d6b; }
.advice-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.advice-card-head h4 { margin: 0; font-size: 1rem; }
.advice-card textarea { width: 100%; line-height: 1.5; }
.advice-text { white-space: pre-wrap; line-height: 1.55; margin: .75rem 0; }
.advice-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.advice .confirm { background: var(--warn-soft); }

/* Smalle schermen: het beheermenu breekt af en brede tabellen scrollen zelf, zodat een pagina nooit breder wordt dan het scherm. */
@media (max-width: 52rem) {
    header.site { flex-wrap: wrap; row-gap: .5rem; }
    header.site nav.admin-nav { flex-wrap: wrap; gap: .4rem 1.1rem; min-width: 0; }
    header.site nav.admin-nav a:not(.btn-outline) { font-size: .95rem; }
    header.site nav.admin-nav .btn-outline { padding: .35rem 1rem; font-size: .95rem; }
}
@media (max-width: 40rem) {
    header.site nav.admin-nav { width: 100%; }
    table.data { display: block; max-width: 100%; overflow-x: auto; }
}

/* Aanraakschermen: tikdoelen van minstens 44 px en velden die nooit breder zijn dan hun kolom. */
input[type="file"] { max-width: 100%; }
@media (pointer: coarse) {
    button.link-btn, button.hero-link { min-height: 44px; padding-block: .6rem; }
    .focus-tools { gap: .25rem 1.25rem; font-size: .95rem; }
    .focus-tools label.inline { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; }
    .focus-tools input[type="checkbox"] { width: 1.4rem; height: 1.4rem; margin: 0; }
    .theme-links a, .index a { display: inline-block; padding-block: .5rem; }
}

/* De overgang tussen vragen schuift op brede schermen van rechts naar binnen. Op een telefoon steekt dat tijdens de animatie buiten het scherm
   en verbreedt de pagina; daar schuift het blok omhoog. */
@keyframes slide-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 52rem) { .chapter, .q-focus { animation-name: slide-up; } }
@media (pointer: coarse) {
    main .mud-button-root:not(.mud-icon-button) { min-height: 44px; }
    main .mud-icon-button { min-width: 44px; min-height: 44px; }
}

/* Waarschuwing: niet blokkerend, de waarde wordt gewoon opgeslagen. */
.warn-note { color: var(--warn); background: var(--warn-soft); border-left: 4px solid var(--warn); border-radius: 8px; padding: .6rem .9rem; margin: .5rem 0; font-size: .9rem; }

/* Toegang en klantrapport */
.access-panel h3 { margin-top: 1.5rem; }
.access-panel h4 { margin: 1.25rem 0 .5rem; }
.check-list { display: grid; gap: .6rem; margin: .75rem 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; }
.check input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; }
.copy-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.copy-row input { flex: 1 1 18rem; min-width: 0; }
.client-advice { margin-top: 2rem; }
.page-actions { display: flex; justify-content: flex-end; gap: .5rem; margin: 0 0 1rem; }
