:root{--navy:#13253a;--navy-2:#1f364e;--ink:#1b2a3c;--muted:#7b899a;--teal:#18a797;--teal-dark:#0e867b;--teal-bg:#e9f7f4;--line:#e6eaf0;--cream:#f3f5f8;--white:#fff;--shadow:0 18px 60px rgba(18,37,58,.13);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--ink)}
*{box-sizing:border-box}html,body{margin:0;height:100%;min-height:600px}body{overflow:hidden;background:var(--cream)}button,input,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #70dace;outline-offset:2px}button:disabled{opacity:.35;cursor:not-allowed}.hidden{display:none!important}svg{width:100%;height:100%}
.app-shell{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;min-height:530px}
.topbar{height:72px;flex-shrink:0;background:var(--navy);display:flex;align-items:center;padding:0 22px;gap:21px;color:#fff;box-shadow:0 4px 15px #12243b13;z-index:6}.brand{font-size:23px;letter-spacing:-.9px;font-weight:830;display:flex;align-items:center;white-space:nowrap;gap:11px}.brand-accent{color:#56dbca}.brand-mark{width:33px;height:33px;display:grid;grid-template-columns:1fr 1fr;gap:3px;transform:rotate(-11deg)}.brand-mark span{border-radius:4px;background:#53d9c5}.brand-mark span:nth-child(2){opacity:.7}.brand-mark span:nth-child(3){opacity:.55}.brand-mark span:nth-child(4){background:#fff}.title-divider,.top-divider{height:30px;width:1px;background:#ffffff26;flex-shrink:0}.lesson-title-wrap{display:flex;flex-direction:column;gap:3px;min-width:160px;max-width:390px;flex:1}.eyebrow{font-size:9px;font-weight:800;letter-spacing:1.55px;color:#8da5ba}.eyebrow.muted{color:#99a5b4}.lesson-title{color:white;border:0;background:transparent;padding:0;width:100%;font-weight:710;font-size:16px;outline:none}.lesson-title:focus{box-shadow:0 1px #48d0bb}.top-actions{display:flex;gap:8px;align-items:center;margin-left:auto}.top-button{display:flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;height:38px;border:1px solid #466078;background:#223a52;color:#e9f4f8;border-radius:10px;font-size:12px;font-weight:670;white-space:nowrap}.top-button svg,.minor-button svg,.icon-button svg,.page-add svg,.primary-button svg{width:17px;height:17px}.top-button.compact{width:38px;padding:0}.top-button:hover{background:#324d65}.top-button.accent{border-color:#32bcaa;background:#159b8e;color:white}.top-button.accent:hover{background:#0b8175}.save-status{font-size:11px;font-weight:600;color:#a5bed0;white-space:nowrap;margin-right:8px}.status-dot{width:7px;height:7px;border-radius:99px;display:inline-block;background:#4bd3a9;margin-right:5px}.status-dot.pending{background:#f9bf66}
.workspace{flex:1;min-height:0;display:flex;overflow:hidden}.left-rail{background:#fff;flex:0 0 85px;border-right:1px solid var(--line);display:flex;flex-direction:column;padding:17px 9px 10px;z-index:3}.rail-heading{text-align:center;letter-spacing:1.4px;font-size:9px;color:#a5adba;font-weight:850;margin-bottom:12px}.tool-stack{display:flex;flex-direction:column;gap:5px;overflow-y:auto;scrollbar-width:none}.tool-stack::-webkit-scrollbar{display:none}.tool{height:59px;min-height:50px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;width:66px;border:1px solid transparent;border-radius:13px;background:transparent;color:#64758a;font-size:9px;font-weight:710}.tool svg{width:21px;height:21px}.tool:hover{background:#f0f5f7;color:#20364b}.tool.active{background:var(--teal-bg);border-color:#c5ebe4;color:#0b8e82}.rail-separator{height:1px;background:var(--line);margin:7px 10px}.rail-bottom{margin-top:auto;padding-top:8px;border-top:1px solid var(--line)}.rail-bottom .tool{color:#ae6570}
.center-area{display:flex;min-width:0;min-height:0;flex:1;flex-direction:column;position:relative;background:#f1f4f7}.context-bar{height:60px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 22px;flex-shrink:0;border-bottom:1px solid #e5e9ee;background:#f7f9fb}.context-caption{font-size:9px;letter-spacing:1.15px;font-weight:850;color:#8595a5}.context-left,.context-right,.background-options,.colors,.size-control{display:flex;align-items:center;gap:8px}.context-left{gap:16px}.context-right{gap:16px}.background-choice{width:34px;height:34px;border:1px solid #e0e5eb;border-radius:8px;background:#fff;padding:5px}.background-choice.active{outline:2px solid var(--teal);outline-offset:0;border-color:white}.bg-preview{display:block;width:100%;height:100%;border-radius:2px;background:#fff}.bg-preview.grid{background-image:linear-gradient(#d3dbe3 1px,transparent 1px),linear-gradient(90deg,#d3dbe3 1px,transparent 1px);background-size:7px 7px}.bg-preview.lines{background-image:repeating-linear-gradient(to bottom,white 0px,white 5px,#b6c5d4 6px,white 7px)}.bg-preview.dots{background-image:radial-gradient(#b5c2d1 1px,transparent 1px);background-size:7px 7px}.bg-preview.chalk{background:#243e41}.color-choice{width:22px;height:22px;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #d8dfe8;background:var(--color)}.color-choice.active{box-shadow:0 0 0 2px var(--teal);transform:scale(1.04)}.size-control{padding-left:11px;border-left:1px solid #e2e7ed;color:#73899a;gap:8px}.size-control svg{width:16px;height:16px}.size-control input{width:80px;accent-color:#18a797}.size-control span:last-child{font-size:11px;font-weight:760;color:#708399;min-width:18px}
.board-surround{flex:1;min-height:0;min-width:0;padding:24px 32px 14px;display:flex;align-items:center;justify-content:center}.board{width:min(100%,calc((100dvh - 244px) * 1.77777778));max-height:100%;aspect-ratio:16/9;background:white;position:relative;overflow:hidden;border-radius:5px;box-shadow:var(--shadow),0 0 0 1px #e0e5ec;user-select:none}.board-surface{position:absolute;inset:0;background:white;z-index:0}.board-surface.bg-grid{background-image:linear-gradient(#eaf0f5 1px,transparent 1px),linear-gradient(90deg,#eaf0f5 1px,transparent 1px);background-size:3% 5.333%}.board-surface.bg-lines{background-image:repeating-linear-gradient(to bottom,transparent 0%,transparent calc(5.333% - 1px),#dce8f0 calc(5.333% - 1px),#dce8f0 5.333%)}.board-surface.bg-dots{background-image:radial-gradient(#cedae4 1.25px,transparent 1.25px);background-size:3% 5.333%}.board-surface.bg-chalk{background:#243f42;background-image:radial-gradient(ellipse at 30% 10%,#ffffff0d,transparent 70%)}.board-svg{position:absolute;inset:0;z-index:1;touch-action:none;cursor:crosshair;overflow:visible}.board-svg.select-mode{cursor:default}.board-svg.eraser-mode{cursor:cell}.board-svg [data-element]{cursor:inherit}.board-svg.select-mode [data-element]{cursor:move}.board-svg .selection-outline{fill:none;stroke:var(--teal);stroke-dasharray:7 5;stroke-width:3;pointer-events:none}.widget-layer{position:absolute;inset:0;z-index:2;pointer-events:none}.widget{pointer-events:auto;position:absolute;background:white;box-shadow:0 5px 22px #142f4523,0 0 0 1px #d6e2eb;border-radius:16px;display:flex;flex-direction:column;overflow:hidden;min-width:140px;min-height:110px}.widget-resize{position:absolute;right:1px;bottom:1px;width:23px;height:23px;cursor:nwse-resize;touch-action:none;z-index:5;background:linear-gradient(135deg,transparent 42%,#a9c3c9 43%,#a9c3c9 48%,transparent 49%,transparent 60%,#a9c3c9 61%,#a9c3c9 66%,transparent 67%);background-size:12px 12px;background-repeat:no-repeat;background-position:right 5px bottom 5px;opacity:.65}.widget-resize:hover{opacity:1}
.widget.dragging{box-shadow:0 12px 40px #173f4650;outline:3px solid #32c3b1}.widget-header{height:38px;flex-shrink:0;display:flex;align-items:center;gap:7px;padding:0 10px;background:#f2f8f9;border-bottom:1px solid #e1e9eb;cursor:grab;touch-action:none}.widget-header:active{cursor:grabbing}.widget-kind-icon{font-size:14px}.widget-title{font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.widget-grip{font-size:15px;color:#9facb7;letter-spacing:-2px;padding:0 3px}.widget-close{padding:0;width:24px;height:24px;display:grid;place-items:center;border:0;background:transparent;border-radius:6px;color:#8ba0ab}.widget-close svg{width:14px;height:14px}.widget-close:hover{background:#fce9e9;color:#c34b59}.widget-inner{display:flex;flex:1;min-height:0;align-items:center;justify-content:center;flex-direction:column;padding:11px 12px;gap:9px;overflow:auto}.widget-button{border:1px solid #dbe5ea;background:#fff;color:#435b70;font-weight:720;font-size:11px;border-radius:9px;padding:7px 9px;min-height:29px}.widget-button:hover{border-color:#54bcaf;color:#087e73}.widget-button.primary{background:#159d91;border-color:#159d91;color:#fff}.widget-button.primary:hover{background:#0c8278}.widget-button.danger{color:#be5360}.widget-controls{display:flex;justify-content:center;align-items:center;gap:6px;flex-wrap:wrap}.widget-time{font-weight:840;letter-spacing:-2px;font-variant-numeric:tabular-nums;font-size:clamp(20px,2.4vw,40px);line-height:1.1}.widget-date{font-size:12px;font-weight:710;color:#8d9ba8}.widget-timer{font-size:clamp(23px,2.75vw,48px);font-weight:850;letter-spacing:-1px;font-variant-numeric:tabular-nums}.widget-timer.finished{color:#d56454}.widget-picker-name{font-size:clamp(16px,2vw,32px);line-height:1.2;font-weight:840;text-align:center;color:#1a8c81;max-width:100%;overflow-wrap:anywhere}.widget-subtle{font-size:11px;color:#96a5b2;text-align:center}.widget-die{font-size:clamp(30px,4vw,67px);color:#168e85;font-weight:800;line-height:1}.widget-traffic{display:flex;gap:11px;background:#263d48;padding:12px 14px;border-radius:18px}.traffic-lamp{width:clamp(27px,3vw,44px);aspect-ratio:1;background:#647580;border:3px solid #ffffff3b;border-radius:50%;transition:all .15s}.traffic-lamp[data-light="red"].lit{background:#ff576b;box-shadow:0 0 20px #ff576b80}.traffic-lamp[data-light="orange"].lit{background:#ffc34b;box-shadow:0 0 20px #ffc34b80}.traffic-lamp[data-light="green"].lit{background:#47d79e;box-shadow:0 0 20px #47d79e80}.traffic-label{font-size:12px;font-weight:750;text-align:center;color:#5d7285}.score-teams{display:flex;gap:10px;width:100%;align-items:stretch}.score-team{flex:1;text-align:center;border-radius:12px;background:#e9f3fc;padding:8px 6px;display:flex;flex-direction:column;gap:4px}.score-team:nth-child(2){background:#fff0e9}.score-team b{font-size:11px}.score-team strong{font-size:35px;font-weight:850;line-height:1.1}.score-team .widget-controls{gap:4px}.score-team .widget-button{padding:3px 10px}.agenda-content{padding:8px 10px;align-items:stretch;justify-content:flex-start;gap:3px}.agenda-item{width:100%;min-height:34px;display:flex;align-items:center;text-align:left;gap:8px;border:0;background:transparent;border-radius:8px;padding:5px;color:#2f485c;font-weight:680;font-size:12px}.agenda-item:hover{background:#eff7f6}.agenda-item .agenda-check{width:19px;height:19px;border-radius:6px;border:2px solid #aac2c9;display:grid;place-items:center;flex-shrink:0;color:white}.agenda-item.done{color:#90a1ab;text-decoration:line-through}.agenda-item.done .agenda-check{background:#18a797;border-color:#18a797}.agenda-edit{margin-top:auto;align-self:flex-end;color:#088f83;background:none;border:0;font-weight:750;font-size:11px;padding:7px}.board-watermark{position:absolute;right:15px;bottom:11px;z-index:0;color:#a4b1bd99;font-weight:800;letter-spacing:1px;font-size:8px;pointer-events:none}.board-watermark span{color:#15ad9d}.empty-hint{position:absolute;inset:0;display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:center;pointer-events:none;color:#a0adbb;font-size:13px;z-index:0}.empty-hint strong{color:#74889b;font-size:17px}.empty-hint-icon{display:flex;align-items:center;justify-content:center;border-radius:17px;background:#e7f5f3;width:55px;height:55px;margin-bottom:6px;color:#24a595}.empty-hint-icon svg{width:26px;height:26px}.board-footer{height:29px;flex-shrink:0;display:flex;justify-content:space-between;gap:10px;align-items:center;padding:0 30px 4px;font-size:10px;color:#93a0af}.kbd{font-weight:700;background:#e4e9ee;border:1px solid #d8e0e7;padding:1px 5px;border-radius:4px;color:#8794a0}.dot-sep{padding:0 5px;color:#bdc8d1}
.right-panel{width:305px;flex-shrink:0;background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;z-index:3;transition:width .2s;overflow:hidden}.right-panel.collapsed{width:0;border-left:0}.panel-top{padding:23px 21px 16px;display:flex;justify-content:space-between;gap:9px;align-items:center;flex-shrink:0}.panel-top h2{font-size:21px;margin:5px 0 0;letter-spacing:-.6px}.icon-button{border:0;background:transparent;color:#8492a4;width:32px;height:32px;display:grid;place-items:center;border-radius:7px}.icon-button:hover{background:#f1f5f7}.panel-tabs{display:flex;padding:0 20px;border-bottom:1px solid #e2e9f0;gap:20px;flex-shrink:0}.panel-tab{background:none;border:0;border-bottom:3px solid transparent;color:#8795a5;font-size:12px;font-weight:760;padding:12px 3px}.panel-tab.active{color:#0d9f90;border-bottom-color:#19ad9b}.panel-content{padding:15px 18px 25px;overflow-y:auto;scrollbar-color:#e0e8ed transparent;scrollbar-width:thin}.panel-intro{font-size:12px;line-height:1.6;color:#7b8a9b;margin:0 0 19px}.widget-catalog{display:grid;grid-template-columns:1fr 1fr;gap:10px}.catalog-item{height:102px;border:1px solid #e4ebee;border-radius:13px;background:white;display:flex;flex-direction:column;align-items:flex-start;text-align:left;justify-content:center;padding:12px;gap:4px;box-shadow:0 3px 8px #0c2b4210}.catalog-item:hover{border-color:#4dbfb0;background:#f6fdfb;transform:translateY(-1px)}.catalog-icon{font-size:23px;margin-bottom:1px}.catalog-title{font-size:12px;font-weight:790;color:#2b4257}.catalog-sub{font-size:10px;color:#92a1ae;line-height:1.15}.panel-note{margin-top:20px;display:flex;gap:9px;padding:14px;border-radius:12px;background:#eef8f5;color:#278b7d}.panel-note svg{width:20px;height:20px}.panel-note strong{font-size:12px}.panel-note p{color:#638f87;font-size:10px;line-height:1.55;margin:4px 0 0}.field-label{display:block;color:#8194a5;font-size:10px;font-weight:840;letter-spacing:.7px;margin-bottom:8px}.names-field{width:100%;height:220px;resize:vertical;padding:12px 14px;border:1px solid #dbe4eb;border-radius:12px;color:#2b485b;font-size:13px;line-height:1.7;outline:0}.names-field:focus{border-color:#44b9aa}.primary-button,.secondary-button{padding:10px 15px;border-radius:10px;border:1px solid #13a191;background:#13a191;color:#fff;font-weight:760;font-size:12px}.primary-button:hover{background:#0a8076}.secondary-button{background:white;color:#597082;border-color:#dbe4ea}.secondary-button:hover{background:#f0f6f7}.primary-button.danger-fill{background:#c94d61;border-color:#c94d61}.primary-button.danger-fill:hover{background:#ac3049}#saveNamesBtn{margin-top:10px;width:100%}.class-counter{font-size:11px;color:#8999a7;margin:10px 0}.hint-card{background:#f4f7fc;border-radius:13px;padding:14px;margin-top:25px;font-size:12px}.hint-card strong{color:#47627f}.hint-card p{font-size:11px;line-height:1.6;margin-bottom:0;color:#7c8ea4}
.pagebar{height:100px;flex-shrink:0;background:#fff;border-top:1px solid var(--line);display:flex;align-items:center;gap:15px;padding:10px 20px;z-index:4}.pagebar-header{width:135px;flex-shrink:0;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.pagebar-header>span{color:#9aa9b6;font-weight:850;letter-spacing:1.6px;font-size:9px}.page-add{background:var(--teal-bg);color:#0e9284;border:1px solid #ccebe6;border-radius:9px;padding:8px 10px;font-size:11px;font-weight:760;display:flex;align-items:center;gap:5px;white-space:nowrap}.page-add:hover{background:#d4f0e9}.page-add svg{width:15px;height:15px}.page-list{display:flex;gap:10px;overflow-x:auto;min-width:0;flex:1;align-items:center;height:100%;scrollbar-width:thin}.page-thumb{border:2px solid #e3e9ef;border-radius:9px;background:#f7f9fb;width:104px;height:69px;flex-shrink:0;padding:6px;display:flex;flex-direction:column;align-items:flex-start;gap:3px}.page-thumb.active{border-color:#1aae9d;background:#e9f8f4}.page-number{font-size:10px;font-weight:850;color:#8ba0b0}.page-name{font-size:10px;font-weight:740;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;color:#42566b}.page-preview-lines{margin-top:auto;display:flex;flex-direction:column;gap:3px;width:80%}.page-preview-lines span{height:3px;width:100%;border-radius:3px;background:#d8e7ed}.page-preview-lines span:last-child{width:55%}.pagebar-actions{display:flex;gap:5px;border-left:1px solid var(--line);padding-left:14px}.minor-button{width:37px;height:37px;border:1px solid #e5eaf0;background:white;border-radius:9px;color:#72869b;padding:9px}.minor-button:hover{background:#f1f6f8}.minor-button.danger:hover{color:#c34e63;background:#fff2f3}
.editor-dialog{border:0;border-radius:20px;padding:25px;width:min(475px,calc(100vw - 35px));box-shadow:0 25px 90px #14283b55;color:var(--ink)}dialog::backdrop{background:#0c203ba8;backdrop-filter:blur(4px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.dialog-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;color:#168b81;background:#e1f5f1}.dialog-icon svg{width:22px;height:22px}.dialog-icon.warning{color:#bd5360;background:#feebee}.editor-dialog h2{margin:17px 0 8px;font-size:22px;letter-spacing:-.6px}.editor-dialog p{font-size:13px;color:#8592a1;line-height:1.5;margin:0 0 20px}.editor-dialog textarea{width:100%;padding:12px;border:1px solid #d5e0e9;border-radius:10px;resize:vertical;min-height:120px;line-height:1.5;color:#1f384d}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.small-dialog{max-width:420px}.toast{position:fixed;bottom:121px;left:50%;transform:translate(-50%,15px);background:#142c40;color:white;padding:10px 16px;border-radius:11px;font-size:12px;font-weight:650;box-shadow:0 14px 40px #263e4f33;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:30}.toast.visible{opacity:1;transform:translate(-50%,0)}
@media(max-width:1250px){.save-status{display:none}.right-panel{width:265px}.topbar{gap:13px;padding:0 15px}.top-actions{gap:5px}.context-caption{display:none}.context-left{gap:0}.board-surround{padding:16px}.board{width:min(100%,calc((100dvh - 227px) * 1.77777778))}}
@media(max-width:1000px){.desktop-label{display:none}.top-button{width:38px;padding:0}.right-panel{position:absolute;right:0;top:72px;bottom:100px;width:min(305px,88vw);box-shadow:-13px 0 40px #1c36531a}.right-panel.collapsed{width:0}.board-surround{padding:15px}.board{width:min(100%,calc((100dvh - 220px) * 1.77777778))}.left-rail{flex-basis:71px;padding-inline:4px}.tool{width:62px}}
@media(max-height:700px){.topbar{height:60px}.pagebar{height:82px}.tool{height:49px;min-height:45px}.rail-heading{margin-bottom:4px}.board-surround{padding:10px}.right-panel{top:60px;bottom:82px}.board{width:min(100%,calc((100dvh - 190px) * 1.77777778))}}
@media(max-width:650px){.brand{font-size:19px}.brand-mark{width:26px;height:26px}.title-divider{display:none}.lesson-title-wrap{min-width:50px}.lesson-title{font-size:13px}.topbar{gap:9px}.top-button.compact,.top-divider{display:none}.context-bar{padding:8px;gap:4px}.background-options{gap:3px}.background-choice{width:29px;height:29px;padding:4px}.context-right{gap:5px}.colors{gap:3px}.color-choice{width:17px;height:17px}.size-control{display:none}.board-footer{display:none}.left-rail{flex-basis:54px;padding-inline:2px}.tool{width:48px;font-size:8px}.tool svg{width:18px;height:18px}.board-surround{padding:4px}.pagebar{padding:5px;gap:5px}.pagebar-header{width:100px}.page-add{font-size:9px;padding:7px 5px}.page-thumb{width:80px}.pagebar-actions{gap:2px;padding-left:5px}}
/* BordLab 0.2 · touch-first, borderloze hulpmiddelen en contextuele gereedschappen */
.left-rail{padding-top:7px;flex-basis:86px}
.rail-heading{display:none}
.tool-stack{margin-top:auto;margin-bottom:auto;overflow-y:auto;max-height:calc(100% - 72px);flex-shrink:1}
.pen-subtools{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;width:67px;background:#edf8f5;border:1px solid #c8ebe5;border-radius:10px;padding:5px 3px;margin:0 0 4px}
.shape-tool{width:18px;height:30px;background:transparent;border:0;border-radius:5px;color:#486578;display:grid;place-items:center;padding:0}
.shape-tool svg{width:17px;height:17px}
.shape-tool.active,.shape-tool:hover{background:#bbebe1;color:#087f73}
.context-tip{font-size:11px;color:#9ba8b5;white-space:nowrap}
.draw-settings{position:absolute;left:16px;bottom:36px;z-index:5;width:222px;background:#ffffffed;border:1px solid #d8e5e8;box-shadow:0 9px 25px #102d3c19;border-radius:13px;padding:10px 11px 9px;display:flex;flex-direction:column;gap:10px;backdrop-filter:blur(8px)}
.draw-settings-label{display:flex;align-items:center;gap:5px;font-size:9px;font-weight:820;letter-spacing:1.1px;color:#7693a0}
.draw-settings-label svg{height:13px;width:13px}
.draw-settings.drawing-active{border-color:#80cfc5;box-shadow:0 8px 25px #158b7d20}
.draw-settings .colors{display:flex;justify-content:space-between;gap:5px}
.draw-settings .color-choice{width:20px;height:20px;flex:0 0 20px}
.draw-settings .size-control{display:flex;gap:8px;align-items:center}
.draw-settings .size-control svg{width:17px;height:17px}
.draw-settings .size-control input{min-width:0;flex:1;max-width:none;accent-color:#18a797}
.draw-settings .size-control span:last-child{font-size:12px;font-weight:800;color:#577286;min-width:22px;text-align:right}
.selection-resize-handle{fill:#fff;stroke:#13a594;stroke-width:6;cursor:nwse-resize;pointer-events:all;touch-action:none}
.selection-resize-handle:hover{fill:#e5f8f4}
.selection-actions{position:absolute;z-index:5;display:flex;align-items:center;gap:2px;background:#fff;border:1px solid #b9ded8;box-shadow:0 6px 18px #142b3d35;border-radius:10px;padding:5px;pointer-events:auto;min-width:120px}
.selection-actions button{width:36px;height:34px;border:0;background:transparent;border-radius:7px;color:#236b6b;font-size:22px;font-weight:650;display:grid;place-items:center}
.selection-actions button:hover{background:#e6f7f4}
.selection-actions .selection-delete{font-size:18px;color:#c54c5c}
.selection-actions .selection-delete:hover{background:#fff0f1}
.selection-divider{height:23px;width:1px;background:#d6e9e5;margin:0 3px}
.widget{background:transparent;border:0;box-shadow:none;border-radius:0;min-width:0;min-height:0;overflow:visible;container-type:size}
.widget.dragging{outline:2px dashed #24baaa;outline-offset:2px;border-radius:12px;background:#e5f9f333;box-shadow:none}
.widget.settings-open{z-index:9}
.widget-header{height:35px;position:absolute;left:0;right:0;top:0;padding:0 2px;z-index:5;background:transparent;border:0;display:flex;align-items:center;justify-content:space-between;gap:6px;cursor:grab;touch-action:none}
.widget-header:active{cursor:grabbing}
.widget-grip{flex:1;text-align:center;color:#9cabb6;font-size:21px;line-height:1;letter-spacing:1px;text-shadow:0 1px #fff;opacity:.8}
.widget-settings,.widget-close,.widget-settings-spacer{flex:0 0 30px;height:30px;width:30px}
.widget-settings,.widget-close{padding:6px;display:grid;place-items:center;background:#ffffffcb;border:1px solid #e4eaec;box-shadow:0 2px 7px #19313d0f;border-radius:9px;color:#607d88}
.widget-settings svg,.widget-close svg{width:17px;height:17px}
.widget-settings:hover,.widget-settings[aria-expanded="true"]{background:#daf2ed;color:#138e80;border-color:#98dcd0}
.widget-close:hover{background:#ffe9eb;color:#ca5363;border-color:#ffc5cb}
.widget-inner{flex:1;min-height:0;min-width:0;background:transparent;overflow:visible;align-items:center;justify-content:center;padding:37px 8px 15px;gap:7px}
.widget-time{font-size:clamp(16px,12cqw,68px);letter-spacing:-.04em;white-space:nowrap;line-height:1.08;font-weight:850;color:#172f42}
.widget-date{font-size:clamp(10px,4.2cqw,25px);font-weight:700;color:#6d8795;text-transform:capitalize;white-space:nowrap}
.widget-timer{font-size:clamp(23px,16cqw,85px);color:#173a46;white-space:nowrap;font-weight:850;line-height:1.05}
.widget-timer.finished{color:#d65d57}
.widget-clock .widget-inner{gap:3px}
.widget-timer .widget-controls{flex-wrap:nowrap;gap:3px}
.widget-timer .widget-button{padding:6px 7px;font-size:clamp(9px,4cqw,17px)}
.widget-button{font-size:clamp(10px,3.2cqw,15px);min-height:26px}
.widget-options{position:absolute;top:35px;left:0;width:235px;max-width:max-content;min-width:190px;z-index:20;background:#fff;border-radius:12px;border:1px solid #cddfe3;box-shadow:0 13px 45px #152d4650;padding:13px;display:flex;flex-direction:column;gap:9px}
.widget-options label{font-size:11px;color:#5b7788;font-weight:750;display:flex;flex-direction:column;gap:7px}
.widget-options select{width:100%;max-width:215px;height:36px;padding:5px 9px;border-radius:8px;border:1px solid #d4e2e8;background:#f7fafb;color:#263d4d;font-size:13px}
.widget-options .widget-button{align-self:flex-start}
.widget-resize{right:0;bottom:0;width:30px;height:30px;z-index:5;border-radius:9px;background-color:#ffffffd9;border:1px solid #e1e9e9;opacity:.87;background-position:right 7px bottom 7px}
.widget-resize:hover{border-color:#34ad9e;opacity:1}
.widget-traffic .widget-inner{padding:33px 5px 9px;justify-content:center}
.widget-traffic .widget-traffic{display:flex;flex-direction:column;gap:min(3cqh,13px);padding:min(3cqw,13px);background:#253b45;border:2px solid #1c313b;border-radius:30px;width:max-content;max-height:100%;box-shadow:inset 0 0 0 3px #ffffff10,0 7px 16px #17353c2b}
.widget-traffic .traffic-lamp{width:min(42cqw,19cqh);height:min(42cqw,19cqh);aspect-ratio:1;flex:0 0 auto;border:3px solid #ffffff2a;background:#516772;box-shadow:inset 0 3px 9px #1a293d88}
.widget-traffic .traffic-lamp[data-light="red"].lit{background:#fb536b;box-shadow:0 0 14px #fb536b66,inset 0 3px 4px #fff7}
.widget-traffic .traffic-lamp[data-light="orange"].lit{background:#fdbf48;box-shadow:0 0 14px #fdbf4866,inset 0 3px 4px #fff7}
.widget-traffic .traffic-lamp[data-light="green"].lit{background:#3bd494;box-shadow:0 0 14px #3bd49466,inset 0 3px 4px #fff7}
.widget-traffic .traffic-label{display:none}
.widget-dice .widget-inner{gap:7px}
.widget-die{font-size:clamp(37px,30cqw,112px);color:#0f9a8b;display:grid;place-items:center;min-height:0;line-height:1}
.widget-die .die-poly{font-size:clamp(22px,18cqw,78px);font-weight:900;width:min(41cqw,35cqh);height:min(41cqw,35cqh);min-width:45px;min-height:45px;display:grid;place-items:center;background:linear-gradient(140deg,#47d8c1,#0e857b);color:white;clip-path:polygon(50% 0,95% 27%,95% 73%,50% 100%,5% 73%,5% 27%);filter:drop-shadow(0 1px 3px #555);text-shadow:0 1px 2px #13605e66}
.widget-die.die-d4 .die-poly{clip-path:polygon(50% 4%,100% 95%,0 95%)}
.widget-die.die-d8 .die-poly{clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}
.widget-die.die-d12 .die-poly{clip-path:polygon(50% 0,89% 19%,100% 61%,71% 100%,29% 100%,0 61%,11% 19%)}
.widget-die.die-d20 .die-poly{clip-path:polygon(50% 0,85% 13%,100% 50%,85% 87%,50% 100%,15% 87%,0 50%,15% 13%)}
.widget-die.die-coin .coin-result{width:min(45cqw,34cqh);height:min(45cqw,34cqh);min-width:58px;min-height:58px;border-radius:50%;font-size:clamp(13px,8cqw,36px);font-weight:850;display:grid;place-items:center;color:#85561a;background:radial-gradient(circle at 30% 27%,#ffebac,#e7b852 75%,#ba8329);border:5px double #bb8437;box-shadow:inset 0 0 0 3px #ffe9aa,0 3px 8px #8c5a2233}
.widget-agenda .widget-inner,.widget-score .widget-inner{border-radius:12px}
.widget-score .score-team{background:#e9f3fcdd}
.widget-picker .widget-picker-name{font-size:clamp(14px,10cqw,55px)}
@media (max-width:1000px){.left-rail{flex-basis:72px}.pen-subtools{width:62px}.shape-tool{width:16px}.draw-settings{left:9px;bottom:35px}.context-tip{display:none}}
@media (max-height:720px){.tool-stack{max-height:calc(100% - 55px)}.left-rail .tool{min-height:43px;height:47px}.draw-settings{bottom:27px;padding:8px 10px;gap:7px}}
@media (max-width:650px){.left-rail{flex-basis:57px}.pen-subtools{width:49px;gap:0;padding:4px 1px}.shape-tool{width:15px}.shape-tool svg{width:13px}.draw-settings{width:154px;left:4px;bottom:6px;padding:5px 7px;gap:3px}.draw-settings-label{font-size:8px}.draw-settings .colors{gap:1px}.draw-settings .color-choice{width:15px;height:15px;flex-basis:15px}.draw-settings .size-control input{max-width:97px}.context-tip{display:none}}

/* Uitklapopties naast het hulpmiddel, niet over de knoppen */
.widget-options{top:2px;left:calc(100% + 9px);right:auto;max-width:235px}
.widget.menu-left .widget-options{left:auto;right:calc(100% + 9px)}

/* BordLab 0.3 — rustige widgets, vrijstaand en alleen geselecteerd te bewerken */
.widget:not(.widget-selected) .widget-header,.widget:not(.widget-selected) .widget-resize{opacity:0;pointer-events:none}
.widget.widget-selected .widget-header,.widget.widget-selected .widget-resize{opacity:1;pointer-events:auto}
.widget.widget-selected{outline:2px dashed #17ab99;outline-offset:3px;border-radius:7px}
.widget:not(.widget-selected) .widget-settings,.widget:not(.widget-selected) .widget-close{visibility:hidden}
.widget:not(.widget-selected) .widget-grip{visibility:hidden}
.widget-traffic .traffic-lamp,.widget-traffic .traffic-lamp.lit{transition:none!important;animation:none!important;transform:none!important}
.widget-traffic .widget-traffic{transition:none!important;animation:none!important}
.widget-traffic{transition:none!important;animation:none!important}
.draw-settings.hidden{display:none!important}
/* linkerkant: hulpmiddelen zitten links naast het bord */
.rail-panel-trigger{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;background:#eaf6f3;color:#0b8479;border:1px solid #c5e8e0;border-radius:13px;width:66px;min-height:62px;font-size:9px;font-weight:750;padding:8px 2px}
.rail-panel-trigger svg{width:22px;height:22px}
.rail-panel-trigger.active{background:#158e82;color:#fff;border-color:#158e82}
.left-rail{flex:0 0 86px;align-items:center}
.right-panel{border-right:1px solid var(--line);border-left:0;order:0;transition:width .16s ease}
.right-panel.collapsed{width:0;border-right:0}
.center-area{order:1}
.tool-stack{margin-top:auto;margin-bottom:auto}
.pagebar.collapsed{height:48px;min-height:48px;padding-top:5px;padding-bottom:5px}
.pagebar.collapsed .page-list,.pagebar.collapsed .pagebar-actions{display:none}
.pagebar.collapsed .pagebar-header{flex:1;width:auto;display:flex;flex-direction:row;justify-content:space-between;align-items:center}
.pagebar-header{min-width:120px}
.collapse-pages{border:0;background:transparent;color:#718595;display:flex;align-items:center;gap:6px;font-size:10px;font-weight:840;letter-spacing:1px;padding:6px 0}
.collapse-pages svg{width:17px;height:17px;transition:transform .15s}
.pagebar.collapsed .collapse-pages svg{transform:rotate(-90deg)}
.pages-collapsed .board{width:min(100%,calc((100dvh - 165px) * 1.77777778))}
/* analoge klokken — geen kader; wijzers direct aan te raken bij oefenklok */
.widget-analog .widget-inner,.widget-teachclock .widget-inner{padding:9px;gap:5px;overflow:visible}
.analog-dial{display:block;width:min(94cqw,87cqh);height:min(94cqw,87cqh);aspect-ratio:1;overflow:visible;flex-shrink:1;max-width:100%;max-height:100%;filter:drop-shadow(0px 4px 8px #1c34421a);touch-action:none}
.dial-face{fill:#fff;stroke:#c9dce0;stroke-width:2.5}
.dial-tick-major{stroke:#273e50;stroke-width:3;stroke-linecap:round}
.dial-tick-minor{stroke:#aabdc7;stroke-width:1.6;stroke-linecap:round}
.dial-number{fill:#1c3c4a;font-size:13px;font-weight:750;font-family:Inter,system-ui,sans-serif}
.dial-hand{stroke-linecap:round}
.dial-hand.hour{stroke:#19394e;stroke-width:7}
.dial-hand.minute{stroke:#0f9b8a;stroke-width:4.5}
.dial-hand.second{stroke:#ee6570;stroke-width:2}
.dial-pin{fill:#173b48;stroke:#fff;stroke-width:1.5}
.analog-touch{stroke:transparent;stroke-width:24;stroke-linecap:round;cursor:grab;touch-action:none}
.analog-touch:active{cursor:grabbing}
.analog-caption{font-size:clamp(11px,4cqw,18px);font-weight:650;color:#7595a4;text-align:center;white-space:nowrap;text-transform:capitalize}
.widget-teachclock .analog-dial{width:min(93cqw,72cqh);height:min(93cqw,72cqh)}
.teach-clock-controls{display:flex;gap:4px;align-items:center;justify-content:center;white-space:nowrap;width:100%;margin-top:2px}
.teach-clock-controls .widget-button{font-size:clamp(9px,3.6cqw,14px);padding:5px;min-height:26px}
.teaching-time{font-size:clamp(11px,5.5cqw,20px);font-weight:800;font-variant-numeric:tabular-nums;color:#234456}
/* start / punten: apart scherm, niet onderdeel van de bordcanvas */
.app-screen{position:fixed;inset:0;z-index:30;background:#f2f5f8;display:flex;flex-direction:column;overflow:hidden}
.app-screen.hidden{display:none!important}
.screen-topbar{height:73px;flex:0 0 73px;background:var(--navy);display:flex;align-items:center;padding:0 clamp(18px,3vw,47px);color:white;gap:26px}
.screen-top-label{color:#b5c7d7;font-size:13px;font-weight:630}
.screen-nav{margin-left:auto;background:#244158;color:#f6fcff;border:1px solid #527084;border-radius:10px;padding:12px 16px;font-weight:750;display:flex;align-items:center;gap:8px}
.screen-nav:hover{background:#34566a}
.screen-nav svg{width:18px;height:18px}
.screen-scroll{flex:1;overflow-y:auto;scrollbar-gutter:stable;padding:clamp(24px,3.4vw,48px) clamp(22px,4vw,64px) 70px;max-width:1650px;width:100%;margin:0 auto}
.dashboard-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px}
.dashboard-eyebrow{font-size:10px;font-weight:880;letter-spacing:1.75px;color:#1b9c90}
.dashboard-heading h1{font-size:clamp(30px,3.1vw,45px);letter-spacing:-1.9px;margin:8px 0;color:#173047;font-weight:850}
.heading-sparkle{color:#29bca6;font-size:.75em}
.dashboard-heading p{color:#7a8fa1;line-height:1.6;max-width:700px;margin:0;font-size:14px}
.dashboard-new{padding:12px 20px;display:flex;gap:8px;align-items:center;white-space:nowrap}
.dashboard-new svg,.timetable-actions svg{width:17px;height:17px}
.dashboard-layout{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(330px,1fr);gap:24px;align-items:start}
.dashboard-card{border:1px solid #e0e7ec;background:#fff;border-radius:18px;padding:24px;box-shadow:0 8px 34px #112e4111;min-height:370px}
.dash-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}
.dash-section-heading>div{display:flex;gap:12px;align-items:center}
.dash-section-heading h2{font-size:19px;margin:0 0 4px;letter-spacing:-.3px}
.dash-section-heading p{font-size:12px;color:#93a1ac;margin:0}
.dash-icon{font-size:21px;border-radius:12px;width:44px;height:44px;background:#ecf7f4;display:grid;place-items:center}
.dash-kicker{font-size:11px;color:#70889c;background:#eff4f7;border-radius:99px;padding:6px 12px;white-space:nowrap}
.library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
.library-item{border:1px solid #e5ebf0;border-radius:14px;padding:12px;display:flex;flex-direction:column;min-height:265px}
.library-visual{height:112px;border-radius:10px;background:linear-gradient(125deg,#d6f3ed,#dfeef7);position:relative;display:grid;place-items:center;color:#4e9f98}
.library-visual>span{font-size:60px;font-weight:200}
.library-visual small{position:absolute;left:11px;bottom:8px;background:#ffffffda;padding:4px 9px;border-radius:5px;color:#587583;font-size:10px;font-weight:700}
.library-item h3{font-size:14px;margin:13px 0 3px;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.library-item p{font-size:11px;color:#96a7b2;margin:0 0 14px}
.library-actions{display:flex;align-items:center;gap:7px;margin-top:auto}
.library-actions .primary-button{flex:1;font-size:12px;padding:9px}
.library-delete{height:34px;width:34px;background:#fff;border:1px solid #e2e7e9;border-radius:9px;color:#b27780;padding:8px}
.library-delete svg{height:17px;width:17px}
.dashboard-select{border:1px solid #d8e3e8;border-radius:10px;height:44px;padding:0 12px;background:#fafdfd;color:#20384b;font-weight:750;width:100%;margin:7px 0 20px}
.timetable-editor{border:1px solid #d8e3e8;border-radius:10px;padding:13px 15px;width:100%;min-height:230px;resize:vertical;margin-top:7px;line-height:1.85;font-size:13px;color:#284557}
.timetable-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:13px;flex-wrap:wrap}
.timetable-actions button{padding:10px 14px;font-size:12px;display:flex;align-items:center;gap:6px}
.timetable-hint,.dashboard-note{font-size:11px;color:#8da1b0;line-height:1.6}
.dashboard-note{margin-top:22px;display:flex;align-items:center;gap:9px}
.dashboard-note svg{width:17px;height:17px}
.score-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#fff;border:1px solid #e0e7ec;border-radius:14px;padding:15px 18px;margin-bottom:22px}
.score-toolbar>span{color:#647e8e;font-size:12px;font-weight:750}
.score-reasons{display:flex;flex-wrap:wrap;gap:7px}
.score-reason{background:#f1f5f8;border:1px solid #dae5e9;color:#537080;border-radius:99px;padding:8px 13px;font-size:12px;font-weight:700}
.score-reason.active{background:#d8f6ed;border-color:#7cdbc7;color:#117e72}
.score-toolbar .secondary-button{margin-left:auto;padding:9px 11px;font-size:12px}
.score-summary{display:flex;align-items:center;gap:8px;margin-bottom:22px;color:#728998;font-size:12px}
.score-summary strong{font-size:22px;color:#178e83}
.score-separator{width:1px;height:22px;background:#d5e0e7;margin:0 12px}
.student-score-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:16px}
.student-score-card{border:1px solid #dfe7ec;background:#fff;border-radius:15px;padding:16px;display:flex;align-items:center;gap:13px;box-shadow:0 3px 17px #1d3e5210}
.student-avatar{width:55px;height:55px;flex:0 0 55px;border-radius:16px;background:hsl(var(--avatar-hue) 70% 88%);color:hsl(var(--avatar-hue) 60% 31%);display:grid;place-items:center;font-size:26px;font-weight:850}
.student-information{flex:1;min-width:0}
.student-information h3{font-size:14px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 0 5px}
.student-information span{font-size:11px;color:#96a6b1}
.student-score-actions{display:flex;align-items:center;gap:5px}
.student-score-actions strong{font-size:20px;font-weight:850;min-width:23px;text-align:center;color:#24495b}
.student-score-actions button{width:32px;height:35px;border-radius:9px;border:1px solid #dbe7ed;background:#f6f9fa;color:#527182;font-size:20px}
.student-score-actions .score-add{background:#149e90;border-color:#149e90;color:white}
.score-notice{font-size:11px;color:#91a2ae;margin-top:30px}
.empty-class{grid-column:1/-1;border:1px dashed #bfced7;border-radius:16px;padding:38px;text-align:center;background:#fff;color:#71899a}
.empty-class h3{color:#213b4b}
.open-score-class{margin-top:10px;padding:9px 12px}
@media(max-width:1100px){.dashboard-layout{grid-template-columns:1fr}.right-panel{width:278px}.screen-top-label{display:none}}
@media(max-width:1000px){.right-panel{position:relative;left:auto;right:auto;top:auto;bottom:auto;box-shadow:none}.right-panel.collapsed{width:0}.rail-panel-trigger{width:61px}.pagebar{min-height:80px}}
@media(max-width:650px){.screen-topbar{padding:0 14px}.screen-nav{padding:10px}.rail-panel-trigger{width:49px;font-size:8px}.rail-panel-trigger svg{width:18px}.dashboard-heading{align-items:flex-start;flex-direction:column}.dashboard-card{padding:16px}.library-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}.score-toolbar .secondary-button{margin-left:0}}

/* BordLab 0.4 · Classroom interaction: calm, touch-sized, no board overlays */
.classroom-screen{--class-ink:#1c3449;--class-border:#dde7ed}
.classroom-screen .classroom-main{flex:1;overflow:auto;max-width:1600px;width:100%;padding:32px clamp(22px,4.5vw,70px) 38px;margin:0 auto}
.classroom-heading{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:18px}
.classroom-heading h1{font-size:clamp(30px,3vw,42px);letter-spacing:-1.25px;margin:7px 0 5px;color:var(--class-ink)}
.classroom-heading p{font-size:14px;margin:0;color:#738b9c}
.classroom-badges{display:flex;gap:9px;flex-wrap:wrap}
.classroom-badges>span{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--class-border);color:#638092;border-radius:99px;padding:9px 13px;font-size:12px;font-weight:700;white-space:nowrap}
.classroom-badges strong{font-weight:850;color:#148e84;font-size:16px}
.classroom-utility{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:55px;flex-wrap:wrap;margin-bottom:20px}
.classroom-utility-right{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}
.light-action{border:1px solid #d8e4e9;background:#fff;border-radius:11px;color:#37536a;padding:10px 14px;font-size:12px;font-weight:750;min-height:42px}
.light-action:hover{background:#e8f6f3;border-color:#9dd6cd}
.light-action:disabled,.primary-button:disabled{opacity:.48;cursor:not-allowed}
.selection-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.selection-controls>span{font-size:12px;font-weight:800;color:#168f82;padding:9px 4px}
.selection-controls .primary-button{min-height:42px;padding:10px 14px;font-size:12px}
.classroom-student-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:16px}
.classroom-pupil{display:flex;flex-direction:column;align-items:center;position:relative;justify-content:center;gap:9px;min-height:205px;padding:16px 10px;border:2px solid transparent;border-radius:18px;background:white;box-shadow:0 4px 24px #1b364b09;color:#203b50;cursor:pointer;transition:border-color .13s, transform .13s}
.classroom-pupil:hover{transform:translateY(-2px);border-color:#b0ddd5}
.classroom-pupil.pupil-selected{border-color:#16ab92;background:#effaf7;box-shadow:0 0 0 3px #c8f2e8}
.classroom-pupil.pupil-absent{opacity:.48;background:#e8ecf0}
.classroom-pupil:disabled{cursor:default}
.classroom-pupil:disabled:hover{transform:none;border-color:transparent}
.pupil-avatar{display:grid;place-items:center;width:89px;height:89px;border-radius:29px;background:hsl(var(--avatar-hue) 73% 87%);color:hsl(var(--avatar-hue) 53% 34%);font-size:44px;font-weight:900;box-shadow:inset 0 -6px 15px #00000008}
.pupil-name{font-size:15px;font-weight:825;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pupil-score{font-size:11px;font-weight:760;background:#f3f7f8;color:#57788d;padding:7px 12px;border-radius:99px}
.pupil-check{position:absolute;top:12px;right:12px;width:27px;height:27px;border:2px solid #d2e0e6;background:white;border-radius:50%;font-size:15px;color:#19a48f;display:grid;place-items:center}
.pupil-selected .pupil-check{background:#16a992;color:#fff;border-color:#16a992}
.absent-caption{font-size:11px;color:#4d606e;position:absolute;top:12px;left:12px;font-weight:700}
.classroom-footer{background:#fff;border-top:1px solid #dce6eb;box-shadow:0 -4px 20px #132e3d0c;display:flex;gap:12px;justify-content:center;align-items:center;flex:0 0 81px;padding:12px 20px;z-index:2}
.classroom-footer-btn{border:1px solid #dce7e9;background:#f7f9fb;color:#28445a;border-radius:12px;min-width:170px;min-height:53px;padding:10px 22px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:12px}
.classroom-footer-btn span{font-size:21px;line-height:1}
.classroom-footer-btn.selected{background:#e3f8f1;border-color:#63c7b4;color:#147b6e}
.classroom-footer-btn:hover{background:#eaf4f4}
.classroom-overlay{position:absolute;inset:0;z-index:5;display:grid;place-items:center;background:#142a3cb5;padding:18px;backdrop-filter:blur(3px)}
.classroom-overlay.hidden{display:none}
.classroom-modal{background:white;border-radius:23px;box-shadow:0 20px 90px #001a3970;width:min(830px,100%);max-height:min(90dvh,950px);display:flex;flex-direction:column;overflow:hidden;color:var(--class-ink)}
.classroom-modal-top{display:flex;justify-content:space-between;align-items:start;gap:16px;padding:24px 30px 18px;border-bottom:1px solid #edf0f2;flex:0 0 auto}
.classroom-modal-top h2{margin:5px 0 0;font-size:26px;line-height:1.2;letter-spacing:-.6px}
.close-modal{display:grid;place-items:center;border:0;border-radius:11px;width:42px;height:42px;background:#f0f4f6;color:#607789;font-size:18px;font-weight:800}
.classroom-modal-body{overflow-y:auto;padding:22px 30px 32px}
.overlay-intro{color:#73899a;line-height:1.6;font-size:13px;margin:0 0 20px}
.feedback-goals{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}
.feedback-goal{position:relative;border:1.5px solid #dce6e9;border-radius:15px;min-height:156px;background:#fdfefe;display:flex;flex-direction:column;gap:14px;align-items:center;justify-content:center;padding:25px 12px 17px;font-size:14px;font-weight:800;color:#29465a}
.feedback-goal:hover{background:#e9faf5;border-color:#40bb9f}
.feedback-emoji{font-size:42px}
.goal-points{position:absolute;right:10px;top:10px;color:#108b66;font-size:13px;font-weight:900}
.modal-bottom{display:flex;justify-content:flex-end;gap:12px;padding-top:18px}
.classroom-settings-block{margin:24px 0;border-top:1px solid #e5edf1;padding-top:19px}
.classroom-settings-block h3,.classroom-report h3{display:flex;justify-content:space-between;align-items:center;margin:0 0 13px;font-size:16px;letter-spacing:-.3px}
.classroom-settings-block h3 span{font-size:11px;color:#728a98;background:#eff4f6;padding:5px 10px;border-radius:30px}
.edit-input{border:1px solid #cfdfe4;border-radius:9px;background:#fbfdfd;outline:none;color:#234053;padding:10px 12px;min-height:43px;font-size:14px;width:100%}
.edit-input:focus{border-color:#18a68e;box-shadow:0 0 0 3px #39bda02a}
.edit-full{display:block;max-width:480px}
.editable-row{display:flex;align-items:end;gap:10px;margin:9px 0}
.editable-row label{flex:1;min-width:0}
.editable-row label span,.attendance-top label{color:#758c9a;font-size:11px;font-weight:800;display:block;margin-bottom:5px}
.row-remove,.goal-state{background:#fff;border:1px solid #e1e8ed;color:#ad6470;border-radius:9px;padding:11px 12px;font-size:11px;font-weight:750;min-height:43px}
.goal-state{color:#796b91;min-width:70px}
.goal-state.active{color:#198b79;background:#e6f7f2;border-color:#a3d8cb}
.editable-row .emoji-field{flex:0 0 80px}
.add-inline,.inline-buttons{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:14px}
.add-inline>.edit-input{flex:1;min-width:125px}
.add-inline>.small-emoji{flex:0 0 73px;min-width:70px}
.add-inline>.primary-button{padding:12px 15px;white-space:nowrap;min-height:43px}
.settings-footnote{font-size:11px;color:#8298a6;line-height:1.5;margin:0 0 12px}
.attendance-top{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:18px}
.attendance-top .edit-input{min-width:178px}
.attendance-top>strong{border-radius:50px;background:#e4f7f1;color:#16886f;padding:12px;font-size:13px;white-space:nowrap}
.presence-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.presence-row{display:flex;align-items:center;gap:10px;border:1px solid #e1e8ee;border-radius:13px;padding:10px 12px;cursor:pointer;min-width:0}
.presence-row>span:nth-child(2){flex:1;font-size:13px;font-weight:780;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.presence-avatar{display:grid;place-items:center;border-radius:11px;width:36px;height:36px;flex:0 0 36px;background:hsl(var(--avatar-hue) 75% 88%);color:hsl(var(--avatar-hue) 53% 31%);font-size:17px;font-weight:900}
.presence-row input{width:21px;height:21px;accent-color:#109d85;cursor:pointer}
.presence-status{font-size:11px;color:#718a9a;min-width:55px}
.attendance-actions{justify-content:flex-end;margin-top:20px}
.attendance-actions button{min-height:44px;padding:11px 15px}
.report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:27px}
.report-summary>div{background:#f3f9f9;padding:15px;border:1px solid #e0eeed;border-radius:13px;display:flex;flex-direction:column;gap:8px}
.report-summary span{font-size:11px;color:#728999;line-height:1.4}
.report-summary strong{font-size:28px;color:#148b7b}
.report-row{display:grid;grid-template-columns:minmax(115px,1fr) minmax(100px,2fr) 34px;gap:11px;align-items:center;margin:11px 0}
.report-row>span{font-size:12px;font-weight:750}
.report-row>strong{text-align:right;font-size:13px}
.report-bar{height:12px;border-radius:10px;background:#ebf1f3;overflow:hidden}
.report-bar span{height:100%;display:block;background:#25b398;border-radius:10px;min-width:0}
.classroom-report h3{margin:25px 0 12px}
.report-table-wrap{overflow:auto;max-height:300px;border:1px solid #e1eaed;border-radius:12px}
.report-table{width:100%;border-collapse:collapse;min-width:445px;font-size:12px}
.report-table th{position:sticky;top:0;background:#eef4f5;text-align:left;font-size:11px;color:#567184}
.report-table th,.report-table td{padding:10px 13px;border-bottom:1px solid #edf1f3}
.widget-picker .widget-picker-name.picker-rolling{color:#229b8c}
.widget-picker .widget-picker-name.picker-revealed{color:#108b7a}
@media(max-width:780px){.classroom-heading{align-items:start;flex-direction:column}.classroom-student-grid{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:9px}.classroom-pupil{min-height:180px}.pupil-avatar{width:74px;height:74px;border-radius:24px;font-size:36px}.classroom-footer-btn{min-width:0;flex:1;padding:9px 6px;gap:5px;font-size:11px}.classroom-footer-btn span{font-size:17px}.classroom-modal-body{padding:18px}.classroom-modal-top{padding:20px}.presence-list{grid-template-columns:1fr}.classroom-utility-right{margin-left:0}.report-summary{grid-template-columns:1fr 1fr}}
.report-filter{display:flex;align-items:center;gap:14px;margin-bottom:22px;color:#7b91a1;font-size:11px;font-weight:850}
.report-filter select{max-width:270px}

/* BordLab 0.5: de toolkit zweeft voor het bord; geen layoutverschuiving. */
.center-area>.right-panel{position:absolute!important;top:71px!important;left:14px!important;right:auto!important;bottom:auto!important;width:min(448px,calc(100% - 24px))!important;height:min(580px,calc(100% - 86px));z-index:12;border:1px solid #d9e5e9;border-radius:17px;box-shadow:0 16px 56px #142f473b;background:#fff;overflow:hidden;transform:translateX(0);opacity:1;visibility:visible;pointer-events:auto;transition:transform .16s ease,opacity .16s ease,visibility .16s ease;}
.center-area>.right-panel.collapsed{width:min(448px,calc(100% - 24px))!important;transform:translateX(-14px);opacity:0;visibility:hidden;pointer-events:none;}
.right-panel .panel-top{padding:14px 17px 8px}.right-panel .panel-top h2{font-size:17px}.right-panel .panel-tabs{padding:0 16px}.right-panel .panel-content{padding:11px 13px 20px}.right-panel .panel-intro{margin:0 0 9px;font-size:11px}
.catalog-layout{display:grid;grid-template-columns:136px minmax(0,1fr);align-items:start;gap:13px}.catalog-categories{display:flex;flex-direction:column;gap:5px;background:#f0f8fa;border-radius:11px;padding:7px}.catalog-category{display:flex;align-items:center;text-align:left;gap:7px;min-height:38px;padding:7px 8px;border:0;border-radius:8px;background:transparent;font-size:11px;font-weight:650;color:#587486}.catalog-category.active{background:#d9f1ed;color:#14796f;font-weight:800}.widget-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}.catalog-item{height:77px;min-height:77px;border-radius:11px;padding:7px 3px;gap:3px;align-items:center;text-align:center;box-shadow:none}.catalog-icon{font-size:24px;margin:0}.catalog-title{font-size:10.5px;line-height:1.2}.catalog-sub{display:none}.panel-note{display:none}
.catalog-utility-stack{margin-top:6px;padding-top:7px;border-top:1px solid #d5e7eb;display:flex;flex-direction:column;gap:6px}.catalog-utility-button{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:48px;padding:8px;border:1px solid #d3e4e8;border-radius:10px;background:#fff;color:#254559;text-align:left;cursor:pointer;box-shadow:none}.catalog-utility-button:hover{border-color:#9bcfc8;background:#f7fcfb}.catalog-utility-button.is-on{border-color:#17a193;background:#e6faf6;color:#0f756a}.catalog-utility-main{display:flex;align-items:flex-start;gap:8px;min-width:0;flex:1 1 auto}.catalog-utility-emoji{font-size:16px;line-height:1;flex:0 0 auto;margin-top:1px}.catalog-utility-labels{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}.catalog-utility-labels strong{font-size:11px;line-height:1.15;font-weight:800}.catalog-utility-switch{position:relative;display:inline-flex;align-items:center;width:38px;height:22px;border-radius:999px;background:#b9c8cf;transition:background .15s}.catalog-utility-switch-knob{display:block;width:16px;height:16px;margin-left:3px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #1228;transition:transform .15s}.catalog-utility-switch.is-on{background:#13a38f}.catalog-utility-switch.is-on .catalog-utility-switch-knob{transform:translateX(16px)}.catalog-utility-button.catalog-utility-quiz{align-items:flex-start}.catalog-utility-button.catalog-utility-quiz .catalog-utility-main{align-items:flex-start}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.left-rail{position:relative}.left-rail .rail-bottom{display:flex;flex-direction:column;gap:6px}.left-rail .rail-panel-trigger{width:66px;min-height:60px;height:60px;order:0;color:#087e74}.left-rail #clearPageBtn{order:1}
/* Verwijder de grote transparante buffer rond echte widgets. */
.widget{min-width:0;min-height:0}.widget-inner{padding:9px 3px 5px;gap:5px}.widget-header{height:27px;left:0;right:0;top:0;padding:0 1px;pointer-events:none}.widget.widget-selected .widget-header{pointer-events:auto}.widget-grip{background:#fff9;border-radius:4px;line-height:17px}.widget-resize{width:25px;height:25px;right:0;bottom:0;background-color:#fff8}.widget-traffic .widget-inner{padding:0;align-items:center;justify-content:center}.widget-traffic .widget-traffic{height:96%;max-height:100%;max-width:98%;padding:min(2.3cqw,10px);gap:min(2cqh,11px);border-radius:17px}.widget-traffic .traffic-lamp{width:min(48cqw,25cqh);height:min(48cqw,25cqh)}.widget-clock .widget-inner,.widget-timer .widget-inner,.widget-dice .widget-inner{padding:4px 2px 2px}.widget-analog .widget-inner,.widget-teachclock .widget-inner{padding:2px;gap:2px}.widget-analog .analog-dial,.widget-teachclock .analog-dial{width:min(96cqw,85cqh);height:min(96cqw,85cqh)}.widget.widget-selected{outline-offset:0}
/* Tekst direct op het bord tekenen en bewerken. */
.textbox-preview{position:absolute;z-index:3;border:2px dashed #109c90;background:#c8f1e82e;pointer-events:none}
.textbox-graphic .textbox-content{width:100%;height:100%;white-space:pre-wrap;overflow-wrap:anywhere;overflow:hidden;font-weight:650;line-height:1.2;padding:0 3px;user-select:none;pointer-events:none}
.board-inline-editor{position:absolute;z-index:8;min-width:35px;min-height:35px;border:2px solid #13a393;border-radius:4px;box-shadow:0 0 0 3px #13a3932b;resize:none;overflow:auto;padding:1px 3px;background:#ffffffec;line-height:1.2;font-weight:650;touch-action:manipulation}
.text-settings{position:absolute;left:28px;bottom:40px;z-index:8;display:flex;flex-direction:column;gap:9px;width:220px;padding:13px;background:#fff;border:1px solid #cddedb;border-radius:13px;box-shadow:0 12px 35px #142e402e}.text-settings select,.text-settings input{border:1px solid #d7e4e8;border-radius:7px;background:white;color:#2c475a;height:34px;padding:3px 6px}.text-font-size{font-size:11px;display:flex;align-items:center;justify-content:space-between;gap:9px}.text-font-size input{width:73px}.text-settings .colors{display:flex;flex-wrap:wrap;gap:5px}
@media(max-width:680px){.center-area>.right-panel{top:60px!important;left:5px!important;width:calc(100% - 10px)!important}.center-area>.right-panel.collapsed{width:calc(100% - 10px)!important}.catalog-layout{grid-template-columns:100px minmax(0,1fr);gap:6px}.catalog-category{font-size:10px;padding:5px}.left-rail .rail-panel-trigger{width:49px}.text-settings{left:5px;bottom:14px}}

.widget-focuskaart .widget-inner{gap:8px;padding:8px 6px}.focuskaart-message{font-size:clamp(17px,5.5cqw,39px);font-weight:850;text-align:center;color:#0c9182}.widget-focuskaart .widget-button{font-size:clamp(10px,2cqw,14px)}


/* BordLab 0.6 — achtergronden, rail en uniforme schermnavigatie */
.board-surface.bg-grid{background-size:var(--pattern-x,3%) var(--pattern-y,5.333333%)}
.board-surface.bg-dots{background-size:var(--pattern-x,3%) var(--pattern-y,5.333333%)}
.board-surface.bg-lines{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--pattern-y,5.333333%) - 1px),#dce8f0 calc(var(--pattern-y,5.333333%) - 1px),#dce8f0 var(--pattern-y,5.333333%))}
.background-scale{display:flex;align-items:center;gap:5px;padding-left:15px;border-left:1px solid #dae3e9;white-space:nowrap}
.background-scale-label{font-size:9px;font-weight:850;letter-spacing:.9px;color:#7d92a3;margin-right:5px}
.background-scale button{height:32px;min-width:32px;padding:0;border:1px solid #d8e4e9;border-radius:8px;background:white;color:#1c817b;font-weight:800;font-size:18px;line-height:1}
.background-scale button:hover:not(:disabled){background:#e2f7f1;border-color:#87d6c8}
.background-scale output{font-size:12px;min-width:33px;text-align:center;font-weight:820;color:#365e6d;font-variant-numeric:tabular-nums}
.context-left{gap:15px}.context-tip{font-size:11px}
#boardScoreBtn{color:#327f8e}#boardScoreBtn:hover{color:#147d77}#boardScoreBtn svg{color:#e1a13c}
.brand-home{border:0;background:none;color:#fff;padding:6px 3px;border-radius:9px;cursor:pointer;font:inherit}
.brand-home:hover{background:#ffffff11}
.brand-home:focus-visible{outline:3px solid #70dace;outline-offset:3px}
.screen-topbar{padding:0 22px;gap:21px;height:72px;flex-basis:72px}
.screen-heading{display:flex;flex-direction:column;gap:3px;justify-content:center;min-width:130px}
.screen-heading-title{font-size:16px;font-weight:710;color:#fff;line-height:1.2}
.screen-topbar .title-divider{display:block}
.screen-topbar .eyebrow{line-height:1.1}
.classroom-screen .classroom-main{padding-bottom:28px}
.classroom-utility{justify-content:flex-end}
.classroom-footer{position:relative;justify-content:center;min-height:81px}
.classroom-footer-actions{display:flex;gap:12px;align-items:center;justify-content:center}
.classroom-return{position:absolute;left:clamp(12px,2vw,30px);top:50%;transform:translateY(-50%);display:flex;gap:9px;align-items:center;justify-content:center;border:1px solid #d9e4eb;background:#f4f8fa;color:#2c5362;border-radius:11px;padding:11px 15px;min-height:48px;font-weight:760;font-size:12px}
.classroom-return svg{width:17px;height:17px}
.classroom-return:hover{background:#e0f4f0;border-color:#95d4c9}
.selection-dock{flex:0 0 auto;position:relative;z-index:2;justify-content:center;padding:10px 18px;border-top:1px solid #dce9e9;background:#ecf9f5;box-shadow:0 -5px 14px #152b3a0c;min-height:63px}
.selection-dock>span{min-width:105px}
.selection-dock .light-action{background:white}
@media(max-width:1040px){.classroom-return{position:static;transform:none;margin-right:auto}.classroom-footer{justify-content:space-between}.classroom-footer-actions{gap:6px}.classroom-footer-btn{min-width:120px;padding:8px 10px}}
@media(max-width:780px){.context-bar{gap:6px;padding-inline:8px}.context-left{gap:7px}.background-scale{gap:3px;padding-left:6px}.background-scale-label{display:none}.background-scale button{min-width:26px;height:30px}.background-choice{width:29px;height:29px}.classroom-return span{display:none}.classroom-return{padding:11px}.classroom-footer-btn{min-width:0}.screen-topbar{padding-inline:14px;gap:12px}.screen-heading-title{font-size:14px}}
@media(max-height:730px){.left-rail .tool{min-height:42px;height:45px}.rail-separator{margin:3px 10px}.classroom-footer{flex-basis:73px;min-height:73px}}


/* BordLab v0.7: doorlopend bord; vaste logische 1600-units breedte houdt patronen uitgelijnd. */
.board-surround{overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;overscroll-behavior:contain;justify-content:center;align-items:flex-start;display:block;text-align:center;scrollbar-color:#c9dbdf transparent;padding-bottom:30px}
.board{margin:0 auto;max-height:none!important;aspect-ratio:auto!important;text-align:left;flex-shrink:0}
.board-surface.bg-grid{background-size:var(--pattern-step,28px) var(--pattern-step,28px)}
.board-surface.bg-dots{background-size:var(--pattern-step,28px) var(--pattern-step,28px)}
.board-surface.bg-lines{background-image:repeating-linear-gradient(to bottom,transparent 0,transparent calc(var(--pattern-step,28px) - 1px),#dce8f0 calc(var(--pattern-step,28px) - 1px),#dce8f0 var(--pattern-step,28px))}
.board-extend-actions{position:absolute;z-index:11;right:20px;bottom:38px;display:flex;flex-direction:column;align-items:flex-end;gap:5px;pointer-events:none}
.board-extend-button{pointer-events:auto;border:1px solid #7dcec3;border-radius:13px;padding:10px 13px;background:#168f85;color:white;box-shadow:0 5px 18px #093c3d33;font-weight:780;font-size:12px;display:flex;align-items:center;gap:9px}
.board-extend-button:hover{background:#0d726e}
.board-extend-button:disabled{opacity:.5;cursor:not-allowed}
.board-extend-button span{font-size:17px;font-weight:900}
.board-extent-label{padding-right:8px;font-size:10px;color:#526f7c;background:#f6f9f9eb;border-radius:5px;pointer-events:none}
.pagebar-header{width:auto;min-width:214px;flex-direction:row;align-items:center;gap:9px}
.pagebar.collapsed .pagebar-header{flex:0 0 auto;width:auto;justify-content:flex-start}
.pagebar.collapsed .page-list,.pagebar.collapsed .pagebar-actions{display:none}
.pagebar.collapsed .page-add{display:flex}
.page-add{height:37px}
/* Geen grote animatie van andere widgets; alleen bij rollen of munt opgooien. */
.widget-dice .widget-die{display:grid;place-items:center;min-height:72px;min-width:75px;transform-style:preserve-3d;perspective:500px}
.widget-dice .widget-die.dice-rolling{animation:bordlab-dice-spin .83s cubic-bezier(.18,.78,.3,1) both;filter:drop-shadow(0 9px 9px #1b8b8070)}
.widget-dice .widget-die.die-coin{background:radial-gradient(circle at 32% 25%,#fff1b8,#efbb47 67%,#bf8c25);width:min(115px,76cqw);height:min(115px,76cqw);border-radius:50%;border:6px ridge #f4d27a;box-shadow:inset 0 0 0 3px #ffffff7b,0 3px 10px #af802e40;color:#6d4b09;font-size:clamp(16px,5cqw,31px)}
.widget-dice .widget-die.die-coin.dice-rolling{animation:bordlab-coin-flip .84s cubic-bezier(.16,.75,.32,1) both}
.widget-dice .widget-button:disabled{opacity:.68;cursor:wait}
@keyframes bordlab-dice-spin{0%{transform:translateY(0) rotate(0) scale(1)}30%{transform:translateY(-31px) rotate(135deg) scale(1.12)}63%{transform:translateY(-14px) rotate(300deg) scale(.98)}86%{transform:translateY(5px) rotate(372deg) scale(1.06)}100%{transform:translateY(0) rotate(360deg) scale(1)}}
@keyframes bordlab-coin-flip{0%{transform:translateY(0) rotateY(0)}30%{transform:translateY(-30px) rotateY(430deg)}70%{transform:translateY(-12px) rotateY(960deg)}100%{transform:translateY(0) rotateY(1440deg)}}
.celebration-setting{display:flex;gap:9px;align-items:center;padding:10px 5px;font-size:13px;font-weight:650;color:#435d70}
.celebration-setting input{accent-color:#16a897;width:18px;height:18px}
.score-celebration{position:absolute;z-index:20;inset:72px 0 83px;pointer-events:none;display:grid;place-items:center;overflow:hidden}
.score-celebration.hidden{display:none}
.celebration-label{position:relative;z-index:2;background:linear-gradient(115deg,#ecfaf6,#fffae6);border:1px solid #a8d6cd;box-shadow:0 16px 40px #1b625e25;padding:16px 30px;border-radius:16px;font-size:clamp(17px,2.4vw,29px);color:#0e786f;font-weight:900;animation:bordlab-celebrate .75s ease-out both}
.confetti-bit{position:absolute;z-index:1;top:45%;left:50%;width:9px;height:15px;background:var(--shade);border-radius:2px;animation:bordlab-confetti 1.3s ease-out var(--delay) both}
@keyframes bordlab-confetti{0%{transform:translate(0,0) rotate(0);opacity:1}100%{transform:translate(var(--x),360px) rotate(var(--rot));opacity:0}}
@keyframes bordlab-celebrate{0%{transform:scale(.65);opacity:0}40%{transform:scale(1.07);opacity:1}75%{transform:scale(1);opacity:1}100%{transform:scale(1);opacity:0}}
@media (prefers-reduced-motion:reduce){.widget-dice .widget-die.dice-rolling,.widget-dice .widget-die.die-coin.dice-rolling{animation:none;opacity:.65}.celebration-label{animation:none}}
@media (max-width:650px){.pagebar-header{min-width:140px;gap:5px}.page-add{height:34px}.board-extend-actions{right:9px;bottom:24px}}
/* Laat de uitkomst én de werpknop los van elkaar zien, ook op compacte widgets. */
.widget-dice .widget-inner{gap:12px;overflow:hidden;justify-content:center;padding:22px 6px 8px}
.widget-dice .widget-die{flex:0 0 auto;min-width:70px;min-height:70px}
.widget-dice .widget-die.die-coin{width:min(100px,58cqw);height:min(100px,58cqw);min-height:0;min-width:0}
.widget-dice .widget-button{position:relative;z-index:2;flex:0 0 auto;min-height:32px;padding:7px 14px}
.widget-dice .widget-die.die-coin .coin-result{width:100%;height:100%;min-width:0;min-height:0;border:0;box-shadow:none;background:transparent;font-size:clamp(14px,5cqw,27px)}
/* In selecteermodus kunnen vingers verticaal scrollen; tekenen blijft direct. */
.board-svg.select-mode{touch-action:pan-y}
.board-svg.select-mode [data-element],.board-svg.select-mode [data-selection-handle]{touch-action:none}

/* BordLab v0.9: stabiel, breed bord met herstelbare zijruimte. */
.board-surround{padding:8px 10px 24px!important;overflow-x:auto!important;overflow-y:auto!important;scrollbar-gutter:stable;scrollbar-color:#c9dbdf transparent;scroll-behavior:auto;text-align:left}
.board{max-width:none!important;max-height:none!important;margin:0!important;min-width:0!important;width:auto;overflow:hidden!important}
.board-surface.bg-grid,.board-surface.bg-dots{background-position-x:var(--pattern-origin-x,0px)}
.widget{touch-action:none}
.widget:not(.widget-selected) .widget-inner{cursor:grab}
.widget.widget-selected .widget-inner{cursor:grab}
.widget.dragging .widget-inner{cursor:grabbing}
.widget button,.widget select,.widget input,.widget textarea{touch-action:manipulation;cursor:pointer}
.board-side-button{pointer-events:auto;background:#fff;border:1px solid #b7d5da;color:#287a7b;border-radius:9px;padding:8px 12px;font-size:11px;font-weight:760;box-shadow:0 3px 12px #12354b21}
.board-side-button.active{background:#e2f5f0;border-color:#65bfaf}
.board-extend-actions{gap:7px}

/* v3.0.10: oude zichtbaar gemarkeerde zijstroken zijn vervallen.
   De bestaande bordcoordinaten en inhoud blijven ongewijzigd. */
.board-surround,.board{overflow-anchor:none}

/* BordLab 1.0 — strakke verkeerslichten, vrij schalen, vergrendeling en analoge oefenklok */
.widget-traffic .widget-inner{padding:0!important;overflow:visible!important;align-items:stretch!important;justify-content:stretch!important;gap:0!important}
.widget-traffic .widget-traffic{
  box-sizing:border-box!important;position:relative;display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:space-evenly!important;
  width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:none!important;
  gap:0!important;padding:2.4cqh 0!important;border-radius:min(5cqw,4cqh)!important;
  background:#253b45;border:2px solid #1c313b;
}
.widget-traffic .traffic-lamp{
  box-sizing:border-box!important;display:block!important;flex:0 0 auto!important;
  width:min(73cqw,27cqh)!important;height:min(73cqw,27cqh)!important;
  min-width:0!important;min-height:0!important;aspect-ratio:1;
  border-width:3px!important;border-radius:50%!important;
}
.widget-lock{position:absolute;left:0;bottom:0;z-index:6;width:29px;height:29px;
 display:grid;place-items:center;padding:5px;background:#fffc;border:1px solid #dce8e9;
 color:#62818b;border-radius:9px;box-shadow:0 2px 7px #0b364219;cursor:pointer;touch-action:manipulation}
.widget-lock svg{width:16px;height:16px}
.widget-lock:hover,.widget-lock[aria-pressed="true"]{background:#d5f4eb;color:#0c887a;border-color:#91d4c4}
.widget:not(.widget-selected) .widget-lock{opacity:0;pointer-events:none}
.widget.widget-selected .widget-lock{opacity:1;pointer-events:auto}
.widget-locked .widget-resize{display:none}
.widget-locked .widget-inner{cursor:default!important}
.widget-locked:not(.widget-selected) .widget-lock{opacity:.67;pointer-events:auto}
.widget-teachclock .widget-inner{padding:0!important;justify-content:center!important;align-items:center!important}
.widget-teachclock .analog-dial{width:min(96cqw,96cqh)!important;height:min(96cqw,96cqh)!important;max-height:100%;max-width:100%;cursor:pointer;touch-action:none}
.widget-teachclock .analog-touch{stroke-width:39!important;pointer-events:stroke!important}
.widget-teachclock .dial-pin{pointer-events:none}
.widget-teachclock .teach-clock-controls,.widget-teachclock .teaching-time{display:none!important}
.widget.widget-traffic{padding:0!important;background:transparent!important;gap:0!important;border:0!important}
/* Bedieningsknoppen blijven alleen zichtbaar wanneer een hulpmiddel geselecteerd is. */
.widget-locked:not(.widget-selected) .widget-lock{opacity:0;pointer-events:none}

/* BordLab v1.1 — lesbibliotheek en gestructureerd weekrooster */
.library-new-tile{min-height:265px;display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center;border:2px dashed #cbdde0;border-radius:14px;background:#f5faf9;color:#237b77;font-size:14px;font-weight:830;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.library-new-tile:hover{background:#e8f7f3;border-color:#61bfae;transform:translateY(-2px)}
.library-new-tile small{color:#8ca2a9;font-size:11px;font-weight:560}
.new-tile-icon{width:69px;height:69px;display:grid;place-items:center;background:#e1f3ee;border-radius:19px;color:#29a58f;margin-bottom:8px}
.new-tile-icon svg{width:35px;height:35px;stroke-width:1.9}
.timetable-card{min-height:450px}
.timetable-home-controls{display:flex;align-items:end;gap:10px;margin-bottom:15px}
.timetable-home-controls>.field-label{flex:1;min-width:0;margin:0}
.timetable-home-controls .dashboard-select{margin:7px 0 0}
.timetable-home-controls .secondary-button{height:44px;white-space:nowrap;font-size:11px;padding:0 12px}
.home-day-rows{max-height:460px;overflow:auto;display:flex;flex-direction:column;gap:9px;padding:1px 4px 4px 0;scrollbar-width:thin}
.home-schedule-row{background:#f8fafb;border:1px solid #e1eaf0;border-radius:11px;padding:12px;display:flex;flex-direction:column;gap:7px;min-width:0}
.home-schedule-row-top{display:flex;align-items:center;gap:11px}
.home-time{font-variant-numeric:tabular-nums;color:#1c817a;font-size:11px;font-weight:820;white-space:nowrap}
.home-subject{font-size:12px;color:#263e52;font-weight:830;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-quick-field{display:flex;flex-direction:column;gap:3px;color:#8ba0a9;font-size:9px;font-weight:800;letter-spacing:.4px}
.home-quick-field input,.home-quick-field textarea{font-family:inherit;font-size:12px;letter-spacing:0;color:#2d4b5b;background:white;border:1px solid #d9e5e9;border-radius:7px;outline:0;width:100%;padding:7px 9px;font-weight:530;resize:vertical}
.home-quick-field input:focus,.home-quick-field textarea:focus{border-color:#2bad9e;box-shadow:0 0 0 2px #2bad9e22}
.home-quick-field textarea{min-height:31px;height:31px;line-height:15px}
.home-block-detail{font-size:10px;line-height:1.5;color:#718c9b;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.home-empty-schedule{padding:45px 18px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:9px;color:#708a9c}
.home-empty-schedule>span{font-size:38px}.home-empty-schedule strong{color:#345264;font-size:15px}.home-empty-schedule p{font-size:12px;line-height:1.5;max-width:265px}.home-empty-schedule button{margin-top:4px}
.timetable-screen-scroll{max-width:1650px}
.timetable-intro{display:flex;align-items:end;justify-content:space-between;margin-bottom:24px;gap:16px}
.timetable-intro h1{font-size:clamp(28px,2.6vw,39px);margin:8px 0;letter-spacing:-1.35px;color:#163349}
.timetable-intro p{margin:0;color:#8197a3;font-size:13px}
.schedule-save-status{color:#168978;background:#e4f5f0;border-radius:25px;padding:8px 12px;font-size:11px;font-weight:760;white-space:nowrap}
.timetable-builder{display:grid;grid-template-columns:220px minmax(0,1fr);align-items:start;gap:20px}
.schedule-palette,.schedule-workspace{border:1px solid #dde8eb;background:white;border-radius:17px;padding:20px;box-shadow:0 8px 29px #112c4210}
.schedule-palette{position:sticky;top:10px}
.palette-heading{font-size:11px;letter-spacing:1.15px;color:#168e86;font-weight:890}
.schedule-palette>p,.palette-note{color:#8399a6;font-size:11px;line-height:1.6}
.subject-palette{margin:15px 0;display:flex;flex-direction:column;gap:7px}
.subject-palette-item{width:100%;text-align:left;display:flex;align-items:center;gap:10px;border:1px solid #dfe9ee;background:#fff;border-radius:10px;padding:8px 9px;min-height:41px;font-weight:770;font-size:11px;color:#315166;touch-action:none;cursor:grab}
.subject-palette-item:hover{border-color:#6dc7b9;background:#f5fcfa}
.subject-palette-item:active{cursor:grabbing}
.subject-icon{width:31px;height:31px;background:var(--subject-tint,#edf4f8);display:grid;place-items:center;border-radius:8px;font-size:16px;flex-shrink:0}
.palette-plus{margin-left:auto;font-size:15px;color:#36a596}
.palette-note{border-top:1px solid #e9eff1;padding-top:12px;margin-top:12px}
.schedule-workspace{min-height:490px;min-width:0}
.schedule-dayhead{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px;gap:10px}
.schedule-dayhead h2{font-size:24px;letter-spacing:-.7px;margin:5px 0 0;color:#163449}
.schedule-dayhead>label{font-size:10px;font-weight:810;color:#718e9e;width:min(215px,40%)}
.schedule-dayhead .dashboard-select{margin:6px 0 0;height:40px}
.schedule-column-labels{display:grid;grid-template-columns:140px minmax(145px,1.28fr) minmax(150px,1.1fr) minmax(130px,1fr);gap:10px;padding:0 47px 8px;color:#899eaa;font-size:10px;font-weight:820;letter-spacing:.65px}
.schedule-builder-rows{display:flex;flex-direction:column;gap:11px;min-height:75px;border-radius:12px}
.schedule-builder-rows.schedule-drop-active{outline:2px dashed #2aab9a;outline-offset:5px;background:#f1faf7}
.schedule-empty{text-align:center;display:grid;place-items:center;border:2px dashed #dce9ea;background:#f8fcfb;border-radius:12px;min-height:130px;padding:20px;color:#8ba3aa;font-size:12px}
.schedule-block{min-width:0;border:1px solid #dbe7ea;background:#fff;border-radius:13px;overflow:hidden;box-shadow:0 3px 12px #152c4110}
.schedule-main-row{display:grid;grid-template-columns:27px 140px minmax(145px,1.28fr) minmax(150px,1.1fr) minmax(130px,1fr) 72px;gap:10px;align-items:center;padding:10px}
.schedule-drag-handle{font-size:23px;letter-spacing:-3px;color:#8caeb1;background:var(--subject-tint,#eef7f5);border:0;border-radius:8px;cursor:grab;touch-action:none;min-height:65px;padding:3px}
.schedule-time-pair,.schedule-block-subject,.schedule-block-goal,.schedule-block-material,.schedule-block-actions{display:flex;flex-direction:column;gap:5px;min-width:0}
.schedule-input{height:33px;border:1px solid #dce7eb;border-radius:7px;padding:5px 8px;background:#fff;color:#315061;font-size:11px;font-family:inherit;min-width:0;width:100%;outline:0}
.schedule-input:focus{border-color:#30b3a3;box-shadow:0 0 0 2px #21ae9b24}
.schedule-time-pair .schedule-input{font-variant-numeric:tabular-nums}
.schedule-block-subject{position:relative}.schedule-block-subject>span{position:absolute;left:9px;top:7px;z-index:1;pointer-events:none}
.schedule-block-subject select{padding-left:33px;background:var(--subject-tint,#f6faf8);font-weight:810}
.schedule-block-goal select{background:#eef7f6;color:#177e71;font-weight:800}
.schedule-block-material>span{min-height:32px;display:block;color:#78919c;font-size:11px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-detail-toggle{border:1px solid #d8e8e6;border-radius:7px;background:#f2faf8;color:#198679;font-size:10px;font-weight:800;min-height:30px;cursor:pointer}
.schedule-block-actions{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;gap:3px}
.schedule-block-actions button{background:#f7f9fa;color:#59717b;border:1px solid #e5edf0;border-radius:6px;min-width:28px;min-height:27px;cursor:pointer}
.schedule-block-actions button:disabled{opacity:.25;cursor:default}
.schedule-block-actions .schedule-remove{color:#ba6271}
.schedule-detail-panel{border-top:1px solid #e8eef0;background:#f8fbfc;padding:14px 18px 17px 47px}
.schedule-detail-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}
.schedule-detail-head strong{color:#2e5666;font-size:12px}.schedule-detail-head span{color:#8ba1a9;font-size:11px}
.schedule-material-fields{display:flex;gap:11px;flex-wrap:wrap}
.schedule-material-fields label{font-size:10px;font-weight:780;color:#6d8795;display:flex;flex:1 1 95px;max-width:170px;flex-direction:column;gap:5px}
.material-none{color:#899ba3;font-size:11px}
.schedule-notes-label{display:block;color:#6f8b98;font-size:10px;font-weight:790;margin-top:13px}
.schedule-notes-label textarea{margin-top:5px;height:auto;min-height:55px;resize:vertical;display:block}
.schedule-add-row{margin-top:12px;width:100%;min-height:49px;background:#f2faf8;border:2px dashed #b2dcd4;border-radius:10px;color:#178c7e;font-size:12px;font-weight:850;cursor:pointer}
.schedule-add-row:hover{background:#e8f6f1}
.schedule-footer{display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:#90a1ab;font-size:11px}
.schedule-drag-ghost{position:fixed;z-index:999;pointer-events:none;background:#ecfaf6;border:1px solid #6abfac;color:#147d72;border-radius:11px;padding:11px 18px;box-shadow:0 10px 30px #162f4540;font-size:12px;font-weight:860;transform:rotate(-2deg)}
.schedule-drag-ghost.hidden{display:none}
@media(max-width:1310px){.schedule-main-row{grid-template-columns:25px 125px minmax(120px,1.2fr) minmax(120px,1fr) minmax(108px,1fr) 66px;gap:6px;padding:8px}.schedule-column-labels{grid-template-columns:125px 1.2fr 1fr 1fr;gap:6px;padding-inline:40px}.timetable-builder{grid-template-columns:185px minmax(0,1fr)}.schedule-palette,.schedule-workspace{padding:15px}}
@media(max-width:1050px){.timetable-builder{grid-template-columns:1fr}.schedule-palette{position:static}.subject-palette{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.schedule-palette>p{margin-bottom:6px}}
@media(max-width:760px){.schedule-main-row{grid-template-columns:25px minmax(0,1fr) minmax(0,1fr) 66px}.schedule-time-pair{grid-column:2}.schedule-block-subject{grid-column:3}.schedule-block-goal{grid-column:2}.schedule-block-material{grid-column:3}.schedule-column-labels{display:none}.schedule-drag-handle{grid-row:span 2}.schedule-block-actions{grid-column:4;grid-row:span 2}.timetable-intro{flex-direction:column;align-items:start}.schedule-dayhead h2{font-size:19px}.timetable-home-controls{flex-wrap:wrap}.timetable-home-controls .secondary-button{width:100%}.schedule-detail-panel{padding-left:14px}}

/* BordLab v1.2 — rustigere lesblokken en vier vaste actieknoppen. */
.schedule-block-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,28px);align-items:stretch;justify-content:center;gap:4px;flex-wrap:initial;align-self:center}
.schedule-block-actions button{min-height:28px;min-width:0;width:100%;padding:0;display:grid;place-items:center;font-size:16px;line-height:1;font-weight:750}
.schedule-block-actions .schedule-detail-toggle{border:1px solid #bfe4d8;background:#e7f6f0;color:#128b74;font-size:21px;font-weight:900}
.schedule-block-actions .schedule-detail-toggle:hover{background:#cef0e2;border-color:#7bcab0}
.schedule-block-material{justify-content:center;align-self:stretch;min-height:60px}
.schedule-block-material .schedule-material-summary{min-height:0;padding:3px 0 5px;display:block;color:#78919c;font-size:11px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-free-material{background:#fff!important;font-size:11px}
.schedule-block-material .schedule-inline-notes{display:block;height:54px;min-height:46px;max-height:120px;resize:vertical;font-size:11px;line-height:1.4;padding:7px 9px;background:#fff;color:#315061}
.schedule-block-material .schedule-inline-notes::placeholder{color:#97a8b1}
.schedule-detail-panel{padding-top:12px;padding-bottom:14px}
.schedule-detail-head{margin-bottom:9px}
.schedule-material-fields{display:grid;grid-template-columns:repeat(2,minmax(105px,170px));gap:9px 12px;justify-content:start}
.schedule-material-fields label{min-width:0;max-width:none;width:100%;flex:initial}
.schedule-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,1.1fr);gap:16px;align-items:start}
.schedule-ready-column{display:flex;align-items:stretch}
.schedule-wide-field{display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:780;color:#6d8795;min-width:0}
.schedule-ready-task{width:100%;min-height:128px;resize:vertical;line-height:1.45;padding:10px 12px;background:#fff;color:#315061}
.schedule-ready-task::placeholder{color:#97a8b1}
@media(max-width:900px){.schedule-detail-grid{grid-template-columns:1fr}.schedule-ready-task{min-height:96px}}
@media(max-width:760px){.schedule-block-actions{align-self:center;grid-row:span 2}.schedule-block-material{min-height:60px}.schedule-material-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* BordLab v1.3 — ISO-weken, dagsprongen en bewerkbaar basisrooster. */
.schedule-calendar{display:flex;flex-direction:column;gap:11px;background:#fff;border:1px solid #dbe8ea;border-radius:16px;padding:15px 19px;margin:0 0 20px;box-shadow:0 5px 20px #1237490a}
.schedule-cal-primary{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.schedule-cal-week,.schedule-cal-date{display:flex;flex-direction:column;gap:3px;color:#183648;min-width:120px}
.schedule-cal-week>span{font-size:17px;font-weight:900;letter-spacing:-.35px}
.schedule-cal-date>span{font-size:16px;font-weight:850}
.schedule-cal-week small,.schedule-cal-date small{font-size:10px;color:#849caa;font-weight:650}
.schedule-cal-step{display:flex;gap:5px}
.schedule-cal-step button{width:34px;height:34px;border:1px solid #dbe8ed;border-radius:9px;background:#f7fbfa;color:#167f75;cursor:pointer;font-size:22px;line-height:1}
.schedule-cal-step button:hover{background:#e1f5ed;border-color:#72c7b7}
.schedule-cal-divider{height:31px;border-left:1px solid #dae8eb}
.schedule-today{margin-left:auto;min-height:35px;padding:7px 12px}
.schedule-cal-secondary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-top:1px solid #ebf1f2;padding-top:11px}
.schedule-mode-toggle{display:flex;gap:4px;padding:4px;border-radius:11px;background:#eef4f6;flex-shrink:0}
.schedule-mode-toggle button{border:0;border-radius:8px;background:transparent;color:#647e8b;padding:9px 13px;font-weight:790;font-size:11px;cursor:pointer}
.schedule-mode-toggle button.active{color:#0b796d;background:white;box-shadow:0 1px 6px #17384715}
.schedule-mode-hint{font-size:11px;color:#78919f;flex:1;min-width:200px;line-height:1.5}
.schedule-reset-day{border:1px solid #8ad3bf;background:#e6f8f1;color:#087c6f;font-weight:850;padding:8px 11px;border-radius:8px;cursor:pointer;font-size:11px}
.schedule-reset-day[hidden]{display:none!important}
.home-plan-date{font-size:10px;font-weight:830;color:#128b7f;background:#e7f6f0;padding:7px 9px;border-radius:8px;display:inline-block;margin-bottom:11px}
.schedule-time-pair input{font-variant-numeric:tabular-nums;font-feature-settings:'tnum';letter-spacing:.3px}
.schedule-time-pair input:invalid:not(:placeholder-shown){border-color:#d56f76}
@media(max-width:900px){.schedule-cal-divider{display:none}.schedule-today{margin-left:0}.schedule-cal-primary{gap:10px}.schedule-calendar{padding:12px}.schedule-mode-hint{flex-basis:100%}}

/* BordLab v1.4 — Rooster importeren en exporteren */
.schedule-intro-actions{display:flex;align-items:flex-end;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.schedule-backup-buttons{display:flex;gap:7px;align-items:center}
.schedule-backup-button{border:1px solid #cbdfe0;background:#fff;color:#256b6f;border-radius:9px;padding:9px 13px;min-height:35px;font-size:11px;font-weight:820;white-space:nowrap;cursor:pointer;box-shadow:0 2px 6px #1934450a}
.schedule-backup-button:hover{border-color:#60bdaa;background:#edf9f4;color:#0b8378}
.schedule-backup-button:focus-visible{outline:3px solid #6abfb8;outline-offset:2px}
@media(max-width:760px){.schedule-intro-actions{width:100%;align-items:center;justify-content:space-between}.schedule-backup-buttons{flex-wrap:wrap}}

/* BordLab v1.5 — een rustige, consistente linker werkbalk. */
.left-rail .rail-panel-trigger,
.left-rail .rail-panel-trigger:not(.active){
  width:66px;
  min-height:50px;
  height:59px;
  padding:0;
  border:1px solid transparent;
  border-radius:13px;
  background:transparent;
  color:#64758a;
  font-size:9px;
  font-weight:710;
  gap:3px;
}
.left-rail .rail-panel-trigger svg{width:21px;height:21px}
.left-rail .rail-panel-trigger:hover{background:#f0f5f7;color:#20364b}
.left-rail .rail-panel-trigger.active{
  border-color:#c5ebe4;
  background:var(--teal-bg);
  color:#0b8e82;
}
.left-rail .rail-bottom{width:100%;padding-top:8px;align-items:center}
.left-rail #boardScoreBtn,
.left-rail #boardScoreBtn:hover{
  width:66px;
  font-size:9px;
  font-weight:710;
}
.left-rail #boardScoreBtn{background:transparent;border:1px solid transparent;color:#64758a}
.left-rail #boardScoreBtn svg{width:21px;height:21px;color:inherit}
.left-rail #boardScoreBtn:hover{background:#f0f5f7;color:#20364b}
.eraser-context{
  position:absolute;
  left:calc(100% + 8px);
  z-index:18;
  padding:5px;
  background:#fff;
  border:1px solid #dce8eb;
  border-radius:12px;
  box-shadow:0 8px 24px #172f4630;
  width:max-content;
  max-width:150px;
}
.eraser-clear{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:9px 11px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#506b7b;
  font-size:11px;
  font-weight:760;
  white-space:nowrap;
}
.eraser-clear svg{height:16px;width:16px;color:#b76e79}
.eraser-clear:hover{background:#fff0f1;color:#9f4e61}
@media(max-width:1000px){.left-rail .rail-panel-trigger,.left-rail #boardScoreBtn{width:62px}}
@media(max-width:650px){.left-rail .rail-panel-trigger,.left-rail #boardScoreBtn{width:48px;font-size:8px}.left-rail .rail-panel-trigger svg,.left-rail #boardScoreBtn svg{width:18px;height:18px}.eraser-context{left:calc(100% + 4px)}}
@media(max-height:730px){.left-rail .rail-panel-trigger{min-height:42px;height:45px}}


/* BordLab 1.6 — tekenen op hulpmiddelen, statisch dagschema, rastervast scrollen */
/* De schrijflaag ligt altijd boven de hulpmiddelen. Alleen in selecteermodus
   vallen lege delen van het transparante canvas door naar de widgets. */
#boardSvg{z-index:4;}
#boardSvg.select-mode{pointer-events:none;}
#boardSvg.select-mode [data-element]{pointer-events:visiblePainted;}
#boardSvg.select-mode [data-selection-handle]{pointer-events:all;}
#boardSvg:not(.select-mode){pointer-events:auto;}
/* Cursor blijft de pen, ook wanneer die over een klok of stoplicht gaat. */
.board-draw-mode #boardSvg{cursor:crosshair;}
.widget-layer{z-index:2;}
/* Dagschema is alleen nog een weergave, zonder vinkjes of bewerkknop. */
.agenda-readonly{width:100%;display:flex;flex-direction:column;gap:4px;padding:4px 0;overflow:auto;max-height:100%}
.agenda-line{display:flex;align-items:flex-start;gap:9px;min-height:29px;padding:5px 8px;color:#2f485c;font-weight:700;font-size:clamp(11px,3cqw,18px);line-height:1.4}
.agenda-bullet{width:7px;height:7px;flex:0 0 7px;margin-top:.55em;border-radius:50%;background:#19a998;opacity:.8}
/* Rastervaste bordscroll: zelfde kleine neutrale interface als de paginaacties. */
.aligned-scroll-buttons{display:flex;gap:5px;align-items:center;padding:4px;border-radius:11px;background:#fffd;border:1px solid #bed6dc;box-shadow:0 4px 16px #14364a1a;pointer-events:auto}
.aligned-scroll-button{width:32px;height:32px;border:1px solid #d6e7e9;border-radius:8px;background:#f4faf9;color:#148e82;font-weight:850;font-size:19px;line-height:1}
.aligned-scroll-button:hover:not(:disabled){background:#e1f5f0;border-color:#76cbbb}
.aligned-scroll-caption{font-size:10px;font-weight:750;color:#758d95;padding:0 3px;white-space:nowrap}
/* De achtergrond van de smalle verkeerslichtbehuizing schaalt ongewijzigd mee. */

/* BordLab 1.7 authenticated bootstrap */
.auth-locked .app-shell,.auth-locked .app-screen{display:none!important}
.auth-screen[hidden],.account-dock[hidden],.sync-error[hidden],.auth-migration[hidden],#authSetupCodeWrap[hidden]{display:none!important}
.auth-screen{min-height:100dvh;display:flex;justify-content:center;align-items:center;padding:30px;background:radial-gradient(circle at 80% 12%,#d7f5eb 0,transparent 36%),#edf3f7}
.auth-panel{background:#fff;border:1px solid #dfebf0;border-radius:24px;padding:44px;box-shadow:0 24px 65px #153a5240;width:min(100%,465px)}
.auth-brand{display:flex;gap:12px;align-items:center;font-size:24px;font-weight:850;color:#183047;margin-bottom:40px}
.auth-brand .brand-mark{width:35px;height:35px;position:relative;display:grid;grid-template-columns:repeat(2,13px);grid-template-rows:repeat(2,13px);gap:4px;transform:rotate(-9deg)}
.auth-brand .brand-mark span{display:block;border-radius:3px;background:#42b5a8}.auth-brand .brand-mark span:nth-child(4){background:#dbe5ed}
.auth-eyebrow{color:#119b8c;letter-spacing:1.6px;font-size:11px;font-weight:850}
.auth-panel h1{color:#162f46;font-size:32px;letter-spacing:-.6px;margin:13px 0}
.auth-panel p{color:#6f8797;font-size:13px;line-height:1.65}
.auth-form{display:flex;flex-direction:column;gap:15px;margin-top:26px}
.auth-form label{display:flex;flex-direction:column;gap:7px;color:#405b6d;font-size:12px;font-weight:750}
.auth-form input{height:46px;padding:10px 13px;border:1px solid #cedfe5;border-radius:10px;background:#fbfdfe;font:inherit;color:#172e42;outline:none}
.auth-form input:focus{border-color:#20ae9e;box-shadow:0 0 0 3px #1fa9981c}
.auth-primary{background:#159d90;border:0;color:white;font-weight:800;border-radius:10px;padding:13px 17px;min-height:44px;cursor:pointer}
.auth-primary:disabled{opacity:.6}.auth-secondary{border:1px solid #cfdfe6;background:#fff;border-radius:10px;padding:12px 14px;cursor:pointer}
.auth-status{font-size:12px;color:#257e74;min-height:20px;margin-top:14px;line-height:1.5}.auth-status.error{color:#b64a56}
.auth-footnote{margin-top:18px;border-top:1px solid #e3e9ef;padding-top:16px!important;font-size:11px!important}
.auth-migration{background:#f0fbf7;border:1px solid #b8e2d8;border-radius:13px;padding:16px;margin-top:15px}.auth-migration>div{display:flex;gap:8px;flex-wrap:wrap}.auth-migration strong{font-size:14px;color:#164739}
/* v3.0.8 – compact accountmenu in het midden van de bovenbalk, nooit over het bord. */
.account-dock{position:fixed;top:16px;right:18px;left:auto;transform:none;display:block;padding:0;background:none;border:0;box-shadow:none;z-index:1800;color:#e9f4f8;font-size:12px}
.account-menu-trigger{display:grid;place-items:center;width:39px;height:39px;padding:0;border:1px solid #466078;border-radius:10px;background:#223a52;color:#d9eeef;cursor:pointer;box-shadow:none}
.account-menu-trigger:hover,.account-menu-trigger[aria-expanded="true"]{background:#34536a;border-color:#79a8b5}
.account-menu-trigger:focus-visible{outline:3px solid #56dbca;outline-offset:2px}
.account-menu{position:absolute;top:calc(100% + 10px);right:0;left:auto;transform:none;width:min(308px,calc(100vw - 22px));max-height:calc(100dvh - 84px);overflow:auto;padding:12px;background:white;border:1px solid #d8e5ea;box-shadow:0 12px 38px #142c4560;border-radius:13px;color:#244456}
.account-menu[hidden]{display:none!important}
.account-menu-heading{display:flex;flex-direction:column;gap:4px;padding:5px 7px 12px;border-bottom:1px solid #e3eef0;min-width:0}
.account-menu-eyebrow{font-size:10px;letter-spacing:.75px;font-weight:850;color:#7d96a2}
.account-user{display:block;overflow-wrap:anywhere;color:#244456;font-size:13px;font-weight:800}
.account-menu-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:10px}
.account-menu-actions button{min-width:0;min-height:38px;color:#315166;background:#f3f8fa;border:1px solid #d9e6ea;border-radius:8px;padding:7px 9px;cursor:pointer;font:inherit;font-size:11px;font-weight:700;line-height:1.25}
.account-menu-actions button:hover{background:#e2f3ef;border-color:#a7d5cb}
.account-menu-actions .account-logout{grid-column:1/-1;background:#edf2f5;color:#375367}
.account-menu-actions .account-logout:hover{background:#e2e9ee}
@media(max-height:700px){.account-dock{top:10px}}
@media(max-width:1140px){.topbar .lesson-title-wrap{max-width:clamp(112px,calc(50vw - 215px),330px)}}
@media(max-width:650px){.topbar .lesson-title-wrap{min-width:0}}

.sync-error{position:fixed;z-index:2000;top:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:15px;max-width:95vw;background:#fff4ef;border:1px solid #efb8a3;border-radius:10px;padding:11px 15px;box-shadow:0 6px 20px #2c35302c;color:#a8392e;font-size:12px}
.sync-error button{color:#8c251c;background:white;border:1px solid #e8a99b;padding:8px 11px;border-radius:8px;cursor:pointer}
.sync-failed{color:#bb4742!important}

/* BordLab v1.8 — instelbare pen-smoothing, niet voor Markeer/vormen. */
.pen-smoothing-control{padding-top:9px;border-top:1px solid #e5eff0;display:flex;flex-direction:column;gap:5px}
.pen-smoothing-control.hidden{display:none!important}
.smoothing-heading{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:740;color:#56788a}
.smoothing-heading strong{color:#168d81;font-variant-numeric:tabular-nums}
.pen-smoothing-control input[type=range]{width:100%;margin:3px 0 0;accent-color:#16a497;cursor:pointer;touch-action:pan-y}
.smoothing-ends{display:flex;justify-content:space-between;font-size:9px;color:#8b9da8}

/* BordLab 1.9 — afbeeldingen, bordkleuren en leesbare lesagenda */
.board-color-field{display:flex;gap:8px;align-items:center;border-left:1px solid #d9e3ea;padding-left:13px;color:#788da0;font-size:10px;font-weight:850;letter-spacing:.08em;white-space:nowrap}
.board-color-field input{border:1px solid #d3e3e6;border-radius:7px;width:32px;height:29px;padding:2px;cursor:pointer;background:white}
.board-surface{background-color:#fff}
.widget-header-spacer{flex:1;min-width:10px;cursor:grab}
.widget-header-spacer:active{cursor:grabbing}
.widget-grip{display:none!important}
.widget-agenda .widget-inner{padding:10px 10px 7px;justify-content:flex-start;overflow:auto;align-items:stretch}
.widget-agenda .agenda-list{width:100%;height:100%;display:flex;flex-direction:column;gap:4px;overflow-y:auto;padding:3px;scrollbar-width:thin}
.widget-agenda .agenda-line{width:100%;border:none;background:#ffffffee;border-radius:9px;text-align:left;flex:0 0 auto;display:flex;align-items:center;min-height:clamp(34px,8cqh,64px);font-size:clamp(12px,3.3cqw,29px);font-weight:740;padding:8px 10px;gap:12px;cursor:pointer}
.widget-agenda .agenda-line:hover{background:#d9f4ef}
.widget-agenda .agenda-line:focus-visible{outline:3px solid #17a38e}
.widget-agenda .agenda-bullet{flex:none}
.widget-agenda .agenda-chevron{margin-left:auto;flex:none;color:#168f85;font-size:1.15em}
.template-editor-open{width:100%;margin:14px 0 8px;font-size:12px}
.template-editor-dialog{width:min(92vw,525px)}
.template-editor-dialog .dashboard-select{margin:8px 0 17px;width:100%}
.template-editor-dialog textarea{width:100%;min-height:154px;resize:vertical;border:1px solid #dbe5e8;border-radius:10px;padding:11px 13px;font:inherit;line-height:1.55}

.schedule-ready-column .schedule-wide-field{width:100%}
.schedule-ready-column .schedule-ready-task{width:100%;min-height:122px;box-sizing:border-box}

/* BordLab 2.1 — accountregistratie voor eigen, gescheiden werkruimtes */
#authPasswordRepeatWrap[hidden],#authSwitch[hidden],#registrationAdminBtn[hidden]{display:none!important}
.auth-switch{display:flex;justify-content:center;align-items:center;gap:8px;margin:14px 0 4px;font-size:12px;color:#72889a}
.auth-switch button{background:transparent;border:0;color:#138f83;font-size:12px;font-weight:820;text-decoration:underline;text-underline-offset:3px;cursor:pointer;padding:5px}
.auth-switch button:hover{color:#08736b}
#registrationAdminBtn.registrations-enabled{background:#186f61;border-color:#3aab90;color:#fff}

/* BordLab 2.3 accountverificatie */
.account-dialog{width:min(520px,calc(100vw - 36px));border:1px solid #dce8eb;border-radius:17px;padding:25px;color:#1b2a3c;box-shadow:0 20px 70px #1a304b4d;max-height:80vh;overflow:auto}
.account-dialog::backdrop{background:#09182a91}
.account-dialog h2{margin:0 0 6px;font-size:23px}
.account-dialog p{color:#68798c;line-height:1.5;font-size:13px}
.account-dialog label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:720;margin:10px 0}
.account-dialog input{border:1px solid #d4dfe5;border-radius:8px;padding:10px}
.account-dialog .auth-primary,.account-dialog .auth-secondary{padding:10px 15px;border-radius:9px;border:1px solid #b8cfce;margin:8px 5px 0 0;font-weight:700}
.account-dialog .auth-primary{background:#118f84;color:white}
.account-dialog .auth-secondary{background:white;color:#376063}
.approval-list{display:grid;gap:8px;max-height:55vh;overflow:auto}
.approval-item{border:1px solid #e2e9ed;border-radius:10px;padding:11px;display:grid;gap:8px;font-size:13px}
.approval-item small{color:#7b8da0}
.approval-item .approval-actions{display:flex;gap:8px;flex-wrap:wrap}
.approval-item button{border:1px solid #d5e6e3;background:#e9f9f5;color:#0b7c73;padding:7px 11px;border-radius:8px;font-weight:700}
.approval-item button.deny{color:#a23c52;background:#fff3f4;border-color:#f1dadd}
#authHelpLinks{gap:12px}
#authHelpLinks button{background:transparent;border:0;color:#15978a;font-weight:750;cursor:pointer}

.auth-form label[hidden],#authPasswordWrap[hidden],#authPasswordRepeatWrap[hidden],#authHelpLinks button[hidden],.account-dock button[hidden],.auth-switch[hidden]{display:none!important}

/* BordLab 2.4 - Live quiz startpunt */
.quiz-quicklink{text-decoration:none;display:inline-flex;align-items:center;gap:6px}.quiz-dashboard-promo{display:flex;gap:18px;align-items:center;margin:22px 0 8px;background:#effbfa;border:1px solid #c7eae5;border-radius:18px;padding:19px 23px}.quiz-dashboard-icon{font-size:42px}.quiz-dashboard-promo>div:nth-child(2){flex:1}.quiz-dashboard-promo strong{font-size:18px;color:#183c49}.quiz-dashboard-promo p{margin:4px 0;color:#526f7a}.quiz-promo-btn{text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center}@media(max-width:700px){.quiz-dashboard-promo{flex-wrap:wrap}.quiz-promo-btn{width:100%}}

/* BordLab 2.5: compact text editor, persistent keywords, wheel and on-board quiz */
.text-bubble{position:absolute;z-index:9;pointer-events:auto;display:flex;align-items:flex-start;gap:4px;transform:translate(-18%,-110%)}
.text-bubble-dot{width:35px;height:35px;border-radius:50%;border:1px solid #b6d8d6;background:white;color:#0c8984;font-weight:900;font-size:25px;box-shadow:0 5px 15px #1c40504a;line-height:20px}
.text-bubble-menu{display:flex;align-items:center;gap:3px;white-space:nowrap;max-width:calc(100vw - 170px);padding:6px 8px;background:white;border:1px solid #c5dde1;border-radius:11px;box-shadow:0 8px 24px #20384c3b}
.text-bubble-menu button{background:#f7fafb;border:0;border-radius:7px;padding:5px 6px;color:#315266;font-size:12px;font-weight:800;min-width:28px;height:29px}
.text-bubble-menu button:hover,.text-bubble-menu button.active{background:#d7f3ef;color:#087e75}
.text-bubble-menu i{width:1px;height:24px;background:#d7e4e9;margin:0 3px}.text-bubble-menu output{color:#3b6671;font-size:12px;min-width:25px;text-align:center}
.text-bubble-menu select{width:104px;height:29px;min-width:0;border:1px solid #dae5e9;background:#fff;border-radius:7px;color:#27475b;font-size:11px}
.board-svg .textbox-axis-handle{fill:#fff;stroke:#11a898;stroke-width:3;cursor:ew-resize;touch-action:none}
.board-svg .textbox-axis-handle[data-selection-handle="height"]{cursor:ns-resize}
.keywords-overlay{position:absolute;z-index:5;right:25px;bottom:105px;width:clamp(190px,25vw,340px);max-height:42%;min-height:170px;background:#fefefa;border:1px solid #dce2be;border-radius:14px;box-shadow:0 10px 36px #1c35454a;display:flex;flex-direction:column;overflow:hidden;text-align:left}
.keywords-overlay header{height:39px;background:#f1f5d6;color:#43513b;padding:8px 11px;display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:820}
.keywords-overlay header button{border:0;background:transparent;font-size:21px;color:#65754d}
.keywords-overlay textarea{resize:none;flex:1;border:0;background:transparent;padding:11px 15px;min-height:128px;outline:none;font-size:17px;font-weight:680;line-height:1.6;color:#294f46}
.widget-wheel .widget-inner{overflow:visible;padding:2px 6px;gap:4px}
.wheel-disc{width:min(83cqw,64cqh);height:min(83cqw,64cqh);position:relative;margin:0 auto;flex-shrink:0}
.wheel-pointer{position:absolute;left:50%;top:-4px;transform:translate(-50%,-40%);z-index:4;color:#203849;font-size:26px;text-shadow:0 2px white}
.wheel-rotor{width:100%;height:100%;border-radius:50%;border:5px solid #edf4f5;box-shadow:0 4px 15px #182e4840;transition:transform 3.2s cubic-bezier(.13,.81,.13,1);overflow:hidden;background:#d6f4ed}
.wheel-rotor svg{display:block;width:100%;height:100%;pointer-events:none}
.wheel-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;width:15%;aspect-ratio:1;background:#f9fefa;border:4px solid #1b5d67;box-shadow:0 2px 9px #28495866}
.wheel-outcome{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#187c79;font-size:clamp(14px,5cqw,25px);font-weight:840}
.widget-wheel .wheel-source{font-size:11px;width:95%;max-width:240px;height:29px;border:1px solid #cee0e3;border-radius:7px;background:#fff}
.widget-wheel .wheel-entries{font-size:11px;min-height:43px;height:58px;max-height:95px;resize:vertical;width:95%;border:1px solid #cee0e3;border-radius:7px;padding:4px 6px}
.widget-answer .widget-inner{padding:2px 5px;overflow:visible}.widget-answer{--choice:#dc5b59}
.quiz-answer-field{display:flex;align-items:center;gap:8px;width:100%;height:100%;min-height:40px;padding:8px 10px;background:var(--choice);border-radius:13px;color:white;box-shadow:0 4px 9px #1235;font-size:clamp(13px,3cqw,27px);font-weight:800}
.quiz-answer-field label{font-size:clamp(22px,6cqw,48px);flex:0 0 auto;line-height:1}
.quiz-answer-field input{min-width:0;width:100%;height:100%;font-size:inherit;font-weight:inherit;line-height:1.2;outline:0;color:#fff;border:0;background:transparent;text-overflow:ellipsis}
.quiz-answer-field input::placeholder{color:#ffffffb9}
.quiz-answer-field input:disabled{opacity:1;color:white}
.widget-answer .answer-correct{position:absolute;right:5px;top:-18px;display:none;z-index:5;background:#fff;border-radius:7px;padding:3px 7px;color:#4b6571;border:1px solid #c8dadd;font-weight:790;font-size:11px}
.widget-answer.widget-selected .answer-correct{display:block}
.widget-answer .answer-correct.is-correct{color:#0b8677;background:#e0f8f2}
.widget-answer.quiz-revealed .quiz-answer-field{outline:5px solid #0ba07b;outline-offset:2px}
.pagebar .start-board-quiz{background:#0d9684;color:white;border-color:#0d9684;font-weight:840}
.quiz-session-bar{display:flex;align-items:center;gap:9px;border-left:1px solid #dde6ed;padding:0 10px;white-space:nowrap}
.quiz-session-bar strong{background:#153e4e;color:white;padding:8px 12px;border-radius:8px;letter-spacing:1px;font-size:15px}
.quiz-session-bar span{font-size:11px;color:#577181;max-width:230px;overflow:hidden;text-overflow:ellipsis}
.quiz-session-bar button{font-size:11px}
.quiz-join-overlay{position:absolute;top:70px;left:50%;transform:translateX(-50%);z-index:5;background:white;color:#184553;border:1px solid #afe2d9;box-shadow:0 9px 24px #193f4c38;border-radius:13px;padding:11px 20px;text-align:center;min-width:280px}
.quiz-join-overlay strong{font-size:27px;letter-spacing:5px}
.quiz-join-overlay div{font-size:12px}.quiz-join-overlay span{font-weight:850;color:#008c82}
@media(max-width:1100px){.pagebar{gap:6px;padding-left:8px;padding-right:8px}.pagebar-header{min-width:155px}.page-add{font-size:10px}.pagebar-actions{padding-left:5px}.quiz-session-bar span{display:none}.text-bubble-menu{flex-wrap:wrap;max-width:320px}}

.quiz-duration{width:54px;height:34px;font-size:12px;border:1px solid #d2e1e4;color:#33606d;border-radius:8px;padding:0 4px;background:white}

/* BordLab v2.6 — rustigere bordbediening */
.center-area>.context-bar{display:none!important}
.background-panel .context-bar{height:auto!important;display:block!important;padding:0!important;border:0!important;background:transparent!important}
.background-panel .context-left{display:flex;flex-direction:column;align-items:stretch;gap:19px}
.background-panel .background-options{display:flex;flex-wrap:wrap;gap:10px}
.background-panel .background-choice{width:46px;height:46px}
.background-panel .background-scale{border:0;padding-left:0;display:flex;justify-content:space-between}
.background-panel .background-scale-label{display:block;font-size:11px}
.background-panel .board-color-field{display:flex;justify-content:space-between;align-items:center}
.background-panel .context-tip{display:none}
.board-extend-actions{right:5px!important;top:50%!important;bottom:auto!important;transform:translateY(-50%);gap:0!important}
.aligned-scroll-buttons{flex-direction:column!important;border-radius:13px!important;gap:4px!important;padding:5px!important;background:#ffffffeb!important}
.aligned-scroll-button{width:32px!important;height:38px!important}
.board-footer{display:none!important}
.pages-collapsed .board-footer{display:flex!important;position:absolute;z-index:8;bottom:52px;right:5px;left:auto;height:22px;width:auto;pointer-events:none;padding:0 7px;background:#ffffffdd;border-radius:6px;color:#81939d}
.board-svg .selection-resize-handle{fill:#fff;stroke:#10a795;stroke-width:4;cursor:nwse-resize;pointer-events:all;touch-action:none}
.board-svg .selection-outline{stroke-width:2;stroke-dasharray:8 8}
.board-svg .textbox-axis-handle{display:none!important}

/* BordLab v2.7 — versleepbare pagina's, compacte roosterbewerker en quizvakken */
.page-thumb{position:relative;touch-action:none;cursor:grab;user-select:none;transition:border-color .1s,background-color .1s}
.page-thumb:active,.page-thumb.page-dragging{cursor:grabbing}
.page-thumb.page-dragging{opacity:.45;border-style:dashed;border-color:#149c8e;background:#ccefe7}
.page-thumb.page-drop-before::before{content:'';position:absolute;left:-8px;top:-7px;bottom:-7px;width:4px;border-radius:4px;background:#12a994;box-shadow:0 0 0 2px #ffffff}
.page-drag-handle{position:absolute;right:6px;top:5px;color:#6c949b;line-height:1;font-size:17px;font-weight:800}
.page-thumb:focus-visible{outline:3px solid #15ac9b;outline-offset:2px}

.schedule-workspace,.schedule-palette{padding:14px}
.schedule-dayhead{margin-bottom:11px}
.schedule-dayhead h2{font-size:21px}
.schedule-builder-rows{gap:6px}
.schedule-column-labels{padding-bottom:5px}
.schedule-block{border-radius:9px;box-shadow:0 1px 7px #152c4109}
.schedule-main-row{padding:6px 9px;gap:7px;grid-template-columns:25px 134px minmax(142px,1.28fr) minmax(140px,1.05fr) minmax(118px,1fr) 66px}
.schedule-drag-handle{min-height:55px;font-size:18px;border-radius:6px}
.schedule-time-pair,.schedule-block-subject,.schedule-block-goal,.schedule-block-material{gap:3px}
.schedule-time-pair{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:3px}
.schedule-time-pair .schedule-input{padding:3px 4px;font-size:10px;letter-spacing:0}
.schedule-block-subject .schedule-input,.schedule-block-goal .schedule-input{height:27px}
.schedule-block-subject>span{top:4px}
.schedule-input{height:29px;padding:4px 7px;font-size:11px}
.schedule-block-material{min-height:0;align-self:center}
.schedule-block-material .schedule-material-summary{line-height:1.25;font-size:10px;color:#7b919b;white-space:normal;max-height:2.5em;overflow:hidden}
.schedule-block-actions{grid-template-rows:repeat(2,24px);gap:3px}
.schedule-block-actions button{min-height:24px;font-size:14px}
.schedule-block-actions .schedule-detail-toggle{font-size:19px}
.schedule-detail-panel{padding:8px 12px 9px 32px;background:#f8fbfc}
.schedule-detail-head{margin-bottom:5px}
.schedule-detail-head strong{font-size:11px}
.schedule-detail-grid{grid-template-columns:minmax(0,1fr) minmax(180px,1fr);gap:12px;align-items:start}
.schedule-material-fields{gap:5px 9px;grid-template-columns:repeat(2,minmax(0,160px))}
.schedule-material-fields label{gap:3px;font-size:10px}
.schedule-material-fields .schedule-detail-freetext{grid-column:1/-1;width:100%;max-width:none}
.schedule-ready-column{display:flex;flex-direction:column;gap:4px;min-width:0}
.schedule-ready-task{height:54px;min-height:54px;padding:6px 9px;line-height:1.3;resize:vertical}
.schedule-wide-field{gap:4px}
.schedule-notes-disclosure{margin-top:6px;color:#7a919c;font-weight:750;font-size:10px}
.schedule-notes-disclosure summary{cursor:pointer;display:list-item;list-style:disclosure-closed inside;padding:2px 0}
.schedule-notes-disclosure[open] summary{list-style:disclosure-open inside}
.schedule-notes-disclosure textarea{display:block;margin-top:4px;width:100%;height:53px;min-height:34px;max-height:140px;padding:6px 8px;resize:vertical}
.schedule-add-row{min-height:36px;margin-top:8px;border-radius:9px}
.schedule-block-break .schedule-main-row{grid-template-columns:25px 134px minmax(0,1fr) 66px}
.schedule-block-break .schedule-block-actions{grid-column:4}
.schedule-block-break .schedule-block-actions button{min-height:24px}
.home-schedule-break{padding-bottom:9px!important}
.home-break-description{font-size:11px;color:#8a9eaa;margin-top:4px}

/* Antwoordvakken hebben standaard meer ruimte voor letters en minder lege hoogte. */
.widget-answer .widget-inner{padding:0 3px;overflow:visible}
.quiz-answer-field{min-height:28px;padding:3px 12px;gap:11px;border-radius:10px;font-size:clamp(18px,4.0cqw,36px);line-height:1.08}
.quiz-answer-field label{font-size:clamp(22px,4.6cqw,38px);line-height:1}
.quiz-answer-field input{line-height:1.15}
.widget-answer .widget-resize{width:19px;height:19px;border-radius:6px;opacity:.75;background-position:right 4px bottom 4px}
@media(max-width:1310px){.schedule-main-row{grid-template-columns:25px 119px minmax(114px,1.25fr) minmax(116px,1fr) minmax(103px,1fr) 64px;padding:6px}.schedule-block-break .schedule-main-row{grid-template-columns:25px 119px minmax(0,1fr) 64px}}
@media(max-width:900px){.schedule-detail-grid{grid-template-columns:1fr;gap:7px}.schedule-ready-task{min-height:47px;height:47px}}
@media(max-width:760px){.schedule-main-row{grid-template-columns:25px minmax(0,1fr) minmax(0,1fr) 64px}.schedule-block-break .schedule-main-row{grid-template-columns:25px minmax(0,1fr) 64px}.schedule-block-break .schedule-block-actions{grid-column:4}.schedule-detail-panel{padding-left:11px}.schedule-block-actions{grid-row:span 2}}
/* Overschrijf de oudere, specifiekere klaaropdracht-hoogte. */
.schedule-ready-column .schedule-ready-task{min-height:54px;height:54px}
@media(max-width:900px){.schedule-ready-column .schedule-ready-task{min-height:47px;height:47px}}

/* BordLab v2.8 – Weekrooster: sticky kolomtitels en compacte pauzes. */
.schedule-column-labels{
  position:sticky;
  top:0;
  z-index:18;
  background:#fff;
  padding-top:10px;
  padding-bottom:9px;
  margin-top:-2px;
  border-bottom:1px solid #e4eef0;
  box-shadow:0 5px 9px -9px #12344966;
}
.schedule-block-break .schedule-block-subject{
  justify-content:center;
}
.schedule-block-break .schedule-block-subject select.schedule-playground-select{
  padding-left:10px;
  background:#fff;
  font-weight:670;
  color:#2b6d62;
}
.home-playground-name{
  display:inline-block;
  padding:3px 9px;
  background:#eaf6ed;
  color:#247258;
  border-radius:7px;
  font-weight:750;
}
@media(max-width:760px){.schedule-column-labels{display:none}}

/* BordLab v2.8 – Quizknoppen verplaatst naar de linkerkolom van Hulpmiddelen. */
.center-area>.right-panel #widgetsTab{flex:1 1 auto;min-height:0}
.quiz-tools-footer{display:none!important}
.quiz-control-actions{display:flex;align-items:center;gap:5px}

/* BordLab 2.9: persoonlijke klasavatars en self-regulation check-in. */
.pupil-avatar:has(.bl-avatar){background:#e8f6f3;overflow:visible;font-size:initial}.pupil-avatar .bl-avatar{--av-size:70px}
.presence-avatar:has(.bl-avatar){background:transparent;overflow:visible}.presence-avatar .bl-avatar{--av-size:34px}
.avatar-open-btn{border:1px solid #beddd6;border-radius:10px;background:#f0faf6;color:#14655c;font-size:12px;font-weight:800;display:flex;gap:8px;align-items:center;justify-content:center;cursor:pointer;padding:4px 9px;white-space:nowrap;min-height:45px}
.avatar-open-btn .bl-avatar{--av-size:33px}
.avatar-editor-preview{display:flex;align-items:center;flex-direction:column;gap:8px;background:#f0f9f7;border-radius:18px;padding:15px 10px;margin-bottom:18px}
.avatar-editor-preview strong{font-size:21px}.avatar-editor-preview p{margin:0;color:#5d7b88;font-size:12px}
.avatar-editor h3{margin:18px 0 9px;color:#315970;font-size:15px}
.avatar-choice-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.avatar-choice{min-height:77px;border:2px solid #d9e6e9;border-radius:12px;background:#fff;color:#244e62;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;padding:6px 3px}
.avatar-choice span{font-size:30px;line-height:1}.avatar-choice small{font-size:10px;font-weight:800;line-height:1.2}.avatar-choice.active{border-color:#0ca18f;background:#e5faf5}.avatar-choice:hover{border-color:#25aa9e}
.widget-checkin .widget-inner{padding:5px 9px 8px;overflow:hidden;display:flex;align-items:stretch;justify-content:stretch;width:100%;height:calc(100% - 24px)}
.widget-checkin .widget-header{height:24px;min-height:24px}.widget-checkin .widget-header-spacer{cursor:grab}
.checkin-content{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;gap:10px;color:#224457;overflow:hidden}
.checkin-zones{flex:1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;min-height:0;align-items:stretch}
.checkin-zone{min-height:100px;background:linear-gradient(180deg,#fff,#ffffffed);border:4px solid var(--checkin-color);border-radius:9px;display:flex;flex-direction:column;gap:8px;padding:7px;overflow:auto}
.checkin-zone-name{font-weight:850;font-size:clamp(9px,1.4cqw,15px);color:var(--checkin-color);text-align:left;letter-spacing:.02em}
.checkin-zone-children{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:5px;flex:1;align-content:flex-start}
.checkin-tray{flex:0 0 auto;min-height:115px;max-height:37%;background:#f0f7fa;border:1.5px dashed #c5d9e2;border-radius:11px;padding:7px;overflow:auto}
.checkin-instruction{text-align:center;color:#607c90;font-size:clamp(11px,1.3cqw,16px);margin-bottom:7px;font-weight:650}
.checkin-children{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}
.checkin-chip{display:flex;align-items:center;gap:4px;border:1px solid #d1e2e8;border-radius:9px;background:white;box-shadow:0 2px 5px #16354414;color:#22394d;padding:3px 6px 3px 3px;font-size:clamp(9px,1.3cqw,14px);font-weight:800;cursor:grab;touch-action:none;user-select:none;max-width:100%;white-space:nowrap}
.checkin-chip .bl-avatar{--av-size:32px}.checkin-chip>span:last-child{overflow:hidden;text-overflow:ellipsis}
.checkin-chip:active{cursor:grabbing}.checkin-drag-source{opacity:.24}
.checkin-ghost{position:fixed;pointer-events:none;z-index:12000;opacity:.96;box-shadow:0 9px 23px #18405235;transform:rotate(-3deg)}
.quiz-podium-place{display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;gap:8px;min-width:160px;padding:10px;border-radius:14px;border:1px solid #d7e6e4;margin:5px;background:linear-gradient(180deg,#fff,#ecf6f4)}
.quiz-podium-place strong{font-size:21px}.quiz-podium-place .bl-avatar{--av-size:50px}.quiz-podium-place span:not(.bl-avatar):not(.bl-avatar-body):not(.bl-avatar-hat):not(.bl-avatar-accessory){font-size:14px;font-weight:800}.quiz-podium-place b{font-size:12px;color:#317d75}
@media(max-width:720px){.avatar-choice-list{grid-template-columns:repeat(3,1fr)}.editable-row{flex-wrap:wrap}.checkin-zones{gap:4px}.checkin-zone{border-width:3px;padding:3px}.checkin-chip{font-size:9px;padding:2px}.checkin-chip .bl-avatar{--av-size:23px}.checkin-tray{min-height:100px}.quiz-podium-place{padding:5px;gap:3px;min-width:110px}}
/* Podium met verschillende hoogtes en de echte leerlingavataars */
.quiz-join-overlay:has(.quiz-podium){width:min(760px,calc(100vw - 190px));max-height:79vh;overflow:auto;top:35px;padding:17px}
.quiz-podium-title{font-size:22px!important;font-weight:900;letter-spacing:.08em;margin-bottom:12px}
.quiz-podium{display:flex;justify-content:center;align-items:flex-end;gap:8px;flex-wrap:nowrap;min-height:240px}
.quiz-podium .quiz-podium-place{min-width:0;flex:1;max-width:215px;margin:0;border:none;border-radius:15px 15px 0 0;display:flex;flex-direction:column;gap:8px;background:transparent;padding:0;box-shadow:none}
.quiz-podium .quiz-podium-place-1{order:2}.quiz-podium .quiz-podium-place-2{order:1}.quiz-podium .quiz-podium-place-3{order:3}
.quiz-podium-place .quiz-podium-step{display:flex;align-items:center;justify-content:center;width:100%;color:white!important;font-size:34px!important;font-weight:950;border-radius:9px 9px 0 0;background:linear-gradient(165deg,#17afa0,#158a92);height:108px}
.quiz-podium-place-1 .quiz-podium-step{height:135px;background:linear-gradient(160deg,#e4ad32,#cb8c1b)}
.quiz-podium-place-3 .quiz-podium-step{height:81px;background:linear-gradient(160deg,#cf8f63,#a35d3e)}
.quiz-podium .quiz-podium-place .bl-avatar{--av-size:67px}
.quiz-podium-other{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin:7px 10px;font-size:13px!important;font-weight:700}
@media(max-width:760px){.quiz-join-overlay:has(.quiz-podium){width:min(94vw,660px)}.quiz-podium{min-height:180px;gap:4px}.quiz-podium-place .quiz-podium-step{height:70px;font-size:24px!important}.quiz-podium-place-1 .quiz-podium-step{height:90px}.quiz-podium-place-3 .quiz-podium-step{height:55px}.quiz-podium .quiz-podium-place .bl-avatar{--av-size:42px}}

/* BordLab v2.9.7 — compact contextmenu voor hulpmiddelen */
.widget-menu-toggle{flex:0 0 27px;width:27px;height:27px;display:grid;place-items:center;
 padding:0;border:1px solid #d9e5ec;border-radius:8px;background:#ffffffed;
 color:#466678;font-size:20px;font-weight:800;line-height:1;cursor:pointer;touch-action:manipulation}
.widget-menu-toggle:hover,.widget-menu-toggle[aria-expanded="true"]{background:#e4f1ff;border-color:#94baf0;color:#2461a8}
.widget:not(.widget-selected) .widget-menu-toggle{visibility:hidden}
.widget-header{gap:3px}
.widget-settings-spacer{flex-basis:16px;width:16px}
.widget-context-menu{position:absolute;z-index:30;left:calc(100% + 8px);top:0;
 width:133px;box-sizing:border-box;padding:7px;background:#fff;border:1px solid #d8e2ed;
 border-radius:13px;box-shadow:0 9px 29px #263a5540;display:flex;flex-direction:column;gap:6px;
 touch-action:manipulation;user-select:none}
.widget.menu-left .widget-context-menu{left:auto;right:calc(100% + 8px)}
.widget-context-main{display:grid;grid-template-columns:1fr 1fr;gap:5px}
.widget-context-big{height:51px;min-width:0;border:1px solid #dbe5f0;background:#f5f9fd;
 border-radius:9px;color:#2d526b;display:flex;flex-direction:column;align-items:center;justify-content:center;
 padding:3px 2px;gap:3px;font:700 9px/1.1 system-ui,sans-serif;cursor:pointer}
.widget-context-big svg{width:20px;height:20px}
.widget-context-big:hover,.widget-context-big[aria-pressed="true"]{background:#e0f0fd;border-color:#91b7e4;color:#165fba}
.widget-context-stack{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.widget-context-step{height:27px;width:100%;display:grid;place-items:center;padding:2px;border:1px solid #dce6f0;
 border-radius:7px;background:#fbfdff;cursor:pointer;touch-action:manipulation}
.widget-context-step:hover{background:#e7f2ff;border-color:#9cbee8}
.widget-context-step svg{width:21px;height:21px}
.widget-context-menu button:focus-visible,.widget-menu-toggle:focus-visible{outline:2px solid #2775c9;outline-offset:1px}
/* De vergrendeling zit nu in het contextmenu in plaats van los linksonder. */
.widget-lock{display:none!important}

/* BordLab v3.0.3 — rooster: twee velden per hoofd-kolom, compacte lesdetails. */
.schedule-main-row{
  grid-template-columns:25px 126px minmax(135px,1.25fr) minmax(135px,1.08fr) minmax(135px,1fr) 66px;
  gap:7px;padding:7px 9px;
}
.schedule-time-pair{display:flex;flex-direction:column;gap:4px}
.schedule-block-subject,.schedule-block-goal,.schedule-block-material{gap:4px;min-height:0;align-self:stretch;justify-content:center}
.schedule-block-material{display:flex;flex-direction:column;align-self:stretch;justify-content:center;min-height:0}
.schedule-block-material .schedule-material-input,
.schedule-block-material .schedule-inline-notes{
  display:block;box-sizing:border-box;width:100%;height:27px;min-height:27px;
  padding:4px 7px;border:1px solid #dce7eb;border-radius:7px;
  background:#fff;color:#315061;font:inherit;font-size:11px;line-height:17px;
}
.schedule-block-material .schedule-inline-notes{max-height:110px;resize:vertical;overflow:auto}
.schedule-block-material .schedule-material-input::placeholder,
.schedule-block-material .schedule-inline-notes::placeholder{color:#99aab1}
.schedule-block-break .schedule-main-row{
  grid-template-columns:25px 126px minmax(135px,1.25fr) minmax(135px,1.08fr) 66px;
}
.schedule-block-break .schedule-block-goal{grid-column:4}
.schedule-block-break .schedule-block-actions{grid-column:5}
.schedule-block-break .schedule-block-subject{justify-content:center}
.schedule-task-placeholder{display:block;min-height:27px}
.schedule-block-break .schedule-block-subject select.schedule-playground-select{height:27px}
.schedule-detail-panel{padding:8px 12px 9px 36px}
.schedule-detail-grid{
  display:grid;grid-template-columns:minmax(0,3.7fr) minmax(165px,1.25fr);
  align-items:end;gap:12px;
}
.schedule-material-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;align-items:end}
.schedule-material-fields label{max-width:none;min-width:0;width:100%;font-size:10px;gap:3px}
.schedule-detail-grid:has(>.schedule-ready-column:only-child){grid-template-columns:1fr}
.schedule-detail-grid>.schedule-ready-column:only-child{max-width:440px}
.schedule-ready-column{display:flex;flex-direction:column;justify-content:flex-end;gap:3px}
.schedule-ready-column .schedule-ready-task{
  box-sizing:border-box;width:100%;height:29px;min-height:29px;
  max-height:120px;padding:5px 8px;line-height:17px;
  resize:vertical;overflow:auto;
}
@media(max-width:1310px){
  .schedule-main-row{grid-template-columns:25px 119px minmax(115px,1.25fr) minmax(115px,1.08fr) minmax(116px,1fr) 64px;gap:6px}
  .schedule-block-break .schedule-main-row{grid-template-columns:25px 119px minmax(115px,1.25fr) minmax(115px,1.08fr) 64px}
}
@media(max-width:900px){
  .schedule-detail-grid{grid-template-columns:minmax(0,3.3fr) minmax(145px,1.25fr);gap:8px}
  .schedule-material-fields{gap:4px}
}
@media(max-width:760px){
  .schedule-main-row{grid-template-columns:25px minmax(0,1fr) minmax(0,1fr) 64px}
  .schedule-block-break .schedule-main-row{grid-template-columns:25px minmax(0,1fr) minmax(0,1fr) 64px}
  .schedule-block-break .schedule-block-goal{grid-column:2 / 4;grid-row:2}
  .schedule-block-break .schedule-block-actions{grid-column:4;grid-row:1 / 3}
  .schedule-detail-grid{grid-template-columns:1fr;gap:8px}
  .schedule-material-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .schedule-ready-column .schedule-ready-task{height:29px;min-height:29px}
}

/* v3.0.5 — het eerste borddeel past altijd in het browservenster; alleen pijl omlaag verlengt. */
#boardScroll.board-surround{overflow-y:hidden!important;overscroll-behavior-y:contain}
#boardScroll.board-surround.board-extended{overflow-y:auto!important}

/* v3.0.6 — compacte zichtbare planning en pauzenotities alleen in de roosterbewerker */
.home-schedule-row{gap:4px;padding:9px 11px}
.home-schedule-row-top{gap:8px}
.home-schedule-row .home-block-detail{line-height:1.25}
.home-schedule-row .home-subject{display:inline-flex;align-items:center;gap:4px}
.home-break-task{width:100%;box-sizing:border-box;min-height:29px;padding:5px 8px;border:1px solid #d9e5e9;border-radius:7px;background:#fff;color:#2d4b5b;font:inherit;font-size:12px;outline:none}
.home-break-task:focus{border-color:#2bad9e;box-shadow:0 0 0 2px #2bad9e22}
.home-playground-badge{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:22px;height:22px;padding:0 2px;border-radius:999px;background:#1da37c;color:#fff;font-size:9px;font-weight:900;letter-spacing:-.3px;margin-left:3px}
.schedule-block-break .schedule-main-row{grid-template-columns:25px 126px minmax(135px,1.25fr) minmax(135px,1.08fr) minmax(135px,1fr) 66px}
.schedule-block-break .schedule-block-goal{grid-column:4}
.schedule-block-break .schedule-block-material{grid-column:5}
.schedule-block-break .schedule-block-actions{grid-column:6;grid-row:1}
.schedule-break-notes .schedule-inline-notes{height:58px!important;min-height:56px!important;max-height:155px;resize:vertical;box-sizing:border-box;line-height:17px}
.schedule-block-break .schedule-remove{grid-column:2;grid-row:2}
.schedule-block-break .schedule-move[data-move-schedule="up"]{grid-column:1;grid-row:1}
.schedule-block-break .schedule-move[data-move-schedule="down"]{grid-column:2;grid-row:1}
@media(max-width:1310px){.schedule-block-break .schedule-main-row{grid-template-columns:25px 119px minmax(115px,1.25fr) minmax(115px,1.08fr) minmax(116px,1fr) 64px}}
@media(max-width:760px){.schedule-block-break .schedule-main-row{grid-template-columns:25px minmax(0,1fr) minmax(0,1fr) 64px}.schedule-block-break .schedule-block-goal{grid-column:2;grid-row:2}.schedule-block-break .schedule-block-material{grid-column:3;grid-row:2}.schedule-block-break .schedule-block-actions{grid-column:4;grid-row:1 / 3}.schedule-break-notes .schedule-inline-notes{height:54px!important}}

/* BordLab v3.0.9 — account rechts; werkbalk houdt bewust ruimte vrij. */
.topbar,.screen-topbar{padding-right:80px}
@media(max-width:650px){
  .account-dock{right:10px}
  .topbar,.screen-topbar{padding-right:62px}
}
@media(max-width:520px){
  /* Op smalle schermen blijft de terugknop bereikbaar, zonder het accounticoon te raken. */
  .screen-topbar .screen-heading,.screen-topbar .title-divider{display:none!important}
  .screen-topbar{gap:10px}
}


/* BordLab v3.0.11 — bord centreren, compacte paginastrook en herkenbare hernoemknop. */
/* Houd de horizontale scroll intact wanneer een uitgebreid bord breder is dan de viewport. */
#boardScroll .board{margin-left:auto!important;margin-right:auto!important}
#boardScroll.board-surround{padding-bottom:16px!important}
.pagebar:not(.collapsed){height:76px;min-height:76px;padding:7px 14px;gap:12px}
.pagebar:not(.collapsed) .page-list{gap:8px}
.pagebar:not(.collapsed) .page-thumb{width:116px;height:56px;padding:5px 7px;gap:2px;cursor:pointer}
.pagebar:not(.collapsed) .page-number{font-size:9px;line-height:12px}
.pagebar:not(.collapsed) .page-name{font-size:10px;line-height:13px;padding-right:17px}
.pagebar:not(.collapsed) .page-preview-lines{gap:3px;width:62%}
.pagebar:not(.collapsed) .page-preview-lines span{height:2px}
.pagebar:not(.collapsed) .page-drag-handle{top:3px;right:6px;font-size:13px}
.page-rename{position:absolute;bottom:4px;right:4px;width:23px;height:23px;border:1px solid transparent;background:transparent;color:#607e8b;border-radius:6px;display:grid;place-items:center;padding:4px;cursor:pointer;touch-action:manipulation}
.page-rename svg{width:14px;height:14px}
.page-rename:hover,.page-rename:focus-visible{color:#087b70;background:#d5f1e9;border-color:#98d8cc}
.page-thumb.active .page-rename{color:#0b887b}
@media(max-width:1000px){.pagebar:not(.collapsed){gap:7px;padding-inline:8px}.pagebar:not(.collapsed) .page-thumb{width:102px}.pagebar:not(.collapsed) .pagebar-header{min-width:140px}}

/* BordLab v3.0.12 — vaste bordgeometrie, rustige paginanavigatie. */
/* Gumopties gebruiken dezelfde verticale vormtaal als de pentools. */
.left-rail #toolStack .eraser-context{
  position:static!important;left:auto!important;top:auto!important;
  width:66px;max-width:100%;padding:3px 0 5px;margin:0;
  display:flex;align-items:center;justify-content:center;
  background:transparent;border:0;border-radius:0;box-shadow:none;
  flex:0 0 auto;z-index:auto;
}
.left-rail #toolStack .eraser-context.hidden{display:none!important}
.left-rail #toolStack .eraser-clear{
  width:65px;min-height:51px;display:flex;flex-direction:column;align-items:center;
  gap:3px;padding:7px 2px;border:1px solid #ccebe6;border-radius:12px;
  background:#e9f7f4;color:#0b8e82;font-size:9px;font-weight:710;white-space:normal;
}
.left-rail #toolStack .eraser-clear:hover{background:#d4f0e9;border-color:#9ed8cf;color:#08796e}
.left-rail #toolStack .eraser-clear svg{width:21px;height:21px;color:inherit}
@media(max-width:1000px){.left-rail #toolStack .eraser-context{width:62px}.left-rail #toolStack .eraser-clear{width:60px}}
@media(max-width:650px){.left-rail #toolStack .eraser-context{width:49px}.left-rail #toolStack .eraser-clear{width:46px;min-height:44px;font-size:8px}.left-rail #toolStack .eraser-clear svg{width:18px;height:18px}}
/* Het linker menu blijft op dezelfde plaats bij open/dicht pagina's. */
.pages-collapsed .left-rail{margin-bottom:28px}
/* De pijlen staan lager, in de vrije marge naast het bord, niet over het papier. */
.center-area>.board-extend-actions{right:10px!important;top:72%!important;bottom:auto!important;transform:translateY(-50%)!important}
.center-area>.board-extend-actions .aligned-scroll-buttons{box-shadow:0 6px 22px #14364a20!important}
/* Geen pagina-aanduiding meer over het bord zelf. */
.pages-collapsed .board-footer{display:none!important}
.collapsed-page-nav{display:none;align-items:center;gap:4px;border:1px solid #d6e8e8;background:#f1f8f7;border-radius:12px;padding:3px;flex:0 0 auto;margin-left:auto;box-shadow:0 1px 6px #1544390a}
.pagebar.collapsed .collapsed-page-nav{display:flex}
.collapsed-page-nav output{min-width:54px;text-align:center;white-space:nowrap;font-size:11px;font-weight:780;color:#386274;letter-spacing:.1px}
.collapsed-page-arrow{border:0;border-radius:9px;width:34px;height:32px;background:#fff;color:#098b7d;font-size:25px;line-height:26px;font-weight:650;display:grid;place-items:center;padding:0 0 4px}
.collapsed-page-arrow:not(:disabled):hover{background:#d8f1ea}
.pagebar.collapsed{gap:10px}
.pagebar.collapsed .pagebar-header{min-width:0}
.pagebar:not(.collapsed) .collapsed-page-nav{display:none}
/* Paginanaam typ je direct in de thumbnail, zonder los venster. */
.page-thumb:has(.page-name-input){border-color:#059c8a;background:#ecfaf7;cursor:text}
.page-name-input{display:block;width:calc(100% - 1px);height:23px;margin:-2px 0 0;padding:2px 21px 2px 3px;border:1px solid #1ba797;border-radius:5px;background:#fff;color:#213e51;font-size:11px;font-weight:720;outline:0;touch-action:auto;user-select:text;cursor:text}
.page-name-input:focus{outline:2px solid #91d9cb;outline-offset:0}
/* De miniatuur bevat nu ook een echt invoerveld. */
.page-thumb .page-name-input{flex:0 0 auto}
/* Leerlingpunten: beloningen en saldoaanpassingen. */
.reward-student-label{display:flex;flex-direction:column;gap:8px;color:#6a8192;font-size:10px;font-weight:850;letter-spacing:.9px;margin:8px 0 19px}
.reward-student-label .edit-input{width:100%;font-size:14px;letter-spacing:normal;font-weight:650;color:#24485a;padding:12px;border-radius:10px}
.reward-catalog{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:8px 0 24px}
.reward-pick{min-height:135px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:9px;padding:14px;border:1px solid #cfe9e4;background:#f2faf7;border-radius:15px;color:#2c5363;text-align:left}
.reward-pick:hover:not(:disabled){border-color:#16a797;background:#e2f5ec;transform:translateY(-1px)}
.reward-pick:disabled{opacity:.42}
.reward-gift{font-size:29px}.reward-name{font-weight:780;font-size:14px}.reward-pick strong{color:#0b897b;font-size:17px}
.reward-edit-row{display:grid!important;grid-template-columns:minmax(130px,1fr) 90px 65px 27px!important;gap:8px;align-items:end}
.reward-edit-row .reward-price-field{min-width:0}.reward-edit-row .reward-price-field input{width:100%;min-width:0}
.reward-add{display:grid!important;grid-template-columns:minmax(0,1fr) 84px auto;align-items:stretch;gap:8px}
.reward-add #newRewardPrice{width:84px;min-width:0}
.score-adjust-list{display:flex;flex-direction:column;gap:8px;margin:14px 0}
.score-adjust-row{display:grid;grid-template-columns:minmax(0,1fr) 80px auto;align-items:center;gap:8px;padding:8px 10px;background:#f5f9fa;border:1px solid #e1eaed;border-radius:11px;color:#304f62;font-size:12px;font-weight:670}
.score-adjust-row>span{overflow:hidden;text-overflow:ellipsis}.score-adjust-row strong{font-size:13px;color:#0c8d7e;text-align:center}
.score-adjust-actions{display:flex;gap:4px}.score-adjust-actions button{min-width:34px;min-height:33px;padding:5px 8px;background:white;border:1px solid #d5e5e8;border-radius:8px;color:#197e79;font-weight:800;font-size:15px}
.score-adjust-actions button:last-child{color:#9c5260;font-size:11px}.score-adjust-actions button:hover:not(:disabled){background:#ddf5ee}
.score-reset-all{color:#ab5060!important}
@media(max-width:650px){.reward-edit-row{grid-template-columns:minmax(70px,1fr) 72px 58px 25px!important;gap:3px}.reward-edit-row .edit-input{padding:5px}.score-adjust-row{grid-template-columns:minmax(0,1fr) 45px auto;padding:5px;gap:3px}.score-adjust-actions button{min-width:26px;padding:4px;font-size:12px}.reward-add{grid-template-columns:minmax(0,1fr) 65px auto}.reward-add #newRewardPrice{width:65px}}


/* v3.0.14 — het draairad behoudt zijn maat; bronkeuze zit alleen in het tandwiel. */
.widget-wheel .widget-inner{padding:23px 7px 9px;gap:7px;justify-content:center;overflow:visible}
.widget-wheel .wheel-disc{width:min(88cqw,72cqh);height:min(88cqw,72cqh)}
.widget-wheel .wheel-spin-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;width:100%}
.widget-wheel .wheel-spin-actions .widget-button{min-height:33px;flex:1 1 110px;max-width:160px;border-radius:10px;font-size:clamp(11px,3.1cqw,14px);font-weight:800;white-space:nowrap;padding:7px 9px}
.widget-wheel .wheel-spin-actions .wheel-dramatic{background:#e9f6f4;color:#0b786f;border:1px solid #b2dfd7}
.widget-wheel .wheel-spin-actions .wheel-dramatic:hover:not(:disabled){background:#d1f0e9}
.widget-wheel .wheel-spin-actions button:disabled{opacity:.48;cursor:wait}
.widget-wheel .wheel-options{width:270px;max-width:270px;gap:11px;padding:14px}
.widget-wheel .wheel-options-title{font-size:13px;color:#254958;font-weight:850}
.widget-wheel .wheel-options label{gap:7px;font-size:11px}
.widget-wheel .wheel-options select{width:100%;max-width:none}
.widget-wheel .wheel-options .wheel-entries{width:100%;max-width:100%;min-height:115px;height:140px;max-height:250px;resize:vertical;font:500 13px/1.5 inherit;background:#f7fafb;border:1px solid #d4e2e8;border-radius:9px;padding:9px 10px;color:#263d4d;cursor:text;touch-action:auto}
.widget-wheel .wheel-options-hint{font-size:11px;color:#66818d;line-height:1.45}

/* BordLab v3.0.15 — hulpmiddelcategorieën en quizknoppen vast; alleen rechter widgetcatalogus scrollt. */
.center-area>.right-panel #widgetsTab{
  display:flex;flex-direction:column;overflow:hidden;min-height:0;
}
.center-area>.right-panel #widgetsTab .panel-intro{flex:0 0 auto}
.center-area>.right-panel #widgetsTab .catalog-layout{
  flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr);align-items:stretch;
}
.center-area>.right-panel #widgetsTab .catalog-categories{
  align-self:start;max-height:100%;min-height:0;overflow-y:auto;scrollbar-width:thin;overscroll-behavior:contain;
}
.center-area>.right-panel #widgetsTab .widget-catalog{
  height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;
  overscroll-behavior:contain;scrollbar-color:#d2e1e5 transparent;scrollbar-width:thin;
  padding:0 4px 10px 0;
}
.dashboard-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.dashboard-score-link{height:43px;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
@media(max-width:760px){.dashboard-heading-actions{justify-content:flex-start}}

/* BordLab v3.0.16 — identiek objectmenu voor tekeningen en hulpmiddelen. */
.selection-actions{
  box-sizing:border-box;z-index:12;width:139px;min-width:139px;max-width:139px;
  display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:7px;
  background:#fff;border:1px solid #d8e2ed;border-radius:13px;
  box-shadow:0 9px 29px #263a5540;touch-action:manipulation;user-select:none;
}
.selection-actions .widget-context-main{display:grid;grid-template-columns:1fr 1fr;gap:5px;width:100%}
.selection-actions .widget-context-big{
  width:auto;height:51px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:1px solid #dbe5f0;border-radius:9px;background:#f5f9fd;color:#2d526b;
  padding:3px 2px;gap:3px;font:700 9px/1.1 system-ui,sans-serif;
}
.selection-actions .widget-context-big svg{height:20px;width:20px}
.selection-actions .widget-context-big:hover,.selection-actions .widget-context-big[aria-pressed="true"]{
  background:#e0f0fd;border-color:#91b7e4;color:#165fba;
}
.selection-actions .widget-context-stack{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:4px}
.selection-actions .widget-context-step{width:100%;height:27px;padding:2px;background:#fbfdff;border:1px solid #dce6f0;border-radius:7px}
.selection-actions .widget-context-step svg{height:21px;width:21px}
.selection-actions .widget-context-step:hover{background:#e7f2ff;border-color:#9cbee8}
.selection-extra{border-top:1px solid #e3ebf2;padding-top:5px;display:flex;align-items:stretch;gap:5px}
.selection-actions .selection-extra button{display:flex;flex:1;gap:4px;width:auto;height:27px;justify-content:center;align-items:center;
  padding:2px 4px;font:700 9px system-ui,sans-serif;color:#57738a;
  background:#f5f9fd;border:1px solid #dbe5f0;border-radius:7px}
.selection-actions .selection-extra button svg{width:13px;height:13px}
.selection-actions .selection-extra .selection-delete{color:#c54c5c}
.selection-actions .selection-extra .selection-delete:hover{background:#fff0f1;border-color:#efbfc8}
.board-svg .selection-locked{stroke:#4786b9;stroke-dasharray:3 6}
.shape-fill-control{padding-top:9px;border-top:1px solid #e5eff0;display:flex;flex-direction:column;gap:8px}
.shape-fill-heading{font-size:9px;font-weight:820;letter-spacing:1.1px;color:#7693a0}
.shape-fill-modes{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.shape-fill-mode{padding:6px 4px;border-radius:7px;border:1px solid #dce7ed;background:#f9fcfd;color:#59778b;font-size:11px;font-weight:750}
.shape-fill-mode.active{background:#e3f6f2;border-color:#52baa9;color:#087d70}
.shape-fill-color{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;font-weight:700;color:#58788b}
.shape-fill-color input{width:49px;height:28px;padding:2px;border:1px solid #dce6ec;background:#fff;border-radius:6px;cursor:pointer}
.shape-fill-opacity{display:grid;grid-template-columns:1fr auto;gap:3px;color:#58788b;font-size:11px;font-weight:700}
.shape-fill-opacity output{font-variant-numeric:tabular-nums;color:#138e82}
.shape-fill-opacity input{grid-column:span 2;width:100%;margin:0;accent-color:#16a497}
.shape-fill-control.no-fill .shape-fill-opacity{opacity:.55}


/* BordLab v3.0.17 — doorlopend wit gereedschapsvlak en meer bordhoogte.
   De linker kolom eindigt precies op de paginabalk; geen grijze
   tussenruimte meer wanneer de miniaturen ingeklapt zijn. */
.pages-collapsed .left-rail{margin-bottom:0}


/* BordLab v3.0.18 — zelf vakken toevoegen en compacte regel Naar huis. */
.subject-create-toggle{display:block;width:100%;margin-top:10px;border:1px dashed #8fcfc3;background:#f0faf7;color:#168b79;font-size:12px;font-weight:800;min-height:35px;cursor:pointer}
.custom-subject-form{margin-top:8px;padding:11px;background:#f9fdfb;border:1px solid #d6e9e4;border-radius:10px;display:flex;flex-direction:column;gap:9px}
.custom-subject-form[hidden]{display:none!important}
.custom-subject-form label{display:flex;flex-direction:column;gap:5px;color:#4a6c78;font-size:11px;font-weight:800}
.custom-subject-form input{width:100%;box-sizing:border-box;padding:6px 8px;border:1px solid #d2e5e4;border-radius:7px;font:inherit;font-size:13px;background:white;min-width:0}
.custom-subject-options{display:grid;grid-template-columns:1fr 85px;gap:8px}
.custom-subject-options input[type=color]{height:35px;cursor:pointer;padding:3px}
.custom-subject-actions{display:flex;gap:7px}.custom-subject-actions button{flex:1;min-width:0;padding:8px 4px;font-size:11px}
.schedule-block-home .schedule-main-row{display:grid;grid-template-columns:25px 126px minmax(135px,1fr) minmax(135px,1.2fr) 66px;gap:7px;padding:5px 9px;align-items:center;min-height:0}
.schedule-block-home .schedule-drag-handle{min-height:29px;font-size:18px}
.schedule-block-home .schedule-time-pair,.schedule-block-home .schedule-block-subject{min-height:0}
.schedule-block-home .schedule-block-subject>span{top:4px}
.schedule-block-home .schedule-block-subject select,.schedule-block-home .schedule-block-home-notes input{height:29px}
.schedule-block-home .schedule-block-home-notes{min-width:0}
.schedule-block-home .schedule-block-actions{grid-column:5;grid-template-rows:28px;display:flex;gap:3px;flex-wrap:nowrap}
.schedule-block-home .schedule-block-actions button{flex:1;height:28px;min-width:0}
.schedule-block-home .schedule-time-pair input{height:29px}
@media(max-width:1310px){.schedule-block-home .schedule-main-row{grid-template-columns:25px 119px minmax(115px,1fr) minmax(115px,1.2fr) 64px;gap:6px}}
@media(max-width:760px){.schedule-block-home .schedule-main-row{grid-template-columns:25px minmax(0,1fr) minmax(0,1fr) 64px;gap:6px}.schedule-block-home .schedule-time-pair{grid-column:2}.schedule-block-home .schedule-block-subject{grid-column:3}.schedule-block-home .schedule-block-home-notes{grid-column:2/4;grid-row:2}.schedule-block-home .schedule-block-actions{grid-column:4;grid-row:1/3;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:24px 24px}.schedule-block-home .schedule-block-actions button{height:24px}.schedule-block-home .schedule-block-actions .schedule-remove{grid-column:1/3}}

/* QR login – visual continuity with the BordLab sign-in screen */
.qr-login[hidden],.qr-password-toggle[hidden],.auth-form[hidden]{display:none!important}
.qr-login{display:flex;flex-direction:column;align-items:center;gap:9px;margin:18px 0 8px;text-align:center}
.qr-login strong{color:#163d46;font-size:15px}.qr-login p{margin:0;min-height:20px}
.qr-image-frame{border:1px solid #d6ebe9;padding:9px;border-radius:18px;background:#fff;box-shadow:0 4px 25px #153f3b12}
.qr-image-frame img{display:block;width:min(222px,55vw);height:auto;aspect-ratio:1}
.qr-verify-code{font-size:23px;letter-spacing:3px;font-weight:860;color:#097d75;background:#edf9f6;border-radius:10px;padding:5px 18px}
.qr-bottom{display:flex;gap:12px;align-items:center;justify-content:space-between;width:100%;font-size:12px;color:#6b8190}
.qr-bottom .auth-secondary{padding:7px 12px;font-size:12px}
.qr-password-toggle{background:none;border:0;color:#168d85;text-decoration:underline;cursor:pointer;padding:10px 0 4px;width:100%;font-size:12px;font-weight:750}
.auth-panel:has(.qr-login:not([hidden])){max-width:460px;padding:30px 38px}
.auth-panel:has(.qr-login:not([hidden])) .auth-brand{margin-bottom:15px}

/* BordLab 3.1.1: the sign-in page must be usable at ANY viewport height.
   The board itself remains non-scrolling; only the authentication view scrolls. */
.auth-screen{height:100dvh;min-height:0;overflow-x:hidden;overflow-y:auto;
  -webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;
  align-items:flex-start;justify-content:flex-start;flex-direction:column;
  padding:clamp(12px,3vh,30px) 14px}
.auth-screen .auth-panel{margin:auto;flex:none;max-width:100%;
  padding:clamp(18px,3vw,42px);width:min(100%,465px)}
#qrPasswordToggle{display:block;text-align:center}
@media(max-height:730px){.auth-screen .auth-brand{margin-bottom:15px}
  .auth-screen .auth-panel h1{margin:8px 0}
  .auth-screen .auth-form{margin-top:14px;gap:10px}
  .auth-screen .auth-footnote{margin-top:12px;padding-top:9px!important}}
@media(max-width:480px){.auth-screen .auth-panel{border-radius:16px;padding:20px 18px!important}}

/* BordLab NAS release – clean QR-first authentication and email-only helpers */
#authHelpLinks[hidden],#authSwitch.qr-hidden-switch,#authInfo[hidden],#qrLoginCode[hidden]{display:none!important}
.auth-screen.qr-choice-mode .auth-eyebrow,.auth-screen.qr-choice-mode #authTitle,
.auth-screen.qr-choice-mode #authInfo,.auth-screen.qr-choice-mode #authStatus:empty{display:none!important}
.auth-screen.qr-choice-mode .auth-panel{max-width:415px;padding:clamp(18px,3vw,32px)}
.auth-screen.qr-choice-mode .auth-brand{justify-content:center;margin-bottom:10px}
.auth-screen.qr-choice-mode .qr-login{margin:7px 0 4px;gap:11px}
.auth-screen.qr-choice-mode .qr-login p:empty{display:none}
.auth-screen.qr-choice-mode .qr-verify-code{font-size:17px;letter-spacing:2px;padding:5px 13px}
.auth-screen .auth-switch[hidden],.auth-screen #authHelpLinks[hidden]{display:none!important}
.auth-screen.qr-choice-mode #qrPasswordToggle{font-size:13px;text-decoration:none;
  color:#16897e;padding:13px 15px;border:1px solid #cce6e0;border-radius:11px;margin-top:16px}
.auth-screen.qr-choice-mode #qrPasswordToggle:hover{background:#ecf8f5}
.auth-screen.qr-password-mode #qrPasswordToggle{margin-top:16px}
.auth-screen.qr-password-mode .auth-brand{margin-bottom:16px}
.auth-screen.qr-password-mode #authHelpLinks{display:flex;flex-wrap:wrap;gap:7px 17px}
.auth-screen #authStatus:empty{display:none}

/* v3.1.2: no flash of the email form while the session loads. */
.qr-image-frame{width:242px;height:242px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.qr-image-frame img[hidden]{display:none!important}
@media(max-width:480px){.qr-image-frame{width:min(242px,70vw);height:auto;aspect-ratio:1}}

/* v3.1.4 - Beheerderspaneel: gebruikersbeheer */
.users-admin-dialog{width:min(900px,calc(100vw - 28px));max-height:min(88dvh,920px);padding:0;overflow:auto}
.users-admin-head{position:sticky;top:0;z-index:1;background:#fff;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:23px 25px 14px;border-bottom:1px solid #e6eaf0}
.users-admin-head p{margin:6px 0 0}
.users-admin-eyebrow{font-size:10px;font-weight:850;letter-spacing:1.4px;color:#0e867b}
.users-admin-close{flex-shrink:0;border:1px solid #d7e2e9;border-radius:9px;width:38px;height:38px;background:#f2f6f9;font-size:26px;cursor:pointer;color:#254358}
.users-admin-controls{display:flex;gap:10px;padding:18px 25px 9px}
.users-admin-controls input{flex:1;min-width:0;margin:0;min-height:43px;font-size:14px}
.users-admin-controls button{border:1px solid #d7e2e9;background:#fff;border-radius:9px;padding:9px 14px;color:#315167;font-weight:750;cursor:pointer}
.users-admin-summary{font-size:12px;color:#668095;padding:3px 25px 12px}
.users-admin-list{display:grid;gap:11px;padding:0 25px 17px;min-height:48px}
.users-admin-item{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#f9fbfc;border:1px solid #e1e9ed;border-radius:13px;padding:15px;min-width:0}
.users-admin-details{min-width:0;display:grid;gap:5px}
.users-admin-userheading{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:15px}
.users-admin-userheading strong{overflow-wrap:anywhere}
.users-admin-email{font-size:12px;color:#63798c;overflow-wrap:anywhere}
.users-admin-item small{font-size:11px;color:#7b899a}
.users-admin-chip{border-radius:999px;padding:4px 9px;font-size:10px;font-weight:800;white-space:nowrap}
.users-admin-chip.active{background:#e1f8ed;color:#16704b}
.users-admin-chip.disabled{background:#fff0ed;color:#ab5142}
.users-admin-chip.pending{background:#eef1fa;color:#576c9c}
.users-admin-test{color:#9b5e25;background:#fff2e3;border-radius:999px;padding:4px 9px;font-size:10px;font-weight:750}
.users-admin-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;max-width:350px}
.users-admin-actions button{cursor:pointer;background:white;border:1px solid #cfdee4;border-radius:9px;color:#27455b;padding:9px 12px;font-size:12px;font-weight:750;min-height:40px}
.users-admin-actions button:hover{background:#e9f7f4;border-color:#18a797}
.users-admin-actions button.users-admin-block{color:#975d26;background:#fff7ed;border-color:#f1dfcc}
.users-admin-actions button.users-admin-delete{color:#a83847;background:#fff1f2;border-color:#f0d4da}
.users-admin-history{margin:4px 25px 0;padding:15px 0;border-top:1px solid #e6eaf0}
.users-admin-history h3{font-size:14px;margin:0 0 12px;color:#263f56}
.users-admin-history-row{font-size:11px;line-height:1.55;color:#61758a;padding:5px 0;border-bottom:1px solid #f0f3f6;overflow-wrap:anywhere}
.users-admin-status{position:sticky;bottom:0;background:#f3f8f9;padding:12px 25px;font-size:13px;font-weight:700;color:#0e867b;min-height:18px}
.user-edit-dialog{width:min(480px,calc(100vw - 28px))}
.user-edit-email{padding:12px 0;margin-top:12px;border-top:1px solid #e1e9ed}
.user-edit-email p{margin:6px 0}
#userEditStatus{font-weight:700;color:#0e867b;overflow-wrap:anywhere}
@media(max-width:660px){.users-admin-head{padding:16px}.users-admin-controls{padding:14px 16px 9px}.users-admin-summary{padding:3px 16px 12px}.users-admin-list{padding:0 16px 14px}.users-admin-item{align-items:stretch;flex-direction:column;gap:12px}.users-admin-actions{justify-content:flex-start;max-width:none}.users-admin-history{margin:3px 16px 0}.users-admin-status{padding:12px 16px}.users-admin-actions button{flex-grow:1}}

/* v3.4 — persoonlijke lespagina-ontwerper */
.template-mode-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 20px;background:#e9f7f4;border-bottom:1px solid #b7e5de;flex-shrink:0;color:#143b42;z-index:5}
.template-mode-bar.hidden{display:none!important}.template-mode-bar strong{font-size:13px}.template-mode-bar>span{font-size:12px;color:#4d7480}
.template-mode-actions{display:flex;gap:9px;margin-left:auto}.template-mode-actions button{min-width:110px}
.template-editor-dialog{width:min(620px,calc(100vw - 28px));max-height:88vh;overflow:auto}.template-editor-summary{background:#e9f7f4;padding:12px;border-radius:12px;color:#36596b;font-size:12px;line-height:1.5}
.template-design-btn{width:100%;margin-top:14px;padding:14px}.template-editor-hint{font-size:12px;line-height:1.7;color:#526d7c}.template-editor-hint code{background:#ecf4f7;border-radius:4px;padding:1px 4px;color:#126d69}
.template-management-controls{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}.template-management-controls button{flex:1;min-width:180px}
@media(max-width:650px){.template-mode-bar{align-items:flex-start;gap:7px}.template-mode-actions{width:100%;justify-content:flex-end}}

/* BordLab 3.5 — didactisch eurogeld: eigen illustraties, hele set verplaatsen */
.widget-money .widget-inner{padding:8px 8px 7px;overflow:hidden;align-items:stretch;justify-content:stretch;cursor:grab}
.money-widget{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;gap:3px;overflow:hidden}
.money-tray{background:#f6fafb;border:1px solid #dbe7ea;border-radius:12px;padding:9px;max-height:49%;min-height:125px;overflow:auto;overscroll-behavior:contain}
.money-tray-label{font-size:10px;font-weight:850;letter-spacing:1px;color:#617b88;margin:4px 1px}
.money-denoms{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:6px 0}
.money-choice{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;padding:1px;cursor:grab;touch-action:none;border-radius:6px}
.money-choice:hover{outline:2px solid #18a797}
.euro-coin{display:flex;align-items:center;justify-content:center;width:clamp(33px,4.8cqw,54px);height:clamp(33px,4.8cqw,54px);border-radius:50%;border:3px solid #d6a063;box-shadow:inset 0 0 0 2px #ffffff99, inset 0 0 0 5px #9a5b2920,1px 3px 5px #21405430;background:radial-gradient(circle at 34% 26%,#fff2ca,#d99e6a 70%,#a25d31);color:#82512e;white-space:nowrap}
.euro-coin b{font-size:clamp(10px,1.2cqw,17px);text-shadow:0 1px #ffffffb9}
.euro-0-10,.euro-0-20,.euro-0-50{border-color:#b5a06a;background:radial-gradient(circle at 35% 30%,#fff4c6,#dcbd73 70%,#a88e53)}
.euro-1{border-color:#d2ba7a;background:radial-gradient(circle at 36% 30%,#fff,#c0c0c0 62%,#e9cb83 66%)}
.euro-2{border-color:#c4cbd3;background:radial-gradient(circle at 36% 30%,#ffecab,#dab55a 62%,#b6bec4 66%)}
.euro-note{position:relative;display:flex;align-items:center;gap:5px;width:clamp(86px,13cqw,160px);height:clamp(43px,6.8cqw,80px);overflow:hidden;border:2px solid #9aaab291;border-radius:3px;padding:3px 5px;box-shadow:inset 0 0 15px #ffffff99,1px 2px 5px #17354b2e;background:linear-gradient(105deg,#dee3e9,#f5f5fa 35%,#d2d8dd);color:#2d5066}
.euro-note strong{font-size:clamp(15px,3cqw,32px);font-weight:850;letter-spacing:-1px;text-shadow:0 1px #fff9;z-index:2}
.euro-note small{position:absolute;left:8px;bottom:4px;letter-spacing:2px;font-size:8px}
.euro-note-flag{position:absolute;top:4px;left:7px;font-size:11px}
.euro-arch{margin-left:auto;font-size:clamp(27px,4cqw,48px);opacity:.5}
.euro-note-5{background:linear-gradient(100deg,#ccd9d8,#eef2eb,#b9d1d5)}
.euro-note-10{background:linear-gradient(100deg,#ffb4b2,#fff2ed,#e18e80);color:#b6484c}
.euro-note-20{background:linear-gradient(100deg,#8cd5f5,#f2fafe,#60add7);color:#195c96}
.euro-note-50{background:linear-gradient(100deg,#fdc484,#fff6e0,#eeae72);color:#9a5921}
.euro-note-100{background:linear-gradient(100deg,#a9d9a4,#f1f9e6,#64af90);color:#196644}
.euro-note-200{background:linear-gradient(100deg,#ecdb6b,#fff8c5,#dbb82c);color:#816623}
.money-playfield{position:relative;flex:1;min-height:90px;border:2px dashed #c7dce3;border-radius:12px;background:#fff;overflow:hidden}
.money-field-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:80%;color:#b1bfca;text-align:center;font-size:14px;pointer-events:none}
.money-piece{position:absolute;z-index:2;display:flex;align-items:center;justify-content:center;width:max-content;max-width:25%;touch-action:none;cursor:grab;filter:drop-shadow(1px 3px 3px #27445829)}
.money-piece:active{cursor:grabbing;z-index:3}
.money-piece-remove{position:absolute;right:-5px;top:-9px;width:23px;height:23px;background:#fff;box-shadow:0 1px 5px #17354b22;border-radius:50%;border:1px solid #d8e7ec;color:#bb4141;font-size:18px;line-height:18px;opacity:0}
.money-piece:hover .money-piece-remove,.money-piece:focus-within .money-piece-remove{opacity:1}
.money-footnote{font-size:10px;color:#7d929e;margin:0;text-align:center}
.widget-money .widget-resize{z-index:8}
/* v3.6: the board pagebar is the sole host quiz editor. */
/* v3.6.1 — quizbediening volgt het compacte Nieuwe pagina-knopontwerp. */
.quiz-control-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.pagebar .quiz-control-actions .page-add{
  height:37px;
  min-height:37px;
  padding:0 10px;
  font-size:11px;
  font-weight:600;
  line-height:1;
  background:var(--teal-bg);
  color:#0e9284;
  border:1px solid #ccebe6;
  border-radius:9px;
  box-shadow:none;
}
.pagebar .quiz-control-actions .page-add:hover{background:#d4f0e9}
.pagebar .quiz-control-actions .bq-mode-button,
.pagebar .quiz-control-actions .start-board-quiz{font-weight:600}
.board-quiz-dialog{width:min(840px,92vw);max-height:90vh;border:0;border-radius:22px;box-shadow:0 20px 70px #102f4d77;padding:0;background:#fff;color:#17334b}
.board-quiz-dialog::backdrop{background:#10253863;backdrop-filter:blur(2px)}
.board-quiz-dialog form{display:flex;flex-direction:column;max-height:89vh}
.board-quiz-dialog-header{background:#13253a;color:white;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.board-quiz-dialog-header small{font-size:12px;letter-spacing:.12em;color:#8df0dc;font-weight:850}
.board-quiz-dialog-header h2{font-size:28px;margin:6px 0 0;color:white}
.board-quiz-dialog-header button{background:transparent;color:white;border:0;font-size:32px;cursor:pointer}
.board-quiz-dialog-fields{overflow-y:auto;padding:18px 24px 28px;display:grid;gap:16px}
.board-quiz-dialog-fields label{display:grid;gap:7px;font-size:14px;font-weight:760;color:#21465c}
.board-quiz-dialog-fields input:not([type=checkbox]),.board-quiz-dialog-fields textarea,.board-quiz-dialog-fields select{padding:12px;border:1px solid #bfd4df;border-radius:10px;max-width:100%;width:100%;font:inherit;color:#19334a;background:#fff}
.board-quiz-dialog-row{display:grid;grid-template-columns:1fr 1fr;gap:15px;align-items:end}
.board-quiz-dialog .bq-inline-check{display:flex;gap:9px;align-items:center;justify-content:flex-start;min-height:45px}
.bq-choice-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;margin:10px 0}
.bq-choice-row>label:first-child{display:flex;align-items:center;gap:12px}
.bq-choice-row>label:first-child>span{border-radius:9px;background:#def7f3;min-width:35px;text-align:center;padding:10px;font-weight:900}
.bq-choice-row .bq-check{display:flex;align-items:center;gap:7px}
.bq-help{font-size:13px;color:#5f8195;margin:4px 0}
.bq-fraction-fields{display:flex;gap:16px}
.bq-fraction-fields label{flex:1}
.board-quiz-dialog footer{border-top:1px solid #e5ecf0;display:flex;gap:10px;align-items:center;padding:16px 24px}
.board-quiz-dialog footer span{flex:1}
.board-quiz-dialog footer .primary-button{padding:12px 16px}
.board-quiz-dialog footer .minor-button{width:auto;height:auto;padding:10px 14px}
.board-quiz-prompt-widget{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;width:100%;height:100%;padding:12px;gap:10px;overflow:hidden}
.board-quiz-prompt-widget small{color:#0e9284;font-size:clamp(12px,1.2vw,18px);font-weight:850;letter-spacing:.12em}
.board-quiz-prompt-widget strong{color:#18354b;overflow-wrap:anywhere;font-size:clamp(15px,2.3vw,38px);line-height:1.18}
.board-quiz-prompt-widget span{color:#7294a7;font-size:13px}
.bq-board-overlay{position:absolute;inset:0;z-index:12;display:flex;align-items:center;justify-content:center;overflow:auto;background:linear-gradient(145deg,#eff8faed,#ecf6f2ef);padding:clamp(16px,2vw,38px)}
.bq-lobby,.bq-results,.bq-live-question{width:100%;height:100%;max-width:1400px;overflow:auto;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#17344e}
.bq-lobby>p:first-child,.bq-results>small,.bq-live-question>small{font-size:clamp(16px,1.5vw,25px);letter-spacing:.13em;font-weight:800;color:#0e9284;margin:0}
.bq-lobby h2{font-size:clamp(45px,5vw,100px);color:#078d83;overflow-wrap:anywhere;line-height:1.1;margin:0}
.bq-lobby>span{font-weight:800;color:#526f88;font-size:clamp(18px,1.6vw,30px)}
.bq-lobby>strong{font-size:clamp(78px,9vw,170px);letter-spacing:.1em;line-height:1.07;color:#143f94;font-variant-numeric:tabular-nums}
.bq-lobby>p:last-child{font-size:clamp(17px,1.3vw,22px);color:#536e83}
.bq-roster{width:min(1160px,100%);overflow:auto;max-height:45%;flex-shrink:1;padding:14px 10px}
.bq-roster h3{font-size:clamp(21px,2vw,34px);margin:2px 0 15px}.bq-roster h3 span{border-radius:20px;padding:3px 11px;background:#dcf3ee;color:#178778}
.bq-player-list{display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.bq-player{display:flex;align-items:center;gap:12px;font-size:clamp(16px,1.55vw,26px);font-weight:850;padding:8px 10px 8px 18px;border-radius:13px;background:#fff;border:1px solid #c9e1ec;color:#17496c;max-width:100%}
.bq-player>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bq-player button{cursor:pointer;min-width:35px;min-height:35px;border:0;border-radius:9px;background:#fce5e8;color:#b23747;font-size:28px}
.bq-results h2,.bq-live-question h2{font-size:clamp(24px,3vw,54px);max-width:1000px;line-height:1.14;overflow-wrap:anywhere;margin:5px auto 16px}
.bq-live-question>p{font-size:clamp(17px,2vw,30px);color:#54718a}
.bq-result-tools{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;font-weight:800;font-size:18px}
.bq-result-tools button{background:#127f75;color:white;border:0;border-radius:10px;font-weight:760;padding:12px 17px;font-size:16px;cursor:pointer}
.bq-cards{display:grid;grid-template-columns:repeat(var(--bq-cols,4),minmax(0,1fr));gap:16px;align-content:center;max-height:68%;overflow:auto;width:100%}
.bq-flip-card{position:relative;aspect-ratio:1.55;min-height:125px;border:0;border-radius:15px;background:linear-gradient(160deg,#117e83,#2bb0a3);color:white;cursor:pointer;overflow:hidden;box-shadow:0 5px 15px #13253a24}
.bq-card-front{display:grid;place-items:center;font-size:clamp(40px,5vw,90px);font-weight:900;height:100%}
.bq-card-back{position:absolute;inset:0;display:none;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:12px;background:white;color:#183b54;border:3px solid #34b6a4;border-radius:15px;overflow:hidden}
.bq-card-back span{overflow-wrap:anywhere;font-size:clamp(16px,2.1vw,42px);font-weight:840;line-height:1.1}
.bq-card-back.bq-fit-medium span{font-size:clamp(14px,1.7vw,30px)}
.bq-card-back.bq-fit-small span{font-size:clamp(12px,1.4vw,24px)}
.bq-card-back.bq-fit-tiny span{font-size:clamp(11px,1vw,18px)}
.bq-card-back b{font-size:20px;color:#0c9588}
.bq-open .bq-card-front{visibility:hidden}.bq-open .bq-card-back{display:flex}
.bq-numeric-list,.bq-answer-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;width:100%;max-height:65%;overflow:auto}
.bq-numeric-list>div,.bq-answer-results>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;background:#fff;border:2px solid #deecf1;border-radius:14px;font-size:clamp(15px,1.5vw,26px);overflow-wrap:anywhere}
.bq-answer-results .bq-correct,.bq-numeric-list .bq-winner{border-color:#30ae8e;background:#eaf8f3}
.bq-answer-results b,.bq-numeric-list b{color:#108d7a}
@media(max-width:950px){.bq-cards{grid-template-columns:repeat(min(2,var(--bq-cols,4)),minmax(0,1fr))}.bq-board-overlay{padding:12px}.bq-lobby>strong{font-size:72px}.bq-lobby h2{font-size:44px}}


/* BordLab v3.6.2 — dagschema op het digibord: 14 regels op ± 3/4 bordhoogte.
   Voorkom dat 8cqh-minimumhoogtes meegroeien en een interne scrollbar veroorzaken. */
.widget-agenda .widget-inner.agenda-content{
  min-height:0;
  overflow:hidden;
  padding:5px 8px 6px;
  gap:0;
  align-items:stretch;
  justify-content:flex-start;
}
.widget-agenda .agenda-list.agenda-readonly{
  width:100%;
  height:min(100%,var(--agenda-ideal-height,540px));
  min-height:0;
  max-height:100%;
  overflow:hidden;
  scrollbar-width:none;
  padding:0;
  display:grid;
  grid-template-rows:repeat(var(--agenda-count,5),minmax(0,1fr));
  gap:min(3px,0.35cqh);
  flex:0 1 auto;
  align-content:start;
}
.widget-agenda .agenda-line{
  box-sizing:border-box;
  min-height:0;
  height:100%;
  margin:0;
  padding:0 clamp(4px,1.2cqw,10px);
  gap:clamp(4px,1cqw,11px);
  align-items:center;
  flex:initial;
  line-height:1.12;
  font-size:clamp(10px,min(3.15cqw,2.7cqh),19px);
  font-weight:700;
  overflow:hidden;
  white-space:nowrap;
}
.widget-agenda .agenda-line .agenda-label{
  flex:1 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.widget-agenda .agenda-line .agenda-bullet{
  flex:0 0 7px;
  width:7px;
  height:7px;
  margin:0;
}
.widget-agenda .agenda-line .agenda-chevron{
  margin-left:0;
  flex:none;
}


/* BordLab v3.7.0 — schaalvraag en poll geïntegreerd in bordquiz. */
.bq-special-config{display:grid;gap:13px}
.bq-special-config.hidden{display:none}
.bq-advanced{border:1px solid #dbe9ed;border-radius:12px;padding:12px 14px;background:#f7fbfa}
.bq-advanced summary{font-size:14px;font-weight:650;color:#187e75;cursor:pointer}
.bq-advanced .board-quiz-dialog-row{margin-top:14px}
.bq-poll-row{display:flex!important;gap:12px;align-items:center;margin:8px 0}
.bq-poll-row span{min-width:28px;font-size:15px;color:#128e83}
.bq-poll-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);align-items:center;gap:24px;width:100%;max-height:76%;overflow:auto;padding:6px}
.bq-pie{width:100%;max-height:510px;filter:drop-shadow(0 7px 13px #12324715);overflow:visible}
.bq-poll-legend{display:grid;gap:10px;align-content:center;text-align:left}
.bq-poll-legend-item{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:10px;padding:12px 14px;border:1px solid #d9e8ed;border-radius:13px;background:#fff;font-size:clamp(14px,1.3vw,22px);overflow-wrap:anywhere}
.bq-poll-legend-item i{display:block;width:19px;height:19px;border-radius:6px}
.bq-poll-legend-item span{min-width:0}.bq-poll-legend-item strong{font-variant-numeric:tabular-nums;white-space:nowrap;color:#216b7d}
.bq-scale-result{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:1350px;overflow:auto;padding:0 clamp(22px,4vw,78px) 15px}
.bq-scale-status{color:#507887;font-weight:600;font-size:clamp(13px,1.3vw,21px)}
.bq-scale-stage{width:100%;display:flex;flex-direction:column;justify-content:flex-end;flex:1;min-height:245px;padding-top:16px}
.bq-scale-marks{position:relative;width:100%;min-height:160px;flex:none}
.bq-scale-tag{position:absolute;bottom:15px;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:89px;max-width:160px;padding:5px 9px;background:#fff;border:2px solid #aed7dd;border-radius:13px;box-shadow:0 5px 12px #173f4818;z-index:2;color:#19394d;font-size:clamp(11px,1.15vw,18px)}
.bq-scale-tag:after{content:'';position:absolute;top:calc(100% + 2px);left:calc(50% + var(--tag-offset,0px));height:24px;border-left:2px solid #18a797;opacity:.7}
.bq-scale-name{font-weight:750;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.bq-scale-animal{height:42px;display:flex;align-items:center;justify-content:center}.bq-scale-animal .bl-avatar{--av-size:42px}
.bq-scale-ruler{position:relative;flex:none;height:75px;margin-top:2px;border-bottom:7px solid #102b44}
.bq-scale-track{position:absolute;left:0;right:0;bottom:-7px;height:7px;background:linear-gradient(90deg,#102b44,#18a797,#102b44);border-radius:7px}
.bq-scale-tick{position:absolute;bottom:-1px;height:15px;width:2px;background:#16354d;transform:translateX(-50%)}
.bq-scale-tick.is-major{height:36px;width:4px;border-radius:4px}
.bq-scale-tick.is-mid{height:47px;width:5px;background:#16ad95}
.bq-scale-tick b{position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);font-size:clamp(10px,1.1vw,17px);font-weight:750;color:#335670;white-space:nowrap}
.bq-scale-tick.is-mid b{color:#008a7b}
.bq-scale-midpoint{position:absolute;left:50%;height:53px;width:5px;bottom:-3px;background:#24bd95;transform:translateX(-50%);border-radius:3px;box-shadow:0 0 0 2px white}
.bq-scale-endpoints{display:flex;justify-content:space-between;font-size:clamp(15px,1.6vw,24px);color:#114d5b;font-weight:750;margin-top:16px}
@media(max-width:920px){.bq-poll-layout{grid-template-columns:1fr;max-height:70%;gap:6px}.bq-pie{max-height:370px}.bq-poll-legend{grid-template-columns:repeat(2,minmax(0,1fr))}.bq-poll-legend-item{padding:8px;font-size:13px}.bq-scale-result{padding-inline:15px}}

/* v3.7 — BordLab openvragen: rustige kaartendeck zonder interne scrollbars. */
.bq-results:has(.bq-deck),.bq-live-cards{min-height:0;overflow:hidden;justify-content:flex-start}
.bq-results>h2{flex:0 0 auto;margin-bottom:8px}
.bq-deck-note{margin:0;color:#617889;font-size:clamp(15px,1.4vw,23px)}
.bq-deck{display:flex;flex-direction:column;gap:12px;min-height:0;width:100%;flex:1 1 auto;justify-content:center}
.bq-deck .bq-cards{display:grid;grid-template-columns:repeat(var(--bq-cols,4),minmax(0,1fr));grid-template-rows:repeat(var(--bq-rows,3),minmax(0,1fr));gap:clamp(8px,1.15vw,16px);flex:1 1 auto;min-height:0;max-height:none;overflow:hidden;align-content:stretch}
.bq-deck .bq-flip-card{height:100%;width:100%;min-height:0;aspect-ratio:auto;display:block;isolation:isolate}
.bq-deck .bq-card-front{display:grid;height:100%;place-items:center}
.bq-deck .bq-card-back{z-index:0}
.bq-combo{position:absolute;z-index:3;left:11px;top:11px;padding:5px 10px;min-width:42px;border-radius:11px;background:#f4c047;color:#23364c;font-size:clamp(16px,1.6vw,27px);font-weight:950;line-height:1.1;box-shadow:0 4px 12px #152c3c3c;border:2px solid #fff8;text-align:center;font-variant-numeric:tabular-nums}
.bq-combo-hit{animation:bq-combo-up .6s cubic-bezier(.18,.75,.27,1.35) both}
@keyframes bq-combo-up{0%{transform:scale(.72) rotate(-8deg);filter:brightness(1.45)}50%{transform:scale(1.23) rotate(5deg)}100%{transform:scale(1) rotate(0deg);filter:brightness(1)}}
.bq-deck .bq-flip-card.bq-open .bq-card-back{display:flex}
.bq-card-pager{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:20px;font-size:18px;color:#274f66}
.bq-card-pager button{border-radius:12px;border:1px solid #b9dad3;background:#e2f3ed;color:#15564e;padding:8px 15px;font-size:16px;font-weight:700;cursor:pointer}
.bq-card-pager button:disabled{opacity:.4;cursor:default}
@media(max-width:950px){.bq-deck .bq-cards{grid-template-columns:repeat(var(--bq-cols,2),minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.bq-combo-hit{animation:none}}

/* Pin-question editor preview */
.bq-pin-preview img{object-fit:contain}
.bq-pin-editor-actions .minor-button{white-space:nowrap}


/* v3.8.1 — Pinvraag dialoog en bord: op de juiste CSS-pagina geladen. */
.board-quiz-dialog:has(#bqPinConfig:not(.hidden)){width:min(1100px,96vw);max-height:94dvh}
.board-quiz-dialog:has(#bqPinConfig:not(.hidden)) form{max-height:93dvh}
.board-quiz-dialog-fields{min-height:0}
#bqPinConfig{min-width:0;display:flex;flex-direction:column;gap:14px}
#bqPinConfig.hidden{display:none!important}
#bqPinConfig .bq-help{margin:0;line-height:1.5}
.bq-pin-editor-tools{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.bq-pin-editor-tools label{display:flex!important;flex-direction:row;justify-content:space-between;align-items:center;flex:0 0 235px;font-size:13px}
.bq-pin-editor-tools input[type=range]{flex:1;min-width:170px;accent-color:#148c84;padding:0}
.bq-pin-preview{border:1px solid #d4e2e8;border-radius:13px;padding:14px;background:#f7fafb;display:flex;align-items:center;justify-content:center;min-height:110px;max-height:none;overflow:auto;width:100%;min-width:0}
.bq-pin-empty{font-size:15px;color:#35586a;margin:12px;line-height:1.5}
.bq-pin-editor-image{position:relative;flex:0 1 auto;width:min(100%,calc(var(--bq-pin-height,405px) * var(--pin-aspect,1.6)));aspect-ratio:var(--pin-aspect,1.6);height:auto;max-width:100%;max-height:none;line-height:0;overflow:hidden;border-radius:8px;box-shadow:0 5px 18px #162b3f22}
.bq-pin-editor-image img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:fill;cursor:crosshair;user-select:none}
.bq-pin-edit-marker{position:absolute;z-index:1;display:grid;place-items:center;width:30px;height:30px;border-radius:55% 55% 55% 0;background:#067d70;border:3px solid white;color:white;font:bold 14px/1 sans-serif;box-shadow:0 2px 9px #092e3d88;transform:translate(-50%,-100%) rotate(-45deg);cursor:pointer;line-height:1}
.bq-pin-edit-marker>span{display:block;transform:rotate(45deg);font:800 14px/1 sans-serif;pointer-events:none}
.bq-pin-edit-marker.bq-pin-edit-low{transform:translate(-50%,0) rotate(135deg)}
.bq-pin-edit-marker.bq-pin-edit-low>span{transform:rotate(-135deg)}
.bq-pin-editor-actions{display:flex;align-items:center;justify-content:flex-start;gap:12px;flex-wrap:wrap;min-height:46px}
.bq-pin-editor-actions .minor-button{white-space:nowrap;width:auto!important;height:auto!important;min-width:0;flex:0 0 auto;padding:9px 13px}
.bq-pin-editor-actions #bqPinTargetCount{font-size:14px;font-weight:750;color:#196458}
.bq-pin-editor-actions small{font-size:12px;color:#5f8292}
.bq-pin-layout{width:100%;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;gap:9px;min-height:0;min-width:0}
.bq-pin-result{justify-content:flex-start!important;overflow:hidden;min-height:0}
.bq-pin-result>h2{font-size:clamp(23px,2.6vw,43px);margin:4px auto 8px;flex:0 0 auto}
.bq-pin-image{position:relative;width:min(100%,calc(53dvh * var(--pin-aspect,1.6)));aspect-ratio:var(--pin-aspect,1.6);height:auto;max-width:100%;max-height:53dvh;flex:0 1 auto;overflow:hidden;border-radius:14px;background:#e6ecf0;box-shadow:0 6px 22px #0a203322;min-height:0}
.bq-pin-image img{display:block;width:100%;height:100%;object-fit:fill;user-select:none}
.bq-pin-image svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:auto;overflow:hidden}
.bq-pin-dot{cursor:pointer}
.bq-pin-dot:focus-visible{outline:none;filter:drop-shadow(0 0 9px #f17a22)}
.bq-pin-toolbar{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;flex:0 0 auto}
.bq-pin-toolbar button{background:#e0f6f1;color:#125f54;border:1px solid #8dc9bd;padding:9px 15px;border-radius:10px;font-weight:700;cursor:pointer}
.bq-pin-toolbar span,.bq-pin-summary{font-size:14px;color:#45677d}
.bq-pin-summary{text-align:center;display:grid;gap:6px;flex:0 0 auto}
.bq-pin-selected{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.bq-pin-explanation{padding:12px 20px;border:1px solid #9cdbca;background:#eaf9f4;border-radius:13px;text-align:left;max-width:950px;margin:auto;flex:0 0 auto}
.bq-pin-explanation p{white-space:pre-wrap;margin:7px 0 0}
@media(max-width:650px){.board-quiz-dialog:has(#bqPinConfig:not(.hidden)){width:98vw}.board-quiz-dialog-fields{padding:14px}.bq-pin-editor-actions small{flex-basis:100%}}

/* 3.8.2 — goedkeuringszone getallenlijn, duidelijk gescheiden instellingen. */
.bq-scale-score-config{display:grid;gap:12px;padding:16px;border:1px solid #d9e8ec;border-radius:13px;background:#f7fbfc}
.bq-scale-score-config .bq-help{margin:0}
.bq-scale-good-zone{position:absolute;bottom:0;height:65px;background:#10a78623;border:2px solid #10a786;z-index:0;pointer-events:none;box-sizing:border-box;min-width:3px}
.bq-scale-good-zone~.bq-scale-tick{z-index:1}

/* v3.8.3: urenoverzicht basisweek versus weekdoelen */
.schedule-time-toggle.active{background:#e5f8f3;color:#087f71;border-color:#42bba6}
.schedule-time-overview{border:1px solid #dce9e8;background:white;border-radius:17px;padding:clamp(15px,2.3vw,27px);margin:0 0 20px;box-shadow:0 7px 22px #142d3d0b;min-width:0}
.schedule-time-overview[hidden]{display:none!important}
.schedule-time-overview-top{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;flex-wrap:wrap}
.schedule-time-overview-top h2{font-size:clamp(19px,2.1vw,26px);margin:7px 0 5px;color:#1d3e4f}
.schedule-time-overview-top p{font-size:12px;line-height:1.55;color:#68818c;margin:0}
.schedule-time-overview-top>label{font-size:10px;font-weight:800;color:#577f85;display:grid;gap:6px;min-width:220px}
.schedule-time-overview-top select{height:40px;margin:0}
.schedule-time-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.schedule-time-stat{border:1px solid #dce9ec;background:#f8fbfc;border-radius:12px;padding:13px 15px;display:grid;gap:5px;min-width:0}
.schedule-time-stat small{color:#668791;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}
.schedule-time-stat strong{font-size:clamp(17px,1.7vw,23px);color:#1d4551}
.schedule-time-stat span{font-size:11px;color:#69848a}
.schedule-time-table-wrap{overflow-x:auto;max-width:100%}
.schedule-time-table{width:100%;border-collapse:separate;border-spacing:0;text-align:left;min-width:670px}
.schedule-time-table thead th{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:#708e96;border-bottom:2px solid #e1eced;padding:10px 12px}
.schedule-time-table tbody td,.schedule-time-table tbody th{padding:10px 12px;border-bottom:1px solid #edf1f3;font-size:12px;vertical-align:middle}
.schedule-time-table tbody tr:last-child td,.schedule-time-table tbody tr:last-child th{border-bottom:0}
.schedule-time-table tbody th{font-weight:780;color:#274450;white-space:nowrap;display:flex;align-items:center;gap:9px}
.schedule-time-subject-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-size:16px;flex-shrink:0}
.schedule-time-actual{font-weight:790;color:#214759;white-space:nowrap;font-variant-numeric:tabular-nums}
.schedule-time-target-pair{display:flex;gap:6px;flex-wrap:nowrap;align-items:center}
.schedule-time-target-pair label{display:flex;flex-direction:column;gap:4px;color:#829ba0;font-size:10px}
.schedule-time-target-pair input{width:65px;max-width:100%;height:34px;border:1px solid #cbdfe2;border-radius:7px;padding:6px;color:#254a56;font-weight:720;font-variant-numeric:tabular-nums;font-size:12px}
.schedule-time-target-pair input:focus-visible{outline:2px solid #62c6b6}
.schedule-time-result{display:grid;gap:6px;min-width:155px}
.schedule-time-result strong{font-size:11px;font-weight:820;color:#67888d}
.schedule-time-result.under strong{color:#b8732a}
.schedule-time-result.over strong{color:#227ba0}
.schedule-time-result.equal strong{color:#147d6a}
.schedule-time-meter{height:8px;border-radius:20px;background:#e8eff1;overflow:hidden}
.schedule-time-meter span{height:100%;display:block;border-radius:20px;background:#cbd9dd;transition:width .2s ease}
.schedule-time-result.under .schedule-time-meter span{background:#e3ae5a}
.schedule-time-result.equal .schedule-time-meter span{background:#24ab92}
.schedule-time-result.over .schedule-time-meter span{background:#65a7cf}
.schedule-time-warnings{font-size:12px;color:#8a5b22;background:#fff8eb;border:1px solid #f0d9ae;border-radius:10px;padding:10px 13px;line-height:1.5;margin:14px 0 0}
.schedule-time-warnings[hidden]{display:none}
.schedule-time-hint{font-size:11px;color:#82949e;line-height:1.5;margin:15px 0 0}
@media(max-width:720px){.schedule-time-summary{grid-template-columns:1fr}.schedule-time-overview-top>label{width:100%;min-width:0}.schedule-time-table thead th,.schedule-time-table tbody td,.schedule-time-table tbody th{padding:10px 8px}}

.schedule-time-clear{align-self:end;width:29px;height:34px;border-radius:7px;border:1px solid #dce5e8;background:#f6f8f9;color:#829aa3;font-size:17px;cursor:pointer}.schedule-time-clear:hover{background:#fce9e9;color:#af4d50}


/* BordLab v3.8.4 — hoge Windows-schaling, compacte quizbediening.
   Onderste knoppen blijven bereikbaar via horizontaal scrollen i.p.v.
   automatisch om te lopen naar een tweede, afgekapt rijtje. */
.pagebar:not(.collapsed) .pagebar-actions{min-width:0;flex:0 1 auto;align-items:center}
.pagebar .quiz-control-actions{
  flex:0 1 auto;min-width:0;max-width:100%;
  flex-wrap:nowrap;justify-content:flex-start;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
  overscroll-behavior-x:contain;
  padding:3px 1px 5px;
}
.pagebar .quiz-control-actions>.page-add{flex:0 0 auto}
.pagebar:not(.collapsed) .page-list{min-width:54px}
@media (max-width:1100px){
  .pagebar:not(.collapsed){gap:6px;padding-inline:7px}
  .pagebar:not(.collapsed) .pagebar-header{min-width:102px;gap:5px}
  .pagebar:not(.collapsed) .pagebar-header .page-add{white-space:nowrap}
  .pagebar:not(.collapsed) .pagebar-actions{gap:3px;padding-left:5px}
  .pagebar .quiz-control-actions .page-add{padding-inline:9px}
}
/* Ook in een laag browservenster (bijv. 1080p met 200% Windows-schaal)
   moet het quizformulier een afzonderlijk scrollbaar middendeel hebben. */
.board-quiz-dialog,.board-quiz-dialog:has(#bqPinConfig:not(.hidden)){
  box-sizing:border-box;max-height:calc(100dvh - 20px);
  max-width:calc(100dvw - 20px);
}
.board-quiz-dialog form,.board-quiz-dialog:has(#bqPinConfig:not(.hidden)) form{
  box-sizing:border-box;max-height:calc(100dvh - 20px);min-height:0;
}
.board-quiz-dialog-header,.board-quiz-dialog footer{flex-shrink:0}
.board-quiz-dialog-fields{flex:1 1 auto;min-height:0;overscroll-behavior:contain}
@media(max-height:650px){
  .board-quiz-dialog-header{padding:9px 16px}
  .board-quiz-dialog-header h2{font-size:21px;margin-top:2px}
  .board-quiz-dialog-header small{font-size:10px}
  .board-quiz-dialog-fields{padding:10px 16px 16px;gap:10px}
  .board-quiz-dialog footer{padding:8px 16px;gap:7px}
  .board-quiz-dialog footer button{font-size:12px;padding:8px 9px!important}
}
@media(max-width:650px){
  .board-quiz-dialog-row{grid-template-columns:minmax(0,1fr)}
  .board-quiz-dialog footer{flex-wrap:wrap}
  .board-quiz-dialog footer span{display:none}
}
/* Laat op kleine fysieke digiborden met 200% Windows-schaling geen
   onzichtbare pagina onder de viewport ontstaan door oude minimumhoogtes. */
@media(max-height:700px){
  html,body{min-height:0}
  .app-shell{min-height:0}
}
/* Quiz op hoge schermschaal: lange vragen/resultaten mogen verticaal
   scrollen binnen het bord, in plaats van dat de onderste antwoorden
   onzichtbaar achter het scherm verdwijnen. */
@media(max-height:650px){
  .bq-board-overlay{padding:8px}
  .bq-lobby,.bq-results,.bq-live-question{
    min-height:0;justify-content:flex-start;
    overflow-x:hidden;overflow-y:auto;gap:7px;
  }
  .bq-results.bq-pin-result{overflow-y:auto}
  .bq-results h2,.bq-live-question h2{
    font-size:clamp(19px,2.5vw,34px);margin:3px auto 6px;
  }
  .bq-lobby>strong{font-size:clamp(42px,7vw,76px)}
  .bq-lobby h2{font-size:clamp(24px,4vw,48px)}
  .bq-result-tools{font-size:14px;gap:7px}
  .bq-result-tools button{font-size:13px;padding:8px 12px}
  .bq-scale-stage{min-height:165px}
  .bq-scale-marks{min-height:96px}
  .bq-scale-ruler{height:60px}
  .bq-pin-image{max-height:40dvh;width:min(100%,calc(40dvh * var(--pin-aspect,1.6)))}
}

/* BordLab v3.8.5 — invoer van twee tot zestien kaartjes */
.board-quiz-dialog:has(#bqSortConfig:not(.hidden)){width:min(1050px,96vw)}
.bq-sort-editor-rows{display:grid;gap:9px;margin-top:12px}
.bq-sort-editor-row{display:grid;grid-template-columns:35px minmax(0,1fr) minmax(0,1.5fr) 72px;align-items:end;gap:10px;padding:10px 12px;background:#f4f8fb;border:1px solid #d6e4ec;border-radius:12px}
.bq-sort-editor-row>strong{align-self:center;color:#137e74;font-size:19px}
.bq-sort-editor-row>label{min-width:0}
.bq-sort-editor-row>.bq-sort-editor-target.hidden+label{grid-column:2 / span 2}
.bq-sort-editor-move{display:flex;gap:5px;align-self:end}
.bq-sort-editor-move button{border:1px solid #cbdae7;background:white;border-radius:9px;min-width:31px;min-height:41px;font-size:20px;cursor:pointer}
.bq-sort-board-intro{font-weight:800;color:#265269}
.bq-sort-board-list{min-height:0;max-height:75%;overflow-y:auto;width:min(100%,1000px);display:grid;gap:7px;padding:6px 12px 22px}
.bq-sort-board-list>div{display:flex;align-items:center;gap:15px;border:2px solid #dce9e8;border-radius:13px;background:#f5fcfb;text-align:left;padding:10px 16px;min-height:57px}
.bq-sort-position{flex:none;display:grid;place-items:center;background:#daf0ec;border-radius:9px;width:38px;min-height:36px;color:#157b6e}
.bq-sort-board-text{flex:1;font-size:clamp(14px,1.8vw,23px);font-weight:800;overflow-wrap:anywhere}
.bq-sort-board-text small{display:block;color:#4f7686;font-size:clamp(12px,1.3vw,16px);font-weight:600}
.bq-sort-hit{white-space:nowrap;color:#31716a;font-weight:800;font-size:clamp(11px,1.4vw,17px)}
.bq-results:has(.bq-sort-board-list){min-height:0;justify-content:flex-start;overflow:hidden}
@media(max-width:780px){.bq-sort-editor-row{grid-template-columns:24px minmax(0,1fr) 72px}.bq-sort-editor-row>label{grid-column:2}.bq-sort-editor-row>.bq-sort-editor-target.hidden+label{grid-column:2}.bq-sort-editor-move{grid-column:3;grid-row:1 / span 2;align-self:center}.bq-sort-editor-row>strong{grid-row:1}.bq-sort-hit{font-size:12px}.bq-sort-board-list>div{gap:7px;padding:7px}}

/* v3.8.6 — zinnenmaker: antwoordkaartjes rechtstreeks in de tekst plaatsen */
.board-quiz-dialog:has(#bqSortInline:not(.hidden)){width:min(1180px,97vw)}
.bq-sort-inline-config{display:grid;gap:12px;min-width:0;margin-top:10px}
.bq-inline-bank{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:9px}
.bq-inline-answer{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border:1px solid #b9d8dd;background:#f0f8fa;border-radius:12px;padding:9px;min-width:0}
.bq-inline-answer.placed{background:#e7f9f0;border-color:#9acdb8}
.bq-inline-number{display:grid;place-items:center;background:#d3e7eb;border-radius:8px;min-width:29px;height:32px;font-weight:850}
.bq-inline-answer>label{flex:1;min-width:100px;font-size:12px}
.bq-inline-answer input{width:100%;max-width:none;min-width:0}
.bq-inline-drag{display:flex;align-items:center;gap:6px;cursor:grab;touch-action:none;background:#fff;padding:6px;border:1px solid #bdd4d7;border-radius:8px;font-size:13px;font-weight:750}
.bq-inline-place{cursor:pointer;background:#dff5f2;border:1px solid #a7d9d2;color:#14655c;border-radius:8px;padding:6px 9px;font-weight:750}
.bq-inline-canvas-label{font-weight:850;color:#23475a}
.bq-inline-canvas{border:2px dashed #89b8b3;border-radius:15px;background:white;min-height:150px;padding:19px;outline-offset:3px;font-size:clamp(17px,2.2vw,23px);line-height:2.35;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}
.bq-inline-canvas:empty::before{content:attr(data-placeholder);color:#859caa;pointer-events:none}
.bq-inline-chip{display:inline-flex;vertical-align:middle;align-items:center;gap:7px;padding:1px 6px 1px 11px;border-radius:10px;border:2px solid #0b9185;background:#e2f7f0;color:#08665c;cursor:grab;font:750 .82em/1.7 inherit;user-select:none;white-space:normal;max-width:100%}
.bq-inline-chip-remove{display:inline-grid;place-items:center;width:24px;height:24px;background:#fff;border-radius:7px;cursor:pointer;font-weight:850}
.bq-sort-board-inline{max-height:46vh;overflow:auto;width:min(100%,1040px);background:#f5fcfb;border:2px solid #bcddd7;border-radius:13px;padding:16px;line-height:2.2;font-size:clamp(17px,2.5vw,31px);font-weight:700;overflow-wrap:anywhere;text-align:left}
.bq-sort-board-inline-chip{display:inline-flex;align-items:center;gap:7px;border-radius:10px;border:2px solid #20a288;background:#dff8e9;color:#14594d;padding:0 9px;margin:2px;line-height:1.8}
.bq-sort-board-inline-chip small{font-size:.45em;white-space:nowrap}
@media(max-width:760px){.bq-inline-canvas{padding:12px;min-height:120px}}

/* v3.8.7 — ruime sleep- en tekstmaker */
.board-quiz-dialog:has(#bqSortInline:not(.hidden)){width:min(1500px,98vw);max-height:96dvh}
.board-quiz-dialog:has(#bqSortInline:not(.hidden)) form{max-height:95dvh}
.board-quiz-dialog:has(#bqSortInline:not(.hidden)) .board-quiz-dialog-fields{padding:14px clamp(14px,2.8vw,38px) 22px}
.bq-sort-inline-config{gap:14px}
.bq-inline-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.bq-inline-editor-heading strong{font-size:18px;color:#183d50}
.bq-inline-editor-heading .bq-help{margin:4px 0 0;max-width:850px}
.bq-inline-stage-tag{font-weight:800;font-size:12px;color:#31796c;padding:8px 12px;border-radius:20px;background:#e7f7ee}
.bq-inline-editor-heading .minor-button{min-height:40px;width:auto;padding:7px 15px;white-space:nowrap}
.bq-sort-inline-config .bq-inline-canvas{min-height:220px;line-height:2.1;border:2px solid #9ec5c3;border-radius:14px;font-size:clamp(16px,2vw,23px);padding:25px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:46dvh;overflow:auto}
.bq-sort-inline-config .bq-inline-canvas:focus{outline:3px solid #c4e8d9}
.bq-inline-bank{grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:10px}
.bq-inline-answer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;padding:12px;min-height:92px}
.bq-inline-answer>label{grid-column:1/-1;display:grid;gap:5px;width:100%;min-width:0;font-weight:800!important;font-size:13px!important}
.bq-inline-answer input{width:100%;font-size:15px!important;min-width:0;height:44px;text-overflow:clip}
.bq-inline-answer .bq-inline-drag{grid-column:1;min-width:0;justify-content:center;padding:10px 8px;white-space:normal;cursor:grab;box-shadow:0 2px 0 #9bc6bd}
.bq-inline-answer .bq-inline-place{grid-column:2;padding:10px 9px}
.bq-inline-answer .bq-inline-number{display:none}
.bq-inline-chip{font-size:.81em;line-height:1.5;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.bq-inline-chip-text{display:inline-block}
.bq-inline-canvas .bq-inline-chip-remove{background:#fff;line-height:24px}
.bq-inline-drag-preview{overflow:hidden;text-overflow:ellipsis;min-width:0}
.bq-inline-status-ok{color:#167a52}
.bq-sort-groups-config{padding:11px 16px;border-radius:13px;border:1px solid #abd3d7;background:#f0f9fa}
.bq-sort-groups-config .bq-help{margin:5px 0}
.bq-sort-groups-config .bq-inline-check{font-weight:850}
.bq-sort-editor-row .bq-group-break{grid-column:2/span 2;display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:#286276;padding:0 2px}
.bq-sort-editor-row .bq-group-break input{width:auto!important;accent-color:#198c82}
@media(max-width:640px){.bq-sort-inline-config .bq-inline-canvas{min-height:190px;padding:13px}.bq-inline-bank{grid-template-columns:minmax(0,1fr)}}

/* v3.8.7: duidelijke groepjes in ordenvragen */
.bq-sort-editor-row .bq-group-name{grid-column:1/-1;display:block!important;min-width:0}
.bq-sort-editor-row .bq-group-name.hidden{display:none!important}
.bq-sort-editor-row .bq-group-name input{margin-top:4px;width:100%;min-height:38px}
#bqSortGroupConfig .bq-inline-check{margin-bottom:6px}
/* Breed tekstopmaakgebied en gelijktijdig zichtbare kaarten: geen eindeloos op-en-neer slepen. */
@media(min-width:800px){
  #bqSortInline:not(.hidden){display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);grid-template-areas:"prompt cardsTitle" "writer bank" "writer typing" "writer feedback";gap:12px 18px;align-items:start}
  #bqSortInline>.bq-inline-editor-heading:first-child{grid-area:prompt}
  #bqSortInline>#bqInlineCanvas{grid-area:writer;min-height:300px;max-height:min(62dvh,530px)}
  #bqSortInline>.bq-inline-editor-heading:nth-child(3){grid-area:cardsTitle}
  #bqSortInline>#bqInlineBank{grid-area:bank;grid-template-columns:minmax(0,1fr);max-height:min(48dvh,440px);overflow:auto}
  #bqSortInline>#bqInlineBank .bq-inline-answer{grid-template-columns:minmax(0,1fr) auto}
  #bqSortInline>.bq-inline-check{grid-area:typing}
  #bqSortInline>#bqInlineStatus{grid-area:feedback}
}

.bq-sort-board-groups{width:min(100%,1100px);max-height:72%;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px;overflow:auto;text-align:left;padding:7px}
.bq-sort-board-group{border:2px solid #b4d8d2;border-radius:15px;background:#f0faf7;padding:12px}
.bq-sort-board-group h3{margin:0 0 12px;font-size:clamp(17px,2vw,24px);color:#14675f}
.bq-sort-board-group>div{display:flex;gap:12px;justify-content:space-between;background:white;border-radius:9px;padding:8px 10px;margin-bottom:5px;align-items:center}
.bq-sort-board-group strong{overflow-wrap:anywhere}
.bq-sort-board-group span{white-space:nowrap;font-size:12px;font-weight:800;color:#31716a}


/* v3.8.8 — de kaartvolgorde is een leesrichting, geen verticale invullijst. */
#bqSortRows.bq-sort-editor-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:12px}
#bqSortRows .bq-sort-editor-row{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px;min-width:0}
#bqSortRows .bq-sort-editor-row>strong{align-self:flex-start;color:#16877c}
#bqSortRows .bq-sort-editor-row>label{width:100%;font-size:12px;overflow-wrap:anywhere}
#bqSortRows .bq-sort-editor-row .bq-sort-editor-move{display:flex;align-self:stretch;justify-content:space-between;gap:10px}
#bqSortRows .bq-sort-editor-row .bq-sort-editor-move button{flex:1;min-width:0}
#bqSortRows .bq-sort-editor-row>label input{min-width:0;width:100%}
#bqSortRows .bq-sort-editor-row .bq-group-break{display:flex;align-items:center;gap:5px;padding:0;font-size:12px}

/* v3.8.8 — quiz als beweegbare bordkaart. Het schrijfoppervlak blijft toegankelijk. */
#boardQuizOverlay.bq-board-card{position:absolute;z-index:12;left:3%;top:3%;width:72%;height:33%;min-width:min(240px,90%);min-height:80px;display:flex;flex-direction:column;background:#f7fbfe;overflow:hidden;border:2px solid #b5d9dc;border-radius:14px;box-shadow:0 10px 28px #17384938;resize:both;max-width:98%;max-height:94%;padding:0;text-align:center;pointer-events:auto;user-select:text}
#boardQuizOverlay .bq-board-card-header{display:flex;align-items:center;justify-content:space-between;gap:8px;background:#d7eeeb;color:#124e59;padding:5px 10px;cursor:move;user-select:none;touch-action:none;flex:0 0 auto;min-height:34px;font-size:clamp(12px,1.3vw,17px)}
#boardQuizOverlay .bq-card-controls{display:flex;gap:5px}
#boardQuizOverlay .bq-card-controls button{background:#fff;border:1px solid #afccc8;border-radius:7px;min-width:32px;min-height:27px;color:#134d58;font-weight:800;font-size:18px;cursor:pointer}
#boardQuizOverlay .bq-board-card-content{display:flex;flex-direction:column;min-height:0;overflow:auto;padding:9px;flex:1}
#boardQuizOverlay .bq-results,#boardQuizOverlay .bq-live-question,#boardQuizOverlay .bq-lobby{min-height:0;height:auto;max-width:100%;flex:1;overflow:auto;gap:7px;justify-content:flex-start}
#boardQuizOverlay .bq-live-question h2,#boardQuizOverlay .bq-results h2{font-size:clamp(14px,2.1vw,31px);line-height:1.2;margin:2px auto 6px}
#boardQuizOverlay .bq-lobby h2{font-size:clamp(16px,2.2vw,32px)}
#boardQuizOverlay .bq-lobby>strong{font-size:clamp(26px,4vw,60px)}
#boardQuizOverlay .bq-lobby .bq-roster{max-height:48%;padding:5px;overflow:auto}
#boardQuizOverlay .bq-live-question>p{font-size:clamp(12px,1.4vw,17px)}
#boardQuizOverlay .bq-sort-board-inline{font-size:clamp(13px,1.8vw,24px);max-height:100%;overflow:auto;line-height:1.8}
#boardQuizOverlay .bq-pin-layout{min-height:0;max-height:100%;overflow:auto}
#boardQuizOverlay.bq-board-card.is-minimized{height:36px!important;min-height:36px!important;overflow:hidden}
#boardQuizOverlay.bq-board-card.is-minimized .bq-board-card-content{display:none}
#boardQuizOverlay.bq-board-card.is-expanded{width:94%!important;height:78%!important;max-height:94%!important}
@media(max-width:780px){#boardQuizOverlay.bq-board-card{width:85%;height:48%}#boardQuizOverlay .bq-board-card-content{padding:4px}}

/* Een correcte volgorde wordt ook op het digibord van links naar rechts gelezen. */
#boardQuizOverlay .bq-sort-board-list.bq-sort-board-horizontal{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;max-height:none}
#boardQuizOverlay .bq-sort-board-list.bq-sort-board-horizontal>div{flex:1 1 130px;min-width:min(100%,115px);flex-direction:column;justify-content:center;padding:8px;min-height:86px}
#boardQuizOverlay .bq-sort-board-list.bq-sort-board-horizontal .bq-sort-hit{white-space:normal}

/* BordLab v3.8.9 — Schermvullende quiz of beschikbaar whiteboard via onderbalk */
#boardQuizOverlay.bq-board-overlay{position:absolute;inset:0;z-index:60;display:flex;align-items:stretch;justify-content:center;overflow-y:auto;overflow-x:hidden;padding:clamp(12px,2vw,32px);background:linear-gradient(150deg,#eff8fa,#eaf4f2)}
#boardQuizOverlay.bq-board-overlay.hidden{display:none!important}
#boardQuizOverlay.bq-board-overlay>.bq-results,#boardQuizOverlay.bq-board-overlay>.bq-lobby,#boardQuizOverlay.bq-board-overlay>.bq-live-question{flex:1;max-width:1400px;width:100%;max-height:100%;height:100%;overflow-y:auto;min-width:0}
#boardQuizOverlay.bq-board-overlay>.bq-results h2,#boardQuizOverlay.bq-board-overlay>.bq-live-question h2{font-size:clamp(24px,3vw,50px)}
#boardQuizOverlay.bq-board-overlay .bq-pin-layout{min-height:0}
.bq-view-switch{display:flex;flex:none;gap:3px;padding:4px;border:1px solid #b5cedf;border-radius:12px;background:#e7f0f5;align-items:center}
.bq-view-switch button{border:0;background:transparent;color:#244b62;min-height:38px;padding:5px 16px;border-radius:9px;white-space:nowrap;font-weight:850;font:inherit;cursor:pointer}
.bq-view-switch button[aria-pressed="true"]{color:white;background:#117f92;box-shadow:0 2px 8px #16364d30}
.bq-standings{width:min(640px,100%);margin:12px auto 0;background:#ffffffdf;border:1px solid #c3e0e4;border-radius:18px;padding:14px 20px;color:#234358;flex-shrink:0}
.bq-standings h3{margin:0 0 10px;font-size:clamp(21px,3vw,38px)}
.bq-leader-row{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:clamp(18px,2.3vw,28px);padding:5px 4px;border-bottom:1px solid #dde9ed}
.bq-leader-row:last-child{border-bottom:0}
.bq-point-celebration{width:min(940px,100%);align-self:center;text-align:center;background:white;border-radius:30px;padding:clamp(20px,4vw,60px);box-shadow:0 16px 54px #1a3a4d30;animation:bq-entry .25s ease-out}
.bq-point-celebration h2{font-size:clamp(34px,5vw,72px);margin:0 0 22px}
.bq-point-winner{font-size:clamp(24px,4vw,54px);display:flex;gap:20px;justify-content:space-between;margin:10px 0;color:#153a52;font-weight:800}
.bq-point-winner strong{color:#17967d}
@keyframes bq-entry{from{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}
@media(max-width:820px){.bq-view-switch button{padding:5px 9px}.quiz-session-bar{flex-wrap:wrap}}
/* Resultaten en de scoretop horen onder elkaar, ook op een 3:2-bord. */
#boardQuizOverlay.bq-board-overlay{flex-direction:column;align-items:center}
#boardQuizOverlay.bq-board-overlay>.bq-results,#boardQuizOverlay.bq-board-overlay>.bq-lobby,#boardQuizOverlay.bq-board-overlay>.bq-live-question{flex:1 1 auto;height:auto;min-height:0;max-height:none}
#boardQuizOverlay.bq-board-overlay>.bq-standings{flex:0 0 auto;max-height:30%;overflow-y:auto;padding-block:8px}
#boardQuizOverlay.bq-board-overlay>.bq-standings h3{font-size:clamp(19px,2.2vw,30px)}
#boardQuizOverlay.bq-board-overlay>.bq-standings .bq-leader-row{font-size:clamp(16px,1.8vw,24px)}
#boardQuizOverlay.bq-board-overlay:has(>.bq-point-celebration){justify-content:center}

/* Mobiel geschaalde digiborden: bediening blijft onderaan zichtbaar. */
.pagebar:has(#quizSessionBar:not(.hidden)) .pagebar-actions{display:none}
.pagebar:has(#quizSessionBar:not(.hidden)) .page-list{flex:0 1 180px;max-width:18vw;overflow-x:auto}
.quiz-session-bar:not(.hidden){flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap!important;scrollbar-width:thin;white-space:nowrap;overscroll-behavior-x:contain}
.bq-view-switch{position:sticky;left:0;z-index:2;flex-shrink:0}
.bq-view-switch button{font-size:clamp(12px,1vw,15px);font-weight:850}
@media(max-width:1000px){.pagebar:has(#quizSessionBar:not(.hidden)) .page-list{max-width:8vw}.quiz-session-bar:not(.hidden){gap:5px;padding-inline:5px}.bq-view-switch button{padding:5px 10px}}
@media(max-width:730px){.pagebar:has(#quizSessionBar:not(.hidden)) .page-list{display:none}.pagebar:has(#quizSessionBar:not(.hidden)) .pagebar-header{min-width:0}}

/* BordLab v3.9.0 — vaste startknop en uitgelijnde quizbediening.
   Vraagtypen scrollen horizontaal, primaire actie staat altijd apart. */
.pagebar{min-width:0}
.pagebar:not(.collapsed) .pagebar-actions{display:flex;align-items:center;gap:8px;min-width:0;flex:0 1 auto;max-width:min(72vw,1010px)}
.pagebar:not(.collapsed) .quiz-control-actions{min-width:0;flex:0 1 auto;overflow-x:auto;white-space:nowrap;max-width:100%;scrollbar-width:thin;align-items:center}
.pagebar:not(.collapsed) .start-board-quiz{display:inline-flex;flex:0 0 auto;min-height:38px;height:38px;padding:0 13px;font-size:12px;background:#0d9684;color:white;border-color:#0d9684;white-space:nowrap;box-shadow:0 2px 6px #124f4230}
.pagebar:not(.collapsed) .start-board-quiz.hidden{display:none!important}
.pagebar:has(#quizSessionBar:not(.hidden)) .pagebar-actions{display:none!important}
.pagebar:has(#quizSessionBar:not(.hidden)){gap:10px;align-items:center;overflow:hidden}
.pagebar:has(#quizSessionBar:not(.hidden)) .pagebar-header{flex:0 0 auto;min-width:0;width:auto}
.pagebar:has(#quizSessionBar:not(.hidden)) .page-list{flex:0 1 140px;min-width:0;max-width:140px}
.pagebar:has(#quizSessionBar:not(.hidden)) .quiz-session-bar:not(.hidden){flex:1 1 0;min-width:0;max-width:100%;align-items:center;gap:8px;margin:0;padding:0 4px 0 12px;border-left:1px solid #dce7ec;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}
.pagebar:has(#quizSessionBar:not(.hidden)) .quiz-session-bar button{flex:0 0 auto;min-height:38px;align-self:center}
.pagebar:has(#quizSessionBar:not(.hidden)) .quiz-session-bar strong{flex:0 0 auto}
.pagebar:has(#quizSessionBar:not(.hidden)) .quiz-session-bar #quizRoomInfo{flex:0 1 auto;min-width:0;max-width:120px}
@media(max-width:1170px){
  .pagebar:has(#quizSessionBar:not(.hidden)) .page-list{display:none!important}
  .pagebar:not(.collapsed) .pagebar-header{min-width:0}
  .pagebar:not(.collapsed) .pagebar-actions{max-width:calc(100vw - 230px)}
}
@media(max-width:760px){
  .pagebar:not(.collapsed) .pagebar-actions{max-width:calc(100vw - 130px);padding-left:5px}
  .pagebar:not(.collapsed) .start-board-quiz{padding-inline:8px;font-size:11px}
  .pagebar:has(#quizSessionBar:not(.hidden)) .pagebar-header{display:none}
  .pagebar:has(#quizSessionBar:not(.hidden)) .quiz-session-bar:not(.hidden){padding-left:2px;border-left:0}
}
/* Opslagfouten zijn onderdeel van het dialoogvenster, niet een toast achter het venster. */
.board-quiz-dialog .bq-form-error{flex:0 0 auto;display:block;background:#fff0ec;border-top:1px solid #edb4a5;color:#962e26;margin:0;padding:12px 22px;font-size:14px;font-weight:750;line-height:1.5;max-height:min(140px,22dvh);overflow-y:auto;outline-offset:-3px}
.board-quiz-dialog .bq-form-error.hidden{display:none!important}
.board-quiz-dialog [aria-invalid="true"]{border-color:#dc6655!important;outline:2px solid #f0a49a!important}
.board-quiz-dialog .bq-choice-auto{align-self:center;line-height:1.5}

/* v3.9.0: actieve quiz is een eigen toestand van de onderbalk.
   De sessieknoppen zijn altijd gelijk hoog en vrij van de paginaknoppen. */
.pagebar.quiz-active:not(.collapsed){
  display:flex; flex-wrap:nowrap; align-items:center;
  height:76px; min-height:76px; gap:10px; padding:8px 14px;
  overflow:hidden;
}
.pagebar.quiz-active:not(.collapsed) .pagebar-header,
.pagebar.quiz-active:not(.collapsed) .pagebar-actions,
.pagebar.quiz-active:not(.collapsed) .collapsed-page-nav{display:none!important}
.pagebar.quiz-active:not(.collapsed) .page-list{
  display:flex; flex:0 1 168px; width:168px; min-width:0; max-width:168px;
  padding:0; margin:0; overflow-x:auto; overflow-y:hidden;
}
.pagebar.quiz-active:not(.collapsed) .quiz-session-bar:not(.hidden){
  display:flex; flex:1 1 0; min-width:0; width:auto; max-width:none;
  height:52px; min-height:52px; margin:0; padding:0 0 0 12px;
  gap:10px; flex-wrap:nowrap!important; align-items:center;
  overflow-x:auto; overflow-y:hidden; scrollbar-width:thin;
  border-left:1px solid #dce7ec; white-space:nowrap;
}
.pagebar.quiz-active:not(.collapsed) .quiz-session-bar>*{
  flex-shrink:0; align-self:center; margin-top:0; margin-bottom:0;
}
.pagebar.quiz-active:not(.collapsed) .quiz-session-bar .bq-view-switch{
  position:static; left:auto; margin-right:6px; display:flex; align-items:center;
}
.pagebar.quiz-active:not(.collapsed) .quiz-session-bar #quizRoomInfo{
  max-width:165px; min-width:0; overflow:hidden; text-overflow:ellipsis;
}
.pagebar.quiz-active:not(.collapsed) .quiz-session-bar #quizPlayersBtn{margin-left:auto}
.pagebar.quiz-active:not(.collapsed) .quiz-session-bar button{
  height:38px; min-height:38px; line-height:1.1; max-height:38px;
  display:inline-flex; align-items:center; justify-content:center;
}
.pagebar.quiz-active:not(.collapsed) .quiz-session-bar #quizNextBtn{
  background:#dcf6ed; color:#086f60; border-color:#a3dfca;
  font-size:12px; font-weight:850; padding-inline:14px;
}
.pagebar.quiz-active:not(.collapsed) .quiz-session-bar #quizNextBtn:disabled{
  opacity:.55; cursor:not-allowed;
}
@media(max-width:1370px){
  .pagebar.quiz-active:not(.collapsed) .page-list{display:none!important}
  .pagebar.quiz-active:not(.collapsed) .quiz-session-bar:not(.hidden){padding-left:0;border-left:0}
}
@media(max-width:850px){
  .pagebar.quiz-active:not(.collapsed) .quiz-session-bar #quizRoomInfo{display:none}
  .pagebar.quiz-active:not(.collapsed) .quiz-session-bar:not(.hidden){gap:7px}
  .pagebar.quiz-active:not(.collapsed) .quiz-session-bar #quizPlayersBtn{margin-left:auto}
  .pagebar.quiz-active:not(.collapsed) .quiz-session-bar #quizNextBtn{padding-inline:9px}
}

/* v3.9.1: antwoordanalyse op het docentbord. Kleuren komen overeen met join.css/quiz.css. */
.bq-answer-chart{width:min(1150px,100%);display:flex;flex-direction:column;gap:10px;min-height:0;overflow:auto;align-self:center;padding:6px 12px 15px}
.bq-answer-chart>p{margin:0 0 5px;color:#42667b;font-size:clamp(14px,1.2vw,19px)}
.bq-answer-bar{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(90px,1.5fr) 85px;gap:16px;align-items:center;min-height:65px;padding:9px 15px;background:#fff;border:2px solid #d5e5ef;border-radius:13px;cursor:pointer;text-align:left;color:#193a53;font:inherit}
.bq-answer-bar:focus-visible{outline:4px solid #1a83d1;outline-offset:2px}
.bq-answer-bar.is-correct{border:3px solid #159d7c;background:#eaf8f2}
.bq-answer-bar-label{display:flex;align-items:center;gap:12px;min-width:0;font-size:clamp(15px,1.4vw,24px);font-weight:850}
.bq-answer-bar-label>b{flex:none;display:grid;place-items:center;width:48px;height:48px;border-radius:11px;color:white}
.bq-answer-bar-label>span{overflow-wrap:anywhere;min-width:0}
.bq-answer-bar-label em{font-style:normal;border-radius:7px;padding:4px 7px;color:#097963;background:#d2f3e5;white-space:nowrap;font-size:clamp(12px,1vw,16px)}
.bq-answer-bar-track{background:#e6eef4;border-radius:8px;height:24px;overflow:hidden;display:block}
.bq-answer-bar-track i{display:block;height:100%;min-width:0;border-radius:8px;transition:width .2s}
.bq-answer-bar>strong{text-align:right;font-size:clamp(17px,1.7vw,28px)}
.bq-answer-bar>strong small{display:block;font-size:13px;color:#678092}
.bq-answer-name-detail,.bq-names-panel{background:#fff;border:2px solid #b8dbdc;border-radius:14px;padding:12px 16px;color:#163a50;width:100%;max-height:190px;overflow:auto;text-align:left}
.bq-answer-name-detail>div,.bq-names-panel>div{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0}
.bq-answer-name-detail span,.bq-names-panel span{display:inline-block;padding:6px 9px;border-radius:7px;background:#e7f1f7;font-weight:700}
.bq-answer-name-detail button,.bq-names-panel button{padding:5px 10px;border:1px solid #bddce4;background:#f3fafb;border-radius:7px;color:#194f63;cursor:pointer}
.bq-deck .bq-card-shell{position:relative;width:100%;min-height:0;height:100%;isolation:isolate}
.bq-deck .bq-card-shell>.bq-flip-card{height:100%;width:100%}
.bq-deck .bq-card-shell>.bq-combo{left:auto;right:8px;top:8px;pointer-events:none}
.bq-card-names{position:absolute;z-index:5;left:8px;top:8px;max-width:calc(100% - 65px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #4b9d98;border-radius:8px;padding:5px 7px;background:#fff;color:#1b5064;font-size:clamp(10px,1vw,14px);font-weight:800;cursor:pointer}
.bq-live-cards .bq-result-tools{width:100%;max-width:1150px;margin:0 auto}
@media(max-width:700px){.bq-answer-bar{grid-template-columns:minmax(110px,1fr) minmax(65px,1fr) 53px;gap:8px;padding:7px}.bq-answer-bar-label{gap:6px}.bq-answer-bar-label>b{width:30px;height:36px}.bq-answer-bar-label em{font-size:11px}.bq-answer-chart{padding:0 4px}}

/* v3.9.2 — Tussenstand past op het bord zonder een eigen scrollbar.
   Schaal typografie en tussenruimte mee met de beschikbare schermhoogte. */
#boardQuizOverlay.bq-board-overlay>.bq-standings{
  flex:0 0 auto;
  width:min(720px,100%);
  max-height:none;
  min-height:0;
  overflow:visible;
  margin:clamp(3px,.6vh,8px) auto 0;
  padding:clamp(4px,.7vh,12px) clamp(10px,1.2vw,18px);
  border-radius:clamp(8px,1.4vh,16px);
}
#boardQuizOverlay.bq-board-overlay>.bq-standings h3{
  font-size:clamp(14px,2.3vh,28px);
  line-height:1.08;
  margin:0 0 clamp(2px,.6vh,8px);
}
#boardQuizOverlay.bq-board-overlay>.bq-standings .bq-leader-row{
  font-size:clamp(12px,2vh,23px);
  line-height:1.12;
  padding:clamp(1px,.35vh,4px) 3px;
  min-height:0;
}
#boardQuizOverlay.bq-board-overlay>.bq-standings .bq-leader-row span{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* v3.9.3: quizresultaten met een compacte top 5 links, zonder onderliggende kaart. */
#boardQuizOverlay.bq-board-overlay>.bq-results-shell{display:grid;grid-template-columns:clamp(150px,18vw,235px) minmax(0,1fr);gap:clamp(8px,1.4vw,22px);align-items:stretch;width:100%;height:100%;max-height:100%;min-height:0;overflow:hidden}
#boardQuizOverlay .bq-side-leaders{min-width:0;align-self:start}
#boardQuizOverlay .bq-side-leaders .bq-standings{width:100%;margin:0;padding:clamp(8px,1vw,15px);max-height:none;overflow:visible;border-radius:14px}
#boardQuizOverlay .bq-side-leaders .bq-standings h3{font-size:clamp(14px,1.5vw,25px);margin:0 0 9px}
#boardQuizOverlay .bq-side-leaders .bq-leader-row{font-size:clamp(11px,1.05vw,17px);padding:5px 0;gap:5px}
#boardQuizOverlay .bq-side-leaders .bq-leader-row strong{font-variant-numeric:tabular-nums}
#boardQuizOverlay .bq-results-main{height:100%;min-width:0;min-height:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch}
#boardQuizOverlay .bq-results-main>.bq-results,#boardQuizOverlay .bq-results-main>.bq-live-question{width:100%;height:100%;max-width:none;min-height:0;overflow-y:auto}
#boardQuizOverlay .bq-results-main .bq-pin-result{overflow:hidden}
#boardQuizOverlay .bq-results-main .bq-pin-layout{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;align-items:center;justify-content:flex-start}
#boardQuizOverlay .bq-results-main .bq-pin-image{width:min(100%,calc(45dvh * var(--pin-aspect,1.6)))!important;height:auto!important;max-width:100%!important;max-height:45dvh!important;aspect-ratio:var(--pin-aspect,1.6);flex:0 1 auto;overflow:hidden}
#boardQuizOverlay .bq-results-main .bq-pin-image img{display:block;width:100%;height:100%;object-fit:contain!important}
@media(max-width:800px){#boardQuizOverlay.bq-board-overlay>.bq-results-shell{grid-template-columns:minmax(110px,22%) minmax(0,1fr);gap:7px}#boardQuizOverlay .bq-side-leaders .bq-standings{padding:6px}#boardQuizOverlay .bq-side-leaders .bq-leader-row{font-size:11px}}
.bq-comeback-setting{display:inline-flex;align-items:center;gap:6px;flex:none;padding:6px 9px;border-radius:9px;background:#e6f6ee;color:#1c6749;font-size:13px;font-weight:800;white-space:nowrap;cursor:pointer}
.bq-comeback-setting input{accent-color:#11815f;cursor:pointer}

/* v3.9.5 — quizinstellingen boven de compacte startknop. */
.pagebar:not(.collapsed) .bq-start-wrap{position:relative;display:flex;align-items:center;flex:0 0 auto;padding-top:4px;min-width:0}
.pagebar:not(.collapsed) .bq-start-wrap .start-board-quiz{padding-right:29px!important}
.bq-start-wrap .bq-start-gear{position:absolute;right:-3px;top:-8px;z-index:4;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:1px solid #a4c9cf;border-radius:50%;background:#fff;color:#176677;font-size:16px;line-height:1;box-shadow:0 2px 5px #173c4828;cursor:pointer}
.bq-start-wrap .bq-start-gear:hover,.bq-start-wrap .bq-start-gear:focus-visible{background:#ddf6f0;outline:2px solid #37a99d;outline-offset:1px}
.pagebar:not(.collapsed) .bq-start-wrap:has(.start-board-quiz.hidden){display:none!important}
.bq-settings-dialog{position:fixed;inset:auto;max-height:min(92dvh,850px);width:min(640px,calc(100vw - 24px));max-width:calc(100vw - 24px);margin:auto;padding:0;border:1px solid #d7e6ea;border-radius:20px;background:#fff;color:#1c3448;box-shadow:0 22px 65px #132b4559;overflow:hidden}
.bq-settings-dialog::backdrop{background:rgba(9,29,44,.55)}
.bq-settings-dialog[open]{display:flex;flex-direction:column}
.bq-settings-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #e2edf0;background:#f7fbfb}
.bq-settings-heading small{color:#0e8f80;font-weight:900;letter-spacing:.12em;font-size:11px}
.bq-settings-heading h2{font-size:25px;line-height:1.2;margin:4px 0 0}
.bq-settings-close{border:0;background:transparent;color:#4b6877;font-size:32px;line-height:1;cursor:pointer;width:37px;height:37px}
.bq-settings-body{min-height:0;overflow:auto;padding:14px 22px;overscroll-behavior:contain}
.bq-settings-body h3{font-size:14px;text-transform:uppercase;letter-spacing:.05em;color:#157d76;margin:17px 0 9px}
.bq-setting-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:11px 9px;border:1px solid #e4edef;border-radius:10px;margin:7px 0;cursor:pointer}
.bq-setting-row>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.bq-setting-row strong{font-size:14px}
.bq-setting-row small{font-size:12px;color:#577284;line-height:1.4}
.bq-setting-row input[type=checkbox]{width:21px;height:21px;accent-color:#109888;flex:none;cursor:pointer}
.bq-recovery-fields{margin:7px 0 12px;background:#eef7f6;border-radius:12px;padding:12px}
.bq-recovery-fields>label{font-size:13px;font-weight:800}
.bq-recovery-inputs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:10px}
.bq-recovery-inputs label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#486878;font-weight:700}
.bq-recovery-inputs input{width:100%;padding:8px 6px;border:1px solid #b6d8d4;border-radius:8px;background:white;font:inherit;font-size:16px;color:#16364c}
.bq-recovery-fields p{font-size:12px;color:#587581;margin:10px 0 0}
.bq-music-placeholder{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:9px;padding:11px;background:#f4f6f7;border-radius:11px;color:#667b88}
.bq-music-placeholder>span:first-child{display:block}
.bq-music-placeholder strong{color:#465b69}
.bq-music-placeholder small{display:block;font-size:12px;margin:4px 0 0}
.bq-music-coming{font-size:11px;font-weight:800;background:#e3e7ea;padding:6px 8px;border-radius:99px;white-space:nowrap}
.bq-setting-note{font-size:13px;color:#b12c3f;font-weight:750;min-height:16px}
.bq-settings-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 22px;border-top:1px solid #e2edef;background:#fff;flex:0 0 auto}
.bq-settings-footer button{min-height:40px;padding:8px 16px;border-radius:9px;font-size:13px}
#boardQuizOverlay .bq-results-shell.bq-no-leaders{grid-template-columns:minmax(0,1fr)!important}
#boardQuizOverlay .bq-view-enter>.bq-results-shell,#boardQuizOverlay .bq-view-enter>.bq-lobby{animation:bq-gentle-entry .22s ease-out}
@keyframes bq-gentle-entry{from{opacity:.84;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.bq-settings-dialog{max-height:96dvh;width:calc(100vw - 12px)}.bq-settings-body{padding:10px 14px}.bq-settings-heading,.bq-settings-footer{padding:12px 14px}.bq-recovery-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#boardQuizOverlay .bq-view-enter>.bq-results-shell,#boardQuizOverlay .bq-view-enter>.bq-lobby{animation:none}}

.bq-start-wrap{position:relative;display:flex;align-items:center;flex:0 0 auto}


/* BordLab v3.9.6 — herstelde quizinstellingen, uitlijning en vraagtype. */
/* Een modaal dialog moet expliciet aan alle vier de viewport-randen zijn
   geankerd: `inset:auto` zet het venster buiten het normale midden. */
#bqSettingsDialog.bq-settings-dialog{
  position:fixed;
  inset:0;
  margin:auto;
  width:min(640px,calc(100vw - 24px));
  max-width:calc(100vw - 24px);
  max-height:min(92dvh,850px);
  overflow:hidden;
}
#bqSettingsDialog.bq-settings-dialog[open]{display:flex;flex-direction:column}
#bqSettingsDialog .bq-settings-heading,
#bqSettingsDialog .bq-settings-footer{flex:0 0 auto}
#bqSettingsDialog .bq-settings-body{flex:1 1 auto;min-height:0;overflow-y:auto}
/* Start quiz heeft exact dezelfde verticale uitlijning als Bewerken. */
.pagebar:not(.collapsed) .bq-start-wrap{
  padding-top:0;
  height:38px;
  min-height:38px;
  align-self:center;
  align-items:center;
}
.pagebar:not(.collapsed) .bq-start-wrap .start-board-quiz{
  margin:0;
  height:38px;
  min-height:38px;
}
.pagebar:not(.collapsed) .bq-start-wrap .bq-start-gear{top:-9px}
/* Quizvraag is een schaalbare kaart. De subtitel moet ook bij een
   klein bord of hoge Windows-schaal geheel zichtbaar blijven. */
.widget-quizprompt .widget-inner{
  padding:35px 8px 7px;
  align-items:stretch;
  justify-content:stretch;
  overflow:hidden;
}
.widget-quizprompt .board-quiz-prompt-widget{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  align-items:center;
  justify-items:center;
  gap:clamp(2px,1cqh,9px);
  width:100%;height:100%;min-height:0;
  padding:clamp(1px,0.7cqh,8px);
  overflow:hidden;
}
.widget-quizprompt .board-quiz-prompt-widget small{
  font-size:clamp(9px,min(1.7cqw,4.5cqh),18px);
  line-height:1.1;
  flex-shrink:0;
}
.widget-quizprompt .board-quiz-prompt-widget strong{
  display:block;
  font-size:clamp(12px,min(2.3cqw,12cqh),38px);
  line-height:1.13;
  max-width:100%;max-height:100%;overflow:hidden;
  text-wrap:balance;
}
.widget-quizprompt .board-quiz-prompt-widget span{
  display:block;
  font-size:clamp(10px,min(1.5cqw,5cqh),15px);
  line-height:1.2;
  min-height:1.2em;
  flex-shrink:0;
  white-space:normal;
  overflow-wrap:anywhere;
}
@media(max-width:600px){
  #bqSettingsDialog.bq-settings-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);max-height:96dvh}
}
