.preview-box{display:none;margin-top:.8rem;padding:1rem;background:var(--card);border:1px solid var(--line);border-radius:12px}.preview-box .caption{font-size:.82rem;color:var(--muted);margin-bottom:.6rem}.preview-box img{width:auto;max-width:min(760px,100%);max-height:70vh;height:auto;margin:0 auto;border:1px solid var(--line);border-radius:7px;display:block}.export-options{position:relative;display:inline-block}.export-options>summary{list-style:none}.export-options>summary::-webkit-details-marker{display:none}.export-options>summary.act{display:inline-flex;align-items:center;gap:.45rem;border-radius:8px;padding:.58rem .95rem;font-size:.88rem;font-weight:800;font-family:inherit;cursor:pointer;background:#fff;color:var(--ink);border:1px solid #c9bfa8;user-select:none}.export-options>summary.act::after{content:"▼";font-size:.72em;line-height:1;transition:transform .16s}.export-options[open]>summary.act::after{transform:rotate(180deg)}.export-options:not([open])>.export-menu{display:none!important}.export-options[open]>.export-menu{display:grid}.export-menu{position:absolute;left:0;top:calc(100% + .45rem);z-index:20;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(7,27,70,.12);padding:.5rem;display:grid;gap:.4rem;min-width:230px}.export-menu .act{text-align:left;white-space:nowrap}.toast{position:fixed;right:18px;bottom:18px;background:#071b46;color:#fff;padding:.8rem 1rem;border-radius:999px;font-weight:900;box-shadow:0 8px 28px rgba(7,27,70,.22);opacity:0;transform:translateY(12px);transition:.22s;pointer-events:none;z-index:100;max-width:min(520px,calc(100vw - 36px))}.toast.show{opacity:1;transform:translateY(0)}.hidden{display:none!important}.modal-backdrop{display:none;position:fixed;inset:0;background:rgba(7,27,70,.34);z-index:5000;align-items:center;justify-content:center;padding:max(1rem,env(safe-area-inset-top)) 1rem max(1rem,env(safe-area-inset-bottom))}.modal-backdrop.show{display:flex}.modal{width:min(720px,96vw);max-height:calc(100dvh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px rgba(7,27,70,.2);padding:1.25rem 1.35rem;line-height:1.5}.modal h2{margin:.1rem 0 .7rem;font-family:var(--math-font);color:var(--navy);font-size:1.45rem}.modal p{margin:.6rem 0;color:#334155}.modal .close-row{display:flex;justify-content:flex-end;margin-top:1rem}@media (max-width:680px){.modal-backdrop{align-items:flex-start;padding-top:max(.65rem,env(safe-area-inset-top))}.modal{width:100%;max-height:calc(100dvh - 1.3rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:1rem}.modal .close-row .act{width:100%}}body.pupil-transition .diagram-card,body.pupil-transition .working-panel{visibility:hidden!important}body.presentation .stage-toolbar{display:none!important}body.presentation .presentation-bar{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:.45rem!important;padding:.55rem .85rem!important;overflow:visible!important}body.presentation .presentation-bar .left,body.presentation .presentation-bar .right{display:flex!important;align-items:center!important;gap:.55rem!important;flex-wrap:wrap!important;min-width:0!important}body.presentation .presentation-bar .left{display:none!important}body.presentation .presentation-bar .right{justify-content:center!important}body.presentation .presentation-primary-row{display:flex!important;align-items:center!important;justify-content:center!important;gap:.38rem!important;width:min(34rem,96vw)!important}body.presentation .presentation-primary-row .generate-hero{width:min(16rem,64vw)!important;min-width:12rem!important;padding:.58rem 1.05rem!important;font-size:.88rem!important}body.presentation .presentation-history-btn{width:2.25rem!important;min-width:2.25rem!important;height:2.15rem!important;min-height:2.15rem!important;padding:0!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:.82rem!important}body.presentation .presentation-history-btn:disabled{opacity:.35;cursor:not-allowed}body.presentation .presentation-history-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:7.4rem!important;font-size:.76rem!important;font-weight:900!important;color:var(--navy)!important;white-space:nowrap!important}body.presentation .presentation-toolbar-toggle{width:2.1rem!important;height:2.1rem!important;min-height:2.1rem!important;padding:0!important;border-radius:999px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}body.presentation .presentation-secondary-row{display:flex!important;align-items:center!important;justify-content:center!important;gap:.38rem!important;flex-wrap:wrap!important;width:100%!important}body.presentation .presentation-secondary-row .act,body.presentation .presentation-stage-mini .act{flex:0 0 auto!important;padding:.42rem .62rem!important;font-size:.74rem!important;line-height:1.05!important;min-height:1.86rem!important;white-space:nowrap!important}body.presentation .presentation-stage-mini{display:flex!important;align-items:center!important;gap:.35rem!important;flex-wrap:wrap!important;justify-content:center!important}body.presentation .presentation-stage-mini .stage-note{font-size:.74rem!important;text-align:center!important}body.presentation .font-controls{padding:.16rem .22rem!important;gap:.16rem!important}body.presentation .font-controls .act{padding:.32rem .42rem!important;min-height:1.72rem!important}body.presentation .wrap{max-width:none!important;padding:calc(var(--pres-bar-h,76px) + .8rem) 1rem .65rem!important}body.presentation.presentation-bottom .wrap{padding-top:.65rem!important;padding-bottom:calc(var(--pres-bar-h,76px) + .8rem)!important}body.presentation .diagram-card svg{max-height:calc(100vh - var(--pres-bar-h,76px) - 1.7rem)!important}body.presentation.presentation-stage-collapsed .presentation-secondary-row{justify-content:flex-end!important;min-height:2.1rem!important}body.presentation.presentation-stage-collapsed .presentation-secondary-row>:not(.presentation-toolbar-toggle){display:none!important}body.presentation.presentation-stage-collapsed .presentation-toolbar-toggle{display:inline-flex!important;margin-left:auto!important}body.presentation.presentation-bottom.presentation-stage-collapsed .wrap{padding-top:.65rem!important;padding-bottom:calc(var(--pres-bar-h,56px) + .8rem)!important}body.presentation.presentation-stage-collapsed .diagram-card svg{max-height:calc(100vh - var(--pres-bar-h,56px) - 1.7rem)!important}@media(max-width:760px){body.presentation .presentation-bar{padding:.42rem .5rem!important;gap:.32rem!important}body.presentation .presentation-bar .right{gap:.32rem!important}body.presentation .presentation-primary-row{width:min(31rem,98vw)!important;gap:.28rem!important}body.presentation .presentation-primary-row .generate-hero{width:min(13.2rem,68vw)!important;min-width:10rem!important;padding:.5rem .85rem!important;font-size:.8rem!important}body.presentation .presentation-history-btn{width:1.95rem!important;min-width:1.95rem!important;height:1.9rem!important;min-height:1.9rem!important;font-size:.7rem!important}body.presentation .presentation-secondary-row{gap:.24rem!important}body.presentation .presentation-secondary-row .act,body.presentation .presentation-stage-mini .act{padding:.32rem .42rem!important;font-size:.64rem!important;min-height:1.62rem!important}body.presentation .presentation-stage-mini .range{width:min(260px,62vw)!important}body.presentation .presentation-stage-mini .stage-note{font-size:.64rem!important;min-width:3.1rem!important}}body.pupil #presentationCustom,body.pupil #presentationHistoryStatus,body.pupil #presentationNextExample,body.pupil #presentationPlay,body.pupil #presentationPrev,body.pupil #presentationPrevExample,body.pupil #presentationStage{display:none!important}.presentation-bar{display:none;position:fixed;left:0;right:0;top:0;z-index:80;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 2px 12px rgba(7,27,70,.08)}body.presentation.presentation-bottom .presentation-bar{top:auto;bottom:0;border-top:1px solid var(--line);border-bottom:none}body.presentation{background:#fff}body.presentation .export-toolbar,body.presentation .hero,body.presentation .info-toolbar,body.presentation .intro,body.presentation .preview-box,body.presentation [data-vmb-presentation-hide],body.presentation section.panel>h2{display:none!important}body.presentation .diagram-card{border:none;background:#fff;padding:.2rem;margin-top:0}body.pupil .presentation-title::after{content:" — Pupil Mode";color:var(--red)}body.presentation .presentation-secondary-row .custom-example-btn{background:#fff;color:var(--ink);border:1px solid #c9bfa8}body:has(.export-options[open]){padding-bottom:min(22rem,45vh)}.thinking-backdrop{display:none;position:fixed;inset:0;background:rgba(7,27,70,.42);z-index:95;align-items:center;justify-content:center;padding:1rem}.thinking-backdrop.show{display:flex}.thinking-panel{width:min(900px,96vw);max-height:92vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 20px 60px rgba(7,27,70,.28);padding:1.15rem 1.25rem}.thinking-panel h2{margin:.05rem 0 .35rem;font-family:var(--math-font);color:var(--navy);font-size:1.45rem}.thinking-panel .thinking-question{font-size:1.05rem;font-weight:800;color:var(--ink);margin:.35rem 0 .75rem}.thinking-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin:.85rem 0}.thinking-options>.act{justify-self:stretch;min-height:3rem;font-size:1rem}.thinking-option{border:2px solid var(--line);background:#fff;border-radius:14px;padding:.75rem;min-height:3rem;text-align:left;font-weight:800;color:var(--ink);cursor:pointer}.thinking-option:hover{border-color:var(--navy);box-shadow:0 8px 22px rgba(8,43,95,.12)}.thinking-option.removed{display:none}.thinking-option.text-option{font-size:1rem}.thinking-feedback{display:none;border-left:4px solid var(--navy);background:#eef4ff;padding:.75rem .9rem;border-radius:10px;margin-top:.75rem;color:var(--ink);font-weight:700}.thinking-feedback-correct{border-left-color:#2e7d32!important;background:#eaf7ec!important;color:#1b5e20!important}.thinking-feedback-incorrect{border-left-color:var(--red)!important;background:#fff3f3!important;color:var(--ink)!important}.thinking-feedback-neutral{border-left-color:var(--navy)!important;background:#eef4ff!important;color:var(--ink)!important}.thinking-actions{display:flex;gap:.6rem;justify-content:flex-end;flex-wrap:wrap;margin-top:1rem}.thinking-mini{display:block;width:100%;height:auto;border-radius:10px;background:#fafcff}.thinking-session-pill{font-size:.82rem;font-weight:800;color:var(--navy);background:#eef4ff;border:1px solid #d8e4ff;border-radius:999px;padding:.25rem .55rem;display:inline-block;margin-bottom:.45rem}@media (max-width:680px){.thinking-panel{padding:1rem}.thinking-options{grid-template-columns:1fr}.thinking-actions .act{flex:1 1 auto}}.vmb-bar-animate{animation-duration:var(--vmb-duration,520ms);animation-delay:var(--vmb-delay,0ms);animation-fill-mode:both;animation-timing-function:cubic-bezier(.2,.75,.25,1)}.vmb-bar-draw{animation-name:vmbBarDraw;transform-box:fill-box;transform-origin:left center}.vmb-bar-rise{animation-name:vmbBarRise}.vmb-bar-pop{animation-name:vmbBarPop;transform-box:fill-box;transform-origin:center}.vmb-bar-fade{animation-name:vmbBarFade}.vmb-bar-line{animation-name:vmbBarLine;stroke-dasharray:1;stroke-dashoffset:1}@keyframes vmbBarLine{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes vmbBarDraw{from{opacity:.2;transform:scaleX(.02)}to{opacity:1;transform:scaleX(1)}}@keyframes vmbBarRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes vmbBarPop{0%{opacity:0;transform:scale(.82)}70%{transform:scale(1.04)}100%{opacity:1;transform:scale(1)}}@keyframes vmbBarFade{from{opacity:0}to{opacity:1}}body.presentation.pupil .diagram-card{padding:.55rem!important}body.presentation.pupil .diagram-card svg{max-height:calc(48vh - 1rem)!important}body.presentation.pupil .thinking-panel{width:min(1100px,calc(100vw - 1rem));max-height:47vh;overflow:auto}body.presentation.pupil .thinking-options{align-items:stretch}body.presentation.pupil .thinking-option{min-width:0;overflow:hidden}body.presentation.pupil .thinking-mini{width:100%;max-height:29vh;object-fit:contain}@media(max-width:680px){body.presentation.pupil .diagram-card svg{max-height:35vh!important}body.presentation.pupil .thinking-panel{max-height:56vh}.thinking-mini{min-height:130px}.stage-left .vmb-animation-toggle{flex:1 1 100%}}@media (prefers-reduced-motion:reduce){.vmb-bar-animate{animation:none!important}.working-line-animate{opacity:1!important;animation:none!important;transform:none!important}}.working-fragment-animate{opacity:0;animation:vmbWorkingFragment .42s ease-out var(--fragment-delay,0ms) forwards}@keyframes vmbWorkingFragment{from{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}.working-equation{white-space:nowrap;min-height:1.65em}@media (prefers-reduced-motion:reduce){.working-fragment-animate{opacity:1!important;animation:none!important;transform:none!important}}.vmb-rounding-note{margin:.3rem 1rem .75rem;text-align:right;font-size:.78rem;line-height:1.25;color:#61718a;font-weight:600}.vmb-rounding-note[hidden]{display:none!important}.vmb-animation-toggle[aria-pressed=true]{background:#eef4ff!important;border-color:#9cb6df!important;color:#0b2e6d!important}.vmb-animation-toggle[aria-pressed=false]{background:#fff!important;color:#5f6978!important}.vmb-bar-static .vmb-bar-animate,.vmb-bar-static.vmb-bar-animate{animation:none!important;opacity:1!important;transform:none!important;stroke-dashoffset:0!important}@media(min-width:761px){body.presentation .presentation-bar{padding:.38rem .58rem!important;gap:.28rem!important}body.presentation .presentation-bar .right{gap:.28rem!important;flex-wrap:nowrap!important;width:100%!important}body.presentation .presentation-primary-row{width:auto!important;flex:0 0 auto!important;gap:.25rem!important}body.presentation .presentation-primary-row .generate-hero{width:auto!important;min-width:9.6rem!important;padding:.42rem .7rem!important;font-size:.76rem!important}body.presentation .presentation-history-btn{width:1.8rem!important;min-width:1.8rem!important;height:1.75rem!important;min-height:1.75rem!important;font-size:.66rem!important}body.presentation .presentation-history-status{min-width:5.8rem!important;font-size:.66rem!important}body.presentation .presentation-toolbar-toggle{width:1.75rem!important;height:1.75rem!important;min-height:1.75rem!important;font-size:.7rem!important}body.presentation .presentation-secondary-row{width:auto!important;flex:1 1 auto!important;flex-wrap:nowrap!important;gap:.22rem!important;justify-content:flex-end!important}body.presentation .presentation-stage-mini{flex-wrap:nowrap!important;gap:.2rem!important}body.presentation .presentation-secondary-row .act,body.presentation .presentation-stage-mini .act{padding:.3rem .42rem!important;font-size:.64rem!important;min-height:1.7rem!important}body.presentation .presentation-stage-mini .range{width:min(210px,17vw)!important}body.presentation .presentation-stage-mini .stage-note{font-size:.62rem!important;min-width:3.2rem!important}body.presentation .font-controls{padding:.08rem .12rem!important;gap:.08rem!important}body.presentation .font-controls .act{padding:.24rem .32rem!important;min-height:1.6rem!important}}.diagram-card-main{min-height:430px;display:flex;flex-direction:column;justify-content:center}.working-panel-main{min-height:13.2rem;box-sizing:border-box}@media(min-width:761px){body.presentation .presentation-bar{padding:.48rem .7rem!important;gap:.38rem!important}body.presentation .presentation-bar .right{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:auto auto!important;gap:.38rem!important;width:100%!important}body.presentation .presentation-primary-row,body.presentation .presentation-secondary-row{width:100%!important;min-width:0!important;flex-wrap:nowrap!important;justify-content:center!important;gap:.42rem!important}body.presentation .presentation-primary-row .generate-hero{min-width:12rem!important;padding:.48rem .9rem!important;font-size:.78rem!important}body.presentation .presentation-history-btn{width:2rem!important;min-width:2rem!important;height:1.95rem!important;min-height:1.95rem!important}body.presentation .presentation-history-status{min-width:8rem!important;font-size:.7rem!important}body.presentation .presentation-secondary-row .act,body.presentation .presentation-stage-mini .act{padding:.36rem .52rem!important;font-size:.68rem!important;min-height:1.78rem!important}body.presentation .presentation-stage-mini{flex:1 1 auto!important;min-width:0!important;flex-wrap:nowrap!important;justify-content:center!important}body.presentation .presentation-stage-mini .range{width:min(300px,24vw)!important}body.presentation .presentation-stage-mini .stage-note{min-width:8rem!important;max-width:13rem!important}body.presentation .presentation-toolbar-toggle{margin-left:auto!important;flex:0 0 auto!important;width:2rem!important;height:2rem!important;min-height:2rem!important}body.pupil .presentation-primary-row{justify-content:flex-start!important}body.pupil .presentation-secondary-row{justify-content:flex-end!important}}body.presentation .presentation-history-group,body.presentation .presentation-view-group{display:flex;align-items:center;justify-content:center;gap:.38rem;flex-wrap:wrap;min-width:0;max-width:100%}body.presentation .presentation-primary-row,body.presentation .presentation-secondary-row{min-width:0!important;max-width:100%!important;overflow:visible!important}body.presentation .presentation-secondary-row{flex-wrap:wrap!important;align-items:center!important}body.presentation .presentation-stage-mini{flex:1 1 34rem!important;min-width:min(100%,24rem)!important;max-width:100%!important;flex-wrap:wrap!important}body.presentation .presentation-stage-mini .range{flex:1 1 12rem!important;min-width:8rem!important;width:auto!important;max-width:24rem!important}body.presentation .presentation-stage-mini .stage-note{flex:0 1 auto!important;min-width:7rem!important;max-width:16rem!important;white-space:normal!important;line-height:1.15!important}body.presentation .presentation-view-group{flex:0 1 auto}body.presentation .presentation-toolbar-toggle{order:99;margin-left:auto!important;flex:0 0 auto!important}body.pupil .presentation-history-group,body.pupil .presentation-primary-row{justify-content:center!important;width:100%!important}body.pupil #presentationNew{margin-inline:auto!important}@media(min-width:761px){body.presentation .presentation-bar .right{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;width:100%!important;min-width:0!important}body.presentation .presentation-primary-row,body.presentation .presentation-secondary-row{flex-wrap:wrap!important}body.presentation .presentation-history-group{width:min(100%,42rem)!important}body.presentation .presentation-secondary-row{display:flex!important;justify-content:center!important;row-gap:.38rem!important}}@media(max-width:980px),(min-resolution:1.5dppx){body.presentation .presentation-bar{overflow-x:hidden!important}body.presentation .presentation-primary-row .generate-hero{min-width:min(12rem,60vw)!important;max-width:100%!important}body.presentation .presentation-secondary-row .act,body.presentation .presentation-stage-mini .act{max-width:100%!important}}.representation-workspace{position:relative;min-width:0}body:not(.presentation) .representation-workspace .stage-toolbar{position:sticky;top:0;z-index:45;background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 3px 12px rgba(7,27,70,.07);isolation:isolate}body:not(.presentation) .representation-workspace .stage-toolbar .stage-left{flex-wrap:wrap;min-width:0}body:not(.presentation) .representation-workspace .stage-toolbar .stage-top{min-width:0}.vmb-partition-flash{pointer-events:none;animation:.72s ease-out both vmbPartitionFlash}@keyframes vmbPartitionFlash{0%,100%{opacity:0}18%,72%{opacity:1}}.info-toolbar{justify-content:center!important}body.presentation .diagram-card svg,body.presentation.pupil .diagram-card svg{max-width:100%!important;margin-inline:auto!important;max-width:none!important;max-height:none!important;width:auto!important;height:auto!important}body.presentation.presentation-stage-collapsed .presentation-secondary-row{display:none!important}body.presentation.presentation-stage-collapsed .presentation-primary-row{display:flex!important}body.presentation .presentation-primary-row .presentation-toolbar-toggle{margin-left:.35rem!important;flex:0 0 auto!important}body.presentation.presentation-stage-collapsed .presentation-bar{padding:.38rem .7rem!important}body.presentation.presentation-stage-collapsed .wrap{padding-top:calc(var(--pres-bar-h,56px) + .8rem)!important}.vmb-playback-locked button:disabled,.vmb-playback-locked input:disabled{cursor:wait}.recurring-answer{white-space:nowrap}.recurring-digit{position:relative;display:inline-block}.recurring-digit.recurring-dot::before{content:"";position:absolute;width:.17em;height:.17em;border-radius:50%;background:currentColor;left:50%;transform:translateX(-50%);top:-.3em}body.presentation .diagram-card,body.presentation.pupil .diagram-card{overflow:auto!important}.vmb-playback-locked [disabled]{cursor:wait!important}body.presentation .diagram-card-main svg,body.presentation.pupil .diagram-card-main svg{margin-inline:auto!important;width:100%!important;display:block!important;width:min(980px,calc(100vw - 3rem))!important;max-width:none!important;max-height:none!important;height:auto!important;margin-inline:auto!important}body.presentation .diagram-card-main,body.presentation.pupil .diagram-card-main{overflow:auto!important;-webkit-overflow-scrolling:touch}.thinking-backdrop.thinking-docked{display:flex;align-items:flex-end;justify-content:center;padding:0;background:0 0;pointer-events:none;visibility:hidden;overflow:hidden}.thinking-backdrop.thinking-docked.closing,.thinking-backdrop.thinking-docked.show{visibility:visible}.thinking-backdrop.thinking-docked .thinking-panel{width:100%;max-width:none;max-height:min(46vh,30rem);overflow:auto;border-radius:18px 18px 0 0;border-left:0;border-right:0;border-bottom:0;padding:1rem max(1rem,calc((100vw - 980px)/ 2));padding-bottom:max(1rem,env(safe-area-inset-bottom));box-shadow:0 -12px 36px rgba(7,27,70,.18);pointer-events:auto;transform:translateY(105%);opacity:.98;transition:transform 250ms cubic-bezier(.2,.75,.25,1),opacity 180ms;will-change:transform}.thinking-backdrop.thinking-docked.show .thinking-panel{transform:translateY(0);opacity:1}.thinking-backdrop.thinking-docked.closing .thinking-panel{transform:translateY(105%)}.thinking-backdrop.thinking-docked .thinking-session-pill{margin-bottom:.3rem}.thinking-backdrop.thinking-docked .thinking-panel h2{margin-bottom:.2rem}.thinking-backdrop.thinking-docked .thinking-panel .thinking-question{margin:.25rem 0 .55rem}.thinking-backdrop.thinking-docked .thinking-options{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin:.55rem 0;gap:.55rem}.thinking-backdrop.thinking-docked .thinking-actions{margin-top:.55rem;justify-content:flex-start}body.pupil:has(.thinking-backdrop.thinking-docked.closing),body.pupil:has(.thinking-backdrop.thinking-docked.show){padding-bottom:min(46vh,30rem)}@media(max-width:680px){.diagram-card-main{min-height:320px}.working-panel-main{min-height:11.5rem}body:not(.presentation) .representation-workspace .stage-toolbar{top:0}body.presentation .diagram-card-main svg,body.presentation.pupil .diagram-card-main svg{width:min(980px,calc(100vw - 1.5rem))!important}.thinking-backdrop.thinking-docked .thinking-panel{max-height:58vh;padding:.8rem max(.85rem,env(safe-area-inset-right)) calc(.8rem + env(safe-area-inset-bottom)) max(.85rem,env(safe-area-inset-left))}.thinking-backdrop.thinking-docked .thinking-options{grid-template-columns:1fr}body.pupil:has(.thinking-backdrop.thinking-docked.closing),body.pupil:has(.thinking-backdrop.thinking-docked.show){padding-bottom:58vh}}@media(prefers-reduced-motion:reduce){.vmb-partition-flash{animation-duration:.28s}.thinking-backdrop.thinking-docked .thinking-panel{transition:none!important}}@media(min-width:861px){body.pupil:has(.thinking-backdrop.thinking-docked.closing) .working-panel-main,body.pupil:has(.thinking-backdrop.thinking-docked.show) .working-panel-main{display:block!important;position:fixed!important;left:0!important;bottom:0!important;z-index:96!important;width:var(--pupil-working-width)!important;min-width:0!important;max-width:var(--pupil-working-width)!important;height:var(--pupil-console-height)!important;min-height:var(--pupil-console-height)!important;max-height:var(--pupil-console-height)!important;margin:0!important;padding:1rem 1.1rem!important;border-radius:18px 0 0!important;border-left:0!important;border-bottom:0!important;overflow:auto!important;background:#fff!important;box-shadow:0 -12px 36px rgba(7,27,70,.18)!important}body.pupil:has(.thinking-backdrop.thinking-docked.closing) .working-panel-main summary,body.pupil:has(.thinking-backdrop.thinking-docked.show) .working-panel-main summary{position:sticky;top:0;background:#fff;z-index:1}body.pupil .thinking-backdrop.thinking-docked{left:var(--pupil-working-width)!important;right:0!important;width:auto!important;height:var(--pupil-console-height)!important;top:auto!important;bottom:0!important;align-items:stretch!important}body.pupil .thinking-backdrop.thinking-docked .thinking-panel{width:100%!important;height:var(--pupil-console-height)!important;min-height:var(--pupil-console-height)!important;max-height:var(--pupil-console-height)!important;border-radius:0 18px 0 0!important;border-right:0!important;border-bottom:0!important;padding:1rem 1.25rem!important;overflow:auto!important}body.pupil:has(.thinking-backdrop.thinking-docked.closing),body.pupil:has(.thinking-backdrop.thinking-docked.show){padding-bottom:var(--pupil-console-height)!important}}@media(max-width:860px){body.pupil{--pupil-mobile-working-height:9rem;--pupil-mobile-prompt-height:min(42vh,22rem)}body.pupil:has(.thinking-backdrop.thinking-docked.closing) .working-panel-main,body.pupil:has(.thinking-backdrop.thinking-docked.show) .working-panel-main{display:block!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:96!important;width:100%!important;height:var(--pupil-mobile-working-height)!important;min-height:var(--pupil-mobile-working-height)!important;max-height:var(--pupil-mobile-working-height)!important;margin:0!important;padding:.75rem .9rem calc(.75rem + env(safe-area-inset-bottom))!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-bottom:0!important;overflow:auto!important;background:#fff!important;box-shadow:none!important}body.pupil .thinking-backdrop.thinking-docked{top:auto!important;bottom:var(--pupil-mobile-working-height)!important;height:var(--pupil-mobile-prompt-height)!important;align-items:stretch!important}body.pupil .thinking-backdrop.thinking-docked .thinking-panel{height:var(--pupil-mobile-prompt-height)!important;min-height:var(--pupil-mobile-prompt-height)!important;max-height:var(--pupil-mobile-prompt-height)!important;border-radius:18px 18px 0 0!important;overflow:auto!important}body.pupil:has(.thinking-backdrop.thinking-docked.closing),body.pupil:has(.thinking-backdrop.thinking-docked.show){padding-bottom:calc(var(--pupil-mobile-working-height) + var(--pupil-mobile-prompt-height))!important}}@media (max-width:680px){.diagram-card-main{min-height:260px!important;padding:.65rem!important}.diagram-card-main svg{width:100%!important;height:auto!important}}.thinking-fraction-input-wrap,.thinking-input-wrap{display:flex;align-items:center;justify-content:flex-start;gap:.65rem;flex-wrap:wrap;width:100%}.thinking-answer-input{width:10rem;max-width:100%;border:2px solid var(--line);border-radius:10px;padding:.7rem .8rem;font:800 1.05rem var(--math-font);color:var(--ink);background:#fff;outline:0;text-align:center}.thinking-answer-input:focus,.thinking-fraction-part:focus{border-color:var(--navy);box-shadow:0 0 0 3px rgba(11,46,109,.12)}.thinking-submit{min-width:8.5rem}.thinking-fraction-entry{display:grid;grid-template-rows:auto 2px auto;align-items:center;justify-items:center;width:5.2rem}.thinking-fraction-part{width:5.2rem;border:2px solid var(--line);border-radius:9px;padding:.42rem .35rem;font:800 1.05rem var(--math-font);color:var(--ink);background:#fff;outline:0;text-align:center}.thinking-fraction-line{display:block;width:4.5rem;height:2px;margin:.28rem 0;border-radius:2px;background:var(--ink)}@media(min-width:761px){body.pupil{--pupil-console-h:min(38vh,23rem)}body.pupil .thinking-backdrop.thinking-docked .thinking-panel{max-height:var(--pupil-console-h)!important}}@media(max-width:560px){.thinking-fraction-input-wrap,.thinking-input-wrap{align-items:stretch}.thinking-answer-input,.thinking-submit{width:100%}.thinking-fraction-input-wrap{display:grid;grid-template-columns:auto 1fr}}body.pupil{--pupil-console-height:clamp(13rem,28vh,18rem);--pupil-working-width:clamp(18rem,30vw,27rem);--pupil-console-height:16rem;--pupil-working-width:clamp(19rem,31vw,29rem);--pupil-mobile-working-height:10.5rem;--pupil-mobile-prompt-height:13rem}@media(min-width:861px){body.pupil .thinking-backdrop.thinking-docked,body.pupil .thinking-backdrop.thinking-docked .thinking-panel,body.pupil:has(.thinking-backdrop.thinking-docked.closing) .working-panel-main,body.pupil:has(.thinking-backdrop.thinking-docked.show) .working-panel-main{height:var(--pupil-console-height)!important;min-height:var(--pupil-console-height)!important;max-height:none!important}body.pupil .thinking-backdrop.thinking-docked .thinking-panel,body.pupil:has(.thinking-backdrop.thinking-docked.closing) .working-panel-main,body.pupil:has(.thinking-backdrop.thinking-docked.show) .working-panel-main{overflow:visible!important}body.pupil:has(.thinking-backdrop.thinking-docked.closing),body.pupil:has(.thinking-backdrop.thinking-docked.show){padding-bottom:var(--pupil-console-height)!important}}@media(max-width:860px){body.pupil:has(.thinking-backdrop.thinking-docked.closing) .working-panel-main,body.pupil:has(.thinking-backdrop.thinking-docked.show) .working-panel-main{height:var(--pupil-mobile-working-height)!important;min-height:var(--pupil-mobile-working-height)!important;max-height:none!important;overflow:visible!important}body.pupil .thinking-backdrop.thinking-docked{bottom:var(--pupil-mobile-working-height)!important;height:var(--pupil-mobile-prompt-height)!important;min-height:var(--pupil-mobile-prompt-height)!important;max-height:none!important}body.pupil .thinking-backdrop.thinking-docked .thinking-panel{height:var(--pupil-mobile-prompt-height)!important;min-height:var(--pupil-mobile-prompt-height)!important;max-height:none!important;overflow:visible!important}body.pupil:has(.thinking-backdrop.thinking-docked.closing),body.pupil:has(.thinking-backdrop.thinking-docked.show){padding-bottom:calc(var(--pupil-mobile-working-height) + var(--pupil-mobile-prompt-height))!important}}@media(max-width:680px){.diagram-card-main{min-height:285px!important;padding:.45rem!important;overflow-x:hidden!important;overflow-y:visible!important}.diagram-card-main svg{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;overflow:visible!important;transform:translateZ(0)}.diagram-card-main:has(svg.vmb-wide-model){overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch}.diagram-card-main svg.vmb-wide-model{display:block!important;width:auto!important;max-width:none!important;min-width:100%!important;height:auto!important;margin-inline:0!important}}.presentation-stage-mini button:disabled,.stage-toolbar button:disabled{opacity:.42;cursor:not-allowed;box-shadow:none}.vmb-generation-options,details[data-vmb-generation-options]{margin:.7rem 0 1rem;border:1px solid var(--line);border-radius:12px;background:#f8fafc;padding:.15rem .75rem}.vmb-generation-options>summary,details[data-vmb-generation-options]>summary{cursor:pointer;font-weight:900;color:var(--navy);padding:.65rem 0;list-style:none;user-select:none}.vmb-generation-options>summary::-webkit-details-marker,details[data-vmb-generation-options]>summary::-webkit-details-marker{display:none}.vmb-generation-options>summary::before,details[data-vmb-generation-options]>summary::before{content:"▸";margin-right:.45rem}.vmb-generation-options[open]>summary::before,details[data-vmb-generation-options][open]>summary::before{content:"▾"}.generation-options-body{padding:.15rem 0 .75rem}.generation-option-row{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.generation-select-label{display:flex;align-items:center;gap:.5rem;font-size:.88rem;font-weight:900;color:var(--ink)}.generation-context-select{width:min(22rem,100%)!important;text-align:left!important}.custom-example-panel .custom-generation-options{margin-top:.9rem}.working-lines{min-width:0;max-width:100%}.working-line{min-width:0;overflow-wrap:anywhere;word-break:normal}@media(max-width:680px){.generation-option-row{align-items:stretch}.generation-option-row>*{width:100%}.generation-select-label{display:grid;grid-template-columns:auto 1fr}.generation-context-select{width:100%!important}.working-lines{font-size:clamp(.92rem,4.2vw,1.05rem)!important;line-height:1.5!important}.working-line{display:block!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;margin-bottom:.45rem}}.currency-input-wrap{position:relative;display:inline-flex;align-items:center}.currency-input-wrap .currency-input-symbol{position:absolute;left:.62rem;z-index:1;font-family:var(--math-font,inherit);font-weight:800;pointer-events:none;display:none}.currency-input-wrap input{padding-left:1.45rem!important}.currency-input-wrap.money .currency-input-symbol{display:block}.working-line{overflow-wrap:anywhere;word-break:normal;max-width:100%}.vmb-inline-fraction{display:inline-grid;grid-template-rows:auto 1px auto;align-items:center;justify-items:center;vertical-align:middle;line-height:1;margin:0 .1em}.vmb-inline-fraction::before{content:"";grid-row:2;width:100%;min-width:1em;border-top:1.5px solid currentColor}.vmb-inline-fraction .num{grid-row:1;padding:0 .12em}.vmb-inline-fraction .den{grid-row:3;padding:0 .12em}.vmb-mixed-number{display:inline-flex;align-items:center;gap:.08em}.ratio-rounding-note{font-size:.86rem;font-weight:700;fill:#5B6472;color:#5b6472}body.presentation .workspace-presentation-exit{display:block!important;position:fixed!important;top:calc(env(safe-area-inset-top) + .65rem)!important;right:calc(env(safe-area-inset-right) + .75rem)!important;z-index:10040!important;min-height:2.35rem!important;padding:.48rem .9rem!important;border:1px solid var(--line,#d8dee8)!important;border-radius:999px!important;background:#fff!important;color:var(--navy,#102a43)!important;box-shadow:0 8px 24px rgba(15,39,66,.14)!important;font:800 .9rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;cursor:pointer!important}body:not(.presentation) .workspace-presentation-exit{display:none!important}.presentation-collapsed-nav{display:none}body.presentation .presentation-step-float.is-collapsed .presentation-float-chrome{display:grid!important;grid-template-columns:1fr auto!important;grid-template-rows:auto auto!important;align-items:center!important;gap:.28rem .35rem!important;min-height:0!important}body.presentation .presentation-step-float.is-collapsed .presentation-drag-handle{grid-column:1!important;grid-row:1!important;min-height:1.8rem!important}body.presentation .presentation-step-float.is-collapsed .presentation-collapse-toggle{grid-column:2!important;grid-row:1!important}body.presentation .presentation-step-float.is-collapsed .presentation-collapsed-nav{display:grid!important;grid-column:1/-1!important;grid-row:2!important;grid-template-columns:1fr 1fr!important;border:1px solid var(--line,#d8dee8)!important;border-radius:8px!important;overflow:hidden!important;background:#fff!important}body.presentation .presentation-collapsed-step{min-width:2.4rem!important;min-height:2rem!important;padding:.2rem .55rem!important;border:0!important;background:#fff!important;color:var(--navy,#102a43)!important;font-size:1.25rem!important;font-weight:900!important;cursor:pointer!important}body.presentation .presentation-collapsed-step+.presentation-collapsed-step{border-left:1px solid var(--line,#d8dee8)!important}body.presentation .presentation-collapsed-step:disabled{opacity:.35!important;cursor:not-allowed!important}body.presentation .model-canvas{height:var(--presentation-model-height)!important;min-height:150px!important;max-height:var(--presentation-model-height)!important}body.presentation .model-canvas>svg,body.presentation .question-canvas>svg{max-height:100%!important}body.presentation .working-panel,body.presentation.presentation-working-open #integratedModelPanel,body.presentation.presentation-working-open .integrated-model-panel{margin-bottom:.55rem!important}body.presentation .working-panel[open]{max-height:min(42dvh,var(--presentation-working-height,42dvh))!important;overflow:auto!important;overscroll-behavior:contain!important}body.presentation .question-canvas{flex:0 0 auto!important}@media(max-height:760px){body.presentation .working-panel{padding:.62rem .8rem!important}body.presentation .working-panel[open]{max-height:44dvh!important}body.presentation .workspace-presentation-exit{top:calc(env(safe-area-inset-top) + .4rem)!important}}