:root { color-scheme: light; font-family: var(--font-body, 'Lato', Arial, sans-serif); color: #1c1b1b; background: #fcf9f8; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.5; }
a { color: #2d5a27; }
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.eyebrow { color: #705d00; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: var(--font-heading, 'Lora', Georgia, serif); font-weight: 500; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: .4rem 0 1.3rem; }
h2 { font-size: 1.7rem; margin: 0 0 1rem; }
.panel { margin-top: 28px; padding: 28px; border: 1px solid #ded8cd; border-radius: 16px; background: #fff; box-shadow: 0 16px 38px rgba(76, 65, 30, .07); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 6px; color: #4d4732; font-size: .9rem; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid #cfc8ba; border-radius: 8px; background: #fff; font: inherit; }
textarea { min-height: 90px; resize: vertical; }
button { cursor: pointer; padding: 11px 16px; border: 1px solid #2d5a27; border-radius: 999px; background: #ffd700; color: #322900; font: inherit; font-weight: 600; }
button:hover { background: #ffe16d; }
.muted { color: #625d54; }
.message { min-height: 1.5em; margin: 14px 0 0; color: #2d5a27; }
.message.error { color: #9f2d24; }
.list { display: grid; gap: 12px; padding: 0; list-style: none; }
.list li { padding: 18px; border-left: 4px solid #287b9f; background: #f6f3f2; }
.list strong { display: block; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-shell { width: min(1240px, calc(100% - 32px)); }
.admin-top, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-jump { position: sticky; top: 12px; z-index: 4; display: flex; gap: 8px; width: fit-content; margin: 20px 0; padding: 7px; border: 1px solid #ded8cd; border-radius: 999px; background: rgba(252,249,248,.94); backdrop-filter: blur(10px); }
.admin-jump a { padding: 7px 12px; border-radius: 999px; text-decoration: none; font-size: .78rem; }
.admin-jump a:hover { background: #edf3eb; }
.wide { grid-column: 1 / -1; }
.status-pill { padding: 6px 10px; border-radius: 999px; background: #e8f3f7; color: #287b9f; font-size: .72rem; font-weight: 700; }
.button-secondary { border-color: #aaa395; background: #fff; color: #4d4732; }
.course-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.list-button { width: 100%; display: grid; gap: 4px; padding: 14px; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; }
.list-button:hover { background: #e8f3f7; }
.list-button small { color: #625d54; font-weight: 400; }
.editor-columns { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; margin-top: 28px; }
.subpanel { min-width: 0; padding: 24px; border: 1px solid #ded8cd; border-radius: 14px; background: #faf8f5; }
.stack { display: grid; gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid #ded8cd; }
fieldset { display: grid; gap: 12px; margin: 0; padding: 18px; border: 1px solid #d6cfbf; border-radius: 10px; }
legend { padding: 0 8px; font-family: var(--font-heading, 'Lora', Georgia, serif); }
.check { display: flex; grid-column: auto; flex-direction: row; align-items: center; gap: 9px; }
.check input { width: auto; }
.content-editor { min-height: 260px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86rem; }
.upload-box { display: grid; gap: 12px; margin-top: 20px; padding: 18px; border: 1px dashed #a9a18f; border-radius: 12px; background: #fff; }
.upload-box p { margin: 0; }
.asset-list { margin: 0; padding-left: 20px; color: #625d54; font-size: .82rem; }
.compact-list li { padding: 0; border-left-width: 3px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.course-player { width: min(880px, calc(100% - 32px)); }
.module-stack { display: grid; gap: 22px; margin-top: 34px; }
.module.locked { opacity: .62; }
.lesson-card { display: grid; gap: 14px; margin-top: 24px; padding-top: 24px; border-top: 1px solid #ded8cd; }
.lesson-card h3 { margin: 0; font-family: var(--font-heading, 'Lora', Georgia, serif); font-size: 1.35rem; }
.lesson-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #111; }
.lesson-copy { white-space: pre-wrap; color: #3e3b35; }
.lesson-downloads { display: grid; gap: 8px; padding: 16px; border-radius: 10px; background: #e8f3f7; }

/* Beheeromgeving: rustige stap-voor-stap cursusbouwer */
.admin-hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr); gap: 44px; align-items: end; margin: 36px 0 28px; padding: 24px 4px; }
.admin-hero h1 { margin-bottom: .75rem; }
.admin-intro { max-width: 720px; margin: 0; color: #4f4a42; font-size: 1.08rem; }
.admin-help-card { padding: 22px 24px; border: 1px solid #d6dfd2; border-radius: 18px 18px 18px 4px; background: #eef5ec; }
.admin-help-card > strong { font-family: var(--font-heading, 'Lora', Georgia, serif); font-size: 1.15rem; }
.admin-help-card ol { display: grid; gap: 5px; margin: 12px 0 0; padding-left: 22px; color: #4f584c; }
.button-link { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; border: 1px solid #2d5a27; border-radius: 999px; background: #ffd700; color: #322900; font-size: .9rem; font-weight: 700; text-decoration: none; }
.button-link:hover { background: #ffe16d; }
.course-toolbar { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 20px 0; padding: 14px 16px; border-radius: 11px; background: #f5f3ef; }
.course-toolbar label { width: min(310px, 100%); font-weight: 700; }
.course-toolbar p { margin: 0 0 2px; font-size: .82rem; }
.category-panel { border-color: #cfdfc9; background: linear-gradient(140deg, #fff, #f2f8f0); }
.category-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 20px 0; }
.category-create .message { grid-column: 1 / -1; margin: 0; }
.category-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.category-list li { display: flex; gap: 9px; align-items: center; padding: 9px 12px; border: 1px solid #bcd5b6; border-radius: 999px; background: #fff; color: #315a2b; }
.category-list li strong { font-size: .78rem; }
.category-list li span { color: #677362; font-size: .72rem; }
.create-panel { border-color: #d8d09f; background: linear-gradient(145deg, #fff 68%, #fffbed); }
.step-badge { padding: 7px 11px; border-radius: 999px; background: #fff6b8; color: #705d00; font-size: .75rem; font-weight: 800; }
.friendly-form, .settings-form { margin-top: 24px; }
.friendly-form label, .settings-form label, .editor-form label { font-weight: 650; }
label small { color: #726d64; font-size: .76rem; font-weight: 400; }
.input-prefix { display: flex; overflow: hidden; border: 1px solid #cfc8ba; border-radius: 8px; background: #fff; }
.input-prefix > span { display: grid; width: 42px; place-items: center; border-right: 1px solid #ded8cd; background: #f4f1eb; color: #5b554b; }
.input-prefix input { border: 0; border-radius: 0; }
.advanced { padding: 0; border: 1px solid #ded8cd; border-radius: 10px; background: rgba(255,255,255,.7); }
.advanced summary { cursor: pointer; padding: 13px 15px; color: #5f5a50; font-size: .84rem; font-weight: 700; }
.advanced-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 2px 15px 16px; }
.form-actions { align-self: end; margin: 0; }
.course-editor { scroll-margin-top: 90px; }
.editor-heading h2 { margin-bottom: 0; }
.editor-address { margin-top: -4px; font-size: .78rem; }
.status-draft { background: #fff3c4; color: #756000; }
.status-published { background: #e5f3e2; color: #2d6926; }
.status-archived { background: #eeeae4; color: #655f56; }
.builder-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0; }
.builder-step { display: flex; gap: 11px; align-items: center; min-width: 0; padding: 14px; border: 1px solid #ddd7cc; border-radius: 12px; background: #f8f6f3; color: #6d675e; }
.builder-step > span { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: #e8e3dc; font-size: .8rem; font-weight: 800; }
.builder-step div { min-width: 0; }
.builder-step strong, .builder-step small { display: block; }
.builder-step small { overflow: hidden; color: inherit; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.builder-step.complete { border-color: #bed7b9; background: #eff7ed; color: #315a2b; }
.builder-step.complete > span { background: #2d6926; color: #fff; }
.settings-form { padding: 22px; border: 1px solid #e1ddd5; border-radius: 14px; background: #fbfaf8; }
.upgrade-editor { margin-top: 28px; padding: 24px; border: 1px solid #e4cf8b; border-radius: 14px; background: linear-gradient(135deg, #fffdf3, #fff8dc); }
.upgrade-editor > .panel-heading h2 { margin-bottom: 0; }
.upgrade-editor .compact-list { margin-top: 16px; }
.upgrade-item { overflow: hidden; border-radius: 9px; }
.editor-columns { align-items: start; }
.subpanel { box-shadow: 0 10px 25px rgba(57,50,38,.04); }
.form-title { display: flex; gap: 10px; align-items: center; }
.form-title span { padding: 5px 9px; border-radius: 999px; background: #e8f3f7; color: #287b9f; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.form-title strong { font-family: var(--font-heading, 'Lora', Georgia, serif); font-size: 1.15rem; font-weight: 500; }
.toggle-row { display: flex; grid-column: auto; flex-direction: row; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid #d9d3c7; border-radius: 10px; background: #fff; }
.toggle-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: #2d6926; }
.toggle-row span, .toggle-row strong, .toggle-row small { display: block; }
.mail-settings { background: #fffdf4; }
.mail-fields { display: grid; gap: 12px; }
.mail-preview { display: grid; gap: 5px; padding: 15px; border-left: 4px solid #ffd700; border-radius: 4px 10px 10px 4px; background: #fff; color: #4d4732; }
.mail-preview > span { color: #827b6d; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mail-preview p { margin: 0; white-space: pre-wrap; }
.selection-help { padding: 13px 15px; border-radius: 9px; background: #edf4f7; color: #356779; font-size: .86rem; }
.list-button { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-button-copy { min-width: 0; }
.list-button-action { flex: 0 0 auto; color: #287b9f; font-size: .7rem; font-weight: 800; }
.list-button.active .list-button-action { color: #315a2b; }
.course-item { overflow: hidden; border: 1px solid #ded8cd; border-radius: 12px; background: #f8f6f3; }
.course-item .list-button { min-height: 68px; padding: 12px 14px; }
.course-list li.course-item { padding: 0; border-left: 4px solid #287b9f; }
.course-list .course-item.is-active { border-color: #1f627f; border-left-color: #ffd700; box-shadow: 0 8px 22px rgba(31, 98, 127, .18); }
.course-list .course-item .list-button.active { background: linear-gradient(135deg, #1f627f, #2c7e99); color: #fff; }
.course-list .course-item .list-button.active small,
.course-list .course-item .list-button.active .list-button-action { color: #e8f6fb; }
.course-list .course-item .list-button.active .list-button-action { padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.16); }
.course-list .list-button-copy strong { font-size: .88rem; line-height: 1.25; }
.course-list .list-button-copy small { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.module-list li, .lesson-list li { overflow: hidden; border-radius: 8px; }
.module-list .list-button, .lesson-list .list-button { min-height: 68px; }
.upload-box { border-style: solid; background: #fafcfa; }
.upload-heading { display: flex; justify-content: space-between; gap: 16px; align-items: end; }
.upload-heading .eyebrow { margin: 0 0 3px; }
.upload-heading > span { color: #777167; font-size: .7rem; }
.drop-zone { position: relative; display: grid; gap: 3px; place-items: center; min-height: 150px; padding: 22px; border: 2px dashed #9cb493; border-radius: 12px; background: #f2f8f0; color: #3c6035; text-align: center; transition: .18s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: #2d6926; background: #e3f1df; transform: translateY(-1px); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone span { font-size: .8rem; font-weight: 400; }
.drop-zone .drop-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #fff; font-size: 1.25rem; font-weight: 800; }
.file-selection { overflow-wrap: anywhere; color: #625d54; font-size: .78rem; }
.uploaded-files { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid #ded8cd; }
.uploaded-files > strong { font-size: .82rem; }

@media (max-width: 1050px) {
  .course-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .admin-hero, .editor-columns { grid-template-columns: 1fr; }
  .admin-hero { gap: 18px; }
  .builder-steps { grid-template-columns: 1fr; }
  .builder-step small { white-space: normal; }
}
@media (max-width: 620px) {
  .grid, .advanced-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .shell { padding-top: 28px; }
  .panel, .subpanel { padding: 20px; }
  .admin-jump { max-width: 100%; overflow-x: auto; }
  .panel-heading, .upload-heading { align-items: flex-start; }
  .panel-heading { flex-wrap: wrap; }
  .course-toolbar, .category-create { grid-template-columns: 1fr; display: grid; align-items: stretch; }
  .course-toolbar p { margin: 0; }
  .button-link { width: 100%; justify-content: center; }
  .course-list { grid-template-columns: 1fr; }
}
