:root {
  --paper: #f7f1f1;
  --ink: #252621;
  --lime: #c2f15e;
  --blue: #d9e8f3;
  --lilac: #e7dcfa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.55 Arial,Helvetica,sans-serif;
}

button,input {
  font: inherit;
}

button {
  cursor: pointer;
  background: var(--ink);
  color: white;
  border: 1.5px solid var(--ink);
  border-radius: 30px;
  font-weight: 800;
  padding: 10px 17px;
  transition: transform .4s cubic-bezier(.2,1.7,.4,1),background .2s;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--lime);
  color: var(--ink);
}

button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

button.secondary,button.subtle {
  background: transparent;
  color: var(--ink);
}

a {
  color: inherit;
  font-weight: 800;
}

h1,h2,h3 {
  line-height: 1.05;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(43px,5vw,76px);
  margin: 12px 0;
}

h1 span {
  color: #82a92d;
}

h2 {
  font-size: 30px;
  margin: 12px 0;
}

h3 {
  font-size: 19px;
  margin: 20px 0 10px;
}

p {
  max-width: 75ch;
}

small,.eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.shell {
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 100vh;
}

aside {
  position: sticky;
  top: 0;
  height: 100vh;
  background: white;
  border-right: 1px solid #222;
  display: flex;
  flex-direction: column;
  padding: 26px 20px;
  gap: 15px;
}

.brand img {
  width: 110px;
}

aside nav {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}

aside nav button {
  border: 0;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border-radius: 12px;
  padding: 13px;
}

aside nav button.active {
  background: var(--lime);
}

.aside-bottom {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.workspace {
  padding: 25px 5%;
  min-width: 0;
}

.workspace>header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.xp-chip {
  border: 1.5px solid;
  border-radius: 30px;
  padding: 7px 15px;
  background: var(--yellow,#f6ded7);
  font-weight: 900;
}

.welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 35px;
  background: var(--lime);
  border: 1.5px solid;
  border-radius: 24px;
}

.welcome img {
  width: 25%;
  max-width: 170px;
  transform: rotate(10deg);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(175px,1fr));
  gap: 14px;
  margin: 22px 0;
}

.dash-card,.panel {
  background: white;
  border: 1.5px solid;
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
}

.dash-card:nth-child(2) {
  background: var(--blue);
}

.dash-card:nth-child(3) {
  background: var(--lilac);
}

.dash-card:nth-child(4) {
  background: #f6ded7;
}

.dash-card strong {
  font-size: 30px;
  letter-spacing: -.05em;
}

.bar {
  height: 9px;
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
  margin: 10px 0;
}

.bar i {
  height: 100%;
  display: block;
  background: #91b63e;
}

.modules,.toolrow {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin: 18px 0;
}

.modules button {
  background: white;
  color: var(--ink);
}

.modules button.active {
  background: var(--lime);
}

.lesson-grid {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr);
  gap: 15px;
}

.lesson-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: white;
  color: var(--ink);
  border: 0;
  border-radius: 9px;
  padding: 11px;
}

.lesson-list button.active {
  background: var(--lime);
}

.lesson-list button.done {
  color: #4c6e1d;
}

#lesson-example {
  background: #f1f0e9;
  border-radius: 10px;
  padding: 13px;
  overflow: auto;
  white-space: pre-wrap;
}

.CodeMirror {
  height: 280px;
  border-radius: 12px;
  font: 14px/1.55 monospace;
}

.view[hidden] {
  display: none;
}

#source+.CodeMirror {
  height: 490px;
}

iframe {
  width: 100%;
  min-height: 175px;
  background: white;
  border: 1px solid #bbb;
  border-radius: 10px;
}

#site-preview {
  height: 520px;
}

.tip {
  background: #eaf8ca;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
}

.tip p {
  margin: 6px 0;
}

.result {
  padding: 10px 12px;
  border-radius: 9px;
  margin: 7px 0;
  background: #f6ded7;
}

.result.pass {
  background: #eaf8ca;
}

.terms {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
  gap: 12px;
  margin-top: 20px;
}

.term {
  border: 1px solid #ccc;
  background: white;
  border-radius: 12px;
  padding: 15px;
}

.term code {
  font-weight: bold;
  font-size: 15px;
}

input:not([type=hidden]) {
  padding: 12px;
  border: 1px solid;
  border-radius: 10px;
  background: white;
  max-width: 100%;
}

.login {
  max-width: 480px;
  margin: 8vh auto;
  padding: 35px;
  background: white;
  border: 2px solid;
  border-radius: 25px;
  box-shadow: 8px 8px 0 var(--lime);
}

.login img {
  display: block;
  width: 125px;
  margin-bottom: 25px;
}

.login form {
  display: grid;
  gap: 12px;
}

.login h1 {
  font-size: 65px;
}

#media-cards input {
  width: 100%;
  margin: 12px 0;
}

.status {
  font-size: 12px;
}

@media (max-width:850px) {
  .shell {
    grid-template-columns: 1fr;
  }

  aside {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid;
    padding: 14px;
    gap: 5px;
  }

  aside nav {
    display: flex;
    overflow: auto;
    margin: 0;
  }

  aside nav button {
    white-space: nowrap;
  }

  .aside-bottom {
    display: none;
  }

  .workspace {
    padding: 20px;
  }

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

  .lesson-list {
    display: flex;
    overflow: auto;
  }

  .lesson-list button {
    min-width: 140px;
  }

  .welcome {
    padding: 20px;
  }

  .login {
    margin: 25px 15px;
  }

}

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

}

/* De cursus is uitgebreid: de inhoudsopgave blijft overzichtelijk en scrollbaar. */
.lesson-list {
  max-height: 70vh;
  overflow-y: auto;
  align-self: start;
}
#channel-id {
  width: min(100%, 440px);
  margin: 8px 8px 8px 0;
}

/* LESZOEKER — zoek snel tussen de vele levels. */
.lesson-sidebar { align-self: start; min-width: 0; }
.lesson-sidebar label { display: block; font-weight: 800; margin-bottom: 8px; }
#lesson-search { width: 100%; padding: 10px; border: 1px solid #aaa; border-radius: 10px; margin-bottom: 12px; }
.lesson-list [hidden] { display: none !important; }


/* Dezelfde warme papierkleur, ronde vormen en rustige uitstraling als de frontend. */
:root { --paper: #f7f1f1; --ink: #21201e; --blue: #d9e8f3; --lime: #c2f15e; --yellow: #e98363; }
body { background: var(--paper); }
aside { background: #eae1e2; border: 0; border-radius: 0 28px 28px 0; }
aside nav button { border-radius: 40px; }
aside nav button.active { background: var(--blue); }
.panel, .dash-card { border: 0; border-radius: 24px; }
.welcome { background: var(--blue); border: 0; border-radius: 32px; }
button { border: 0; }
button.secondary, button.subtle { background: #ddd2d4; }
.course-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.course-heading h1 { margin-right: auto; }
.practice-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.practice-code, .practice-output { min-width: 0; }
.practice-output iframe { min-height: 240px; }
/* Fullscreen en de fallback werken ook op iOS, waar requestFullscreen niet altijd bestaat. */
.course-focus { overflow: hidden; }
.course-focus #course, #course:fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: auto;
  width: 100%;
  height: 100%;
  padding: clamp(16px,3vw,48px);
  background: var(--paper);
  color: var(--ink);
}
.course-focus #course .lesson-grid { grid-template-columns: 245px minmax(0,1fr); }
.course-focus #course .lesson-sidebar { position: sticky; top: 0; }
.course-focus #course .practice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.course-focus #course .CodeMirror { height: clamp(300px,50vh,650px); }
.course-focus #course #output { height: clamp(300px,50vh,650px); }
@media (max-width: 1000px) {
  .course-focus #course .lesson-grid, .course-focus #course .practice-grid { grid-template-columns: minmax(0,1fr); }
  .course-focus #course .lesson-sidebar { position: static; }
  .course-focus #course .lesson-list { display: flex; max-height: 120px; overflow: auto; }
  .course-focus #course .lesson-list button { min-width: 160px; }
}

/* In focusmodus is er meer ruimte voor de code en output. */
.course-focus #course .course-heading h1 { font-size: clamp(32px,4vw,54px); }
.course-focus #course .course-heading + p { margin-block: 6px 12px; }
.course-focus #course #lesson-example { margin-block: 8px; }
.course-focus #course .practice-grid h3 { margin-top: 10px; }

/* MOM-PALET — dezelfde rustige kleurverloop als de publieke website. */
body, .course-focus #course, #course:fullscreen {
  background: linear-gradient(90deg, #d9e8f3 0%, #eedfdd 84%);
}
aside { background: #f7f1f1; }
.welcome { background: #eaf8ca; }
.panel, .dash-card { background: #f7f1f1; }
aside nav button.active { background: #c2f15e; }
/* Laat een volle leslijst of code-editor normaal scrollen aan de randen. */
.course-focus #course { overscroll-behavior: auto; }
.lesson-list, .CodeMirror-scroll { overscroll-behavior: auto; }

/* CodeMirror meet de hoogte van iedere regel zelf. Geen algemene pre-marges,
   padding of box-sizing op de interne regels en meetelementen. */
.CodeMirror, .CodeMirror pre, .CodeMirror-linenumber {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: normal;
  font-variant-ligatures: none;
}
.CodeMirror pre.CodeMirror-line, .CodeMirror pre.CodeMirror-line-like {
  margin: 0;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-sizing: content-box;
}
.CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutters, .CodeMirror-gutter, .CodeMirror-gutter-wrapper, .CodeMirror-gutter-elt, .CodeMirror-linenumber {
  box-sizing: content-box;
}
.CodeMirror-linenumber { white-space: nowrap; }
#course-save-status { font-size: 12px; font-weight: 700; margin: 0; }

/* LESUITLEG: de bouwstenen staan apart van de opdracht. */
.lesson-guide { margin: 18px 0 25px; padding: 18px; border-radius: 16px; background: #e7dcfa66; }
.lesson-guide h3 { margin-top: 0; }
.lesson-guide dl { display: grid; gap: 8px; margin: 14px 0; }
.lesson-guide dl > div { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2.5fr); gap: 12px; background: #fff9; padding: 11px; border-radius: 10px; }
.lesson-guide dt { font-weight: 700; overflow-wrap: anywhere; }
.lesson-guide dd { margin: 0; line-height: 1.5; }
.lesson-think { background: #eaf8ca; border-radius: 12px; padding: 12px; }
.lesson-think p { margin-bottom: 0; }
@media(max-width: 620px) { .lesson-guide dl > div { grid-template-columns: 1fr; gap: 4px; } }
/* CodeMirror moet dezelfde lettermaat hebben in tekst, meetlaag en gutter. */
.CodeMirror pre, .CodeMirror-linenumber { line-height: inherit; }
.CodeMirror { line-height: 1.55; }


/* V9 — visuele lessen en live feedback. Geen invloed op CodeMirror-regelhoogte. */
.coach-kicker {display:block;font-size:11px;letter-spacing:.11em;font-weight:800;color:#53416e;margin-bottom:8px;}
.coach-intro,.coach-demo,.coach-quiz {padding:clamp(12px,2vw,22px);border-radius:18px;margin:12px 0;background:#fff;}
.coach-intro h3,.coach-demo h3,.coach-quiz h3 {margin:0 0 9px;line-height:1.25;}
.coach-intro h4 {margin:14px 0 4px;}
.coach-intro ol {padding-left:23px;margin-bottom:0;}
.coach-intro li {padding:4px 0;line-height:1.65;}
.coach-diagram {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;background:#d9e8f3;border-radius:12px;padding:12px;margin:14px 0;align-items:center;}
.coach-diagram code {padding:7px;background:#282a36;color:#f8f8f2;border-radius:6px;overflow-wrap:anywhere;white-space:normal;}
.coach-diagram span {font-size:13px;font-weight:700;}
.lesson-visual {display:block;width:100%;height:270px;border:1px solid #ded4d5;border-radius:12px;background:white;}
.coach-quiz {background:#eaf8ca;}
.coach-options {display:flex;flex-wrap:wrap;gap:8px;}
.coach-options button {white-space:normal;text-align:left;max-width:100%;}
.coach-answer {font-weight:700;margin-bottom:0;}
.coach-answer.correct {color:#235719;}.coach-answer.retry {color:#804b00;}
.live-coach {padding:12px;border-radius:14px;background:#fff;margin-top:10px;color:#21201e;font-size:13px;overflow-wrap:anywhere;}
.live-coach > strong {font-size:15px;}
.coach-context {margin:6px 0 9px;line-height:1.5;}
.coach-ok {background:#eaf8ca;border-radius:8px;padding:8px;margin:0;}
.coach-finding {border-radius:9px;background:#ffede6;padding:10px;margin-top:8px;border-left:3px solid #d0583c;}
.coach-finding.tip {background:#fff5d9;border-color:#d6a13b;}
.coach-finding button {font-size:11px;padding:5px 9px;background:#432c28;color:#fff;}
.coach-finding.tip button {background:#76541f;}
.coach-finding p {font-weight:700;margin:7px 0 3px;}
.coach-finding small {display:block;font-size:12px;line-height:1.5;}
.CodeMirror .coach-line-error {background:rgba(255,85,85,.17);}
.CodeMirror .coach-line-tip {background:rgba(255,210,100,.10);}
@media(max-width:500px){.coach-options button{width:100%;}.lesson-visual{height:240px;}.coach-diagram{grid-template-columns:1fr;gap:4px;}}

/* V10 — visuele uitlegkaarten. Buiten de editor, dus geen veranderde code-uitlijning. */
.vh-editor-help { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; color:#53416e; font-size:12px; font-weight:700; margin:8px 0; }
.vh-editor-help button { font-size:12px; padding:7px 12px; }
#lesson-example .vh-term { text-decoration:underline dotted; text-underline-offset:4px; cursor:help; }
#lesson-example .vh-term:focus-visible { outline:2px solid #c2f15e; }
.visual-help { position:fixed; z-index:10000; width:350px; max-width:calc(100vw - 20px); overflow:auto; overscroll-behavior:contain; padding:16px; border-radius:18px; background:#f7f1f1; border:1px solid #21201e; box-shadow:0 12px 40px #21201e35; color:#21201e; font:14px/1.5 Arial,sans-serif; }
.visual-help[hidden] {display:none!important;}
.visual-help .vh-heading {display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:10px; letter-spacing:.07em; font-weight:800; color:#53416e;}
.visual-help .vh-close {border:0; background:#e7dcfa; color:#21201e; width:32px; height:32px; border-radius:50%; padding:0; font:24px/1 Arial,sans-serif;}
.visual-help h3 {font-size:24px; line-height:1.2; margin:5px 0 8px; letter-spacing:-.03em; overflow-wrap:anywhere;}
.visual-help p {margin:8px 0; font-size:13px;}
.visual-help .vh-code {margin:12px 0; padding:10px; border-radius:8px; background:#282a36; color:#f8f8f2; font:12px/1.5 monospace; white-space:pre-wrap; overflow-wrap:anywhere;}
.visual-help .vh-preview {background:#fff; border-radius:12px; padding:10px;}
.visual-help .vh-label {display:block; font-size:10px; font-weight:800; letter-spacing:.09em; margin-bottom:8px;}
.visual-help .vh-page {height:148px; display:flex; flex-direction:column; gap:4px;}
.visual-help .vh-part {border:1px solid #bbb; border-radius:5px; padding:5px; background:#f2f2f2; display:flex; align-items:center; justify-content:center; font-size:11px; text-align:center;}
.visual-help .vh-part.chosen {background:#c2f15e; border:2px solid #5d8220; font-weight:800;}
.visual-help .vh-block {border-radius:8px; background:#edf1f4; padding:9px; margin:4px 0; overflow-wrap:anywhere;}
.visual-help .vh-tile {display:grid; place-items:center; min-height:32px; padding:5px 10px; background:#b5ddff; border-radius:5px;}
.visual-help .vh-preview button {background:#c2f15e;color:#21201e;padding:7px 12px;border:1px solid #21201e;border-radius:20px;font-size:12px;margin:4px 0;}
.visual-help input,.visual-help textarea {max-width:100%;font-size:13px;padding:6px;}
.visual-help .vh-tip {background:#eaf8ca; border-radius:8px;padding:8px; margin-bottom:0;}
.visual-help .vh-elastic {transition:transform .3s cubic-bezier(.2,1.5,.4,1);}
.visual-help .vh-elastic:hover,.visual-help .vh-elastic:active {transform:scale(1.1);}
.visual-help .vh-bouncer {display:inline-block;font-size:28px;color:#8340ee;}
.visual-help td,.visual-help th {border:1px solid #999;padding:3px 8px;}
@media(prefers-reduced-motion:reduce){.visual-help .vh-elastic{transition:none;}}


/* V15 — Lesvalidatie. Deze stijlen raken de interne CodeMirror-layout niet. */
.lesson-validation {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    margin: 12px 0;
    border-radius: 16px;
    color: #21201e;
    overflow-wrap: anywhere;
}
.lesson-validation-success { background: #eaf8ca; border: 1px solid #a6ca55; }
.lesson-validation-retry { background: #f6ded7; border: 1px solid #e7b4a4; }
.lesson-validation strong { font-size: 1.05rem; }
.lesson-validation p { margin: 5px 0 0; font-size: .92rem; line-height: 1.45; }
.lesson-validation-symbol {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center; background: #c2f15e;
}
.lesson-validation-symbol svg { width: 24px; height: 24px; }
/* De confetti zweeft boven de cursus, ook in native fullscreen. */
.lesson-celebration {
    position: fixed; inset: 0; z-index: 2147483000; display: grid;
    place-items: center; pointer-events: none; overflow: hidden;
}
.lesson-celebration-card {
    position: relative; display: flex; flex-direction: column; align-items: center;
    gap: 8px; text-align: center; width: min(320px, calc(100% - 40px));
    padding: 25px 18px; box-sizing: border-box; background: #f7f1f1;
    color: #21201e; border: 2px solid #21201e; border-radius: 26px;
    box-shadow: 0 8px 0 #21201e, 0 16px 35px #21201e25;
}
.lesson-celebration-kicker { font-size: 11px; letter-spacing: .12em; font-weight: 800; }
.lesson-celebration-card strong { font-size: clamp(26px, 6vw, 40px); letter-spacing: -.04em; line-height: 1; }
.lesson-celebration-title { font-size: 14px; max-width: 100%; overflow-wrap: anywhere; }
.lesson-celebration-xp { display: inline-block; background: #c2f15e; padding: 8px 20px; border-radius: 30px; font-size: 24px; font-weight: 900; }
.lesson-trophy { display: block; width: 54px; height: 54px; color: #8340ee; }
.lesson-confetti { position: absolute; inset: 0; overflow: hidden; }
.lesson-confetti i { position: absolute; top: 50%; left: 50%; width: 9px; height: 13px; display: block; }
.lesson-celebration-fallback .lesson-confetti i { animation: lesson-confetti-burst 1.7s ease-out both; }
.lesson-celebration-fallback .lesson-celebration-card { animation: lesson-card-pop .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes lesson-confetti-burst {
    from { transform: translate(0,0) scale(.3); opacity: 1; }
    65% { opacity: 1; }
    to { transform: translate(var(--burst-x),var(--burst-y)) rotate(var(--burst-r)); opacity: 0; }
}
@keyframes lesson-card-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .lesson-celebration *, .lesson-validation { animation: none !important; transition: none !important; }
    .lesson-confetti { display: none; }
}


/* V18 — de leesbare lesuitleg. Dracula had alleen een donkere achtergrond in
   de echte editor. Het losse voorbeeld kreeg lichte code op een lichte kaart. */
#course .lesson-grid > .panel, #course .lesson-grid > *, #course .coach-intro, #course .coach-demo, #course .lesson-guide { min-width:0; max-width:100%; }
#lesson-example.cm-s-dracula {
    display:block; background:#282a36; color:#f8f8f2;
    font: 15px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
    padding:18px; border:1px solid #393b48; border-radius:12px;
    white-space:pre-wrap; overflow-wrap:anywhere; word-break:normal; tab-size:2;
    max-width:100%; max-height:none; overflow:auto; -webkit-text-size-adjust:100%;
}
#lesson-example.cm-s-dracula span.cm-comment { color:#b9c2eb; }
#lesson-example.cm-s-dracula span.cm-tag, #lesson-example.cm-s-dracula span.cm-keyword, #lesson-example.cm-s-dracula span.cm-operator { color:#ff9ed8; }
#lesson-example.cm-s-dracula span.cm-attribute, #lesson-example.cm-s-dracula span.cm-def, #lesson-example.cm-s-dracula span.cm-variable { color:#8ef6a5; }
#lesson-example.cm-s-dracula span.cm-string, #lesson-example.cm-s-dracula span.cm-string-2 { color:#f1fa8c; }
#lesson-example.cm-s-dracula span.cm-number, #lesson-example.cm-s-dracula span.cm-atom { color:#d7b6ff; }
#lesson-example.cm-s-dracula span.cm-bracket { color:#f8f8f2; }
#lesson-explanation, #course .lesson-guide p, #course .lesson-guide li, #course .lesson-guide dd { font-size:clamp(15px,1.15vw,18px); line-height:1.7; overflow-wrap:anywhere; }
#course .lesson-guide dt { color:#21201e; font-size:15px; }
#course .coach-options button { line-height:1.55; }
#course .lesson-visual { height:clamp(330px,48vh,520px); min-height:330px; max-width:100%; }
#course .lesson-visual.is-expanded { height: max(550px,72vh); }
.v18-example-tools { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:10px 0; }
.v18-example-tools button { font-size:13px; padding:9px 13px; }
.v18-example-tools span { font-size:12px; color:#4b4950; }
.v18-avatar-settings { margin-top:16px; }
.v18-avatar-settings label { display:flex; gap:10px; align-items:center; font-weight:700; }
.v18-avatar-settings input[type=checkbox] { width:20px; height:20px; accent-color:#789f25; }
@media(max-width:620px) {
    #lesson-example.cm-s-dracula { font-size:14px; padding:12px; line-height:1.65; }
    #course .lesson-guide { padding:12px; }
    #course .coach-intro, #course .coach-demo, #course .coach-quiz { padding:12px; }
}


/* V24 — HTML-bekers, heldere opdrachten en visueel woordenboek. */
.v24-medals { margin: 22px 0; }
.v24-medal-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.v24-medal { display:flex; flex-direction:column; gap:8px; align-items:center; text-align:center; min-width:0; border-radius:18px; background:#f6f3ef; padding:16px 10px; }
.v24-medal svg { width:76px; height:76px; opacity:.5; filter:grayscale(.45); }
.v24-medal.earned { background:color-mix(in srgb,var(--medal) 18%,white); }
.v24-medal.earned svg { opacity:1; filter:none; animation:v24-trophy .6s cubic-bezier(.35,1.75,.6,1) both; }
.v24-medal.earned:hover svg { animation:v24-trophy .6s cubic-bezier(.35,1.75,.6,1) both; }
.v24-medal .bar { width:100%; }
.v24-medal .bar i { background:var(--medal); }
.v24-medal button { margin-top:auto; font-size:12px; }
.v24-medal small,.v24-medal span { font-size:12px; overflow-wrap:anywhere; }
.v24-celebration-medal svg { width:100px;height:100px; }
@keyframes v24-trophy { from { transform:scale(.75) rotate(-8deg); } to { transform:scale(1) rotate(0); } }
#lesson-task { display:block; line-height:1.55; }
.v24-task-goal { font-size:1.05rem; font-weight:600; }
.v24-task-steps { padding-left:1.4em; display:grid;gap:10px; }
.v24-task-steps li small { display:block; font-size:.85rem; font-weight:400; margin-top:3px; color:#52565a; }
.v24-task-check { padding:12px; background:#e5efda; border-radius:12px; }
#terms.v24-dictionary { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;align-items:start; }
.v24-dictionary-count { grid-column:1/-1; margin:0; }
.v24-term { padding:18px; background:#fff; border:1px solid #e6e2de; border-radius:18px; min-width:0; }
.v24-term-open { width:100%;text-align:left;background:#e6efd3;color:#242424;font:600 16px/1.3 monospace;overflow-wrap:anywhere; }
.v24-term-detail pre { background:#282a36;color:#f8f8f2;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 monospace;padding:12px;border-radius:10px; }
.v24-term-detail small { display:block; margin-top:10px; font-weight:700; }
.v24-term-detail[hidden] { display:none!important; }
@media(max-width:850px){.v24-medal-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(prefers-reduced-motion:reduce){.v24-medal.earned svg{animation:none;}}
