/* Presentation contract from the approved example library. V2 scope only. */
:root body.v2{--motion-color:160ms;--motion-move:180ms;--motion-easing:ease-out;--radius-control:8px;--radius-card:12px;--radius-dialog:16px;--shadow-dialog:0 16px 60px #10152625;--space-small:8px;--space-item:12px;--space-block:16px;--space-section:24px;--panel-inset:20px;--text-body:15px;--text-ui:13px;--text-small:12px;--title-card:16px;--title-dialog:18px;--text-leading:1.7;--display:system-ui,sans-serif;--body:system-ui,sans-serif;--panel:var(--card);--panel-2:var(--rail);--accent-strong:var(--accent);--on-accent:#fff;--line-strong:var(--line);--yellow:#fff0b3;--good:var(--green);--v2-correct-bg:#e0f1e5;--answer-block-width:650px}
:root[data-theme=dark] body.v2{--shadow-dialog:0 16px 60px #00000066;--on-accent:#1b2454;--accent-soft:var(--soft);--bg-2:var(--rail);--control-border:#7a88a6;--yellow:#625216;--v2-correct-bg:#214b34}
.v2-header svg,.v2-footer svg,.v2-catalog-back svg,.v2 #worksheet-btn svg,.v2 :is(.exercise-help-actions,.task-help-actions) svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.v2-header{padding:14px 24px;min-height:64px}.v2-layout{padding:24px;gap:24px;grid-template-columns:300px minmax(0,1fr)}
.v2-proef{margin:0;padding:8px 24px;font-size:11px}.v2-tool-title h1{font-size:22px;line-height:1.2}.v2-tool-title{gap:6px;margin-bottom:24px}
:root body.v2 .niveau-btn{line-height:1.5;border-radius:8px;align-items:center}.v2-dots{display:flex;gap:3px;min-width:18px}.v2-dots i{width:4px;height:4px;background:var(--muted);opacity:.22;border-radius:50%}.v2-dots i.filled{opacity:.8}
:root body.v2 #custom-level-btn{width:100%;margin-top:16px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}
:root body.v2 .level-orientation{font:12px/1.55 system-ui,sans-serif;margin-top:16px;padding:12px;background:transparent;border:0;box-shadow:none}
.v2-main{position:relative}
:root body.v2 .equation-mode-row{height:46px;margin:0 0 28px;justify-content:flex-end}
:root body.v2 [data-exercise-mode]{min-height:40px;font-size:13px;padding:8px 11px;text-transform:none}
:root body.v2 #exercise .exercise-context{position:absolute;top:0;left:0;right:auto;display:flex;align-items:center;justify-content:flex-start;gap:4px;min-height:46px;margin:0;padding:0;font-size:13px}
:root body.v2 .exercise-context>strong,:root body.v2 .exercise-context>span:not(.v2-exercise-number):not(.exercise-history-nav){display:none}
:root body.v2 .exercise-history-nav{position:static;display:flex;gap:0}
:root body.v2 .exercise-history-button{background:transparent;border:0;width:32px;min-height:40px;padding:6px;color:var(--muted)}
:root body.v2 .exercise-history-button svg{width:18px;height:18px;stroke-width:1.7}
:root body.v2 .exercise-history-left{order:0}.v2-exercise-number{order:1;color:var(--muted)}:root body.v2 .exercise-history-right{order:2}
:root body.v2 .exercise-history-position{display:none}
:root body.v2 #readout{max-width:740px}.v2 .fraction-question{margin:0 auto 22px}
:root body.v2 .exercise-prompt{font:600 25px/1.35 system-ui,sans-serif;letter-spacing:-.5px}
:root body.v2 .exercise-main{display:block;font:400 36px/1.5 OLMath,math;margin:22px 0}
/* Centre a short text block, not each line of a reading paragraph. Intrinsic
   width handles wrapping without counting characters, SVG labels or steps. */
:root body.v2 :is(.exercise-prompt,.exercise-given,.exercise-note,.question-caption,.chem-instruction,.formula-guided-note,.density-main,.percentage-main,.chem-calc-question>.exercise-main),
:root body.v2 :is(#readout,.exercise-orientation-question,.worksheet-compact) .aid-note,
:root body.v2 .scale-map-measure>p,
:root body.v2 .exercise-question>p:not(.exercise-main),
:root body.v2 .vector-task>p,
:root body.v2 :is(#readout,.math-step-intro,.linear-step-intro)>p:not(.formula,.exercise-main),
:root body.v2 .spring-question-intro>p{box-sizing:border-box;min-width:0;max-width:100%;width:fit-content;margin-inline:auto;align-self:center;text-align:left}
/* Supersede the legacy whole-question length heuristic, including in examples. */
:root body.v2 #readout.long-question :is(.exercise-prompt,.exercise-note,.question-caption,.chem-instruction),
:root body.v2 .exercise-orientation-question .exercise-prompt{width:fit-content;max-width:100%;margin-inline:auto;align-self:center;text-align:left}
/* Related paragraphs share one reading edge. Figures/formulae stay independent. */
:root body.v2 .exercise-prose{width:100%;min-width:0}
:root body.v2 .exercise-question> :is(ul,ol){width:100%;min-width:0;text-align:left}
:root body.v2 .exercise-question.exercise-prose> :is(p,.exercise-prompt,.exercise-given,.exercise-note),
:root body.v2 .exercise-question:has(>p:not([class])~p:not([class]))>p,
:root body.v2 #readout.long-question .exercise-question:has(>p:not([class])~p:not([class]))>p,
:root body.v2 #readout.long-question .exercise-prose> :is(.exercise-prompt,.exercise-note),
:root body.v2 .exercise-prose .spring-question-intro>p{width:100%;margin-inline:0;align-self:stretch;text-align:left}
/* Existing model columns and compact worksheet rows keep their common edge. */
:root body.v2 #readout.electric-compact-question .exercise-prompt,
:root body.v2[data-tool-id="snijpunten-van-grafieken"] #readout .coordinate-practice>.exercise-prompt,
:root body.v2 .worksheet-compact :is(.exercise-prompt,.exercise-given,.exercise-note){width:100%;margin-inline:0;align-self:stretch;text-align:left}
/* Brief visual questions stay centred even when their prompt needs two lines. */
:root body.v2 .exercise-question.exercise-compact>.exercise-prompt,
:root body.v2 #readout.long-question .exercise-compact>.exercise-prompt,
:root body.v2 .exercise-compact .spring-question-intro>p{text-align:center;text-wrap:balance}
:root body.v2 .worksheet-compact .exercise-compact>.exercise-prompt{text-align:left;text-wrap:wrap}
:root body.v2 .v2-original{margin:22px 0;font-size:36px}
:root body.v2 .v2-answer{width:100%;max-width:var(--answer-block-width);padding:24px;margin:22px auto 0;background:var(--action);border-radius:var(--radius-card)}
:root body.v2 #answer-form .controls{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px;margin:0}
:root body.v2 #answer-form :is(.inline-reference-btn,.inline-help-btn){width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center}
:root body.v2 .v2-submit-group{display:flex;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;order:2}
:root body.v2 .v2-submit-group button{min-height:44px;height:44px;margin:0;float:none;position:static;width:auto;text-transform:none}
:root body.v2 #answer-fraction{display:grid;grid-template-rows:44px 1px 44px;row-gap:6px;width:76px;min-width:76px;padding:0 4px;margin:0;max-width:76px}
:root body.v2 #answer-fraction input{width:100%;height:44px;min-height:44px;padding:10px;font-size:18px;border-radius:var(--radius-control);line-height:22px}
:root body.v2 .generic-fraction-bar{width:calc(100% + 8px);margin-left:-4px;height:1px}
:root body.v2 #answer-form input{font:18px/1.4 system-ui,sans-serif}
:root body.v2 .math-step-options{display:grid;grid-template-columns:1fr;gap:10px;width:100%;margin:0}
:root body.v2 .math-step-option{display:flex;align-items:center;justify-content:flex-start;text-align:left;gap:12px;width:100%;padding:14px;min-height:54px;border-radius:var(--radius-control);font:400 15px/1.5 system-ui,sans-serif}
:root body.v2 .math-step-option-content{flex:1;text-align:left}
:root body.v2 .math-option-letter{position:static;flex:0 0 22px;border:0;background:transparent;font-size:12px}
:root body.v2 .math-step-active{margin:0 0 18px}.v2 .math-active-kicker{font-size:12px;letter-spacing:0;text-transform:none;font-weight:400;margin-bottom:8px}
:root body.v2 .math-step-active h2{font:600 17px/1.4 system-ui,sans-serif;margin:0 0 8px}
:root body.v2 .math-step-active p{font:var(--text-body)/var(--text-leading) var(--body)}
:root body.v2 .math-solution-chain{display:block;max-width:650px;margin:auto;text-align:center}
:root body.v2 .v2-work-title{max-width:650px;margin:30px auto 18px;padding-top:22px;border-top:1px solid var(--line);font-size:19px}
:root body.v2 .math-chain-transition{display:block;text-align:center;margin:28px auto 0;padding:0}
.v2-step-number{font:600 16px/1.5 system-ui,sans-serif;margin:0 0 12px;text-align:center}
:root body.v2 .math-chain-arrow{display:block;margin:10px auto;color:var(--muted);font-size:24px}
:root body.v2 .math-operation-label{display:block;font:14px/1.5 system-ui,sans-serif;margin:10px 0;color:var(--muted)}
:root body.v2 .math-chain-result{display:block;text-align:center;font:26px/1.8 OLMath,math;padding:8px 0;margin:0;background:transparent;border:0}
:root body.v2 .math-chain-result.final{color:var(--green);background:transparent}
:root body.v2 mark.math-step-change{background:var(--yellow);color:var(--ink)}
:root body.v2 .math-chain-result.final mark{background:var(--v2-correct-bg);color:var(--green)}
:root body.v2 #uitwerking{max-width:650px;margin:30px auto 0;padding-top:22px;border-top:1px solid var(--line)}
:root body.v2 :is(.exercise-help-actions,.task-help-actions) #help-action{background:transparent;color:var(--ink);border:0}
:root body.v2 :is(#support-box,#task-hint-box),:root body.v2 #exercise-orientation-box{line-height:1.65;background:var(--rail);border:0;padding:18px 20px;border-radius:var(--radius-card)}
:root body.v2 #exercise+.session-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:40px 0 0;padding:20px 0;border-top:1px solid var(--line)}
:root body.v2 .session-mini-label{display:inline;font-size:13px;text-transform:none;letter-spacing:0}
:root body.v2 .score-toggle{font:13px/1.5 system-ui,sans-serif;color:var(--ink);padding:0}
:root body.v2 .score-value{font:13px/1.5 system-ui,sans-serif;color:var(--muted)}
:root body.v2 #toolbar{order:0;margin:0;gap:14px}
:root body.v2 #worksheet-launch-group{padding:3px;background:var(--action);border:1px solid var(--line);border-radius:var(--radius-card);gap:0;box-shadow:none}
:root body.v2 #worksheet-btn{border-right:1px solid var(--line);border-radius:0;margin-right:4px;background:transparent;min-width:40px;padding:7px 9px}
:root body.v2 .worksheet-count-btn{min-height:36px;font-size:13px;padding:7px 9px}
.v2-footer{background:var(--rail);padding:18px 24px;font-size:12px;gap:15px}
:root body.v2 .modal-head h2{font-size:16px;line-height:1.5}
@media(max-width:700px){.v2-layout{grid-template-columns:minmax(0,1fr);padding:16px;gap:22px}.v2-header{padding:14px 16px}.v2-tool-title h1{font-size:20px}.v2-tool-title{margin-bottom:10px}:root body.v2 .equation-mode-row{margin-bottom:24px;height:auto;min-height:90px;align-items:flex-end}:root body.v2 #exercise .exercise-context{height:40px;min-height:40px}:root body.v2 .equation-mode-buttons{width:auto}:root body.v2 .v2-answer{padding:20px 12px}:root body.v2 #answer-form .controls{gap:8px}:root body.v2 #answer-fraction{width:56px;min-width:56px;max-width:56px}:root body.v2 .v2-submit-group{gap:0}:root body.v2 .v2-submit-group #controleer{font-size:13px;padding:8px}:root body.v2 .math-chain-result{font-size:24px}:root body.v2 :is(#support-box,#task-hint-box),:root body.v2 #exercise-orientation-box{padding:18px 12px}:root body.v2 :is(.exercise-help-actions,.task-help-actions) button{padding:6px}:root body.v2 #exercise+.session-actions{align-items:flex-start}:root body.v2 #toolbar{width:100%;justify-content:space-between}.v2-footer{padding:18px 16px}}
:root body.v2 #exercise{position:static}
:root body.v2 .v2-dots i{display:block;flex:0 0 4px;height:4px;background:var(--muted);border-radius:50%}
:root body.v2 #exercise+.session-actions .session-mini-label{display:inline!important;font-size:13px;font-weight:600;color:var(--ink)}
:root body.v2 .v2-dots{display:flex;flex-direction:row;gap:3px;align-items:center}
:root body.v2 .exercise-main .math-frac{font-size:1em}
/* Typeset fractions follow their widest term, plus .15em per side. Input fields keep their control width. */
:root body.v2 .math-frac{width:max-content;min-width:0}
:root body.v2 .math-frac>span{width:auto;padding-inline:.15em}
/* The root glyph's metrics belong to its own font, also inside a fraction. */
:root body.v2 .math-frac .formula-root>.root-symbol{font-family:Georgia,'Times New Roman',serif}
:root body.v2 .trig-task{width:100%;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px}
:root body.v2 :is(.power-working,.function-working){font:400 var(--text-body)/var(--text-leading) var(--body);-webkit-text-stroke:0}
:root body.v2 :is(#uitwerking .function-solution,.function-solution) .final mark{font-weight:400}
/* Short legacy selects keep their runtime state; the shared radio tiles own interaction. */
:root body.v2 select.v2-choice-source{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;overflow:hidden;clip-path:inset(50%)}
:root body.v2 .v2-select-choices{flex:0 1 100%;min-width:0;max-width:100%}
:root body.v2 .percentage-flow-cue>span{font:600 14px/1.5 var(--body);letter-spacing:normal;text-transform:none;white-space:nowrap}
:root body.v2 [data-exercise-mode]{white-space:nowrap}
:root body.v2 .v2-submit-group #controleer::first-letter,:root body.v2 .v2-submit-group #next::first-letter{text-transform:uppercase}
:root body.v2 .math-step-option .math-expression-row{text-align:left;display:block}
@media(max-width:700px){:root body.v2 .equation-mode-buttons{width:100%}:root body.v2 [data-exercise-mode]{padding:8px}:root body.v2 #exercise+.session-actions .score-panel{order:0;width:100%;flex:auto}:root body.v2 #exercise+.session-actions #toolbar{order:1}}
:root body.v2 .math-solution-chain>div{border:0;box-shadow:none}
:root body.v2 .math-solution-chain .math-operation-label{text-align:center;width:auto;float:none}
:root body.v2 .math-solution-chain .v2-route-prose,:root body.v2 .math-solution-chain .v2-route-prose *{font:400 var(--text-body)/var(--text-leading) var(--body)}
:root body.v2 #answer-form #answer{width:160px!important;max-width:160px!important;flex:0 0 auto!important;grid-column:auto}
@media(max-width:700px){:root body.v2 #answer-form #answer{width:110px!important;max-width:110px!important}:root body.v2 #exercise+.session-actions #session-summary{order:0!important}:root body.v2 #exercise+.session-actions #toolbar{order:1!important}}
:root body.v2 .math-solution-chain{border:0;padding:0}
:root body.v2 .math-chain-transition>*{text-align:center;justify-content:center}
:root body.v2 #answer-form,:root body.v2 #answer-form .controls{width:100%;max-width:none}
/* Shared chrome: same controls, links and spacing as the component library. */
:root body.v2 .v2-header{flex-wrap:nowrap;min-height:64px;padding:10px 24px;gap:14px}
:root body.v2 .v2-brand{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:24px;letter-spacing:-.8px}
.v2-brand>span{display:flex;align-items:center;color:var(--accent)}
:root body.v2 .v2-header nav{gap:2px;flex-wrap:nowrap;margin-left:auto}
:root body.v2 .v2-header nav>a,:root body.v2 .v2-header nav>button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px;font-size:13px;line-height:1.5;border:0;background:transparent;border-radius:8px;color:var(--ink);text-decoration:none;white-space:nowrap}
:root body.v2 .v2-header .v2-game-slot{display:inline-flex;flex:none;width:auto;min-width:0;margin:0;padding:0}
:root body.v2 .v2-header .v2-game-slot button{display:inline-flex;align-items:center;justify-content:center;width:36px;min-height:44px;margin:0;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--ink)}
:root body.v2 .v2-header .v2-game-slot .break-game-icon{width:20px;height:20px;flex:0 0 20px;margin:0;transform:scale(1.2);stroke-width:1.33}
:root body.v2 #v2-account-dialog,:root body.v2 #v2-class-dialog,:root body.v2 #break-game-modal{width:600px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden}
:root body.v2 #break-game-modal{width:760px;height:fit-content}
:root body.v2 :is(#v2-account-dialog,#v2-class-dialog,#break-game-modal)[open]{display:flex;flex-direction:column}
:root body.v2 :is(#v2-account-dialog,#v2-class-dialog,#break-game-modal) .modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:16px 20px}
:root body.v2 :is(#v2-account-dialog,#v2-class-dialog,#break-game-modal) .modal-head h2{margin:0;font:600 18px/1.4 var(--body)}
:root body.v2 :is(#v2-account-dialog,#v2-class-dialog,#break-game-modal) .modal-close{width:44px;min-height:44px;padding:4px;border:0;background:transparent;font-size:24px}
:root body.v2 :is(#v2-account-dialog,#v2-class-dialog,#break-game-modal) .modal-body{padding:20px;overflow:auto;min-height:0;font:14px/1.6 var(--body)}
:root body.v2 #v2-class-dialog select{display:block;width:100%;margin:8px 0;min-height:44px}
:root body.v2 #break-game-modal .break-game-body{flex:0 1 auto}
:root body.v2 #break-game-modal .break-runner{--ink:#1d3448;--muted:#5c6d79;--line:#b9cbd8;--line-strong:#7d93a5;display:grid;color:var(--ink);filter:none}
:root body.v2 #break-game-modal .break-runner-header{grid-area:1/1;flex-wrap:wrap;align-items:flex-start;gap:6px 12px}
:root body.v2 #break-game-modal .break-runner-svg{grid-area:2/1}
:root body.v2 #break-game-modal .break-runner-overlay{grid-area:2/1;position:relative;inset:auto;align-self:start;padding:12px 10px}
.v2-class-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:20px}
:root body.v2 .v2-header nav>.v2-account{width:42px;height:42px;min-height:42px;border-radius:50%;background:var(--action);margin-left:12px;position:relative}
/* The account dialog uses the same controls and notices as class settings. */
:root body.v2 .v2-account img{position:absolute;inset:3px;width:36px;height:36px;object-fit:cover;border-radius:50%}
:root body.v2 #v2-account-dialog [data-account-identity]{overflow-wrap:anywhere;font-weight:600}
:root body.v2 #v2-account-dialog .v2-account-name-row{display:flex;align-items:stretch;gap:8px;margin-top:8px}
:root body.v2 #v2-account-dialog input:not([type=hidden]){flex:1;min-width:0;width:100%;height:44px;min-height:44px;box-sizing:border-box;font:14px/1.5 var(--body);padding:8px 12px}
:root body.v2 #v2-account-dialog button:not(.modal-close){min-height:44px;padding:8px 14px;font:14px/1.5 var(--body)}
:root body.v2 #v2-account-name-help,:root body.v2 #v2-account-dialog .v2-account-footer p{color:var(--muted);font:12px/1.6 var(--body)}
.v2-account-class-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:20px 0}
.v2-account-footer{border-top:1px solid var(--line);padding-top:12px;margin-top:20px}
.v2-account:before{content:'';position:absolute;left:-8px;top:0;height:42px;border-left:1px solid var(--line)}
:root body.v2 #v2-menu-toggle{display:none}
@media(max-width:900px){:root body.v2 .v2-header .v2-desktop-nav{display:none}:root body.v2 #v2-menu-toggle{display:inline-flex}}
:root body.v2 #v2-mobile-menu{padding:16px;background:var(--rail);border-bottom:1px solid var(--line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
:root body.v2 #v2-mobile-menu a{display:flex;align-items:center;min-height:44px;color:var(--ink);text-decoration:none;font-size:13px;padding:8px}
:root body.v2 .v2-footer{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:18px 24px;background:var(--rail);font-size:12px}
.v2-footer-brand{display:flex;align-items:center;gap:8px;white-space:nowrap}.v2-footer-brand strong{color:var(--ink)}
:root body.v2 .v2-quote{margin:0 auto 0 0;font:12px/1.5 system-ui,sans-serif;text-align:left;color:var(--muted)}
.v2-footer-links{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;margin-left:auto}
:root body.v2 .v2-footer a,:root body.v2 .v2-footer button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:5px 2px;font:11px/1.5 system-ui,sans-serif;background:transparent;border:0;border-radius:6px;color:var(--muted);text-decoration:none}
:root body.v2 .v2-footer #v2-theme{width:36px;min-height:36px;padding:8px}
:root body.v2 .v2-header nav :is(a,button):hover{color:var(--accent);background:var(--soft)}
:root body.v2 .v2-footer :is(a,button):hover{color:var(--accent);background:transparent}
/* Panels preserve the original hint, feedback and canonical solution content. */
:root body.v2 :is(#support-box,#task-hint-box),:root body.v2 #exercise-orientation-box{position:relative;padding:18px 20px;font:var(--text-body)/var(--text-leading) var(--body);box-shadow:none}
:root body.v2 .assist-panel-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:4px;float:right;margin:0 0 8px 12px;position:static;background:transparent}
:root body.v2 .assist-panel-control,:root body.v2 .assist-panel-close{width:36px;height:36px;min-height:36px;padding:6px;border:0;background:transparent;color:var(--muted);border-radius:var(--radius-control);box-shadow:none;line-height:1}
:root body.v2 .assist-panel-control:hover,:root body.v2 .assist-panel-close:hover{background:var(--card)}
.v2-hint-position{font-size:12px;color:var(--muted);white-space:nowrap;order:1}
:root body.v2 [data-hint-prev]{order:0}:root body.v2 [data-hint-next]{order:2}:root body.v2 [data-hint-close]{order:3}
:root body.v2 .support-title{font:600 16px/1.5 system-ui,sans-serif;color:var(--ink);text-transform:none;letter-spacing:0;margin:0 0 14px;padding-top:6px}
:root body.v2 .assist-panel-content{padding:0;min-width:0}
:root body.v2 .assist-panel-content p{font:var(--text-body)/var(--text-leading) var(--body);margin:10px 0}
:root body.v2 .assist-panel-content .help-status-note{font-size:12px;color:var(--muted);margin-top:16px}
:root body.v2 #uitwerking{position:relative;padding:22px 0 0;background:transparent;border-radius:0}
:root body.v2 #uitwerking .solution-panel-close{position:absolute;right:0;top:16px}
:root body.v2 #uitwerking h3{font:600 19px/1.5 system-ui,sans-serif;text-align:left;margin:0 44px 18px 0}
:root body.v2 #uitwerking .math-chain-original{font-size:26px;margin:24px 0}
:root body.v2 .math-chain-transition{display:flex;flex-direction:column;align-items:center;gap:0}
:root body.v2 .math-operation-label{align-self:center;text-align:center!important;margin:10px 0;max-width:100%;width:auto}
:root body.v2 .math-chain-result .math-expression-row{display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;font:inherit;max-width:100%}
/***** Modal contract: fixed header, scrolling body, reachable final action. *****/
:root body.v2 dialog[open]{display:flex;flex-direction:column;width:min(680px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-dialog);background:var(--bg);color:var(--ink);box-shadow:var(--shadow-dialog)}
:root body.v2 dialog>.modal-head{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin:0;background:var(--bg);border-bottom:1px solid var(--line)}
:root body.v2 dialog .modal-head h2{font:700 var(--title-dialog)/1.5 var(--body);margin:0}
:root body.v2 dialog .modal-head button{flex:0 0 36px;width:36px;height:36px;min-height:36px;padding:6px;background:transparent;border:0;color:var(--muted);border-radius:var(--radius-control);font-size:22px}
:root body.v2 dialog>:is(.modal-body,.worksheet-modal-body,.release-notes-body,#v2-progress-content,#v2-settings-form){flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;max-height:none;padding:24px;scrollbar-gutter:stable}
:root body.v2 dialog p{font:var(--text-body)/var(--text-leading) var(--body)}
:root body.v2 dialog .modal-foot,:root body.v2 .v2-modal-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px!important;padding:16px 20px!important;flex-shrink:0;margin:0}
:root body.v2 .v2-modal-actions{padding:20px 0 0!important}
:root body.v2 #formula-picker[open]{width:min(960px,calc(100vw - 24px))}
:root body.v2 dialog.oefenlab-confirm{width:380px}
:root body.v2 dialog.oefenlab-confirm .btn.ghost{background:var(--card);color:var(--ink);border:1px solid var(--line)}
:root body.v2 #worksheet-modal{width:960px}
:root body.v2 #v2-settings{width:600px}
:root body.v2 #v2-library-dialog{width:520px}
:root body.v2 #v2-library-dialog label{display:grid;gap:8px;font-size:14px}
:root body.v2 #v2-library-dialog input{width:100%;font-size:16px}
.v2-library-item{display:block;margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:var(--radius-control);text-decoration:none;font-size:14px}
:root body.v2 .worksheet-content{background:transparent;color:var(--ink);border:0;box-shadow:none;padding:0}
:root body.v2 .worksheet-content>h2{display:none}
:root body.v2 .worksheet-row{border-color:var(--line);background:transparent}
:root body.v2 .worksheet-online-input,:root body.v2 .worksheet-online-select{background:var(--card);color:var(--ink);border:1px solid #8792ad;border-radius:var(--radius-control);min-height:44px;font:16px/1.4 system-ui,sans-serif}
:root body.v2 .release-note-item{border:1px solid var(--line);border-radius:var(--radius-control);margin:0 0 12px;padding:12px;background:var(--rail)}
@media(max-width:700px){:root body.v2 .v2-header{padding:10px 16px;gap:6px}:root body.v2 .v2-brand{font-size:22px}:root body.v2 .v2-header .v2-desktop-nav{display:none}:root body.v2 #v2-menu-toggle{display:inline-flex}:root body.v2 .v2-header nav>button{width:36px;padding:7px}:root body.v2 .v2-header nav>.v2-account{width:36px;height:36px;min-height:36px;margin-left:6px}.v2-account:before{left:-4px;height:36px}:root body.v2 .v2-header nav{gap:0}:root body.v2 .v2-footer{padding:18px 16px;gap:10px}:root body.v2 .v2-footer-links{margin:0;width:100%;justify-content:flex-start}:root body.v2 .v2-quote{width:100%}:root body.v2 dialog>:is(.modal-body,.worksheet-modal-body,.release-notes-body,#v2-progress-content,#v2-settings-form){padding:16px}:root body.v2 dialog>.modal-head{padding:14px 16px}:root body.v2 :is(#support-box,#task-hint-box),:root body.v2 #exercise-orientation-box{padding:18px 12px}:root body.v2 .assist-panel-toolbar{float:none;justify-content:flex-end;margin:0 0 10px}:root body.v2 .support-title{padding:0}:root body.v2 #uitwerking .math-chain-original{font-size:24px}}
@media print{:root body.v2 #worksheet-modal[open]{display:block;position:static;width:100%;max-height:none;border:0;box-shadow:none;overflow:visible}:root body.v2 #worksheet-modal>.worksheet-modal-body{overflow:visible;max-height:none;padding:0}:root body.v2 #worksheet-modal>.modal-head{display:none}:root body.v2 .worksheet-content>h2{display:block}}
:root body.v2 .fraction-solution-chain{display:flex;flex-direction:column;align-items:stretch;gap:0;max-width:100%;text-align:center}
:root body.v2 .fraction-solution-step{width:100%;margin:18px 0;text-align:center;min-width:0}
:root body.v2 .fraction-step-note{font:var(--text-body)/var(--text-leading) var(--body);color:var(--muted);text-align:center;margin:10px 0}
:root body.v2 .fraction-step-math{font:26px/1.8 OLMath,math;text-align:center;max-width:100%;overflow-x:auto}
:root body.v2 .fraction-step-math .math-expression-row{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px;max-width:100%;font:inherit}
:root body.v2 .fraction-step-arrow{font:24px/1.5 OLMath,math;text-align:center;color:var(--muted)}
@media(max-width:700px){:root body.v2 .fraction-step-math{font-size:24px}}
:root body.v2 .v2-footer,:root body.v2 .v2-footer *{text-transform:none;letter-spacing:normal;font-family:system-ui,sans-serif}
:root body.v2 :is(#support-box,#task-hint-box) .support-title{font:600 16px/1.5 system-ui,sans-serif;color:var(--ink);margin:0 0 14px}
:root body.v2 .fraction-step-arrow{align-self:center;justify-self:center;width:100%;text-align:center}
:root body.v2 .fraction-solution-step:last-child .fraction-step-math .math-expression-row{background:var(--v2-correct-bg);color:var(--green);padding:4px 8px;border-radius:4px}
:root body.v2 #uitwerking .assist-panel-content>h3{color:var(--ink)}
:root body.v2 dialog[open]{position:fixed;inset:0;margin:auto;transform:none}
:root body.v2 #help-modal .modal-body h3{font:600 16px/1.5 system-ui,sans-serif;color:var(--ink);margin:22px 0 12px}
:root body.v2 #help-modal .eyebrow{font:12px/1.5 system-ui,sans-serif;letter-spacing:0;text-transform:none;color:var(--muted)}
:root body.v2 dialog .btn:not(.ghost){background:var(--accent);border-color:var(--accent);color:#fff}
:root[data-theme=dark] body.v2 dialog .btn:not(.ghost){color:var(--on-accent)}
:root body.v2 #worksheet-modal :is(.worksheet-online-input,.worksheet-online-select){font:16px/1.4 system-ui,sans-serif;color:var(--ink);background:var(--card)}
/* Answer-choice policy: 2–6 options are visible radio buttons, never preselected. */
:root body.v2 .answer-choice-buttons{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:10px;max-width:100%}
:root body.v2 .answer-choice-buttons label{position:relative;display:flex;min-width:64px;max-width:100%;margin:0;flex:0 1 auto;cursor:pointer}
:root body.v2 .answer-choice-buttons label>span{display:flex;align-items:center;justify-content:center;min-height:48px;min-width:64px;width:100%;padding:10px 16px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card);color:var(--ink);font:18px/1.5 system-ui,sans-serif;white-space:normal;overflow-wrap:anywhere;text-align:center}
:root body.v2 .answer-choice-buttons input:checked+span{background:var(--soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);color:var(--accent)}
:root body.v2 .answer-choice-buttons input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}
:root body.v2 .answer-choice-buttons input:disabled+span{opacity:.55;cursor:default}
:root body.v2 .answer-choice-buttons input{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;clip-path:inset(50%);overflow:hidden;padding:0!important;border:0!important}
:root body.v2 .answer-choice-buttons.answer-choice-long{width:100%;flex-direction:column}
:root body.v2 .answer-choice-long label{width:100%}
:root body.v2 .answer-choice-long label>span{font-size:15px;text-align:left;justify-content:flex-start}
/* Status messages use the shared palette and icons in feedback.css:
   correct = green, wrong = red, assisted = blue, invalid = purple,
   skipped/timeout = neutral. Each theme defines readable ink/background pairs.
   These are passive status messages; only contextual help actions are buttons. */
:root body.v2 #feedback:has(.v2-error-icon){display:none}
:root body.v2 #feedback-hint.is-error{border:1px solid color-mix(in srgb,#a74350 22%,var(--line));border-left-width:1px;background:color-mix(in srgb,#a74350 4%,var(--bg));border-radius:var(--radius-card);padding:14px 16px;box-shadow:none;text-align:left;font:var(--text-body)/var(--text-leading) var(--body)}
:root body.v2 .v2-feedback-title{display:inline;white-space:nowrap;font-weight:600;color:var(--status-wrong-ink)}
:root[data-theme=dark] body.v2 .v2-feedback-title{color:var(--status-wrong-ink)}
:root body.v2 .v2-feedback-title svg{display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-2px;stroke-width:1.5}
:root body.v2 #feedback-hint .feedback-assist-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:6px 0 0}
:root body.v2 #feedback-hint .feedback-assist-actions button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:3px 0;border:0;border-radius:4px;background:transparent;color:var(--muted);font:500 13px/1.5 system-ui,sans-serif;text-decoration:none;box-shadow:none}
:root body.v2 #feedback-hint .feedback-assist-actions button:hover{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
:root body.v2 #feedback-hint .feedback-assist-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(pointer:coarse){:root body.v2 #feedback-hint .feedback-assist-actions button{min-height:44px}}
/* Error review remains a secondary action, with a red text cue. */
:root body.v2 #exercise+.session-actions #toolbar #review-errors-btn{color:var(--status-wrong-ink)}
:root[data-theme=dark] body.v2 #exercise+.session-actions #toolbar #review-errors-btn{color:var(--status-wrong-ink)}
/* Worksheet launch is a quiet icon within the shared series control. */
:root body.v2 #exercise+.session-actions #toolbar #worksheet-launch-group #worksheet-btn{background:transparent;border:0;box-shadow:none;border-radius:var(--radius-control);margin-right:4px;padding:7px 9px}

/* Session actions share one outer height; segmented buttons fit inside it. */
:root body.v2 #toolbar #review-errors-btn,:root body.v2 #toolbar #worksheet-launch-group,:root [id^="ol-"] .session .retry,:root [id^="ol-"] .session .series{box-sizing:border-box;height:44px!important;min-height:44px!important;display:inline-flex;align-items:center}
:root body.v2 #toolbar #worksheet-launch-group,:root [id^="ol-"] .session .series{padding:3px!important}
:root body.v2 #toolbar #worksheet-launch-group button,:root [id^="ol-"] .session .series button{box-sizing:border-box;height:36px!important;min-height:36px!important;padding-top:0!important;padding-bottom:0!important;display:inline-flex;align-items:center;justify-content:center}

/* Shared control sizes: a text field and its submit button occupy the same row. */
:root body.v2{--control-height:44px}
/* A browser-wide duration; applying/cancelling follows the settings dialog. */
:root body.v2 #v2-settings-fields .setting.v2-timer-setting{flex-wrap:wrap;gap:8px 10px}
.v2-timer-setting>label.text{flex:1;min-width:0}
.v2-timer-duration{width:100%;padding-left:28px}
:root body.v2 #v2-timer-seconds{display:block;width:100%;height:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;accent-color:var(--accent)}
.v2-timer-range-labels{display:flex;justify-content:space-between;gap:var(--space-item,12px);font-size:var(--text-small);color:var(--muted)}
#v2-timer-preference-note{margin:var(--space-small,8px) 0 0;color:var(--muted);font-size:var(--text-ui);line-height:1.6}
:root body.v2 #answer-form :is(input:not([type=hidden]):not([type=radio]):not([type=checkbox]),select),
:root body.v2 #answer-form :is(#controleer,#next){box-sizing:border-box;height:var(--control-height);min-height:var(--control-height);padding-block:8px;line-height:1.4}

/* Scrollable level lists may scroll, but must never compress multiline rows. */
:root body.v2 .niveau-row .niveau-btn{flex:0 0 auto;height:auto;min-height:48px;align-content:center;grid-template-columns:20px minmax(0,1fr) 20px;padding:12px 10px}
:root body.v2 .niveau-row .niveau-btn>span{margin:0;font-size:13px;line-height:1.5}
:root body.v2 .niveau-row .v2-level-label{min-width:0;white-space:normal;overflow-wrap:anywhere}
:root body.v2 .niveau-row .niveau-btn:not(.active):hover{background:var(--card);color:var(--ink)}

/* All exercise actions share hover, focus and touch target behaviour. */
:root body.v2 :is(.exercise-help-actions,.task-help-actions) :is(#help-action,#solution-action,#help-btn,#skip,#task-hint,#task-solution){min-height:44px;background:transparent;color:var(--ink);border:0;box-shadow:none}
:root body.v2 :is(.exercise-help-actions,.task-help-actions) :is(#help-action,#solution-action,#help-btn,#skip,#task-hint,#task-solution):hover:not(:disabled){background:var(--card);color:var(--accent)}
:root body.v2 :is(.exercise-help-actions,.task-help-actions) :is(#help-action,#solution-action,#help-btn,#skip,#task-hint,#task-solution):focus-visible{outline:2px solid var(--accent);outline-offset:2px;background:var(--card)}

/* Session data is interface text, never mathematical typesetting. */
:root body.v2 #exercise+.session-actions #session-summary{min-width:0;max-width:100%}
:root body.v2 #exercise+.session-actions .score-toggle{min-height:44px;margin:0;padding:4px 0;background:transparent;border:0;box-shadow:none}
:root body.v2 #exercise+.session-actions .session-mini-label{margin:0;font:600 13px/1.5 var(--body)}
:root body.v2 #exercise+.session-actions .score-chevron{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;line-height:1;transform-origin:center}
:root body.v2 .score-chevron svg{display:block;width:16px;height:16px}
:root body.v2 #exercise+.session-actions .score-value,:root body.v2 #exercise+.session-actions .score-value b{font:600 13px/1.5 var(--body);font-variant-numeric:tabular-nums;color:var(--accent)}
:root body.v2 #session-summary #score-details{width:100%;max-width:650px;margin-top:8px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-card);background:var(--card);font:13px/1.55 var(--body)}
:root body.v2 #score-details .summary-top{font:13px/1.5 var(--body);align-items:center;justify-content:space-between;gap:8px 16px}
:root body.v2 #score-details .status-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;margin-top:16px}
:root body.v2 #score-details .status-chip{padding:10px 8px;background:var(--rail);border:1px solid var(--line);border-radius:var(--radius-card);font:12px/1.5 var(--body)}
:root body.v2 #score-details .status-chip b{display:block;font:650 16px/1.5 var(--body);font-variant-numeric:tabular-nums;color:var(--ink)}
:root body.v2 #score-details :is(.score-rule,#learning-note){font:12px/1.6 var(--body);text-align:left;margin:14px 0 0;color:var(--muted)}
:root body.v2 #score-details #reset{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--ink);font:500 13px/1.5 var(--body);text-decoration:none}
:root body.v2 #score-details #reset:hover{background:var(--soft);border-color:var(--accent);color:var(--accent)}

/* Equation alignment keeps its three columns without a fixed mobile minimum. */
:root body.v2 :is(.v2-original,.math-equation-row,.math-chain-transition){min-width:0;max-width:100%}
:root body.v2 .v2-original .math-equation-row:not(.rationalize-equation){grid-template-columns:minmax(0,1fr) 1.5rem minmax(0,1fr);width:100%;gap:5px}
:root body.v2 .math-equation-row.v2-fit-equation{grid-template-columns:minmax(0,var(--v2-equation-left,1fr)) 1.5rem minmax(0,var(--v2-equation-right,1fr));font-size:var(--v2-equation-size,inherit)}
@media(min-width:561px){
 :root body.v2 .math-equation-row.rationalize-equation{width:100%;grid-template-columns:minmax(0,1fr) 1.5rem minmax(0,1fr)}
 :root body.v2 .rationalize-equation .math-equation-left{grid-column:1;grid-row:1;width:100%;justify-self:end;text-align:right}
 :root body.v2 .rationalize-equation .math-equation-equals{grid-column:2;grid-row:1}
 :root body.v2 .rationalize-equation .math-equation-right{grid-column:3;grid-row:1;width:100%;justify-self:start}
}

/* Context problems are prose, even when their authored container is exercise-main. */
:root body.v2 :is(.density-main,.percentage-main,.chem-calc-question .exercise-main){font:400 18px/1.65 var(--body);letter-spacing:normal}
:root body.v2 :is(.formula-guided-note,.formula-self-help){font:400 14px/1.6 var(--body)}
:root body.v2 #uitwerking h3{font:600 16px/1.5 var(--body);color:var(--ink)}
:root body.v2 #uitwerking .math-chain-transition{display:block;margin:28px auto 0;padding:0;text-align:center}
:root body.v2 #uitwerking .math-operation-label{justify-self:center;margin:10px auto}
:root body.v2 .formula-route-operations{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
:root body.v2 .formula-operation{white-space:normal;overflow-wrap:anywhere;min-width:0;min-height:44px}
:root body.v2 .level-orientation{padding-right:44px}
:root body.v2 .level-orientation-close{width:36px;height:44px;min-height:44px;padding:0;border:0;background:transparent;box-shadow:none;font-size:19px}

/* Compound notation stays together inside a narrow worksheet answer column. */
:root body.v2 #worksheet-modal .scientific-worksheet-blank{max-width:100%;gap:4px}
:root body.v2 #worksheet-modal .scientific-worksheet-blank .worksheet-mantissa{width:88px;min-width:0}
:root body.v2 #worksheet-modal .scientific-worksheet-blank .worksheet-exponent{width:44px;min-width:0;padding-inline:4px}
:root body.v2 #worksheet-modal .scientific-worksheet-blank sup{flex:0 0 44px}

/* Read the input instruction before entering an answer. Step titles stay authoritative. */
:root body.v2 .v2-input-instruction,:root body.v2 .v2-step-input-cue{margin:0 0 16px;font:500 14px/1.6 var(--body);color:var(--ink);text-align:center;overflow-wrap:anywhere}
:root body.v2 .v2-input-instruction[hidden]{display:none}

/* Review wraps according to content width, not a mobile breakpoint. */
:root body.v2 .exercise-history-summary{width:min(100%,var(--answer-block-width,650px));display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}
:root body.v2 .exercise-history-result{display:contents}
:root body.v2 .exercise-history-answer{order:0;flex:0 1 auto;min-width:0;max-width:100%;overflow-wrap:anywhere}
:root body.v2 .exercise-history-answer:empty{display:none}
:root body.v2 .exercise-history-summary #feedback-hint{order:1;flex:0 1 auto;width:fit-content;max-width:100%;margin:0 0 0 auto}
:root body.v2 .exercise-history-summary #answer-feedback-details{display:flex;flex-wrap:wrap;gap:8px 16px;order:2;flex:0 1 100%;min-width:0;max-width:100%;margin:0;overflow-wrap:anywhere}
:root body.v2 .exercise-history-summary:has(.exercise-history-answer:empty) #answer-feedback-details{order:0;flex-basis:auto}


/* A status with a self-check is a reading block below all answer details. */
:root body.v2 .exercise-history-summary #feedback-hint:has(.v2-completion-check){order:3;flex:0 0 100%;width:100%;margin:4px 0 0}

/* Worked examples follow the exercise's centred question and canonical solution flow. */
:root body.v2 .exercise-orientation-example{max-width:740px;margin:16px auto 24px;padding:24px;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-card)}
:root body.v2 .exercise-orientation-question{padding:0 0 20px;text-align:center}
:root body.v2 .exercise-orientation-question .exercise-question{align-items:center;text-align:center}
:root body.v2 .exercise-orientation-question .exercise-prompt{display:block}
:root body.v2 .exercise-orientation-question .exercise-main{margin:20px 0 0;text-align:center}
:root body.v2 .exercise-orientation-question :is(.density-main,.percentage-main,.chem-calc-question>.exercise-main){text-align:left}
:root body.v2 .exercise-orientation-solution{margin:20px auto 0;max-width:650px}
:root body.v2 .exercise-orientation-solution .math-solution-chain{background:transparent;border:0;border-radius:0;padding:0}
:root body.v2 .exercise-orientation-solution .math-chain-original{font:26px/1.8 OLMath,math;margin:0 0 20px;text-align:center}
:root body.v2 .exercise-orientation-solution .v2-example-repeated{display:none}
:root body.v2 .exercise-orientation-solution .math-chain-transition{margin:24px 0 0}
:root body.v2 .exercise-orientation-solution .math-chain-transition:first-child{margin-top:0}
:root body.v2 .exercise-orientation-solution .math-chain-result.final{border:0;padding:8px 0;margin:0;color:var(--green)}
:root body.v2 .exercise-orientation-solution mark:not(.solution-change):not(.math-step-change){background:var(--v2-correct-bg);color:var(--green)}
/* Number and instruction form one wrapping heading; the arrow connects the preceding result. */
:root body.v2 :is(#uitwerking,.math-solution-chain) .math-chain-transition.v2-compact-transition{display:block;min-height:0;margin:14px auto 0;padding:0;text-align:center}
:root body.v2 .math-chain-transition.v2-compact-transition>.math-chain-arrow{display:block;font-size:20px;line-height:1;margin:0 auto 6px}
:root body.v2 .v2-compact-transition>.v2-step-heading{margin:0;padding:0;font:400 14px/1.5 var(--body);color:var(--muted);white-space:normal;overflow-wrap:anywhere;text-align:center}
:root body.v2 :is(#uitwerking,.math-solution-chain) .v2-step-heading>.v2-step-number{display:inline;margin:0;padding:0;font:600 14px/1.5 var(--body);color:var(--ink);white-space:nowrap}
:root body.v2 :is(#uitwerking,.math-solution-chain) .v2-step-heading>.math-operation-label{display:inline;margin:0;padding:0;font:inherit;color:inherit}
:root body.v2 .fraction-solution-chain .v2-fraction-heading{margin:6px 0 4px;font:400 14px/1.5 var(--body);color:var(--muted);text-align:center}
:root body.v2 .fraction-solution-chain .v2-fraction-heading>.v2-step-number{display:inline;margin:0;padding:0;font:600 14px/1.5 var(--body);color:var(--ink)}
:root body.v2 .fraction-solution-chain .v2-fraction-heading>.fraction-step-note{display:inline;margin:0;padding:0;font:inherit;color:inherit}
:root body.v2 .fraction-solution-chain .fraction-step-arrow{margin:14px auto 6px;font-size:20px;line-height:1}
@media(max-width:700px){
 :root body.v2 .exercise-orientation-example{padding:18px 12px}
 :root body.v2 .exercise-orientation-question .exercise-prompt{font-size:20px}
 :root body.v2 .exercise-orientation-question .exercise-main{font-size:30px}
 :root body.v2 .exercise-orientation-solution .math-chain-original{font-size:24px}
}
:root body.v2 .exercise-orientation-solution h3{font:600 16px/1.5 var(--body);color:var(--ink);text-align:center;margin:0 0 16px}
:root body.v2 .exercise-orientation-solution .linear-solution-explanation>p{text-align:center}
:root body.v2 .exercise-orientation-solution .linear-solution-chain{background:transparent;border:0;padding:16px 0;max-width:100%}
:root body.v2 .exercise-orientation-solution .linear-chain-equation{font:26px/1.8 OLMath,math}
:root body.v2 .exercise-orientation-solution .linear-chain-result.final{background:transparent;border:0;color:var(--green)}
:root body.v2 .exercise-orientation-solution mark.linear-change{background:var(--yellow);color:var(--ink)}
:root body.v2 .exercise-orientation-solution .fraction-solution-step:last-child .math-frac{color:inherit}
@media(max-width:700px){:root body.v2 .exercise-orientation-solution .linear-chain-equation{font-size:24px}}
:root body.v2 .exercise-orientation-solution .linear-equation-row,:root body.v2 .exercise-orientation-solution .linear-chain-transition{grid-template-columns:minmax(0,1fr) 2rem minmax(0,1fr);column-gap:4px;min-width:0}
:root body.v2 .exercise-orientation-solution .linear-change{background:var(--yellow);color:var(--ink)}
:root body.v2 .exercise-orientation-solution .linear-chain-result.final :is(.linear-equation-row,.linear-equation-side,.linear-equation-equals){color:var(--green)}

/* Animate colour and brightness together; gradients cannot interpolate on hover. */
:root body.v2{--button-hover-brightness:.92}
:root[data-theme=dark] body.v2{--button-hover-brightness:1.16}
:root body.v2 :is(button,a.btn,.v2-home-open-tool,[role=button],input[type=button],input[type=submit]):not(:where(.calculator-panel *)),
:root body.v2 .answer-choice-buttons label>span{
  transition:background-color var(--motion-color,160ms) ease,color var(--motion-color,160ms) ease,border-color var(--motion-color,160ms) ease,filter var(--motion-color,160ms) ease;
}
@media(hover:hover) and (pointer:fine){
  :root body.v2 :is(button,a.btn,.v2-home-open-tool,[role=button],input[type=button],input[type=submit]):not(:where(.calculator-panel *)):not(:disabled):not([aria-disabled=true]):hover,
  :root body.v2 .answer-choice-buttons label:hover>input:not(:disabled)+span{
    filter:brightness(var(--button-hover-brightness));
  }
}
@media(prefers-reduced-motion:reduce){
  :root body.v2 :is(button,a.btn,.v2-home-open-tool,[role=button],input[type=button],input[type=submit]):not(:where(.calculator-panel *)),
  :root body.v2 .answer-choice-buttons label>span{transition:none}
}

/* Placeholder text uses the same size as the answer it introduces. */
:root body.v2 #answer-form input::placeholder{font-size:inherit}

/* One neutral hover surface across v2; semantic primary/answer states stay distinct. */
:root body.v2{--control-hover-bg:var(--soft);--control-hover-ink:var(--accent)}
:root body.v2 :is(.v2-favorite-toggle,.v2-home-open-tool,.v2-catalog-favorite,.v2-catalog-back,.v2-catalog-row,.v2-saved-open,.modal-close,.help-copy-link,.assist-panel-control,.assist-panel-close,.niveau-btn:not(.active),#help-action,#solution-action,#help-btn,#skip):hover:not(:disabled):not([aria-disabled=true]){background:var(--control-hover-bg);color:var(--control-hover-ink)}

/* Shared text roles: the mobile layout wraps content rather than shrinking type.
   Keep these selectors on prose/controls, never on formula descendants. */
:root body.v2{font-family:var(--body);font-size:var(--text-body)}
:root body.v2 textarea{font-family:var(--body);font-size:16px;line-height:1.5}
:root body.v2 :is(#v2-mobile-menu a,#v2-mobile-menu button,.v2-catalog-kicker,#v2-level-details>summary,#custom-level-btn){font-family:var(--body);font-size:var(--text-ui);line-height:1.5}
:root body.v2 dialog :is(.setting label,.setting legend){font-family:var(--body);font-size:var(--text-ui);line-height:1.5}
:root body.v2 dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
:root body.v2 :is(.support-title,#uitwerking h3,.math-step-active h2){font-family:var(--body);font-size:var(--title-card);line-height:1.5}
:root body.v2 :is(.v2-library-item,.v2-recommendation-start,.v2-saved-open){font-family:var(--body);font-size:var(--text-ui);line-height:1.5}
:root body.v2 #answer-form :is(#controleer,#next){font-size:var(--text-ui)}

/* Matching containers share an inset; compact lists keep their own row rhythm. */
@media screen{
 :root body.v2 .v2-levels{padding:var(--panel-inset, 20px)}
 :root body.v2 .v2-modal-actions{gap:var(--space-item, 12px)!important;padding-top:var(--space-block, 16px)!important}
}
@media screen and (max-width:700px){:root body.v2{--panel-inset:16px}}

/* Surface roles preserve focus outlines, status colours and selection rings. */
@media screen{
 :root body.v2 :is(button,input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea):not(:where(.calculator-panel *)){border-radius:var(--radius-control)}
 :root body.v2 :is(.v2-levels,#session-summary #score-details,.release-note-item,.exercise-orientation-example){border-radius:var(--radius-card);box-shadow:none}
 :root body.v2 .v2-library-item{border-radius:var(--radius-card);box-shadow:none}
 :root body.v2 :is(.math-step-option,.answer-choice-buttons label>span){border-radius:var(--radius-control)}
}
@media screen{
 :root body.v2 #answer-form input:not([type=radio]):not([type=checkbox]),:root body.v2 :is(.worksheet-online-input,.worksheet-online-select){border-radius:var(--radius-control);box-shadow:none}
}

/* SVG action icons share optical size/stroke; compact status marks stay smaller. */
:root body.v2{--icon-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 9 7 7 7-7' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
:root body.v2 :is(.v2-ui-icon,.v2-header svg:not(.v2-brand-mark),.v2-footer svg,.v2-catalog-back svg,.v2-favorite-toggle svg,.v2-catalog-favorite svg,.v2-home-open-tool svg,:is(.exercise-help-actions,.task-help-actions) svg,.exercise-history-button svg,.assist-panel-control svg,.assist-panel-close svg,.modal-close svg,#worksheet-btn svg){display:inline-block;width:20px;height:20px;flex:0 0 20px;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
/* Paint the star itself so generic SVG and hover rules cannot hide its saved state. */
:root body.v2 :is(.v2-favorite-toggle,.v2-catalog-favorite)[aria-pressed=true] svg path{fill:var(--accent);stroke:var(--accent)}
:root body.v2 :is(a,button)>.v2-ui-icon{vertical-align:-4px}
:root body.v2 .v2-catalog-chevron{display:inline-flex;align-items:center;justify-content:center;line-height:1}
:root body.v2 :is(.v2-catalog-chevron,.v2-feedback-title) svg{width:16px;height:16px;flex-basis:16px;stroke-width:1.6}

:root body.v2 .v2-brand .v2-brand-mark{display:block;width:24px;height:24px;flex:none}
:root body.v2 .v2-home-tool-icon .v2-math-logo{width:100%;height:100%;fill:currentColor;stroke:none;overflow:visible}

:root body.v2 :is(.v2-home-future,.v2-help-depth,.v2-help-toc,.v2-recommended-tool details)>summary{list-style:none}
:root body.v2 :is(.v2-home-future,.v2-help-depth,.v2-help-toc,.v2-recommended-tool details)>summary::-webkit-details-marker{display:none}
:root body.v2 :is(.v2-home-future,.v2-help-depth,.v2-help-toc,.v2-recommended-tool details)>summary::before{content:'';display:inline-block;width:16px;height:16px;margin-right:8px;vertical-align:-3px;background:currentColor;mask:var(--icon-chevron) center/contain no-repeat;-webkit-mask:var(--icon-chevron) center/contain no-repeat;transform:rotate(-90deg)}
:root body.v2 :is(.v2-home-future,.v2-help-depth,.v2-help-toc,.v2-recommended-tool details)[open]>summary::before{transform:none}

/* Control contract: standalone targets 44px, segmented interiors 36px.
   Large answer cards, the hero search and multiline labels may remain taller. */
:root body.v2{--control-compact-height:36px;--control-disabled-opacity:.5;--control-active-brightness:.86}
:root[data-theme=dark] body.v2{--control-active-brightness:1.24}
:root body.v2 :is(.assist-panel-control,.assist-panel-close,.exercise-history-button,.v2-catalog-back,.level-orientation-close){width:var(--control-height);min-width:var(--control-height);height:var(--control-height);min-height:var(--control-height);flex-shrink:0}
:root body.v2 .v2-levels .v2-catalog-back{width:var(--control-height);min-width:var(--control-height);height:var(--control-height);min-height:var(--control-height);flex-basis:var(--control-height)}
:root body.v2 :is(.v2-modal-actions button,.modal-foot button,#v2-mobile-menu button,.v2-home-year-ticks button,#v2-home-additions,.weekly-moment-more){min-height:var(--control-height)}
:root body.v2 [data-exercise-mode]{min-height:var(--control-compact-height)}
:root body.v2 dialog :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select){box-sizing:border-box;height:var(--control-height);min-height:var(--control-height);padding-block:8px;line-height:1.4}
:root body.v2 textarea{min-height:88px;resize:vertical;padding:8px 12px;border:1px solid var(--line);background:var(--card);color:var(--ink);box-shadow:none}
:root body.v2 :is(button,a,input,select,textarea,summary,[role=button]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}
:root body.v2 :is(.exercise-help-actions,.task-help-actions) :is(#help-action,#solution-action,#help-btn,#skip,#task-hint,#task-solution):focus-visible{outline-offset:3px}
:root body.v2 :is(button,input,select,textarea):disabled,:root body.v2 [aria-disabled=true],:root body.v2 .answer-choice-buttons input:disabled+span{opacity:var(--control-disabled-opacity);cursor:default;filter:none;transform:none}
:root body.v2 :is(input,textarea)[readonly]{background:var(--rail)}
:root body.v2 :is(button,a.btn,[role=button]):not(:disabled):not([aria-disabled=true]):active,
:root body.v2 .answer-choice-buttons label:active>input:not(:disabled)+span{filter:brightness(var(--control-active-brightness));transform:none}
:root body.v2 :is(.equation-mode-buttons,.worksheet-count-inline) button[aria-pressed=true]{background:var(--card);color:var(--ink)}
@media(hover:hover) and (pointer:fine){
 :root body.v2 :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea):not(:disabled):not([readonly]):not([aria-invalid=true]):hover{border-color:var(--accent)}
}

:root body.v2 .math-step-option.selected:not(.correct):not(.rejected){background:var(--soft);border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
@media(hover:hover) and (pointer:fine){
 :root body.v2 .math-step-option:not(:disabled):not(.selected):not(.correct):not(.rejected):hover{background:var(--soft);border-color:var(--accent)}
}

:root[data-theme=dark] body.v2 :is(.btn:not(.ghost),#controleer,#next){color:var(--on-accent)}

/* Paint to the viewport edges without widening the shared content container. */
.v2-header,.v2-footer{position:relative;isolation:isolate;width:100%}
.v2-header::after,.v2-footer::after{content:'';position:absolute;left:0;right:0;height:1px;background:var(--line);box-shadow:0 0 0 100vmax var(--line);clip-path:inset(0 -100vmax);pointer-events:none}
.v2-header{border-bottom-color:transparent}
.v2-header::after{bottom:-1px}
.v2-footer{border-top-color:transparent;background:transparent}
.v2-footer::after{top:-1px}
.v2-footer::before{content:'';position:absolute;inset:-1px 0 0;background:var(--rail);box-shadow:0 0 0 100vmax var(--rail);clip-path:inset(0 -100vmax);z-index:-1;pointer-events:none}

/* Compacte reeksnavigatie; de opgave blijft het hoofdonderdeel. */
:root body.v2 #review-practice{max-width:760px;margin:0 auto 24px;padding:0 0 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;min-width:0}
:root body.v2 .review-practice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
:root body.v2 .review-practice-heading>strong{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;border:1px solid var(--status-wrong-border);border-radius:var(--radius-control,9px);background:var(--status-wrong-bg);color:var(--status-wrong-ink);font-size:14px;font-weight:600}
:root body.v2 #review-practice nav{display:flex;align-items:center;gap:6px;margin:0}
:root body.v2 #review-practice nav [role=status]{font-size:13px;text-align:center;min-width:110px;font-variant-numeric:tabular-nums}
:root body.v2 #review-practice button{min-height:44px;padding:6px 10px;border:1px solid transparent;background:transparent;color:var(--muted);box-shadow:none;font-size:12px;font-weight:500;white-space:normal}
:root body.v2 #review-practice button:hover:not(:disabled){background:var(--rail);color:var(--ink)}
:root body.v2 #review-practice button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
:root body.v2 #review-practice .review-page-button{min-width:44px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink);border-color:var(--line)}
:root body.v2 .review-page-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:root body.v2 .review-practice-meta{display:flex;align-items:center;justify-content:space-between;gap:4px 16px;flex-wrap:wrap;margin-top:6px}
:root body.v2 #review-practice p{margin:4px 0;font-size:12px;line-height:1.5;color:var(--muted)}
:root body.v2 .review-practice-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
:root body.v2 #review-practice .review-practice-actions button{padding:8px 12px;border-color:var(--line);background:var(--card);color:var(--ink);text-decoration:none}
:root body.v2 .review-previous-answers{font-size:12px;color:var(--muted);margin-top:4px}
:root body.v2 .review-previous-answers summary{cursor:pointer;width:fit-content;padding:5px 0}
#review-start{margin:0 0 16px;white-space:normal;max-width:100%}
@media(max-width:480px){:root body.v2 #review-practice{margin-bottom:20px}:root body.v2 .review-practice-heading{gap:6px}:root body.v2 #review-practice nav{gap:2px}:root body.v2 #review-practice nav [role=status]{min-width:100px}:root body.v2 .review-practice-actions{gap:4px 12px}:root body.v2 #review-practice .review-practice-actions button{font-size:11px}}
@media print{.review-practice,#review-start{display:none!important}}

/* Open schoolwork counts and deadline attention, shared by v2 pages. */
body.v2{--v2-overdue-bg:#fff1f1;--v2-overdue-line:#d56a75;--v2-overdue-ink:#9f2635}:root[data-theme=dark] body.v2{--v2-overdue-bg:#352127;--v2-overdue-line:#be6673;--v2-overdue-ink:#ffb6c0}
body.v2 .v2-assignment-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:20px;height:20px;padding:0 5px;margin-left:6px;border-radius:999px;background:#c62e43;color:white;font:700 11px/1 system-ui,sans-serif;vertical-align:middle}body.v2 .is-overdue{background:var(--v2-overdue-bg);border-color:var(--v2-overdue-line)}body.v2 .is-overdue>a,body.v2 a.is-overdue,body.v2 .is-overdue>.learn-empty{color:var(--v2-overdue-ink)}body.v2 .is-overdue .learn-item{border-color:var(--v2-overdue-line);background:var(--v2-overdue-bg)}

/* Account content: identity, editable profile, then session actions. */
:root body.v2 #v2-account-dialog .modal-body{display:flex;flex-direction:column;gap:20px}
:root body.v2 #v2-account-dialog h3{margin:0;font:600 14px/1.4 var(--body);color:var(--ink)}
:root body.v2 #v2-account-dialog .v2-account-identity{padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--rail)}
:root body.v2 #v2-account-dialog .v2-account-identity h3{font-size:11px;color:var(--muted);margin-bottom:5px}
:root body.v2 #v2-account-dialog [data-account-identity]{margin:0;font-size:14px;font-weight:500}
:root body.v2 #v2-account-dialog .v2-account-settings{margin:0;padding:0}
:root body.v2 #v2-account-dialog .v2-account-field{margin-top:16px}
:root body.v2 #v2-account-dialog .v2-account-field label,:root body.v2 #v2-account-dialog .v2-account-field-label{display:block;font:500 12px/1.5 var(--body);color:var(--muted)}
:root body.v2 #v2-account-dialog .v2-account-name-row{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px;margin-top:6px}
:root body.v2 #v2-account-dialog #v2-account-name-help{margin:6px 0 0}
:root body.v2 #v2-account-dialog .v2-account-class-row{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:12px;margin:16px 0 0;padding-top:16px;border-top:1px solid var(--line)}
:root body.v2 #v2-account-dialog .v2-account-class-row strong{display:block;margin-top:3px;font-size:14px;font-weight:600}
:root body.v2 #v2-account-dialog .v2-account-footer{margin:0;padding:20px 0 0;border-top:1px solid var(--line)}
:root body.v2 #v2-account-dialog .v2-account-session-row{display:grid;grid-template-columns:minmax(0,1fr) 100px;align-items:start;gap:12px}
:root body.v2 #v2-account-dialog [data-account-logout-help]{margin:6px 0 0;max-width:310px}
:root body.v2 #v2-account-dialog .v2-account-storage{margin-top:16px;color:var(--muted);font:12px/1.6 var(--body)}
:root body.v2 #v2-account-dialog .v2-account-storage summary{cursor:pointer;width:fit-content}
:root body.v2 #v2-account-dialog .v2-account-storage p{margin:8px 0 0}
:root body.v2 #v2-account-dialog [data-account-status]{margin:0}

/* Short pages fill the screen; long pages keep the footer in normal flow. */
@media screen{
 :root body.v2>.v2-wrap,:root body.v2-help-page>.site-wrap{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh}
 :root body.v2>.v2-wrap>*, :root body.v2-help-page>.site-wrap>*{flex-shrink:0}
 :root body.v2>.v2-wrap>.v2-footer,:root body.v2-help-page>.site-wrap>.v2-footer{margin-top:auto}
}

/* Prose lists: shared indentation and rhythm, preserving navigation/card lists. */
:root body.v2 :is(.help-tool-detail-body,#help-modal .modal-body,.release-note-item,.assist-panel-content) :is(ul,ol):not([class]),
:root body.v2 :is(.help-tool-detail-body,#help-modal .modal-body) .rule-list:not(.help-related-list){padding-inline-start:1.6em;margin-block:var(--space-item,12px);max-width:none}
:root body.v2 :is(.help-tool-detail-body,#help-modal .modal-body,.release-note-item,.assist-panel-content) :is(ul,ol):not([class])>li,
:root body.v2 :is(.help-tool-detail-body,#help-modal .modal-body) .rule-list>li{font:var(--text-body)/var(--text-leading) var(--body);margin-block:var(--space-small,8px);padding-inline-start:.2em;overflow-wrap:break-word;color:var(--ink)}
:root body.v2 .help-level-directory .rule-list{padding:0;margin:9px 0 0}
/* Data tables retain tool-specific mathematical alignment and notation. */
:root body.v2 .data-table{font-size:var(--text-body);line-height:var(--text-leading)}
:root body.v2 .data-table :is(th,td){padding:var(--space-small,8px) var(--space-item,12px);vertical-align:top;border-bottom:1px solid var(--line)}
:root body.v2 .data-table th{font-family:var(--body);font-size:var(--text-ui);text-transform:none;letter-spacing:normal;color:var(--ink);background:var(--rail)}
:root body.v2 :is(.v2-saved-tool,.learn-history-row){padding-block:var(--space-item,12px);gap:var(--space-small,8px);border-bottom:1px solid var(--line)}
:root body.v2 :is(.v2-saved-tool,.learn-history-row):last-child{border-bottom:0}
:root body.v2 .v2-recommendation-choices>li+li{margin-top:var(--space-item,12px);padding-top:var(--space-item,12px)}

/* De catalogus blijft herkenbaar, maar is tijdens de foutenreeks niet bedienbaar. */
:root body.v2 .v2-levels.is-review-practice{position:relative;min-height:140px}
:root body.v2 .v2-levels.is-review-practice>:not(.review-rail-resume){filter:blur(3px);opacity:.45;pointer-events:none;user-select:none}
:root body.v2 .review-rail-resume{position:absolute;inset:0;z-index:2;display:grid;place-items:center;padding:16px;text-align:center;border-radius:inherit}
:root body.v2 .review-rail-resume button{max-width:100%;min-height:44px;padding:10px 16px;background:var(--card);color:var(--ink);border:1px solid var(--line);font-weight:600}
:root body.v2 .review-rail-resume button:hover{background:var(--rail);border-color:var(--accent)}
@media(max-width:700px){:root body.v2 .v2-levels.is-review-practice{min-height:112px}}

:root body.v2 #exercise+.session-actions #toolbar #review-errors-btn[hidden],:root body.v2 #exercise+.session-actions #toolbar #worksheet-launch-group[hidden]{display:none!important}

/* Action tooltips share a readable surface and stay within the viewport. */
:root body.v2 .v2-tooltip{position:fixed;inset:auto;z-index:10000;box-sizing:border-box;width:max-content;max-width:min(320px,calc(100vw - 16px));max-height:calc(100dvh - 16px);margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card);color:var(--ink);box-shadow:var(--shadow-dialog);font:var(--text-ui)/1.5 var(--body);text-align:start;overflow-wrap:anywhere;overflow:auto}
:root body.v2 .v2-tooltip::backdrop{background:transparent;pointer-events:none}
/* Descriptions belong directly below their title or control at every width. */
:root body.v2 :is(.v2-home-tool-description,.v2-home-group-description,.v2-favorites-caption,.v2-saved-open small,.v2-recommendation-mode,.v2-catalog-row small,.learn-context,#v2-account-name-help){display:block;font:400 var(--text-ui)/1.6 var(--body);color:var(--muted);margin:4px 0 0;overflow-wrap:anywhere;white-space:normal}
:root body.v2 #v2-favorites-dialog .v2-favorites-caption{font:400 var(--text-ui)/1.6 var(--body);margin:4px 0 var(--space-item,12px)}
@media print{.v2-tooltip{display:none!important}}

/* Every page offers the same first keyboard stop, including tool/help pages. */
:root body.v2 .v2-skip{position:fixed;left:16px;top:-100px;z-index:10001;padding:12px 16px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card);color:var(--ink);font:var(--text-body)/1.5 var(--body)}
:root body.v2 .v2-skip:focus{top:12px;outline:2px solid var(--accent);outline-offset:3px}
:root body.v2 main:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

/* In dark mode, text fields need a distinct edge as well as readable hint text. */
@media screen{
 :root[data-theme=dark] body.v2 :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea):not(:disabled):not([aria-invalid=true]){border-color:var(--control-border)}
 :root[data-theme=dark] body.v2 :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
 :root[data-theme=dark] body.v2 :is(input,select,textarea):not(:disabled):not([aria-invalid=true]):hover,:root[data-theme=dark] body.v2 :is(input,select,textarea):not([aria-invalid=true]):focus-visible{border-color:var(--accent)}
}

/* Shared motion rhythm. Spatial transitions stay separate from colour feedback. */
@media screen{
 :root body.v2 :is(input,select,textarea,.learn-tabs a,.v2-home-tool,.v2-home-panel,.science-calendar-card,.science-rail-item){transition-property:background-color,color,border-color,box-shadow;transition-duration:var(--motion-color,160ms);transition-timing-function:ease}
 :root body.v2 .help-book-sidebar,:root body.v2 .rounding-notation::before{transition-duration:var(--motion-move,180ms);transition-timing-function:var(--motion-easing,ease-out)}
}
@media screen and (prefers-reduced-motion:reduce){
 :root:has(body.v2),:root body.v2,:root body.v2 *,:root body.v2 *::before,:root body.v2 *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}
 /* A preference change during an exercise transition must never hide the content. */
 :root body.v2 #exercise.exercise-transitioning-out>*{opacity:1;transform:none}
}

/* Shared assignment cards: home, learning overview and assignment list. */
:root body.v2 .learn-task-card{position:relative;border:0;padding:var(--panel-inset,20px);background:var(--rail);border-radius:var(--radius-card);transition:background .15s}
:root body.v2 .learn-task-card.is-overdue{background:var(--v2-overdue-bg);border:0}
:root body.v2 .learn-task-card:hover{background:color-mix(in srgb,var(--rail) 88%,var(--accent))}
:root body.v2 .learn-task-card:focus-within{outline:2px solid var(--accent);outline-offset:3px}
:root body.v2 .learn-task-card .learn-task-action{position:static;border:0;padding:0;margin:0;gap:8px;text-decoration:none;font-weight:600;color:var(--accent)}
:root body.v2 .learn-task-card .learn-task-action::after{content:"";position:absolute;inset:0;border-radius:var(--radius-card)}
:root body.v2 .learn-task-card .learn-task-action:focus-visible{outline:0}
:root body.v2 .learn-task-footer{display:flex;align-items:center;justify-content:space-between;gap:var(--space-item,12px);flex-wrap:wrap;margin-top:8px}
:root body.v2 .learn-task-footer small{margin:0;color:var(--muted)}
:root body.v2 .learn-task-card .learn-rounds{position:relative;z-index:1;border-top:1px solid var(--line);padding-top:8px}
:root body.v2 .learn-task-card progress{display:block;appearance:none;border:0;border-radius:4px;overflow:hidden;background:var(--line);margin:var(--space-block,16px) 0 0;height:6px}
:root body.v2 .learn-task-card progress::-webkit-progress-bar{background:var(--line);border-radius:4px}
:root body.v2 .learn-task-card progress::-webkit-progress-value{background:var(--accent);border-radius:4px}
:root body.v2 .learn-task-card progress::-moz-progress-bar{background:var(--accent);border-radius:4px}
:root body.v2 a.learn-task-card{display:block;margin:10px 0;text-decoration:none;color:var(--ink);font:var(--text-ui)/1.5 var(--body);overflow-wrap:anywhere}
:root body.v2 a.learn-task-card strong{display:block;font-weight:650;color:var(--ink)}
:root body.v2 .learn-task-detail{display:block;margin-top:6px;color:var(--muted)}
:root body.v2 .learn-task-card.is-overdue .learn-task-detail{color:var(--v2-overdue-ink)}
:root body.v2 a.learn-task-card .learn-task-footer{display:flex;color:var(--accent);font-weight:600}
:root body.v2 a.learn-task-card .learn-task-footer span{display:inline}
@media(max-width:700px){:root body.v2 .learn-task-card{padding:var(--space-block,16px)}}

/* Shared paper rhythm for reading pages and tool print surfaces. */
@media print{
 @page{size:A4;margin:14mm 14mm 18mm;@bottom-center{content:"Pagina " counter(page) " van " counter(pages);color:#525c70;font:8pt Arial,sans-serif}}
 :root:has(body.v2){color-scheme:light!important;background:white!important}
 :root body.v2{--bg:#fff;--card:#fff;--panel:#fff;--panel-2:#f0f2f9;--rail:#f0f2f9;--ink:#202438;--muted:#525c70;--line:#cbd1dd;--accent:#4655d9;--soft:#e1e7ff;--green:#246543;color:var(--ink);background:white;font-size:11pt;line-height:1.5}
 :root body.v2 :is(.v2-header,.v2-footer,#v2-mobile-menu,.v2-skip,.v2-tooltip){display:none!important}
 :root body.v2 :is(h1,h2,h3,h4){break-after:avoid;page-break-after:avoid}
 :root body.v2 :is(p,li){orphans:3;widows:3}
 :root body.v2 :is(.help-worked-example,.help-example-card,.help-example-chain){break-inside:auto;page-break-inside:auto}
 :root body.v2 :is(.help-equation-row,.math-equation-row,.linear-equation-row,tr,figure){break-inside:avoid;page-break-inside:avoid}
 :root body.v2 :is(.v2-table-scroll,.linear-solution-chain,.help-comparison){overflow:visible!important;max-height:none!important}
 :root body.v2 table{max-width:100%;table-layout:auto}
 :root body.v2 thead{display:table-header-group}
 :root body.v2 :is(svg,img){max-width:100%;height:auto}
}

/* Shared outer width and inner gutters for home and the learning workspace. */
body.v2{--workspace-width:1180px;--workspace-gutter:28px}
@media(max-width:700px){body.v2{--workspace-gutter:16px}}

/* Completion of a persisted error-review queue. */
:root body.v2 [data-review-complete]{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:var(--radius-card,12px);background:var(--card);color:var(--ink)}
:root body.v2 [data-review-complete] p{margin:0;line-height:1.5}
:root body.v2 [data-review-complete] strong{font-size:18px}
:root body.v2 [data-review-complete] [hidden]{display:none!important}

:root body.v2 #review-practice .review-complete-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:12px;width:100%;max-width:100%}
:root body.v2 #review-practice .review-complete-actions .btn{display:inline-flex;align-items:center;justify-content:center;flex:1 0 auto;min-width:0;min-height:44px;margin:0;padding:10px 14px;border:1px solid var(--line);border-radius:var(--radius-control,10px);background:var(--card);color:var(--ink);font:inherit;font-size:13px;font-weight:500;line-height:1.4;text-align:center;text-decoration:none;white-space:nowrap}
:root body.v2 #review-practice .review-complete-actions .btn:hover{border-color:var(--accent)}

/* Coordinate givens share one gap; paragraph margins must not add extra space. */
:root body.v2 #readout .exercise-question.coordinate-practice{gap:8px}
:root body.v2 #readout .coordinate-practice>.formula{margin:0;line-height:1.4}
:root body.v2 #readout .coordinate-practice>.exercise-prompt{margin-bottom:12px}
:root body.v2 #readout .coordinate-practice>.exercise-note{margin-top:12px}
/* Graph equations additionally share a left edge. */
:root body.v2[data-tool-id="snijpunten-van-grafieken"] #readout .coordinate-practice{align-items:stretch;text-align:left;gap:8px}
:root body.v2[data-tool-id="snijpunten-van-grafieken"] #readout .coordinate-practice>.formula{text-align:left}

:root body.v2[data-tool-id="snijpunten-van-grafieken"] #readout .coordinate-practice>.v2-graph-function{display:grid;grid-template-columns:2.2em .8em minmax(0,1fr);column-gap:.15em;align-items:baseline}
:root body.v2 #readout .v2-graph-function>span{min-width:0}

/* The 18-column reference table needs more room than a standard dialog. */
:root body.v2 #periodic-table-modal[open]{width:min(1280px,calc(100vw - 24px))}

/* Atom-count controls use UI typography, not the surrounding equation font. */
:root body.v2 .atom-balance-toggle{font:500 13px/1.4 var(--body);min-height:44px;width:auto;max-width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--card);color:var(--ink);white-space:normal}
:root body.v2 .atom-balance-toggle:hover{border-color:var(--accent)}

/* Preserve the shared v1 Texas-style calculator as a self-contained component. */
:root body.v2 .calculator-panel{--body:'Aptos','Segoe UI',system-ui,sans-serif;--mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace;font-family:var(--body)}

/* The copied question is compact prose context above the reference table. */
:root body.v2 #periodic-question-context{padding:12px 14px;box-shadow:none}
:root body.v2 #periodic-question-context .exercise-prompt{font:600 14px/1.4 var(--body);letter-spacing:normal;margin:0 0 4px}
:root body.v2 #periodic-question-context .exercise-main{font:400 15px/1.5 var(--body);letter-spacing:normal;text-align:left;margin:4px 0}
:root body.v2 #periodic-question-context .exercise-note{font:400 12px/1.5 var(--body);margin:4px 0 0}

/* Formula controls share a compact height; response modes align to the right. */
:root body.v2[data-tool-id="formules-omvormen"] .formula-config-bar{gap:12px}
:root body.v2[data-tool-id="formules-omvormen"] .formula-practice-entry{justify-content:flex-start;gap:12px}
:root body.v2[data-tool-id="formules-omvormen"] .formula-free-response{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
:root body.v2[data-tool-id="formules-omvormen"] :is(.formula-practice-entry,.formula-free-response) .equation-mode-buttons{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%;height:auto;padding:4px;gap:4px;margin:0}
:root body.v2[data-tool-id="formules-omvormen"] :is([data-formula-practice],[data-free-response]){flex:0 1 auto;min-width:0;min-height:44px;height:auto;padding:8px 12px;font:500 13px/1.4 var(--body);white-space:normal;overflow-wrap:normal;border:1px solid transparent}
:root body.v2[data-tool-id="formules-omvormen"] :is([data-formula-practice],[data-free-response])[aria-pressed=true]{border-color:var(--line);font-weight:600}
:root body.v2[data-tool-id="formules-omvormen"] #formula-picker-button{min-height:52px;padding:12px;font:500 13px/1.4 var(--body);background:var(--card);color:var(--ink);border:1px solid var(--line)}
@media(max-width:480px){
 :root body.v2[data-tool-id="formules-omvormen"] .formula-free-response .equation-mode-buttons{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
 :root body.v2[data-tool-id="formules-omvormen"] .formula-free-response{align-items:stretch}
 :root body.v2[data-tool-id="formules-omvormen"] #formula-picker-button{align-self:flex-start}
 :root body.v2[data-tool-id="formules-omvormen"] .formula-practice-entry .equation-mode-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
}

/* Tool-owned mode switches and review actions share compact UI typography. */
:root body.v2 :is([data-equation-mode],[data-formula-mode],[data-rounding-notation],[data-builder-action],.formula-operation,#review-errors-btn){font:500 13px/1.4 var(--body);min-height:44px;padding:8px 12px}

@media(min-width:481px){
 :root body.v2[data-tool-id="formules-omvormen"] .formula-free-response>.equation-mode-buttons{align-self:flex-end}
}

/* Keep the first two groups left and the response modes right, including wrapped rows. */
@media(min-width:1100px){
 :root body.v2.formula-free-practice[data-tool-id="formules-omvormen"] .formula-config-bar{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px}
 :root body.v2.formula-free-practice[data-tool-id="formules-omvormen"] .formula-practice-entry{width:auto;flex:0 0 auto}
 :root body.v2.formula-free-practice[data-tool-id="formules-omvormen"] .formula-free-response{display:contents}
 :root body.v2.formula-free-practice[data-tool-id="formules-omvormen"] .formula-free-response>.equation-mode-buttons{margin-left:auto;flex:0 0 auto}
}

/* Guided answers live outside the readout in v2, so size their host directly. */
:root body.v2[data-tool-id="formules-omvormen"] #formula-options:has(>.formula-guided-step){width:100%;grid-template-columns:minmax(0,1fr)}
:root body.v2[data-tool-id="formules-omvormen"] .formula-guided-step{grid-column:1/-1;min-width:0;box-sizing:border-box;background:var(--card);border-color:var(--line);color:var(--ink)}
:root body.v2[data-tool-id="formules-omvormen"] .formula-route-selection{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
:root body.v2[data-tool-id="formules-omvormen"] .formula-route-operations{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr))}

/* Empty review suggestions are navigation, not mathematical worksheet content. */
:root body.v2 [data-review-suggestions]{font-family:var(--body);font-size:var(--text-body);line-height:1.7;text-align:left}
:root body.v2 [data-review-suggestions] h3{font-family:var(--body);font-size:var(--title-card);margin:var(--space-block,16px) 0 var(--space-small,8px)}
:root body.v2 [data-review-suggestions] ul{margin:0 0 var(--space-block,16px);padding-left:24px}
:root body.v2 [data-review-suggestions] li{margin:var(--space-small,8px) 0}
:root body.v2 [data-review-suggestions] .btn{font-family:var(--body);white-space:normal;text-align:center}

/* Worksheet prose stays in the UI font; authored formula choices keep stacked fractions. */
:root body.v2 #print-list :is(.worksheet-answer-label,.worksheet-review-history){font-family:var(--body);font-size:var(--text-body);line-height:1.7}
:root body.v2 #print-list .worksheet-choice-formula{font-family:OLMath,math;font-size:var(--formula-size,24px);line-height:1.5;white-space:normal}

/* Formula input layout follows the answer card, not the viewport/sidebar breakpoint. */
:root body.v2[data-tool-id="formules-omvormen"] .formula-guided-step{container:formula-answer / inline-size}
:root body.v2[data-tool-id="formules-omvormen"] .formula-self-fields label{min-width:0}
:root body.v2[data-tool-id="formules-omvormen"] #answer-form .formula-self-fields input{width:100%;max-width:none;min-width:0;box-sizing:border-box}
@container formula-answer (max-width:420px){
 :root body.v2[data-tool-id="formules-omvormen"] .formula-self-fields{grid-template-columns:minmax(0,1fr)}
 :root body.v2[data-tool-id="formules-omvormen"] .formula-equals{padding:0;text-align:center;line-height:1}
}

/* Shared choice/worksheet notation separates prose from mathematics. */
:root body.v2 .v2-notation-math{font-family:OLMath,math;font-size:1em;font-weight:400}
/* A light contour strengthens the fine math strokes without changing glyph widths. */
:root body.v2 :is(.v2-notation-math,.v2-unit,.v2-quantity,.math-frac,.formula-frac,.frac,.exercise-main,.formula,.formula-main,.fraction-expression,.fraction-step-math,.math-expression-row,.math-equation-row,.math-chain-original,.math-chain-result,.v2-original,.linear-chain-equation){-webkit-text-stroke:.3px currentColor}
:root body.v2 :is(.exercise-prompt,.exercise-note,.density-main,.percentage-main,.chem-calc-question .exercise-main,.math-chain-original-text,.math-operation-label,.math-chain-label,.v2-route-prose,.v2-step-number){-webkit-text-stroke:0}
:root body.v2 #print-list :is(.worksheet-left,.worksheet-right){font-family:var(--body)}
:root body.v2 #print-list :is(.exercise-prompt,.exercise-note,.exercise-given,.worksheet-review-history,.worksheet-answer-label){font-family:var(--body)}

/* Shared home and teacher-modal year filter. */
.v2-home-year{font-size:12px;color:var(--muted);display:grid;gap:0;width:280px;max-width:100%}
.v2-home-year output{font-size:12px;font-weight:600;color:var(--ink);margin:0;line-height:1.5}
:root body.v2 :is(#v2-home-year,.v2-year-range){appearance:none;-webkit-appearance:none;display:block;grid-area:2 / 1;width:calc(100% - 100% / 6 + 28px);min-width:0;height:44px;min-height:44px;margin:0 calc(100% / 12 - 14px);padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;cursor:pointer}
:is(#v2-home-year,.v2-year-range)::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:linear-gradient(to right,var(--accent) 0 var(--year-fill,100%),var(--line) var(--year-fill,100%) 100%)}
:is(#v2-home-year,.v2-year-range)::-moz-range-track{height:6px;border-radius:6px;background:var(--line)}
:is(#v2-home-year,.v2-year-range)::-moz-range-progress{height:6px;border-radius:6px;background:var(--accent)}
:is(#v2-home-year,.v2-year-range)::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;margin-top:-11px;border:3px solid var(--accent);border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--soft)}
:is(#v2-home-year,.v2-year-range)::-moz-range-thumb{box-sizing:border-box;width:28px;height:28px;border:3px solid var(--accent);border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--soft)}
.v2-home-year-ticks{grid-area:2 / 1;z-index:1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;align-items:center;pointer-events:none}
:root body.v2 .v2-home-year-ticks button{justify-self:center;width:28px;min-width:0;height:44px;min-height:44px;padding:0;border:0;border-radius:14px;background:radial-gradient(circle at center,var(--card) 12px,var(--line) 12px,var(--line) 13px,transparent 14px);color:var(--muted);font-size:12px;font-weight:600;pointer-events:auto}
:root body.v2 .v2-home-year-ticks button[aria-pressed=true]{background:transparent;color:var(--on-accent);font-weight:700;pointer-events:none}
@media(hover:hover){:root body.v2 .v2-home-year-ticks button:not([aria-pressed=true]):hover{background:radial-gradient(circle at center,var(--soft) 12px,var(--line) 12px,var(--line) 13px,transparent 14px);color:var(--accent)}}

.v2-home-year[hidden]{display:none}

/* The fill layer must not draw a second outline over the coffee cup. */
:root body.v2 .v2-header .break-game-icon .coffee-fill{stroke:none}
:root body.v2 :is(.math-option-formula,.option-formula){font-family:var(--body)}
:root body.v2 #print-list .exercise-prompt{font-family:var(--body);font-size:var(--text-body);font-weight:600;line-height:1.6;letter-spacing:normal}
:root body.v2 #print-list :is(.worksheet-question-version,.worksheet-online-version,.worksheet-answer-version){font-size:var(--text-body)}
:root body.v2 #print-list .v2-notation-math{font-size:1.15em}
:root body.v2 #print-list .v2-notation-math .v2-notation-math{font-size:1em}

/* First-visit invitations and short, opt-in v2 tours. */
:root body.v2 #v2-tour-invite{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:var(--radius-card,16px);background:var(--soft);color:var(--ink)}
:root body.v2 #v2-tour-invite[hidden],:root body.v2 #v2-tour-replay[hidden]{display:none}
:root body.v2 #v2-tour-invite h2{margin:0 0 4px;font:600 16px/1.4 var(--body)}
:root body.v2 #v2-tour-invite p{margin:0;font-size:13px}
.v2-tour-invite-actions,.v2-tour-navigation{display:flex;gap:8px;flex-wrap:wrap}
:root body.v2 #v2-tour-invite button,:root body.v2 #v2-tour-dialog button{min-height:44px}
:root body.v2 #v2-tour-dialog{position:fixed;inset:auto 16px 16px auto;margin:0;padding:0;width:440px;max-width:calc(100vw - 32px);max-height:60vh;max-height:60dvh;color:var(--ink);background:var(--card)}
:root body.v2 #v2-tour-dialog[open]{display:flex;flex-direction:column}
:root body.v2 #v2-tour-dialog .modal-head{justify-content:space-between}
:root body.v2 #v2-tour-dialog h2{margin:0;font:600 19px/1.4 var(--body)}
:root body.v2 #v2-tour-dialog [data-tour-step]{margin:0 0 4px;color:var(--muted);font-size:12px}
:root body.v2 #v2-tour-dialog .modal-body p{margin:0;font-size:14px;line-height:1.6}
:root body.v2 #v2-tour-dialog .modal-foot{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;border-top:1px solid var(--line)}
:root body.v2 .v2-tour-target{outline:3px solid var(--accent);outline-offset:5px}
@media(max-width:700px){:root body.v2 #v2-tour-invite{flex-direction:column;align-items:flex-start}:root body.v2 #v2-tour-dialog{inset:auto 12px 12px;width:calc(100vw - 24px);max-width:none;max-height:65vh;max-height:65dvh}}
@media print{#v2-tour-invite,#v2-tour-dialog,#v2-tour-replay{display:none!important}}

@media(max-height:550px){:root body.v2 #v2-tour-dialog{max-height:calc(100dvh - 24px)}}

/* Keep the explained control bright while dimming only its surroundings. */
:root body.v2 #v2-tour-dialog::backdrop{background:transparent}
:root body.v2 #v2-tour-shade{position:fixed;inset:0;width:100vw;height:100vh;height:100dvh;z-index:2147483646;pointer-events:none;overflow:hidden}
:root body.v2 #v2-tour-shade path{fill:#10152670}
:root body.v2 #v2-tour-shade[hidden]{display:none}
@media print{#v2-tour-shade{display:none!important}}
/* The remediation heading spans the label, explanation and actions. */
:root body.v2 .inline-remediation{position:relative;grid-template-columns:auto minmax(0,1fr) auto}
:root body.v2 .inline-remediation>div{display:contents}
:root body.v2 .inline-remediation>div>strong{grid-column:1/-1;grid-row:1;padding-right:36px}
:root body.v2 .inline-remediation>:is(.inline-remediation-label,.small-action,.inline-remediation-dismiss),:root body.v2 .inline-remediation>div>p{grid-row:2}
@media(max-width:760px){
 :root body.v2 .inline-remediation{grid-template-columns:minmax(0,1fr) auto}
 :root body.v2 .inline-remediation>.inline-remediation-label{grid-column:1/-1;grid-row:2}
 :root body.v2 .inline-remediation>div>p{grid-column:1/-1;grid-row:3}
 :root body.v2 .inline-remediation>:is(.small-action,.inline-remediation-dismiss){grid-row:4}
}

:root body.v2 .inline-remediation>.inline-remediation-dismiss{position:absolute;grid-area:auto;top:2px;right:2px;display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:var(--radius-control);background:transparent;box-shadow:none;color:var(--muted);font-size:20px;line-height:1}
:root body.v2 .inline-remediation>.inline-remediation-dismiss:hover{background:var(--soft);color:var(--ink)}
:root body.v2 .inline-remediation>.inline-remediation-dismiss:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}


/* Survey controls retain their native size instead of the generic text-input height. */
:root body.v2 #survey-dialog .survey-options label{display:flex;align-items:flex-start;gap:.65rem;line-height:1.5}
:root body.v2 #survey-dialog .survey-options input[type=radio]{flex:0 0 20px;width:20px;height:20px;min-height:20px;padding:0;margin:.1em 0 0}
:root body.v2 #survey-dialog .survey-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
:root body.v2 #survey-dialog [data-survey-defer]{margin-right:auto;background:var(--card);color:var(--ink);border:1px solid var(--line);font-weight:500}
:root body.v2 #survey-dialog .survey-actions [type=submit]{margin-left:auto}
:root body.v2 #survey-dialog .survey-detail{margin-left:0;padding:0;border:0;background:transparent;border-radius:0}

/* One completed-exercise recommendation, with optional evidence and learner choice. */
:root body.v2 #level-advance-recommendation[data-guidance-kind]{display:block;padding:var(--panel-inset,16px)}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .inline-remediation-label{display:block;margin-bottom:8px}
:root body.v2 #level-advance-recommendation[data-guidance-kind] strong{display:block;padding:0;font-size:1.05rem}
:root body.v2 #level-advance-recommendation[data-guidance-kind] p{margin:8px 0;overflow-wrap:anywhere}
:root body.v2 #level-advance-recommendation[data-guidance-kind] details{margin-top:12px}
:root body.v2 #level-advance-recommendation[data-guidance-kind] summary{cursor:pointer}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
:root body.v2 .v2-guidance-actions button{min-height:44px;white-space:normal;text-align:left}
:root body.v2 .v2-guidance-return{margin-block:12px;display:block}
:root body.v2 .v2-guidance-return p{margin:0 0 8px}
:root body.v2 .v2-entry-picker select{display:block;width:100%;max-width:36rem;min-height:44px;margin-top:8px}
:root body.v2 .v2-entry-results a{overflow-wrap:anywhere}
:root body.v2 .v2-entry-results p{margin-block:10px}
@media print{#level-advance-recommendation,#v2-remediation-return{display:none!important}}

:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-actions>:is(button,a){display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;box-sizing:border-box;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius-control,8px);font:inherit;text-decoration:none;cursor:pointer}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-actions>:is(button,a):hover{background:var(--soft);border-color:var(--accent)}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-actions>:is(button,a):focus-visible{outline:2px solid var(--accent);outline-offset:2px}

/* Niveaukeuzes staan rechtstreeks in de kaart, met ruimte voor volledige labels. */
:root body.v2 #level-advance-recommendation .v2-guidance-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:10px;border:1px solid var(--line);border-radius:var(--radius-control,8px);overflow:hidden}
:root body.v2 #level-advance-recommendation .v2-guidance-choices button{width:100%;box-sizing:border-box;min-width:0;min-height:44px;padding:8px 4px;border:0;border-radius:0;background:transparent;color:var(--ink);font:inherit;font-size:.875rem;white-space:normal;overflow-wrap:normal;text-align:center;cursor:pointer}
:root body.v2 #level-advance-recommendation .v2-guidance-choices button+button{border-left:1px solid var(--line)}
:root body.v2 #level-advance-recommendation .v2-guidance-choices button:hover,:root body.v2 #level-advance-recommendation .v2-guidance-choices button[aria-pressed=true]{background:var(--soft)}
:root body.v2 #level-advance-recommendation .v2-guidance-choices button:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}
@media(max-width:380px){
 :root body.v2 #level-advance-recommendation .v2-guidance-choices{grid-template-columns:1fr}
 :root body.v2 #level-advance-recommendation .v2-guidance-choices button+button{border-left:0;border-top:1px solid var(--line)}
}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-actions>a{max-width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere}

/* Beide niveauacties blijven naast elkaar, ook bij lange niveaunamen op mobiel. */
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-level-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);align-items:stretch}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-level-actions>:is(button,a){width:100%;min-width:0;padding:8px;overflow-wrap:anywhere}

:root body.v2 #level-advance-recommendation .v2-guidance-caption{display:flex;align-items:flex-start;gap:0;margin:-12px -12px 4px 0}
:root body.v2 #level-advance-recommendation .v2-guidance-caption .inline-remediation-label{margin:0}
:root body.v2 #level-advance-recommendation .v2-guidance-help{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-height:44px;margin-left:auto;padding:0;border:0;background:transparent;color:var(--muted);font:500 12px/1 var(--body);cursor:pointer}
:root body.v2 #level-advance-recommendation .v2-guidance-help:hover{background:var(--soft);border-radius:var(--radius-control,8px)}
:root body.v2 #level-advance-recommendation .v2-guidance-help:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}

:root body.v2 #level-advance-recommendation .v2-guidance-help span{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border:1px solid currentColor;border-radius:50%;box-sizing:border-box}
:root body.v2 #level-advance-recommendation .v2-guidance-caption .inline-remediation-dismiss{position:static;display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;color:var(--muted);font-size:20px;line-height:1;cursor:pointer}
:root body.v2 #level-advance-recommendation .v2-guidance-caption .inline-remediation-dismiss:hover{background:var(--soft);border-radius:var(--radius-control,8px)}
:root body.v2 #level-advance-recommendation .v2-guidance-caption .inline-remediation-dismiss:focus-visible{outline:2px solid var(--accent);outline-offset:-4px}

:root body.v2 #level-advance-recommendation .v2-guidance-heading{flex:1;min-width:0;padding-top:10px}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-heading strong{display:inline;overflow-wrap:anywhere}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-heading .inline-remediation-label{display:inline;margin:0 8px 0 0;white-space:nowrap}

:root body.v2 #level-advance-recommendation[data-guidance-kind=preparation] .v2-guidance-level-actions{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-actions>.v2-guidance-primary{background:var(--accent);color:var(--on-accent);border-color:var(--accent)}
:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-actions>.v2-guidance-primary:hover{background:var(--accent);border-color:var(--accent);filter:brightness(.94)}

:root body.v2 #level-advance-recommendation[data-guidance-kind] .v2-guidance-level-actions>a{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}
:root body.v2 #level-advance-recommendation .v2-guidance-tool{font-size:.75rem;line-height:1.4}
:root body.v2 #level-advance-recommendation .v2-guidance-level{line-height:1.5}

/* Rounding: choose the notation first, then enter the number on its own row. */
:root body.v2[data-tool-id=afronden] .rounding-answer-row{width:100%;flex-direction:column;flex-wrap:nowrap;gap:20px}
:root body.v2[data-tool-id=afronden] .rounding-notation{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;width:auto;max-width:100%;gap:4px 8px;border:0;background:transparent}
:root body.v2[data-tool-id=afronden] .rounding-notation::before{display:none}
:root body.v2[data-tool-id=afronden] .rounding-notation-label{position:static;grid-column:1/-1;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--muted);font:500 13px/1.5 var(--body);letter-spacing:normal;text-transform:none;text-align:center}
:root body.v2[data-tool-id=afronden] .rounding-notation .btn.ghost{background:transparent;border:0;border-bottom:2px solid transparent;border-radius:3px;box-shadow:none;color:var(--muted);white-space:nowrap}
:root body.v2[data-tool-id=afronden] .rounding-notation .btn[aria-pressed=true]{background:var(--rail);border-bottom-color:var(--accent);color:var(--ink)}
:root body.v2[data-tool-id=afronden] .scientific-answer-entry{width:300px;max-width:100%;gap:12px}
:root body.v2 :is(#answer-suffix,#scientific-answer-unit){flex:0 0 auto;white-space:nowrap;font-family:OLMath,math;font-size:1.75rem;line-height:1.2}
:root body.v2 #answer-suffix:empty{display:none}
:root body.v2 #answer-suffix .math-frac{font-family:inherit;font-size:1em;vertical-align:middle}
/* Enlarge the glyph only; the insertion button keeps its existing layout box. */
:root body.v2 .v2-insert-glyph{display:inline-block;transform:scale(1.65);transform-origin:center;pointer-events:none}
/* Keep rounding input and checking together; optional tools share the insertion row. */
@media(min-width:600px){
 :root body.v2[data-tool-id=afronden] #answer-form .controls{display:grid;grid-template-columns:minmax(0,1fr) max-content max-content minmax(0,1fr);align-items:center;justify-content:center;gap:16px 12px}
 :root body.v2[data-tool-id=afronden] .rounding-answer-row{display:contents}
 :root body.v2[data-tool-id=afronden] .rounding-notation{grid-column:1/-1;grid-row:1;justify-self:center;margin-bottom:4px}
 :root body.v2[data-tool-id=afronden] .scientific-answer-entry{grid-column:2;grid-row:2;width:max-content;max-width:none}
 :root body.v2[data-tool-id=afronden] .scientific-answer-entry #answer{flex:0 1 144px;width:144px}
 :root body.v2[data-tool-id=afronden] #answer-form .controls>:is(#controleer,#next){grid-column:3;grid-row:2;margin:0;align-self:center;justify-self:start}
 :root body.v2[data-tool-id=afronden] #answer-insert-helper{grid-column:1/-1;grid-row:3}
 :root body.v2[data-tool-id=afronden] .rounding-input-example{grid-column:1/-1;grid-row:4}
}
:root body.v2 .v2-unit{display:inline-block;white-space:nowrap;font-family:OLMath,math;font-weight:400;line-height:1.2;vertical-align:middle}
:root body.v2 .v2-unit .math-frac{font:inherit;vertical-align:middle}
:root body.v2 .v2-quantity{display:inline-block;white-space:nowrap;font-family:OLMath,math;font-weight:400}
:root body.v2 .v2-quantity>.v2-unit{vertical-align:baseline}

:root body.v2 .v2-input-aids{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;margin-top:12px;min-width:0}
:root body.v2 .v2-input-aids #answer-insert-helper{margin:0;flex:0 1 auto;flex-wrap:wrap;max-width:100%}
:root body.v2 .v2-input-aids .algebra-power-keys{flex-wrap:wrap;min-width:0;max-width:100%;justify-content:center}
:root body.v2 .v2-input-aids .answer-tools-inline{gap:8px;font-size:11.5px;line-height:1.35}
:root body.v2 .v2-input-aids .answer-tools-inline[hidden]{display:none}

:root body.v2[data-tool-id=afronden] .rounding-notation .btn{font-size:13px;font-weight:400;min-height:32px;height:auto;padding:4px 8px}
@media(pointer:coarse){:root body.v2[data-tool-id=afronden] .rounding-notation .btn{min-height:44px}}
:root body.v2 .v2-input-example{margin:12px 0 0;color:var(--muted);font-size:13px}
:root body.v2 .v2-input-example summary{cursor:pointer;width:fit-content;margin-inline:auto}
:root body.v2 .v2-input-example .rounding-input-example{margin:8px 0 0}
:root body.v2 .v2-precision-note{margin:12px 0 0;text-align:center;color:var(--muted);font-size:13px}
:root body.v2 .v2-input-aids:has(> [hidden]):not(:has(> :not([hidden]))){display:none}

:root body.v2 .v2-input-guidance{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:8px 16px;margin-top:12px}
:root body.v2 .v2-input-guidance :is(.v2-precision-note,.v2-input-example){margin:0}
:root body.v2 .v2-input-guidance .v2-input-example[open]{flex-basis:100%}
:root body.v2 .v2-input-aids :is(.algebra-power-key,.inline-reference-btn){background:var(--rail)}
:root body.v2 .v2-input-aids :is(.algebra-power-key,.inline-reference-btn):hover{background:var(--accent-soft)}

@media(max-width:400px){:root body.v2[data-tool-id=afronden] .rounding-notation-label{flex-basis:100%}}

/* Shared community count: quiet odometer reels, with a compact second line on narrow screens. */
:root body.v2 .v2-community-counter{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;flex:none;color:var(--muted);font:11px/1.3 var(--body);letter-spacing:0}
.v2-counter-number{display:flex;align-items:center;white-space:nowrap;color:var(--ink);font:600 14px/1.4 var(--body);font-variant-numeric:tabular-nums}
.v2-counter-digit{display:block;position:relative;width:.78em;height:1.4em;overflow:hidden;text-align:center;background:var(--rail);border:1px solid var(--line);border-right:0}
.v2-counter-digit:last-child{border-right:1px solid var(--line);border-radius:0 3px 3px 0}
.v2-counter-digit:first-child{border-radius:3px 0 0 3px}
.v2-counter-digit::after{content:"";position:absolute;inset:50% 0 auto;border-top:1px solid var(--line);opacity:.45;pointer-events:none}
.v2-counter-separator{width:.3em;text-align:center}
.v2-counter-reel{display:block}
.v2-counter-reel>span{display:block;height:1.4em}
.v2-counter-reel.is-rolling{animation:v2-counter-roll 650ms cubic-bezier(.22,.65,.3,1) both}
@keyframes v2-counter-roll{to{transform:translateY(-50%)}}
@media(max-width:1150px){
 :root body.v2 .v2-header.has-community-counter{display:grid;grid-template-columns:minmax(0,1fr) auto;row-gap:2px}
 :root body.v2 .has-community-counter>.v2-brand{grid-column:1;grid-row:1;line-height:1.1}
 :root body.v2 .has-community-counter>.v2-community-counter{grid-column:1;grid-row:2;gap:2px 5px;font-size:10px}
 :root body.v2 .has-community-counter>nav{grid-column:2;grid-row:1 / span 2}
 .v2-counter-number{font-size:12px}
 .v2-counter-together{display:none}
}
@media(prefers-reduced-motion:reduce){.v2-counter-reel.is-rolling{animation:none;transform:translateY(-50%)}}

/* Whole-answer options need text-sized buttons instead of single-symbol keys. */
:root body.v2 #answer-insert-helper button[data-replace-answer]{width:auto;min-width:max-content;height:auto;white-space:nowrap;font:500 13px/1.4 system-ui,sans-serif}
:root body.v2 #answer-insert-helper button[data-replace-answer] .v2-insert-glyph{transform:none}

/* Optional view/info actions precede the mode switch; history keeps its own space. */
:root body.v2 .equation-mode-row.exercise-toolbar-row{height:auto;min-height:46px;flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
:root body.v2 .exercise-toolbar-row .equation-mode-buttons{width:auto;max-width:100%;flex:0 1 auto}
:root body.v2 .exercise-info-dialog[open]{display:flex;flex-direction:column;height:fit-content;max-height:calc(100dvh - 24px);overflow:hidden}
:root body.v2 .exercise-info-dialog .modal-body{min-height:0;overflow:auto}
@media(max-width:1000px){:root body.v2 .v2-main>.equation-mode-row.exercise-toolbar-row{padding-top:48px;min-height:94px}}
