/* CodeHelden - Bouw je eigen website
   Kindvriendelijke stap-voor-stap coach voor HTML en CSS.
   Systeemfonts, geen externe bestanden, werkt offline. */

:root {
  --paars: #5b3df5;
  --paars-donker: #4429c9;
  --paars-licht: #efeaff;
  --paars-rand: #ddd4ff;
  --html: #b45309;
  --html-bg: #fff2dc;
  --css: #1d6fd6;
  --css-bg: #e3efff;
  --groen: #1f7a4d;
  --groen-bg: #e7f7ee;
  --groen-rand: #c5ead4;
  --inkt: #23233a;
  --grijs: #6a6a80;
  --lijn: #e5e5ef;
  --code-bg: #1f2138;
  --code-tekst: #e8e9fb;
  --code-mark: #ffd86b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--inkt);
  background: #f5f5fb;
  font-size: 16px;
}

* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 3px solid #ffb020; outline-offset: 3px; }

/* ---------- Kop ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 4%; background: #fff; border-bottom: 1px solid var(--lijn);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brandmark {
  background: var(--paars); color: #fff; font: bold 20px ui-monospace, "Courier New", monospace;
  padding: 6px 10px; border-radius: 11px; transform: rotate(-4deg); letter-spacing: -2px;
}
.brandname { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.brandname span { color: var(--paars); }
.topnote { font-size: 14px; color: var(--grijs); }

/* ---------- Raster ---------- */
.shell { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
aside { padding: 24px 16px; border-right: 1px solid var(--lijn); background: #fff; }
.aside-title { font-size: 12px; letter-spacing: 1.4px; font-weight: 800; color: var(--grijs); }
.aside-copy { font-size: 14px; color: var(--grijs); line-height: 1.6; margin: 8px 0 20px; }

.lesgroep { margin-bottom: 6px; }
.lesnaam {
  font-size: 11px; letter-spacing: 1px; font-weight: 800; color: var(--grijs);
  text-transform: uppercase; margin: 16px 0 6px; padding-left: 4px;
}
.step {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: transparent; border-radius: 9px; padding: 9px 8px;
  color: #55556a; font-size: 14px;
}
.step:hover { background: #f4f2ff; }
.step .bol {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; border: 1px solid #dcdce8;
  display: grid; place-items: center; font-size: 12px; font-weight: bold; background: #fff;
}
.step.active { background: var(--paars-licht); color: var(--paars-donker); font-weight: 700; }
.step.active .bol { background: var(--paars); color: #fff; border-color: var(--paars); }
.step.done .bol { background: var(--groen-bg); color: var(--groen); border-color: var(--groen-rand); }

/* ---------- Les ---------- */
main { padding: 28px 32px 40px; min-width: 0; }
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { font-size: 12px; letter-spacing: 1.2px; font-weight: 800; color: var(--paars); }
.counter { font-size: 13px; color: var(--grijs); }
progress { width: 100%; height: 8px; margin: 12px 0 20px; border: 0; border-radius: 8px; overflow: hidden; background: #e7e4f4; }
progress::-webkit-progress-bar { background: #e7e4f4; }
progress::-webkit-progress-value { background: var(--paars); transition: width .3s; }
progress::-moz-progress-bar { background: var(--paars); }
h1.title { font-size: clamp(24px, 3vw, 34px); letter-spacing: -1px; line-height: 1.15; margin: 0 0 10px; }
.intro { color: #55556a; line-height: 1.6; max-width: 760px; margin: 0 0 22px; }

.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.coding, .result { min-width: 0; }

.mission { background: var(--paars-licht); border: 1px solid var(--paars-rand); border-radius: 13px; padding: 18px 20px; }
.mission-label { font-size: 12px; letter-spacing: 1.2px; font-weight: 800; color: var(--paars-donker); }
.mission p { margin: 8px 0 0; line-height: 1.55; }
.hint { margin-top: 12px; }
.hint summary { font-size: 14px; font-weight: 700; color: var(--paars-donker); cursor: pointer; }
.hint p { font-size: 14px; color: #4a4a63; line-height: 1.55; margin: 8px 0 0; }
.hint code, .intro code, .mission code, .cheatsheet code { background: #efeefb; border-radius: 4px; padding: 1px 5px; font-family: ui-monospace, "Courier New", monospace; font-size: .92em; color: var(--paars-donker); }

.editor-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--code-bg); color: #eceafc; padding: 11px 16px; border-radius: 11px 11px 0 0; margin-top: 16px;
}
.editor-head .fname { font: 13px ui-monospace, "Courier New", monospace; }
.editor-head .badge { font-size: 10px; letter-spacing: 1.2px; padding: 3px 7px; border-radius: 5px; font-weight: 700; }
.badge.html { background: var(--html-bg); color: var(--html); }
.badge.css { background: var(--css-bg); color: var(--css); }
textarea {
  display: block; width: 100%; height: 220px; resize: vertical; border: 0;
  background: #262842; color: var(--code-tekst); padding: 16px;
  font: var(--codegrootte, 15px)/1.7 ui-monospace, "Courier New", monospace; tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto;
  border-radius: 0;
}
textarea:focus { outline: 2px solid #9a8bff; outline-offset: -2px; }
.editor-foot { background: var(--code-bg); color: #b7b5ce; font-size: 12px; padding: 10px 16px; border-radius: 0 0 11px 11px; }

.checkrow { margin-top: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.btn-check { background: #fff; border: 1px solid #d6d5e6; border-radius: 9px; padding: 10px 16px; font-weight: 700; color: #45435d; }
.btn-check:hover { background: #f6f5ff; }
.feedback { font-size: 14px; line-height: 1.4; color: #6a5a8f; }
.feedback.success { color: var(--groen); font-weight: 700; }
.feedback.tip { color: #9a5a1a; }

/* ---------- Tabs met volledige bestanden ---------- */
.files { margin-top: 22px; border: 1px solid var(--lijn); border-radius: 12px; overflow: hidden; }
.tabrow { display: flex; flex-wrap: wrap; align-items: center; background: #f3f3fa; border-bottom: 1px solid var(--lijn); }
.tab { border: 0; background: transparent; padding: 11px 14px; font: 13px ui-monospace, "Courier New", monospace; color: #6a6a80; border-bottom: 3px solid transparent; }
.tab.active { color: var(--paars-donker); border-bottom-color: var(--paars); font-weight: 700; background: #fff; }
.tab-spacer { flex: 1; }
.btn-copy { margin: 6px 8px; background: var(--paars); color: #fff; border: 0; border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.btn-copy:hover { background: var(--paars-donker); }
.btn-copy.ok { background: var(--groen); }
.filecode { margin: 0; background: var(--code-bg); color: var(--code-tekst); padding: 16px; overflow: auto; max-height: 320px; font: calc(var(--codegrootte, 15px) - 2px)/1.6 ui-monospace, "Courier New", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.filecode mark { background: rgba(255, 216, 107, .22); color: var(--code-mark); border-radius: 3px; padding: 1px 0; }

/* ---------- Resultaat ---------- */
.result { border: 1px solid var(--lijn); border-radius: 13px; background: #fff; overflow: hidden; display: flex; flex-direction: column; position: sticky; top: 16px; }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-weight: 700; }
.pageswitch { display: flex; gap: 4px; background: #f0eefb; border-radius: 8px; padding: 3px; }
.pageswitch button { border: 0; background: transparent; padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #6a6a80; }
.pageswitch button.active { background: #fff; color: var(--paars-donker); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.browserbar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #f6f6fb; border-top: 1px solid var(--lijn); border-bottom: 1px solid var(--lijn); font-size: 12px; color: #8a8a9c; }
.browserbar .dots { letter-spacing: 2px; }
.browserbar .url { flex: 1; text-align: center; font-family: ui-monospace, "Courier New", monospace; }
iframe#preview { border: 0; width: 100%; flex: 1; min-height: 460px; background: #fff; }
.preview-note { padding: 11px 14px; font-size: 12px; color: #8a8a9c; border-top: 1px solid var(--lijn); text-align: center; }

/* ---------- Onderkant ---------- */
.bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.btn-back { background: transparent; border: 0; color: #6a6a80; font-size: 14px; padding: 10px 4px; }
.btn-next { background: var(--paars); color: #fff; border: 0; border-radius: 10px; padding: 13px 20px; font-weight: 700; box-shadow: 0 3px 0 var(--paars-donker); }
.btn-next:hover { background: var(--paars-donker); }
.btn-next:active { transform: translateY(2px); box-shadow: none; }
.bottom .midnote { font-size: 12px; color: #8a8a9c; text-align: center; }

/* ---------- Afronden ---------- */
.finish { background: linear-gradient(135deg, #efeaff, #e3efff); border: 1px solid var(--paars-rand); border-radius: 16px; padding: 26px; margin: 20px 0; }
.finish h2 { margin: 0 0 8px; font-size: 26px; }
.finish p { line-height: 1.6; max-width: 640px; color: #45435d; }
.finish ol { line-height: 1.7; max-width: 640px; color: #45435d; }
.finish-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.btn-download { background: var(--paars); color: #fff; border: 0; border-radius: 11px; padding: 14px 22px; font-size: 16px; font-weight: 800; box-shadow: 0 3px 0 var(--paars-donker); }
.btn-download:hover { background: var(--paars-donker); }
.btn-ghost { background: #fff; border: 1px solid #d6d5e6; border-radius: 11px; padding: 14px 20px; font-weight: 700; color: #45435d; }

.confetti-note { font-size: 13px; color: var(--grijs); margin-top: 10px; }
.session-note { font-size: 12px; color: #9a9aae; margin-top: 20px; line-height: 1.5; }

/* ---------- Spiekbriefje ---------- */
.cheatsheet { margin-top: 22px; border-top: 1px solid var(--lijn); padding-top: 16px; color: #55556a; font-size: 14px; }
.cheatsheet summary { cursor: pointer; font-weight: 700; }
.taggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; margin-top: 12px; }
.taggrid p { margin: 4px 0; }

.sitefooter { max-width: 1500px; margin: 0 auto; padding: 20px 4%; border-top: 1px solid var(--lijn); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #9a9aae; }

/* ---------- Reset-knop klein ---------- */
.btn-reset { background: transparent; border: 1px solid var(--lijn); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: #6a6a80; }
.btn-reset:hover { border-color: #cfcfe0; color: var(--inkt); }

/* ---------- Klein scherm ---------- */
@media (max-width: 1080px) {
  .shell { display: block; }
  aside { border-right: 0; border-bottom: 1px solid var(--lijn); padding: 16px 4%; }
  .aside-copy { display: none; }
  aside nav { display: flex; overflow-x: auto; gap: 8px; }
  .lesgroep { flex-shrink: 0; }
  .lesnaam { margin-top: 0; }
  main { padding: 20px 4% 40px; }
  .workspace { grid-template-columns: 1fr; }
  .result { position: static; order: -1; }
  iframe#preview { min-height: 380px; }
}
@media (max-width: 520px) {
  .topnote { display: none; }
  .taggrid { grid-template-columns: 1fr; }
  .bottom .midnote { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* =================== Versie 2: voorbeeld, röntgenbril, hints, themakiezer =================== */
.themaknop { background: var(--paars-licht); border: 1px solid var(--paars-rand); color: var(--paars-donker); border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: 14px; }
.themaknop:hover { background: #e4dcff; }

.nieuwkaart { background: #fff; border: 1px solid var(--lijn); border-left: 5px solid var(--paars); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.nieuw-label { font-size: 12px; letter-spacing: 1.2px; font-weight: 800; color: var(--paars); }
.nieuw-rij { display: flex; gap: 12px; align-items: baseline; margin-top: 8px; font-size: 14px; color: #45435d; line-height: 1.45; }
.nieuw-rij code { flex-shrink: 0; background: var(--code-bg); color: var(--code-mark); border-radius: 6px; padding: 3px 8px; font: 13px ui-monospace, "Courier New", monospace; }

.hintknop { margin-top: 12px; background: #fff; border: 1px dashed var(--paars); color: var(--paars-donker); border-radius: 8px; padding: 7px 12px; font-size: 14px; font-weight: 700; }
.hintknop:hover:not(:disabled) { background: #f6f3ff; }
.hintbox { margin-top: 12px; background: #fff; border-radius: 10px; padding: 12px 14px; font-size: 14px; color: #45435d; line-height: 1.55; }
.hintbox p { margin: 0 0 8px; }
.hintbox .hintlabel { font-weight: 700; color: var(--paars-donker); margin-top: 10px; }
.hintbox pre { margin: 0 0 6px; background: var(--code-bg); color: var(--code-tekst); border-radius: 8px; padding: 10px 12px; font: 13px/1.6 ui-monospace, "Courier New", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.preview-head { flex-wrap: wrap; }
.viewswitch { display: flex; gap: 4px; background: #f0eefb; border-radius: 10px; padding: 3px; }
.viewswitch button { border: 0; background: transparent; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 700; color: #6a6a80; }
.viewswitch button.active { background: #fff; color: var(--paars-donker); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.xray { border: 1px solid #d6d5e6; background: #fff; border-radius: 9px; padding: 7px 11px; font-size: 13px; font-weight: 700; color: #45435d; }
.xray.aan { background: var(--paars); border-color: var(--paars); color: #fff; }

.browserbar .pageswitch { margin-left: auto; }
.browserbar .url { text-align: left; }
.result.is-voorbeeld { border-color: #ffcf6b; box-shadow: 0 0 0 3px #fff3d6; }
.result.is-voorbeeld .browserbar { background: #fff8e8; }
.nu-bol { display: inline-block; width: 14px; height: 10px; border: 2px dashed #ffb020; border-radius: 2px; vertical-align: middle; margin-right: 4px; }

.bottom { margin: 18px 0 8px; }

.kiezer { position: fixed; inset: 0; background: rgba(31, 33, 56, .55); display: grid; place-items: center; padding: 16px; z-index: 50; }
.kiezer[hidden] { display: none; }
.kiezer-kaart { background: #fff; border-radius: 18px; padding: 26px; max-width: 720px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.kiezer-kaart h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.5px; }
.kiezer-kaart p { color: #55556a; line-height: 1.55; margin: 0 0 18px; }
.kiezer-opties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.kies { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; border: 2px solid var(--lijn); background: #fafaff; border-radius: 14px; padding: 18px 12px; transition: transform .15s, border-color .15s; }
.kies:hover { border-color: var(--paars); transform: translateY(-2px); }
.kies.gekozen { border-color: var(--paars); background: var(--paars-licht); }
.kies-emoji { font-size: 40px; line-height: 1.1; }
.kies-naam { font-weight: 800; font-size: 17px; }
.kies-teaser { font-size: 13px; color: var(--grijs); line-height: 1.4; }
@media (max-width: 600px) { .kiezer-opties { grid-template-columns: 1fr; } .kies { flex-direction: row; text-align: left; } }

/* =================== Versie 3: de head =================== */
.tabbar { display: flex; align-items: center; gap: 10px; padding: 8px 14px 0; background: #eceaf6; border-top: 1px solid var(--lijn); flex-wrap: wrap; }
.tabbar .dots { font-size: 12px; color: #8a8a9c; letter-spacing: 2px; }
.browsertab { display: inline-flex; align-items: center; gap: 6px; max-width: 60%; background: #fff; border-radius: 9px 9px 0 0; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--inkt); box-shadow: 0 -1px 0 var(--lijn) inset; }
.browsertab #tabtitel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cssstatus { margin-left: auto; margin-bottom: 6px; font: 12px ui-monospace, "Courier New", monospace; font-weight: 700; padding: 4px 9px; border-radius: 7px; }
.cssstatus.ok { background: var(--groen-bg); color: var(--groen); }
.cssstatus.geen { background: #f1f1f6; color: #7a7a8e; }
.cssstatus.fout { background: #fff0e0; color: #a4501a; }
.result.is-voorbeeld .tabbar { background: #fff1d1; }
.headstrook { background: var(--code-bg); color: var(--code-tekst); padding: 10px 14px; border-bottom: 1px solid var(--lijn); }
.headstrook-label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; background: var(--paars); color: #fff; padding: 2px 7px; border-radius: 5px; margin-bottom: 6px; }
.headstrook pre { margin: 0; font: 12px/1.6 ui-monospace, "Courier New", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-note.waarschuwing { background: #fff4e5; color: #8a4a12; font-weight: 700; }
.finishwarn { background: #fff4e5; border: 1px solid #f3c58f; color: #6e3b0c; border-radius: 12px; padding: 12px 16px; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.finishwarn ul { margin: 6px 0 0; padding-left: 20px; }

/* =================== Versie 4 =================== */
.skiplink { position: absolute; left: -9999px; top: 8px; background: var(--paars); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skiplink:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* De balk van CodeHelden, dezelfde in beide delen */
.chbalk { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; padding: 8px 4%; background: #fff; border-bottom: 1px solid var(--lijn); }
.chbalk .brand { display: flex; align-items: center; gap: 10px; }
.chbalk .brandmark { font-size: 16px; padding: 4px 8px; }
.chbalk .brandname { font-size: 19px; }
.deeltabs { display: flex; gap: 4px; background: #f0eefb; border-radius: 10px; padding: 3px; }
.deeltab { padding: 7px 14px; border-radius: 8px; font-weight: 700; font-size: 14px; color: #55556a; text-decoration: none; }
.deeltab:hover { background: #fff; }
.deeltab.actief { background: var(--paars); color: #fff; }
.handbalk { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; color: #3d2200; }
.hand-icoon { font-size: 34px; line-height: 1; }
.btn-hand-weg { background: #fff; border: 2px solid #3d2200; color: #3d2200; border-radius: 10px; padding: 7px 12px; font-weight: 800; font-size: 14px; }
body.hand-op .chbalk { background: #ff9f1c; border-bottom-color: #d97706; padding-top: 12px; padding-bottom: 12px; }
body.hand-op .top { background: #fff3e0; }

.top { flex-wrap: wrap; padding: 10px 4%; }
.topknoppen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.topknop { background: #fff; border: 1px solid #d6d5e6; border-radius: 10px; padding: 8px 12px; font-weight: 700; font-size: 14px; color: #45435d; }
.topknop:hover { background: #f6f5ff; }
.handknop { border-color: #f3c58f; }
body.hand-op .handknop { background: #ff9f1c; border-color: #d97706; color: #3d2200; }
.menuwrap { position: relative; }
.werkmenu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; background: #fff; border: 1px solid var(--lijn); border-radius: 12px; box-shadow: 0 12px 34px rgba(31,33,56,.18); padding: 6px; min-width: 290px; display: flex; flex-direction: column; }
.werkmenu button { text-align: left; background: transparent; border: 0; border-radius: 8px; padding: 9px 12px; font-size: 14px; color: var(--inkt); }
.werkmenu button:hover, .werkmenu button:focus-visible { background: var(--paars-licht); }
.werkmenu hr { border: 0; border-top: 1px solid var(--lijn); margin: 4px 6px; }
.handkeuze { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff3e0; border: 1px solid #f3c58f; border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.handkeuze button { background: #fff; border: 1px solid #f3c58f; border-radius: 9px; padding: 8px 12px; font-weight: 700; color: #6e3b0c; }
.btn-ghost-klein { background: transparent; border: 1px solid #d6d5e6; border-radius: 9px; padding: 7px 11px; font-weight: 600; color: #55556a; font-size: 13px; }

.tabmelding { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 14px 4%; background: #fff4e5; border-bottom: 2px solid #f3c58f; color: #6e3b0c; font-weight: 700; }
body.passief textarea { opacity: .6; }

.lesson-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.bewaarstatus { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 7px; }
.bewaarstatus.ok { background: var(--groen-bg); color: var(--groen); }
.bewaarstatus.niet { background: #fff0e0; color: #8a4a12; }
.labelnu { display: inline-block; margin: 0 0 10px; background: var(--groen-bg); color: var(--groen); border: 1px solid var(--groen-rand); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 8px; }

.geraamte { margin: -8px 0 18px; font-size: 14px; color: #55556a; max-width: 760px; }
.geraamte summary { cursor: pointer; font-weight: 700; color: var(--paars-donker); }
.geraamte pre { background: var(--code-bg); color: var(--code-tekst); border-radius: 10px; padding: 12px 14px; font: 13px/1.6 ui-monospace, "Courier New", monospace; overflow: auto; }

.mission-kop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.voorleesknop { background: #fff; border: 1px solid var(--paars-rand); color: var(--paars-donker); border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
.voorleesknop.aan { background: var(--paars); color: #fff; }

.editorbestanden { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 16px; }
.editortab { border: 1px solid var(--lijn); background: #f3f3fa; border-radius: 9px 9px 0 0; padding: 7px 12px; font: 13px ui-monospace, "Courier New", monospace; color: #55556a; }
.editortab.active { background: var(--code-bg); color: #fff; border-color: var(--code-bg); font-weight: 700; }
.editortab.nieuw { font-family: inherit; font-weight: 700; color: var(--paars-donker); background: #fff; border-style: dashed; border-color: var(--paars); }
.editorbestanden:not([hidden]) ~ .editor-head { margin-top: 0; border-top-left-radius: 0; }
.nieuwbestand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--paars-licht); border: 1px solid var(--paars-rand); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }
.nieuwbestand label { font-weight: 700; color: var(--paars-donker); }
.nieuwbestand input { font: 15px ui-monospace, "Courier New", monospace; padding: 7px 10px; border: 1px solid #cfc8f5; border-radius: 8px; min-width: 200px; }
.nieuwbestand .btn-copy { margin: 0; }
.nieuwfout { flex-basis: 100%; color: #9a5a1a; font-weight: 600; }
.editor-knoppen { display: flex; align-items: center; gap: 6px; }
.badge.js { background: #fff7cc; color: #7a5c00; }
.lettergrootte { background: transparent; border: 1px solid #4a4c6e; color: #eceafc; border-radius: 6px; padding: 1px 7px; font-size: 12px; font-weight: 700; }
.lettergrootte:hover:not(:disabled) { background: #33355a; }
.slotvak { display: flex; align-items: center; gap: 14px; background: #262842; color: var(--code-tekst); padding: 26px 18px; min-height: 120px; }
.slotvak p { margin: 0; line-height: 1.55; }
.slot-icoon { font-size: 30px; }
.slotregel { color: #d9d7f3; }
.esc-tip { color: #8f8daa; margin-left: 6px; }
.editor-foot.esc-aan .esc-tip { color: var(--code-mark); font-weight: 700; }

.oefentoetsen { margin-top: 14px; background: #fff; border: 1px solid var(--lijn); border-radius: 12px; padding: 14px; }
.tekenrij { display: flex; flex-wrap: wrap; gap: 6px; }
.tekenchip { position: relative; min-width: 42px; height: 42px; border: 1px solid #d6d5e6; background: #fafaff; border-radius: 9px; font: 700 20px ui-monospace, "Courier New", monospace; color: var(--inkt); }
.tekenchip:hover { border-color: var(--paars); }
.tekenchip.gekozen { background: var(--paars); color: #fff; border-color: var(--paars); }
.tekenchip.gevonden { background: var(--groen-bg); border-color: var(--groen-rand); }
.chip-vink { position: absolute; right: 2px; top: -2px; font-size: 11px; color: var(--groen); }
.tekenrij.groot .tekenchip { min-width: 40px; height: 40px; font-size: 18px; }
.tekenuitleg, .tekencombi { font-size: 14px; color: #45435d; line-height: 1.5; margin: 10px 0; min-height: 21px; }
.tekencombi .combi { font: 800 20px ui-monospace, "Courier New", monospace; color: var(--paars-donker); margin-right: 6px; }
.kb-keuze { font-size: 13px; color: var(--grijs); margin: 8px 0 0; }
.kb-keuze select { font: inherit; padding: 3px 6px; border-radius: 6px; }
.kb { display: flex; flex-direction: column; gap: 3px; background: #e9e8f2; border-radius: 10px; padding: 6px; user-select: none; }
.kb-rij { display: flex; gap: 3px; }
.kb-k { flex: 1 1 0; min-width: 0; position: relative; height: 38px; background: #fff; border: 1px solid #cfcfe0; border-radius: 5px; box-shadow: 0 1px 0 #bdbdd0; font: 12px/1 ui-monospace, "Courier New", monospace; color: #45435d; }
.kb-s { position: absolute; left: 4px; top: 3px; }
.kb-n { position: absolute; left: 4px; bottom: 4px; font-size: 13px; font-weight: 700; }
.kb-a { position: absolute; right: 3px; bottom: 4px; font-size: 10px; color: var(--css); }
.kb-speciaal { display: flex; align-items: center; justify-content: center; font-family: system-ui, sans-serif; font-size: 10px; color: #8a8a9c; background: #f4f4f9; overflow: hidden; }
.kb-aan { background: #ffd86b; border-color: #d99a00; box-shadow: 0 0 0 3px #ffb020; color: #3d2200; z-index: 1; }
.kb-aan[data-aan="n"] .kb-n, .kb-aan[data-aan="s"] .kb-s, .kb-aan[data-aan="a"] .kb-a, .kb-aan[data-aan="as"] .kb-a { font-weight: 900; text-decoration: underline; color: #3d2200; }
.kb-aan::after { content: "★"; position: absolute; right: 2px; top: 1px; font-size: 10px; }
.kb-mod { background: #ffe9ad; border-color: #d99a00; color: #3d2200; font-weight: 800; }
.kb-mod::before { content: "▶ "; }

.btn-terug { background: #fff; border: 1px solid #d6d5e6; border-radius: 9px; padding: 10px 14px; font-weight: 700; color: #45435d; }
.btn-terug:hover { background: #f6f5ff; }
.feedback.oud { color: #6a5a8f; font-weight: 700; }
.terugpaneel { margin-top: 12px; background: #fff; border: 1px solid var(--lijn); border-radius: 12px; padding: 12px 14px; }
.terug-uitleg { margin: 0 0 8px; font-size: 13px; color: var(--grijs); }
.terugoptie { display: block; width: 100%; text-align: left; background: #fafaff; border: 1px solid var(--lijn); border-radius: 8px; padding: 8px 12px; margin-top: 6px; font-size: 14px; color: var(--inkt); }
.terugoptie:hover { border-color: var(--paars); }
.nauitleg { margin-top: 14px; background: var(--groen-bg); border: 1px solid var(--groen-rand); border-radius: 12px; padding: 14px 16px; color: #1c4d33; }
.nauitleg p { margin: 6px 0 12px; line-height: 1.55; }

.btn-js { background: #1f7a4d; box-shadow: 0 3px 0 #155c39; }
.btn-js:hover { background: #155c39; }
.meenemen-reserve { font-size: 14px; color: #45435d; }
.linkknop { background: none; border: 0; padding: 0; color: var(--paars-donker); text-decoration: underline; font-weight: 700; }

.vsblok { margin-top: 14px; }
.vsuitleg { line-height: 1.6; color: #45435d; padding-left: 20px; }
.vslink a { font-weight: 700; color: var(--paars-donker); }
.vslijst { border: 1px solid var(--lijn); border-radius: 12px; padding: 12px 16px; margin: 14px 0 0; background: #fff; }
.vslijst legend { font-weight: 800; font-size: 14px; padding: 0 6px; }
.vsvink { display: flex; gap: 8px; align-items: flex-start; padding: 7px 0; font-size: 15px; cursor: pointer; }
.vsvink input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--groen); }

.indelingkeuze { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 10px; font-size: 14px; }
.indeling { display: flex; align-items: center; gap: 4px; cursor: pointer; }
.kiezer-kaart .teken-vraag { margin: 8px 0 6px; font-weight: 700; }
.tekenkaart { max-width: 820px; max-height: 94vh; overflow: auto; }
.spiekkaart { max-width: 820px; max-height: 90vh; overflow: auto; }
.spiekkaart h3 { font-size: 15px; margin: 18px 0 6px; color: var(--paars-donker); }
.spiekgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 6px 16px; align-items: start; font-size: 14px; }
.spiekgrid code { white-space: pre-wrap; background: #efeefb; color: var(--paars-donker); border-radius: 6px; padding: 3px 7px; font: 13px/1.5 ui-monospace, "Courier New", monospace; overflow-wrap: anywhere; }
.kiezer-kaart .spiek-meer { color: var(--grijs); font-size: 13px; margin-top: 16px; }
.labellijst { list-style: none; margin: 0 0 8px; padding: 0; }
.labellijst li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--lijn); font-size: 14px; }
.labelwaarde { color: var(--grijs); white-space: nowrap; }
.labelwaarde.klaar { color: var(--groen); font-weight: 700; }
.videokaart { max-width: 820px; }
.videokaart iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; margin-bottom: 12px; background: #000; }
.melding { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; max-width: min(640px, 92vw); background: var(--inkt); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 14px; line-height: 1.5; }
.checkframe { position: absolute; left: -12000px; top: 0; height: 900px; border: 0; opacity: 0; pointer-events: none; }
.kiezer-opties { grid-template-columns: repeat(4, 1fr); }
.kiezer-kaart { max-width: 820px; }
.preview-note a { color: var(--paars-donker); font-weight: 700; }

/* Stappen in het menu */
.step-warm .bol, .step-zonder .bol, .step-herstel .bol { font-size: 13px; }
.step-herstel, .step-zonder { font-size: 13px; }
.step-herstel .bol { border-style: dashed; }

/* Per soort stap tonen of verbergen */
body[data-soort="vs"] .result, body[data-soort="vs"] .checkrow, body[data-soort="vs"] .terugpaneel { display: none !important; }
body[data-soort="vs"] .workspace { grid-template-columns: minmax(0, 760px); }
body[data-soort="warm"] #terugknop, body[data-soort="vs"] #terugknop { display: none; }
body:not([data-soort="gary"]) #viewswitch [data-view="voorbeeld"] { display: none; }
body:not([data-soort="gary"]) .result.is-voorbeeld { border-color: var(--lijn); box-shadow: none; }

@media (max-width: 1080px) {
  .kiezer-opties { grid-template-columns: repeat(2, 1fr); }
  .handbalk { flex-basis: 100%; margin-left: 0; font-size: 18px; }
}
@media (max-width: 600px) {
  .kiezer-opties { grid-template-columns: 1fr; }
  .spiekgrid { grid-template-columns: 1fr; }
  .kb-k { height: 30px; font-size: 10px; }
  .kb-n { font-size: 11px; }
}

.files .tab { padding: 10px 10px; }
.files .btn-copy { margin: 6px; }
