: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}}
