/*
 * CGS Proactief Leren – front-end UI
 * All styles are deliberately scoped to .cgspb-shell so the plugin does not
 * alter the theme or other plugins on DocentenTools.nl.
 */
.cgspb-shell{
  --cgspb-purple:#6d22ff;
  --cgspb-purple-2:#8a48ff;
  --cgspb-purple-dark:#4515ad;
  --cgspb-orange:#ff7900;
  --cgspb-orange-2:#ff9a35;
  --cgspb-ink:#171321;
  --cgspb-muted:#746f7e;
  --cgspb-line:#ece8f3;
  --cgspb-soft:#f8f6fc;
  --cgspb-white:#fff;
  --cgspb-ok:#1d8d66;
  --cgspb-warn:#b46600;
  --cgspb-shadow:0 18px 55px rgba(64,30,111,.10);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--cgspb-ink);
  max-width:1180px;
  margin:28px auto;
  padding:0 18px;
  box-sizing:border-box;
}
.cgspb-shell *{box-sizing:border-box}
.cgspb-shell h1,.cgspb-shell h2,.cgspb-shell h3,.cgspb-shell p{margin-top:0}
.cgspb-shell h1{font-size:clamp(34px,5vw,54px);line-height:1.02;margin-bottom:13px;letter-spacing:-.035em;font-weight:850}
.cgspb-shell h2{font-size:clamp(23px,3vw,31px);line-height:1.14;letter-spacing:-.02em}
.cgspb-shell h3{font-size:20px;line-height:1.25;letter-spacing:-.01em}
.cgspb-shell a{text-decoration:none}
.cgspb-shell .dashicons{line-height:1}
.cgspb-shell .cgspb-kicker{font-size:11px;font-weight:900;letter-spacing:.15em;color:var(--cgspb-purple);margin:0 0 7px;text-transform:uppercase}
.cgspb-shell .cgspb-muted{color:var(--cgspb-muted)}

/* Hero / brand header */
.cgspb-shell .cgspb-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(128deg,var(--cgspb-purple) 0%,#772bff 46%,var(--cgspb-purple-2) 100%);
  color:#fff;
  border-radius:30px;
  padding:36px 38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  box-shadow:0 22px 60px rgba(91,31,220,.23);
  border:1px solid rgba(255,255,255,.15);
}
.cgspb-shell .cgspb-hero:before,.cgspb-shell .cgspb-hero:after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none}
.cgspb-shell .cgspb-hero:before{width:360px;height:360px;left:-150px;top:-230px;background:rgba(255,255,255,.055)}
.cgspb-shell .cgspb-hero:after{width:330px;height:330px;right:-115px;bottom:-230px;border:54px solid rgba(255,255,255,.07)}
.cgspb-shell .cgspb-hero h1,.cgspb-shell .cgspb-hero h2,.cgspb-shell .cgspb-hero h3{color:#fff!important}
.cgspb-shell .cgspb-hero p{max-width:760px;color:rgba(255,255,255,.88)!important;margin-bottom:0;font-size:15.5px;line-height:1.55}
.cgspb-shell .cgspb-hero .cgspb-kicker{color:#ffd2aa!important;margin:0 0 7px}
.cgspb-shell .cgspb-hero-copy{position:relative;z-index:2}
.cgspb-shell .cgspb-hero-eyebrow{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px);font-size:10px;font-weight:850;letter-spacing:.12em;margin-bottom:15px;color:#fff}
.cgspb-shell .cgspb-dot{width:7px;height:7px;border-radius:50%;background:var(--cgspb-orange);box-shadow:0 0 0 4px rgba(255,121,0,.18)}
.cgspb-shell .cgspb-hero.is-teacher{margin-bottom:18px}

/* Buttons */
.cgspb-shell .cgspb-btn{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  border-radius:14px;
  min-height:44px;
  padding:11px 16px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,opacity .18s ease;
  font-size:14px;
  line-height:1.2;
  text-decoration:none!important;
  white-space:nowrap;
}
.cgspb-shell .cgspb-btn:hover{transform:translateY(-2px)}
.cgspb-shell .cgspb-btn:active{transform:translateY(0)}
.cgspb-shell .cgspb-btn:disabled{opacity:.38;cursor:not-allowed;transform:none;box-shadow:none}
.cgspb-shell .cgspb-btn.is-primary{background:linear-gradient(135deg,var(--cgspb-orange),var(--cgspb-orange-2));color:#fff!important;box-shadow:0 10px 24px rgba(255,121,0,.23)}
.cgspb-shell .cgspb-btn.is-primary:hover{box-shadow:0 14px 30px rgba(255,121,0,.31)}
.cgspb-shell .cgspb-btn.is-ghost{background:#f2edfb;color:var(--cgspb-purple-dark)!important;border:1px solid #e5dcf5}
.cgspb-shell .cgspb-btn.is-ghost:hover{background:#eae1fa}
.cgspb-shell .cgspb-btn.is-light{background:#fff;color:var(--cgspb-purple-dark)!important;box-shadow:0 8px 24px rgba(45,18,99,.14)}
.cgspb-shell .cgspb-btn.is-hero-action{position:relative;z-index:2;background:rgba(255,255,255,.96);color:var(--cgspb-purple-dark)!important;box-shadow:0 14px 34px rgba(40,16,88,.20);border:1px solid rgba(255,255,255,.75);padding:13px 18px}
.cgspb-shell .cgspb-btn.is-hero-action .dashicons{color:var(--cgspb-orange)}
.cgspb-shell .cgspb-btn.is-small{padding:8px 11px;min-height:36px;font-size:12px;border-radius:10px}
.cgspb-shell .cgspb-btn.is-link{background:transparent;color:var(--cgspb-purple)!important;padding:7px 2px;min-height:0}

/* Native new-class toggle: works without JavaScript */
.cgspb-shell .cgspb-create-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;overflow:hidden!important}
.cgspb-shell .cgspb-collapsible{display:none}
.cgspb-shell .cgspb-create-toggle:checked + .cgspb-collapsible{display:block;animation:cgspbOpen .22s ease-out both}
@keyframes cgspbOpen{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}
.cgspb-shell .cgspb-create-panel{margin:0 0 18px}
.cgspb-shell .cgspb-create-form{border:1px solid #e5daf8;background:linear-gradient(180deg,#fff 0%,#fbf9ff 100%);box-shadow:0 15px 46px rgba(71,37,123,.09);padding:22px 24px}
.cgspb-shell .cgspb-create-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:16px}
.cgspb-shell .cgspb-create-head h3{margin-bottom:3px}
.cgspb-shell .cgspb-create-head p:last-child{margin-bottom:0}
.cgspb-shell .cgspb-create-icon,.cgspb-shell .cgspb-empty-icon{width:48px;height:48px;min-width:48px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#f1e9ff,#fff2e7);color:var(--cgspb-purple)}
.cgspb-shell .cgspb-create-icon .dashicons,.cgspb-shell .cgspb-empty-icon .dashicons{font-size:24px;width:24px;height:24px}
.cgspb-shell .cgspb-create-row{align-items:end}
.cgspb-shell .cgspb-grow{flex:1;min-width:220px}
.cgspb-shell .cgspb-create-row label>span{font-size:12px;font-weight:800;color:#514a5b;margin-bottom:6px;display:block}
.cgspb-shell .cgspb-btn.is-create{min-height:48px;padding-left:20px;padding-right:20px}

/* Progress */
.cgspb-shell .cgspb-progress-ring{--p:0;width:112px;height:112px;min-width:112px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--cgspb-orange) calc(var(--p)*1%),rgba(255,255,255,.16) 0);position:relative;z-index:1;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.cgspb-shell .cgspb-progress-ring:before{content:"";position:absolute;inset:9px;border-radius:50%;background:rgba(72,20,180,.92)}
.cgspb-shell .cgspb-progress-ring div{position:relative;z-index:2;text-align:center}
.cgspb-shell .cgspb-progress-ring strong{display:block;font-size:25px;color:#fff}
.cgspb-shell .cgspb-progress-ring span{font-size:11px;color:rgba(255,255,255,.76)}

/* Section headings + lesson grid */
.cgspb-shell .cgspb-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:28px 0 14px}
.cgspb-shell .cgspb-section-head h2{margin-bottom:0}
.cgspb-shell .cgspb-lesson-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.cgspb-shell .cgspb-lesson-card{border:1px solid var(--cgspb-line);border-radius:22px;padding:20px;background:#fff;min-height:230px;display:flex;flex-direction:column;box-shadow:0 8px 26px rgba(50,25,85,.05);transition:.2s transform,.2s box-shadow,.2s border-color;position:relative;overflow:hidden}
.cgspb-shell .cgspb-lesson-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(var(--cgspb-purple),var(--cgspb-orange));opacity:.75}
.cgspb-shell .cgspb-lesson-card.is-open:hover{transform:translateY(-4px);box-shadow:0 16px 38px rgba(70,30,125,.11);border-color:#ded2f1}
.cgspb-shell .cgspb-lesson-card.is-locked{background:#f8f7fa;color:#898291}
.cgspb-shell .cgspb-lesson-card.is-locked:before{background:#d4cedd}
.cgspb-shell .cgspb-lesson-card h3{font-size:22px;margin:14px 0 9px}
.cgspb-shell .cgspb-lesson-card p{color:var(--cgspb-muted);line-height:1.55}
.cgspb-shell .cgspb-card-top,.cgspb-shell .cgspb-card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px}
.cgspb-shell .cgspb-card-foot{margin-top:auto;padding-top:16px;color:var(--cgspb-muted);font-size:13px}
.cgspb-shell .cgspb-card-foot>span{display:flex;align-items:center;gap:5px}
.cgspb-shell .cgspb-lesson-no{font-size:11px;font-weight:900;letter-spacing:.12em;color:var(--cgspb-purple)}

/* Status pills */
.cgspb-shell .cgspb-status{font-size:11px;font-weight:800;border-radius:999px;padding:6px 9px;background:#f0edf4;color:#6c6475}
.cgspb-shell .cgspb-status.is-progress{background:#fff0df;color:#9b5700}
.cgspb-shell .cgspb-status.is-submitted{background:#eee8ff;color:#5c31bc}
.cgspb-shell .cgspb-status.is-approved{background:#e5f6ef;color:#176447}
.cgspb-shell .cgspb-status.is-needswork{background:#fff0de;color:#925306}

/* Lesson content */
.cgspb-shell .cgspb-back{display:inline-flex;gap:6px;align-items:center;color:var(--cgspb-purple);margin:0 0 14px;font-weight:700}
.cgspb-shell .cgspb-lesson-hero{background:linear-gradient(135deg,#f6f1ff,#fff6ee);border:1px solid #e8dff3;border-radius:24px;padding:28px;margin-bottom:14px;position:relative;overflow:hidden}
.cgspb-shell .cgspb-lesson-hero:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;right:-60px;top:-70px;background:rgba(109,34,255,.07)}
.cgspb-shell .cgspb-lesson-hero h1{margin:8px 0 10px;color:var(--cgspb-ink)!important}
.cgspb-shell .cgspb-lesson-hero p{margin:0;color:var(--cgspb-muted);display:flex;align-items:center;gap:5px}
.cgspb-shell .cgspb-goal{border-radius:20px;padding:22px 24px;background:linear-gradient(130deg,var(--cgspb-purple-dark),var(--cgspb-purple));color:#fff;display:flex;gap:16px;align-items:flex-start;margin-bottom:14px;box-shadow:0 12px 35px rgba(76,20,180,.15)}
.cgspb-shell .cgspb-goal>.dashicons{font-size:28px;width:28px;height:28px;color:#ffb16b}
.cgspb-shell .cgspb-goal .cgspb-kicker{color:#ffd2aa}
.cgspb-shell .cgspb-goal h2{margin:0;font-size:23px;color:#fff!important}
.cgspb-shell .cgspb-content-card,.cgspb-shell .cgspb-panel{background:#fff;border:1px solid var(--cgspb-line);border-radius:20px;padding:24px;margin:14px 0;display:flex;gap:18px;box-shadow:0 7px 24px rgba(64,30,111,.045)}
.cgspb-shell .cgspb-content-card.is-practice{border-left:5px solid var(--cgspb-purple)}
.cgspb-shell .cgspb-content-card.is-evidence{border-left:5px solid var(--cgspb-orange)}
.cgspb-shell .cgspb-section-icon{width:44px;height:44px;min-width:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#efe8ff,#fff2e7);color:var(--cgspb-purple)}
.cgspb-shell .cgspb-section-icon .dashicons{font-size:23px;width:23px;height:23px}
.cgspb-shell .cgspb-content-card>div:last-child{min-width:0}
.cgspb-shell .cgspb-richtext{line-height:1.7}
.cgspb-shell .cgspb-richtext img{max-width:100%;height:auto;border-radius:14px}
.cgspb-shell .cgspb-video{position:relative;width:100%;max-width:880px;aspect-ratio:16/9;border-radius:16px;overflow:hidden;background:#0d0a14;box-shadow:0 12px 30px rgba(30,15,50,.12)}
.cgspb-shell .cgspb-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Forms */
.cgspb-shell .cgspb-form{display:grid;gap:14px}
.cgspb-shell .cgspb-form label{display:grid;gap:6px;font-weight:750}
.cgspb-shell .cgspb-form input[type=text],.cgspb-shell .cgspb-form input[type=email],.cgspb-shell .cgspb-form input[type=password],.cgspb-shell .cgspb-form input[type=file],.cgspb-shell .cgspb-form textarea,.cgspb-shell .cgspb-form select,.cgspb-shell .cgspb-inline-form input{width:100%;border:1px solid #dcd5e6;border-radius:13px;background:#fff;padding:12px 13px;color:var(--cgspb-ink);font:inherit;outline:none;min-height:46px;transition:border-color .16s,box-shadow .16s}
.cgspb-shell .cgspb-form textarea{resize:vertical}
.cgspb-shell .cgspb-form input:focus,.cgspb-shell .cgspb-form textarea:focus,.cgspb-shell .cgspb-form select:focus,.cgspb-shell .cgspb-inline-form input:focus{border-color:#a27cf0;box-shadow:0 0 0 4px rgba(109,34,255,.10)}
.cgspb-shell .cgspb-form small,.cgspb-shell .cgspb-filehint{font-weight:400;color:var(--cgspb-muted);font-size:12px}
.cgspb-shell .cgspb-form-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.cgspb-shell .cgspb-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.cgspb-shell .cgspb-inline-form{display:flex;gap:10px;align-items:center}
.cgspb-shell .cgspb-code-input{text-transform:uppercase;letter-spacing:.12em;font-weight:800}
.cgspb-shell .cgspb-existing{padding:12px;border-radius:13px;background:var(--cgspb-soft)}
.cgspb-shell .cgspb-evidence-list{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.cgspb-shell .cgspb-evidence-list a{display:inline-flex;align-items:center;gap:5px;padding:8px 10px;border-radius:10px;background:#f1ecfb;color:var(--cgspb-purple-dark);font-size:12px;font-weight:700}
.cgspb-shell .cgspb-feedback{padding:13px 14px;border-radius:12px;margin:12px 0}
.cgspb-shell .cgspb-feedback.is-warning{background:#fff1df;color:#7a4a0c}
.cgspb-shell .cgspb-feedback.is-ok{background:#e9f7ef;color:#1f694d}
.cgspb-shell .cgspb-feedback p{margin:4px 0 0}

/* Auth / empty states */
.cgspb-shell.cgspb-auth-shell{min-height:65vh;display:grid;place-items:center}
.cgspb-shell .cgspb-auth-card{width:min(520px,100%);background:#fff;border:1px solid var(--cgspb-line);border-radius:28px;padding:30px;box-shadow:var(--cgspb-shadow);position:relative;overflow:hidden}
.cgspb-shell .cgspb-auth-card:before{content:"";position:absolute;left:0;right:0;top:0;height:6px;background:linear-gradient(90deg,var(--cgspb-purple),var(--cgspb-orange))}
.cgspb-shell .cgspb-brandmark{width:56px;height:56px;border-radius:17px;background:linear-gradient(145deg,var(--cgspb-purple),var(--cgspb-purple-2));color:#fff;display:grid;place-items:center;margin-bottom:16px;box-shadow:0 10px 25px rgba(109,34,255,.18)}
.cgspb-shell .cgspb-brandmark .dashicons{font-size:30px;width:30px;height:30px}
.cgspb-shell .cgspb-loginlink{text-align:center;margin:16px 0 0;color:var(--cgspb-muted);font-size:13px}
.cgspb-shell .cgspb-empty,.cgspb-shell .cgspb-soft-empty{border:1px dashed #d9cfea;background:linear-gradient(180deg,#fbf9ff,#fff);border-radius:22px;padding:36px;text-align:center}
.cgspb-shell .cgspb-empty-teacher{padding:46px 28px;box-shadow:0 8px 28px rgba(67,34,111,.04)}
.cgspb-shell .cgspb-empty .cgspb-brandmark,.cgspb-shell .cgspb-empty .cgspb-empty-icon{margin-left:auto;margin-right:auto}
.cgspb-shell .cgspb-empty h3{font-size:23px;margin-bottom:8px}
.cgspb-shell .cgspb-empty p{max-width:620px;margin-left:auto;margin-right:auto;color:var(--cgspb-muted);line-height:1.55}
.cgspb-shell .cgspb-empty .cgspb-btn{margin-top:7px}
.cgspb-shell .cgspb-soft-empty{padding:22px;color:var(--cgspb-muted)}
.cgspb-shell .cgspb-notice{padding:12px 14px;border-radius:12px;background:#f1edfb;margin-bottom:14px;color:#51456a}
.cgspb-shell .cgspb-notice.is-error{background:#fff0ed;color:#8b3328}

/* Tabs / class selector */
.cgspb-shell .cgspb-tabs-wrap{margin:22px 0 8px;padding:18px 20px;border:1px solid var(--cgspb-line);border-radius:20px;background:#fff;box-shadow:0 6px 20px rgba(54,26,91,.04)}
.cgspb-shell .cgspb-class-switch,.cgspb-shell .cgspb-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 0}
.cgspb-shell .cgspb-class-switch a,.cgspb-shell .cgspb-tabs a{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:12px;background:#f3eff9;color:#665d70;font-size:13px;font-weight:800;border:1px solid transparent;transition:.16s}
.cgspb-shell .cgspb-class-switch a:hover,.cgspb-shell .cgspb-tabs a:hover{color:var(--cgspb-purple);border-color:#dfd2f3;background:#f8f4ff}
.cgspb-shell .cgspb-class-switch a.is-active,.cgspb-shell .cgspb-tabs a.is-active{background:linear-gradient(135deg,var(--cgspb-purple),var(--cgspb-purple-2));color:#fff!important;box-shadow:0 8px 20px rgba(109,34,255,.18)}

/* Teacher dashboard */
.cgspb-shell .cgspb-teacher-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}
.cgspb-shell .cgspb-stat{background:#fff;border:1px solid var(--cgspb-line);border-radius:18px;padding:17px 18px;box-shadow:0 6px 20px rgba(54,26,91,.04);position:relative;overflow:hidden}
.cgspb-shell .cgspb-stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(var(--cgspb-purple),var(--cgspb-orange))}
.cgspb-shell .cgspb-stat>span{display:block;color:var(--cgspb-muted);font-size:10px;text-transform:uppercase;font-weight:900;letter-spacing:.1em;margin-bottom:7px}
.cgspb-shell .cgspb-stat>strong{display:block;font-size:19px;color:var(--cgspb-ink)}
.cgspb-shell .cgspb-code{letter-spacing:.13em;color:var(--cgspb-purple)!important}
.cgspb-shell .cgspb-copy{border:0;background:transparent;padding:5px 0 0;color:var(--cgspb-orange);cursor:pointer;font-size:11px;font-weight:800}
.cgspb-shell .cgspb-control-row,.cgspb-shell .cgspb-row-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.cgspb-shell .cgspb-panel{display:block}
.cgspb-shell .cgspb-panel>.cgspb-section-head:first-child{margin-top:0}
.cgspb-shell .cgspb-panel>.cgspb-section-head:last-child{margin-bottom:0}
.cgspb-shell .cgspb-table-wrap{width:100%;overflow:auto;border-radius:14px}
.cgspb-shell .cgspb-table{width:100%;border-collapse:separate;border-spacing:0}
.cgspb-shell .cgspb-table th,.cgspb-shell .cgspb-table td{text-align:left;padding:14px 11px;border-bottom:1px solid var(--cgspb-line);vertical-align:middle}
.cgspb-shell .cgspb-table th{font-size:10px;letter-spacing:.09em;text-transform:uppercase;color:#8a8292;font-weight:900;background:#faf8fd}
.cgspb-shell .cgspb-table th:first-child{border-radius:10px 0 0 10px}.cgspb-shell .cgspb-table th:last-child{border-radius:0 10px 10px 0}
.cgspb-shell .cgspb-table td small{display:block;color:var(--cgspb-muted);margin-top:3px}
.cgspb-shell .cgspb-mini-progress{height:8px;background:#eee8f5;border-radius:99px;overflow:hidden;min-width:120px}
.cgspb-shell .cgspb-mini-progress span{display:block;height:100%;background:linear-gradient(90deg,var(--cgspb-purple),var(--cgspb-orange));border-radius:99px}
.cgspb-shell .cgspb-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;width:100%}
.cgspb-shell .cgspb-review-card{border:1px solid var(--cgspb-line);border-radius:18px;padding:18px;background:linear-gradient(180deg,#fff,#fdfbff);box-shadow:0 6px 20px rgba(54,26,91,.035)}
.cgspb-shell .cgspb-review-card .cgspb-answer{padding:12px;border-radius:12px;background:#fff;border:1px solid var(--cgspb-line);margin:10px 0;font-size:13px;line-height:1.5}
.cgspb-shell .cgspb-review-card .cgspb-form{margin-top:13px}

@media(max-width:900px){
  .cgspb-shell .cgspb-lesson-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cgspb-shell .cgspb-teacher-summary{grid-template-columns:repeat(2,1fr)}
  .cgspb-shell .cgspb-review-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .cgspb-shell{padding:0 12px;margin:16px auto}
  .cgspb-shell .cgspb-hero{padding:28px 22px;border-radius:24px;align-items:flex-start;flex-direction:column}
  .cgspb-shell .cgspb-btn.is-hero-action{width:100%}
  .cgspb-shell .cgspb-progress-ring{display:none}
  .cgspb-shell .cgspb-lesson-grid{grid-template-columns:1fr}
  .cgspb-shell .cgspb-section-head{align-items:flex-start;flex-direction:column}
  .cgspb-shell .cgspb-content-card{padding:18px;gap:12px}
  .cgspb-shell .cgspb-section-icon{width:38px;height:38px;min-width:38px}
  .cgspb-shell .cgspb-grid-2{grid-template-columns:1fr}
  .cgspb-shell .cgspb-inline-form{align-items:stretch;flex-direction:column}
  .cgspb-shell .cgspb-teacher-summary{grid-template-columns:1fr 1fr}
  .cgspb-shell .cgspb-control-row{width:100%}
  .cgspb-shell .cgspb-control-row form{flex:1}
  .cgspb-shell .cgspb-control-row .cgspb-btn{width:100%}
  .cgspb-shell .cgspb-form-actions>.cgspb-btn{flex:1}
  .cgspb-shell .cgspb-auth-card{padding:24px}
  .cgspb-shell .cgspb-table{min-width:700px}
  .cgspb-shell .cgspb-create-form{padding:20px}
  .cgspb-shell .cgspb-create-head{gap:11px}
}
@media(max-width:450px){
  .cgspb-shell .cgspb-teacher-summary{grid-template-columns:1fr}
}

/* v0.3 – lesson resources, questions, inline media and mobile student UX */
.cgspb-shell .cgspb-card-fill{width:100%;min-width:0}
.cgspb-shell .cgspb-resource-grid{display:grid;gap:10px;margin-top:14px}
.cgspb-shell .cgspb-resource-item{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px 12px;border:1px solid var(--cgspb-line);border-radius:14px;background:linear-gradient(180deg,#fff,#fdfbff)}
.cgspb-shell .cgspb-resource-item.is-compact{margin:9px 0;background:#faf7ff}
.cgspb-shell .cgspb-resource-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#efe7ff,#fff0e4);color:var(--cgspb-purple)}
.cgspb-shell .cgspb-resource-icon .dashicons{font-size:22px;width:22px;height:22px}
.cgspb-shell .cgspb-resource-info{min-width:0}
.cgspb-shell .cgspb-resource-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.cgspb-shell .cgspb-resource-info small{display:block;color:var(--cgspb-muted);font-size:11px;margin-top:2px}
.cgspb-shell .cgspb-resource-action{display:flex;align-items:center;justify-content:flex-end;min-width:0}
.cgspb-shell .cgspb-resource-action audio{width:min(320px,38vw);height:38px}

.cgspb-shell .cgspb-question-section{margin:22px 0}
.cgspb-shell .cgspb-question-count{display:inline-flex;align-items:center;padding:7px 11px;border-radius:999px;background:#f0e9fb;color:var(--cgspb-purple-dark);font-size:12px;font-weight:850}
.cgspb-shell .cgspb-question-list{display:grid;gap:14px}
.cgspb-shell .cgspb-question-card{display:grid;grid-template-columns:46px minmax(0,1fr);gap:15px;padding:20px;border:1px solid var(--cgspb-line);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(63,29,107,.045)}
.cgspb-shell .cgspb-question-number{width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,var(--cgspb-purple),var(--cgspb-purple-2));color:#fff;font-size:18px;font-weight:900;box-shadow:0 8px 18px rgba(109,34,255,.18)}
.cgspb-shell .cgspb-question-body{min-width:0}
.cgspb-shell .cgspb-question-text{font-weight:800;font-size:18px;line-height:1.45;margin:4px 0 16px!important;color:var(--cgspb-ink)!important}
.cgspb-shell .cgspb-question-resources{margin:12px 0}
.cgspb-shell .cgspb-answer-field{display:grid;gap:7px;margin-top:12px}
.cgspb-shell .cgspb-answer-field>span{font-size:12px;font-weight:850;color:#574d63}
.cgspb-shell .cgspb-choice-list{display:grid;gap:9px;margin-top:12px}
.cgspb-shell .cgspb-choice{display:grid!important;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:9px;padding:12px 13px;border:1px solid #e2d9ec;border-radius:13px;background:#fff;font-weight:650!important;cursor:pointer;transition:.16s border-color,.16s background,.16s transform}
.cgspb-shell .cgspb-choice:hover{border-color:#bea4eb;background:#faf7ff;transform:translateY(-1px)}
.cgspb-shell .cgspb-choice input{width:1px;height:1px;opacity:0;position:absolute;pointer-events:none}
.cgspb-shell .cgspb-choice-mark{width:20px;height:20px;border:2px solid #b9acc8;border-radius:50%;display:block;position:relative;background:#fff}
.cgspb-shell .cgspb-choice input:checked+.cgspb-choice-mark{border-color:var(--cgspb-purple);box-shadow:inset 0 0 0 4px #fff;background:var(--cgspb-purple)}
.cgspb-shell .cgspb-choice:has(input:checked){border-color:#bca1ea;background:#f7f2ff}
.cgspb-shell .cgspb-question-upload{margin-top:15px;padding:14px;border:1px dashed #d4c4e8;border-radius:14px;background:#faf7ff}
.cgspb-shell .cgspb-question-upload label>span{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800;margin-bottom:7px}
.cgspb-shell .cgspb-question-upload input[type=file]{background:#fff}

.cgspb-shell .cgspb-inline-video-card{margin-top:14px}
.cgspb-shell .cgspb-question-card .cgspb-inline-video-card{margin:12px 0;border-radius:16px;padding:15px;background:#fbf9fe;box-shadow:none}
.cgspb-shell .cgspb-question-card .cgspb-inline-video-card>.cgspb-section-icon{display:none}
.cgspb-shell .cgspb-video-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}
.cgspb-shell .cgspb-video-head h2{margin-bottom:0;font-size:20px}
.cgspb-shell .cgspb-video-close,.cgspb-shell .cgspb-media-close{appearance:none;border:0;background:#f3eef9;color:#5b476c;border-radius:11px;min-height:38px;padding:8px 10px;display:inline-flex;align-items:center;gap:5px;font-weight:800;cursor:pointer}
.cgspb-shell .cgspb-video-close:hover,.cgspb-shell .cgspb-media-close:hover{background:#eadff8;color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-video-reopen{margin-top:8px}

.cgspb-shell .cgspb-media-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:24px}
.cgspb-shell .cgspb-media-modal.is-open{display:flex}
.cgspb-shell .cgspb-media-backdrop{position:absolute;inset:0;background:rgba(26,15,39,.72);backdrop-filter:blur(6px)}
.cgspb-shell .cgspb-media-dialog{position:relative;width:min(1120px,96vw);height:min(820px,90vh);background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 28px 90px rgba(21,10,38,.36);display:grid;grid-template-rows:auto 1fr;border:1px solid rgba(255,255,255,.28)}
.cgspb-shell .cgspb-media-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px;border-bottom:1px solid var(--cgspb-line);background:linear-gradient(180deg,#fff,#fbf8ff)}
.cgspb-shell .cgspb-media-toolbar h3{margin:0;font-size:18px}
.cgspb-shell .cgspb-media-toolbar .cgspb-kicker{margin-bottom:2px}
.cgspb-shell .cgspb-media-close{width:42px;height:42px;padding:0;justify-content:center;border-radius:13px}
.cgspb-shell .cgspb-media-close .dashicons{font-size:24px;width:24px;height:24px}
.cgspb-shell .cgspb-media-stage{min-height:0;display:grid;place-items:center;background:#ece8f2;overflow:auto;padding:10px}
.cgspb-shell .cgspb-preview-frame{width:100%;height:100%;border:0;background:#fff;border-radius:12px}
.cgspb-shell .cgspb-preview-image{max-width:100%;max-height:100%;object-fit:contain;border-radius:12px;box-shadow:0 8px 28px rgba(20,11,32,.12)}
.cgspb-shell .cgspb-preview-video{width:100%;max-height:100%;background:#000;border-radius:12px}
.cgspb-shell .cgspb-preview-audio{width:min(720px,90%)}

.cgspb-shell .cgspb-review-questions{display:grid;gap:8px;margin:11px 0}
.cgspb-shell .cgspb-review-question{display:grid;grid-template-columns:28px minmax(0,1fr);gap:8px;padding:10px;border:1px solid var(--cgspb-line);border-radius:11px;background:#fff}
.cgspb-shell .cgspb-review-qno{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;background:#efe8fb;color:var(--cgspb-purple-dark);font-size:11px;font-weight:900}
.cgspb-shell .cgspb-review-question p{margin:5px 0 0;font-size:13px;line-height:1.45}

@media(max-width:700px){
  .cgspb-shell.cgspb-student-lesson{padding:0 8px;margin-top:10px}
  .cgspb-shell .cgspb-lesson-hero{border-radius:20px;padding:23px 18px}
  .cgspb-shell .cgspb-goal{padding:16px;border-radius:16px;align-items:flex-start}
  .cgspb-shell .cgspb-goal h2{font-size:20px}
  .cgspb-shell .cgspb-content-card{display:block}
  .cgspb-shell .cgspb-content-card>.cgspb-section-icon{margin-bottom:11px}
  .cgspb-shell .cgspb-question-card{grid-template-columns:1fr;padding:15px;border-radius:17px}
  .cgspb-shell .cgspb-question-number{width:38px;height:38px;border-radius:12px;font-size:15px}
  .cgspb-shell .cgspb-question-text{font-size:16px;margin-top:0!important}
  .cgspb-shell .cgspb-choice{grid-template-columns:20px minmax(0,1fr);padding:12px 10px}
  .cgspb-shell .cgspb-resource-item{grid-template-columns:38px minmax(0,1fr);padding:10px}
  .cgspb-shell .cgspb-resource-icon{width:38px;height:38px}
  .cgspb-shell .cgspb-resource-action{grid-column:1/-1;justify-content:stretch}
  .cgspb-shell .cgspb-resource-action .cgspb-btn{width:100%}
  .cgspb-shell .cgspb-resource-action audio{width:100%}
  .cgspb-shell .cgspb-video-head{flex-direction:column}
  .cgspb-shell .cgspb-video-close{width:100%;justify-content:center}
  .cgspb-shell .cgspb-video{border-radius:13px}
  .cgspb-shell .cgspb-media-modal{padding:0}
  .cgspb-shell .cgspb-media-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}
  .cgspb-shell .cgspb-media-toolbar{padding:12px 13px}
  .cgspb-shell .cgspb-media-toolbar h3{font-size:16px;max-width:75vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cgspb-shell .cgspb-media-stage{padding:5px}
  .cgspb-shell .cgspb-question-upload{padding:11px}
  .cgspb-shell .cgspb-lesson-form .cgspb-form-actions{position:sticky;bottom:8px;z-index:15;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);padding:8px;border:1px solid var(--cgspb-line);border-radius:15px;box-shadow:0 10px 30px rgba(45,20,75,.13)}
  .cgspb-shell .cgspb-lesson-form .cgspb-form-actions .cgspb-btn{width:100%;flex:auto}
}

/* v0.4 – frontend lesson builder, task progress rail and mobile quick menu */
.cgspb-shell .cgspb-hero-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;position:relative;z-index:2}
.cgspb-shell .cgspb-lesson-manager{margin:18px 0}
.cgspb-shell .cgspb-front-lesson-sort{display:grid;gap:9px;margin-top:14px}
.cgspb-shell .cgspb-front-lesson-row{display:grid;grid-template-columns:38px 70px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--cgspb-line);border-radius:15px;background:linear-gradient(180deg,#fff,#fdfbff);box-shadow:0 5px 18px rgba(60,28,104,.04)}
.cgspb-shell .cgspb-drag-handle,.cgspb-shell .cgspb-block-handle{appearance:none;border:0;background:#f2edfb;color:var(--cgspb-purple-dark);width:36px;height:36px;border-radius:10px;display:grid;place-items:center;cursor:grab}
.cgspb-shell .cgspb-drag-handle:active,.cgspb-shell .cgspb-block-handle:active{cursor:grabbing}
.cgspb-shell .cgspb-front-lesson-no{font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--cgspb-orange)}
.cgspb-shell .cgspb-front-lesson-copy{min-width:0}.cgspb-shell .cgspb-front-lesson-copy strong{display:block;font-size:15px}.cgspb-shell .cgspb-front-lesson-copy small{display:block;color:var(--cgspb-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.cgspb-shell .cgspb-order-feedback{font-size:12px;color:var(--cgspb-ok);font-weight:700;margin-top:8px;min-height:18px}
.cgspb-shell .cgspb-sort-placeholder{height:62px;border:2px dashed #c7b1eb;border-radius:15px;background:#faf7ff}

.cgspb-shell.cgspb-builder-app{max-width:1380px}
.cgspb-shell .cgspb-builder-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.cgspb-shell .cgspb-save-toast{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:999px;background:#eaf8f2;color:var(--cgspb-ok);font-size:12px;font-weight:800}
.cgspb-shell .cgspb-hero.is-builder{margin-bottom:16px}
.cgspb-shell .cgspb-builder-settings{padding:18px 20px;margin-bottom:16px}
.cgspb-shell .cgspb-builder-settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 150px minmax(270px,.7fr);gap:14px;align-items:end}
.cgspb-shell .cgspb-builder-settings-grid>label>span,.cgspb-shell .cgspb-builder-control>span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.07em;font-weight:850;color:#675b72;margin-bottom:6px}
.cgspb-shell .cgspb-builder-settings input[type=text],.cgspb-shell .cgspb-builder-settings input[type=number],.cgspb-shell .cgspb-builder-control input,.cgspb-shell .cgspb-builder-control textarea,.cgspb-shell .cgspb-builder-block input[type=text],.cgspb-shell .cgspb-builder-block input[type=url],.cgspb-shell .cgspb-builder-block textarea,.cgspb-shell .cgspb-builder-block select{width:100%;border:1px solid #ddd3e9;border-radius:12px;background:#fff;padding:11px 12px;min-height:43px;font:inherit;color:var(--cgspb-ink);box-shadow:none;outline:none;transition:border .16s,box-shadow .16s}
.cgspb-shell .cgspb-builder-settings input:focus,.cgspb-shell .cgspb-builder-block input:focus,.cgspb-shell .cgspb-builder-block textarea:focus,.cgspb-shell .cgspb-builder-block select:focus{border-color:#a77eff;box-shadow:0 0 0 3px rgba(109,34,255,.10)}
.cgspb-shell .cgspb-input-suffix{display:flex;align-items:center;border:1px solid #ddd3e9;border-radius:12px;background:#fff;overflow:hidden}.cgspb-shell .cgspb-input-suffix input{border:0!important;border-radius:0!important;box-shadow:none!important}.cgspb-shell .cgspb-input-suffix b{padding:0 12px;color:var(--cgspb-muted);font-size:12px}
.cgspb-shell .cgspb-builder-switch,.cgspb-shell .cgspb-builder-checkbox{display:flex!important;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #e3daed;border-radius:13px;background:#faf8fd;cursor:pointer;text-transform:none!important;letter-spacing:0!important;color:inherit!important;margin:0!important}
.cgspb-shell .cgspb-builder-switch input,.cgspb-shell .cgspb-builder-checkbox input{margin-top:3px;accent-color:var(--cgspb-purple)}
.cgspb-shell .cgspb-builder-switch strong,.cgspb-shell .cgspb-builder-checkbox strong{display:block;font-size:13px}.cgspb-shell .cgspb-builder-switch small,.cgspb-shell .cgspb-builder-checkbox small{display:block;color:var(--cgspb-muted);font-size:11px;margin-top:2px;line-height:1.35}

.cgspb-shell .cgspb-builder-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:18px;align-items:start}
.cgspb-shell .cgspb-palette-sticky{position:sticky;top:18px;border:1px solid var(--cgspb-line);border-radius:22px;background:linear-gradient(180deg,#fff,#faf7ff);padding:18px;box-shadow:var(--cgspb-shadow)}
.cgspb-shell .cgspb-palette-sticky h2{font-size:22px;margin-bottom:6px}.cgspb-shell .cgspb-palette-sticky>.cgspb-muted{font-size:12px;line-height:1.5}
.cgspb-shell .cgspb-palette-list{display:grid;gap:8px;margin-top:14px}
.cgspb-shell .cgspb-palette-item{appearance:none;border:1px solid #e6ddef;border-radius:14px;background:#fff;padding:10px;display:grid;grid-template-columns:38px minmax(0,1fr) 20px;gap:10px;align-items:center;text-align:left;cursor:grab;color:var(--cgspb-ink);transition:.16s transform,.16s border-color,.16s box-shadow}
.cgspb-shell .cgspb-palette-item:hover{transform:translateY(-1px);border-color:#b99be9;box-shadow:0 8px 18px rgba(75,35,127,.08)}
.cgspb-shell .cgspb-palette-item:active{cursor:grabbing}.cgspb-shell .cgspb-palette-item>span:last-child{color:var(--cgspb-orange)}
.cgspb-shell .cgspb-palette-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#eee5ff,#fff0e5);color:var(--cgspb-purple)}
.cgspb-shell .cgspb-palette-item strong{display:block;font-size:13px}.cgspb-shell .cgspb-palette-item small{display:block;font-size:10px;color:var(--cgspb-muted);margin-top:2px;line-height:1.25}
.cgspb-shell .cgspb-builder-canvas-wrap{min-width:0}.cgspb-shell .cgspb-builder-canvas-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 3px 10px}.cgspb-shell .cgspb-builder-canvas-head h2{margin-bottom:0}.cgspb-shell .cgspb-builder-hint{display:inline-flex;align-items:center;gap:5px;color:var(--cgspb-muted);font-size:11px;font-weight:700}
.cgspb-shell .cgspb-builder-dropzone{min-height:320px;border:2px dashed #d9cceb;border-radius:22px;padding:12px;background:linear-gradient(180deg,#fbf9fe,#fff);transition:.16s border-color,.16s background}
.cgspb-shell .cgspb-builder-dropzone.is-drop-ready,.cgspb-shell .cgspb-builder-dropzone.is-drag-over{border-color:var(--cgspb-orange);background:#fff9f3}
.cgspb-shell .cgspb-builder-empty{min-height:280px;display:grid;place-items:center;align-content:center;gap:7px;color:#8c8296;text-align:center}.cgspb-shell .cgspb-builder-empty .dashicons{width:34px;height:34px;font-size:34px;color:#c3b2dc}.cgspb-shell .cgspb-builder-empty strong{font-size:16px}.cgspb-shell .cgspb-builder-empty small{font-size:12px}
.cgspb-shell .cgspb-builder-block{border:1px solid #e5dced;border-radius:18px;background:#fff;margin:10px 0;box-shadow:0 9px 24px rgba(68,30,112,.05);overflow:hidden}
.cgspb-shell .cgspb-builder-block-placeholder{height:110px;border:2px dashed var(--cgspb-orange);border-radius:18px;background:#fff7ee;margin:10px 0}
.cgspb-shell .cgspb-builder-block-head{display:grid;grid-template-columns:38px 40px minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;background:linear-gradient(180deg,#fff,#fbf9fd);border-bottom:1px solid #eee8f4}
.cgspb-shell .cgspb-builder-block-icon{width:40px;height:40px;border-radius:12px;background:linear-gradient(145deg,#eee5ff,#fff0e5);display:grid;place-items:center;color:var(--cgspb-purple)}
.cgspb-shell .cgspb-builder-block-head>div:nth-child(3){min-width:0}.cgspb-shell .cgspb-builder-block-head small{display:block;font-size:9px;letter-spacing:.08em;text-transform:uppercase;color:var(--cgspb-orange);font-weight:900;margin-bottom:2px}.cgspb-shell .cgspb-builder-block-head .cgspb-b-title{font-size:15px;font-weight:800;padding:7px 9px;min-height:36px;background:transparent;border-color:transparent}.cgspb-shell .cgspb-builder-block-head .cgspb-b-title:hover,.cgspb-shell .cgspb-builder-block-head .cgspb-b-title:focus{background:#fff;border-color:#ddd3e9}
.cgspb-shell .cgspb-builder-block-actions{display:flex;gap:5px}.cgspb-shell .cgspb-icon-btn{appearance:none;border:0;width:34px;height:34px;border-radius:10px;background:#f3eef8;color:#675875;display:grid;place-items:center;cursor:pointer}.cgspb-shell .cgspb-icon-btn:hover{background:#e9def6;color:var(--cgspb-purple-dark)}.cgspb-shell .cgspb-icon-btn.is-remove:hover{background:#fff0ef;color:#b53d31}
.cgspb-shell .cgspb-builder-block-body{padding:15px}.cgspb-shell .cgspb-builder-control{display:block;margin-bottom:12px}.cgspb-shell .cgspb-builder-control:last-child{margin-bottom:0}.cgspb-shell .cgspb-builder-control small{font-weight:600;text-transform:none;letter-spacing:0;color:#978c9f}
.cgspb-shell .cgspb-builder-filepick{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px dashed #d4c5e5;border-radius:13px;background:#faf7ff;margin-bottom:10px}.cgspb-shell .cgspb-builder-filepick strong{display:block;font-size:13px}.cgspb-shell .cgspb-builder-filepick small{display:block;font-size:10px;color:var(--cgspb-muted);margin-top:2px}
.cgspb-shell .cgspb-builder-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.cgspb-shell .cgspb-builder-subsection{border-top:1px solid #eee8f4;margin-top:13px;padding-top:12px}.cgspb-shell .cgspb-builder-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:12px}.cgspb-shell .cgspb-text-btn{appearance:none;border:0;background:transparent;color:var(--cgspb-purple);font-weight:850;cursor:pointer;padding:4px 0}
.cgspb-shell .cgspb-builder-options,.cgspb-shell .cgspb-builder-fields,.cgspb-shell .cgspb-builder-attachments{display:grid;gap:7px}
.cgspb-shell .cgspb-builder-option{display:grid;grid-template-columns:24px minmax(0,1fr) 34px;gap:7px;align-items:center}.cgspb-shell .cgspb-mini-handle,.cgspb-shell .cgspb-field-handle{color:#a293af;cursor:grab}
.cgspb-shell .cgspb-builder-attachment{display:grid;grid-template-columns:24px minmax(0,1fr) auto 34px;gap:8px;align-items:center;padding:8px 9px;border-radius:11px;background:#f9f6fc;border:1px solid #ece5f2;font-size:11px}.cgspb-shell .cgspb-builder-att-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}.cgspb-shell .cgspb-builder-attachment label{display:flex;align-items:center;gap:4px;white-space:nowrap}.cgspb-shell .cgspb-builder-attachment input{accent-color:var(--cgspb-purple)}
.cgspb-shell .cgspb-builder-field{display:grid;grid-template-columns:24px minmax(0,1fr) 34px;gap:8px;align-items:start;padding:10px;border:1px solid #ece5f2;border-radius:13px;background:#fbf9fd}.cgspb-shell .cgspb-builder-field-main{display:grid;gap:7px}.cgspb-shell .cgspb-builder-field-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}.cgspb-shell .cgspb-mini-check{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--cgspb-muted);white-space:nowrap}.cgspb-shell .cgspb-field-options[hidden]{display:none}
.cgspb-shell .cgspb-builder-evidence-types{padding:12px;border-radius:13px;background:#faf7ff;border:1px solid #e9dff3}.cgspb-shell .cgspb-builder-evidence-types>strong{display:block;font-size:12px;margin-bottom:8px}.cgspb-shell .cgspb-builder-evidence-types>div{display:flex;flex-wrap:wrap;gap:9px 14px}.cgspb-shell .cgspb-builder-evidence-types label{display:flex;align-items:center;gap:5px;font-size:12px}.cgspb-shell .cgspb-builder-evidence-types input{accent-color:var(--cgspb-purple)}
.cgspb-shell .cgspb-builder-savebar{position:sticky;bottom:12px;z-index:40;margin:18px 0 0;padding:13px 15px;border:1px solid rgba(216,203,232,.95);border-radius:17px;background:rgba(255,255,255,.93);backdrop-filter:blur(12px);box-shadow:0 16px 38px rgba(53,22,94,.15);display:flex;align-items:center;justify-content:space-between;gap:14px}.cgspb-shell .cgspb-builder-savebar strong{display:block;font-size:13px}.cgspb-shell .cgspb-builder-savebar small{display:block;color:var(--cgspb-muted);font-size:10px;margin-top:2px}

/* Student progress: based on completed task controls, never on scroll position. */
.cgspb-shell.cgspb-student-lesson{position:relative}
.cgspb-shell .cgspb-lesson-progress-rail{position:fixed;z-index:9998;left:max(8px,calc((100vw - 1240px)/2));top:19vh;height:62vh;width:9px;display:flex;align-items:center;flex-direction:column;gap:8px;pointer-events:none}
.cgspb-shell .cgspb-lesson-progress-track{position:relative;width:9px;height:100%;border-radius:99px;background:#ece7f2;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(77,38,126,.06)}
.cgspb-shell .cgspb-lesson-progress-track>span{position:absolute;left:0;right:0;bottom:0;height:0;background:linear-gradient(0deg,var(--cgspb-orange) 0%,#a33eff 48%,var(--cgspb-purple) 100%);border-radius:99px;transition:height .28s ease}
.cgspb-shell .cgspb-lesson-progress-rail>b{font-size:9px;color:var(--cgspb-purple-dark);background:#fff;border:1px solid #e2d9ec;border-radius:999px;padding:3px 5px;box-shadow:0 5px 14px rgba(59,27,99,.10);white-space:nowrap}
.cgspb-shell .cgspb-task{transition:border-color .2s,box-shadow .2s}.cgspb-shell .cgspb-task.is-complete{border-color:#cdbaf0;box-shadow:0 10px 28px rgba(92,43,155,.07)}
.cgspb-shell .cgspb-block-list{display:grid;gap:14px}.cgspb-shell .cgspb-lesson-block{scroll-margin-top:18px}
.cgspb-shell .cgspb-student-form-fields{display:grid;gap:12px;margin-top:14px}.cgspb-shell .cgspb-student-form-field>label>span{display:block;font-size:12px;font-weight:850;color:#574d63;margin-bottom:6px}.cgspb-shell .cgspb-student-form-field input[type=text],.cgspb-shell .cgspb-student-form-field input[type=number],.cgspb-shell .cgspb-student-form-field input[type=date],.cgspb-shell .cgspb-student-form-field textarea,.cgspb-shell .cgspb-student-form-field select{width:100%;border:1px solid #dfd5e8;border-radius:13px;padding:11px 12px;min-height:44px;background:#fff;font:inherit}.cgspb-shell .cgspb-required{color:var(--cgspb-orange);margin-left:3px}.cgspb-shell .cgspb-form-radio-group{display:grid;gap:8px}.cgspb-shell .cgspb-checkline{display:flex!important;align-items:center;gap:9px;padding:11px 12px;border:1px solid #e3d9ec;border-radius:12px;background:#fff}.cgspb-shell .cgspb-checkline input{width:20px;height:20px;accent-color:var(--cgspb-purple)}
.cgspb-shell .cgspb-upload-box{display:block;margin-top:13px;padding:14px;border:1px dashed #d3c2e8;border-radius:14px;background:#faf7ff}.cgspb-shell .cgspb-upload-box>span{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800;margin-bottom:8px}
.cgspb-shell .cgspb-student-submitbar{position:sticky;bottom:12px;z-index:60;display:flex;justify-content:space-between;align-items:center;gap:14px;margin:18px 0 0;padding:13px 15px;border:1px solid rgba(220,209,233,.96);border-radius:17px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);box-shadow:0 16px 38px rgba(53,22,94,.13)}.cgspb-shell .cgspb-student-submitbar strong{display:block;font-size:13px}.cgspb-shell .cgspb-student-submitbar small{display:block;color:var(--cgspb-muted);font-size:10px;margin-top:2px}

/* Mobile lesson quick menu */
.cgspb-shell .cgspb-mobile-quick-btn,.cgspb-shell .cgspb-mobile-quick{display:none}
.cgspb-shell .cgspb-review-prompt{font-size:12px;color:var(--cgspb-muted);margin:4px 0 7px!important}.cgspb-shell .cgspb-review-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}.cgspb-shell .cgspb-review-form-grid>div{padding:8px 9px;border-radius:10px;background:#faf7ff;border:1px solid #eee6f4}.cgspb-shell .cgspb-review-form-grid small{display:block;color:var(--cgspb-muted);font-size:9px;margin-bottom:2px}.cgspb-shell .cgspb-review-form-grid strong{font-size:12px}

@media(max-width:980px){
  .cgspb-shell .cgspb-builder-layout{grid-template-columns:230px minmax(0,1fr)}
  .cgspb-shell .cgspb-builder-settings-grid{grid-template-columns:minmax(0,1fr) 130px}.cgspb-shell .cgspb-builder-switch{grid-column:1/-1}
}
@media(max-width:760px){
  .cgspb-shell .cgspb-hero-actions{width:100%}.cgspb-shell .cgspb-hero-actions .cgspb-btn{flex:1}
  .cgspb-shell .cgspb-front-lesson-row{grid-template-columns:34px 58px minmax(0,1fr)}.cgspb-shell .cgspb-front-lesson-row>.cgspb-btn{grid-column:2/-1;width:100%}
  .cgspb-shell .cgspb-builder-settings-grid{grid-template-columns:1fr}.cgspb-shell .cgspb-builder-switch{grid-column:auto}
  .cgspb-shell .cgspb-builder-layout{grid-template-columns:1fr}.cgspb-shell .cgspb-palette-sticky{position:static}.cgspb-shell .cgspb-palette-list{grid-template-columns:repeat(2,minmax(0,1fr))}.cgspb-shell .cgspb-builder-grid-2{grid-template-columns:1fr}
  .cgspb-shell .cgspb-builder-savebar,.cgspb-shell .cgspb-student-submitbar{bottom:72px;flex-direction:column;align-items:stretch}.cgspb-shell .cgspb-builder-savebar .cgspb-form-actions,.cgspb-shell .cgspb-student-submitbar .cgspb-form-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .cgspb-shell .cgspb-lesson-progress-rail{left:4px;top:90px;height:calc(100vh - 175px);width:5px}.cgspb-shell .cgspb-lesson-progress-track{width:5px}.cgspb-shell .cgspb-lesson-progress-rail>b{display:none}
  .cgspb-shell .cgspb-mobile-quick-btn{display:flex;position:fixed;right:14px;bottom:14px;z-index:9999;appearance:none;border:0;border-radius:999px;background:linear-gradient(135deg,var(--cgspb-orange),var(--cgspb-purple));color:#fff;box-shadow:0 13px 32px rgba(68,28,116,.28);padding:12px 15px;align-items:center;gap:7px;font-weight:850}
  .cgspb-shell .cgspb-mobile-quick{display:block;position:fixed;inset:0;z-index:100000;pointer-events:none;opacity:0;transition:opacity .18s}.cgspb-shell .cgspb-mobile-quick.is-open{pointer-events:auto;opacity:1}.cgspb-shell .cgspb-mobile-quick-backdrop{position:absolute;inset:0;border:0;background:rgba(24,12,37,.55);backdrop-filter:blur(4px)}.cgspb-shell .cgspb-mobile-quick-sheet{position:absolute;left:10px;right:10px;bottom:10px;max-height:78vh;overflow:auto;border-radius:24px;background:#fff;padding:16px;box-shadow:0 24px 70px rgba(24,12,37,.34);transform:translateY(30px);transition:transform .18s}.cgspb-shell .cgspb-mobile-quick.is-open .cgspb-mobile-quick-sheet{transform:translateY(0)}.cgspb-shell .cgspb-mobile-quick-head{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--cgspb-line);padding-bottom:10px}.cgspb-shell .cgspb-mobile-quick-head h3{margin:0}.cgspb-shell .cgspb-mobile-quick nav{display:grid;gap:6px;padding:10px 0}.cgspb-shell .cgspb-mobile-quick nav a{display:block;padding:10px 12px;border-radius:12px;background:#faf7ff;color:var(--cgspb-ink);font-weight:750;font-size:13px}.cgspb-shell .cgspb-mobile-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:8px;border-top:1px solid var(--cgspb-line)}
  .cgspb-shell .cgspb-review-form-grid{grid-template-columns:1fr}
}
@media(max-width:520px){
  .cgspb-shell .cgspb-palette-list{grid-template-columns:1fr 1fr}.cgspb-shell .cgspb-palette-item{grid-template-columns:34px minmax(0,1fr) 18px;padding:8px}.cgspb-shell .cgspb-palette-icon{width:34px;height:34px}.cgspb-shell .cgspb-builder-block-head{grid-template-columns:34px 36px minmax(0,1fr)}.cgspb-shell .cgspb-builder-block-actions{grid-column:3/4;justify-self:end}.cgspb-shell .cgspb-builder-attachment{grid-template-columns:22px minmax(0,1fr) 34px}.cgspb-shell .cgspb-builder-attachment label{grid-column:2/3}.cgspb-shell .cgspb-builder-field-row{grid-template-columns:1fr}.cgspb-shell .cgspb-front-lesson-copy small{display:none}
}

/* v0.5 – lessons popup, robust drag/drop and CSV tools */
.cgspb-shell .cgspb-hero-actions{align-self:center;justify-content:flex-end}
.cgspb-shell .cgspb-hero-actions>.cgspb-btn{height:56px;min-width:188px;margin:0!important;padding:0 20px;align-self:center}
.cgspb-shell .cgspb-lesson-manager-launch{margin:18px 0;padding:24px 26px;background:linear-gradient(180deg,#fff,#fcfaff)}
.cgspb-shell .cgspb-lesson-manager-head{align-items:center;margin-bottom:0}
.cgspb-shell .cgspb-lesson-manager-head h2{margin-bottom:5px}
.cgspb-shell .cgspb-lesson-manager-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cgspb-shell .cgspb-lesson-manager-summary{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:15px;padding-top:14px;border-top:1px solid var(--cgspb-line);font-size:12px;color:var(--cgspb-muted)}
.cgspb-shell .cgspb-lesson-manager-summary span{display:inline-flex;align-items:center;gap:6px}.cgspb-shell .cgspb-lesson-manager-summary strong{font-size:15px;color:var(--cgspb-purple-dark)}

.cgspb-modal-open{overflow:hidden!important}
.cgspb-shell .cgspb-lessons-modal{position:fixed;inset:0;z-index:100000;display:none;align-items:center;justify-content:center;padding:22px}
.cgspb-shell .cgspb-lessons-modal.is-open{display:flex}
.cgspb-shell .cgspb-lessons-modal-backdrop{position:absolute;inset:0;background:rgba(24,10,43,.66);backdrop-filter:blur(8px)}
.cgspb-shell .cgspb-lessons-modal-dialog{position:relative;z-index:2;width:min(1460px,96vw);max-height:92vh;overflow:auto;border-radius:30px;background:linear-gradient(180deg,#fff 0%,#fbf8ff 100%);box-shadow:0 35px 100px rgba(30,10,58,.35);border:1px solid rgba(255,255,255,.72);padding:26px}
.cgspb-shell .cgspb-lessons-modal-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:4px 4px 18px;border-bottom:1px solid var(--cgspb-line)}
.cgspb-shell .cgspb-lessons-modal-toolbar h2{font-size:clamp(28px,3.2vw,42px);margin:0 0 7px}.cgspb-shell .cgspb-lessons-modal-toolbar p:last-child{margin:0;color:var(--cgspb-muted);max-width:860px}
.cgspb-shell .cgspb-lessons-modal-close{appearance:none;border:0;width:46px;height:46px;min-width:46px;border-radius:15px;display:grid;place-items:center;background:#f1ebfa;color:var(--cgspb-purple-dark);cursor:pointer}.cgspb-shell .cgspb-lessons-modal-close:hover{background:#e8ddf7}
.cgspb-shell .cgspb-lessons-modal-close .dashicons{width:24px;height:24px;font-size:24px}
.cgspb-shell .cgspb-lessons-modal-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 2px}
.cgspb-shell .cgspb-csv-import{display:flex;align-items:center;gap:8px;min-width:0}
.cgspb-shell .cgspb-csv-file{display:flex;align-items:center;gap:10px;min-width:310px;padding:10px 12px;border:1px dashed #cdbce6;border-radius:14px;background:#faf7ff;cursor:pointer}
.cgspb-shell .cgspb-csv-file input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px}.cgspb-shell .cgspb-csv-file>.dashicons{color:var(--cgspb-orange);font-size:22px;width:22px;height:22px}.cgspb-shell .cgspb-csv-file strong,.cgspb-shell .cgspb-csv-file small{display:block}.cgspb-shell .cgspb-csv-file strong{font-size:12px}.cgspb-shell .cgspb-csv-file small{font-size:10px;color:var(--cgspb-muted);margin-top:2px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cgspb-shell .cgspb-manager-notice{display:flex;align-items:center;gap:8px;margin:15px 0 0;padding:11px 13px;border-radius:13px;font-weight:800;font-size:12px}.cgspb-shell .cgspb-manager-notice.is-success{background:#edf9f4;color:#19775a}.cgspb-shell .cgspb-manager-notice.is-error{background:#fff1ef;color:#a73e34}
.cgspb-shell .cgspb-lesson-tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;padding:4px 0 10px}
.cgspb-shell .cgspb-lesson-tile{min-height:210px;display:flex;flex-direction:column;border:1px solid #e6ddef;border-radius:19px;background:#fff;box-shadow:0 10px 26px rgba(62,27,105,.06);overflow:hidden;transition:transform .16s,box-shadow .16s,border-color .16s}
.cgspb-shell .cgspb-lesson-tile:hover{transform:translateY(-2px);border-color:#cfbbed;box-shadow:0 16px 34px rgba(62,27,105,.10)}
.cgspb-shell .cgspb-lesson-tile-top{display:grid;grid-template-columns:38px auto 1fr;gap:9px;align-items:center;padding:11px 12px;border-bottom:1px solid #f0eaf5;background:linear-gradient(180deg,#fff,#fcfaff)}
.cgspb-shell .cgspb-lesson-tile-dragtext{justify-self:end;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#9a8fa6;font-weight:800}
.cgspb-shell .cgspb-lesson-tile-copy{padding:15px 15px 12px;flex:1}.cgspb-shell .cgspb-lesson-tile-copy h3{font-size:18px;margin:0 0 7px;line-height:1.22}.cgspb-shell .cgspb-lesson-tile-copy p{font-size:11.5px;line-height:1.45;color:var(--cgspb-muted);margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cgspb-shell .cgspb-lesson-tile-actions{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #efe9f4}.cgspb-shell .cgspb-lesson-tile-actions form{margin:0;display:block}.cgspb-shell .cgspb-tile-action{appearance:none;border:0;border-right:1px solid #efe9f4;background:#fff;color:#655773!important;min-height:54px;width:100%;padding:7px 4px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9.5px;font-weight:800;cursor:pointer;text-decoration:none!important}.cgspb-shell .cgspb-lesson-tile-actions>*:last-child .cgspb-tile-action,.cgspb-shell .cgspb-lesson-tile-actions>.cgspb-tile-action:last-child{border-right:0}.cgspb-shell .cgspb-tile-action .dashicons{font-size:17px;width:17px;height:17px}.cgspb-shell .cgspb-tile-action:hover{background:#f8f4fc;color:var(--cgspb-purple-dark)!important}.cgspb-shell .cgspb-tile-action.is-edit{color:var(--cgspb-purple-dark)!important}.cgspb-shell .cgspb-tile-action.is-delete:hover{background:#fff2f0;color:#ad4035!important}
.cgspb-shell .cgspb-lesson-tile-grid .cgspb-sort-placeholder{height:210px;border:2px dashed var(--cgspb-orange);border-radius:19px;background:#fff8f1}

.cgspb-shell .cgspb-native-placeholder,.cgspb-shell .cgspb-palette-placeholder{height:92px;border:2px dashed var(--cgspb-orange);border-radius:16px;background:linear-gradient(180deg,#fff9f2,#fff4e8);margin:10px 0;box-shadow:inset 0 0 0 1px rgba(255,121,0,.05)}
.cgspb-shell .cgspb-native-placeholder:after,.cgspb-shell .cgspb-palette-placeholder:after{content:"Plaats onderdeel hier";height:100%;display:grid;place-items:center;color:#b05a08;font-size:11px;font-weight:850;letter-spacing:.03em}
.cgspb-shell .cgspb-builder-block.is-native-dragging{opacity:.25}
.cgspb-shell .cgspb-builder-option{grid-template-columns:24px minmax(0,1fr) auto 34px}
.cgspb-shell .cgspb-correct-answer{display:inline-flex!important;align-items:center;gap:5px!important;padding:7px 9px!important;border-radius:10px;background:#f6f1fb;color:#685777;font-size:10px;font-weight:800;white-space:nowrap;margin:0!important;cursor:pointer}.cgspb-shell .cgspb-correct-answer input{width:auto!important;min-height:0!important;padding:0!important;accent-color:var(--cgspb-orange)}
.cgspb-shell .cgspb-subhint{display:block;font-size:9px;color:var(--cgspb-muted);font-weight:600;margin-top:2px}
.cgspb-shell .cgspb-builder-options .cgspb-native-placeholder,.cgspb-shell .cgspb-builder-fields .cgspb-native-placeholder{height:54px;margin:2px 0;border-radius:12px}.cgspb-shell .cgspb-builder-options .cgspb-native-placeholder:after,.cgspb-shell .cgspb-builder-fields .cgspb-native-placeholder:after{content:"Hier neerzetten"}

@media(max-width:900px){
  .cgspb-shell .cgspb-lessons-modal{padding:10px}.cgspb-shell .cgspb-lessons-modal-dialog{width:100%;max-height:96vh;border-radius:24px;padding:18px}.cgspb-shell .cgspb-lessons-modal-actions{align-items:stretch;flex-direction:column}.cgspb-shell .cgspb-csv-import{width:100%}.cgspb-shell .cgspb-csv-file{min-width:0;flex:1}.cgspb-shell .cgspb-lesson-tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .cgspb-shell .cgspb-hero-actions>.cgspb-btn{min-width:0;height:52px}
  .cgspb-shell .cgspb-lesson-manager-buttons{width:100%}.cgspb-shell .cgspb-lesson-manager-buttons .cgspb-btn{flex:1}
  .cgspb-shell .cgspb-lessons-modal-toolbar{align-items:flex-start}.cgspb-shell .cgspb-lessons-modal-toolbar h2{font-size:27px}.cgspb-shell .cgspb-lesson-tile-grid{grid-template-columns:1fr}.cgspb-shell .cgspb-csv-import{display:grid;grid-template-columns:1fr}.cgspb-shell .cgspb-csv-import .cgspb-btn{width:100%}.cgspb-shell .cgspb-builder-option{grid-template-columns:22px minmax(0,1fr) 34px}.cgspb-shell .cgspb-correct-answer{grid-column:2/3;justify-self:start}.cgspb-shell .cgspb-builder-option>.cgspb-icon-btn{grid-column:3/4;grid-row:1/2}
}

/* v0.6.0 — class-scoped ordering, assessment matrix and AI review */
.cgspb-shell .cgspb-order-scope-card{display:flex;align-items:end;gap:10px;padding:8px 10px;border:1px solid #eadff5;border-radius:16px;background:#fbf8ff}
.cgspb-shell .cgspb-order-scope-card label{display:flex;flex-direction:column;gap:4px;margin:0}.cgspb-shell .cgspb-order-scope-card label>span{font-size:9px;letter-spacing:.08em;text-transform:uppercase;font-weight:850;color:#7e718b}
.cgspb-shell .cgspb-order-scope-card select{min-width:210px;border:1px solid #d9c9eb;border-radius:10px;background:#fff;padding:8px 34px 8px 10px;min-height:38px;color:var(--cgspb-ink);font:inherit;font-size:12px;font-weight:700}
.cgspb-shell .cgspb-order-scope-card .cgspb-btn{min-height:38px;white-space:nowrap}.cgspb-shell .cgspb-order-scope-card .cgspb-btn:disabled{opacity:.45;cursor:not-allowed}
.cgspb-shell .cgspb-lesson-tile.is-pointer-sorting{opacity:.68;transform:scale(.985);box-shadow:0 20px 44px rgba(77,35,133,.18);border-color:var(--cgspb-orange);z-index:5}.cgspb-shell .cgspb-drag-handle{touch-action:none;cursor:grab}.cgspb-shell .cgspb-drag-handle:active{cursor:grabbing}.cgspb-is-reordering{user-select:none}
.cgspb-shell .cgspb-builder-layout{grid-template-columns:270px minmax(0,1fr) 280px}
.cgspb-shell .cgspb-builder-matrix{min-width:0}.cgspb-shell .cgspb-matrix-sticky{position:sticky;top:18px;border:1px solid #e7ddf1;border-radius:22px;background:linear-gradient(180deg,#fff,#fbf8ff);box-shadow:0 12px 28px rgba(62,27,105,.06);padding:18px}.cgspb-shell .cgspb-matrix-sticky h2{font-size:21px;margin:0 0 6px}.cgspb-shell .cgspb-matrix-rows{display:grid;gap:8px;margin-top:14px}.cgspb-shell .cgspb-matrix-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:10px 11px;border-radius:12px;background:#f6f0fb;border:1px solid #eadff5}.cgspb-shell .cgspb-matrix-row span{font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cgspb-shell .cgspb-matrix-row small{grid-column:1/2;font-size:9px;color:#86788f;text-transform:uppercase}.cgspb-shell .cgspb-matrix-row b{grid-column:2/3;grid-row:1/3;align-self:center;color:var(--cgspb-purple-dark);font-size:11px}.cgspb-shell .cgspb-matrix-empty{font-size:11px;color:var(--cgspb-muted);padding:12px;border-radius:12px;background:#f8f6fa}.cgspb-shell .cgspb-matrix-total,.cgspb-shell .cgspb-matrix-threshold{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:11px 2px;border-top:1px solid #eee6f5;margin-top:10px;font-size:11px}.cgspb-shell .cgspb-matrix-total strong,.cgspb-shell .cgspb-matrix-threshold strong{font-size:13px;color:var(--cgspb-purple-dark)}.cgspb-shell .cgspb-matrix-note{display:block;margin-top:10px;line-height:1.45;color:#81748b}
.cgspb-shell .cgspb-assessment-box{margin-top:16px;border:1px solid #dfd0ee;border-radius:16px;padding:14px;background:linear-gradient(180deg,#fbf8ff,#fff)}.cgspb-shell .cgspb-assessment-box .cgspb-builder-subhead{margin-bottom:10px}.cgspb-shell .cgspb-assessment-box .dashicons{color:var(--cgspb-orange)}
.cgspb-shell .cgspb-ai-settings{margin:18px 0;padding:24px 26px;background:linear-gradient(180deg,#fff,#fcfaff)}.cgspb-shell .cgspb-ai-state{display:inline-flex;align-items:center;gap:7px;border-radius:999px;padding:8px 11px;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.cgspb-shell .cgspb-ai-state.is-on{background:#e9f7ef;color:#1f694d}.cgspb-shell .cgspb-ai-state.is-off{background:#fff2df;color:#8a520d}.cgspb-shell .cgspb-ai-form{display:grid;gap:14px}.cgspb-shell .cgspb-ai-grid{display:grid;grid-template-columns:minmax(280px,1.4fr) minmax(190px,.8fr) minmax(170px,.55fr);gap:12px}.cgspb-shell .cgspb-ai-grid>label>span{display:block;font-size:10px;letter-spacing:.07em;text-transform:uppercase;font-weight:850;color:#675b72;margin-bottom:6px}.cgspb-shell .cgspb-ai-grid input,.cgspb-shell .cgspb-ai-grid select{width:100%;border:1px solid #ddd3e9;border-radius:12px;background:#fff;padding:10px 11px;min-height:42px;font:inherit;color:var(--cgspb-ink)}.cgspb-shell .cgspb-ai-grid small{display:block;margin-top:5px;color:var(--cgspb-muted);font-size:10px;line-height:1.35}.cgspb-shell .cgspb-ai-safety-note{display:flex;gap:11px;margin-top:16px;padding:13px 14px;border-radius:14px;background:#f4effa;border:1px solid #e7dcf1}.cgspb-shell .cgspb-ai-safety-note>.dashicons{color:var(--cgspb-purple);margin-top:2px}.cgspb-shell .cgspb-ai-safety-note strong{font-size:12px}.cgspb-shell .cgspb-ai-safety-note p{margin:3px 0 0;font-size:10.5px;color:var(--cgspb-muted);line-height:1.45}
.cgspb-shell .cgspb-feedback.is-pending{background:#f1ecf8;color:#4c3466}.cgspb-shell .cgspb-auto-feedback{padding:16px 17px}.cgspb-shell .cgspb-auto-feedback-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.cgspb-shell .cgspb-auto-feedback-head>div{display:flex;flex-direction:column;gap:2px}.cgspb-shell .cgspb-auto-feedback-head small{font-size:9px;letter-spacing:.08em;font-weight:850;opacity:.75}.cgspb-shell .cgspb-auto-feedback-head strong{font-size:17px}.cgspb-shell .cgspb-auto-score{display:grid;place-items:center;min-width:58px;height:42px;padding:0 10px;border-radius:13px;background:rgba(255,255,255,.72);font-weight:900}.cgspb-shell .cgspb-auto-detail-list{display:grid;gap:7px;margin-top:11px}.cgspb-shell .cgspb-auto-detail-list>div{display:flex;gap:8px;align-items:flex-start;padding:8px 10px;background:rgba(255,255,255,.58);border-radius:10px;font-size:10.5px;line-height:1.35}.cgspb-shell .cgspb-auto-detail-list strong{display:block;margin-bottom:2px;font-size:10.5px}.cgspb-shell .cgspb-auto-detail-list .dashicons{font-size:15px;width:15px;height:15px;margin-top:1px}
@media(max-width:1320px){.cgspb-shell .cgspb-builder-layout{grid-template-columns:230px minmax(0,1fr)}.cgspb-shell .cgspb-builder-matrix{grid-column:1/-1}.cgspb-shell .cgspb-matrix-sticky{position:static}.cgspb-shell .cgspb-matrix-rows{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.cgspb-shell .cgspb-order-scope-card{width:100%;align-items:stretch;flex-direction:column}.cgspb-shell .cgspb-order-scope-card select{width:100%;min-width:0}.cgspb-shell .cgspb-ai-grid{grid-template-columns:1fr}.cgspb-shell .cgspb-matrix-rows{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.cgspb-shell .cgspb-matrix-rows{grid-template-columns:1fr}.cgspb-shell .cgspb-ai-settings{padding:18px}.cgspb-shell .cgspb-auto-feedback-head{align-items:flex-start}.cgspb-shell .cgspb-auto-score{height:36px;min-width:52px}}

/* v0.6 alignment and AI settings refinements */
.cgspb-shell .cgspb-lessons-modal-action-buttons{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.cgspb-shell .cgspb-lessons-modal-action-buttons>.cgspb-btn{min-height:56px;display:inline-flex;align-items:center;justify-content:center}
.cgspb-shell .cgspb-ai-toggles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cgspb-shell .cgspb-order-feedback{min-height:20px;margin-top:10px;font-size:11px;font-weight:750;color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-lesson-tile.is-pointer-sorting{pointer-events:auto}
@media(max-width:900px){.cgspb-shell .cgspb-lessons-modal-action-buttons{width:100%;align-items:stretch}.cgspb-shell .cgspb-lessons-modal-action-buttons>.cgspb-btn{flex:1}.cgspb-shell .cgspb-ai-toggles{grid-template-columns:1fr}}

.cgspb-shell .cgspb-review-ai-note{display:flex;gap:9px;align-items:flex-start;padding:10px 11px;margin:10px 0;border-radius:12px;background:#f4effa;border:1px solid #e5d9f0}.cgspb-shell .cgspb-review-ai-note>.dashicons{color:var(--cgspb-purple);margin-top:1px}.cgspb-shell .cgspb-review-ai-note strong{display:block;font-size:11px}.cgspb-shell .cgspb-review-ai-note small{display:block;margin-top:2px;font-size:9.5px;color:var(--cgspb-muted);line-height:1.4}

/* v0.7.0 – Kennisbank & scaffolding feedback */
.cgspb-shell .cgspb-knowledge-launch{overflow:hidden;position:relative}
.cgspb-shell .cgspb-knowledge-launch:after{content:"";position:absolute;right:-70px;bottom:-90px;width:230px;height:230px;border-radius:50%;background:radial-gradient(circle,rgba(117,44,255,.10),rgba(255,122,0,.02) 58%,transparent 59%);pointer-events:none}
.cgspb-shell .cgspb-kb-summary{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.cgspb-shell .cgspb-kb-summary>span{display:inline-flex;align-items:center;gap:5px;padding:7px 10px;border:1px solid #e8e0f1;background:#fbf9ff;border-radius:999px;font-size:11px;color:#655b70}
.cgspb-shell .cgspb-kb-summary strong{font-size:13px;color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-kb-summary .is-ready{background:#edf9f3;border-color:#d5eee1}.cgspb-shell .cgspb-kb-summary .is-ready strong{color:#227254}
.cgspb-shell .cgspb-kb-summary .is-processing{background:#fff6e9;border-color:#f7dfbb}.cgspb-shell .cgspb-kb-summary .is-processing strong{color:#aa5a05}
.cgspb-shell .cgspb-kb-summary .is-error{background:#fff0f0;border-color:#f4d4d4}.cgspb-shell .cgspb-kb-summary .is-error strong{color:#a73333}
.cgspb-shell .cgspb-kb-modal{position:fixed;inset:0;z-index:100020;display:none;align-items:center;justify-content:center;padding:24px}
.cgspb-shell .cgspb-kb-modal.is-open{display:flex}
.cgspb-shell .cgspb-kb-modal-backdrop{position:absolute;inset:0;background:rgba(30,18,42,.64);backdrop-filter:blur(7px)}
.cgspb-shell .cgspb-kb-dialog{position:relative;z-index:1;width:min(1500px,96vw);max-height:92vh;overflow:auto;background:linear-gradient(180deg,#fff,#fdfbff);border-radius:28px;box-shadow:0 30px 100px rgba(30,12,52,.35);padding:28px;border:1px solid rgba(255,255,255,.85)}
.cgspb-shell .cgspb-kb-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:18px;border-bottom:1px solid #ece5f2}.cgspb-shell .cgspb-kb-head h2{margin:3px 0 5px;font-size:30px}.cgspb-shell .cgspb-kb-head p:last-child{margin:0;color:var(--cgspb-muted);max-width:900px}
.cgspb-shell .cgspb-kb-layout{display:grid;grid-template-columns:minmax(330px,.72fr) minmax(0,1.28fr);gap:18px;margin-top:20px;align-items:start}
.cgspb-shell .cgspb-kb-upload-card,.cgspb-shell .cgspb-kb-library{background:#fff;border:1px solid #e8e0f0;border-radius:22px;padding:20px;box-shadow:0 10px 30px rgba(58,29,91,.06)}
.cgspb-shell .cgspb-kb-upload-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:15px}.cgspb-shell .cgspb-kb-upload-title h3,.cgspb-shell .cgspb-kb-library h3{margin:0 0 4px}.cgspb-shell .cgspb-kb-upload-title p,.cgspb-shell .cgspb-kb-library-head p{margin:0;color:var(--cgspb-muted);font-size:11px;line-height:1.45}
.cgspb-shell .cgspb-kb-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#ff8a21,#7b2cff);color:#fff;flex:none}.cgspb-shell .cgspb-kb-icon .dashicons{font-size:21px;width:21px;height:21px}
.cgspb-shell .cgspb-kb-upload-form{display:grid;gap:12px}.cgspb-shell .cgspb-kb-filepick{display:flex;align-items:center;gap:11px;padding:14px;border:1.5px dashed #cdbce0;border-radius:15px;background:#fbf8ff;cursor:pointer}.cgspb-shell .cgspb-kb-filepick input{position:absolute;opacity:0;pointer-events:none}.cgspb-shell .cgspb-kb-filepick>.dashicons{font-size:24px;width:24px;height:24px;color:var(--cgspb-orange)}.cgspb-shell .cgspb-kb-filepick strong,.cgspb-shell .cgspb-kb-filepick small{display:block}.cgspb-shell .cgspb-kb-filepick small{font-size:9.5px;color:var(--cgspb-muted);margin-top:2px}
.cgspb-shell .cgspb-kb-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.cgspb-shell .cgspb-kb-fields label:first-child{grid-column:1/-1}.cgspb-shell .cgspb-kb-fields label>span{display:block;font-size:10px;font-weight:800;color:#62576d;margin-bottom:5px}.cgspb-shell .cgspb-kb-fields input,.cgspb-shell .cgspb-kb-edit input{width:100%;min-height:40px;border:1px solid #dfd5e9;border-radius:11px;padding:8px 10px;background:#fff;font:inherit}
.cgspb-shell .cgspb-kb-tip{display:flex;gap:8px;align-items:flex-start;margin:0;padding:10px 11px;border-radius:12px;background:#fff4e6;color:#7b4b16;font-size:10px;line-height:1.45}.cgspb-shell .cgspb-kb-tip .dashicons{color:var(--cgspb-orange);font-size:17px;width:17px;height:17px}
.cgspb-shell .cgspb-kb-library-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:13px}.cgspb-shell .cgspb-kb-cards{display:grid;gap:10px;max-height:58vh;overflow:auto;padding-right:3px}
.cgspb-shell .cgspb-kb-card{border:1px solid #e8e0f0;border-radius:16px;background:#fff;overflow:hidden}.cgspb-shell .cgspb-kb-card-main{display:flex;gap:11px;padding:13px}.cgspb-shell .cgspb-kb-filetype{width:48px;height:48px;border-radius:13px;background:#f1ebfb;color:#5920c5;display:grid;place-items:center;font-size:10px;font-weight:900;letter-spacing:.04em;flex:none}.cgspb-shell .cgspb-kb-card-copy{min-width:0;flex:1}.cgspb-shell .cgspb-kb-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.cgspb-shell .cgspb-kb-card h4{margin:1px 0 4px;font-size:13px}.cgspb-shell .cgspb-kb-card p{margin:0 0 4px;color:#62586d;font-size:10.5px;line-height:1.4}.cgspb-shell .cgspb-kb-card small{color:#9a8fa4;font-size:9px}.cgspb-shell .cgspb-kb-status{white-space:nowrap;padding:5px 7px;border-radius:999px;font-size:8px;font-weight:850;background:#f0ecf5;color:#6c6176}.cgspb-shell .cgspb-kb-status.is-ready{background:#e8f7ef;color:#1d7051}.cgspb-shell .cgspb-kb-status.is-processing{background:#fff2dd;color:#985005}.cgspb-shell .cgspb-kb-status.is-error{background:#ffe9e9;color:#a43333}.cgspb-shell .cgspb-kb-error{margin-top:7px;padding:7px 8px;border-radius:9px;background:#fff0f0;color:#a23c3c;font-size:9px;line-height:1.4}
.cgspb-shell .cgspb-kb-edit{border-top:1px solid #eee8f3}.cgspb-shell .cgspb-kb-edit summary{list-style:none;display:flex;align-items:center;gap:6px;padding:9px 13px;font-size:9.5px;font-weight:800;color:var(--cgspb-purple);cursor:pointer}.cgspb-shell .cgspb-kb-edit summary::-webkit-details-marker{display:none}.cgspb-shell .cgspb-kb-edit-grid{display:grid;grid-template-columns:1.4fr .8fr;gap:10px;padding:0 13px 13px}.cgspb-shell .cgspb-kb-edit-grid form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:10px;border-radius:12px;background:#faf8fc}.cgspb-shell .cgspb-kb-edit-grid form label{font-size:9px;font-weight:800;color:#6d6275}.cgspb-shell .cgspb-kb-edit-grid form label:first-of-type{grid-column:1/-1}.cgspb-shell .cgspb-kb-edit-grid form button{grid-column:1/-1;justify-self:start}.cgspb-shell .cgspb-kb-edit-grid form:last-child{grid-template-columns:1fr}
.cgspb-shell .cgspb-kb-actions{display:flex;justify-content:flex-end;gap:7px;padding:9px 13px;border-top:1px solid #eee8f3;background:#fdfcff}.cgspb-shell .cgspb-btn.is-danger{background:#fff0f0;color:#a33030;border:1px solid #f1d0d0}.cgspb-shell .cgspb-kb-footnote{display:flex;gap:9px;align-items:flex-start;margin-top:15px;padding:12px 14px;border:1px solid #eadff6;border-radius:14px;background:linear-gradient(90deg,#fff8ef,#f8f3ff)}.cgspb-shell .cgspb-kb-footnote .dashicons{color:var(--cgspb-purple)}.cgspb-shell .cgspb-kb-footnote p{margin:0;font-size:10.5px;line-height:1.45;color:#62576d}
.cgspb-shell .cgspb-attempt-badge{display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.62);font-size:9px;font-weight:800}.cgspb-shell .cgspb-attempt-badge .dashicons{font-size:13px;width:13px;height:13px}
.cgspb-shell .cgspb-scaffold-list{gap:9px}.cgspb-shell .cgspb-auto-detail-list>.cgspb-scaffold-card{padding:10px 11px}.cgspb-shell .cgspb-scaffold-card>span:last-child{min-width:0;flex:1}.cgspb-shell .cgspb-scaffold-card p{margin:4px 0 0!important;line-height:1.45}.cgspb-shell .cgspb-scaffold-feedback{color:inherit}.cgspb-shell .cgspb-scaffold-hint,.cgspb-shell .cgspb-scaffold-reference{display:flex;align-items:flex-start;gap:5px;padding:7px 8px;border-radius:9px}.cgspb-shell .cgspb-scaffold-hint{background:#fff7e7;color:#70470f}.cgspb-shell .cgspb-scaffold-reference{background:#f2edff;color:#4a2798}.cgspb-shell .cgspb-scaffold-hint .dashicons,.cgspb-shell .cgspb-scaffold-reference .dashicons{font-size:14px;width:14px;height:14px;margin-top:1px;flex:none}
@media(max-width:900px){.cgspb-shell .cgspb-kb-layout{grid-template-columns:1fr}.cgspb-shell .cgspb-kb-cards{max-height:none}.cgspb-shell .cgspb-kb-edit-grid{grid-template-columns:1fr}}
@media(max-width:620px){.cgspb-shell .cgspb-kb-modal{padding:0}.cgspb-shell .cgspb-kb-dialog{width:100vw;max-height:100vh;height:100vh;border-radius:0;padding:17px}.cgspb-shell .cgspb-kb-head h2{font-size:23px}.cgspb-shell .cgspb-kb-fields{grid-template-columns:1fr}.cgspb-shell .cgspb-kb-fields label:first-child{grid-column:auto}.cgspb-shell .cgspb-kb-card-title{flex-direction:column}.cgspb-shell .cgspb-kb-edit-grid form{grid-template-columns:1fr}.cgspb-shell .cgspb-kb-edit-grid form label:first-of-type,.cgspb-shell .cgspb-kb-edit-grid form button{grid-column:auto}.cgspb-shell .cgspb-kb-actions{flex-wrap:wrap}.cgspb-shell .cgspb-kb-actions>*{flex:1}.cgspb-shell .cgspb-kb-actions .cgspb-btn{width:100%;justify-content:center}}


/* v0.8.0 – bronbeleid en getrapte AI-bronnen */
.cgspb-shell .cgspb-ai-fallback-flow{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 14px;border:1px solid #eadff5;border-radius:15px;background:linear-gradient(90deg,#fff8ef,#faf6ff);color:#62566d}
.cgspb-shell .cgspb-ai-fallback-flow>span{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:800}.cgspb-shell .cgspb-ai-fallback-flow>span b{width:22px;height:22px;border-radius:999px;display:grid;place-items:center;background:linear-gradient(135deg,var(--cgspb-orange),var(--cgspb-purple));color:#fff;font-size:9px}.cgspb-shell .cgspb-ai-fallback-flow>i{font-style:normal;color:#9d8bab}.cgspb-shell .cgspb-ai-fallback-flow>small{flex-basis:100%;font-size:9.5px;color:var(--cgspb-muted);line-height:1.45}
.cgspb-shell .cgspb-kb-policy{display:grid;gap:8px}.cgspb-shell .cgspb-kb-policy .cgspb-builder-switch{padding:10px 11px;background:#fbf9ff;border-radius:13px}.cgspb-shell .cgspb-kb-policy .cgspb-builder-switch strong{font-size:10.5px}.cgspb-shell .cgspb-kb-policy .cgspb-builder-switch small{font-size:9px;line-height:1.4}
.cgspb-shell .cgspb-kb-policy-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.cgspb-shell .cgspb-kb-policy-badges span{display:inline-flex;padding:4px 7px;border-radius:999px;background:#f0ebf6;color:#685b74;font-size:7.8px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.cgspb-shell .cgspb-kb-policy-badges .is-active{background:#e9f7ef;color:#216a4e}.cgspb-shell .cgspb-kb-policy-badges .is-archive{background:#eee;color:#666}.cgspb-shell .cgspb-kb-policy-badges .is-reference{background:#fff0df;color:#8a520d}
.cgspb-shell .cgspb-kb-edit-policies{grid-column:1/-1;display:grid;gap:6px;padding:8px 9px;border:1px solid #e9e0f1;border-radius:10px;background:#fff}.cgspb-shell .cgspb-kb-edit-policies label{display:flex;align-items:flex-start;gap:7px!important;font-size:9px!important;font-weight:750!important;line-height:1.35}.cgspb-shell .cgspb-kb-edit-policies input[type=checkbox]{width:16px!important;min-height:16px!important;height:16px!important;margin:0;flex:none}
@media(max-width:620px){.cgspb-shell .cgspb-ai-fallback-flow{align-items:flex-start}.cgspb-shell .cgspb-ai-fallback-flow>i{display:none}.cgspb-shell .cgspb-ai-fallback-flow>span{width:100%}.cgspb-shell .cgspb-kb-policy{grid-template-columns:1fr}}

/* v0.8.2 – harde fallback voor sluiten van overlays.
   aria-hidden=true wint altijd van een achtergebleven is-open class of thema/plugin CSS. */
.cgspb-shell [data-cgspb-kb-modal][aria-hidden="true"],
.cgspb-shell [data-cgspb-lessons-modal][aria-hidden="true"],
.cgspb-shell [data-cgspb-modal][aria-hidden="true"],
.cgspb-shell [data-cgspb-quick][aria-hidden="true"]{display:none!important;visibility:hidden!important;pointer-events:none!important}
.cgspb-shell .cgspb-lessons-modal-close{text-decoration:none}

/* v0.9.0 – privacyvriendelijke studentcodes, lescodes en bewijzen */
.cgspb-shell.cgspb-gateway-shell{max-width:760px}
.cgspb-shell .cgspb-gateway-card{max-width:680px;margin-inline:auto}
.cgspb-shell .cgspb-gateway-primary{margin-top:18px;padding:16px;border:1px solid #eadff6;border-radius:18px;background:linear-gradient(135deg,#fbf8ff,#fff8f1)}
.cgspb-shell .cgspb-code-large{font-size:24px!important;letter-spacing:.12em;text-transform:uppercase;text-align:center;font-weight:900;min-height:58px!important}
.cgspb-shell .cgspb-gateway-divider{display:flex;align-items:center;gap:12px;margin:17px 0;color:#9a91a4;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.cgspb-shell .cgspb-gateway-divider:before,.cgspb-shell .cgspb-gateway-divider:after{content:"";height:1px;background:#e9e2ef;flex:1}
.cgspb-shell .cgspb-auth-details{border:1px solid #e9e2ef;border-radius:15px;background:#fff;margin-top:10px;overflow:hidden}
.cgspb-shell .cgspb-auth-details>summary{cursor:pointer;padding:13px 15px;font-weight:850;color:var(--cgspb-purple-dark);list-style:none}
.cgspb-shell .cgspb-auth-details>summary::-webkit-details-marker{display:none}
.cgspb-shell .cgspb-auth-details[open]>summary{border-bottom:1px solid #eee8f3;background:#faf7ff}
.cgspb-shell .cgspb-auth-details>.cgspb-form,.cgspb-shell .cgspb-auth-details>p{margin:0;padding:15px}
.cgspb-shell .cgspb-big-code,.cgspb-shell .cgspb-account-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em;font-weight:900;color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-big-code{font-size:21px;display:inline-block;margin:6px 0}
.cgspb-shell .cgspb-big-code.is-inline{font-size:15px;margin:0;padding:7px 9px;border-radius:9px;background:#f3edff}
.cgspb-shell .cgspb-account-code{font-size:clamp(24px,5vw,38px);padding:18px;border:1px dashed #cbb9e4;border-radius:16px;background:#faf7ff;text-align:center;margin:14px 0}
.cgspb-shell .cgspb-account-ready{border:1px solid #caeadb;border-radius:20px;background:linear-gradient(135deg,#effaf5,#fff);padding:20px 22px;margin-bottom:18px;box-shadow:0 10px 30px rgba(29,141,102,.08)}
.cgspb-shell .cgspb-account-ready h2{margin-bottom:12px}
.cgspb-shell .cgspb-account-ready-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 12px}
.cgspb-shell .cgspb-account-ready-grid>div{padding:13px;border-radius:13px;background:#fff;border:1px solid #dcefe6}
.cgspb-shell .cgspb-account-ready-grid small{display:block;color:var(--cgspb-muted);font-size:10px;text-transform:uppercase;font-weight:850;letter-spacing:.06em;margin-bottom:4px}
.cgspb-shell .cgspb-account-ready-grid strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:18px;color:#176447}
.cgspb-shell .cgspb-check-row{display:flex!important;align-items:flex-start!important;gap:9px!important;padding:11px 12px;border:1px solid #e7dff0;border-radius:12px;background:#fbf9fd}
.cgspb-shell .cgspb-check-row input{width:18px!important;height:18px!important;min-height:18px!important;margin:1px 0 0!important;flex:none}
.cgspb-shell .cgspb-enter-next{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px}
.cgspb-shell .cgspb-enter-next h3,.cgspb-shell .cgspb-enter-next p{margin-bottom:4px}
.cgspb-shell .cgspb-enter-next .cgspb-inline-form{min-width:min(100%,390px)}
.cgspb-shell .cgspb-certificates{margin-top:22px}
.cgspb-shell .cgspb-cert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.cgspb-shell .cgspb-cert-card{display:flex;align-items:center;gap:12px;border:1px solid #e7e0ef;border-radius:16px;padding:13px;background:#fff}
.cgspb-shell .cgspb-cert-card>.dashicons{width:36px;height:36px;min-width:36px;border-radius:11px;display:grid;place-items:center;background:#fff1e4;color:var(--cgspb-orange);font-size:20px}
.cgspb-shell .cgspb-cert-card>div{min-width:0;flex:1}.cgspb-shell .cgspb-cert-card strong,.cgspb-shell .cgspb-cert-card small{display:block}.cgspb-shell .cgspb-cert-card small{color:var(--cgspb-muted);font-size:10px;margin-top:3px}
.cgspb-shell .cgspb-access-panel .cgspb-table td{vertical-align:middle}
.cgspb-shell .cgspb-code-create-form{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.cgspb-shell .cgspb-code-create-form input[type=datetime-local]{min-height:36px;max-width:185px;border:1px solid #dfd5e9;border-radius:10px;padding:6px 8px;font:inherit;font-size:11px;background:#fff}
.cgspb-shell .cgspb-reset-notice{margin-bottom:15px}.cgspb-shell .cgspb-reset-notice p{margin:7px 0}
@media(max-width:760px){.cgspb-shell .cgspb-account-ready-grid,.cgspb-shell .cgspb-cert-grid{grid-template-columns:1fr}.cgspb-shell .cgspb-enter-next{align-items:stretch;flex-direction:column}.cgspb-shell .cgspb-enter-next .cgspb-inline-form{min-width:0;width:100%}.cgspb-shell .cgspb-cert-card{align-items:flex-start;flex-wrap:wrap}.cgspb-shell .cgspb-cert-card .cgspb-btn{width:100%}}
.cgspb-shell .cgspb-student-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:8px 2px 0;color:var(--cgspb-muted);font-size:11px}.cgspb-shell .cgspb-student-toolbar strong{color:var(--cgspb-purple-dark);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}

/* v0.9.1 – sluitknoppen moeten altijd boven de dialooginhoud klikbaar blijven. */
.cgspb-shell .cgspb-kb-head{position:relative;z-index:20}
.cgspb-shell .cgspb-hard-close{position:relative!important;z-index:100!important;pointer-events:auto!important;touch-action:manipulation}
.cgspb-shell .cgspb-kb-modal-backdrop,.cgspb-shell .cgspb-lessons-modal-backdrop{display:block;text-decoration:none;cursor:default}


/* v0.9.2 – volledige sluittegel is het klikdoel.
   Geen los Dashicons-child meer dat het midden van de tegel kan onderscheppen. */
.cgspb-shell .cgspb-lessons-modal-close{
  position:relative!important;
  z-index:1000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  padding:0!important;
  box-sizing:border-box!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  line-height:1!important;
  isolation:isolate;
}
.cgspb-shell .cgspb-lessons-modal-close::before{
  content:"×";
  display:block;
  pointer-events:none!important;
  user-select:none;
  font-family:Arial,Helvetica,sans-serif;
  font-size:27px;
  font-weight:500;
  line-height:1;
  transform:translateY(-1px);
}
.cgspb-shell .cgspb-lessons-modal-close > *{pointer-events:none!important}

/* v0.9.3 – het vaste themamenu ligt boven main (z-index: 20) en vangt
   daardoor klikken op de rechterkant van de Kennisbank-sluitknop af.
   Een hogere z-index op de knop zelf helpt niet binnen die stacking context.
   Til de pagina alleen op zolang een van onze overlays zichtbaar is. */
main:has(.cgspb-shell .cgspb-kb-modal.is-open,
         .cgspb-shell .cgspb-lessons-modal.is-open,
         .cgspb-shell .cgspb-media-modal.is-open,
         .cgspb-shell .cgspb-mobile-quick.is-open){
  position:relative;
  z-index:2147483003!important;
}

/* v0.10.0 – AI-lesmaker en afbeeldingsblok */
.cgspb-shell .cgspb-btn.is-ai,
.cgspb-shell .cgspb-btn.is-ai-soft{
  position:relative;
  overflow:hidden;
}
.cgspb-shell .cgspb-btn.is-ai{
  background:linear-gradient(135deg,var(--cgspb-orange) 0%,#f86d19 30%,var(--cgspb-purple) 100%);
  color:#fff!important;
  border-color:rgba(255,255,255,.24)!important;
  box-shadow:0 14px 34px rgba(67,24,156,.27)!important;
}
.cgspb-shell .cgspb-btn.is-ai .dashicons{color:#fff!important}
.cgspb-shell .cgspb-btn.is-ai:hover{box-shadow:0 18px 42px rgba(67,24,156,.34)!important}
.cgspb-shell .cgspb-btn.is-ai-soft{
  background:linear-gradient(135deg,#fff2e7 0%,#f5edff 52%,#efe5ff 100%);
  color:var(--cgspb-purple-dark)!important;
  border:1px solid #e0d1fa;
  box-shadow:0 8px 22px rgba(72,31,143,.08);
}
.cgspb-shell .cgspb-btn.is-ai-soft .dashicons{color:var(--cgspb-orange)}
.cgspb-shell .cgspb-btn.is-ai-soft:hover{background:linear-gradient(135deg,#ffe9d6,#ede1ff)}

.cgspb-shell .cgspb-ai-lesson-modal{
  position:fixed;
  inset:0;
  z-index:2147483100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.cgspb-shell .cgspb-ai-lesson-backdrop{
  position:absolute;
  inset:0;
  display:block;
  background:rgba(27,10,49,.72);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.cgspb-shell .cgspb-ai-lesson-dialog{
  position:relative;
  z-index:2;
  width:min(1320px,96vw);
  max-height:94vh;
  overflow:auto;
  border-radius:30px;
  background:linear-gradient(180deg,#fff 0%,#fcfaff 100%);
  border:1px solid rgba(255,255,255,.75);
  box-shadow:0 38px 120px rgba(30,10,58,.42);
  padding:28px;
}
.cgspb-shell .cgspb-ai-lesson-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:22px;
  padding:2px 2px 21px;
  margin-bottom:20px;
  border-bottom:1px solid var(--cgspb-line);
}
.cgspb-shell .cgspb-ai-lesson-head h2{
  font-size:clamp(28px,3.5vw,44px);
  margin:0 0 8px;
}
.cgspb-shell .cgspb-ai-lesson-head p:last-child{
  margin:0;
  max-width:900px;
  color:var(--cgspb-muted);
  line-height:1.55;
}
.cgspb-shell .cgspb-ai-lesson-close{
  width:48px;
  height:48px;
  min-width:48px;
  display:grid;
  place-items:center;
  border-radius:15px;
  background:#f1ebfa;
  color:var(--cgspb-purple-dark)!important;
  font:500 29px/1 Arial,Helvetica,sans-serif;
  text-decoration:none!important;
  transition:transform .18s ease,background .18s ease;
}
.cgspb-shell .cgspb-ai-lesson-close:hover{background:#e8ddf7;transform:scale(1.04)}
.cgspb-shell .cgspb-ai-lesson-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(340px,.75fr);
  gap:18px;
  align-items:stretch;
}
.cgspb-shell .cgspb-ai-prompt-card,
.cgspb-shell .cgspb-ai-options-card{
  border:1px solid #e8dff3;
  border-radius:24px;
  background:#fff;
  box-shadow:0 14px 38px rgba(58,29,105,.07);
  padding:22px;
}
.cgspb-shell .cgspb-ai-prompt-card{
  position:relative;
  overflow:hidden;
}
.cgspb-shell .cgspb-ai-prompt-card:before{
  content:"";
  position:absolute;
  right:-85px;
  top:-95px;
  width:230px;
  height:230px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(109,34,255,.10),rgba(109,34,255,0) 68%);
  pointer-events:none;
}
.cgspb-shell .cgspb-ai-card-icon{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:16px;
  margin-bottom:14px;
  color:#fff;
  background:linear-gradient(145deg,var(--cgspb-orange),var(--cgspb-purple));
  box-shadow:0 10px 26px rgba(109,34,255,.20);
}
.cgspb-shell .cgspb-ai-card-icon .dashicons{font-size:25px;width:25px;height:25px}
.cgspb-shell .cgspb-ai-prompt-card h3,
.cgspb-shell .cgspb-ai-options-card h3{margin:0 0 5px;font-size:24px}
.cgspb-shell .cgspb-ai-prompt-card>label,
.cgspb-shell .cgspb-ai-options-card>label:not(.cgspb-builder-switch){display:block;margin-top:18px}
.cgspb-shell .cgspb-ai-prompt-card label>span,
.cgspb-shell .cgspb-ai-options-card label>span:first-child{
  display:block;
  font-size:12px;
  font-weight:850;
  color:#4d4657;
  margin-bottom:7px;
}
.cgspb-shell .cgspb-ai-prompt-card textarea,
.cgspb-shell .cgspb-ai-options-card textarea,
.cgspb-shell .cgspb-ai-options-card input[type=number]{
  width:100%;
  border:1px solid #ddd3e8;
  background:#fff;
  color:var(--cgspb-ink);
  border-radius:15px;
  padding:13px 14px;
  font:inherit;
  outline:none;
  box-shadow:0 1px 0 rgba(59,24,112,.02);
  transition:border-color .18s ease,box-shadow .18s ease;
}
.cgspb-shell .cgspb-ai-prompt-card textarea{
  min-height:275px;
  resize:vertical;
  line-height:1.55;
  font-size:15px;
}
.cgspb-shell .cgspb-ai-prompt-card textarea:focus,
.cgspb-shell .cgspb-ai-options-card textarea:focus,
.cgspb-shell .cgspb-ai-options-card input[type=number]:focus{
  border-color:#b896ff;
  box-shadow:0 0 0 4px rgba(109,34,255,.09);
}
.cgspb-shell .cgspb-ai-options-card{
  background:linear-gradient(180deg,#fff 0%,#faf7ff 100%);
}
.cgspb-shell .cgspb-ai-options-card .cgspb-builder-switch{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:12px;
  padding:12px;
  border:1px solid #e7def1;
  border-radius:15px;
  background:#fff;
}
.cgspb-shell .cgspb-ai-options-card .cgspb-builder-switch input{
  width:19px!important;
  height:19px!important;
  min-width:19px;
  margin:1px 0 0!important;
  accent-color:var(--cgspb-purple);
}
.cgspb-shell .cgspb-ai-options-card .cgspb-builder-switch span{display:block!important;margin:0!important}
.cgspb-shell .cgspb-ai-options-card .cgspb-builder-switch strong{display:block;color:var(--cgspb-ink);font-size:13px;line-height:1.3}
.cgspb-shell .cgspb-ai-options-card .cgspb-builder-switch small{display:block;color:var(--cgspb-muted);font-size:11px;line-height:1.45;margin-top:3px}
.cgspb-shell .cgspb-input-suffix{display:flex;align-items:center;gap:0}
.cgspb-shell .cgspb-input-suffix input{border-radius:15px 0 0 15px!important}
.cgspb-shell .cgspb-input-suffix b{
  min-height:47px;
  display:grid;
  place-items:center;
  padding:0 13px;
  border:1px solid #ddd3e8;
  border-left:0;
  border-radius:0 15px 15px 0;
  background:#f3edfb;
  color:var(--cgspb-purple-dark);
  font-size:12px;
}
.cgspb-shell .cgspb-ai-options-card>label>small{display:block;color:var(--cgspb-muted);font-size:10.5px;line-height:1.45;margin-top:6px}
.cgspb-shell .cgspb-ai-standards{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0 0;
}
.cgspb-shell .cgspb-ai-standards span{
  padding:11px 13px;
  border:1px solid #e8dff3;
  border-radius:14px;
  background:#faf8fd;
  color:var(--cgspb-muted);
  font-size:11px;
  line-height:1.35;
}
.cgspb-shell .cgspb-ai-standards strong{display:block;color:var(--cgspb-purple-dark);font-size:11px;margin-bottom:2px}
.cgspb-shell .cgspb-ai-lesson-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-top:18px;
  padding:17px 18px;
  border:1px solid #e8dff3;
  border-radius:18px;
  background:linear-gradient(135deg,#fff9f2,#f7f1ff);
}
.cgspb-shell .cgspb-ai-lesson-actions strong,
.cgspb-shell .cgspb-ai-lesson-actions small{display:block}
.cgspb-shell .cgspb-ai-lesson-actions small{margin-top:4px;color:var(--cgspb-muted);line-height:1.45}
.cgspb-shell .cgspb-ai-generate-btn{min-height:54px;padding-left:22px;padding-right:22px;flex:none}

.cgspb-shell .cgspb-inline-image{
  margin:10px 0 2px;
  border:1px solid #e7dff0;
  border-radius:18px;
  overflow:hidden;
  background:#faf8fd;
}
.cgspb-shell .cgspb-inline-image img{
  display:block;
  width:100%;
  max-height:680px;
  object-fit:contain;
  background:#f6f3fa;
}
.cgspb-shell .cgspb-inline-image figcaption{padding:10px 13px;color:var(--cgspb-muted);font-size:12px;line-height:1.45;background:#fff}
.cgspb-shell .cgspb-inline-image.is-empty{
  display:flex;
  align-items:center;
  gap:10px;
  padding:16px;
  border-style:dashed;
  color:var(--cgspb-muted);
}
.cgspb-shell .cgspb-inline-image.is-empty .dashicons{color:var(--cgspb-purple);font-size:22px;width:22px;height:22px}

@media(max-width:1080px){
  .cgspb-shell .cgspb-hero-actions>.cgspb-btn{min-width:0;flex:1 1 160px}
  .cgspb-shell .cgspb-ai-lesson-grid{grid-template-columns:1fr}
  .cgspb-shell .cgspb-ai-standards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .cgspb-shell .cgspb-ai-lesson-modal{padding:8px;align-items:flex-start}
  .cgspb-shell .cgspb-ai-lesson-dialog{width:100%;max-height:calc(100vh - 16px);border-radius:22px;padding:17px}
  .cgspb-shell .cgspb-ai-lesson-head{gap:10px;padding-bottom:15px;margin-bottom:14px}
  .cgspb-shell .cgspb-ai-lesson-head h2{font-size:28px}
  .cgspb-shell .cgspb-ai-lesson-close{width:42px;height:42px;min-width:42px;border-radius:13px}
  .cgspb-shell .cgspb-ai-prompt-card,.cgspb-shell .cgspb-ai-options-card{padding:16px;border-radius:19px}
  .cgspb-shell .cgspb-ai-prompt-card textarea{min-height:235px}
  .cgspb-shell .cgspb-ai-standards{grid-template-columns:1fr 1fr;gap:7px}
  .cgspb-shell .cgspb-ai-lesson-actions{align-items:stretch;flex-direction:column;padding:14px}
  .cgspb-shell .cgspb-ai-generate-btn{width:100%}
}
@media(max-width:440px){
  .cgspb-shell .cgspb-ai-standards{grid-template-columns:1fr}
}

/* v0.10.1 – AI-lesmaker achtergrondverwerking / anti-504 */
.cgspb-shell .cgspb-ai-job-panel{
  min-height:430px;border:1px solid #eadffd;border-radius:28px;padding:42px 32px;
  background:linear-gradient(145deg,#fff 0%,#fbf8ff 56%,#fff7ef 100%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
  box-shadow:0 24px 70px rgba(67,28,128,.10);position:relative;overflow:hidden;
}
.cgspb-shell .cgspb-ai-job-panel:before,.cgspb-shell .cgspb-ai-job-panel:after{
  content:"";position:absolute;border-radius:999px;pointer-events:none;
}
.cgspb-shell .cgspb-ai-job-panel:before{width:340px;height:340px;right:-180px;top:-190px;background:rgba(113,42,255,.06)}
.cgspb-shell .cgspb-ai-job-panel:after{width:260px;height:260px;left:-150px;bottom:-170px;background:rgba(255,126,20,.07)}
.cgspb-shell .cgspb-ai-job-panel h3{font-size:30px;line-height:1.1;margin:8px 0 10px;color:var(--cgspb-ink)}
.cgspb-shell .cgspb-ai-job-panel>p:not(.cgspb-kicker){max-width:640px;margin:0 auto 22px;color:var(--cgspb-muted);font-size:15px;line-height:1.6}
.cgspb-shell .cgspb-ai-job-panel>small{max-width:650px;color:#827c8e;line-height:1.5;margin-top:20px}
.cgspb-shell .cgspb-ai-job-orbit{width:82px;height:82px;border-radius:50%;position:relative;margin-bottom:18px;background:linear-gradient(145deg,#fff,#f2eaff);box-shadow:0 16px 38px rgba(84,31,169,.14)}
.cgspb-shell .cgspb-ai-job-orbit:before{content:"✦";position:absolute;inset:0;display:grid;place-items:center;font-size:30px;color:#6c26ff}
.cgspb-shell .cgspb-ai-job-orbit span,.cgspb-shell .cgspb-ai-job-orbit i{position:absolute;inset:-7px;border:3px solid transparent;border-top-color:#ff8417;border-right-color:#7b2cff;border-radius:50%;animation:cgspbAiSpin 1.15s linear infinite}
.cgspb-shell .cgspb-ai-job-orbit i{inset:8px;animation-direction:reverse;animation-duration:1.75s;border-top-color:#7b2cff;border-right-color:#ff9d45;opacity:.55}
@keyframes cgspbAiSpin{to{transform:rotate(360deg)}}
.cgspb-shell .cgspb-ai-job-steps{display:grid;grid-template-columns:repeat(4,minmax(125px,1fr));gap:8px;width:min(760px,100%);margin:7px auto 0}
.cgspb-shell .cgspb-ai-job-steps span{padding:11px 10px;border-radius:14px;background:#f4effb;color:#8c849a;font-size:12px;font-weight:700;transition:.25s ease;border:1px solid transparent}
.cgspb-shell .cgspb-ai-job-steps span.is-active{background:linear-gradient(135deg,#fff2df,#f2eaff);color:#4c20a7;border-color:#ead9ff}
.cgspb-shell .cgspb-ai-job-steps span.is-current{box-shadow:0 7px 18px rgba(103,39,210,.10);transform:translateY(-1px)}
.cgspb-shell .cgspb-ai-job-panel.is-complete .cgspb-ai-job-orbit span,.cgspb-shell .cgspb-ai-job-panel.is-complete .cgspb-ai-job-orbit i{animation-duration:.55s}
.cgspb-shell .cgspb-ai-job-panel.is-error .cgspb-ai-job-orbit span,.cgspb-shell .cgspb-ai-job-panel.is-error .cgspb-ai-job-orbit i{animation:none;border-color:#e34848}
.cgspb-shell .cgspb-ai-job-error{width:min(720px,100%);margin-top:18px;padding:14px 16px;border-radius:14px;background:#fff0f0;color:#972c2c;border:1px solid #f3c7c7;text-align:left;font-size:13px;line-height:1.5}
.cgspb-shell .cgspb-ai-job-panel [data-cgspb-ai-retry]{margin-top:14px}
@media(max-width:700px){
  .cgspb-shell .cgspb-ai-job-panel{min-height:390px;padding:30px 16px;border-radius:20px}
  .cgspb-shell .cgspb-ai-job-panel h3{font-size:25px}
  .cgspb-shell .cgspb-ai-job-steps{grid-template-columns:1fr 1fr}
  .cgspb-shell .cgspb-ai-job-steps span{font-size:11px;padding:10px 7px}
}

/* v0.10.2 – feedback en review UX */
.cgspb-shell .cgspb-choice>span:last-child,
.cgspb-shell .cgspb-form-radio-group .cgspb-choice>span:last-child{
  display:block!important;
  min-width:0;
  width:auto!important;
  max-width:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere;
  line-height:1.45;
}
.cgspb-shell .cgspb-task-approved{border-color:#bfe7cf!important;box-shadow:0 0 0 2px rgba(60,157,96,.12), var(--cgspb-shadow-soft)}
.cgspb-shell .cgspb-task-needs-work{border-color:#ffd097!important;box-shadow:0 0 0 2px rgba(255,145,0,.14), var(--cgspb-shadow-soft)}
.cgspb-shell .cgspb-inline-feedback{margin-top:16px;border-radius:16px;padding:14px 16px;border:1px solid #e6def2;background:#faf8ff}
.cgspb-shell .cgspb-inline-feedback.is-ok{border-color:#bfe7cf;background:#f3fcf6}
.cgspb-shell .cgspb-inline-feedback.is-warning{border-color:#ffd097;background:#fff8ef}
.cgspb-shell .cgspb-inline-feedback.is-pending{border-color:#d9d0e8;background:#f7f3fb}
.cgspb-shell .cgspb-inline-feedback-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.cgspb-shell .cgspb-inline-feedback-head strong{font-size:15px;color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-inline-feedback-score{padding:6px 10px;border-radius:999px;background:#fff;color:var(--cgspb-purple-dark);font-weight:800}
.cgspb-shell .cgspb-inline-feedback p{margin:6px 0;color:#4f4661}
.cgspb-shell .cgspb-inline-feedback-note{font-weight:700;color:#9a5c00}
.cgspb-shell .cgspb-inline-feedback-hint,
.cgspb-shell .cgspb-inline-feedback-ref{display:flex;gap:7px;align-items:flex-start}
.cgspb-shell .cgspb-inline-feedback-hint .dashicons,
.cgspb-shell .cgspb-inline-feedback-ref .dashicons{margin-top:2px;color:var(--cgspb-orange)}
.cgspb-shell .cgspb-score-explainer{margin-top:8px;color:var(--cgspb-muted)}
.cgspb-shell .cgspb-student-open{padding:0;border:0;background:none;color:inherit;cursor:pointer;text-align:left;font:inherit}
.cgspb-shell .cgspb-student-open strong{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.cgspb-shell .cgspb-review-grid.cgspb-review-queue{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.cgspb-shell .cgspb-review-card.is-compact{padding:18px;border:1px solid #e9dff8;border-radius:20px;background:linear-gradient(180deg,#fff,#fbf9ff)}
.cgspb-shell .cgspb-review-card.is-compact .cgspb-btn{margin-top:10px}
.cgspb-shell .cgspb-review-ai-note.is-warning{background:#fff5e8;border-color:#ffd097}
.cgspb-shell .cgspb-review-ai-note.is-ok{background:#f3fcf6;border-color:#bfe7cf}
.cgspb-shell .cgspb-review-modal{position:fixed;inset:0;z-index:2147483200;display:none;align-items:center;justify-content:center;padding:18px}
.cgspb-shell .cgspb-review-modal.is-open{display:flex}
.cgspb-shell .cgspb-review-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(27,10,49,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer}
.cgspb-shell .cgspb-review-modal-dialog{position:relative;z-index:2;width:min(1180px,96vw);max-height:92vh;overflow:auto;background:linear-gradient(180deg,#fff,#fcfaff);border:1px solid rgba(255,255,255,.75);box-shadow:0 38px 120px rgba(30,10,58,.42);border-radius:28px;padding:24px}
.cgspb-shell .cgspb-review-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--cgspb-line)}
.cgspb-shell .cgspb-review-modal-head h2{margin:4px 0 6px;font-size:clamp(26px,3vw,42px)}
.cgspb-shell .cgspb-review-modal-head p{margin:0;color:var(--cgspb-muted)}
.cgspb-shell .cgspb-review-modal-close,
.cgspb-shell .cgspb-ai-lesson-close{position:relative;z-index:1000;pointer-events:auto}
.cgspb-shell .cgspb-review-modal-close{appearance:none;border:0;width:48px;height:48px;min-width:48px;border-radius:15px;display:grid;place-items:center;background:#f1ebfa;color:var(--cgspb-purple-dark);cursor:pointer}
.cgspb-shell .cgspb-review-modal-close::before{content:"×";font:500 29px/1 Arial,Helvetica,sans-serif;pointer-events:none}
.cgspb-shell .cgspb-review-modal-close:hover{background:#e8ddf7}
.cgspb-shell .cgspb-review-modal-form{margin-top:18px;border-top:1px solid var(--cgspb-line);padding-top:18px}
.cgspb-shell .cgspb-review-question{border:1px solid #ece3f8;border-radius:18px;padding:18px;background:#fff}
.cgspb-shell .cgspb-review-question.is-approved{border-color:#bfe7cf;background:#f9fffb}
.cgspb-shell .cgspb-review-question.is-needs-work{border-color:#ffd097;background:#fffaf3}
.cgspb-shell .cgspb-review-meta{margin-top:12px;border-radius:14px;padding:12px 14px;border:1px solid #e6def2;background:#faf8ff}
.cgspb-shell .cgspb-review-meta.is-ok{border-color:#bfe7cf;background:#f3fcf6}
.cgspb-shell .cgspb-review-meta.is-warning{border-color:#ffd097;background:#fff8ef}
.cgspb-shell .cgspb-review-meta.is-pending{border-color:#d9d0e8;background:#f7f3fb}
.cgspb-shell .cgspb-review-meta-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.cgspb-shell .cgspb-review-meta-head strong{color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-review-meta-head span{padding:6px 10px;border-radius:999px;background:#fff;font-weight:800;color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-review-meta p{margin:6px 0;color:#4f4661}
.cgspb-shell .cgspb-review-meta-hint,.cgspb-shell .cgspb-review-meta-ref{display:flex;gap:7px;align-items:flex-start}
.cgspb-shell .cgspb-review-meta .dashicons{margin-top:2px;color:var(--cgspb-orange)}
main:has(.cgspb-shell .cgspb-ai-lesson-modal,
         .cgspb-shell .cgspb-review-modal.is-open,
         .cgspb-shell .cgspb-kb-modal.is-open,
         .cgspb-shell .cgspb-lessons-modal.is-open,
         .cgspb-shell .cgspb-media-modal.is-open,
         .cgspb-shell .cgspb-mobile-quick.is-open){
  position:relative;
  z-index:2147483003!important;
}
@media(max-width:760px){
  .cgspb-shell .cgspb-review-modal-dialog{padding:18px;border-radius:22px}
  .cgspb-shell .cgspb-review-modal-head{gap:10px;align-items:flex-start}
  .cgspb-shell .cgspb-review-modal-close,.cgspb-shell .cgspb-ai-lesson-close{width:44px;height:44px;min-width:44px}
}

/* v0.10.3 – compacter docentdashboard, studentnummer-login en bewijsfoto's */
.cgspb-shell .cgspb-hero.is-teacher .cgspb-hero-copy{max-width:920px}
.cgspb-shell .cgspb-collapsible-settings{padding:0;overflow:hidden}
.cgspb-shell .cgspb-collapsible-settings>summary{list-style:none;cursor:pointer;padding:26px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.cgspb-shell .cgspb-collapsible-settings>summary::-webkit-details-marker{display:none}
.cgspb-shell .cgspb-collapsible-summary h2{margin:3px 0 5px}
.cgspb-shell .cgspb-collapsible-summary .cgspb-muted{margin:0}
.cgspb-shell .cgspb-collapsible-summary-side{display:flex;align-items:center;gap:14px;flex-shrink:0}
.cgspb-shell .cgspb-collapse-chevron{transition:transform .2s ease;color:var(--cgspb-purple)}
.cgspb-shell details[open] .cgspb-collapse-chevron{transform:rotate(180deg)}
.cgspb-shell .cgspb-collapsible-body{padding:0 30px 28px;border-top:1px solid var(--cgspb-line)}
.cgspb-shell .cgspb-collapsible-body>.cgspb-muted{margin:20px 0}

.cgspb-shell .cgspb-students-head{align-items:flex-start}
.cgspb-shell .cgspb-students-head-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.cgspb-shell .cgspb-waiting-count{display:inline-flex;align-items:center;gap:7px;padding:10px 13px;border-radius:999px;background:#fff4e6;border:1px solid #ffd39d;color:#8e5400;font-weight:800;font-size:12px}
.cgspb-shell .cgspb-startcode-manager{position:relative}
.cgspb-shell .cgspb-startcode-manager>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border-radius:13px;background:#f3edff;border:1px solid #dfd0f8;color:var(--cgspb-purple-dark);font-weight:800}
.cgspb-shell .cgspb-startcode-manager>summary::-webkit-details-marker{display:none}
.cgspb-shell .cgspb-startcode-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:120;width:min(620px,88vw);max-height:60vh;overflow:auto;background:#fff;border:1px solid #e8def5;border-radius:20px;padding:16px;box-shadow:0 24px 60px rgba(45,19,90,.2)}
.cgspb-shell .cgspb-startcode-popover-head{display:flex;justify-content:space-between;gap:12px;align-items:end;padding:2px 2px 12px;border-bottom:1px solid var(--cgspb-line)}
.cgspb-shell .cgspb-startcode-popover-head strong{font-size:18px}
.cgspb-shell .cgspb-startcode-popover-head small{color:var(--cgspb-muted)}
.cgspb-shell .cgspb-startcode-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:13px 2px;border-bottom:1px solid #f0ebf6}
.cgspb-shell .cgspb-startcode-row:last-child{border-bottom:0}
.cgspb-shell .cgspb-startcode-row>div:first-child{display:grid;gap:3px}
.cgspb-shell .cgspb-startcode-row small{font-weight:800;letter-spacing:.08em;color:var(--cgspb-purple)}
.cgspb-shell .cgspb-startcode-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.cgspb-shell .cgspb-startcode-actions form{margin:0}

.cgspb-shell .cgspb-student-id-cell{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cgspb-shell .cgspb-status.is-waiting{background:#fff3e4;color:#935600;border:1px solid #ffd29a}
.cgspb-shell .cgspb-status.is-waiting .dashicons{font-size:15px;width:15px;height:15px}
.cgspb-shell .cgspb-status.is-ok{background:#eefaf2;color:#1e7441;border:1px solid #c6ead2}
.cgspb-shell .cgspb-student-table td{vertical-align:middle}

.cgspb-shell .cgspb-review-files{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,220px));gap:12px;margin-top:12px}
.cgspb-shell .cgspb-review-image-thumb{appearance:none;border:1px solid #e1d6f1;border-radius:16px;background:#fff;padding:8px;cursor:pointer;text-align:left;overflow:hidden;transition:.16s transform,.16s box-shadow,.16s border-color}
.cgspb-shell .cgspb-review-image-thumb:hover{transform:translateY(-2px);border-color:#bfa7ec;box-shadow:0 10px 24px rgba(64,28,130,.12)}
.cgspb-shell .cgspb-review-image-thumb img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:11px;background:#f1edf6}
.cgspb-shell .cgspb-review-image-thumb>span{display:flex;align-items:center;gap:6px;padding:8px 4px 2px;color:var(--cgspb-purple-dark);font-weight:800;font-size:12px}
.cgspb-shell .cgspb-review-file-link{display:flex;align-items:center;gap:8px;padding:12px;border:1px solid #e4daf1;border-radius:13px;background:#f8f4ff;color:var(--cgspb-purple-dark);font-weight:800;text-decoration:none}

.cgspb-image-lightbox{position:fixed;inset:0;z-index:2147483646;display:none;align-items:center;justify-content:center;padding:20px}
.cgspb-image-lightbox.is-open{display:flex}
.cgspb-image-lightbox-backdrop{position:absolute;inset:0;border:0;background:rgba(16,7,30,.86);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.cgspb-image-lightbox-dialog{position:relative;z-index:2;max-width:min(1200px,95vw);max-height:94vh;display:flex;flex-direction:column;align-items:center;gap:10px}
.cgspb-image-lightbox-dialog img{display:block;max-width:100%;max-height:82vh;object-fit:contain;border-radius:18px;background:#fff;box-shadow:0 24px 80px rgba(0,0,0,.4)}
.cgspb-image-lightbox-dialog p{margin:0;color:#fff;font-weight:700;text-align:center}
.cgspb-image-lightbox-close{position:absolute;right:-14px;top:-14px;width:48px;height:48px;border:0;border-radius:15px;background:#fff;color:#4b1baa;cursor:pointer;box-shadow:0 12px 28px rgba(0,0,0,.25);z-index:4}
.cgspb-image-lightbox-close::before{content:"×";font:500 30px/1 Arial,sans-serif}

.cgspb-shell .cgspb-review-student-submissions{display:grid;gap:14px}
.cgspb-shell .cgspb-review-submission{border:1px solid #e7ddf3;border-radius:18px;background:#fff;overflow:hidden}
.cgspb-shell .cgspb-review-submission>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px;background:#faf7ff}
.cgspb-shell .cgspb-review-submission>summary::-webkit-details-marker{display:none}
.cgspb-shell .cgspb-review-submission>summary span:first-child{display:grid;gap:2px}
.cgspb-shell .cgspb-review-submission>summary small{font-size:10px;letter-spacing:.12em;color:var(--cgspb-purple);font-weight:900}
.cgspb-shell .cgspb-review-submission>summary span:last-child{color:var(--cgspb-muted);font-size:12px}
.cgspb-shell .cgspb-review-submission-body{padding:16px}
.cgspb-shell .cgspb-review-modal-footer{display:flex;justify-content:flex-end;padding-top:16px}

.cgspb-shell .cgspb-student-number-card .cgspb-join-lesson{display:grid;gap:3px;margin:16px 0;padding:14px 16px;border:1px solid #e5d8f7;border-radius:15px;background:#f8f4ff}
.cgspb-shell .cgspb-student-number-card .cgspb-join-lesson small{color:var(--cgspb-muted)}
.cgspb-shell .cgspb-student-number-card .cgspb-join-lesson strong{font-size:16px;color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-student-number-card .cgspb-join-lesson span{font-size:12px;color:var(--cgspb-muted)}
.cgspb-shell .cgspb-form label span em{font-weight:500;color:var(--cgspb-muted)}

@media(max-width:760px){
  .cgspb-shell .cgspb-collapsible-settings>summary{padding:20px;align-items:flex-start}
  .cgspb-shell .cgspb-collapsible-summary-side{flex-direction:column;align-items:flex-end}
  .cgspb-shell .cgspb-collapsible-body{padding:0 20px 20px}
  .cgspb-shell .cgspb-students-head-actions{width:100%;justify-content:flex-start}
  .cgspb-shell .cgspb-startcode-manager{width:100%}
  .cgspb-shell .cgspb-startcode-manager>summary{width:100%;justify-content:center}
  .cgspb-shell .cgspb-startcode-popover{position:fixed;left:12px;right:12px;top:auto;bottom:12px;width:auto;max-height:75vh;z-index:2147483300}
  .cgspb-shell .cgspb-startcode-row{grid-template-columns:1fr}
  .cgspb-shell .cgspb-startcode-actions{justify-content:flex-start}
  .cgspb-shell .cgspb-review-files{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cgspb-image-lightbox-close{right:4px;top:4px}
}

/* v0.10.4 – klas-startcode, robuuste MC-weergave en accountbeheer */
.cgspb-shell .cgspb-hero.is-teacher{align-items:center}
.cgspb-shell .cgspb-hero-class-code{
  position:relative;z-index:3;flex:0 0 auto;min-width:265px;
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  padding:16px 18px;border-radius:20px;
  background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.24);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 12px 30px rgba(38,12,93,.16);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)
}
.cgspb-shell .cgspb-hero-class-code small{display:block;color:rgba(255,255,255,.76);font-size:9.5px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;margin-bottom:5px}
.cgspb-shell .cgspb-hero-class-code strong{display:block;color:#fff;font:900 28px/1.05 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.11em}
.cgspb-shell .cgspb-hero-code-copy{appearance:none;border:1px solid rgba(255,255,255,.25);background:#fff;color:var(--cgspb-purple-dark);min-height:42px;padding:0 13px;border-radius:13px;display:inline-flex;align-items:center;gap:7px;font-weight:850;cursor:pointer;white-space:nowrap}
.cgspb-shell .cgspb-hero-code-copy:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(28,10,67,.18)}

/* De thema-CSS op DocentenTools mag een label nooit terugduwen naar min-content.
   Daarom gebruikt een antwoordtegel bewust flex in plaats van grid. */
.cgspb-shell .cgspb-choice-list,
.cgspb-shell .cgspb-form-radio-group{width:100%!important;min-width:0!important}
.cgspb-shell label.cgspb-choice,
.cgspb-shell .cgspb-choice{
  display:flex!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:12px!important;
  box-sizing:border-box!important;
  writing-mode:horizontal-tb!important;
}
.cgspb-shell .cgspb-choice input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.cgspb-shell .cgspb-choice-mark{flex:0 0 20px!important;width:20px!important;min-width:20px!important;max-width:20px!important}
.cgspb-shell .cgspb-choice>span:last-child,
.cgspb-shell .cgspb-form-radio-group .cgspb-choice>span:last-child{
  flex:1 1 auto!important;
  display:block!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:break-word!important;
  writing-mode:horizontal-tb!important;
  text-orientation:mixed!important;
  line-height:1.45!important;
}
.cgspb-shell .cgspb-status.is-inactive{background:#f0edf4;color:#756b80;border:1px solid #dbd3e3}
.cgspb-shell .cgspb-row-actions .cgspb-btn.is-danger{background:#fff2f2!important;color:#b42318!important;border:1px solid #ffd0cd!important}
.cgspb-shell .cgspb-row-actions .cgspb-btn.is-danger:hover{background:#ffe8e6!important}

@media(max-width:760px){
  .cgspb-shell .cgspb-hero.is-teacher{align-items:stretch}
  .cgspb-shell .cgspb-hero-class-code{width:100%;min-width:0}
  .cgspb-shell .cgspb-hero-class-code strong{font-size:24px}
  .cgspb-shell label.cgspb-choice,.cgspb-shell .cgspb-choice{padding:12px!important;gap:11px!important}
}

/* v0.10.5 – modernere beoordelingsstatus, per-opdracht docentfeedback en studentmelding */
.cgspb-shell .cgspb-btn.is-ai{
  background:linear-gradient(135deg,#ff8b1f 0%,#ff6f18 38%,#7a2dff 100%)!important;
  border-color:rgba(255,255,255,.28)!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(255,116,24,.20),0 16px 38px rgba(100,42,222,.22)!important;
}
.cgspb-shell .cgspb-btn.is-ai:hover{
  transform:translateY(-1px);
  box-shadow:0 15px 34px rgba(255,116,24,.25),0 20px 46px rgba(100,42,222,.28)!important;
}
.cgspb-shell .cgspb-status.is-waiting{
  background:linear-gradient(135deg,#fff4df 0%,#fff9ee 55%,#f8efff 100%);
  color:#8b4b00;
  border:1px solid #ffc978;
  box-shadow:0 7px 18px rgba(238,142,21,.10);
}
.cgspb-shell .cgspb-waiting-count{
  background:linear-gradient(135deg,#fff2dc 0%,#fff9ef 55%,#f5edff 100%);
  color:#814500;
  border:1px solid #ffc979;
  box-shadow:0 8px 20px rgba(109,52,190,.08),0 8px 20px rgba(255,140,24,.08);
}
.cgspb-shell .cgspb-status.is-needswork{
  background:linear-gradient(135deg,#fff4e7,#fff9f2);
  border:1px solid #ffd09a;
  color:#945100;
}
.cgspb-shell .cgspb-teacher-task-feedback{
  margin-top:14px;
  padding:14px;
  border:1px solid #dfd3f1;
  border-radius:15px;
  background:linear-gradient(180deg,#fbf9ff,#f7f3ff);
}
.cgspb-shell .cgspb-teacher-task-feedback>label:first-child>span{
  display:block;
  margin-bottom:7px;
  font-weight:800;
  color:var(--cgspb-purple-dark);
}
.cgspb-shell .cgspb-teacher-task-feedback textarea{
  width:100%;
  min-height:88px;
  resize:vertical;
  border:1px solid #d7c9eb;
  border-radius:13px;
  padding:12px 13px;
  background:#fff;
  font:inherit;
  line-height:1.45;
}
.cgspb-shell .cgspb-teacher-task-feedback textarea:focus{
  outline:0;
  border-color:#9b6bff;
  box-shadow:0 0 0 3px rgba(123,44,255,.10);
}
.cgspb-shell .cgspb-teacher-task-feedback .cgspb-checkline{
  margin-top:9px;
  display:flex;
  gap:8px;
  align-items:flex-start;
  color:#675d74;
  font-size:12px;
}
.cgspb-shell .cgspb-overall-feedback{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--cgspb-line);
}
.cgspb-shell .cgspb-overall-feedback>label{
  font-weight:800;
  color:var(--cgspb-purple-dark);
}
.cgspb-shell .cgspb-overall-feedback textarea{
  display:block;
  width:100%;
  min-height:110px;
  margin-top:8px;
  resize:vertical;
}
.cgspb-shell .cgspb-inline-feedback.is-teacher{
  border-color:#cdb9f8;
  background:linear-gradient(135deg,#f8f4ff,#fff9f3);
  box-shadow:0 8px 20px rgba(87,42,181,.07);
}
.cgspb-shell .cgspb-inline-feedback.is-teacher .cgspb-inline-feedback-head strong{
  color:#4c1dad;
}
.cgspb-shell .cgspb-inline-feedback.is-teacher .dashicons{
  color:var(--cgspb-orange);
}
.cgspb-shell .cgspb-student-feedback-modal{
  position:fixed;
  inset:0;
  z-index:2147483300;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.cgspb-shell .cgspb-student-feedback-modal.is-open{display:flex}
.cgspb-shell .cgspb-student-feedback-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(25,8,47,.72);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.cgspb-shell .cgspb-student-feedback-dialog{
  position:relative;
  z-index:2;
  width:min(560px,94vw);
  border-radius:26px;
  padding:28px;
  background:linear-gradient(180deg,#fff,#fcf9ff);
  border:1px solid rgba(255,255,255,.8);
  box-shadow:0 30px 90px rgba(30,10,58,.42);
  text-align:left;
}
.cgspb-shell .cgspb-student-feedback-dialog h2{
  margin:6px 0 10px;
  font-size:clamp(25px,5vw,36px);
}
.cgspb-shell .cgspb-student-feedback-dialog>p:not(.cgspb-kicker){
  color:var(--cgspb-muted);
  line-height:1.6;
  margin:0 0 18px;
}
.cgspb-shell .cgspb-feedback-icon{
  width:54px;
  height:54px;
  border-radius:17px;
  display:grid;
  place-items:center;
  margin-bottom:16px;
  color:#fff;
  background:linear-gradient(135deg,#ff8a19,#7a2dff);
  box-shadow:0 12px 28px rgba(92,37,198,.22);
}
.cgspb-shell .cgspb-feedback-icon .dashicons{font-size:26px;width:26px;height:26px}
.cgspb-shell .cgspb-student-feedback-close{
  position:absolute;
  right:18px;
  top:18px;
  z-index:10;
  appearance:none;
  width:44px;
  height:44px;
  border:0;
  border-radius:14px;
  background:#f1ebfa;
  color:var(--cgspb-purple-dark);
  cursor:pointer;
}
.cgspb-shell .cgspb-student-feedback-close::before{
  content:"×";
  font:500 27px/1 Arial,Helvetica,sans-serif;
  pointer-events:none;
}
main:has(.cgspb-shell .cgspb-student-feedback-modal.is-open){
  position:relative;
  z-index:2147483003!important;
}
@media(max-width:760px){
  .cgspb-shell .cgspb-student-feedback-dialog{padding:22px;border-radius:22px}
  .cgspb-shell .cgspb-student-feedback-dialog .cgspb-form-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .cgspb-shell .cgspb-student-feedback-dialog .cgspb-btn{width:100%;justify-content:center}
}

/* v0.10.6 – directe feedbackbewerking, docentmelding en certificaten */
.cgspb-shell .cgspb-inline-ai-edit{
  width:100%;min-height:92px;resize:vertical;border:1px solid #d8ccec;border-radius:14px;background:#fff;padding:12px 14px;
  font:inherit;color:#312842;line-height:1.5;box-sizing:border-box;margin:8px 0 4px;outline:none;
}
.cgspb-shell .cgspb-inline-ai-edit:focus{border-color:#8b52ff;box-shadow:0 0 0 3px rgba(123,44,255,.12)}
.cgspb-shell .cgspb-teacher-pending-modal{position:fixed;inset:0;z-index:2147483300;display:none;align-items:center;justify-content:center;padding:20px}
.cgspb-shell .cgspb-teacher-pending-modal.is-open{display:flex}
.cgspb-shell .cgspb-teacher-pending-backdrop{position:absolute;inset:0;border:0;background:rgba(27,10,49,.7);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.cgspb-shell .cgspb-teacher-pending-dialog{position:relative;z-index:2;width:min(560px,94vw);background:linear-gradient(180deg,#fff,#fbf9ff);border:1px solid rgba(255,255,255,.8);border-radius:26px;padding:28px;box-shadow:0 34px 100px rgba(28,11,53,.4);text-align:left}
.cgspb-shell .cgspb-teacher-pending-dialog h2{font-size:clamp(26px,4vw,38px);margin:6px 0 10px}
.cgspb-shell .cgspb-teacher-pending-dialog>p:not(.cgspb-kicker){color:var(--cgspb-muted);font-size:15px;line-height:1.55}
.cgspb-shell .cgspb-teacher-pending-close{position:absolute;right:18px;top:18px;width:46px;height:46px;border:0;border-radius:15px;background:#f1ebfa;cursor:pointer;color:var(--cgspb-purple-dark);z-index:5}
.cgspb-shell .cgspb-teacher-pending-close::before{content:"×";font:500 28px/1 Arial,Helvetica,sans-serif}
.cgspb-shell .cgspb-teacher-pending-dialog .cgspb-feedback-icon{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(135deg,#ff821b,#7b2cff);color:#fff;margin-bottom:18px;box-shadow:0 12px 28px rgba(113,49,203,.2)}
.cgspb-shell .cgspb-certificates{margin-top:24px;border:1px solid #e6dbf6;background:linear-gradient(180deg,#fff,#fbf8ff)}
.cgspb-shell .cgspb-certificates .cgspb-section-head h2{margin-bottom:0}
@media(max-width:760px){.cgspb-shell .cgspb-teacher-pending-dialog{padding:22px}.cgspb-shell .cgspb-inline-ai-edit{min-height:110px}}

/* v0.10.8 – docentmelding met meerdere inleveringen */
.cgspb-shell .cgspb-teacher-pending-list{display:grid;gap:10px;margin:16px 0 4px;max-height:300px;overflow:auto;padding-right:3px}
.cgspb-shell .cgspb-teacher-pending-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 13px;border:1px solid #e9dff8;border-radius:15px;background:linear-gradient(180deg,#fff,#fbf9ff)}
.cgspb-shell .cgspb-teacher-pending-item>div{min-width:0;display:grid;gap:3px}
.cgspb-shell .cgspb-teacher-pending-item strong{color:var(--cgspb-purple-dark);font-size:14px}
.cgspb-shell .cgspb-teacher-pending-item span{color:var(--cgspb-muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cgspb-shell .cgspb-teacher-pending-item .cgspb-btn{flex:0 0 auto}
@media(max-width:620px){.cgspb-shell .cgspb-teacher-pending-item{align-items:stretch;flex-direction:column}.cgspb-shell .cgspb-teacher-pending-item .cgspb-btn{width:100%}}


/* v0.10.10 – spring na feedbackmelding naar het eerste feedbackpunt */
.cgspb-shell .cgspb-feedback-focus{
  animation:cgspbFeedbackFocus 1.1s ease-in-out 2;
  scroll-margin-top:110px;
}
@keyframes cgspbFeedbackFocus{
  0%,100%{box-shadow:0 0 0 0 rgba(255,126,17,0)}
  45%{box-shadow:0 0 0 5px rgba(255,126,17,.22),0 12px 34px rgba(89,42,171,.12)}
}

/* v0.10.11 – certificaatoverzicht */
.cgspb-shell .cgspb-cert-count{display:flex;align-items:center;gap:8px;min-width:max-content;padding:9px 13px;border:1px solid #e3d6f7;border-radius:14px;background:linear-gradient(135deg,#fff7ef,#f5efff);color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-cert-count strong{font-size:24px;line-height:1;color:var(--cgspb-purple)}
.cgspb-shell .cgspb-cert-count span{font-size:11px;font-weight:800}
.cgspb-shell .cgspb-cert-progress{height:8px;margin:-4px 0 16px;border-radius:999px;background:#eee7f6;overflow:hidden}
.cgspb-shell .cgspb-cert-progress span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--cgspb-orange),var(--cgspb-purple))}
@media(max-width:760px){.cgspb-shell .cgspb-certificates .cgspb-section-head{align-items:flex-start}.cgspb-shell .cgspb-cert-count{margin-top:8px}}

/* v0.10.12 – studentontwikkeling, handmatige deelbeoordeling en klasspecifieke AI */
.cgspb-shell .cgspb-hero-class-code{
  min-width:190px!important;
  width:auto!important;
  max-width:220px;
  padding:16px 18px!important;
}
.cgspb-shell .cgspb-row-actions .cgspb-btn.is-deactivate{
  color:#f06b00!important;
  border-color:#ffc997!important;
  background:#fff!important;
}
.cgspb-shell .cgspb-row-actions .cgspb-btn.is-deactivate:hover{
  background:#fff7f0!important;
  border-color:#ffad63!important;
}
.cgspb-shell .cgspb-row-actions .cgspb-btn.is-next-lesson{
  color:#16824a!important;
  border-color:#b8e2ca!important;
  background:#fff!important;
}
.cgspb-shell .cgspb-row-actions .cgspb-btn.is-next-lesson:hover{
  background:#f4fbf7!important;
  border-color:#79c89d!important;
}
.cgspb-shell .cgspb-status.is-waiting{
  background:linear-gradient(135deg,#4c1795 0%,#6f2de6 72%,#ff7a18 160%)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 8px 22px rgba(79,25,155,.22),inset 0 1px 0 rgba(255,255,255,.16)!important;
}
.cgspb-shell .cgspb-status.is-teacher-action{
  display:inline-flex;align-items:center;gap:6px;
  background:linear-gradient(135deg,#ff7c18 0%,#ef6b1c 42%,#742ee7 125%);
  color:#fff;border:1px solid rgba(255,255,255,.2);box-shadow:0 8px 22px rgba(234,104,24,.20);
}
.cgspb-shell .cgspb-status.is-teacher-action .dashicons{font-size:15px;width:15px;height:15px}
.cgspb-shell .cgspb-waiting-count{
  background:linear-gradient(135deg,#3f1485,#6f2de6)!important;
  color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;
  box-shadow:0 10px 26px rgba(64,20,133,.22)!important;
}
.cgspb-shell .cgspb-student-profile-link strong{text-decoration-thickness:1.5px;text-underline-offset:4px}

.cgspb-shell .cgspb-review-question{position:relative}
.cgspb-shell .cgspb-review-question-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:4px}
.cgspb-shell .cgspb-task-decision{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.cgspb-shell .cgspb-task-decision-btn{
  appearance:none;border:1px solid #ded5ea;background:#fff;color:#6b6178;border-radius:11px;padding:7px 9px;
  display:inline-flex;align-items:center;gap:5px;font:700 11px/1.1 inherit;cursor:pointer;transition:.15s ease;
}
.cgspb-shell .cgspb-task-decision-btn .dashicons{font-size:15px;width:15px;height:15px}
.cgspb-shell .cgspb-task-decision-btn.is-approve:hover,.cgspb-shell .cgspb-task-decision-btn.is-approve.is-active{background:#e8f8ef;border-color:#7cc89f;color:#176b42}
.cgspb-shell .cgspb-task-decision-btn.is-reject:hover,.cgspb-shell .cgspb-task-decision-btn.is-reject.is-active{background:#fff1e7;border-color:#ffad70;color:#a34d00}

.cgspb-shell .cgspb-development-dialog{width:min(1260px,96vw)}
.cgspb-shell .cgspb-development-overview{display:grid;grid-template-columns:minmax(320px,1.5fr) repeat(2,minmax(160px,.55fr));gap:14px;margin-bottom:20px}
.cgspb-shell .cgspb-development-overview>div{border:1px solid #e6dcf3;border-radius:18px;padding:17px;background:linear-gradient(180deg,#fff,#faf8ff)}
.cgspb-shell .cgspb-development-overview span{display:block;color:var(--cgspb-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.cgspb-shell .cgspb-development-overview strong{display:block;margin-top:5px;font-size:25px;color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-development-main strong{font-size:30px}
.cgspb-shell .cgspb-development-progress{height:10px;border-radius:999px;background:#ece6f4;overflow:hidden;margin-top:10px}
.cgspb-shell .cgspb-development-progress>span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--cgspb-orange),var(--cgspb-purple));transition:width .25s ease}
.cgspb-shell .cgspb-development-section{border:1px solid #e7def2;border-radius:20px;padding:18px;background:#fff;margin-top:16px}
.cgspb-shell .cgspb-development-section h3{margin:3px 0 12px;font-size:20px}
.cgspb-shell .cgspb-development-lessons{display:grid;gap:12px}
.cgspb-shell .cgspb-development-lesson{border:1px solid #e7def2;border-radius:16px;padding:15px;background:linear-gradient(180deg,#fff,#fcfaff)}
.cgspb-shell .cgspb-development-lesson.is-disabled{opacity:.72;background:#f5f3f7}
.cgspb-shell .cgspb-development-lesson-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.cgspb-shell .cgspb-development-lesson-top small{display:block;color:var(--cgspb-purple);font-weight:900;letter-spacing:.08em;font-size:10px}
.cgspb-shell .cgspb-development-lesson-top h4{margin:4px 0 0;font-size:15px}
.cgspb-shell .cgspb-dev-state{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:10px;font-weight:850;white-space:nowrap;background:#f1edf6;color:#6c6278}
.cgspb-shell .cgspb-dev-state.is-approved{background:#e9f8ef;color:#176d42}
.cgspb-shell .cgspb-dev-state.is-submitted{background:#efe9ff;color:#5622b0}
.cgspb-shell .cgspb-dev-state.is-needs_work{background:#fff1e3;color:#985100}
.cgspb-shell .cgspb-dev-state.is-in_progress{background:#eef3ff;color:#3458a6}
.cgspb-shell .cgspb-development-lesson-meta{display:flex;gap:10px 18px;align-items:center;flex-wrap:wrap;margin-top:10px;color:#716879;font-size:11px}
.cgspb-shell .cgspb-development-lesson-meta b{color:#3b3048}
.cgspb-shell .cgspb-development-lesson-meta .dashicons{color:var(--cgspb-purple);font-size:15px;width:15px;height:15px}
.cgspb-shell .cgspb-dev-lesson-action{margin-top:10px;display:flex;justify-content:flex-end}
.cgspb-shell .cgspb-development-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cgspb-shell .cgspb-insight-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cgspb-shell .cgspb-insight-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:12px;background:#f4fbf7;border:1px solid #d4ecdf}
.cgspb-shell .cgspb-insight-list.is-hard li{background:#fff7ef;border-color:#ffddbd}
.cgspb-shell .cgspb-insight-list li span{font-size:12px;font-weight:700;color:#403747}
.cgspb-shell .cgspb-insight-list li b{font-size:12px;color:#176d42}
.cgspb-shell .cgspb-insight-list.is-hard li b{color:#a45a00}
.cgspb-shell .cgspb-development-certs{display:flex;flex-wrap:wrap;gap:10px}
.cgspb-shell .cgspb-development-certs>span{display:grid;grid-template-columns:auto 1fr;column-gap:8px;row-gap:2px;align-items:center;padding:11px 13px;border-radius:13px;background:linear-gradient(135deg,#fff7ee,#f3ecff);border:1px solid #e5d7f6}
.cgspb-shell .cgspb-development-certs .dashicons{grid-row:1/3;color:var(--cgspb-purple)}
.cgspb-shell .cgspb-development-certs b{font-size:12px}.cgspb-shell .cgspb-development-certs small{font-size:10px;color:var(--cgspb-muted)}
.cgspb-shell .cgspb-ai-settings .cgspb-collapsible-summary .cgspb-muted strong{color:inherit}

@media(max-width:860px){
  .cgspb-shell .cgspb-development-overview{grid-template-columns:1fr 1fr}.cgspb-shell .cgspb-development-main{grid-column:1/-1}
  .cgspb-shell .cgspb-development-two-col{grid-template-columns:1fr}
  .cgspb-shell .cgspb-review-question-head{flex-direction:column}.cgspb-shell .cgspb-task-decision{width:100%}.cgspb-shell .cgspb-task-decision-btn{flex:1;justify-content:center}
}
@media(max-width:620px){
  .cgspb-shell .cgspb-development-overview{grid-template-columns:1fr}.cgspb-shell .cgspb-development-main{grid-column:auto}
  .cgspb-shell .cgspb-development-lesson-top{flex-direction:column}.cgspb-shell .cgspb-dev-state{align-self:flex-start}
  .cgspb-shell .cgspb-hero-class-code{max-width:none;width:100%!important}
}

/* v0.10.13 – klassen delen tussen docenten */
.cgspb-shell .cgspb-class-connect-panel{margin-top:18px}
.cgspb-shell .cgspb-class-connect-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.8fr);gap:16px;align-items:stretch}
.cgspb-shell .cgspb-share-code-card,
.cgspb-shell .cgspb-import-class-card{border:1px solid #e5d9f5;border-radius:18px;background:linear-gradient(180deg,#fff,#fbf8ff);padding:17px 18px}
.cgspb-shell .cgspb-share-code-card>span,
.cgspb-shell .cgspb-import-class-card label>span{display:block;font-size:10px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#6d6480;margin-bottom:8px}
.cgspb-shell .cgspb-share-code-card>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cgspb-shell .cgspb-share-code-card strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:26px;letter-spacing:.13em;color:var(--cgspb-purple-dark)}
.cgspb-shell .cgspb-share-code-card small{display:block;margin-top:8px;color:var(--cgspb-muted);line-height:1.45}
.cgspb-shell .cgspb-import-class-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin:0}
.cgspb-shell .cgspb-import-class-card label{margin:0}
.cgspb-shell .cgspb-import-class-card input{width:100%;min-height:45px;border:1px solid #ddd0ef;border-radius:12px;padding:10px 13px;background:#fff;font:800 16px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.10em;color:#3f1a87;box-sizing:border-box}
.cgspb-shell .cgspb-import-class-card input:focus{outline:none;border-color:#9f70ed;box-shadow:0 0 0 3px rgba(113,47,226,.10)}
.cgspb-shell .cgspb-import-class-card .cgspb-btn{min-height:45px}
@media(max-width:820px){.cgspb-shell .cgspb-class-connect-grid{grid-template-columns:1fr}.cgspb-shell .cgspb-import-class-card{grid-template-columns:1fr}.cgspb-shell .cgspb-import-class-card .cgspb-btn{width:100%;justify-content:center}}

/* v0.10.14 – loginmeldingen en gedeelde klasbronnen */
.cgspb-shell .cgspb-kb-library.is-shared-readonly{grid-column:1 / -1}
.cgspb-shell .cgspb-shared-source-note{
  display:flex;align-items:flex-start;gap:13px;margin:14px 0 18px;padding:15px 16px;border-radius:16px;
  border:1px solid #d9cbf6;background:linear-gradient(135deg,#f8f4ff 0%,#fff9f3 100%);color:#40364f;
}
.cgspb-shell .cgspb-shared-source-note>.dashicons{width:28px;height:28px;font-size:28px;color:var(--cgspb-purple);flex:0 0 auto}
.cgspb-shell .cgspb-shared-source-note strong{display:block;color:var(--cgspb-purple-dark);margin-bottom:4px}
.cgspb-shell .cgspb-shared-source-note p{margin:0;color:var(--cgspb-muted);line-height:1.55}
.cgspb-shell .cgspb-class-import-modal{position:fixed;inset:0;z-index:2147483400;display:none;align-items:center;justify-content:center;padding:20px}
.cgspb-shell .cgspb-class-import-modal.is-open{display:flex}
.cgspb-shell .cgspb-class-import-backdrop{position:absolute;inset:0;border:0;background:rgba(27,10,49,.72);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);cursor:pointer}
.cgspb-shell .cgspb-class-import-dialog{position:relative;z-index:2;width:min(620px,94vw);border-radius:28px;padding:30px;background:linear-gradient(180deg,#fff,#fbf9ff);border:1px solid rgba(255,255,255,.85);box-shadow:0 36px 105px rgba(28,10,55,.42)}
.cgspb-shell .cgspb-class-import-dialog h2{margin:7px 0 10px;font-size:clamp(27px,4vw,39px);line-height:1.08}
.cgspb-shell .cgspb-class-import-dialog>p:not(.cgspb-kicker){margin:0 0 18px;color:var(--cgspb-muted);line-height:1.6}
.cgspb-shell .cgspb-class-import-close{position:absolute;right:18px;top:18px;width:46px;height:46px;border:0;border-radius:15px;background:#f1ebfa;color:var(--cgspb-purple-dark);cursor:pointer;z-index:5}
.cgspb-shell .cgspb-class-import-close::before{content:"×";font:500 28px/1 Arial,Helvetica,sans-serif;pointer-events:none}
.cgspb-shell .cgspb-class-import-source{display:flex;align-items:flex-start;gap:13px;margin:18px 0;padding:16px;border-radius:17px;border:1px solid #e0d3f7;background:linear-gradient(135deg,#f7f1ff,#fff8ef)}
.cgspb-shell .cgspb-class-import-source>.dashicons{width:30px;height:30px;font-size:30px;color:var(--cgspb-orange);flex:0 0 auto}
.cgspb-shell .cgspb-class-import-source strong{display:block;color:var(--cgspb-purple-dark);margin-bottom:4px}
.cgspb-shell .cgspb-class-import-source p{margin:0;color:var(--cgspb-muted);line-height:1.5}
main:has(.cgspb-shell .cgspb-class-import-modal.is-open){position:relative;z-index:2147483003!important}
@media(max-width:760px){
  .cgspb-shell .cgspb-class-import-dialog{padding:23px;border-radius:23px}
  .cgspb-shell .cgspb-class-import-dialog .cgspb-form-actions{display:grid;grid-template-columns:1fr}
  .cgspb-shell .cgspb-class-import-dialog .cgspb-btn{width:100%;justify-content:center}
}

/* v0.10.17 – Mijn account voor docent en student */
.cgspb-shell .cgspb-dashboard-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:10px 2px 14px}
.cgspb-shell .cgspb-dashboard-toolbar.is-teacher{margin-top:-2px}
.cgspb-shell .cgspb-student-toolbar{justify-content:space-between;flex-wrap:wrap}
.cgspb-shell .cgspb-student-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cgspb-shell .cgspb-account-open .dashicons{color:var(--cgspb-purple)}
.cgspb-shell .cgspb-account-modal{position:fixed;inset:0;z-index:2147483350;display:none;align-items:center;justify-content:center;padding:20px}
.cgspb-shell .cgspb-account-modal.is-open{display:flex}
.cgspb-shell .cgspb-account-backdrop{position:absolute;inset:0;border:0;background:rgba(27,10,49,.72);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);cursor:pointer}
.cgspb-shell .cgspb-account-dialog{position:relative;z-index:2;width:min(980px,96vw);max-height:92vh;overflow:auto;background:linear-gradient(180deg,#fff 0%,#fcfaff 100%);border:1px solid rgba(255,255,255,.78);border-radius:30px;padding:26px;box-shadow:0 38px 120px rgba(30,10,58,.42)}
.cgspb-shell .cgspb-account-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid var(--cgspb-line)}
.cgspb-shell .cgspb-account-head h2{margin:3px 0 7px;font-size:clamp(28px,3.2vw,42px)}
.cgspb-shell .cgspb-account-head p:last-child{margin:0;color:var(--cgspb-muted)}
.cgspb-shell .cgspb-account-close{appearance:none;border:0;width:48px;height:48px;min-width:48px;border-radius:15px;background:#f1ebfa;color:var(--cgspb-purple-dark);cursor:pointer;position:relative;z-index:20}
.cgspb-shell .cgspb-account-close::before{content:"×";font:500 29px/1 Arial,Helvetica,sans-serif;pointer-events:none}
.cgspb-shell .cgspb-account-close:hover{background:#e8ddf7}
.cgspb-shell .cgspb-account-grid{display:grid;grid-template-columns:minmax(260px,.75fr) minmax(0,1.25fr);gap:18px}
.cgspb-shell .cgspb-account-summary,.cgspb-shell .cgspb-account-password{border:1px solid #e7def3;border-radius:22px;padding:20px;background:#fff}
.cgspb-shell .cgspb-account-summary{display:flex;flex-direction:column;gap:15px;background:linear-gradient(155deg,#fff7ef 0%,#f8f1ff 52%,#fff 100%)}
.cgspb-shell .cgspb-account-avatar{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,var(--cgspb-orange),var(--cgspb-purple));box-shadow:0 12px 30px rgba(88,41,178,.22)}
.cgspb-shell .cgspb-account-avatar .dashicons{width:28px;height:28px;font-size:28px;color:#fff}
.cgspb-shell .cgspb-account-summary>div:nth-child(2){display:flex;flex-direction:column;gap:3px}
.cgspb-shell .cgspb-account-summary small{color:var(--cgspb-muted);font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.cgspb-shell .cgspb-account-summary strong{font-size:22px;color:#20162d;word-break:break-word}
.cgspb-shell .cgspb-account-statrow{display:flex;flex-wrap:wrap;gap:8px}
.cgspb-shell .cgspb-account-statrow span{display:inline-flex;gap:5px;align-items:center;padding:8px 10px;border-radius:999px;background:#fff;border:1px solid #e6ddf3;color:#665a73;font-size:12px}
.cgspb-shell .cgspb-account-statrow b{color:var(--cgspb-purple-dark);font-size:14px}
.cgspb-shell .cgspb-account-password h3{font-size:24px;margin:3px 0 6px}
.cgspb-shell .cgspb-account-password .cgspb-form{margin-top:16px}
main:has(.cgspb-shell .cgspb-account-modal.is-open){position:relative;z-index:2147483003!important}
@media(max-width:760px){
  .cgspb-shell .cgspb-account-grid{grid-template-columns:1fr}
  .cgspb-shell .cgspb-account-dialog{padding:18px;border-radius:22px}
  .cgspb-shell .cgspb-account-close{width:44px;height:44px;min-width:44px}
  .cgspb-shell .cgspb-dashboard-toolbar{justify-content:stretch}
  .cgspb-shell .cgspb-dashboard-toolbar .cgspb-btn{flex:1;justify-content:center}
  .cgspb-shell .cgspb-student-toolbar{align-items:flex-start;gap:10px}
}

/* v0.11.0 – fysieke lessen, A4-concepten en PDF-bibliotheek */
.cgspb-shell .cgspb-physical-launch{margin-top:20px;border:1px solid #e6dcf2;background:linear-gradient(145deg,#fff 0%,#fffaf4 48%,#faf7ff 100%)}
.cgspb-shell .cgspb-physical-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.cgspb-shell .cgspb-physical-card{border:1px solid #e7def2;border-radius:20px;background:#fff;padding:18px;box-shadow:0 10px 28px rgba(42,22,75,.06)}
.cgspb-shell .cgspb-physical-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.cgspb-shell .cgspb-physical-type{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#5a4f67}
.cgspb-shell .cgspb-physical-type .dashicons{color:var(--cgspb-orange)}
.cgspb-shell .cgspb-physical-state{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.cgspb-shell .cgspb-physical-state.is-draft{background:#fff2df;color:#9a5200;border:1px solid #ffd9a3}
.cgspb-shell .cgspb-physical-state.is-final{background:#eef8f0;color:#23703a;border:1px solid #cce8d3}
.cgspb-shell .cgspb-physical-card h3{margin:0 0 7px;font-size:20px;color:#20162d}
.cgspb-shell .cgspb-physical-card>p{margin:0 0 14px;color:var(--cgspb-muted);font-size:13px}
.cgspb-shell .cgspb-physical-card-actions{display:flex;gap:8px;flex-wrap:wrap}
.cgspb-shell .cgspb-physical-card-secondary{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px;padding-top:11px;border-top:1px solid #eee8f4}
.cgspb-shell .cgspb-physical-card-secondary form{margin:0}
.cgspb-shell .cgspb-physical-builder .cgspb-hero.is-physical{background:linear-gradient(135deg,#2c1647 0%,#4c2388 62%,#6e34b9 100%)}
.cgspb-shell .cgspb-physical-statusbox{align-self:center;min-width:150px;padding:15px 18px;border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.10);backdrop-filter:blur(8px);color:#fff}
.cgspb-shell .cgspb-physical-statusbox small{display:block;text-transform:uppercase;letter-spacing:.08em;opacity:.72;font-weight:800;margin-bottom:4px}
.cgspb-shell .cgspb-physical-statusbox strong{font-size:22px}
.cgspb-shell .cgspb-builder-quick-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;align-self:end}
.cgspb-shell .cgspb-physical-teacher-note textarea{width:100%;min-height:150px;border:1px solid #ded2eb;border-radius:15px;padding:14px;resize:vertical;background:#fff;font:inherit;line-height:1.55;box-sizing:border-box}
.cgspb-shell .cgspb-physical-teacher-note textarea:focus{outline:none;border-color:#9f70ed;box-shadow:0 0 0 3px rgba(113,47,226,.10)}
.cgspb-shell .cgspb-physical-assign-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cgspb-shell .cgspb-assign-class{border:1px solid #e5dcf0;border-radius:17px;padding:14px;background:#fcfbfe}
.cgspb-shell .cgspb-assign-class details{margin-top:10px;padding-top:10px;border-top:1px solid #e9e2f0}
.cgspb-shell .cgspb-assign-class summary{cursor:pointer;color:var(--cgspb-purple-dark);font-weight:800;font-size:12px}
.cgspb-shell .cgspb-assign-students{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.cgspb-shell .cgspb-assign-students label{display:flex;gap:7px;align-items:center;margin:0;padding:7px 8px;border-radius:9px;background:#fff;border:1px solid #ece5f3;font-size:12px}
.cgspb-shell .cgspb-assign-students input{margin:0}
.cgspb-shell .cgspb-ai-editing-chip{display:inline-flex;align-items:center;gap:7px;margin-top:10px;padding:8px 11px;border-radius:999px;background:#f3edfb;color:#4c2388;font-size:12px}
.cgspb-shell .cgspb-student-physical{margin-top:22px;background:linear-gradient(145deg,#fffaf5,#fff)}
.cgspb-shell .cgspb-physical-student-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cgspb-shell .cgspb-physical-student-grid>article{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start;border:1px solid #e5dcef;border-radius:18px;background:#fff;padding:16px}
.cgspb-shell .cgspb-physical-student-grid>article>.dashicons{width:38px;height:38px;font-size:38px;color:var(--cgspb-orange)}
.cgspb-shell .cgspb-physical-student-grid small{font-size:10px;font-weight:900;letter-spacing:.06em;color:#776c82}
.cgspb-shell .cgspb-physical-student-grid h3{font-size:18px;margin:3px 0 5px}
.cgspb-shell .cgspb-physical-student-grid p{margin:0;color:var(--cgspb-muted);font-size:12px}
.cgspb-shell .cgspb-physical-student-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:900px){
  .cgspb-shell .cgspb-physical-grid,.cgspb-shell .cgspb-physical-assign-grid,.cgspb-shell .cgspb-physical-student-grid{grid-template-columns:1fr}
  .cgspb-shell .cgspb-assign-students{grid-template-columns:1fr}
  .cgspb-shell .cgspb-physical-statusbox{min-width:0;width:100%}
}
@media(max-width:620px){
  .cgspb-shell .cgspb-physical-card-actions .cgspb-btn,.cgspb-shell .cgspb-builder-quick-actions .cgspb-btn{width:100%;justify-content:center}
  .cgspb-shell .cgspb-physical-card-secondary{align-items:flex-start;flex-direction:column}
}


/* v0.11.2 – actieknoppen in studentenoverzicht strak rechts uitlijnen */
.cgspb-shell .cgspb-student-table th:last-child,
.cgspb-shell .cgspb-student-table td:last-child{
  text-align:right;
}
.cgspb-shell .cgspb-student-table .cgspb-row-actions{
  width:100%;
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
}
.cgspb-shell .cgspb-student-table .cgspb-row-actions form{
  margin:0;
  display:inline-flex;
}
.cgspb-shell .cgspb-student-table .cgspb-row-actions .cgspb-btn{
  margin:0;
  justify-content:center;
}
@media(max-width:760px){
  .cgspb-shell .cgspb-student-table th:last-child,
  .cgspb-shell .cgspb-student-table td:last-child{
    text-align:left;
  }
  .cgspb-shell .cgspb-student-table .cgspb-row-actions{
    justify-content:flex-start;
  }
}


/* v0.11.3 – lesacties als vaste, strak uitgelijnde rechterkolom */
.cgspb-shell .cgspb-lesson-manager-launch,
.cgspb-shell .cgspb-physical-launch{
  padding:24px 26px;
}
.cgspb-shell .cgspb-lesson-manager-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
}
.cgspb-shell .cgspb-lesson-manager-head>div:first-child{
  flex:1 1 auto;
  min-width:0;
}
.cgspb-shell .cgspb-lesson-manager-buttons{
  flex:0 0 260px;
  width:260px;
  margin-left:auto;
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  align-items:stretch;
  justify-items:stretch;
}
.cgspb-shell .cgspb-lesson-manager-buttons .cgspb-btn{
  width:100%;
  min-width:0;
  min-height:56px;
  margin:0!important;
  box-sizing:border-box;
  justify-content:center;
  text-align:center;
}
@media(max-width:700px){
  .cgspb-shell .cgspb-lesson-manager-head{
    align-items:stretch;
    gap:18px;
  }
  .cgspb-shell .cgspb-lesson-manager-buttons{
    flex:0 0 auto;
    width:100%;
    margin-left:0;
  }
  .cgspb-shell .cgspb-lesson-manager-buttons .cgspb-btn{
    width:100%;
  }
}


/* v0.11.4 – subtiele paarse panelranden + soepel inklapbare dashboardtiles */
.cgspb-shell.cgspb-teacher-app .cgspb-panel,
.cgspb-shell.cgspb-teacher-app .cgspb-tabs-wrap{
  border-color:rgba(123,44,255,.15);
  box-shadow:0 10px 28px rgba(63,30,111,.05);
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile{
  transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile:hover{
  border-color:rgba(123,44,255,.24);
  box-shadow:0 14px 32px rgba(63,30,111,.07);
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile>.cgspb-section-head,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile>.cgspb-create-head,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile>.cgspb-students-head{
  gap:14px;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle{
  margin-left:auto;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  padding:8px 13px;
  border-radius:999px;
  border:1px solid #e3d8f3;
  background:#faf7ff;
  color:#5c37a4;
  font:inherit;
  font-size:12px;
  font-weight:850;
  letter-spacing:.01em;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle:hover{
  background:#f4eeff;
  border-color:#d3c1f0;
  color:#4b22a7;
  box-shadow:0 6px 16px rgba(80,34,167,.10);
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle:focus{
  outline:none;
  box-shadow:0 0 0 3px rgba(109,34,255,.12);
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle .dashicons{
  width:16px;
  height:16px;
  font-size:16px;
  transition:transform .28s ease;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile.is-collapsed .cgspb-dashboard-tile-toggle .dashicons{
  transform:rotate(180deg);
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body{
  overflow:hidden;
  max-height:none;
  opacity:1;
  transition:max-height .38s cubic-bezier(.4,0,.2,1),opacity .24s ease,margin-top .24s ease;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile.is-collapsed .cgspb-dashboard-tile-body{
  opacity:0;
  pointer-events:none;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-lesson-manager-buttons{
  justify-self:end;
  margin:8px 0 0 auto;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>[data-cgspb-kb-open]{
  margin:8px 0 0 auto;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-lesson-manager-summary,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-class-connect-grid,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-table-wrap,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-kb-summary,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-inline-form,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-create-row,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-soft-empty,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-physical-grid,
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-manager-notice{
  margin-top:16px;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile.is-collapsed .cgspb-dashboard-tile-body>*:first-child{
  margin-top:0!important;
}
@media(max-width:760px){
  .cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle .cgspb-dashboard-toggle-text{display:none}
  .cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle{min-width:40px;padding:8px 10px}
  .cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>.cgspb-lesson-manager-buttons,
  .cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-body>[data-cgspb-kb-open]{
    width:100%;
    margin-left:0;
  }
}


/* v0.11.5 – compacte docentenpagina, merkpaars en fysiek lessenbeheer */
.cgspb-shell.cgspb-teacher-app .cgspb-panel,
.cgspb-shell.cgspb-teacher-app .cgspb-tabs-wrap{
  border-color:rgba(109,34,255,.38);
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile:hover{
  border-color:rgba(109,34,255,.56);
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle{
  width:38px;
  height:38px;
  min-width:38px;
  min-height:38px;
  padding:0;
  margin-left:auto;
  border:0;
  border-radius:11px;
  background:transparent;
  color:var(--cgspb-purple);
  box-shadow:none;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle:hover{
  background:#f3edff;
  border:0;
  color:var(--cgspb-purple-dark);
  box-shadow:none;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle:focus{
  box-shadow:0 0 0 3px rgba(109,34,255,.12);
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle .cgspb-collapse-chevron{
  width:20px;
  height:20px;
  font-size:20px;
  transition:transform .26s ease;
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile:not(.is-collapsed) .cgspb-dashboard-tile-toggle .cgspb-collapse-chevron{
  transform:rotate(180deg);
}
.cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile.is-collapsed .cgspb-dashboard-tile-toggle .cgspb-collapse-chevron{
  transform:none;
}
.cgspb-shell .cgspb-physical-lessons-dialog{
  width:min(1100px,calc(100vw - 28px));
}
.cgspb-shell .cgspb-physical-manager-actions{
  justify-content:flex-start;
}
.cgspb-shell .cgspb-physical-manager-grid{
  margin-top:6px;
}
@media(max-width:760px){
  .cgspb-shell.cgspb-teacher-app .cgspb-dashboard-tile-toggle{width:38px;min-width:38px;padding:0}
}


/* v0.11.6 – terugkerende student eerst laten inloggen, klassencode als tweede route */
.cgspb-shell .cgspb-gateway-form-title{
  font-size:14px;
  font-weight:900;
  color:var(--cgspb-purple-dark);
  margin-bottom:1px;
}
.cgspb-shell .cgspb-gateway-login{
  background:linear-gradient(135deg,#fbf8ff,#fff8f1);
}
.cgspb-shell .cgspb-gateway-secondary{
  padding:16px;
  border:1px solid #e9e2ef;
  border-radius:18px;
  background:#fff;
}
.cgspb-shell .cgspb-gateway-secondary .cgspb-btn{
  width:100%;
  justify-content:center;
}
.cgspb-shell .cgspb-gateway-login>.cgspb-btn{
  width:100%;
  justify-content:center;
}


/* v0.11.7 – klassencode pas tonen in popup onder studentenlogin */
.cgspb-shell .cgspb-gateway-code-link{
  width:100%;
  min-height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:13px 18px;
  border:1px solid #e5d9f2;
  border-radius:16px;
  background:#fff;
  color:var(--cgspb-purple-dark);
  font:inherit;
  font-weight:850;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.cgspb-shell .cgspb-gateway-code-link:hover{
  background:#faf7ff;
  border-color:#cdb9eb;
  box-shadow:0 8px 22px rgba(74,31,145,.08);
  transform:translateY(-1px);
}
.cgspb-shell .cgspb-gateway-code-link:focus{
  outline:none;
  box-shadow:0 0 0 4px rgba(109,34,255,.10);
}
.cgspb-shell .cgspb-gateway-code-link .dashicons{
  color:var(--cgspb-purple);
  width:20px;
  height:20px;
  font-size:20px;
}
.cgspb-code-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:22px;
}
.cgspb-code-modal.is-open{display:flex}
.cgspb-code-modal-backdrop{
  position:absolute;
  inset:0;
  border:0;
  background:rgba(23,14,35,.48);
  backdrop-filter:blur(5px);
  cursor:pointer;
}
.cgspb-code-modal-dialog{
  position:relative;
  z-index:1;
  width:min(520px,100%);
  max-height:min(720px,calc(100vh - 44px));
  overflow:auto;
  padding:30px;
  border:1px solid #ddd0ef;
  border-radius:26px;
  background:#fff;
  box-shadow:0 28px 80px rgba(36,16,65,.24);
  animation:cgspbCodeModalIn .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes cgspbCodeModalIn{
  from{opacity:0;transform:translateY(12px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.cgspb-code-modal-close{
  position:absolute;
  right:16px;
  top:16px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #e5dcef;
  border-radius:50%;
  background:#fff;
  color:#62576f;
  cursor:pointer;
  transition:.16s ease;
}
.cgspb-code-modal-close:hover{background:#f7f2ff;color:var(--cgspb-purple);border-color:#d0bce9}
.cgspb-code-modal-close .dashicons{width:20px;height:20px;font-size:20px}
.cgspb-code-modal-icon{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  margin-bottom:16px;
  border-radius:17px;
  background:linear-gradient(145deg,var(--cgspb-purple),var(--cgspb-purple-2));
  color:#fff;
  box-shadow:0 10px 25px rgba(109,34,255,.16);
}
.cgspb-code-modal-icon .dashicons{width:26px;height:26px;font-size:26px}
.cgspb-code-modal-dialog h2{margin:4px 46px 8px 0;font-size:27px}
.cgspb-code-modal-dialog>.cgspb-muted{margin-bottom:18px;line-height:1.55}
.cgspb-code-modal-form{padding:16px;border:1px solid #eadff6;border-radius:18px;background:linear-gradient(135deg,#fbf8ff,#fff8f1)}
.cgspb-code-modal-form .cgspb-btn{width:100%;justify-content:center}
html.cgspb-code-modal-open,html.cgspb-code-modal-open body{overflow:hidden}
@media(max-width:620px){
  .cgspb-code-modal{padding:12px}
  .cgspb-code-modal-dialog{padding:24px 20px;border-radius:22px}
  .cgspb-code-modal-dialog h2{font-size:24px}
}
