/* ============================================================
   Game Design · Beeldacademie Lier
   Licht, zoals de schoolsite: wit, zwart, ijsblauw en roze.
   Geel is het accent uit het logo en blijft klein: pins,
   schaduwranden en kleine feestmomenten.
   ============================================================ */

:root {
  --bg: #f6f8f9;
  --bg-2: #eef2f4;
  --card: #ffffff;
  --card-2: #fbfcfd;
  --line: rgba(22, 34, 46, 0.10);
  --line-2: rgba(22, 34, 46, 0.16);
  --text: #16181d;
  --dim: #5a6472;
  --faint: #8b94a1;

  --blue: #c0e0e8;        /* pastel uit het logo */
  --pink: #e8c0d8;        /* pastel uit het logo */
  --yellow: #f0e818;      /* signaalgeel, spaarzaam */
  --blue-deep: #2e7d98;   /* leesbare blauwvariant voor links en states */
  --pink-deep: #b4548c;   /* leesbare rozevariant voor accenten */
  --ink: #16181d;         /* knoppenzwart, zoals de logotekst */
  --ok: #1d8a52;
  --ok-bg: rgba(29, 138, 82, 0.09);
  --err: #cc3350;
  --err-bg: rgba(204, 51, 80, 0.08);

  --code-bg: #101217;     /* codeblokken blijven donker, als een scherm */
  --code-line: rgba(255, 255, 255, 0.09);

  --r: 16px;
  --r-sm: 10px;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow: 0 14px 40px rgba(23, 36, 52, 0.10);
  --shadow-sm: 0 3px 14px rgba(23, 36, 52, 0.06);
  --speed: 180ms;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(192, 224, 232, .65); }

a { color: var(--blue-deep); text-decoration: none; }
a:hover { color: #1e657d; }

:focus-visible { outline: 2px solid var(--blue-deep); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(22, 34, 46, .18); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(22, 34, 46, .3); }

/* ------------------------------------------------ background blobs */

.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 46% 54% 52% 48% / 55% 46% 54% 45%; filter: blur(70px); opacity: .5; will-change: transform; }
.blob-blue { width: 620px; height: 560px; background: var(--blue); top: -240px; right: -160px; animation: drift 46s var(--ease) infinite alternate; }
.blob-pink { width: 560px; height: 520px; background: var(--pink); bottom: -260px; left: -180px; opacity: .4; animation: drift 52s var(--ease) infinite alternate-reverse; }
.blob-yellow { width: 300px; height: 280px; background: var(--yellow); opacity: .13; top: 44%; left: 58%; animation: drift 60s var(--ease) infinite alternate; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(22, 34, 46, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(22, 34, 46, .028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(60px, 40px) rotate(12deg) scale(1.08); }
  100% { transform: translate(-40px, 70px) rotate(-8deg) scale(.96); }
}

/* ------------------------------------------------ reveal animation */

.reveal { animation: fade-up .55s var(--ease) both; animation-delay: calc(var(--stagger, 0) * 60ms); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------ topbar */

.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(255, 255, 255, .84); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 62px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 13px; color: var(--text); }
.brand-logo { height: 36px; width: auto; transition: transform var(--speed) var(--ease); }
.brand:hover .brand-logo { transform: rotate(-4deg) scale(1.05); }
.brand-divider { width: 1px; height: 22px; background: var(--line-2); }
.brand-name { font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .14em; color: var(--text); }
.brand-name b { font-weight: 700; color: var(--pink-deep); }

.topnav { display: flex; gap: 4px; margin-right: auto; }
.topnav-link { padding: 7px 14px; border-radius: 99px; color: var(--dim); font-weight: 500; font-size: 14px; transition: all var(--speed) var(--ease); }
.topnav-link:hover { color: var(--text); background: rgba(22, 34, 46, .05); }
.topnav-link.active { color: var(--ink); background: var(--blue); font-weight: 600; }

.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--dim); cursor: pointer; font: inherit; font-size: 13px; transition: all var(--speed) var(--ease); }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(22, 34, 46, .04); transform: translateY(-1px); }
.icon-btn.danger:hover { color: var(--err); border-color: rgba(204, 51, 80, .4); background: var(--err-bg); }
.search-kbd { font-family: var(--mono); font-size: 11px; color: var(--faint); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; background: var(--card); }
.lang-btn span { font-weight: 600; letter-spacing: .06em; }

.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 9px; background: transparent; border: 1px solid transparent; padding: 5px 8px 5px 5px; border-radius: 99px; color: var(--text); cursor: pointer; font: inherit; transition: all var(--speed) var(--ease); }
.user-btn:hover { background: rgba(22, 34, 46, .05); border-color: var(--line); }
.user-name { font-weight: 500; font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--pink), var(--blue)); color: var(--ink); font-weight: 700; font-size: 13px; font-family: var(--display); flex: none; }
.avatar-sm { width: 26px; height: 26px; font-size: 12px; }
.avatar-lg { width: 52px; height: 52px; font-size: 22px; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); animation: pop-in .16s var(--ease); z-index: 60; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu-user { padding: 10px 12px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-user span { color: var(--faint); font-size: 12.5px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; background: none; border: none; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.menu-item:hover { background: rgba(22, 34, 46, .05); color: var(--text); }
.menu-danger:hover { background: var(--err-bg); color: var(--err); }

/* ------------------------------------------------ page & footer */

.page { min-height: calc(100vh - 62px); }
.container { max-width: 1240px; margin: 0 auto; padding: 34px 24px 90px; }
.container-narrow { max-width: 720px; }
.footer { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 26px; color: var(--faint); font-size: 13px; border-top: 1px solid var(--line); background: var(--card); }
.footer-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--pink-deep); }

.page-title { font-family: var(--display); font-size: 30px; margin: 0 0 22px; }
.muted { color: var(--faint); }
.accent { color: var(--pink-deep); }

/* ------------------------------------------------ buttons */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font: 600 14px var(--body); cursor: pointer; border: 1px solid transparent; transition: all var(--speed) var(--ease); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #ffffff; }
.btn-primary:hover { background: #23262e; color: #ffffff; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--yellow); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: rgba(22, 34, 46, .3); background: var(--card-2); color: var(--text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-danger { background: var(--err-bg); color: var(--err); border-color: rgba(204, 51, 80, .3); }
.btn-danger:hover { background: rgba(204, 51, 80, .14); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn-arrow { transition: transform var(--speed) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn kbd { font-family: var(--mono); font-size: 10.5px; background: rgba(255, 255, 255, .2); padding: 2px 5px; border-radius: 4px; font-weight: 500; }
.btn-ghost kbd { background: rgba(22, 34, 46, .07); }

/* ------------------------------------------------ cards & chips */

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.card-title { font-family: var(--display); font-size: 17px; margin: 0 0 14px; }

.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3.5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; }
.chip-cleared { background: rgba(232, 192, 216, .5); color: #93336e; }
.chip-busy { background: rgba(192, 224, 232, .55); color: #1e657d; }
.chip-new { background: rgba(22, 34, 46, .06); color: var(--dim); }
.chip-draft { background: rgba(232, 192, 216, .45); color: var(--pink-deep); }
.chip-group { background: rgba(192, 224, 232, .5); color: #1e657d; }
.chip-pinned { background: var(--yellow); color: var(--ink); }
.chip-muted { background: rgba(22, 34, 46, .05); color: var(--faint); }
.chip-new-sub { background: var(--yellow); color: var(--ink); }
.chip-doc { background: rgba(232, 192, 216, .45); color: var(--pink-deep); }

/* ------------------------------------------------ progress ring */

.ring { position: relative; width: var(--ring-size); height: var(--ring-size); flex: none; }
.ring-track { stroke: rgba(22, 34, 46, .1); }
.ring-value { stroke: var(--blue-deep); transition: stroke-dashoffset .8s var(--ease); }
.ring[data-pct="100"] .ring-value { stroke: var(--pink-deep); }
.ring[data-pct="0"] .ring-label { color: var(--faint); }
.ring-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: calc(var(--ring-size) * .28); }
.ring-label small { font-size: .6em; opacity: .7; margin-left: 1px; }

.mini-progress { width: 110px; height: 7px; background: rgba(22, 34, 46, .08); border-radius: 99px; overflow: hidden; }
.mini-progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-deep), var(--pink-deep)); transition: width .6s var(--ease); }

/* ------------------------------------------------ auth */

.body-auth { overflow: hidden; background: var(--card); }
.auth-wrap { display: grid; grid-template-columns: minmax(340px, 44%) 1fr; min-height: 100vh; }
.auth-side { position: relative; overflow: hidden; background: linear-gradient(160deg, #eaf5f8, #fdf3f9 70%, #fdfce9); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.auth-side-blobs { position: absolute; inset: 0; }
.auth-side-blobs .blob { opacity: .55; }
.auth-side-blobs .blob-blue { width: 400px; height: 380px; top: -120px; right: -80px; }
.auth-side-blobs .blob-pink { width: 380px; height: 360px; bottom: -100px; left: -90px; }
.auth-side-blobs .blob-yellow { width: 190px; height: 180px; opacity: .2; top: 50%; left: 42%; }
.auth-logo { width: min(320px, 70%); position: relative; z-index: 1; animation: fade-up .7s var(--ease) both; }
.auth-side-bottom { position: relative; z-index: 1; }
.auth-side-title { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); letter-spacing: .1em; margin: 0 0 6px; color: var(--ink); animation: fade-up .7s var(--ease) .15s both; }
.auth-side-title b { color: var(--pink-deep); }
.auth-side-sub { color: var(--dim); margin: 0; animation: fade-up .7s var(--ease) .25s both; }
.auth-main { display: flex; align-items: center; justify-content: center; position: relative; padding: 40px 24px; background: var(--card); }
.auth-lang { position: absolute; top: 24px; right: 24px; }
.auth-card { width: min(420px, 100%); animation: fade-up .6s var(--ease) .1s both; }
.auth-logo-mobile { display: none; height: 54px; margin-bottom: 22px; }
.auth-title { font-family: var(--display); font-size: 30px; margin: 0 0 8px; }
.auth-sub { color: var(--dim); margin: 0 0 26px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-alt { margin-top: 22px; font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--dim); letter-spacing: .02em; }
.field small { color: var(--faint); font-size: 12px; }
.field input, .field select, .field textarea, .filter-bar select, .inline-form input, .inline-form select {
  background: var(--card); border: 1px solid var(--line-2); color: var(--text); border-radius: 11px;
  padding: 11px 14px; font: inherit; font-size: 14.5px; transition: border-color var(--speed), box-shadow var(--speed);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(46, 125, 152, .14); }
.field-inline { flex-direction: row; align-items: center; gap: 10px; }
.input-code { font-family: var(--mono); letter-spacing: .35em; text-transform: uppercase; font-size: 17px !important; text-align: center; }
.form-error { background: var(--err-bg); border: 1px solid rgba(204, 51, 80, .35); color: var(--err); border-radius: 11px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; }
.form-ok { background: var(--ok-bg); border: 1px solid rgba(29, 138, 82, .3); color: var(--ok); border-radius: 11px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; }
.shake { animation: shake .45s var(--ease); }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }

/* ------------------------------------------------ student home */

.home-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.home-greeting { font-family: var(--display); font-size: clamp(28px, 4vw, 38px); margin: 0; }
.accent-underline { position: relative; white-space: nowrap; }
.accent-underline::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 10px; background: rgba(192, 224, 232, .8); z-index: -1; border-radius: 3px; transform: scaleX(0); transform-origin: left; animation: underline-in .6s var(--ease) .4s forwards; }
@keyframes underline-in { to { transform: scaleX(1); } }
.home-sub { color: var(--dim); margin: 6px 0 0; }

.resume-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(120deg, rgba(192, 224, 232, .38), rgba(232, 192, 216, .3) 60%, rgba(240, 232, 24, .12)); border: 1px solid var(--line-2); border-radius: 20px; padding: 30px 34px; margin-bottom: 40px; color: var(--text); position: relative; overflow: hidden; transition: all var(--speed) var(--ease); }
.resume-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-100%); transition: transform .9s var(--ease); }
.resume-card:hover { border-color: rgba(46, 125, 152, .4); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.resume-card:hover::before { transform: translateX(100%); }
.resume-kicker { color: #1e657d; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.pin-flag { color: var(--ink); background: var(--yellow); padding: 2px 9px; border-radius: 99px; display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.resume-title { font-family: var(--display); font-size: clamp(22px, 3vw, 30px); margin: 8px 0 6px; }
.resume-summary { color: var(--dim); margin: 0 0 18px; max-width: 60ch; }
.resume-ring { flex: none; }

.chapter { margin-bottom: 44px; }
.chapter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; border-bottom: 2px solid rgba(22, 34, 46, .12); padding-bottom: 10px; }
.chapter-title { font-family: var(--display); font-size: 20px; margin: 0; }
.chapter-sub { color: var(--faint); font-size: 13.5px; margin: 3px 0 0; }
.chapter-count { color: var(--faint); font-size: 13px; font-family: var(--mono); }

.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 16px; }
.lesson-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--text); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--speed) var(--ease); animation: fade-up .5s var(--ease) both; animation-delay: calc(var(--stagger, 0) * 50ms); }
.lesson-card:hover { transform: translateY(-3px); border-color: rgba(46, 125, 152, .45); box-shadow: var(--shadow); color: var(--text); }
.lesson-card.is-cleared { border-color: rgba(180, 84, 140, .4); }
.lesson-card-top { display: flex; align-items: center; justify-content: space-between; }
.lesson-num { font-family: var(--mono); font-size: 13px; color: var(--dim); background: rgba(192, 224, 232, .45); border-radius: 8px; padding: 4px 8px; }
.lesson-card-title { font-family: var(--display); font-size: 17px; margin: 2px 0 0; line-height: 1.35; }
.lesson-card-summary { color: var(--dim); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lesson-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.lesson-duration { color: var(--faint); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.lesson-pin { position: absolute; top: 0; right: 0; background: var(--yellow); color: var(--ink); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px 5px; border-bottom-left-radius: 11px; display: inline-flex; align-items: center; gap: 4px; }
.lesson-pin svg { animation: pin-pulse 2.4s ease-in-out infinite; }
@keyframes pin-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25) rotate(-8deg); } }
.cleared-stamp { position: absolute; right: -6px; bottom: 14px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .16em; color: var(--pink-deep); border: 2px solid var(--pink-deep); border-radius: 7px; padding: 2px 9px; transform: rotate(-9deg); opacity: .85; }

/* documenten op de homepagina */
.doc-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.doc-strip-label { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.doc-card { display: inline-flex; align-items: center; gap: 9px; background: var(--card); border: 1px solid rgba(180, 84, 140, .3); border-radius: 12px; padding: 9px 14px; color: var(--text); font-weight: 600; font-size: 13.5px; transition: all var(--speed) var(--ease); }
.doc-card:hover { border-color: var(--pink-deep); transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--text); }
.doc-card-icon { color: var(--pink-deep); display: inline-flex; }
.doc-card-arrow { color: var(--faint); transition: transform var(--speed); }
.doc-card:hover .doc-card-arrow { transform: translateX(3px); color: var(--pink-deep); }

.empty-state { text-align: center; padding: 90px 20px; }
.empty-blob { width: 90px; margin: 0 auto 18px; color: var(--pink); animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
.empty-state h2, .empty-state h1 { font-family: var(--display); margin: 0 0 8px; }
.empty-state p { color: var(--dim); margin: 0 0 22px; }
.glitch-num { font-size: 84px; margin: 0; color: var(--blue-deep); }

/* ------------------------------------------------ lesson page */

.body-lesson .container { padding-top: 26px; }
.lesson-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 46px; }
.lesson-layout.has-rail { grid-template-columns: 250px minmax(0, 1fr); }
.lesson-aside-inner { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 18px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.crumb { color: var(--faint); font-size: 13.5px; display: inline-block; transition: color var(--speed); }
.crumb:hover { color: var(--text); }
.toc-progress { display: flex; align-items: center; gap: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; box-shadow: var(--shadow-sm); }
.toc-progress-text { font-family: var(--display); font-size: 19px; }
.toc-progress-text small { display: block; font-family: var(--body); font-size: 11.5px; color: var(--faint); letter-spacing: .04em; }
.doc-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(232, 192, 216, .4); color: var(--pink-deep); border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 13px; letter-spacing: .04em; }
.toc-head { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); display: block; margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc-link { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 9px; color: var(--dim); font-size: 13.5px; line-height: 1.35; border-left: 2px solid transparent; transition: all var(--speed) var(--ease); }
.toc-link:hover { background: rgba(22, 34, 46, .04); color: var(--text); }
.toc-link.active { color: var(--text); background: rgba(192, 224, 232, .35); border-left-color: var(--blue-deep); }
.toc-num { font-family: var(--mono); font-size: 11px; color: var(--faint); flex: none; }
.toc-check { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all .25s var(--ease); }
.toc-link.done .toc-check { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.toc-link.done .toc-text { color: var(--faint); }

/* rechterbalk met snelkoppelingen */
.lesson-rail-inner { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 8px; }
.rail-link { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line-2); border-radius: 13px; padding: 11px 13px; color: var(--text); box-shadow: var(--shadow-sm); transition: all var(--speed) var(--ease); }
.rail-link:hover { border-color: var(--pink-deep); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(232, 192, 216, .8); color: var(--text); }
.rail-link-icon { width: 34px; height: 34px; border-radius: 10px; background: rgba(232, 192, 216, .4); color: var(--pink-deep); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.rail-link-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.rail-link-text strong { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-link-text small { color: var(--faint); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.lesson-links-inline { display: none; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.link-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid rgba(180, 84, 140, .35); color: var(--pink-deep); border-radius: 99px; padding: 6px 13px; font-weight: 600; font-size: 13px; transition: all var(--speed); }
.link-chip:hover { background: rgba(232, 192, 216, .25); color: var(--pink-deep); }

.lesson-topbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.lesson-topbar-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-deep), var(--pink-deep)); transition: width .35s var(--ease); }

.lesson-header { margin-bottom: 34px; }
.lesson-crumb { color: var(--pink-deep); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.lesson-title { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 8px 0 14px; }
.lesson-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.meta-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); border: 1px solid var(--line-2); background: var(--card); padding: 4.5px 11px; border-radius: 99px; }
.meta-soft { color: #1e657d; border-color: rgba(46, 125, 152, .3); background: rgba(192, 224, 232, .25); }
.meta-doc { color: var(--pink-deep); border-color: rgba(180, 84, 140, .3); background: rgba(232, 192, 216, .25); }

.lesson-main { max-width: 780px; min-width: 0; }
/* Documenten beginnen in de brontekst met hun eigen titel; de pagina toont die al. */
.lesson-doc .lesson-intro > h1:first-child { display: none; }
.lesson-section { position: relative; margin-bottom: 26px; scroll-margin-top: 90px; }
.lesson-intro { font-size: 16.5px; color: #272c34; }
.section-head { display: flex; align-items: center; gap: 14px; margin: 40px 0 6px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.lesson-intro + .lesson-section .section-head { border-top: none; }
.section-num { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--blue); border-radius: 8px; padding: 3px 8px; font-weight: 700; flex: none; }
.section-title { font-family: var(--display); font-size: 24px; margin: 0; line-height: 1.25; }
.section-duration { margin-left: auto; color: var(--faint); font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; flex: none; }

.section-foot { margin-top: 22px; }
.section-done { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px dashed var(--line-2); color: var(--dim); border-radius: 12px; padding: 10px 16px; font: 500 14px var(--body); cursor: pointer; transition: all var(--speed) var(--ease); }
.section-done:hover { border-color: var(--blue-deep); color: var(--text); }
.done-box { width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all .25s var(--ease); }
.section-done.done { border-style: solid; border-color: rgba(46, 125, 152, .45); color: var(--text); background: rgba(192, 224, 232, .2); }
.section-done.done .done-box { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; animation: check-pop .35s var(--ease); }
@keyframes check-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* lesson typography */
.section-body h3, .lesson-intro h3 { font-family: var(--display); font-size: 18.5px; margin: 30px 0 10px; }
.section-body h4 { font-family: var(--display); font-size: 16px; margin: 24px 0 8px; }
.section-body p, .lesson-intro p { margin: 13px 0; }
.section-body li { margin: 6px 0; }
.section-body strong { color: #000; }
.anchored { position: relative; }
.anchor-link { position: absolute; left: -22px; top: 2px; opacity: 0; color: var(--faint); font-weight: 400; transition: opacity var(--speed); }
.anchored:hover .anchor-link { opacity: 1; }
h1 { font-family: var(--display); }

.section-body code:not(.hljs), .lesson-intro code:not(.hljs), p code, li code, td code {
  font-family: var(--mono); font-size: .86em; background: rgba(192, 224, 232, .35); color: #14586e;
  padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(46, 125, 152, .15);
}

blockquote { margin: 18px 0; padding: 13px 18px; border-left: 3px solid var(--line-2); background: rgba(22, 34, 46, .035); border-radius: 0 12px 12px 0; color: var(--dim); }
blockquote p { margin: 6px 0; }
blockquote.bq-warning { border-left-color: var(--pink-deep); background: rgba(232, 192, 216, .22); color: #5e3a50; }
blockquote.bq-note { border-left-color: var(--blue-deep); background: rgba(192, 224, 232, .25); color: #2a4d5a; }
.bq-icon { margin-right: 2px; }

hr { border: none; border-top: 1px solid var(--line-2); margin: 30px 0; }

.table-scroll { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); }
.section-body table, .lesson-intro table { border-collapse: collapse; width: 100%; font-size: 14px; }
.section-body th, .lesson-intro th { text-align: left; font-family: var(--display); font-size: 13px; letter-spacing: .03em; color: var(--dim); background: rgba(192, 224, 232, .25); padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.section-body td, .lesson-intro td { padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.section-body tr:last-child td { border-bottom: none; }
.section-body tbody tr { transition: background var(--speed); }
.section-body tbody tr:hover { background: rgba(192, 224, 232, .16); }

.lesson-figure { margin: 20px 0; }
.lesson-figure img, .lesson-figure video { max-width: 100%; border-radius: 12px; border: 1px solid var(--line-2); display: block; background: #fff; box-shadow: var(--shadow-sm); }
.lesson-figure img.zoomable { cursor: zoom-in; transition: transform var(--speed) var(--ease), box-shadow var(--speed); }
.lesson-figure img.zoomable:hover { transform: scale(1.008); box-shadow: var(--shadow); }
.lesson-figure figcaption { color: var(--faint); font-size: 13px; margin-top: 8px; text-align: center; }

/* code blocks: bewust donker, als een editor-scherm */
.codeblock { margin: 18px 0; border: 1px solid rgba(16, 18, 23, .9); border-radius: 13px; overflow: hidden; background: var(--code-bg); box-shadow: var(--shadow-sm); }
.codeblock-bar { display: flex; align-items: center; justify-content: space-between; padding: 7px 9px 7px 15px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid var(--code-line); }
.codeblock-lang { font-family: var(--mono); font-size: 11.5px; color: #9aa2b1; letter-spacing: .06em; text-transform: uppercase; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--code-line); color: #9aa2b1; border-radius: 8px; padding: 5px 10px; font: 500 12px var(--body); cursor: pointer; transition: all var(--speed) var(--ease); }
.copy-btn:hover { color: #eef0f4; border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .07); }
.copy-btn.copied { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.codeblock pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.codeblock code.hljs { font-family: var(--mono); font-size: 13.2px; line-height: 1.65; background: transparent; padding: 0; }

/* hints */
.hint { margin: 18px 0; border: 1px dashed rgba(180, 84, 140, .45); border-radius: 13px; overflow: hidden; background: var(--card); transition: border-color var(--speed); }
.hint.open { border-style: solid; border-color: rgba(180, 84, 140, .5); }
.hint-toggle { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: rgba(232, 192, 216, .16); border: none; padding: 13px 16px; cursor: pointer; color: var(--text); font: inherit; transition: background var(--speed); }
.hint-toggle:hover { background: rgba(232, 192, 216, .32); }
.hint-eye { color: var(--pink-deep); display: inline-flex; position: relative; }
.hint-eye::after { content: ''; position: absolute; left: -1px; right: -1px; top: 50%; height: 1.8px; background: var(--pink-deep); transform: rotate(-24deg); transition: transform .25s var(--ease), opacity .25s; }
.hint.open .hint-eye::after { opacity: 0; transform: rotate(-24deg) scaleX(0); }
.hint-title { font-weight: 600; font-size: 14.5px; }
.hint-cta { margin-left: auto; font-size: 12.5px; color: var(--pink-deep); font-weight: 700; letter-spacing: .03em; }
.hint-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.hint.open .hint-body { grid-template-rows: 1fr; }
.hint-inner { overflow: hidden; padding: 0 18px; }
.hint.open .hint-inner { padding: 4px 18px 14px; }
.hint-inner > :first-child { margin-top: 6px; }

/* callouts */
.callout { margin: 18px 0; border-radius: 13px; border: 1px solid var(--line-2); background: var(--card); overflow: hidden; }
.callout-head { display: flex; align-items: center; gap: 9px; padding: 10px 16px 0; font-weight: 700; font-family: var(--display); font-size: 14.5px; }
.callout-body { padding: 2px 16px 4px; }
.callout-body > :first-child { margin-top: 8px; }
.callout-body > :last-child { margin-bottom: 12px; }
.callout-info { border-color: rgba(46, 125, 152, .3); background: rgba(192, 224, 232, .2); }
.callout-tip { border-color: rgba(29, 138, 82, .28); background: rgba(29, 138, 82, .06); }
.callout-goal { border-color: rgba(22, 34, 46, .3); background: linear-gradient(120deg, rgba(240, 232, 24, .14), rgba(192, 224, 232, .18)); }
.callout-warning { border-color: rgba(180, 84, 140, .35); background: rgba(232, 192, 216, .2); }
.callout-teacher { border-color: rgba(22, 34, 46, .25); background: repeating-linear-gradient(-45deg, rgba(22, 34, 46, .035), rgba(22, 34, 46, .035) 8px, transparent 8px, transparent 16px); }

/* checkpoint */
.checkpoint { margin: 24px 0; border-radius: 15px; padding: 20px 22px; background: var(--card); border: 1.5px solid var(--ink); position: relative; overflow: hidden; box-shadow: 4px 4px 0 rgba(240, 232, 24, .8); transition: border-color var(--speed), box-shadow var(--speed); }
.checkpoint-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.checkpoint-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.checkpoint-label { font-weight: 600; font-size: 15px; }
.checkpoint-form { display: flex; gap: 10px; flex-wrap: wrap; }
.checkpoint-input { flex: 1; min-width: 160px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); border-radius: 11px; padding: 11px 15px; font: inherit; font-size: 15px; transition: all var(--speed); }
.checkpoint-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(22, 34, 46, .1); }
.checkpoint-input-code { font-family: var(--mono); letter-spacing: .4em; font-size: 18px; text-align: center; }
.checkpoint-feedback { font-size: 13.5px; margin-top: 10px; min-height: 0; color: var(--err); }
.checkpoint-feedback.ok { color: var(--ok); }
.checkpoint.correct { border-color: var(--ok); box-shadow: 4px 4px 0 rgba(29, 138, 82, .25); }
.checkpoint.correct .checkpoint-badge { background: var(--ok); }
.checkpoint-success { margin-top: 14px; padding: 14px 16px; background: var(--ok-bg); border: 1px solid rgba(29, 138, 82, .3); border-radius: 11px; animation: fade-up .4s var(--ease); }
.checkpoint-success > :first-child { margin-top: 0; }
.checkpoint-success > :last-child { margin-bottom: 0; }
.checkpoint.correct .checkpoint-form { display: none; }
.cp-done-line { display: flex; align-items: center; gap: 9px; color: var(--ok); font-weight: 600; font-size: 14.5px; }

/* upload */
.upload-task { margin: 24px 0; border: 1px solid rgba(46, 125, 152, .35); border-radius: 15px; padding: 20px 22px; background: rgba(192, 224, 232, .14); }
.upload-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.upload-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--blue); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.upload-title { font-weight: 600; font-size: 15px; }
.upload-desc { color: var(--dim); font-size: 14px; }
.dropzone { position: relative; margin-top: 14px; border: 1.5px dashed rgba(46, 125, 152, .4); border-radius: 13px; padding: 26px 18px; text-align: center; color: var(--dim); cursor: pointer; background: var(--card); transition: all var(--speed) var(--ease); }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--blue-deep); color: var(--text); background: rgba(192, 224, 232, .12); }
.dropzone.dragover { border-color: var(--ink); background: rgba(240, 232, 24, .12); color: var(--text); animation: dz-pulse 1s ease-in-out infinite; }
@keyframes dz-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 232, 24, .5); } 50% { box-shadow: 0 0 0 7px rgba(240, 232, 24, 0); } }
.dropzone-idle svg { opacity: .55; margin-bottom: 8px; }
.dropzone-browse { color: var(--blue-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dropzone-hint { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: 7px; }
.dropzone-progress { display: flex; align-items: center; gap: 14px; }
.dropzone-bar { flex: 1; height: 9px; background: rgba(22, 34, 46, .1); border-radius: 99px; overflow: hidden; }
.dropzone-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--blue-deep), var(--pink-deep)); background-size: 200% 100%; animation: shine 1.4s linear infinite; transition: width .2s; }
@keyframes shine { to { background-position: -200% 0; } }
.dropzone-pct { font-family: var(--mono); font-size: 13px; min-width: 42px; text-align: right; }
.upload-files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upload-files li { display: flex; align-items: center; gap: 11px; background: var(--card); border: 1px solid var(--line-2); border-radius: 11px; padding: 9px 13px; font-size: 14px; animation: fade-up .35s var(--ease); }
.upload-file-icon { color: var(--ok); flex: none; display: inline-flex; }
.upload-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-meta { color: var(--faint); font-size: 12px; margin-left: auto; flex: none; }
.upload-file-del { background: none; border: none; color: var(--faint); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; flex: none; }
.upload-file-del:hover { color: var(--err); background: var(--err-bg); }

/* download card */
.download-card { display: flex; align-items: center; gap: 15px; margin: 18px 0; background: var(--card); border: 1px solid var(--line-2); border-radius: 14px; padding: 15px 18px; color: var(--text); box-shadow: var(--shadow-sm); transition: all var(--speed) var(--ease); }
.download-card:hover { border-color: var(--ink); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--yellow); color: var(--text); }
.download-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(240, 232, 24, .35); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform var(--speed) var(--ease); }
.download-card:hover .download-icon { transform: translateY(2px); }
.download-info { display: flex; flex-direction: column; min-width: 0; }
.download-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.download-meta { color: var(--faint); font-size: 12px; font-family: var(--mono); letter-spacing: .04em; }
.download-cta { margin-left: auto; flex: none; font-weight: 700; font-size: 13px; color: var(--ink); border: 1.5px solid var(--ink); padding: 7px 14px; border-radius: 10px; transition: all var(--speed); }
.download-card:hover .download-cta { background: var(--ink); color: #fff; }

/* video */
.video-embed { position: relative; margin: 20px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 16 / 9; background: #000; box-shadow: var(--shadow-sm); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; background-size: cover; background-position: center; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-poster::before { content: ''; position: absolute; inset: 0; background: rgba(10, 11, 15, .3); transition: background var(--speed); }
.video-poster:hover::before { background: rgba(10, 11, 15, .12); }
.video-play { position: relative; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding-left: 4px; transition: transform var(--speed) var(--ease); box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }
.video-poster:hover .video-play { transform: scale(1.1); }
.video-title { position: absolute; left: 16px; bottom: 12px; color: #fff; font-weight: 600; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }

/* widget frame: bewust donker, als een Unity viewport */
.widget-embed { margin: 22px 0; height: var(--widget-h, 460px); border-radius: 15px; border: 1px solid rgba(16, 18, 23, .9); background: linear-gradient(160deg, #0e1015, #12141b); position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.widget-embed::before { content: 'INTERACTIEF'; position: absolute; top: 10px; right: 12px; z-index: 3; font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; color: #c0e0e8; border: 1px solid rgba(192, 224, 232, .35); background: rgba(12, 13, 17, .6); border-radius: 6px; padding: 3px 8px; pointer-events: none; }
.widget-embed canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.widget-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #646c7a; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; animation: pulse-txt 1.6s ease-in-out infinite; }
@keyframes pulse-txt { 50% { opacity: .35; } }
.widget-ui { position: absolute; left: 12px; bottom: 12px; right: 12px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; pointer-events: none; }
.widget-ui > * { pointer-events: auto; }
.widget-chip { background: rgba(12, 13, 17, .78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .14); color: #eef0f4; border-radius: 9px; padding: 6px 11px; font: 500 12.5px var(--body); cursor: pointer; transition: all var(--speed); }
.widget-chip:hover { border-color: #c0e0e8; }
.widget-chip.active { background: #c0e0e8; color: #16181d; border-color: #c0e0e8; font-weight: 700; }
.widget-readout { background: rgba(12, 13, 17, .78); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .1); color: #eef0f4; border-radius: 9px; padding: 6px 11px; font: 500 12.5px var(--mono); }
.widget-slider { display: flex; align-items: center; gap: 8px; background: rgba(12, 13, 17, .78); border: 1px solid rgba(255, 255, 255, .1); border-radius: 9px; padding: 5px 11px; font: 500 12px var(--body); color: #9aa2b1; }
.widget-slider input { accent-color: #c0e0e8; width: 110px; }

/* lesson end */
.lesson-end { text-align: center; margin: 60px 0 30px; padding: 44px 24px; border: 1px solid rgba(180, 84, 140, .35); border-radius: 20px; background: linear-gradient(160deg, rgba(232, 192, 216, .25), rgba(192, 224, 232, .2)); animation: fade-up .6s var(--ease); }
.lesson-end-stamp { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .22em; color: var(--pink-deep); border: 3px solid var(--pink-deep); border-radius: 10px; padding: 6px 22px 7px; transform: rotate(-6deg); margin-bottom: 18px; animation: stamp-in .5s var(--ease) both; box-shadow: 4px 4px 0 rgba(240, 232, 24, .7); background: var(--card); }
@keyframes stamp-in { 0% { opacity: 0; transform: rotate(-6deg) scale(2.2); } 60% { opacity: 1; transform: rotate(-6deg) scale(.92); } 100% { transform: rotate(-6deg) scale(1); } }
.lesson-end h2 { font-family: var(--display); font-size: 26px; margin: 0 0 6px; }
.lesson-end p { color: var(--dim); margin: 0 0 22px; }
.lesson-end-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.lesson-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.lesson-nav-link { display: flex; flex-direction: column; gap: 3px; color: var(--dim); max-width: 46%; transition: color var(--speed); }
.lesson-nav-link span { font-weight: 600; color: var(--text); }
.lesson-nav-link:hover span { color: var(--blue-deep); }
.lesson-nav-next { text-align: right; margin-left: auto; }

.preview-banner { position: sticky; top: 62px; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 14px; background: rgba(232, 192, 216, .5); border-bottom: 1px solid rgba(180, 84, 140, .3); backdrop-filter: blur(10px); color: #7c3a61; padding: 8px 16px; font-size: 13.5px; font-weight: 500; }
.preview-banner a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.preview-banner + .lesson-layout .lesson-aside-inner, .preview-banner + .lesson-layout .lesson-rail-inner { top: 124px; }

/* ------------------------------------------------ profile */

.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile-head .muted { display: block; font-size: 13.5px; }
.profile-facts { display: flex; gap: 40px; margin: 0; }
.profile-facts dt { color: var(--faint); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.profile-facts dd { margin: 4px 0 0; font-weight: 600; }
.lang-picker { display: flex; gap: 10px; }
.lang-option { flex: 1; text-align: center; padding: 13px; border-radius: 12px; border: 1px solid var(--line-2); color: var(--dim); font-weight: 600; transition: all var(--speed); }
.lang-option:hover { color: var(--text); border-color: rgba(22, 34, 46, .3); }
.lang-option.active { background: rgba(192, 224, 232, .4); border-color: var(--blue-deep); color: #14586e; }
.stack-form { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }

/* ------------------------------------------------ search overlay */

.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(22, 34, 46, .4); backdrop-filter: blur(5px); display: flex; justify-content: center; padding: 12vh 20px 20px; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.search-panel { width: min(600px, 100%); height: fit-content; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; animation: pop-in .18s var(--ease); }
.search-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--faint); }
.search-input { flex: 1; background: none; border: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.search-box kbd { font-family: var(--mono); font-size: 10.5px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; }
.search-results { max-height: 380px; overflow-y: auto; padding: 8px; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text); cursor: pointer; }
.search-result:hover, .search-result.selected { background: rgba(192, 224, 232, .35); }
.search-result-type { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; flex: none; text-transform: uppercase; }
.search-result-info { min-width: 0; }
.search-result-title { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-sub { color: var(--faint); font-size: 12.5px; }
.search-empty { padding: 30px; text-align: center; color: var(--faint); }

/* ------------------------------------------------ toasts & lightbox */

.toast-stack { position: fixed; bottom: 24px; right: 24px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line-2); border-radius: 13px; padding: 13px 17px; font-size: 14px; box-shadow: var(--shadow); animation: toast-in .3s var(--ease); max-width: 340px; }
.toast.out { animation: toast-out .25s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
.toast-ok { border-color: rgba(29, 138, 82, .4); }
.toast-ok::before { content: '✓'; color: var(--ok); font-weight: 700; }
.toast-err { border-color: rgba(204, 51, 80, .4); }
.toast-err::before { content: '!'; color: var(--err); font-weight: 700; }

.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(14, 18, 24, .9); display: flex; align-items: center; justify-content: center; padding: 30px; animation: fade .2s; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; animation: pop-in .22s var(--ease); }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: rgba(255, 255, 255, .7); font-size: 26px; cursor: pointer; }
.lightbox-close:hover { color: #fff; }

.confetti-canvas { position: fixed; inset: 0; z-index: 130; pointer-events: none; }

/* ------------------------------------------------ admin */

.body-admin .page { min-height: 100vh; }
.admin-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: calc(100vh - 62px); max-width: 1500px; margin: 0 auto; }
.sidebar { border-right: 1px solid var(--line); background: var(--card); padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto; }
.brand-side { padding: 0 10px; }
.brand-side .brand-logo { height: 42px; }
.sidenav { display: flex; flex-direction: column; gap: 3px; }
.sidenav-link { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 11px; color: var(--dim); font-weight: 500; font-size: 14px; background: none; border: none; cursor: pointer; font-family: inherit; width: 100%; text-align: left; transition: all var(--speed) var(--ease); }
.sidenav-link:hover { color: var(--text); background: rgba(22, 34, 46, .05); }
.sidenav-link.active { color: #fff; background: var(--ink); font-weight: 600; box-shadow: 2.5px 2.5px 0 var(--yellow); }
.sidenav-link.active svg { stroke: #fff; }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 3px; }
.admin-main { padding: 30px 34px 80px; max-width: 1000px; }
.admin-wide { max-width: none; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-title { font-family: var(--display); font-size: 27px; margin: 0; }
.admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--speed) var(--ease); }
.stat-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { color: var(--blue-deep); margin-bottom: 6px; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; }
.stat-label { color: var(--faint); font-size: 13px; }

.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.activity-item:last-child { border-bottom: none; }
.activity-text { min-width: 0; }
.activity-time { margin-left: auto; color: var(--faint); font-size: 12.5px; flex: none; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--line-2); }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.row-link { cursor: pointer; transition: background var(--speed); }
.row-link:hover { background: rgba(192, 224, 232, .2); }
.row-new { background: rgba(240, 232, 24, .09); }
.file-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }

.chapter-block { padding: 18px 20px; }
.chapter-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.chapter-block-title { margin: 0; font-size: 15px; }
.chapter-title-input { background: none; border: 1px solid transparent; border-radius: 8px; color: var(--text); font: 700 16px var(--display); padding: 5px 9px; width: 240px; transition: all var(--speed); }
.chapter-sub-input { background: none; border: 1px solid transparent; border-radius: 8px; color: var(--faint); font: 400 13px var(--body); padding: 5px 9px; flex: 1; transition: all var(--speed); }
.chapter-title-input:hover, .chapter-sub-input:hover { border-color: var(--line); }
.chapter-title-input:focus, .chapter-sub-input:focus { outline: none; border-color: var(--blue-deep); background: var(--card-2); }
.lesson-rows { display: flex; flex-direction: column; gap: 6px; min-height: 20px; }
.lesson-row { display: flex; align-items: center; gap: 12px; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; transition: all var(--speed) var(--ease); }
.lesson-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.lesson-row.dragging { opacity: .4; }
.lesson-row.drag-over { border-color: var(--blue-deep); box-shadow: 0 -2px 0 0 var(--blue-deep); }
.drag-handle { color: var(--faint); cursor: grab; display: inline-flex; }
.drag-handle:active { cursor: grabbing; }
.lesson-row-title { display: flex; flex-direction: column; min-width: 0; color: var(--text); flex: 1; }
.lesson-row-title:hover strong { color: var(--blue-deep); }
.lesson-row-slug { color: var(--faint); font-size: 12px; font-family: var(--mono); }
.lesson-row-vis { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.drop-hint { font-size: 13px; text-align: center; padding: 8px; border: 1px dashed var(--line); border-radius: 10px; }

/* editor */
.editor-head { margin-bottom: 16px; }
.save-state { color: var(--faint); font-size: 13px; min-width: 90px; text-align: right; }
.save-state.saving { color: var(--blue-deep); }
.save-state.saved-ok { color: var(--ok); }
.save-state.dirty { color: var(--pink-deep); }
.editor-meta { padding: 18px 20px; }
.editor-meta-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; }
.field-full { grid-column: 1 / -1; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; margin-bottom: 20px; }
.editor-pane, .preview-pane { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 72vh; }
.editor-toolbar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.editor-tabs { display: flex; background: var(--bg-2); border-radius: 9px; padding: 3px; }
.editor-tab { background: none; border: none; color: var(--faint); font: 700 12px var(--body); padding: 5px 12px; border-radius: 7px; cursor: pointer; transition: all var(--speed); }
.editor-tab.active { background: var(--ink); color: #fff; }
.editor-tools { display: flex; gap: 3px; flex-wrap: wrap; }
.editor-tools button { background: none; border: 1px solid transparent; color: var(--dim); min-width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 13px; transition: all var(--speed); }
.editor-tools button:hover { color: var(--text); border-color: var(--line-2); background: rgba(22, 34, 46, .05); }
.editor-help-btn { margin-left: auto; background: none; border: none; color: var(--blue-deep); font: 500 12.5px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.editor-help { border-bottom: 1px solid var(--line); background: var(--bg-2); max-height: 300px; overflow-y: auto; }
.editor-help-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; padding: 12px 16px; }
.editor-help h4 { margin: 6px 0 4px; font-size: 12.5px; color: var(--pink-deep); }
.editor-help pre { margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--dim); white-space: pre-wrap; }
.editor-textarea { flex: 1; width: 100%; background: var(--code-bg); color: #dfe3ea; border: none; resize: none; padding: 18px; font: 400 13.5px/1.7 var(--mono); outline: none; tab-size: 2; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.preview-spin { width: 12px; height: 12px; border: 2px solid var(--line-2); border-top-color: var(--blue-deep); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.preview-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.preview-body .section-head { margin-top: 20px; }

.editor-below { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dropzone-sm { padding: 16px; margin-top: 10px; }
.asset-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.asset-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--card-2); }
.asset-name { font-family: var(--mono); font-size: 12px; color: var(--blue-deep); cursor: copy; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.asset-name:hover { color: var(--text); }
.asset-list .icon-btn { padding: 4px 6px; }

.vis-groups { display: flex; flex-direction: column; gap: 4px; }
.vis-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background var(--speed); }
.vis-row:hover { background: rgba(22, 34, 46, .04); }
.vis-row input { position: absolute; opacity: 0; pointer-events: none; }
.vis-check { width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--line-2); flex: none; display: inline-flex; align-items: center; justify-content: center; transition: all .2s var(--ease); position: relative; background: var(--card); }
.vis-check::after { content: ''; width: 10px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .2s var(--ease); margin-top: -2px; }
.vis-row input:checked + .vis-check { background: var(--ink); border-color: var(--ink); }
.vis-row input:checked + .vis-check::after { transform: rotate(-45deg) scale(1); }
.vis-name { font-weight: 500; flex: 1; }
.vis-row-sm { padding: 6px 10px; font-size: 14px; }
.pin-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--line); color: var(--faint); border-radius: 99px; padding: 4px 11px; font: 600 11.5px var(--body); cursor: pointer; transition: all var(--speed); }
.pin-btn:hover { color: var(--ink); border-color: rgba(22, 34, 46, .35); }
.pin-btn.pinned { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.vis-students summary { cursor: pointer; color: var(--dim); font-size: 14px; padding: 8px 0; }
.vis-student-list { max-height: 240px; overflow-y: auto; }

.link-list { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.link-list li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--card-2); }
.link-label-input { flex: 1; background: none; border: 1px solid transparent; border-radius: 7px; padding: 4px 8px; font: 500 13.5px var(--body); color: var(--text); transition: all var(--speed); }
.link-label-input:hover { border-color: var(--line); }
.link-label-input:focus { outline: none; border-color: var(--blue-deep); background: var(--card); }

.danger-zone { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: center; border-color: rgba(204, 51, 80, .25); }

/* uitnodigingen */
.invite-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.invite-list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.invite-list li:last-child { border-bottom: none; }
.invite-mail { font-weight: 600; }
.invite-actions { margin-left: auto; display: flex; gap: 6px; }
.invite-results { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.invite-results li { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.invite-note { color: var(--faint); font-size: 13px; }
.video-drive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* groups */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.group-card { display: flex; flex-direction: column; gap: 14px; margin-bottom: 0; }
.group-name-input { background: none; border: 1px solid transparent; border-radius: 9px; color: var(--text); font: 700 18px var(--display); padding: 6px 10px; width: 100%; transition: all var(--speed); }
.group-name-input:hover { border-color: var(--line); }
.group-name-input:focus { outline: none; border-color: var(--blue-deep); background: var(--card-2); }
.join-code { background: rgba(240, 232, 24, .18); border: 1.5px dashed rgba(22, 34, 46, .5); border-radius: 12px; padding: 12px 16px; cursor: copy; transition: all var(--speed); }
.join-code:hover { background: rgba(240, 232, 24, .32); }
.join-code-label { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.join-code-value { font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: .3em; color: var(--ink); }
.group-meta { color: var(--dim); font-size: 13.5px; }
.group-actions { display: flex; gap: 8px; justify-content: space-between; }

/* students */
.temp-password { margin-top: 14px; background: rgba(240, 232, 24, .18); border: 1.5px dashed rgba(22, 34, 46, .5); border-radius: 11px; padding: 12px 15px; font-size: 13.5px; }
.temp-password code { font-family: var(--mono); font-size: 17px; color: var(--ink); display: block; margin: 4px 0; letter-spacing: .06em; font-weight: 700; }
.student-head-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.student-head-info { flex: 1; min-width: 200px; }
.student-head-info h1 { font-family: var(--display); font-size: 24px; margin: 0; }
.progress-detail { border-bottom: 1px solid var(--line); }
.progress-detail:last-child { border-bottom: none; }
.progress-detail summary { display: flex; align-items: center; gap: 16px; padding: 12px 4px; cursor: pointer; list-style: none; }
.progress-detail summary::-webkit-details-marker { display: none; }
.progress-detail-title { flex: 1; font-weight: 600; font-size: 14.5px; }
.progress-pct { font-family: var(--mono); font-size: 13px; color: var(--dim); min-width: 44px; text-align: right; }
.progress-pct.accent { color: var(--pink-deep); font-weight: 700; }
.item-list { list-style: none; margin: 0 0 12px; padding: 0 4px 4px 20px; display: flex; flex-direction: column; gap: 5px; }
.item-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--dim); }
.item-list li.done { color: var(--text); }
.item-check { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex: none; }
li.done .item-check { background: var(--ok); border-color: var(--ok); }
.item-type { font-family: var(--mono); font-size: 10px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 5px; flex: none; }
.item-type-checkpoint { color: var(--ink); border-color: rgba(22, 34, 46, .4); background: rgba(240, 232, 24, .25); }
.item-type-upload { color: #1e657d; border-color: rgba(46, 125, 152, .35); background: rgba(192, 224, 232, .3); }
.item-value { font-size: 12px; }
.sub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sub-list li { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }

/* filter bar & matrix */
.filter-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar select { min-width: 190px; }
.card-matrix { padding: 10px; }
.matrix-table { border-collapse: collapse; font-size: 13px; width: 100%; }
.matrix-table th { padding: 10px 8px; font-weight: 600; color: var(--dim); }
.matrix-lesson { max-width: 100px; }
.matrix-lesson a { color: var(--dim); font-size: 11.5px; display: inline-block; max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matrix-lesson a:hover { color: var(--blue-deep); }
.matrix-name-col { text-align: left; min-width: 170px; }
.matrix-student { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 500; padding: 4px; }
.matrix-student:hover { color: var(--blue-deep); }
.matrix-cell { text-align: center; padding: 4px; }
.matrix-dot { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 30px; border-radius: 8px; font-family: var(--mono); font-size: 11px; color: var(--text); background: color-mix(in srgb, #7ec3d6 calc(var(--p) * .55%), rgba(22, 34, 46, .04)); border: 1px solid color-mix(in srgb, var(--blue-deep) calc(var(--p) * .45%), var(--line)); transition: transform var(--speed); }
.matrix-cell:hover .matrix-dot { transform: scale(1.12); }
.matrix-total { text-align: center; font-family: var(--mono); }

/* modal */
.modal { border: none; border-radius: 18px; background: var(--card); color: var(--text); padding: 0; box-shadow: var(--shadow); width: min(440px, calc(100vw - 40px)); }
.modal::backdrop { background: rgba(22, 34, 46, .45); backdrop-filter: blur(4px); }
.modal-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.modal-card h2 { font-family: var(--display); margin: 0 0 4px; font-size: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }

.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; }
.toggle-track { width: 38px; height: 22px; border-radius: 99px; background: rgba(22, 34, 46, .18); position: relative; transition: background var(--speed); flex: none; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--speed) var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.toggle input:checked + .toggle-track { background: var(--pink-deep); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle-label { font-size: 13px; color: var(--dim); font-weight: 500; }

/* ------------------------------------------------ code highlighting
   Donker thema in de schoolkleuren, voor de donkere codeblokken. */

.hljs { color: #dfe3ea; }
.hljs-comment, .hljs-quote { color: #6b7484; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-type { color: #e8c0d8; }
.hljs-string, .hljs-regexp, .hljs-addition { color: #b8e6a3; }
.hljs-number, .hljs-symbol, .hljs-bullet { color: #f0e818; }
.hljs-title, .hljs-title.class_, .hljs-title.function_, .hljs-section { color: #c0e0e8; }
.hljs-attr, .hljs-attribute, .hljs-variable, .hljs-template-variable, .hljs-name { color: #a3c9f5; }
.hljs-built_in, .hljs-builtin-name, .hljs-meta { color: #9fd8e6; }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 700; }
.hljs-deletion { color: #ff8296; }

.ext-icon { margin-left: 3px; opacity: .6; }

/* ------------------------------------------------ responsive */

@media (min-width: 1280px) {
  .lesson-layout.has-rail { grid-template-columns: 240px minmax(0, 1fr) 208px; gap: 40px; }
  .lesson-layout.has-rail .lesson-rail { display: block; }
}
.lesson-rail { display: none; }
@media (max-width: 1279px) {
  .lesson-links-inline { display: flex; }
}

@media (max-width: 1080px) {
  .lesson-layout, .lesson-layout.has-rail { grid-template-columns: 1fr; gap: 0; }
  .lesson-aside { display: none; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-pane, .preview-pane { height: 60vh; }
  .editor-below { grid-template-columns: 1fr; }
  .editor-meta-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 64px minmax(0, 1fr); }
  .sidenav-link span, .brand-side, .sidebar-foot span { display: none; }
  .sidebar { padding: 16px 10px; }
  .sidenav-link { justify-content: center; padding: 12px; }
  .admin-main { padding: 24px 18px 60px; }
}

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-logo-mobile { display: block; }
}

@media (max-width: 720px) {
  .topbar-inner { padding: 0 14px; gap: 10px; height: 58px; }
  .brand-name, .brand-divider, .user-name, .search-kbd { display: none; }
  .topnav { display: none; }
  .container { padding: 22px 16px 70px; }
  .resume-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .resume-ring { align-self: flex-end; margin-top: -40px; }
  .lesson-grid { grid-template-columns: 1fr; }
  .home-total { display: none; }
  .profile-facts { flex-direction: column; gap: 12px; }
  .danger-zone { grid-template-columns: 1fr; }
}
