:root {
  --ink: #091525;
  --ink-2: #10243d;
  --paper: #f5f1e8;
  --paper-2: #e9e2d4;
  --white: #fffdf8;
  --gold: #f0b45b;
  --blue: #6fb5e8;
  --mint: #6fd0aa;
  --muted: #9aa9b9;
  --line: rgba(255,255,255,.13);
  --shadow: 0 28px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(111,181,232,.18), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(240,180,91,.13), transparent 32%),
    linear-gradient(135deg, #07101d, var(--ink-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

button, input { font: inherit; }
.gate-layout {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
  padding: 64px 0;
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--ink);
  background: var(--gold);
  font-family: Georgia, serif;
  font-weight: 900;
}
.eyebrow { margin: 44px 0 12px; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .15em; font-weight: 850; }
h1 { max-width: 760px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 7vw, 84px); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
h1 em { color: var(--gold); font-style: italic; }
.lead { max-width: 680px; color: #c7d1dd; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 720px; margin-top: 34px; }
.preview-grid article { min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.045); backdrop-filter: blur(8px); }
.preview-grid b { display: block; color: var(--white); font-family: Georgia, serif; font-size: 35px; }
.preview-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.gate-card { padding: clamp(25px, 4vw, 40px); border: 1px solid rgba(255,255,255,.17); border-radius: 28px; background: rgba(7,16,29,.72); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.gate-card .eyebrow { margin: 22px 0 8px; }
.lock-icon { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(111,208,170,.35); border-radius: 50%; color: var(--mint); background: rgba(111,208,170,.08); font-size: 24px; }
.gate-card h2 { margin: 0; font-family: Georgia, serif; font-size: 34px; letter-spacing: -.035em; font-weight: 500; }
.gate-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; }
label { display: block; margin: 24px 0 8px; color: #c7d1dd; font-size: 13px; font-weight: 700; }
.pin-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
input { width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: rgba(0,0,0,.22); color: var(--white); font-size: 18px; letter-spacing: .18em; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(111,181,232,.12); }
button { border: 0; border-radius: 13px; padding: 0 18px; background: var(--gold); color: #1f1608; font-weight: 850; cursor: pointer; }
button:hover { filter: brightness(1.06); }
button:disabled { opacity: .55; cursor: wait; }
.form-status { min-height: 21px; margin: 9px 0 0; color: #ff9b96 !important; font-size: 13px; }
.course-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 26px; }
.course-track span { height: 4px; border-radius: 999px; background: rgba(255,255,255,.1); }
.course-track .active { background: var(--mint); }
.gate-card small { display: block; margin-top: 10px; color: var(--muted); }

@media (max-width: 880px) {
  .gate-layout { grid-template-columns: 1fr; padding: 28px 0 46px; }
  .gate-intro { padding-top: 10px; }
  .eyebrow { margin-top: 32px; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gate-layout { width: min(100% - 22px, 1180px); }
  h1 { font-size: 46px; }
  .pin-row { grid-template-columns: 1fr; }
  button { min-height: 50px; }
}

/* Beveiligde cursusomgeving */
.app-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 18px 20px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: rgba(6, 15, 27, .91); backdrop-filter: blur(22px); }
.logo { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: var(--white); text-decoration: none; }
.course-logo > a { color: var(--white); text-decoration: none; }
.course-select { width: 58px; height: 42px; flex: 0 0 auto; padding: 0 22px 0 10px; border: 1px solid rgba(240, 180, 91, .34); border-radius: 13px; outline: none; appearance: auto; color: var(--ink); background: var(--gold); font: 900 13px/1 Georgia, serif; cursor: pointer; }
.course-select:focus { box-shadow: 0 0 0 3px rgba(240, 180, 91, .13); }
.logo strong { font-size: 14px; line-height: 1.08; letter-spacing: -.02em; }
.exam-mini { margin: 28px 4px 18px; padding: 17px; border: 1px solid rgba(240, 180, 91, .22); border-radius: 17px; background: rgba(240, 180, 91, .07); }
.exam-mini small, .exam-mini span { display: block; color: var(--muted); font-size: 11px; }
.exam-mini b { display: block; margin: 4px 0; color: var(--gold); font-family: Georgia, serif; font-size: 21px; }
.main-nav { display: grid; gap: 5px; }
.main-nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 11px; color: #aebdcb; font-size: 13px; font-weight: 700; text-decoration: none; transition: .18s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255, 255, 255, .075); }
.main-nav a.active::before { content: ""; position: absolute; left: -18px; width: 3px; height: 22px; border-radius: 0 4px 4px 0; background: var(--gold); }
.main-nav i { width: 19px; color: var(--blue); font-style: normal; font-size: 17px; text-align: center; }
.main-nav em { margin-left: auto; min-width: 22px; padding: 2px 6px; border-radius: 99px; color: var(--ink); background: var(--gold); font-style: normal; font-size: 10px; text-align: center; }
.sidebar-progress { margin-top: auto; padding: 18px 8px 12px; }
.sidebar-progress > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.sidebar-progress b { color: var(--white); }
.progress { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--mint)); }
.logout { min-height: 41px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px; }
.logout:hover { color: var(--white); border-color: rgba(255, 255, 255, .28); }

.workspace { min-width: 0; }
.topbar { position: sticky; z-index: 12; top: 0; min-height: 68px; padding: 0 clamp(20px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(9, 21, 37, .82); backdrop-filter: blur(20px); }
.menu-button { display: none; min-width: 44px; min-height: 44px; padding: 0 12px; color: var(--white); background: rgba(255, 255, 255, .08); }
.crumb { color: #c7d1dd; font-size: 12px; font-weight: 750; }
.top-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(111, 208, 170, .09); }
.view { width: min(1260px, 100%); min-height: calc(100vh - 68px); padding: clamp(30px, 5vw, 66px) clamp(20px, 4vw, 56px) 90px; margin: auto; }
.view h1 { max-width: none; font-size: clamp(40px, 5vw, 70px); }
.view h2, .view h3 { letter-spacing: -.03em; }
.view p { line-height: 1.65; }
.kicker { margin: 0 0 9px; color: var(--gold); font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }

.button { min-height: 44px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; font-size: 12px; font-weight: 850; text-decoration: none; cursor: pointer; }
.button.primary { color: #211708; background: var(--gold); }
.button.secondary { color: var(--paper); border-color: var(--line); background: rgba(255, 255, 255, .045); }
.button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.button.full { width: 100%; }

.hero-panel { min-height: 330px; padding: clamp(30px, 5vw, 58px); display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; overflow: hidden; border: 1px solid rgba(111, 181, 232, .2); border-radius: 28px; background: radial-gradient(circle at 85% 15%, rgba(111, 181, 232, .18), transparent 35%), linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); box-shadow: var(--shadow); }
.hero-panel h1 { max-width: 760px; }
.hero-panel > div > p:not(.kicker) { max-width: 680px; color: #b9c5d1; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.mastery-ring { width: 174px; height: 174px; padding: 11px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--mint) var(--score), rgba(255, 255, 255, .08) 0); box-shadow: 0 0 55px rgba(111, 208, 170, .08); }
.mastery-ring > div { width: 100%; height: 100%; display: grid; place-content: center; border-radius: 50%; background: #0e2138; text-align: center; }
.mastery-ring b { font: 500 38px/1 Georgia, serif; }
.mastery-ring span { margin-top: 6px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stat-grid { margin: 16px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, .035); }
.stat-grid span, .stat-grid small { display: block; color: var(--muted); font-size: 11px; }
.stat-grid b { display: block; margin: 7px 0 4px; color: var(--white); font: 500 31px/1 Georgia, serif; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .85fr); gap: 16px; }
.panel { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .035); }
.panel h2 { margin: 0; font: 500 25px/1.15 Georgia, serif; }
.panel-head { margin-bottom: 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.pill { padding: 7px 10px; border-radius: 99px; color: var(--mint); background: rgba(111, 208, 170, .09); font-size: 10px; font-weight: 800; white-space: nowrap; }
.timeline { display: grid; }
.timeline article { padding: 12px 0; display: grid; grid-template-columns: 76px 1fr auto; gap: 15px; align-items: center; border-top: 1px solid var(--line); }
.timeline time { color: var(--blue); font-size: 11px; font-weight: 800; text-transform: capitalize; }
.timeline b { font-size: 13px; }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.timeline article > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 10px; }
.timeline .past { opacity: .55; }
.blueprint { display: grid; gap: 17px; }
.blueprint header { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.blueprint header span { color: #c8d2dc; }
.blueprint header b { color: var(--white); }
.blueprint div > div { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.blueprint i { display: block; height: 100%; border-radius: inherit; background: var(--bar); }
.section-head { margin: 46px 0 18px; display: flex; align-items: end; justify-content: space-between; }
.section-head h2 { margin: 0; font: 500 30px/1 Georgia, serif; }
.section-head a, .text-link, .backlink { color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: none; }
.module-strip { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 12px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 14px; }
.module-card { min-height: 250px; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 19px; color: var(--paper); background: rgba(255, 255, 255, .04); text-decoration: none; transition: .18s ease; }
.module-card:hover { border-color: rgba(111, 181, 232, .45); background: rgba(111, 181, 232, .07); transform: translateY(-3px); }
.module-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: var(--ink); background: var(--blue); font-family: Georgia, serif; font-weight: 900; }
.module-number.large { width: 70px; height: 70px; border-radius: 18px; font-size: 28px; }
.module-meta { margin: 18px 0 0; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 9px; }
.module-meta b { color: var(--gold); }
.module-card h3 { margin: 12px 0 5px; color: var(--white); font: 500 20px/1.12 Georgia, serif; }
.module-card p { margin: 0; color: var(--muted); font-size: 11px; }
.module-card footer { margin-top: auto; padding-top: 18px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 10px; }

.page-title { max-width: 880px; margin-bottom: 40px; }
.page-title.compact { margin-bottom: 25px; }
.page-title > p:not(.kicker) { max-width: 690px; color: var(--muted); font-size: 16px; }
.backlink { display: inline-block; margin-bottom: 22px; }
.module-hero { padding-bottom: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 25px; align-items: start; border-bottom: 1px solid var(--line); }
.module-hero h1 { margin-bottom: 12px; font-size: clamp(38px, 5vw, 62px); }
.module-hero > div > p:not(.kicker) { max-width: 720px; margin: 0; color: var(--muted); }
.tag-row, .tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tag-row span, .tag-cloud span { padding: 6px 9px; border: 1px solid rgba(111, 181, 232, .18); border-radius: 8px; color: #b8d8ef; background: rgba(111, 181, 232, .06); font-size: 10px; }
.score-tile { min-width: 100px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.score-tile b, .score-tile span { display: block; }
.score-tile b { color: var(--mint); font: 500 27px/1 Georgia, serif; }
.score-tile span { margin-top: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.lesson-layout { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.lesson-content { min-width: 0; }
.objectives, .lesson-block, .exam-tips, .side-card { margin-bottom: 14px; padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line); border-radius: 19px; background: rgba(255, 255, 255, .035); }
.objectives ul, .exam-tips ol, .lesson-block ul, .rubric-side ol { padding-left: 20px; }
.objectives li, .exam-tips li, .lesson-block li, .rubric-side li { margin: 8px 0; color: #c1ccd7; line-height: 1.55; }
.lesson-block { transition: .18s ease; }
.lesson-block.read { border-color: rgba(111, 208, 170, .25); }
.lesson-block header { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 20px; }
.lesson-block header > span { color: var(--gold); font: italic 18px Georgia, serif; }
.lesson-block h2 { margin: 0; font: 500 27px/1.15 Georgia, serif; }
.lesson-block header button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 9px; }
.lesson-block.read header button { color: var(--mint); border-color: rgba(111, 208, 170, .24); }
.lesson-block > p { color: #bec9d5; }
.lesson-block blockquote { margin: 22px 0 0; padding: 17px 20px; border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0; color: #ecd6af; background: rgba(240, 180, 91, .07); line-height: 1.6; }
.exam-tips { border-color: rgba(240, 180, 91, .25); background: rgba(240, 180, 91, .055); }
.exam-tips h2 { margin: 0; font: 500 28px Georgia, serif; }
.lesson-side { position: sticky; top: 95px; }
.side-card { padding: 20px; }
.side-card h3 { margin: 0 0 8px; font: 500 22px Georgia, serif; }
.side-card p:not(.kicker) { color: var(--muted); font-size: 11px; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 8px 0; border-top: 1px solid var(--line); color: #bdc8d3; font-size: 11px; }

.practice-head { margin-bottom: 25px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.practice-head h1 { font-size: clamp(35px, 4vw, 55px); }
.question-nav { max-width: 370px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.question-nav a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 10px; text-decoration: none; }
.question-nav a.done { border-color: rgba(111, 208, 170, .25); color: var(--mint); }
.question-nav a.active { color: var(--ink); border-color: var(--gold); background: var(--gold); }
.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; }
.rubric-side { padding: 23px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: rgba(255, 255, 255, .035); font-size: 11px; }
.question-card { padding: clamp(24px, 4vw, 42px); border: 1px solid rgba(111, 181, 232, .2); border-radius: 22px; background: rgba(255, 255, 255, .05); }
.question-card header { display: flex; justify-content: space-between; gap: 15px; }
.question-card header > div { display: flex; gap: 8px; }
.question-card header > b { color: var(--gold); font-size: 12px; }
.difficulty, .question-count { padding: 5px 8px; border-radius: 7px; color: var(--muted); background: rgba(255, 255, 255, .06); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.difficulty.tentamen { color: #ebc9ff; background: rgba(185, 151, 238, .1); }
.difficulty.verdieping { color: var(--gold); background: rgba(240, 180, 91, .1); }
.question-card h2 { max-width: 900px; margin: 25px 0 8px; font: 500 clamp(24px, 3vw, 35px)/1.25 Georgia, serif; }
.answer-hint { color: var(--muted); font-size: 11px; }
.question-card textarea, .chat-form textarea { width: 100%; min-height: 250px; margin-top: 18px; padding: 18px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; outline: none; color: var(--paper); background: rgba(0, 0, 0, .19); font: 14px/1.65 inherit; }
.question-card textarea:focus, .chat-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(111, 181, 232, .1); }
.answer-actions { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.answer-actions > span { color: var(--muted); font-size: 10px; }
.feedback-card { margin-top: 18px; padding: clamp(25px, 4vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .045); }
.feedback-stream { border-color: rgba(111, 181, 232, .28); }
.assessment-stream-head { display: flex; align-items: center; gap: 12px; }
.assessment-stream-head .spinner { flex: 0 0 auto; border-color: rgba(255, 255, 255, .18); border-top-color: var(--blue); }
.assessment-stream-head h2 { margin: 0; font: 500 22px Georgia, serif; }
.assessment-stream-head .kicker { margin-bottom: 4px; }
.assessment-live { max-height: 340px; margin-top: 18px; padding: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; color: #cbd6e1; background: rgba(0, 0, 0, .16); white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.feedback-card.goed, .feedback-card.uitstekend { border-color: rgba(111, 208, 170, .3); }
.feedback-card header { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.feedback-card header h2 { margin: 0; font: 500 29px Georgia, serif; }
.feedback-card header p:not(.kicker) { margin: 5px 0 0; color: var(--muted); }
.score-badge { width: 78px; height: 78px; display: grid; place-content: center; border-radius: 50%; color: var(--ink); background: var(--mint); text-align: center; }
.score-badge b { font: 700 28px/1 Georgia, serif; }
.score-badge span { font-size: 10px; }
.feedback-grid { margin: 25px 0 15px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback-grid > div, .corrections { padding: 18px; border-radius: 14px; background: rgba(0, 0, 0, .15); }
.feedback-grid h3, .corrections h3 { margin: 0; font-size: 13px; }
.feedback-grid ul, .corrections ul { margin-bottom: 0; padding-left: 18px; color: #bdc8d3; font-size: 12px; line-height: 1.55; }

.criteria-feedback { margin: 22px 0 15px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, .12); }
.criteria-feedback-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.criteria-feedback-head h3 { margin: 2px 0 0; font: 500 21px/1.2 Georgia, serif; }
.criteria-feedback-head > span { max-width: 290px; color: var(--muted); font-size: 10px; line-height: 1.5; text-align: right; }
.criteria-list { display: grid; gap: 8px; }
.criterion-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.criterion-row.behaald { border-color: rgba(111, 208, 170, .28); }
.criterion-row.gedeeltelijk { border-color: rgba(240, 180, 91, .28); }
.criterion-row.niet_behaald { border-color: rgba(255, 120, 120, .2); }
.criterion-points { display: flex; align-items: baseline; gap: 3px; color: var(--white); }
.criterion-points b { font: 700 18px/1 Georgia, serif; }
.criterion-points span { color: var(--muted); font-size: 10px; }
.criterion-row > div:last-child > b { display: block; font-size: 12px; line-height: 1.45; }
.criterion-row p { margin: 5px 0 0; color: #bdc8d3; font-size: 11px; line-height: 1.5; }
.criterion-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.language-feedback { margin-top: 15px; padding: 18px; display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 18px; border: 1px solid rgba(185, 151, 238, .2); border-radius: 14px; background: rgba(185, 151, 238, .045); }
.language-feedback h3 { margin: 2px 0 5px; font: 500 20px/1.2 Georgia, serif; }
.language-feedback > div > p:not(.kicker) { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.language-feedback dl { margin: 0; display: grid; gap: 8px; }
.language-feedback dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.language-feedback dt { color: var(--white); font-size: 10px; font-weight: 800; }
.language-feedback dd { margin: 0; color: #bdc8d3; font-size: 11px; line-height: 1.45; }
@media (max-width: 720px) {
  .criteria-feedback-head, .language-feedback { grid-template-columns: 1fr; }
  .criteria-feedback-head { display: grid; }
  .criteria-feedback-head > span { max-width: none; text-align: left; }
  .criterion-row { grid-template-columns: 60px 1fr; }
  .language-feedback dl > div { grid-template-columns: 1fr; gap: 3px; }
}
.feedback-card details { margin-top: 15px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; }
.feedback-card summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 800; }
.feedback-revision { margin-top: 16px; padding: 20px; border: 1px solid rgba(111, 181, 232, .24); border-radius: 16px; background: rgba(111, 181, 232, .055); }
.feedback-revision-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.feedback-revision-head h3 { margin: 2px 0 0; font: 500 22px/1.25 Georgia, serif; }
.feedback-revision-head > span { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; color: var(--blue); background: rgba(111, 181, 232, .1); font-size: 10px; font-weight: 800; }
.feedback-revision > p:not(.kicker) { margin: 12px 0 0; color: #c2cfdb; font-size: 12px; line-height: 1.6; }
.feedback-revision textarea { width: 100%; min-height: 220px; margin-top: 15px; padding: 18px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; outline: none; color: var(--paper); background: rgba(0, 0, 0, .19); font: 14px/1.65 inherit; }
.feedback-revision textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(111, 181, 232, .1); }
.follow-up { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border-radius: 14px; background: rgba(185, 151, 238, .07); }
.follow-up b { font-size: 13px; }
.rich-text { color: #c5d0db; font-size: 13px; line-height: 1.65; }
.rich-text p { margin: 8px 0; }
.rich-text code { padding: 2px 5px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.spinner { width: 14px; height: 14px; display: inline-block; border: 2px solid rgba(0, 0, 0, .2); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.review-progress { margin-bottom: 15px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.review-progress a { padding: 11px; display: flex; align-items: center; gap: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); font-size: 9px; text-decoration: none; white-space: nowrap; }
.review-progress a span { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.review-progress a.active { color: var(--white); border-color: var(--gold); }
.empty-state { min-height: 65vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.empty-state > b { width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--mint); font-size: 28px; }
.empty-state h1 { margin-top: 24px; font-size: clamp(35px, 5vw, 60px); }
.empty-state p { color: var(--muted); }

.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.test-card { min-height: 340px; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .04); }
.test-card.final { grid-column: span 2; border-color: rgba(240, 180, 91, .3); background: radial-gradient(circle at 90% 10%, rgba(240, 180, 91, .14), transparent 35%), rgba(255, 255, 255, .04); }
.test-icon { width: 48px; height: 48px; margin-bottom: 22px; display: grid; place-items: center; border-radius: 14px; color: var(--ink); background: var(--blue); font: 700 20px Georgia, serif; }
.test-card.final .test-icon { background: var(--gold); }
.test-card h2 { margin: 0; font: 500 25px/1.15 Georgia, serif; }
.test-card > p:not(.kicker) { color: var(--muted); font-size: 12px; }
.test-meta { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; color: #bdc8d3; font-size: 10px; }
.test-status { margin: 13px 0; padding: 9px; border-radius: 8px; color: var(--mint); background: rgba(111, 208, 170, .07); font-size: 10px; text-align: center; }
.test-top { margin-bottom: 15px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.test-top .backlink { margin: 0; }
.test-top > div { text-align: center; }
.test-top > div b, .test-top > div span { display: block; }
.test-top > div b { font-family: Georgia, serif; }
.test-top > div span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.test-top time { justify-self: end; color: var(--mint); font: 500 23px Georgia, serif; font-variant-numeric: tabular-nums; }
.test-top time.urgent { color: #ff9b96; }
.test-line { height: 4px; margin-bottom: 20px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .08); }
.test-line span { display: block; height: 100%; background: var(--gold); }
.test-navigation { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.test-navigation span { color: var(--muted); font-size: 10px; }
.test-result { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.test-result .grade { width: 135px; height: 135px; margin: 15px 0 25px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--mint); font: 600 52px Georgia, serif; }
.test-result.fail .grade { background: #ffad87; }
.test-result h1 { max-width: 820px; font-size: clamp(40px, 5vw, 64px); }
.test-result > p:not(.kicker) { color: var(--muted); }
.result-actions { display: flex; gap: 10px; }

.coach-layout { min-height: 72vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 17px; }
.coach-layout > aside { padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255, 255, 255, .035); }
.coach-layout > aside h2 { margin: 0 0 16px; font: 500 25px Georgia, serif; }
.coach-layout > aside nav { display: grid; gap: 4px; }
.coach-layout > aside a { padding: 8px; display: flex; align-items: center; gap: 9px; border-radius: 9px; color: var(--muted); font-size: 10px; text-decoration: none; }
.coach-layout > aside a span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 7px; background: rgba(255, 255, 255, .06); }
.coach-layout > aside a.active { color: var(--white); background: rgba(111, 181, 232, .09); }
.chat-panel { min-width: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid rgba(111, 181, 232, .19); border-radius: 19px; background: rgba(255, 255, 255, .035); }
.chat-panel > header { padding: 21px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.chat-panel h1 { font-size: 30px; }
.ai-orb { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: linear-gradient(135deg, var(--blue), var(--mint)); }
.chat-log { max-height: 58vh; min-height: 390px; padding: 24px; overflow-y: auto; }
.chat-log article { margin-bottom: 18px; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.chat-log article > div { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--blue); font-size: 9px; font-weight: 900; }
.chat-log article.user > div { background: var(--gold); }
.chat-log article section { padding: 1px 14px; border-radius: 0 13px 13px 13px; background: rgba(255, 255, 255, .045); }
.chat-log article.user section { background: rgba(240, 180, 91, .07); }
.chat-empty { height: 100%; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.chat-empty b { color: var(--white); font: 500 27px Georgia, serif; }
.chat-empty p { max-width: 470px; }
.chat-form { padding: 14px; display: grid; grid-template-columns: 1fr auto; gap: 9px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 58px; max-height: 170px; margin: 0; padding: 13px; }

.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.source-list { margin: 15px 0 0; padding: 0; list-style: none; }
.source-list li { padding: 11px 0; display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.source-list b { font-size: 12px; }
.source-list span { color: var(--muted); font-size: 10px; text-align: right; }
.source-wide { margin-top: 15px; }
.literature-table { margin-top: 18px; }
.literature-table > div { padding: 12px 0; display: grid; grid-template-columns: 35px minmax(180px, .7fr) 1fr; gap: 13px; align-items: center; border-top: 1px solid var(--line); }
.literature-table span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); background: var(--blue); font-size: 10px; font-weight: 900; }
.literature-table b { font-size: 12px; }
.literature-table p { margin: 0; color: var(--muted); font-size: 10px; }

.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(380px, calc(100% - 44px)); padding: 13px 17px; border: 1px solid rgba(111, 208, 170, .3); border-radius: 12px; color: #d7f5e9; background: #153f35; box-shadow: var(--shadow); font-size: 12px; transform: translateY(25px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { color: #ffe0df; border-color: rgba(255, 155, 150, .3); background: #522c31; }

@media (max-width: 1080px) {
  .module-strip { grid-template-columns: repeat(3, 1fr); }
  .module-grid, .test-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; left: 0; width: 270px; transform: translateX(-105%); box-shadow: var(--shadow); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: block; }
  .topbar { padding-inline: 17px; }
  .dashboard-grid, .lesson-layout, .practice-layout, .coach-layout { grid-template-columns: 1fr; }
  .lesson-side { position: static; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-panel { grid-template-columns: 1fr; }
  .mastery-ring { width: 145px; height: 145px; }
  .coach-layout > aside nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
  .top-status { display: none; }
  .view { padding: 26px 14px 70px; }
  .module-strip, .module-grid, .test-grid, .stat-grid, .source-grid { grid-template-columns: 1fr; }
  .test-card.final { grid-column: auto; }
  .module-hero { grid-template-columns: auto 1fr; }
  .module-hero .score-tile { grid-column: 1 / -1; }
  .module-number.large { width: 52px; height: 52px; border-radius: 14px; font-size: 21px; }
  .lesson-side { grid-template-columns: 1fr; }
  .lesson-block header { grid-template-columns: auto 1fr; }
  .lesson-block header button { grid-column: 1 / -1; justify-self: start; }
  .practice-head { align-items: flex-start; flex-direction: column; }
  .question-nav { justify-content: flex-start; }
  .feedback-grid { grid-template-columns: 1fr; }
  .feedback-card header { grid-template-columns: 1fr; }
  .feedback-revision-head { flex-direction: column; }
  .feedback-revision-head > span { align-self: flex-start; }
  .feedback-revision .button { width: 100%; justify-content: center; }
  .follow-up { align-items: flex-start; flex-direction: column; }
  .review-progress { grid-template-columns: 1fr; }
  .review-progress a:not(.active) { display: none; }
  .test-top { grid-template-columns: 1fr auto; }
  .test-top > div { display: none; }
  .test-navigation { align-items: stretch; flex-direction: column; }
  .chat-form { grid-template-columns: 1fr; }
  .source-list li, .literature-table > div { align-items: flex-start; grid-template-columns: 30px 1fr; }
  .source-list li { display: grid; }
  .source-list span, .literature-table p { grid-column: 2; text-align: left; }
  .result-actions, .hero-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .timeline article { grid-template-columns: 62px 1fr; }
  .timeline article > span { display: none; }
}


/* Begeleide leerroute + zichtbare casuscontext */
.learn-top { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:14px; }
.learn-top h1 { margin:4px 0 0; font:500 clamp(28px,4vw,46px)/1.05 Georgia,serif; }
.learn-top > b { font-size:24px; color:var(--blue); }
.learn-line { height:5px; margin-bottom:22px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.07); }
.learn-line span { display:block; height:100%; border-radius:inherit; background:var(--blue); transition:width .2s ease; }
.learn-card { max-width:880px; margin:0 auto; padding:clamp(22px,4vw,42px); border:1px solid var(--line); border-radius:22px; background:var(--panel); box-shadow:var(--shadow); }
.learn-card > header { display:grid; grid-template-columns:56px 1fr; gap:16px; align-items:start; padding-bottom:22px; border-bottom:1px solid var(--line); }
.lesson-index { width:52px; height:52px; display:grid; place-items:center; border-radius:15px; color:var(--ink); background:var(--blue); font-weight:900; }
.learn-card h2 { margin:2px 0 0; font:500 clamp(25px,3vw,36px)/1.12 Georgia,serif; }
.learn-copy { padding:22px 0 8px; font-size:15px; line-height:1.78; }
.learn-copy p { margin:0 0 17px; color:#dce6f1; }
.learn-copy ul { margin:12px 0 22px; padding-left:22px; color:#dce6f1; }
.learn-copy li { margin:8px 0; }
.learn-copy blockquote { margin:20px 0; padding:16px 18px; border-left:3px solid var(--gold); border-radius:0 12px 12px 0; color:#f4e7ca; background:rgba(240,180,91,.07); }
.learn-remember { margin:14px 0 22px; padding:16px 18px; border:1px solid rgba(111,181,232,.22); border-radius:14px; background:rgba(111,181,232,.06); }
.learn-remember p:last-child { margin:5px 0 0; color:#dbeaf5; line-height:1.55; }
.learn-card > footer { display:flex; align-items:center; justify-content:space-between; gap:18px; padding-top:20px; border-top:1px solid var(--line); }
.learn-card > footer > span { max-width:440px; color:var(--muted); font-size:12px; line-height:1.5; }
.learn-question-wrap { max-width:920px; margin:0 auto; }
.learn-next { margin-top:16px; width:100%; justify-content:center; }
.learn-complete { max-width:820px; margin:38px auto 0; padding:42px; text-align:center; border:1px solid var(--line); border-radius:22px; background:var(--panel); box-shadow:var(--shadow); }
.learn-complete h1 { margin:8px auto 12px; max-width:680px; font:500 clamp(30px,4vw,48px)/1.08 Georgia,serif; }
.learn-complete > p:not(.kicker) { max-width:640px; margin:0 auto 24px; color:var(--muted); line-height:1.7; }
.complete-mark { width:58px; height:58px; display:grid; place-items:center; margin:0 auto 16px; border-radius:50%; color:#0b2a21; background:var(--green); font-size:25px; font-weight:900; }
.side-link { display:block; margin-top:13px; text-align:center; }

.question-case-label { display:flex; flex-wrap:wrap; align-items:center; gap:8px 11px; margin:4px 0 18px; padding:10px 12px; border-radius:11px; background:rgba(111,181,232,.07); }
.question-case-label span { color:var(--blue); font-size:9px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.question-case-label b { font-size:12px; }
.question-case-label small { color:var(--muted); font-size:10px; }
.inline-case { margin:18px 0 20px; overflow:hidden; border:1px solid rgba(111,181,232,.22); border-radius:14px; background:rgba(9,21,37,.62); }
.inline-case summary { cursor:pointer; list-style:none; padding:14px 16px; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.inline-case summary::-webkit-details-marker { display:none; }
.inline-case summary span { color:var(--blue); font-size:9px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.inline-case summary b { font-size:12px; }
.case-body { padding:0 16px 16px; border-top:1px solid var(--line); }
.case-source { margin:13px 0 8px; color:var(--muted); font-size:10px; font-weight:700; }
.case-body ul { margin:0 0 11px; padding-left:18px; }
.case-body li { margin:7px 0; color:#dce6f1; font-size:12px; line-height:1.55; }

@media (max-width:650px) {
  .learn-top { align-items:flex-start; }
  .learn-top > b { font-size:18px; }
  .learn-card { padding:20px 17px; border-radius:17px; }
  .learn-card > header { grid-template-columns:44px 1fr; gap:12px; }
  .lesson-index { width:42px; height:42px; border-radius:12px; }
  .learn-card > footer { align-items:stretch; flex-direction:column; }
  .learn-card > footer .button { width:100%; justify-content:center; }
  .learn-complete { padding:28px 18px; }
  .inline-case summary { align-items:flex-start; flex-direction:column; }
}


/* E-learning v2: langere lesblokken, daarna drie tentamenvragen */
.learn-intro { max-width:760px; margin:8px 0 0; color:var(--muted); font-size:14px; line-height:1.6; }
.learn-card.long-form { max-width:980px; }
.lesson-route-note { display:grid; gap:5px; margin-bottom:24px; padding:15px 17px; border:1px solid rgba(111,181,232,.24); border-radius:14px; background:rgba(111,181,232,.065); }
.lesson-route-note strong { color:var(--white); font-size:13px; }
.lesson-route-note span { color:var(--muted); font-size:11px; line-height:1.5; }
.guided-objectives { margin:0 0 26px; }
.guided-theory-block { padding:25px 0 23px; border-top:1px solid var(--line); }
.guided-theory-block header { display:grid; grid-template-columns:42px 1fr; gap:12px; align-items:center; margin-bottom:15px; }
.guided-theory-block header span { width:35px; height:35px; display:grid; place-items:center; border-radius:10px; color:var(--ink); background:var(--blue); font-size:10px; font-weight:900; }
.guided-theory-block h2 { margin:0; font:500 clamp(22px,3vw,31px)/1.15 Georgia,serif; }
.guided-theory-block > p { margin:0 0 16px; color:#dce6f1; font-size:15px; line-height:1.8; }
.guided-theory-block ul { margin:10px 0 15px; padding-left:22px; color:#dce6f1; font-size:14px; line-height:1.65; }
.guided-theory-block li { margin:8px 0; }
.guided-theory-block blockquote { margin:18px 0 2px; padding:15px 17px; border-left:3px solid var(--gold); border-radius:0 12px 12px 0; color:#f3e6c8; background:rgba(240,180,91,.07); line-height:1.65; }
.guided-exam-bridge { margin:25px 0 4px; padding:22px; border:1px solid rgba(240,180,91,.22); border-radius:16px; background:rgba(240,180,91,.055); }
.guided-exam-bridge h2 { margin:5px 0 13px; font:500 27px/1.15 Georgia,serif; }
.guided-exam-bridge ol { padding-left:22px; }
.guided-exam-bridge li, .guided-exam-bridge > p:last-child { color:#e4dccb; line-height:1.65; }
.guided-question-tabs { max-width:920px; margin:0 auto 14px; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.guided-question-tabs span { padding:10px 12px; display:flex; align-items:center; gap:8px; border:1px solid var(--line); border-radius:11px; color:var(--muted); background:rgba(255,255,255,.025); font-size:10px; }
.guided-question-tabs span b { width:22px; height:22px; display:grid; place-items:center; border-radius:7px; background:rgba(255,255,255,.07); color:var(--white); font-size:10px; }
.guided-question-tabs span.active { border-color:rgba(111,181,232,.35); color:#dcecf8; background:rgba(111,181,232,.08); }
.guided-question-tabs span.active b { color:var(--ink); background:var(--blue); }
.guided-question-tabs span.done { color:#cdeedf; border-color:rgba(111,208,170,.23); }
.guided-question-tabs span.done b { color:#0a2e23; background:var(--green); }
.exam-question-text { margin:17px 0 12px; }
.exam-question-text p { margin:0 0 15px; color:var(--white); font:500 clamp(18px,2.5vw,24px)/1.42 Georgia,serif; }
.exam-question-text .gevraagd { margin-top:17px; padding:15px 17px; border-left:3px solid var(--blue); border-radius:0 11px 11px 0; color:#dcecf8; background:rgba(111,181,232,.07); font-size:14px; font-weight:650; line-height:1.65; }

@media (max-width:650px) {
  .guided-question-tabs { grid-template-columns:1fr; }
  .guided-question-tabs span:not(.active) { padding-block:8px; }
  .guided-theory-block > p { font-size:14px; line-height:1.72; }
  .guided-exam-bridge { padding:18px 15px; }
}


/* Globale AI-docent */
.efa-tutor-fab {
  position: fixed; z-index: 72; right: 22px; bottom: 22px;
  min-height: 48px; padding: 0 16px 0 10px; display: flex; align-items: center; gap: 9px;
  border: 1px solid rgba(111,181,232,.34); border-radius: 999px;
  color: var(--white); background: rgba(10,25,42,.96); box-shadow: 0 18px 50px rgba(0,0,0,.34);
  font: 750 11px/1 system-ui, sans-serif; cursor: pointer;
}
.efa-tutor-fab:hover { border-color: rgba(111,181,232,.6); transform: translateY(-1px); }
.efa-tutor-fab-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: linear-gradient(135deg,var(--blue),var(--mint)); font-size: 15px; }
.efa-tutor-drawer {
  position: fixed; z-index: 71; top: 14px; right: 14px; bottom: 14px;
  width: min(440px, calc(100vw - 28px)); display: grid; grid-template-rows: auto auto auto minmax(0,1fr) auto auto auto;
  overflow: hidden; border: 1px solid rgba(111,181,232,.25); border-radius: 22px;
  background: rgba(8,18,31,.985); box-shadow: 0 28px 80px rgba(0,0,0,.55);
  transform: translateX(calc(100% + 32px)); opacity: 0; pointer-events: none;
  transition: transform .22s ease, opacity .18s ease;
}
.efa-tutor-drawer.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.efa-tutor-head { padding: 17px 18px; display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; border-bottom: 1px solid var(--line); }
.efa-tutor-head h2 { margin: 1px 0 2px; font: 500 24px/1.05 Georgia,serif; }
.efa-tutor-head small { color: var(--muted); font-size: 9px; }
.efa-tutor-close { width: 34px; height: 34px; border: 0; border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.055); font-size: 23px; cursor: pointer; }
.efa-tutor-close:hover { color: var(--white); background: rgba(255,255,255,.09); }
.efa-tutor-grounding { margin: 11px 14px 0; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(111,208,170,.18); border-radius: 10px; background: rgba(111,208,170,.055); }
.efa-tutor-grounding span { color: var(--mint); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.efa-tutor-grounding b { color: #d7efe5; font-size: 9px; font-weight: 650; text-align: right; }
.efa-tutor-modes { margin: 9px 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.efa-tutor-modes button { padding: 9px 11px; display: grid; gap: 2px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.03); text-align: left; cursor: pointer; }
.efa-tutor-modes button b { color: inherit; font-size: 10px; }
.efa-tutor-modes button small { font-size: 8px; }
.efa-tutor-modes button.active { color: #e3f0fa; border-color: rgba(111,181,232,.34); background: rgba(111,181,232,.09); }
.efa-tutor-log { min-height: 0; padding: 16px 14px 8px; overflow-y: auto; overscroll-behavior: contain; }
.efa-tutor-log article { margin-bottom: 14px; display: grid; grid-template-columns: 27px minmax(0,1fr); gap: 8px; }
.efa-tutor-log article > div { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--ink); background: var(--blue); font-size: 8px; font-weight: 900; }
.efa-tutor-log article.user > div { background: var(--gold); }
.efa-tutor-log article section { min-width: 0; padding: 10px 12px; border-radius: 3px 12px 12px 12px; background: rgba(255,255,255,.05); }
.efa-tutor-log article.user section { background: rgba(240,180,91,.065); }
.efa-tutor-log article p { margin: 0 0 8px; color: #dce6f1; font-size: 12px; line-height: 1.6; }
.efa-tutor-log article p:last-child { margin-bottom: 0; }
.efa-tutor-log article ul { margin: 7px 0; padding-left: 17px; color: #dce6f1; font-size: 12px; line-height: 1.55; }
.efa-tutor-log article code { padding: 1px 4px; border-radius: 4px; background: rgba(255,255,255,.07); }
.efa-tutor-empty { min-height: 220px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.efa-tutor-empty b { color: var(--white); font: 500 21px Georgia,serif; }
.efa-tutor-empty p { max-width: 315px; margin: 8px auto 0; font-size: 11px; line-height: 1.55; }
.stream-cursor { display: inline-block; width: 6px; height: 13px; margin-left: 3px; vertical-align: -2px; border-radius: 2px; background: var(--blue); animation: tutorBlink .8s steps(1) infinite; }
@keyframes tutorBlink { 50% { opacity: .15; } }
.efa-tutor-suggestions { padding: 0 14px 10px; display: flex; gap: 6px; overflow-x: auto; }
.efa-tutor-suggestions button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: transparent; font-size: 8px; cursor: pointer; }
.efa-tutor-suggestions button:hover { color: var(--white); border-color: rgba(111,181,232,.3); }
.efa-tutor-form { padding: 11px 14px; display: grid; grid-template-columns: 1fr auto; gap: 7px; border-top: 1px solid var(--line); background: rgba(255,255,255,.018); }
.efa-tutor-form textarea { min-height: 52px; max-height: 130px; margin: 0; padding: 11px 12px; resize: vertical; }
.efa-tutor-form .button { align-self: stretch; }
.efa-tutor-foot { padding: 0 14px 12px; color: #66798d; font-size: 8px; line-height: 1.45; }
body.efa-tutor-open .efa-tutor-fab { opacity: 0; pointer-events: none; }

.guided-source-deepening { margin: 24px 0 8px; padding: 22px; border: 1px solid rgba(111,208,170,.19); border-radius: 16px; background: rgba(111,208,170,.045); }
.source-deepening-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 12px; }
.source-deepening-head h2 { margin: 4px 0 0; font: 500 27px/1.15 Georgia,serif; }
.source-deepening-head > span { flex: 0 0 auto; padding: 6px 8px; border-radius: 999px; color: var(--mint); background: rgba(111,208,170,.08); font-size: 8px; font-weight: 800; }
.guided-source-deepening > p { margin: 0 0 14px; color: #dce6f1; font-size: 14px; line-height: 1.75; }
.guided-source-deepening ul { padding-left: 20px; color: #dce6f1; font-size: 13px; line-height: 1.65; }
.guided-source-deepening li { margin: 7px 0; }
.guided-source-deepening footer, .source-extension small { display: block; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.06); color: #718499; font-size: 8px; line-height: 1.45; }
.source-extension > header > span { color: #0b2a21 !important; background: var(--mint) !important; }

@media (max-width: 650px) {
  .efa-tutor-fab { right: 14px; bottom: 14px; }
  .efa-tutor-drawer { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; }
  .efa-tutor-head { padding-top: max(16px, env(safe-area-inset-top)); }
  .efa-tutor-form { padding-bottom: max(11px, env(safe-area-inset-bottom)); }
  .source-deepening-head { flex-direction: column; }
}


/* E-learning v3: klikbare micro-lessen */
.micro-learning-top { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:2px 0 13px; }
.micro-learning-top h1 { margin:4px 0 0; max-width:820px; font:500 clamp(26px,4vw,43px)/1.05 Georgia,serif; }
.micro-progress-label { flex:0 0 auto; min-width:68px; text-align:right; }
.micro-progress-label b { display:block; color:var(--blue); font:700 21px Georgia,serif; }
.micro-progress-label span { color:var(--muted); font-size:9px; }
.micro-line { margin-bottom:28px; }
.micro-card {
  max-width:820px; min-height:500px; margin:0 auto; padding:clamp(24px,4.5vw,46px);
  display:flex; flex-direction:column; border:1px solid var(--line); border-radius:24px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.022));
  box-shadow:var(--shadow); animation:microPageIn .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes microPageIn { from { opacity:0; transform:translateY(10px) scale(.995); } to { opacity:1; transform:none; } }
.micro-intro { justify-content:center; }
.micro-intro > h2, .exam-bridge-card > h2 { margin:7px 0 13px; font:500 clamp(30px,4vw,47px)/1.05 Georgia,serif; }
.micro-intro > p:not(.kicker), .exam-bridge-card > p:not(.kicker) { max-width:680px; color:#d8e3ee; font-size:15px; line-height:1.75; }
.micro-icon { width:56px; height:56px; margin-bottom:18px; display:grid; place-items:center; border-radius:17px; color:var(--ink); background:linear-gradient(135deg,var(--blue),var(--mint)); font-size:24px; font-weight:900; }
.micro-icon.exam { background:linear-gradient(135deg,var(--gold),var(--mint)); }
.lesson-stats { margin:22px 0; display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.lesson-stats span { padding:12px; border:1px solid var(--line); border-radius:12px; color:var(--muted); background:rgba(255,255,255,.025); font-size:9px; }
.lesson-stats b { display:block; margin-bottom:3px; color:var(--white); font-size:15px; }
.micro-objectives { margin:4px 0 0; }
.micro-card-head { display:grid; grid-template-columns:50px minmax(0,1fr); gap:14px; align-items:center; padding-bottom:20px; border-bottom:1px solid var(--line); }
.micro-card-head h2 { margin:3px 0 0; font:500 clamp(25px,3.5vw,36px)/1.1 Georgia,serif; }
.micro-step-number { width:46px; height:46px; display:grid; place-items:center; border-radius:14px; color:var(--ink); background:var(--blue); font-size:12px; font-weight:900; }
.micro-step-number.activity { background:linear-gradient(135deg,var(--gold),var(--mint)); }
.micro-copy { padding:30px 0 18px; }
.micro-copy p { margin:0; max-width:760px; color:#edf3f8; font:400 clamp(16px,1.8vw,19px)/1.82 system-ui,sans-serif; }
.micro-copy p + p { margin-top:16px; }
.micro-key-points { max-width:760px; margin:4px 0 20px; padding:16px 18px; border:1px solid rgba(111,181,232,.13); border-radius:13px; background:rgba(111,181,232,.035); }
.micro-key-points h3 { margin:0 0 9px; color:#a9cbe3; font-size:10px; letter-spacing:.1em; text-transform:uppercase; }
.micro-key-points ul { margin:0; padding-left:20px; }
.micro-key-points li { margin:6px 0; color:#dce7f1; font-size:13px; line-height:1.6; }
.micro-points { margin:3px 0 18px; display:grid; gap:8px; }
.micro-points > div { padding:10px 12px; display:grid; grid-template-columns:22px 1fr; gap:9px; border-radius:10px; background:rgba(111,181,232,.055); }
.micro-points span { color:var(--mint); font-weight:900; }
.micro-points p { margin:0; color:#dce7f1; font-size:13px; line-height:1.5; }
.micro-callout { margin:8px 0 18px; padding:15px 16px; border-left:3px solid var(--gold); border-radius:0 12px 12px 0; background:rgba(240,180,91,.065); }
.micro-callout span { display:block; margin-bottom:4px; color:var(--gold); font-size:8px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.micro-callout p { margin:0; color:#f1e6cd; line-height:1.6; }
.micro-source { border-color:rgba(111,208,170,.21); background:linear-gradient(180deg,rgba(111,208,170,.045),rgba(255,255,255,.02)); }
.micro-source .micro-step-number { background:var(--mint); }
.micro-source-label { margin-top:auto; padding-top:17px; color:#6f8499; font-size:8px; border-top:1px solid rgba(255,255,255,.06); }

.micro-nav { margin-top:auto; padding-top:25px; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; border-top:1px solid var(--line); }
.micro-nav > span { color:var(--muted); font-size:9px; text-align:center; }
.micro-nav button[disabled] { opacity:.38; cursor:not-allowed; }

.activity-card { min-height:540px; }
.activity-instruction { margin:20px 0; color:#dce7f1; font-size:14px; line-height:1.65; }
.micro-choice { display:grid; gap:9px; margin:5px 0 20px; }
.micro-choice button { padding:13px 14px; display:grid; grid-template-columns:31px 1fr; gap:10px; align-items:center; border:1px solid var(--line); border-radius:12px; color:#dce7f1; background:rgba(255,255,255,.025); text-align:left; cursor:pointer; transition:.16s ease; }
.micro-choice button:hover { transform:translateX(2px); border-color:rgba(111,181,232,.35); }
.micro-choice button span { width:28px; height:28px; display:grid; place-items:center; border-radius:8px; color:var(--muted); background:rgba(255,255,255,.055); font-size:9px; font-weight:900; }
.micro-choice button.correct { border-color:rgba(111,208,170,.45); background:rgba(111,208,170,.09); }
.micro-choice button.correct span { color:#08251d; background:var(--mint); }
.micro-choice button.wrong { border-color:rgba(255,155,150,.38); background:rgba(255,155,150,.07); animation:microShake .24s linear; }
@keyframes microShake { 25% { transform:translateX(-4px); } 75% { transform:translateX(4px); } }

.order-pool { display:flex; flex-wrap:wrap; gap:7px; margin:4px 0 14px; }
.order-pool button { padding:9px 11px; border:1px solid var(--line); border-radius:9px; color:#dce7f1; background:rgba(255,255,255,.03); cursor:pointer; }
.order-pool button:disabled { opacity:.28; }
.order-answer { min-height:100px; padding:12px; display:flex; flex-wrap:wrap; align-content:flex-start; gap:7px; border:1px dashed rgba(111,181,232,.28); border-radius:12px; background:rgba(111,181,232,.03); }
.order-answer > span { padding:8px 10px; border-radius:9px; color:#dce7f1; background:rgba(111,181,232,.09); font-size:10px; }
.order-answer > span b { margin-right:6px; color:var(--blue); }
.activity-controls { margin:11px 0 4px; display:flex; justify-content:flex-end; gap:7px; }

.micro-match { display:grid; gap:8px; margin-bottom:14px; }
.micro-match label { padding:10px 11px; display:grid; grid-template-columns:minmax(0,1fr) minmax(150px,.65fr); gap:10px; align-items:center; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.025); }
.micro-match label > span { color:#dce7f1; font-size:11px; line-height:1.45; }
.micro-match select { width:100%; padding:9px 10px; border:1px solid rgba(255,255,255,.1); border-radius:8px; color:var(--white); background:#102338; font-size:10px; }
.activity-success, .activity-try { margin:9px 0 3px; padding:12px 14px; display:grid; gap:3px; border-radius:11px; }
.activity-success { color:#d8f2e8; border:1px solid rgba(111,208,170,.24); background:rgba(111,208,170,.07); animation:microPop .2s ease both; }
.activity-try { color:#f7ddda; border:1px solid rgba(255,155,150,.2); background:rgba(255,155,150,.055); }
@keyframes microPop { from { transform:scale(.985); opacity:.2; } to { transform:none; opacity:1; } }
.activity-success b, .activity-try b { font-size:10px; }
.activity-success span, .activity-try span { font-size:10px; line-height:1.45; }

.exam-tip-list { margin:20px 0 10px; display:grid; gap:8px; }
.exam-tip-list > div { padding:12px 13px; display:grid; grid-template-columns:30px 1fr; gap:10px; align-items:start; border:1px solid var(--line); border-radius:11px; background:rgba(255,255,255,.025); }
.exam-tip-list b { width:27px; height:27px; display:grid; place-items:center; border-radius:8px; color:var(--ink); background:var(--gold); font-size:9px; }
.exam-tip-list p { margin:3px 0 0; color:#dce7f1; font-size:11px; line-height:1.55; }
.micro-question-tabs { margin-top:4px; }
.micro-question { animation:microPageIn .28s ease both; }
.micro-complete { animation:microPageIn .32s ease both; }

@media (max-width:650px) {
  .micro-learning-top { align-items:flex-start; }
  .micro-progress-label b { font-size:18px; }
  .micro-card { min-height:calc(100vh - 185px); padding:22px 16px; border-radius:17px; }
  .micro-card-head { grid-template-columns:42px 1fr; }
  .micro-step-number { width:39px; height:39px; border-radius:11px; }
  .lesson-stats { grid-template-columns:1fr; }
  .micro-nav { grid-template-columns:1fr 1fr; }
  .micro-nav > span { grid-column:1 / -1; grid-row:1; }
  .micro-nav #microPrevious { grid-column:1; }
  .micro-nav #microNext { grid-column:2; }
  .micro-match label { grid-template-columns:1fr; }
  .activity-controls { align-items:stretch; flex-direction:column; }
}


.recall-card > h2 { margin:7px 0 12px; font:500 clamp(30px,4vw,44px)/1.05 Georgia,serif; }
.recall-prompt { max-width:660px; margin:0 0 20px; color:#dce7f1; font-size:15px; line-height:1.72; }
.recall-reveal { align-self:flex-start; margin-bottom:14px; }
.recall-answer { display:grid; gap:8px; margin:4px 0 18px; animation:microPop .22s ease both; }
.recall-answer[hidden] { display:none; }
.recall-answer > div { padding:11px 12px; display:grid; grid-template-columns:29px 1fr; gap:9px; align-items:start; border:1px solid rgba(111,181,232,.16); border-radius:10px; background:rgba(111,181,232,.045); }
.recall-answer b { width:26px; height:26px; display:grid; place-items:center; border-radius:8px; color:var(--ink); background:var(--blue); font-size:9px; }
.recall-answer p { margin:3px 0 0; color:#dce7f1; font-size:11px; line-height:1.5; }
