:root{--ink:#202b45;--muted:#77819a;--line:#e8ebf3;--paper:#fff;--bg:#f6f7fc;--purple:#6556d9;--purple-soft:#efedff;--mint:#dff5ec;--shadow:0 14px 38px rgba(34,43,73,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(16px,4vw,64px);background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:var(--ink);font-size:20px;font-weight:850}.brand small{display:block;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.8px}.brand-mark{height:40px;width:40px;border-radius:14px;background:var(--purple);color:white;display:grid;place-items:center;font-size:24px}.top-actions{display:flex;align-items:center;gap:12px}.teacher-pill{font-size:12px;color:#58617a;background:#f5f6fb;padding:10px 14px;border-radius:30px}.online-dot{display:inline-block;width:8px;height:8px;background:#42bd87;border-radius:50%;margin-right:7px}.icon-btn{border:1px solid var(--line);background:white;color:var(--ink);height:39px;width:39px;border-radius:13px;font-size:21px}.main{width:min(1160px,calc(100% - 32px));margin:0 auto;padding:34px 0 70px}.welcome{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(115deg,#eceaff,#f5f1ff 55%,#eaf8f2);padding:32px;border-radius:24px}.welcome h1{font-size:clamp(27px,4vw,42px);letter-spacing:-1px;margin:10px 0}.welcome p{color:#67718b;max-width:560px;line-height:1.65}.welcome-art{font-size:82px;color:#6556d9}.eyebrow{letter-spacing:1.4px;color:var(--purple);font-size:11px;font-weight:800;text-transform:uppercase}.section-head{display:flex;align-items:end;justify-content:space-between;margin:30px 0 15px}.section-head h2{font-size:20px;margin:0}.section-head p,.page-title p{font-size:13px;color:var(--muted);margin:6px 0 0}.subject-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.subject-card,.block-card,.lesson-card{border:1px solid var(--line);background:white;border-radius:18px;box-shadow:0 3px 10px #202b4506}.subject-card{padding:20px;text-align:left;min-height:150px;color:var(--ink);transition:.18s}.subject-card:hover,.block-card:hover,.lesson-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.subject-icon,.title-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;font-size:25px;margin-bottom:13px}.subject-card h3{font-size:16px;margin:0 0 5px}.subject-card p{font-size:12px;color:var(--muted);margin:0}.recent-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.recent-empty,.empty-state{border:1px dashed #d9ddec;border-radius:17px;padding:24px;color:var(--muted);font-size:13px;background:white}.recent-empty{grid-column:1/-1}.toolbar{display:flex;gap:12px;align-items:center;margin:10px 0 24px}.back-link{border:0;background:transparent;color:var(--muted);font-weight:700;padding:8px 0}.crumb{color:#a0a8ba}.page-title{display:flex;align-items:center;gap:15px}.page-title h1{margin:0;font-size:30px;letter-spacing:-1px}.blocks-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.block-card{padding:19px;display:flex;align-items:center;justify-content:space-between;text-align:left;color:var(--ink)}.block-card strong{font-size:15px}.block-card small{display:block;color:var(--muted);margin-top:6px}.block-number{height:40px;width:40px;border-radius:14px;background:var(--purple-soft);color:var(--purple);display:grid;place-items:center;font-weight:850}.primary,.secondary,.danger{border:0;border-radius:12px;padding:11px 15px;font-size:13px;font-weight:750}.primary{background:var(--purple);color:#fff}.secondary{background:#f2f3f9;color:var(--ink);border:1px solid var(--line)}.danger{background:#fff0ef;color:#be5149}.lesson-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.lesson-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.lesson-card{padding:18px}.lesson-card h3{margin:0 0 8px;font-size:16px}.lesson-card p{color:var(--muted);font-size:12px;margin:0 0 16px}.card-actions{display:flex;gap:8px}.card-actions button{flex:1}.empty-state{text-align:center;padding:35px}.empty-state .emoji{font-size:32px}.empty-state h3{color:var(--ink);margin:10px 0 5px}.empty-state p{margin:0 0 18px}.notice{font-size:11px;color:#929bb0;line-height:1.5}.editor-shell{position:fixed;inset:0;background:#eef0f7;z-index:20;display:flex;flex-direction:column}.editor-top{min-height:60px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:8px 13px;gap:10px}.editor-brand,.editor-actions{display:flex;align-items:center;gap:8px}.editor-back{border:0;background:#f4f5fa;border-radius:10px;width:36px;height:36px;font-size:20px;color:var(--ink)}.editor-name{font-weight:800;font-size:14px;cursor:pointer}.save-status{font-size:10px;color:#42a47c}.editor-actions{flex-wrap:wrap;justify-content:flex-end}.tool-btn{height:35px;min-width:36px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#515b73;font-weight:700;padding:0 9px}.tool-btn.active{background:var(--purple-soft);color:var(--purple);border-color:#d7d1ff}.editor-body{min-height:0;flex:1;display:grid;grid-template-columns:200px minmax(0,1fr) 210px}.stage-sidebar,.properties{background:#fff;padding:14px;overflow:auto}.stage-sidebar{border-right:1px solid var(--line)}.properties{border-left:1px solid var(--line)}.stage-sidebar h3,.properties h3{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#929bb0;margin:3px 0 12px}.stage-item{display:flex;gap:8px;align-items:center;width:100%;padding:9px 7px;border:0;border-radius:10px;background:transparent;text-align:left;color:#556078;font-size:11px;margin-bottom:3px}.stage-item.selected{background:var(--purple-soft);color:var(--purple);font-weight:750}.stage-num{width:22px;height:22px;border-radius:7px;background:#f0f1f6;display:grid;place-items:center;font-size:10px;font-weight:800;flex:none}.page-list{margin-top:18px}.page-mini{width:100%;border:1px solid var(--line);border-radius:9px;background:white;text-align:left;padding:8px;font-size:11px;color:#657089;margin-bottom:6px}.page-mini.active{border:2px solid var(--purple);color:var(--purple)}.canvas-wrap{padding:clamp(8px,2vw,25px);display:flex;align-items:center;justify-content:center;min-width:0;overflow:auto;background-color:#f0f1f7;background-image:radial-gradient(#d9dce8 1px,transparent 1px);background-size:18px 18px}.board{position:relative;background:white;box-shadow:0 12px 40px #28304b24;width:min(100%,1100px);aspect-ratio:16/9;overflow:hidden;touch-action:none}.board-item{position:absolute;min-width:35px;min-height:28px;touch-action:none;user-select:none;cursor:move;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}.board-item.selected{outline:2px solid #7668e3;outline-offset:2px}.item-text{background:transparent;border:0;width:100%;height:100%;resize:none;outline:none;text-align:inherit;color:inherit;font:inherit;user-select:text}.item-shape{width:100%;height:100%;display:grid;place-items:center}.resize-handle{position:absolute;width:12px;height:12px;right:-6px;bottom:-6px;border:2px solid white;border-radius:50%;background:var(--purple);cursor:nwse-resize;display:none}.board-item.selected .resize-handle{display:block}.board-item.selected{z-index:2}.resize-handle{right:0;bottom:0;width:24px;height:24px;z-index:5;border-radius:7px;touch-action:none}.text-drag-handle{display:none;position:absolute;right:0;top:0;width:30px;height:28px;border:1px solid #d7d1ff;border-radius:6px;background:#efedff;color:#6556d9;cursor:move;touch-action:none;z-index:5;align-items:center;justify-content:center;font-size:18px;user-select:none}.board-item.selected .text-drag-handle{display:flex}.item-text{padding:8px 32px 24px 8px;cursor:text;touch-action:auto;line-height:1.3;overflow:auto}.item-text:focus{background:#6556d908}.text-edit-help{font-size:11px;line-height:1.5;color:var(--muted);margin:8px 0}.prop-checks{display:flex;gap:12px;margin:10px 0;font-size:12px}.prop-checks label{display:flex;align-items:center;gap:5px}.prop-group{margin-bottom:14px}.prop-label{display:block;color:#8791a6;font-size:10px;font-weight:750;text-transform:uppercase;margin-bottom:6px}.prop-input{width:100%;border:1px solid var(--line);border-radius:8px;padding:8px;font-size:12px;color:var(--ink);background:white}.color-row,.bg-options{display:flex;gap:7px;flex-wrap:wrap}.swatch,.bg-opt{height:25px;width:25px;border-radius:8px;border:2px solid white;box-shadow:0 0 0 1px #dfe2eb}.swatch.active{box-shadow:0 0 0 2px var(--purple)}.editor-bottom{height:46px;display:flex;justify-content:space-between;align-items:center;padding:0 13px;background:white;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.page-nav{display:flex;gap:8px;align-items:center}.modal-shade{position:fixed;inset:0;background:#17203b75;z-index:50;display:grid;place-items:center;padding:18px}.modal{width:min(450px,100%);background:#fff;border-radius:18px;padding:24px;box-shadow:var(--shadow)}.modal h2{margin:0 0 8px}.modal p{color:var(--muted);font-size:13px}.modal input{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.toast{position:fixed;left:50%;bottom:20px;transform:translate(-50%,15px);opacity:0;pointer-events:none;background:#25304a;color:white;padding:11px 16px;border-radius:11px;font-size:12px;z-index:80;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.present-overlay{position:fixed;inset:0;z-index:60;background:#101522;display:flex;align-items:center;justify-content:center;padding:25px}.present-overlay .board{width:min(95vw,1500px)}.present-close,.present-controls button{background:#ffffff20;color:white;border:1px solid #ffffff55;border-radius:10px;padding:10px 14px}.present-close{position:absolute;right:18px;top:15px}.present-controls{position:absolute;bottom:15px;display:flex;gap:10px}.error-note{color:#a63f39;background:#fff1ef;padding:12px;border-radius:10px}.name-button{padding:0;border:0;background:none;text-align:left;color:var(--ink)}.edi-document .editor-top{flex:none}.edi-tabs{display:flex;justify-content:center;gap:7px;padding:10px 16px;background:white;border-bottom:1px solid var(--line);flex:none;overflow:auto}.edi-tab{display:flex;align-items:center;gap:9px;padding:10px 19px;border:1px solid transparent;border-radius:12px;background:#f5f6fb;color:#657089;font-weight:750;white-space:nowrap}.edi-tab span{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:white;font-size:11px}.edi-tab.active{color:var(--purple);background:var(--purple-soft);border-color:#d7d1ff}.document-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 16px;background:#fafbfe;border-bottom:1px solid var(--line);flex:none}.document-toolbar .tool-btn{height:38px}.document-toolbar input[type=color]{width:34px;height:32px;border:1px solid var(--line);padding:2px;border-radius:8px;background:white}.document-toolbar input[type=range]{width:70px;accent-color:var(--purple)}.widget-picker{width:175px;margin-left:auto}.edi-workspace{min-height:0;flex:1;display:flex;overflow:auto;position:relative;align-items:stretch}.edi-sheet{flex:1;min-width:0;margin:20px;padding:22px;background:white;border:1px solid var(--line);border-radius:18px;align-self:flex-start;box-shadow:0 5px 25px #202b4508}.sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.sheet-heading h1{margin:3px 0 0;font-size:26px;letter-spacing:-.7px}.sheet-hint{color:var(--muted);font-size:12px;text-align:right}.goal-banner{display:flex;align-items:center;gap:14px;background:#efedff;border:1px solid #ded8ff;border-radius:12px;padding:14px 18px;margin-bottom:18px;min-height:62px}.goal-banner label{font-size:18px;font-weight:850;color:#5145b0;white-space:nowrap}.shared-goal{font-size:19px;font-weight:650;white-space:pre-wrap;overflow-wrap:anywhere;flex:1}.goal-banner textarea{flex:1;min-width:0;padding:8px 10px;border:1px solid #d9d2fc;border-radius:9px;background:white;font:inherit;font-size:18px;color:var(--ink);resize:vertical}.sheet-content{display:grid;gap:18px}.sheet-content.has-lesson-info{grid-template-columns:clamp(210px,22vw,295px) minmax(0,1fr)}.free-sheet{grid-template-columns:minmax(0,1fr)}.lesson-info{display:flex;flex-direction:column;gap:12px;min-width:0}.info-card{border:1px solid #e5e8f0;background:#fafbfe;border-radius:12px;padding:14px}.info-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.info-heading h2{font-size:14px;margin:0}.workbook-card{background:#f2f8ff;border-color:#d7e6f7}.redbook-card{background:#fff4f3;border-color:#f1dad7}.info-card p:not(.sync-note){margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.shared-field{width:100%;resize:vertical;border:1px solid #dce1ee;border-radius:9px;padding:9px;font:inherit;font-size:14px;background:white;color:var(--ink)}.lesson-step{display:flex;gap:8px;align-items:flex-start;margin-top:9px}.lesson-step-num{width:23px;height:23px;display:grid;place-items:center;border-radius:8px;background:#e9e6ff;color:var(--purple);font-size:11px;font-weight:850;flex:none;margin-top:3px}.lesson-step textarea{min-width:0;flex:1;padding:7px;border:1px solid var(--line);border-radius:7px;font:inherit;font-size:13px;resize:vertical;color:var(--ink)}.step-content{font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.step-remove,.small-add,.edit-shared{border:0;border-radius:7px;background:#ece9fc;color:var(--purple);width:29px;height:29px;font-size:18px;flex:none}.step-remove{background:#fbeae8;color:#a4564d;width:24px;height:24px;margin-top:3px}.sync-note{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.edi-dots{display:flex;gap:9px;align-items:center;min-height:25px}.edi-dot{display:inline-block;width:24px;height:24px;border-radius:50%;box-shadow:inset 0 0 0 1px #0000000c,0 2px 4px #00000012;flex:none}.edi-dot-0{background:#3498ef}.edi-dot-1{background:#46bf75}.edi-dot-2{background:#f5ce45}.edi-dot-3{background:#e95558}.instruction-panel{border:1px solid #dfe4ee;border-radius:12px;overflow:hidden;align-self:start;min-width:0;background:#f9fafc}.instruction-heading{display:flex;flex-direction:row-reverse;justify-content:flex-end;align-items:center;gap:18px;padding:12px 16px;border-bottom:1px solid var(--line);font-size:12px;font-weight:750;color:#8791a6;background:white}.edi-document .canvas-wrap{padding:0;display:block;overflow:hidden;background:none}.edi-document .board{width:100%;max-width:none;box-shadow:none;aspect-ratio:16/10;background:white;min-height:220px}.board-help{padding:9px 13px;margin:0;border-top:1px solid var(--line);font-size:10px;color:var(--muted);line-height:1.6}.document-properties{display:none;width:230px;flex:none;border-left:1px solid var(--line)}.props-open .document-properties{display:block}.edi-document .editor-bottom{flex:none}.edi-document .board-item.selected{overflow:visible}.edi-document .item-text{border-radius:3px}.edi-document button:focus-visible,.edi-document textarea:focus-visible,.edi-document select:focus-visible{outline:3px solid #a69df3;outline-offset:2px}@media(min-width:1550px){.edi-sheet{padding:28px;margin:24px}.edi-document .board{aspect-ratio:16/9}}@media(max-width:1000px){.edi-tab{padding:9px 12px}.edi-sheet{padding:16px;margin:12px}.sheet-content.has-lesson-info{grid-template-columns:200px minmax(0,1fr)}.sheet-hint{display:none}.document-properties{position:absolute;right:0;top:0;bottom:0;z-index:8;box-shadow:-8px 0 25px #202b4515}.edi-document .board{aspect-ratio:4/3}}@media(max-width:650px){.edi-tabs{justify-content:flex-start;padding:8px;gap:5px}.edi-tab{font-size:12px;padding:8px 10px}.document-toolbar{padding:7px;gap:4px}.document-toolbar .tool-btn{font-size:11px;padding:0 7px}.widget-picker{width:160px}.edi-sheet{margin:8px;padding:12px}.sheet-content.has-lesson-info{grid-template-columns:1fr}.lesson-info{display:grid;grid-template-columns:1fr 1fr;gap:9px}.lesson-info .info-card:first-child{grid-column:1/-1}.lesson-info .sync-note{grid-column:1/-1}.edi-dots{gap:6px}.edi-dot{width:20px;height:20px}.info-card{padding:10px}.info-heading{flex-wrap:wrap}.goal-banner{padding:10px;gap:7px}.goal-banner label{font-size:14px}.goal-banner textarea,.shared-goal{font-size:15px}.edi-document .editor-bottom>span:first-child{display:none}.sheet-heading h1{font-size:23px}.edi-document .board{min-height:240px;aspect-ratio:4/3}}
.edi-workspace{align-items:stretch}.edi-sheet{margin:8px;padding:12px;align-self:stretch;display:flex;flex-direction:column;border-radius:12px;min-height:0}.sheet-heading{margin-bottom:8px}.sheet-heading h1{font-size:21px}.sheet-heading .eyebrow{font-size:9px}.goal-banner{margin-bottom:10px;padding:9px 12px;min-height:48px}.goal-banner textarea{font-size:16px;padding:6px;max-height:90px}.sheet-content{flex:1;min-height:0}.sheet-content.has-lesson-info{grid-template-columns:180px minmax(0,1fr);gap:12px}.lesson-info{overflow:auto;gap:8px}.info-card{padding:10px}.info-heading h2{font-size:13px}.instruction-panel{align-self:stretch;display:flex;flex-direction:column;min-height:0}.instruction-heading{flex:none;padding:8px 12px;gap:12px}.edi-document .canvas-wrap{flex:1;min-height:260px;position:relative}.edi-document .board{position:absolute;inset:0;aspect-ratio:auto;width:100%;height:100%;min-height:0}.board-help{flex:none;font-size:10px;padding:5px 10px}.document-properties{position:absolute;right:0;top:0;bottom:0;z-index:8;box-shadow:-8px 0 25px #202b4515}.edi-tabs{padding:6px 10px}.edi-tab{padding:6px 12px}.bottom-tools{flex:none;display:flex;align-items:center;justify-content:center;gap:8px;padding:6px 10px;border-top:1px solid var(--line);border-bottom:0;background:white;max-height:145px;overflow:auto}.tool-category{display:flex;align-items:center;gap:4px;flex-wrap:wrap;border-right:1px solid var(--line);padding-right:8px;max-width:440px}.tool-category:last-child{border-right:0}.tool-category-label{width:100%;font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.7px}.bottom-tools .tool-btn{height:36px;font-size:11px;padding:0 8px}.bottom-tools .widget-picker{width:153px;margin:0}.bottom-tools input[type=range]{width:60px}.edi-document .editor-bottom{height:32px}.math-modal{max-height:90vh;overflow:auto}.math-modal .prop-label{margin-top:12px}.math-tables{border:1px solid var(--line);border-radius:10px;display:flex;gap:12px;flex-wrap:wrap;margin:14px 0;padding:12px;font-size:14px}.math-tables label{display:flex;align-items:center;gap:3px}.math-modal input[type=checkbox]{width:auto}.math-tables[hidden],.math-level[hidden],.math-error[hidden]{display:none}.math-sum{background:#fafbff;border:1px solid #dfe3f0;border-radius:10px;padding:8px 25px 8px 25px;gap:5px;box-shadow:0 2px 8px #202b4508}.math-operand{width:27%;min-width:0;background:transparent;border:0;border-bottom:1px dashed #c4cadd;font:inherit;color:inherit;text-align:center;padding:0;-moz-appearance:textfield}.math-operand::-webkit-inner-spin-button,.math-operand::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.math-answer{font:inherit;font-weight:800;color:#6556d9;border:0;background:#efedff;border-radius:7px;min-width:22%;padding:3px;white-space:nowrap}.math-drag{position:absolute;left:3px;top:5px;color:#9b92d4;font-size:17px;cursor:move}.math-control{background:#efedff;border:1px solid #ded8ff;border-radius:10px;gap:8px;padding:8px 28px 8px 10px;flex-wrap:wrap}.math-control strong{font-size:14px;margin-right:auto}.math-control .tool-btn{font-size:11px;background:white}.math-sum .resize-handle,.math-control .resize-handle{width:19px;height:19px}@media(min-width:1550px){.edi-sheet{margin:10px;padding:14px}.sheet-content.has-lesson-info{grid-template-columns:210px minmax(0,1fr)}.edi-document .board{aspect-ratio:auto}}@media(max-width:1000px){.sheet-content.has-lesson-info{grid-template-columns:160px minmax(0,1fr)}.bottom-tools{justify-content:flex-start;flex-wrap:nowrap}.tool-category{flex:none;max-width:330px}.edi-document .board{aspect-ratio:auto}}@media(max-width:650px){.edi-workspace{overflow:auto}.edi-sheet{min-height:600px;margin:6px;padding:8px}.sheet-content.has-lesson-info{grid-template-columns:1fr}.lesson-info{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}.lesson-info .info-card:first-child{grid-column:auto}.lesson-info .sync-note{display:none}.info-card p:not(.sync-note),.step-content{font-size:12px}.instruction-panel{min-height:300px}.bottom-tools{max-height:115px}.tool-category{max-width:270px}.sheet-heading h1{font-size:19px}.edi-document .board{aspect-ratio:auto;min-height:0}.math-sum{gap:3px;padding:5px 20px;font-size:18px!important}.math-control{gap:3px}.math-control strong{font-size:11px}}@media(max-height:700px) and (min-width:651px){.edi-document .editor-top{min-height:48px}.sheet-heading{display:none}.edi-tab{padding:3px 10px}.goal-banner{min-height:40px}.bottom-tools .tool-btn{height:32px}.board-help{display:none}}
.edi-document{overflow:hidden}.edi-document .editor-bottom{height:44px;position:relative;z-index:31;gap:10px}.edi-document .editor-bottom>span:first-of-type{display:none}.tools-toggle{border:1px solid #d7d1ff;background:#efedff;color:#5145b0;border-radius:12px;min-height:36px;padding:5px 18px;font-weight:800;font-size:13px;touch-action:manipulation}.edi-document .bottom-tools{position:absolute;left:10px;right:10px;bottom:50px;z-index:30;max-height:min(38vh,240px);height:auto;padding:14px;border:1px solid #dedaf5;border-radius:18px;box-shadow:0 -8px 38px #202b4524;justify-content:center;flex-wrap:wrap;overflow:auto;transform:translateY(calc(100% + 65px));opacity:0;visibility:hidden;pointer-events:none;transition:transform .28s ease,opacity .2s ease,visibility .28s}.edi-document.tools-open .bottom-tools{transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto}.bottom-tools .tool-btn{min-height:42px;height:auto;padding:8px 10px;touch-action:manipulation}.bottom-tools .tool-category{flex:1 1 220px;max-width:440px}.visual-timer-item{min-width:135px;min-height:155px}.visual-timer{position:relative;width:100%;height:100%;padding:10px 10px 8px;background:#fff;border:2px solid #e2def5;border-radius:20px;box-shadow:0 4px 15px #202b4512;display:flex;flex-direction:column;align-items:center;gap:5px;overflow:auto;container-type:inline-size}.timer-drag{position:absolute;top:7px;left:9px;font-size:20px;color:#9589d4;cursor:move;z-index:2}.visual-timer-face{--timer-angle:360deg;position:relative;flex:1 1 auto;min-height:65px;max-height:100%;width:100%;aspect-ratio:1;max-width:320px;background:conic-gradient(from 0deg,#ef625f 0deg var(--timer-angle),#f1f2f7 var(--timer-angle) 360deg);border:6px solid #e7e9f0;border-radius:50%;display:grid;place-items:center}.visual-timer-face:after{content:'';position:absolute;inset:4px;border-radius:50%;background:repeating-conic-gradient(from -1deg,#354057 0deg 2deg,transparent 2deg 30deg);mask:radial-gradient(circle,transparent 65%,black 66%);pointer-events:none}.visual-timer-digital{position:relative;z-index:1;background:#fffffff0;border:1px solid #ffffff;border-radius:16px;padding:6px 10px;font-size:clamp(18px,13cqw,44px);color:#202b45;line-height:1.1;font-variant-numeric:tabular-nums}.timer-actions{display:flex;gap:7px;flex:none}.timer-actions button{border:1px solid #e2def5;border-radius:10px;background:#efedff;color:#5145b0;font-size:19px;min-width:40px;min-height:38px;touch-action:manipulation}.timer-actions button:disabled{opacity:.4;cursor:default}.visual-timer-status{font-size:10px;font-weight:750;color:#77819a;flex:none}.timer-settings{width:100%;font-size:11px;flex:none;color:#657089}.timer-settings summary{cursor:pointer;text-align:center;padding:5px;min-height:28px;touch-action:manipulation}.timer-presets{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;margin:5px 0}.timer-preset{border:1px solid #e2def5;background:#f5f3ff;border-radius:7px;padding:7px;color:#5145b0;font-size:10px;min-height:32px}.timer-custom{display:flex;align-items:end;justify-content:center;gap:5px;flex-wrap:wrap}.timer-custom label{display:flex;flex-direction:column;gap:3px;font-size:9px}.timer-custom input{width:56px;border:1px solid #ddd8ef;border-radius:7px;padding:6px;color:#202b45;background:white;font-size:12px}.edi-document .editor-bottom .page-nav{margin-left:auto}@media(max-width:650px){.edi-document .bottom-tools{left:5px;right:5px;padding:10px;max-height:40vh;justify-content:flex-start}.bottom-tools .tool-category{flex:1 1 190px;max-width:none}.tools-toggle{font-size:11px;padding:5px 10px}.edi-document .editor-bottom{padding:0 6px}.edi-document .editor-bottom .page-nav{gap:4px;font-size:10px}.edi-sheet{min-height:520px}}@media(prefers-reduced-motion:reduce){.edi-document .bottom-tools{transition:none}}
.lesson-info .steps-card{order:-1}.lesson-info .book-card{padding:8px 10px;flex:none}.lesson-info .workbook-card{background:#e6f2ff;border-color:#bdd9f4}.lesson-info .redbook-card{background:#ffe9e7;border-color:#efc1bc}.lesson-info .book-card .info-heading{margin-bottom:5px;flex-wrap:wrap;gap:6px}.lesson-info .book-card h2{font-size:13px;margin:0}.lesson-info .book-card .prop-label{margin:0;font-size:10px}.lesson-info .book-card .prop-input{padding:5px 7px;font-size:13px;margin-top:4px;min-height:30px}.lesson-info .book-card .edi-dots{gap:5px;min-height:20px}.lesson-info .book-card .edi-dot{width:18px;height:18px}.instruction-heading{flex-direction:row}.instruction-heading .edi-dots{order:-1;flex:none}.instruction-heading .edi-dot{width:24px;height:24px}@media(max-width:650px){.lesson-info{display:flex;flex-direction:column;overflow:visible}.lesson-info .book-card{padding:6px 8px}.lesson-info .steps-card{max-height:140px;overflow:auto}.lesson-info .book-card .prop-label{display:flex;align-items:center;gap:8px}.lesson-info .book-card .prop-input{margin-top:0;min-width:0;flex:1}.instruction-heading{flex-wrap:wrap}}
@media(max-width:900px){.subject-grid{grid-template-columns:repeat(2,1fr)}.editor-body{grid-template-columns:165px minmax(0,1fr)}.properties{display:none}.blocks-grid,.lesson-grid{grid-template-columns:repeat(2,1fr)}.recent-list{grid-template-columns:1fr 1fr}}@media(max-width:600px){.main{width:calc(100% - 26px);padding-top:20px}.welcome{padding:22px}.welcome-art{display:none}.subject-grid,.blocks-grid,.lesson-grid{grid-template-columns:1fr}.teacher-pill{display:none}.editor-top{align-items:flex-start}.editor-name{max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.editor-body{grid-template-columns:118px minmax(0,1fr)}.stage-sidebar{padding:9px}.stage-item{font-size:10px;padding:7px 4px}.canvas-wrap{padding:6px}.editor-bottom{padding:0 7px}.editor-bottom>.save-status{display:none}.tool-btn{font-size:10px;padding:0 6px;min-width:30px}.editor-actions{gap:4px}.page-title h1{font-size:25px}.lesson-head{align-items:flex-start;flex-wrap:wrap}}
/* Vormkeuze en lokale illustratiebibliotheek. */
.shape-picker,.illustration-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.shape-choice,.illustration-choice{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:100px;padding:12px;background:#faf9ff;color:var(--ink);border:1px solid #dedaf5;border-radius:12px;font-size:12px;touch-action:manipulation}.shape-choice:hover,.illustration-choice:hover{background:#efedff;border-color:var(--purple)}.shape-choice svg{width:56px;height:56px}.inserted-shape{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.illustration-modal{width:min(680px,100%);max-height:90vh;overflow:auto}.illustration-choice img{width:100%;height:110px;object-fit:contain}.shape-picker button:focus-visible,.illustration-picker button:focus-visible{outline:3px solid #a69df3;outline-offset:2px}@media(max-width:480px){.shape-picker,.illustration-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.illustration-choice img{height:90px}}
/* Rekenmodellen: zelfstandige, schaalbare elementen op het bord. */
.models-modal{width:min(720px,100%);max-height:90vh;overflow:auto}.models-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.model-choice{display:flex;flex-direction:column;gap:6px;text-align:left;border:1px solid #dedaf5;border-radius:12px;background:#faf9ff;padding:16px;color:var(--ink)}.model-choice:hover{background:#efedff}.model-choice span{font-size:12px;line-height:1.5;color:var(--muted)}
.calculation-model-item{min-width:180px;min-height:140px}.calculation-model{width:100%;height:100%;display:flex;flex-direction:column;background:#fff;border:1px solid #cdd3e1;border-radius:12px;overflow:hidden;text-align:left;box-shadow:0 3px 12px #202b4510;container-type:inline-size}.model-title{flex:none;padding:8px 28px 8px 10px;font-size:13px;font-weight:750;color:#5145b0;background:#f3f1ff;cursor:move;touch-action:none}.model-body{flex:1;min-height:0;overflow:auto;padding:10px;touch-action:auto;cursor:default}.model-settings{display:flex;gap:6px;flex-wrap:wrap;align-items:end;margin-bottom:10px}.model-setting{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#58617a;line-height:1.3}.model-setting input{width:65px;min-height:30px;border:1px solid #d9ddea;border-radius:6px;background:white;color:var(--ink);padding:4px;font-size:12px}.model-action{border:1px solid #dedaf5;border-radius:7px;background:#f3f1ff;color:#5145b0;padding:6px 8px;min-height:30px;font-size:11px}.model-grid{display:grid;gap:2px}.model-cell{aspect-ratio:1;min-width:0;min-height:20px;padding:0;border:1px solid #cdd3e1;background:#f7f9fc;color:var(--ink);font-size:clamp(9px,3cqw,18px);border-radius:3px}.model-cell.filled,.fraction-piece.filled{background:#a8cfff;border-color:#258ce8;color:#153e68}.model-note{font-size:12px;color:#657089;margin:8px 0;line-height:1.4}.model-value{width:100%;min-width:0;padding:7px;border:1px solid #ccd4e4;border-radius:6px;background:white;color:var(--ink);text-align:center;font-size:clamp(14px,5cqw,24px)}.model-table{width:100%;table-layout:fixed;border-collapse:collapse}.model-table td{border:1px solid #ccd4e4;padding:3px}.model-table .model-value{border:0;font-size:clamp(12px,4cqw,22px)}.split-tree{max-width:360px;margin:10px auto}.split-whole{width:40%;margin:auto}.split-arms svg{width:100%;height:70px;color:#6556d9}.split-parts{display:flex;justify-content:space-around;gap:15px}.split-parts>div{width:40%}.fraction-strip-row{display:flex;flex-direction:column;gap:5px;margin:10px 0}.fraction-strip{display:grid;width:100%;height:clamp(35px,12cqw,65px)}.fraction-piece{min-width:0;padding:0;border:1px solid #ccd4e4;background:#f7f9fc}.fraction-circle{width:100%;max-height:280px;display:block}.fraction-sector{fill:#f7f9fc;stroke:#69748b;stroke-width:1.5;cursor:pointer}.fraction-sector.filled{fill:#a8cfff}.fraction-sector:focus-visible{outline:none;stroke:#6556d9;stroke-width:4}.model-numberline{display:block;width:100%;min-width:280px;cursor:crosshair;touch-action:auto}.mab-tray{position:relative;width:100%;height:clamp(200px,70cqw,380px);background:#fafbfe;border:1px dashed #ccd4e4;border-radius:8px;overflow:hidden}.mab-piece{position:absolute;display:grid;gap:1px;cursor:grab;touch-action:none;border:1px solid #398ba9;background:#398ba9;padding:1px}.mab-piece:active{cursor:grabbing}.mab-piece span{background:#9cdbeb;min-width:0;min-height:0}.mab-1{width:12px;height:12px}.mab-10{width:12px;height:112px;grid-template-rows:repeat(10,1fr)}.mab-100{width:112px;height:112px;grid-template-columns:repeat(10,1fr);grid-template-rows:repeat(10,1fr)}.mab-piece:focus-visible{outline:3px solid #6556d9;outline-offset:2px}.calculation-model-item.selected>.resize-handle{z-index:10}@media(max-width:480px){.models-picker{grid-template-columns:1fr}}
/* Bordlagen: alle elementen onder de tekeningen, ook bij selectie. */
.edi-document .board{isolation:isolate}
.edi-document .board>.board-item{z-index:1}
.edi-document .board>.board-item.selected{z-index:2}
.edi-document .board>.board-ink{z-index:30;pointer-events:none}
.edi-document .board.drawing-mode>.board-ink{pointer-events:auto!important;touch-action:none;cursor:crosshair}
.edi-document .board>.board-ink *{pointer-events:none!important}
.edi-document .board.drawing-mode .board-item,
.edi-document .board.drawing-mode .board-item *{pointer-events:none!important}

.edi-document .board-item.locked{cursor:default}
.edi-document .board-item.locked .resize-handle,
.edi-document .board-item.locked .text-drag-handle{display:none}
.edi-document .board-item.locked>*{pointer-events:none}
.element-lock-badge{position:absolute;right:6px;top:6px;z-index:12;font-size:12px;line-height:1;padding:4px;border-radius:5px;background:#ffffffdd;opacity:0}
.board-item.locked:hover .element-lock-badge,
.board-item.locked.selected .element-lock-badge{opacity:1}
.edi-document .board.drawing-mode .board-item{pointer-events:none}
/* Groot gedeeld stappenplan binnen het bord bij Lesdoel en Afsluiting. */
.instruction-main.with-featured-steps{display:grid;grid-template-columns:minmax(240px,36%) minmax(0,1fr);flex:1;min-height:0;background:white}
.edi-document .featured-steps{margin:0;padding:22px;border:0;border-right:1px solid #ded8f4;border-radius:0;background:#f7f5ff;overflow:auto;min-width:0}
.edi-document .featured-steps>h2{font-size:24px;margin:0 0 18px;color:#5145b0}
.edi-document .featured-steps .step-content{font-size:22px;line-height:1.6;margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}
.edi-document .featured-steps .lesson-step{gap:10px;margin:0 0 14px}
.edi-document .featured-steps .lesson-step-num{width:30px;height:30px;font-size:15px}
.edi-document .featured-steps textarea{font-size:20px;line-height:1.5;padding:10px;min-height:70px}
.edi-document .with-featured-steps .canvas-wrap{min-width:0;min-height:260px}
.clock-item{container-type:size;min-width:160px;min-height:210px}
.instruction-clock{position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px;background:#fff;border:1px solid #e2def5;border-radius:18px;overflow:auto}
.clock-face{position:relative;width:min(88cqw,68cqh);aspect-ratio:1;flex:none;border:5px solid #6556d9;border-radius:50%;background:#fff;touch-action:none;box-shadow:0 3px 12px #202b4510}
.clock-number{position:absolute;transform:translate(-50%,-50%);font-size:clamp(12px,7cqw,25px);font-weight:750;pointer-events:none}
.clock-hand{position:absolute;width:32px;left:calc(50% - 16px);transform-origin:50% 100%;cursor:grab;touch-action:none;z-index:3}
.clock-hand:active{cursor:grabbing}
.hour-hand{height:28%;top:22%}
.minute-hand{height:38%;top:12%;z-index:4}
.clock-hand-bar{display:block;position:absolute;height:100%;width:7px;left:calc(50% - 3.5px);border-radius:8px;background:#202b45;pointer-events:none}
.minute-hand .clock-hand-bar{width:5px;left:calc(50% - 2.5px);background:#6556d9}
.clock-hand:focus-visible{outline:2px dashed #a69df3;border-radius:12px}
.clock-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:13px;height:13px;border-radius:50%;background:#6556d9;z-index:5;pointer-events:none}
.clock-digital{font-size:clamp(16px,9cqw,28px);font-variant-numeric:tabular-nums;line-height:1.1}
.clock-controls{display:flex;gap:8px;width:min(100%,180px);flex:none}
.clock-controls .prop-label{flex:1;min-width:0;font-size:9px;margin:0}
.clock-controls .prop-input{padding:4px;min-height:28px;font-size:12px;margin-top:3px}
.clock-drag{position:absolute;left:7px;top:5px;color:#9589d4;font-size:20px;cursor:move}
@media(max-width:650px){.instruction-main.with-featured-steps{grid-template-columns:1fr}.edi-document .featured-steps{max-height:260px;padding:16px;border-right:0;border-bottom:1px solid #ded8f4}.edi-document .featured-steps>h2{font-size:21px}.edi-document .featured-steps .step-content{font-size:19px}.edi-document .with-featured-steps .canvas-wrap{min-height:300px}}
/* Vaste EDI-linkerkolom: stappen bovenaan, compacte boekvelden. */
.edi-document .lesson-info{display:flex;flex-direction:column;gap:8px;justify-content:flex-start}
.edi-document .lesson-info .steps-card{order:-1;flex:none;margin:0;padding:12px;border:1px solid #ded8f4;background:#fff;max-height:48vh;overflow:auto}
.edi-document .steps-card>h2{font-size:15px;margin:0 0 10px}
.edi-document .lesson-info .book-card{order:0;flex:none;padding:8px 10px;border-radius:10px}
.edi-document .lesson-info .workbook-card{background:#d8ebff;border:1px solid #8db9e8}
.edi-document .lesson-info .redbook-card{background:#ffdeda;border:1px solid #e89d94}
.edi-document .lesson-info .book-card .info-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 6px}
.edi-document .lesson-info .book-card h2{font-size:12px;line-height:1.2}
.edi-document .lesson-info .book-card .prop-label{display:flex;align-items:center;gap:7px;font-size:11px;text-transform:none;margin:0;color:#202b45}
.edi-document .lesson-info .book-card .prop-input{flex:1;min-width:0;width:75px;height:29px;min-height:29px;padding:4px 7px;margin:0;font-size:12px}
.edi-document .instruction-heading{flex-direction:row;justify-content:flex-start;gap:14px;min-height:48px}
.edi-document .instruction-heading .edi-dots{order:0;display:flex;gap:9px}
.edi-document .instruction-heading .edi-dot{display:block;width:28px;height:28px;border:2px solid #fff;box-shadow:0 0 0 1px #d9deeb}
.edi-document .book-card .edi-dots{display:flex;gap:5px}
.edi-document .book-card .edi-dot{display:block;width:18px;height:18px}
.edi-document .edi-dot-0{background:#3498ef}.edi-document .edi-dot-1{background:#46bf75}.edi-document .edi-dot-2{background:#f5ce45}.edi-document .edi-dot-3{background:#e95558}
@media(max-width:650px){.edi-document .lesson-info .steps-card{max-height:160px}.edi-document .instruction-heading .edi-dot{width:24px;height:24px}.edi-document .lesson-info .book-card{padding:6px 8px}}
/* Linkerkolom en EDI-bolletjes: definitieve zichtbare indeling. */
.edi-document .lesson-info{display:flex;flex-direction:column;justify-content:flex-start;gap:10px}
.edi-document .lesson-info .steps-card{order:-2;flex:0 1 auto;padding:12px;margin:0;background:#fff;border:1px solid #d9ddea;border-radius:10px;max-height:calc(100vh - 350px);min-height:80px;overflow:auto}
.edi-document .steps-card>h2{margin:0 0 12px;font-size:16px;color:#202b45}
.edi-document .steps-card .step-content{margin:0 0 10px;font-size:14px;line-height:1.5}
.edi-document .lesson-info .book-card{order:0;flex:0 0 auto;padding:8px;border-radius:9px;box-shadow:none}
.edi-document .lesson-info .workbook-card{background:#b9dcff;border:2px solid #6ca9e5}
.edi-document .lesson-info .redbook-card{background:#ffc3bd;border:2px solid #df8178}
.edi-document .lesson-info .book-card .info-heading{margin:0 0 5px;gap:5px;flex-wrap:wrap}
.edi-document .lesson-info .book-card h2{font-size:12px;font-weight:850;color:#202b45}
.edi-document .lesson-info .book-card .prop-label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:750;text-transform:none}
.edi-document .lesson-info .book-card .prop-input{height:28px;min-height:28px;padding:3px 6px;width:65px;flex:1;margin:0;background:#fff;border:1px solid #ffffff;color:#202b45}
.edi-document .instruction-heading{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:14px;min-height:54px;padding:10px 12px;background:#fff}
.edi-document .instruction-heading .edi-dots{order:-1;display:flex;gap:10px;flex:none}
.edi-document .instruction-heading .edi-dot{width:32px;height:32px;border:2px solid #fff;box-shadow:0 0 0 1px #cdd3e1,0 2px 5px #202b451c}
.edi-document .book-card .edi-dots{display:flex;gap:5px}
.edi-document .book-card .edi-dot{width:20px;height:20px;border:1px solid white;box-shadow:0 0 0 1px #202b4520}
.edi-document .edi-dot-0{background:#258ce8}
.edi-document .edi-dot-1{background:#39b967}
.edi-document .edi-dot-2{background:#f2c52e}
.edi-document .edi-dot-3{background:#e94d52}
.edi-document .board.paired-board{display:block;background-image:none}
@media(max-width:650px){.edi-document .lesson-info .steps-card{max-height:160px;min-height:0}.edi-document .instruction-heading .edi-dot{width:28px;height:28px}.edi-document .lesson-info .book-card{padding:6px 8px}}
/* Bewerkingsmenu voor tekst en één gedeelde denkvraag per les. */
.edi-document .instruction-heading{flex-wrap:wrap}
.thinking-question{margin-left:auto;display:flex;align-items:center;gap:8px;width:clamp(240px,35%,440px);max-width:100%;font-size:12px;font-weight:750;color:var(--ink)}
.thinking-question textarea{flex:1;min-width:0;min-height:38px;max-height:120px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#faf9ff;color:var(--ink);font:inherit;font-weight:500;line-height:1.4;resize:vertical;touch-action:auto}
.text-edit-menu{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex:none;padding:6px 12px;background:#faf9ff;border-bottom:1px solid var(--line)}
.text-edit-menu[hidden]{display:none}
.text-edit-menu .tool-btn{min-height:40px;min-width:40px;touch-action:manipulation;font-size:12px}
.text-menu-size{width:65px;height:40px;padding:5px;border:1px solid var(--line);border-radius:8px;text-align:center;background:white;color:var(--ink)}
.text-edit-menu .text-menu-delete{margin-left:auto;color:#b9433b;background:#fff0ef;border-color:#f2d4d0;font-size:20px}
@media(max-width:650px){.thinking-question{width:100%;margin-left:0}.text-edit-menu{gap:4px;padding:6px}.text-edit-menu .tool-btn{padding:0 7px}}
/* Denkvraag naast de kleuren en bordtitel, ook bij Afsluiting. */
.edi-document .instruction-heading{flex-wrap:nowrap;align-items:flex-start;gap:14px;}
.edi-document .instruction-heading>span{flex:0 0 auto;max-width:180px;}
.edi-document .instruction-heading .edi-dots{flex:0 0 auto;}
.edi-document .instruction-heading .thinking-question{position:relative;width:auto;flex:1 1 0;min-width:140px;max-width:100%;margin-left:auto;display:flex;flex-direction:row;align-items:center;gap:10px;padding:10px 12px 24px;background:transparent;border:0;border-radius:0;font-size:16px;overflow:hidden;}
.edi-document .instruction-heading .thinking-question textarea{width:100%;flex:1 1 0;min-height:0;max-height:none;font-size:18px;padding:8px 10px;resize:none;background:white;overflow:auto;}
.edi-document.closing-phase .instruction-heading .thinking-question{font-size:26px;color:#5145b0;}
.edi-document.closing-phase .instruction-heading .thinking-question textarea{font-size:28px;line-height:1.5;}
.question-resize{position:absolute;right:2px;bottom:1px;width:44px;height:28px;border:0;border-radius:7px;background:#e6e0ff;color:#5145b0;font-size:24px;line-height:1;cursor:nwse-resize;touch-action:none;user-select:none;}
/* Versleepbare denkvraag en gedeelde tekstopmaak. */
.question-drag{position:absolute;right:6px;top:5px;width:40px;height:34px;border:1px solid #ded8f4;border-radius:8px;background:#ece7ff;color:#5145b0;font-size:22px;cursor:ew-resize;touch-action:none;user-select:none;z-index:2}
.edi-document .instruction-heading .thinking-question{padding-right:52px;will-change:transform;z-index:3}
.typography-menu{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:7px 12px;background:#faf9ff;border-bottom:1px solid var(--line);flex:none;max-height:150px;overflow:auto}
.typography-menu[hidden]{display:none}
.typography-name{font-size:11px;font-weight:750;color:#6556d9;margin-right:4px}
.typography-menu select{width:135px;min-height:40px;font-size:12px}
.typography-menu .tool-btn{min-width:40px;min-height:40px;touch-action:manipulation}
.typography-size{width:64px;height:40px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);padding:5px;text-align:center}
.typography-menu [data-format-toggle=bold]{font-weight:850}
.typography-menu [data-format-toggle=underline]{text-decoration:underline}
.typography-menu [data-format-toggle=italic]{font-style:italic}
.typography-colors{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.text-color-choice{width:32px;height:36px;border:2px solid #cdd3e1;border-radius:8px;touch-action:manipulation}
.text-color-choice.active{outline:3px solid #6556d9;outline-offset:1px}
[data-shared-typography]:not(input):not(textarea){cursor:text}
@media(max-width:650px){.typography-menu{padding:6px;gap:4px}.typography-name{width:100%}.typography-menu select{width:110px}.text-color-choice{width:29px}.edi-document .instruction-heading .thinking-question{padding-right:48px}}
/* Tekstopmaak blijft binnen de inklapbare digibordtools. */
.bottom-tools .formatting-tools{flex:1 1 100%;max-width:none;border-right:0;align-items:flex-start}
.formatting-tools .typography-menu,.formatting-tools .text-edit-menu{border:0;padding:4px;background:transparent;max-height:none;overflow:visible}
.formatting-tools .typography-menu{flex:1 1 420px}
.formatting-tools .text-edit-menu{flex:0 1 auto}
.edi-document:not(.closing-phase) .instruction-heading .thinking-question{gap:3px;padding-top:6px;padding-bottom:22px;font-size:13px}
.edi-document:not(.closing-phase) .instruction-heading .thinking-question textarea{padding:4px 7px;font-size:16px}
/* Denkvraag: kopje naast de tekst, zonder paars kader. */
.edi-document .thinking-question-title{flex:none;white-space:nowrap;color:var(--ink)}
.edi-document .instruction-heading .thinking-question textarea{width:auto;align-self:stretch;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink)}
.edi-document .thinking-question .question-drag,.edi-document .thinking-question .question-resize{background:#f2f3f5;color:#687080;border:1px solid #e0e3e8}
.edi-document .thinking-question textarea:focus-visible{outline:2px solid #aeb6c4;outline-offset:0}
/* Horizontaal verplaatsen met een compacte, neutrale sleepknop. */
.edi-document .instruction-heading .thinking-question{position:relative;z-index:3;}
.thinking-question-move{flex:none;width:26px;height:30px;padding:0;border:1px solid #e0e3e8;border-radius:6px;background:#f2f3f5;color:#687080;font-size:18px;cursor:ew-resize;touch-action:none;user-select:none;}
.thinking-question-move:active{cursor:grabbing;}
@media(max-width:650px){.thinking-question-move{width:24px;}}
/* Breedte aanpassen, gedeeld voor alle zichtbare lesfasen. */
.edi-document .instruction-heading .thinking-question,
.edi-document:not(.closing-phase) .instruction-heading .thinking-question{position:relative;max-width:100%;padding-right:24px}
.thinking-question-width{position:absolute;right:0;bottom:0;width:22px;height:30px;padding:0;border:1px solid #e0e3e8;border-radius:6px;background:#f2f3f5;color:#687080;font-size:19px;cursor:ew-resize;touch-action:none;user-select:none;z-index:4}
.thinking-question-width:active{cursor:grabbing}
/* Denkvraagpijltjes verborgen tot de muis boven het vak staat. */
.edi-document .thinking-question .thinking-question-move,
.edi-document .thinking-question .thinking-question-width{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease}
.edi-document .thinking-question:hover .thinking-question-move,
.edi-document .thinking-question:hover .thinking-question-width{opacity:1;visibility:visible;pointer-events:auto}


.edi-document .instruction-heading{align-items:center;gap:12px}
.edi-document .instruction-heading .thinking-question,
.edi-document:not(.closing-phase) .instruction-heading .thinking-question{position:relative;flex:0 0 350px;width:350px;min-width:130px;max-width:none;height:auto;margin-left:auto;padding:0 0 0 26px;gap:8px;overflow:visible;transform:none;will-change:auto;font-size:12px;color:var(--ink)}
.edi-document .thinking-question .thinking-question-width{left:0;right:auto;top:50%;bottom:auto;transform:translateY(-50%);width:24px;height:38px;font-size:18px;cursor:ew-resize;background:#f2f3f5;color:#687080;border:1px solid #d5dae3;z-index:4}
.edi-document .instruction-heading .thinking-question textarea,
.edi-document:not(.closing-phase) .instruction-heading .thinking-question textarea{flex:1;min-width:0;width:auto;height:40px;min-height:40px;max-height:40px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:#fafbfe;font-size:14px;font-weight:500;line-height:1.4;resize:none;overflow:auto}
@media(max-width:650px){.edi-document .instruction-heading{gap:7px}.edi-document .instruction-heading>span{flex:0 1 auto;max-width:95px;font-size:10px}.edi-document .instruction-heading .edi-dots{gap:5px}.edi-document .instruction-heading .edi-dot{width:20px;height:20px}.edi-document .instruction-heading .thinking-question{gap:4px}.edi-document .thinking-question-title{font-size:10px}}




