:root {
  --black: #040805;
  --black-2: #070D08;
  --black-3: #0A130C;
  --panel: #0B160E;
  --panel-2: #0F1D12;
  --green: #3DFF2E;
  --green-dim: #2BC421;
  --green-deep: #07260F;
  --green-deep-2: #0A3315;
  --white: #FFFFFF;
  --text: rgba(255,255,255,0.86);
  --text-2: rgba(255,255,255,0.58);
  --text-3: rgba(255,255,255,0.38);
  --line: rgba(61,255,46,0.16);
  --line-2: rgba(255,255,255,0.08);
  --red: #FF5A4E;
  --font-display: 'VT323', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: env(safe-area-inset-top, 0px); height: 100%; }
body {
  min-height: 100%; background: var(--black); color: var(--text);
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(61,255,46,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- knoppen ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 24px; border-radius: 6px; font-family: var(--font-display); font-size: 21px; letter-spacing: .4px; text-transform: uppercase; line-height: 1.1; transition: transform .15s ease, box-shadow .15s ease, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-green { background: var(--green); color: var(--black); box-shadow: 4px 4px 0 #0c4d1a, 0 0 26px rgba(61,255,46,0.3); }
.btn-green:hover { box-shadow: 6px 6px 0 #0c4d1a, 0 0 40px rgba(61,255,46,0.5); }
.btn-line { border: 2px solid var(--green); color: var(--green); }
.btn-line:hover { background: rgba(61,255,46,0.07); }
.btn-ghost { color: var(--text-2); font-family: var(--font-body); font-size: 14px; text-transform: none; letter-spacing: 0; padding: 10px 14px; font-weight: 600; }
.btn-ghost:hover { color: var(--white); background: rgba(255,255,255,0.05); transform: none; }
.btn-sm { font-size: 18px; padding: 9px 16px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.link { color: var(--green); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- topbar ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(4,8,5,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 20px; }
.top-logo img { height: 44px; width: auto; }
.top-nav { display: flex; gap: 4px; margin-left: 12px; }
.top-nav a { padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.top-nav a:hover { color: var(--white); }
.top-nav a[aria-current="page"] { color: var(--green); background: rgba(61,255,46,0.07); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green-deep-2); border: 1px solid rgba(61,255,46,0.45); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: none; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.menu.open { display: block; }
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu .who b { display: block; color: var(--white); font-size: 14px; }
.menu .who span { font-size: 12.5px; color: var(--text-3); }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--text); }
.menu button:hover, .menu a:hover { background: rgba(255,255,255,0.05); }

.page { max-width: 1240px; margin: 0 auto; padding: 36px 24px 90px; }

/* ---------- login ---------- */
.auth { min-height: 100%; display: grid; place-items: center; padding: 40px 20px; position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; left: 50%; top: -10%; width: 3px; height: 120%; background: linear-gradient(var(--green), rgba(61,255,46,0)); box-shadow: 0 0 26px 4px rgba(61,255,46,0.45); transform: translateX(-50%); opacity: .5; }
.auth-card { position: relative; width: 100%; max-width: 420px; background: var(--panel); border: 2px solid var(--green); border-radius: 14px; padding: 36px 32px 30px; box-shadow: 6px 6px 0 #0c4d1a, 0 0 60px rgba(61,255,46,0.15); }
.auth-logo { width: 150px; margin: 0 auto 18px; }
.auth h1 { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; color: var(--white); text-align: center; margin-bottom: 6px; }
.auth .sub { text-align: center; color: var(--text-2); font-size: 14.5px; margin-bottom: 24px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.field input, .field select { width: 100%; background: var(--black-2); border: 1px solid rgba(255,255,255,0.14); color: var(--white); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 15px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,255,46,0.15); }
.field .row { display: flex; justify-content: space-between; align-items: baseline; }
.field .row a { font-size: 13px; }
.auth .btn { width: 100%; margin-top: 8px; }
.auth .foot { margin-top: 20px; text-align: center; font-size: 13.5px; color: var(--text-3); }
.notice { background: rgba(61,255,46,0.07); border: 1px solid rgba(61,255,46,0.3); border-radius: 8px; padding: 12px 14px; font-size: 14px; color: var(--text); margin-bottom: 16px; }
.err { background: rgba(255,90,78,0.08); border-color: rgba(255,90,78,0.4); }
.pw-rules { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.pw-rules .ok { color: var(--green); }

/* ---------- dashboard ---------- */
.hello { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1; color: var(--white); }
.hello-sub { color: var(--text-2); margin-top: 8px; max-width: 60ch; }
.resume { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--panel); border: 2px solid var(--green); border-radius: 14px; overflow: hidden; box-shadow: 6px 6px 0 #0c4d1a, 0 0 50px rgba(61,255,46,0.12); }
.resume-thumb { position: relative; aspect-ratio: 16/9; background: radial-gradient(500px 260px at 30% 30%, rgba(61,255,46,0.16), transparent 70%), var(--black-3); display: grid; place-items: center; cursor: pointer; }
.resume-thumb .play { width: 74px; height: 74px; border-radius: 50%; border: 2px solid var(--green); display: grid; place-items: center; box-shadow: 0 0 30px rgba(61,255,46,0.35); background: rgba(4,8,5,0.6); transition: transform .15s; }
.resume-thumb:hover .play { transform: scale(1.06); }
.resume-thumb .play svg { margin-left: 5px; }
.resume-thumb .t-left { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-display); font-size: 20px; color: var(--green); }
.resume-thumb .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,0.08); }
.resume-thumb .bar i { display: block; height: 100%; width: 38%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.resume-body { padding: 28px 30px; display: flex; flex-direction: column; }
.resume-body .where { font-size: 13.5px; color: var(--text-2); }
.resume-body .where b { color: var(--green); font-weight: 700; }
.resume-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 36px; line-height: 1.02; color: var(--white); margin: 8px 0 12px; }
.resume-body p { color: var(--text-2); font-size: 14.5px; }
.resume-body .btn { margin-top: auto; align-self: flex-start; }
.resume-body .spacer { height: 22px; }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 54px 0 18px; }
.sec-h h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; color: var(--white); line-height: 1; }
.sec-h p { color: var(--text-3); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.course { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.course:hover { border-color: rgba(61,255,46,0.5); transform: translateY(-2px); }
.course-art { aspect-ratio: 16/8; position: relative; overflow: hidden; background: var(--black-3); border-bottom: 1px solid var(--line); }
.course-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.course-art .tag { position: absolute; left: 14px; top: 12px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; background: rgba(4,8,5,0.75); border: 1px solid var(--line); color: var(--text-2); }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.course-body h4 { font-family: var(--font-display); font-weight: 400; font-size: 27px; line-height: 1.05; color: var(--white); }
.course-body .meta { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.prog { margin-top: 16px; }
.prog-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.prog-row b { color: var(--green); font-weight: 700; }
.prog-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.07); overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: var(--green); box-shadow: 0 0 10px rgba(61,255,46,0.7); border-radius: 4px; }
.course-body .btn { margin-top: 18px; align-self: flex-start; }
.course.locked .course-art { filter: grayscale(0.85) brightness(0.65); }
.course.locked .lock { position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(4,8,5,0.8); border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; }
.course.locked p.pitch { color: var(--text-2); font-size: 14px; margin-top: 8px; }

.overall { margin: -6px 0 18px; }
.grid.mods { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1020px) { .grid.mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid.mods { grid-template-columns: minmax(0, 1fr); } .modcard .mc-t { min-height: 0; } }
.overall .prog-bar { height: 8px; }
.modcard { display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; transition: border-color .15s, transform .15s; }
.modcard:hover { border-color: rgba(61,255,46,0.55); transform: translateY(-2px); }
.modcard .mc-n { font-family: var(--font-display); font-size: 19px; color: var(--text-3); line-height: 1; }
.modcard.is-done .mc-n, .modcard.is-busy .mc-n { color: var(--green); }
.modcard .mc-t { font-family: var(--font-display); font-size: 27px; line-height: 1.05; color: var(--white); min-height: 2.1em; }
.modcard .mc-f { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); margin-top: auto; padding-top: 8px; }
.modcard .mc-f b { color: var(--green); }
.modcard.is-done { border-color: rgba(61,255,46,0.4); }
.wolf-strip { margin-top: 54px; border: 1px dashed rgba(61,255,46,0.4); border-radius: 12px; padding: 22px 26px; display: flex; align-items: center; gap: 24px; background: linear-gradient(90deg, rgba(61,255,46,0.06), transparent 70%); }
.wolf-strip h4 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--white); line-height: 1; }
.wolf-strip p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }
.wolf-strip .ws-acts { margin-left: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; }
.wolf-strip .ws-more { font-size: 13.5px; }

/* ---------- cursus / les ---------- */
.learn { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 34px; align-items: start; }
.route-panel { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px 10px; scrollbar-width: thin; scrollbar-color: rgba(61,255,46,0.3) transparent; }
.route-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--white); line-height: 1; }
.route-head .prog { margin-top: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 12px; font-weight: 600; }
.back:hover { color: var(--green); }
.mod { margin-top: 22px; }
.mod-title { display: flex; gap: 10px; align-items: baseline; width: 100%; text-align: left; padding: 4px 0; }
.mod-title .mn { font-family: var(--font-display); font-size: 19px; color: var(--green); flex: none; }
.mod-title .mt { font-weight: 700; color: var(--white); font-size: 14.5px; line-height: 1.3; }
.mod-title .mc { margin-left: auto; font-size: 12px; color: var(--text-3); flex: none; }
.lessons { list-style: none; margin: 8px 0 0 4px; position: relative; }
.lessons::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(255,255,255,0.1); }
.lessons li { position: relative; }
.lessons a { display: flex; gap: 14px; align-items: flex-start; padding: 7px 8px 7px 0; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.lessons a:hover { color: var(--white); }
.node { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.28); background: var(--panel); margin-top: 3px; position: relative; z-index: 1; display: grid; place-items: center; }
.lessons .done .node { border-color: var(--green); background: var(--green); box-shadow: 0 0 10px rgba(61,255,46,0.7); }
.lessons .done .node::after { content: ""; width: 6px; height: 3px; border-left: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(-45deg) translate(1px,-1px); }
.lessons .done.trail::after { content: ""; position: absolute; left: 7px; top: 22px; height: calc(100% - 6px); width: 2px; background: var(--green); box-shadow: 0 0 8px rgba(61,255,46,0.8); }
.lessons .current a { color: var(--white); background: rgba(61,255,46,0.07); }
.lessons .current .node { border-color: var(--green); box-shadow: 0 0 0 4px rgba(61,255,46,0.18); }
.lessons .lt { flex: 1; line-height: 1.35; }
.lessons .ld { flex: none; font-family: var(--font-display); font-size: 17px; color: var(--text-3); }

.player { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(700px 360px at 50% 40%, rgba(61,255,46,0.12), transparent 70%), var(--black-3); display: grid; place-items: center; }
.player .ph { text-align: center; padding: 20px; }
.player .play { width: 84px; height: 84px; border-radius: 50%; border: 2px solid var(--green); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 0 34px rgba(61,255,46,0.35); }
.player .play svg { margin-left: 6px; }
.player .ph b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 400; color: var(--white); }
.player .ph span { font-size: 13.5px; color: var(--text-3); }
.player .wm { position: absolute; right: 14px; bottom: 12px; font-size: 11.5px; color: rgba(255,255,255,0.22); }
.lesson-head { display: flex; align-items: flex-start; gap: 20px; margin-top: 26px; }
.lesson-head .where { font-size: 13.5px; color: var(--text-2); }
.lesson-head .where b { color: var(--green); font-weight: 700; }
.lesson-head h1 { font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--white); margin-top: 6px; }
.lesson-head .btn { margin-left: auto; flex: none; }
.btn-done { border: 2px solid var(--green); color: var(--green); }
.btn-done.is-done { background: var(--green); color: var(--black); }
.lesson-body { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 30px; }
.lesson-body .txt p { color: var(--text); max-width: 68ch; margin-bottom: 12px; }
.lesson-body h3 { font-size: 13px; font-weight: 800; color: var(--text-3); margin-bottom: 10px; letter-spacing: .2px; }
.files a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; margin-bottom: 8px; font-size: 14px; background: var(--panel); }
.files a:hover { border-color: rgba(61,255,46,0.45); }
.files small { display: block; color: var(--text-3); font-size: 12px; }
.pager { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.pager a { display: flex; flex-direction: column; gap: 2px; max-width: 48%; padding: 10px 0; }
.pager a.next { text-align: right; margin-left: auto; align-items: flex-end; }
.pager small { font-size: 12.5px; color: var(--text-3); }
.pager span { color: var(--white); font-weight: 600; }
.pager a:hover span { color: var(--green); }
.lessons-toggle { display: none; }

/* ---------- beheer ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 44px; line-height: 1; color: var(--green); text-shadow: 0 0 14px rgba(61,255,46,0.35); }
.stat span { font-size: 13.5px; color: var(--text-2); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-top: 22px; }
.panel-h { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.panel-h h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--white); line-height: 1; }
.panel-h .sp { margin-left: auto; }
.search { position: relative; }
.search input { background: var(--black-2); border: 1px solid rgba(255,255,255,0.14); color: var(--white); border-radius: 8px; padding: 10px 12px 10px 36px; font: inherit; font-size: 14px; width: 260px; }
.search input:focus { outline: none; border-color: var(--green); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); }
.tbl-wrap { overflow-x: auto; position: relative; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--text-3); padding: 12px 20px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 13px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .nm { color: var(--white); font-weight: 600; }
td .em { color: var(--text-3); font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: rgba(61,255,46,0.08); border: 1px solid rgba(61,255,46,0.28); color: var(--green); white-space: nowrap; }
.chip.off { background: transparent; border-color: rgba(255,255,255,0.15); color: var(--text-3); }
.status { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.status.on { color: var(--green); }
.status.wait { color: #FFD24A; }
.status.off { color: var(--text-3); }
td .acts { display: flex; gap: 4px; justify-content: flex-end; }
.map-row { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 320px) 90px; gap: 10px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.map-row:last-child { border-bottom: 0; }
.map-row .old { color: var(--text-2); }
.map-row .arr { color: var(--text-3); text-align: center; }
.map-row .n { text-align: right; font-family: var(--font-display); font-size: 20px; color: var(--text-2); }
.map-row select { background: var(--black-2); border: 1px solid rgba(255,255,255,0.14); color: var(--white); border-radius: 6px; padding: 7px 10px; font: inherit; font-size: 13.5px; width: 100%; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 60; display: none; place-items: center; padding: 20px; }
.modal-bg.open { display: grid; }
.modal { width: 100%; max-width: 480px; background: var(--panel); border: 2px solid var(--green); border-radius: 14px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,0.7); max-height: calc(100% - 40px); overflow: auto; }
.modal h3 { font-family: var(--font-display); font-weight: 400; font-size: 32px; color: var(--white); line-height: 1; margin-bottom: 4px; }
.modal .sub { color: var(--text-2); font-size: 14px; margin-bottom: 18px; }
.checks label { display: flex; gap: 10px; align-items: center; padding: 9px 0; font-size: 14.5px; cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--green); }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: var(--green); color: var(--black); font-weight: 700; font-size: 14px; padding: 11px 18px; border-radius: 8px; opacity: 0; transition: .25s; z-index: 70; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn { grid-template-columns: minmax(0, 1fr); }
  .route-panel { position: fixed; inset: 0 auto 0 0; width: min(360px, 88vw); max-height: none; border-radius: 0; z-index: 55; transform: translateX(-105%); transition: transform .25s ease; padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
  .route-panel.open { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,0.7); }
  .lessons-toggle { display: inline-flex; margin-bottom: 14px; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 54; display: none; }
  .scrim.open { display: block; }
  .lesson-body { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .top-in { padding: 8px 16px; gap: 10px; }
  .top-logo img { height: 38px; }
  .top-nav { margin-left: 0; }
  .top-nav a { padding: 8px 10px; }
  .page { padding: 26px 16px 110px; }
  .hello { font-size: 38px; }
  .resume { grid-template-columns: minmax(0, 1fr); }
  .resume-body { padding: 22px 20px; }
  .resume-body h2 { font-size: 31px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .wolf-strip { flex-direction: column; align-items: flex-start; gap: 14px; }
  .wolf-strip .ws-acts { margin-left: 0; flex-direction: row; gap: 18px; }
  .lesson-head { flex-direction: column; gap: 14px; }
  .lesson-head h1 { font-size: 36px; }
  .lesson-head .btn { margin-left: 0; }
  .search input { width: 100%; }
  .search { width: 100%; }
  .panel-h .sp { margin-left: 0; }
  thead { display: none; }
  table, tbody, tr, td { display: block; }
  tr { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
  tr:last-child { border-bottom: 0; }
  td { padding: 4px 0; border: 0; }
  td:nth-child(3) { display: none; }
  td .acts { justify-content: flex-start; margin: 4px 0 0 -14px; }
  .map-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .map-row .arr { display: none; }
  .map-row .n { text-align: left; font-size: 17px; }
  .auth-card { padding: 30px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- extra voor de live versie ---------- */
.center-msg { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(61,255,46,0.2); border-top-color: var(--green); animation: spin .8s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tabs { display: flex; gap: 6px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 16px; font-weight: 700; font-size: 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a[aria-current="page"] { color: var(--green); border-bottom-color: var(--green); }
.empty { padding: 30px 20px; text-align: center; color: var(--text-3); font-size: 14px; }
.more-row { padding: 14px 20px; text-align: center; font-size: 13.5px; color: var(--text-3); }
.les-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 90px 110px auto; gap: 12px; align-items: center; padding: 11px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.les-row .pos { font-family: var(--font-display); font-size: 19px; color: var(--text-3); }
.les-row .t { color: var(--white); font-weight: 600; }
.les-row .sub { font-size: 12.5px; color: var(--text-3); }
.pill { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.pill.on { color: var(--green); background: rgba(61,255,46,0.08); border: 1px solid rgba(61,255,46,0.3); }
.pill.off { color: var(--text-3); border: 1px solid rgba(255,255,255,0.15); }
.mod-block { border-bottom: 1px solid var(--line); }
.mod-block:last-child { border-bottom: 0; }
.mod-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(61,255,46,0.04); }
.mod-bar b { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--white); }
.mod-bar .sp { margin-left: auto; display: flex; gap: 4px; }
.field textarea { width: 100%; background: var(--black-2); border: 1px solid rgba(255,255,255,0.14); color: var(--white); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 14.5px; min-height: 90px; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(61,255,46,0.15); }
.field .hint { font-size: 12.5px; color: var(--text-3); margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; }
.modal.wide { max-width: 640px; }
.btn-danger { color: var(--red); }
.btn-danger:hover { color: var(--red); background: rgba(255,90,78,0.08); }
@media (max-width: 720px) {
  .les-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .les-row .hide-m { display: none; }
  .grid2 { grid-template-columns: minmax(0,1fr); }
}
