@font-face{font-family:OLMath;src:url(fonts/latinmodern-math.woff2) format('woff2');font-display:swap}
:root{--bg:#fafbff;--ink:#202438;--muted:#626a80;--rail:#f0f2f9;--line:#dce1ee;--action:#e9edf6;--accent:#4655d9;--soft:#e1e7ff;--card:#fff;--body:system-ui,sans-serif;--mono:OLMath,math;--green:#246543;color-scheme:light}
:root[data-theme=dark]{--bg:#151923;--ink:#ecf0fc;--muted:#acb6cd;--rail:#1e2431;--line:#374156;--action:#252e40;--accent:#b5bfff;--soft:#2c365b;--card:#222b3a;--green:#a1dfb7;color-scheme:dark}
body.v2{background:var(--bg);color:var(--ink);font:15px/1.5 system-ui,sans-serif;margin:0}:root body.v2 *{box-sizing:border-box}:root body.v2 [hidden]{display:none!important}.v2-wrap{max-width:1600px;margin:auto}:root body.v2 a{color:var(--accent)}:root body.v2 button:not(:where(.calculator-panel *)),:root body.v2 select,:root body.v2 input{font:inherit;color:var(--ink);border-radius:9px;min-height:44px;border:1px solid var(--line);background:var(--card);padding:9px 12px;box-shadow:none}:root body.v2 button:not(:where(.calculator-panel *)){cursor:pointer}:root body.v2 button:not(:where(.calculator-panel *)):disabled{opacity:.5;cursor:default}:root body.v2 input{font-size:18px}:root body.v2 button:not(:where(.calculator-panel *)):focus-visible,:root body.v2 a:focus-visible,:root body.v2 input:focus-visible,:root body.v2 select:focus-visible{outline:2px solid var(--accent);outline-offset:3px}:root body.v2 input[type=checkbox]{min-height:18px;width:18px;height:18px;accent-color:var(--accent)}:root body.v2 .btn,:root body.v2 #controleer,:root body.v2 #next{background:var(--accent);color:#fff;font-weight:600;border-color:var(--accent)}[data-theme=dark] :root body.v2 .btn,[data-theme=dark] :root body.v2 #controleer,[data-theme=dark] :root body.v2 #next{color:#1b2454}.v2-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 28px;border-bottom:1px solid var(--line)}.v2-brand{font-size:24px;font-weight:750;text-decoration:none;color:var(--ink)!important}.v2-brand small{font-size:12px;font-weight:400;color:var(--muted)}.v2-header nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.v2-header nav a{font-size:14px;text-decoration:none;color:var(--muted)}.v2-header nav button{background:transparent;border:0}.v2-proef{font-size:12px;color:var(--muted);padding:0 28px}.v2-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:28px;padding:12px 28px 32px}.v2-main{min-width:0}.v2-levels{align-self:start;padding:18px;background:var(--rail);border:1px solid var(--line);border-radius:14px}.v2-tool-title{display:flex;align-items:flex-start;gap:10px;margin-bottom:20px}.v2-tool-title h1{font-size:23px;line-height:1.25;margin:0;overflow-wrap:anywhere}.v2-tool-title a{font-size:22px;min-width:28px;text-decoration:none}.v2-levels summary{font-weight:600;list-style:none;min-height:44px}:root body.v2 .niveau-row{display:flex;flex-direction:column;gap:4px;padding:0;margin:0}:root body.v2 .niveau-btn{display:grid;grid-template-columns:18px 1fr auto;align-items:start;text-align:left;gap:8px;background:transparent;border:0;font-size:13px;padding:10px;min-width:0;width:100%;box-shadow:none;color:var(--muted)}:root body.v2 .niveau-btn.active{background:var(--soft);color:var(--accent);font-weight:600}.v2-dots{font-size:6px;letter-spacing:2px;align-self:center}:root body.v2 #custom-level-btn{display:block;border:1px solid var(--line);background:var(--card);margin-top:18px;font-size:14px;color:var(--ink)}:root body.v2 .equation-mode-row{display:flex;justify-content:flex-end;margin:0 0 12px}:root body.v2 .equation-mode-row>.section-label{display:none}:root body.v2 .equation-mode-buttons{padding:4px;border-radius:10px;background:var(--action);gap:4px}:root body.v2 [data-exercise-mode]{background:transparent;color:var(--muted);border:0;font-size:14px}:root body.v2 [data-exercise-mode].active{background:var(--card);color:var(--ink)}:root body.v2 #exercise{background:transparent;border:0;padding:0;box-shadow:none;max-width:none}:root body.v2 #readout{background:transparent;max-width:760px;margin:auto;border:0;padding:0;text-align:center}:root body.v2 .exercise-context{background:transparent;margin:0 0 24px;box-shadow:none;border:0}:root body.v2 .fraction-question{padding:20px 0}:root body.v2 .exercise-prompt{font-family:system-ui,sans-serif;font-size:25px;font-weight:650;line-height:1.35}:root body.v2 .exercise-main{margin:24px 0;font-size:36px;font-family:OLMath,math;line-height:1.5}:root body.v2 .frac,:root body.v2 .fraction-expression,:root body.v2 .fraction-step-math,:root body.v2 .math-expression-row{font-family:OLMath,math}.v2-answer{background:var(--action);max-width:650px;width:100%;padding:24px;border-radius:14px;margin:24px auto}:root body.v2 #answer-form{margin:0}:root body.v2 #answer-form .controls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;background:transparent;padding:0}:root body.v2 #answer-form input:not([type=radio]){border:1px solid #8792ad;border-radius:7px;text-align:center;max-width:180px;background:var(--card)}:root body.v2 #answer-fraction input{width:76px}:root body.v2 #answer-insert-helper{flex-basis:100%;justify-content:center;margin:10px auto 0}:root body.v2 #answer-insert-helper button{background:var(--rail);min-width:40px}:root body.v2 #feedback{flex-basis:100%;font-size:14px}:root body.v2 #feedback:empty,:root body.v2 #feedback-hint:empty{display:none}:root body.v2 #feedback-hint{margin:12px 0 0;font-size:14px}:root body.v2 .exercise-skip-area,:root body.v2 .exercise-skip-note{display:none}:root body.v2 .exercise-assistance{margin:18px auto;max-width:650px;display:block}:root body.v2 :is(.exercise-help-actions,.task-help-actions){display:flex;gap:2px;justify-content:center;flex-wrap:wrap;background:var(--rail);padding:4px;border-radius:10px;width:fit-content;margin:auto}:root body.v2 :is(.exercise-help-actions,.task-help-actions) button{background:transparent;border:0;min-height:44px;font-size:13px;padding:6px 10px;color:var(--ink)}:root body.v2 #support-box,:root body.v2 #exercise-orientation-box{max-width:650px;margin:24px auto;background:var(--rail);border:0;border-radius:12px;padding:18px 20px;font-size:14px}:root body.v2 #uitwerking{max-width:760px;margin:24px auto;background:transparent;border:0;padding:20px 0}:root body.v2 .math-step-active{background:transparent;border:0;padding:0;margin:0 0 18px;box-shadow:none;text-align:center}:root body.v2 .math-step-active h2{font-size:20px}:root body.v2 .math-active-kicker{color:var(--muted);font-size:13px}:root body.v2 .math-step-options{width:100%;max-width:100%}:root body.v2 .math-step-option{background:var(--card);border:1px solid var(--line);border-radius:10px;color:var(--ink)}:root body.v2 .math-step-option.selected,:root body.v2 .math-step-option[aria-pressed=true]{background:var(--soft);border-color:var(--accent)}:root body.v2 .math-chain-result,:root body.v2 .math-chain-original{font-family:OLMath,math;font-size:26px;white-space:normal;min-width:0;width:100%;flex-wrap:wrap}:root body.v2 .math-chain-label{font:14px/1.5 system-ui,sans-serif;color:var(--muted)}:root body.v2 .v2-work-title{text-align:left;font-size:19px;margin:24px 0}:root body.v2 .session-actions{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-top:28px;border-top:1px solid var(--line);padding-top:20px;flex-wrap:wrap}:root body.v2 .score-panel{background:transparent;border:0;box-shadow:none;padding:0;flex:1}:root body.v2 .score-toggle{background:transparent;border:0;justify-content:flex-start;gap:12px}:root body.v2 #toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}:root body.v2 #review-errors-btn{background:var(--soft);color:var(--accent);border:1px solid var(--line)}:root body.v2 #worksheet-launch-group{display:flex;gap:0;border:1px solid var(--line);border-radius:10px;overflow:hidden}:root body.v2 .worksheet-count-inline{display:flex;background:var(--action)}:root body.v2 .worksheet-count-btn{background:transparent;border:0}:root body.v2 .worksheet-count-btn.active{background:var(--card)}:root body.v2 #worksheet-btn{background:var(--card);color:var(--ink);border:0}:root body.v2 dialog{background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:16px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0}:root body.v2 dialog::backdrop{background:#12182970}:root body.v2 .modal-head{background:var(--bg);padding:16px 20px;border-bottom:1px solid var(--line);margin:0}:root body.v2 .modal-head h2{font-size:18px}:root body.v2 .modal-body,:root body.v2 .worksheet-modal-body{padding:24px}:root body.v2 #v2-settings{width:600px}:root body.v2 #v2-settings-form{padding:24px;overflow:auto;max-height:72dvh}:root body.v2 #v2-settings-fields .setting-grid{display:flex;flex-direction:column;gap:12px}:root body.v2 #v2-settings-fields .setting{background:transparent;border:0;padding:0;display:flex;align-items:center;gap:10px}:root body.v2 #v2-settings-fields .custom-exercise-preset{display:grid}:root body.v2 #v2-settings-fields .slider{display:none}:root body.v2 #v2-settings-fields .switch{width:auto;height:auto;display:flex}:root body.v2 #v2-settings-fields .switch input{position:static;opacity:1}.v2-modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}:root body.v2 #v2-settings-feedback{color:#9b2942}:root body.v2 #v2-progress-dialog{width:650px}:root body.v2 #v2-progress-content{padding:24px}.v2-footer{display:flex;align-items:center;gap:14px;padding:20px 28px;border-top:1px solid var(--line);flex-wrap:wrap;font-size:13px;color:var(--muted)}.v2-footer span:nth-of-type(2){margin-right:auto}.v2-footer button{border:0;background:transparent}:root body.v2 .confirm-dialog{padding:24px}:root body.v2 .level-advance,:root body.v2 .inline-remediation{background:var(--rail);border-color:var(--line)}
@media(max-width:700px){.v2-header{padding:14px 16px;flex-wrap:wrap;gap:8px}.v2-header nav{gap:12px}.v2-header nav a,.v2-header nav button{font-size:12px}.v2-proef{padding:0 16px}.v2-layout{grid-template-columns:1fr;padding:12px 16px;gap:20px}.v2-levels{padding:14px}.v2-tool-title{margin-bottom:8px}.v2-tool-title h1{font-size:20px}.v2-levels summary{display:flex;align-items:center;justify-content:space-between;font-size:14px;cursor:pointer}.v2-levels summary:after{content:'⌄'}:root body.v2 #v2-level-details[open] summary:after{content:'⌃'}.v2-answer{padding:20px 12px}:root body.v2 #answer-form .controls{gap:8px}:root body.v2 #answer-fraction input{width:56px}:root body.v2 #controleer,:root body.v2 #next{font-size:13px;padding:8px}:root body.v2 .exercise-prompt{font-size:22px}:root body.v2 .exercise-main{font-size:30px}:root body.v2 .equation-mode-buttons{width:100%;display:flex}:root body.v2 [data-exercise-mode]{flex:1}:root body.v2 .math-step-options{grid-template-columns:1fr}:root body.v2 .math-chain-result{font-size:24px}:root body.v2 .session-actions{display:block}:root body.v2 #toolbar{margin-top:16px}.v2-footer{padding:16px}:root body.v2 dialog .modal-body,:root body.v2 #v2-settings-form{padding:16px}:root body.v2 .worksheet-list{grid-template-columns:1fr}:root body.v2 .worksheet-item{min-width:0}:root body.v2 .worksheet-item .fraction-expression{flex-wrap:wrap}}
@media print{.v2-header,.v2-levels,.v2-proef,.v2-footer,:root body.v2 .equation-mode-row{display:none!important}:root body.v2 #worksheet-modal{max-height:none;overflow:visible}:root body.v2 .worksheet-modal-body{max-height:none;overflow:visible}}
/* Suppress legacy page decoration; retain only runtime component semantics. */
body.v2::before,body.v2::after,:root body.v2 #exercise::before,:root body.v2 #exercise::after,:root body.v2 .niveau-btn::after{display:none!important;content:none!important}:root body.v2 .equation-mode-row{background:none;border:0;box-shadow:none;padding:0}:root body.v2 #exercise+.session-actions{background:none;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;padding:20px 0;transform:none}:root body.v2 .score-toggle{box-shadow:none;background:transparent}:root body.v2 #readout,:root body.v2 #exercise{box-shadow:none;background:none}:root body.v2 .exercise-context{font-family:system-ui,sans-serif}:root body.v2 .exercise-context-tool,:root body.v2 .exercise-context-level{display:none}:root body.v2 .v2-original{font-family:OLMath,math;font-weight:400;font-size:36px;text-align:center;margin:24px 0}:root body.v2 .v2-original .fraction-step-initial{font:inherit}:root body.v2 .frac,:root body.v2 .frac *{font-family:OLMath,math;font-weight:400}:root body.v2 .math-step-options,:root body.v2 .math-step-option,:root body.v2 .math-step-option-content,:root body.v2 .math-expression-row{min-width:0;max-width:100%;white-space:normal;overflow-wrap:break-word}:root body.v2 .math-step-option-content{overflow:visible}:root body.v2 .math-step-option .math-expression-row{font-size:23px}:root body.v2 .math-active-kicker,:root body.v2 .math-option-letter{font-family:system-ui,sans-serif}:root body.v2 #answer-form.math-choice-active .controls{display:flex;flex-wrap:wrap}:root body.v2 .math-step-options{flex-basis:100%}:root body.v2 #answer-fraction{width:auto;min-width:0;flex:none}:root body.v2 #answer-fraction .fraction-line{width:100%}:root body.v2 .level-guidance{font-size:12px;background:transparent}:root body.v2 .level-guidance strong{font-family:system-ui,sans-serif}:root body.v2 :is(.exercise-help-actions,.task-help-actions) .assist-action{color:var(--ink);background:transparent}:root body.v2 :is(.exercise-help-actions,.task-help-actions) .assist-action:hover{background:var(--card)}:root body.v2 #controleer:disabled{background:var(--accent);color:#fff;border-color:var(--accent)}

/* Keep action controls aligned, including after a multiple-choice step. */
:root body.v2 #answer-form .controls{flex-direction:row}
:root body.v2 .equation-mode-row,:root body.v2 .math-step-active{background:transparent;box-shadow:none}
:root body.v2 .niveau-btn.active span{color:inherit}
:root body.v2 #exercise+.session-actions .score-toggle{background:transparent;box-shadow:none}
:root body.v2 #exercise+.session-actions #toolbar .btn.ghost{background:var(--card);color:var(--ink)}
:root body.v2 #exercise+.session-actions #toolbar #review-errors-btn{background:var(--soft);color:var(--accent)}

:root body.v2 .math-frac,:root body.v2 .math-frac *{font-family:OLMath,math;font-weight:400}
:root body.v2 #answer-fraction input{padding:6px;font-size:15px}
:root body.v2 #answer-fraction{row-gap:4px}
:root body.v2 .math-step-option .math-expression-row{font:400 16px/1.5 system-ui,sans-serif}
:root body.v2 #answer-form .controls>#controleer,:root body.v2 #answer-form .controls>#next{order:2;width:auto;flex:0 0 auto}
:root body.v2 #answer-form .controls>#feedback{order:4}
:root body.v2 #answer-form .controls>.timer-badge{order:5}
