.arithmetic-workspace{--math-left:var(--accent);--math-right:var(--rust);min-width:0;padding:.9rem}.arithmetic-workspace [hidden],.math-console [hidden]{display:none!important}.arithmetic-workspace p{margin:0}.arithmetic-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.arithmetic-heading small{color:var(--muted)}.arithmetic-expression{text-align:center;font-variant-numeric:tabular-nums;padding:.45rem 0;font-size:clamp(1.7rem,4vw,2.5rem);line-height:1.25}.arithmetic-editor,.arithmetic-workspace form>fieldset{border:0;min-width:0;margin:0;padding:0}.arithmetic-editor{flex-wrap:wrap;justify-content:center;align-items:end;gap:.55rem;display:flex}.arithmetic-editor legend,.arithmetic-workspace form legend{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.arithmetic-workspace label{flex-direction:column;align-items:center;gap:.2rem;font-size:.85rem;display:flex}.arithmetic-number-control{align-items:center;gap:.15rem;display:flex}.arithmetic-workspace input,.math-console-number input{border:1px solid var(--control-edge);background:var(--panel);width:5rem;min-height:44px;color:var(--text);font:inherit;text-align:center;border-radius:.45rem;font-size:1.2rem}.arithmetic-workspace button,.math-console button{border:1px solid var(--control-edge);min-width:44px;min-height:44px;color:var(--text);background:var(--panel);font:inherit;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;border-radius:.5rem;padding:.4rem .65rem}.arithmetic-workspace button:hover:not(:disabled),.math-console button:hover:not(:disabled){border-color:var(--accent);background:var(--accent-soft)}.arithmetic-workspace button:focus-visible,.arithmetic-workspace input:focus-visible,.math-console input:focus-visible,.math-console button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.arithmetic-workspace button.arithmetic-primary{background:var(--accent);border-color:var(--accent);color:var(--paper);font-weight:600}.arithmetic-workspace button.arithmetic-primary:hover{background:var(--accent);color:var(--paper);filter:brightness(1.12)}.arithmetic-workspace button:disabled{opacity:.45;cursor:default}.arithmetic-actions,.arithmetic-demo-actions,.arithmetic-response,.arithmetic-fraction-answer,.arithmetic-relations{flex-wrap:wrap;justify-content:center;align-items:end;gap:.4rem;display:flex}.arithmetic-demo-actions{border:0;margin:.5rem 0 0;padding:0}.math-dot-array{justify-content:center;gap:.4rem;margin:.7rem auto;display:grid}.math-array-counter{background:var(--math-left);border:1px solid var(--text);border-radius:50%;width:1.3rem;height:1.3rem}.math-division-supply{text-align:center;border-bottom:1px solid var(--control-edge);padding:.4rem}.arithmetic-workspace button.math-fraction-cell{border:0;border-inline-end:1px solid var(--control-edge);background:var(--paper);border-radius:0;min-width:0;padding:0}.arithmetic-workspace button.math-fraction-cell.math-visual-filled{background:var(--accent)}.arithmetic-workspace button.math-fraction-cell:focus-visible{outline-offset:-5px;outline-color:var(--text)}.arithmetic-actions{margin-top:.5rem;font-size:.85rem}.arithmetic-relations button{min-width:56px;font-size:1.8rem;line-height:1}.arithmetic-relations button[aria-pressed=true]{background:var(--accent-soft);border:2px solid var(--accent)}.arithmetic-fraction-answer>span{font-size:2rem}.arithmetic-feedback{text-align:center;min-height:2.5em;padding:.45rem .3rem 0;font-size:.92rem;line-height:1.3}.arithmetic-feedback[data-result=correct]{color:var(--accent);font-weight:600}.arithmetic-feedback[data-result=retry]{border-left:3px solid var(--rust)}.arithmetic-hint{border-left:3px solid var(--rust);background:var(--shade);border-radius:.4rem;padding:.5rem;font-size:.9rem;margin-top:.4rem!important}.math-course-aside{gap:1rem;min-width:0;display:grid}.math-course-symbol{color:var(--accent);text-align:center;min-width:2.8rem;font-size:1.4rem;font-weight:650}.math-prerequisite{color:var(--muted);font-size:.9rem}.math-trainer-card{gap:.6rem;display:grid}.math-console{gap:.7rem;padding:.85rem;font-size:.9rem;display:grid}.math-console h2,.math-console p{margin:0}.math-console h2{font-size:1.1rem}.math-console>fieldset{border:0;gap:.8rem;min-width:0;margin:0;padding:0;display:grid}.math-console fieldset fieldset{border:0;min-width:0;margin:0;padding:0}.math-console legend{margin-bottom:.3rem;font-weight:600}.math-console-number{justify-content:space-between;align-items:center;gap:.4rem;display:flex}.math-console-presets,.math-console-options,.math-console-unknown,.math-console-factors,.math-console-denominators,.math-console-topics{flex-wrap:wrap;gap:.3rem;display:flex}.math-console-choice{cursor:pointer;position:relative}.math-console-choice input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.math-console-choice span{border:1px solid var(--control-edge);background:var(--panel);-webkit-user-select:none;user-select:none;pointer-events:none;border-radius:.4rem;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:.4rem .55rem;display:flex}.math-console-choice input:checked+span{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}.math-console-choice input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}.math-console [data-console-status]{color:var(--muted);font-size:.85rem}.math-visual{min-width:0;color:var(--text)}.math-visual>svg{width:100%;max-height:190px;margin:0 auto .4rem;display:block;overflow:visible}.math-weight{fill:var(--math-left);stroke:var(--text);stroke-width:1px}.math-packet{color:var(--math-left)}.math-weight-groups,.math-array{flex-wrap:wrap;justify-content:center;gap:.5rem;margin:.5rem 0;display:flex}.math-group{border:1px solid var(--control-edge);background:var(--paper);border-radius:.6rem;min-width:48px;padding:.5rem}.math-place-columns{flex-wrap:wrap;justify-content:center;gap:.5rem;margin:.6rem 0;display:flex}.math-place-column{border:1px solid var(--control-edge);text-align:center;background:var(--paper);border-radius:.5rem;min-width:4rem;padding:.5rem}.math-fraction-strip{border:2px solid var(--control-edge);border-radius:.4rem;width:100%;height:56px;margin:.4rem auto;display:flex;overflow:hidden}.math-fraction-cell{border-inline-end:1px solid var(--control-edge);background:var(--paper);flex:1 1 0}.math-fraction-cell:last-child{border-inline-end:0}.math-fraction-cell.math-visual-filled{background:var(--accent)}.math-visual svg{width:100%;max-height:190px;display:block}.math-visual-first{color:var(--math-left)}.math-visual-second{color:var(--math-right)}.math-visual-caption,.math-visual-fraction-label{text-align:center;font-size:.9rem}span.math-weight,span.math-packet{min-width:25px;min-height:28px;color:var(--math-left);border:1px solid;border-radius:.3rem;justify-content:center;align-items:center;margin:2px;padding:.15rem;font-size:.85rem;display:inline-flex}span.math-packet{border-width:2px;font-weight:600}.math-visual-removed{text-decoration:line-through;color:var(--muted)!important;border-style:dashed!important}.math-visual-unknown{font-size:1.5rem;font-weight:600}.math-visual-place-label{color:var(--muted);font-size:.8rem}.math-visual-place-count{font-size:1.4rem}.math-visual-group-label{font-size:.8rem}.math-ten-frame{grid-template-columns:repeat(5,7px);gap:2px;margin:.25rem;display:grid}.math-ten-cell{background:currentColor;border-radius:1px;width:7px;height:7px;display:block}.math-place-column>.math-packet{flex-direction:column}.arithmetic-workspace[data-mode=demo] .arithmetic-feedback:empty,.arithmetic-workspace[data-mode=practice] .arithmetic-feedback:empty{display:none}@media (max-width:680px){.arithmetic-workspace{padding:.6rem}.arithmetic-workspace input{width:4.2rem}.arithmetic-workspace button{padding:.35rem .45rem}.arithmetic-heading strong{font-size:.95rem}.math-visual>svg{max-height:155px}.math-console-topics{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}}.math-visual .math-balance{width:100%;height:auto;max-height:none;display:block;overflow:visible}.math-balance .math-balance-base{fill:var(--paper);stroke:var(--control-edge);stroke-width:2px}.math-balance .math-balance-pillar{fill:var(--panel);stroke:var(--text);stroke-width:2.5px}.math-balance .math-visual-beam{stroke:var(--text);stroke-width:9px;stroke-linecap:round}.math-balance .math-balance-pivot{fill:var(--paper);stroke:var(--text);stroke-width:3px}.math-balance .math-balance-rope{fill:none;stroke:var(--muted);stroke-width:2px}.math-balance .math-balance-tray{fill:var(--paper);stroke:var(--text);stroke-width:2.5px;stroke-linejoin:round}.math-balance .math-balance-weight-face{fill:color-mix(in srgb, currentColor 9%, var(--paper));stroke:currentColor;stroke-width:2.2px;stroke-linejoin:round}.math-balance .math-balance-weight-handle{fill:none;stroke:currentColor;stroke-width:2.4px}.math-balance .math-balance-weight-label{fill:currentColor;stroke:none;text-anchor:middle;font-family:inherit;font-weight:750}.math-balance .math-balance-weight-count{fill:var(--text);stroke:none;text-anchor:middle;font-family:inherit;font-size:15px;font-weight:700}.math-balance .math-balance-weight{color:var(--math-left);fill:none;stroke:none}.math-balance .math-balance-weight.math-visual-second{color:var(--math-right)}.math-balance .math-balance-unknown-face{fill:var(--paper);stroke:var(--muted);stroke-width:2px;stroke-dasharray:4 4}.math-balance .math-balance-amount{fill:var(--text);stroke:none;text-anchor:middle;font-family:inherit;font-size:20px;font-weight:700}.math-balance-legend{color:var(--muted);flex-wrap:wrap;justify-content:center;align-items:center;gap:.35rem .7rem;margin:.35rem 0 0;font-size:.82rem;line-height:1.45;display:flex}.math-balance-legend>span{align-items:center;gap:.25rem;display:inline-flex}.math-balance-legend strong{color:var(--text);font-variant-numeric:tabular-nums}.math-collections{min-height:9rem;padding:.7rem 0}.collection-groups{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.65rem;display:grid}.collection-group{border:1px solid var(--edge);background:var(--panel);border-radius:1rem;padding:.8rem}.collection-label{color:var(--muted);justify-content:space-between;align-items:center;gap:.5rem;font-size:.9rem;display:flex}.collection-label b{color:var(--text);font-size:1.4rem}.collection-counters{flex-wrap:wrap;place-content:center;gap:.5rem;min-height:5rem;padding-top:.6rem;display:flex}.collection-token{width:2rem;height:2rem;box-shadow:inset 0 0 0 4px var(--panel);background:currentColor;border:2px solid;border-radius:50%;flex:0 0 2rem;display:inline-block}.collection-token-first{color:var(--accent)}.collection-token-second{color:var(--rust)}.collection-operation{font-size:2rem}.collection-empty{color:var(--muted);align-self:center}.collection-pairs,.collection-pair-head{width:9rem;margin:auto}.collection-pair,.collection-pair-head{grid-template-columns:2rem 5rem 2rem;place-items:center;gap:0;display:grid}.collection-pair{margin:.4rem 0}.collection-pair-link{color:var(--muted);font-size:2.5rem;line-height:1}.collection-conclusion{text-align:center;min-height:1.5em;padding-top:.5rem}.arithmetic-demo-actions{border:0;flex-wrap:wrap;justify-content:center;gap:.5rem;margin:0;padding:0;display:flex}.arithmetic-demo-actions legend{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}@media (max-width:540px){.collection-group{padding:.55rem}.collection-label{text-align:center;flex-direction:column;gap:.1rem}.collection-counters{gap:.35rem}.collection-token{flex-basis:1.65rem;width:1.65rem;height:1.65rem}}.nc-line{fill:none;width:100%;max-height:135px;stroke:var(--text);stroke-width:2px;display:block;overflow:visible}.nc-line text{fill:var(--text);stroke:none;text-anchor:middle;font:24px sans-serif}.nc-line .nc-start{fill:var(--accent);stroke:var(--paper)}.nc-line .nc-second{fill:var(--rust);stroke:var(--paper)}.nc-line .nc-end{fill:var(--text);stroke:var(--paper)}.nc-line .nc-jump,.nc-line .nc-jump-tip{stroke:var(--accent);stroke-width:3px}.nc-line .nc-step-label{fill:var(--accent);font-size:11px;font-weight:700}.nc-line .nc-my-marker{stroke:var(--rust);stroke-width:5px}.arithmetic-number-line{width:100%;min-width:0}.arithmetic-line-direction{color:var(--accent);font-size:.95rem;display:block}.arithmetic-number-line .nc-line{max-height:160px}.arithmetic-line-caption{font-variant-numeric:tabular-nums;flex-wrap:wrap;gap:.3rem 1rem;margin:0;font-size:.9rem;display:flex}.arithmetic-line-help{color:var(--muted);font-size:.85rem;line-height:1.35}.arithmetic-model-controls{border:0;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.5rem 0;padding:0;display:flex}.arithmetic-model-controls legend{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.arithmetic-model-controls button[aria-pressed=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.arithmetic-workspace:not([data-mode=demo]) .arithmetic-number-line .nc-line{cursor:pointer;touch-action:manipulation}.arithmetic-workspace[data-solved=true] .arithmetic-number-line .nc-line{cursor:default}
