.math-lesson-journey{border:1px solid var(--control-edge);background:var(--panel);border-radius:.5rem;gap:.6rem;min-width:0;padding:.75rem;display:grid}.math-lesson-journey p{margin:0}.math-journey-summary{flex-wrap:wrap;align-items:baseline;gap:.4rem .8rem;display:flex}.math-journey-step{min-width:0;max-width:100%;color:var(--accent);flex:0 auto;font-size:.9em;font-weight:650}.math-journey-bridge{flex:20rem;min-width:0;font-size:.95em;line-height:1.5}.math-journey-actions{flex-wrap:wrap;gap:.55rem;display:flex}[data-presentation=workshop] .math-lesson-journey .ui-action-link{max-width:27rem;min-height:44px;box-shadow:none;border-radius:.5rem;flex:13rem;gap:.6rem;padding:.5rem .65rem;font-size:.9em}.math-journey-direction{font-weight:400}.math-lesson-journey .ui-action-link.math-journey-previous{grid-template-columns:auto minmax(0,1fr)}.math-journey-previous .ui-action-link-label{grid-area:1/2}.math-journey-previous .ui-action-link-icon{grid-area:1/1;transform:rotate(180deg)}.math-course-nav .math-course-sequence{gap:.35rem;margin:0;padding:0;list-style:none;display:grid}.math-course-sequence li{min-width:0;margin:0;padding:0}.math-course-nav .math-course-sequence a{grid-template-columns:1.75rem minmax(0,1fr);align-items:center;gap:.6rem;width:100%;min-height:44px;padding:.4rem .5rem;display:grid}.math-course-number{border:1px solid var(--control-edge);width:1.75rem;height:1.75rem;color:var(--muted);font-variant-numeric:tabular-nums;border-radius:50%;place-items:center;font-size:.9em;display:grid}.math-course-name{min-width:0;line-height:1.3}.math-course-nav a[aria-current=page]{border-color:var(--accent);background:var(--accent-soft);font-weight:650}.math-course-nav [aria-current=page] .math-course-number{border-color:var(--accent);color:var(--text);font-weight:700}.math-course-current{color:var(--muted);margin-top:.15rem;font-size:.75em;font-weight:400;display:block}@media (max-width:540px){.math-lesson-journey{padding:.65rem}[data-presentation=workshop] .math-lesson-journey .ui-action-link{flex-basis:100%;max-width:none}}.math-nav-strand h3{margin:.8rem 0 .35rem;font-size:.85rem;line-height:1.4}.math-hub,.math-lesson{gap:1.25rem;min-width:0;display:grid}.math-hero h1{margin-top:.25rem}.math-hero>p{max-width:58ch}.math-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.math-topic-card{align-content:start;gap:.7rem;display:grid}.math-topic-card h3,.math-topic-card h4,.math-topic-card p{margin:0}.math-hub-strand+.math-hub-strand{margin-top:1.75rem}.math-hub-strand>p{margin:.35rem 0 1rem}.math-topic-icon{color:var(--accent)}.math-stage-links,.math-sidebar nav{flex-wrap:wrap;gap:.55rem;display:flex}.math-stage-links .ui-action-link{min-height:44px;padding:.55rem .7rem;font-size:.95em}.math-sidebar{gap:.7rem;display:grid}.math-sidebar h2{margin:0;font-size:1.1rem}.math-sidebar a{border:1px solid var(--control-edge);background:var(--panel);border-radius:.5rem;align-items:center;gap:.5rem;min-height:44px;padding:.5rem;text-decoration:none;display:inline-flex}.math-sidebar a:hover{background:var(--accent-soft)}.math-lesson-section{gap:1rem;scroll-margin-top:1rem;display:grid}.math-theory-card{min-width:0}.math-theory-card h3{margin-top:0}.math-theory-card>p{max-width:none}.math-stage-intro{border:1px solid var(--edge);background:var(--panel);border-radius:.5rem;padding:.6rem .8rem}.math-theory-card .math-activity{background:var(--paper);margin-top:.8rem}.math-grownups{margin-top:1rem}.math-activity{--math-left:var(--accent);--math-right:var(--rust);min-width:0;padding:1rem}.math-activity [hidden]{display:none!important}.math-activity h3,.math-activity h4,.math-activity p{margin:0}.math-task-heading{margin-bottom:.7rem}.math-task-heading h3{font-size:1.2rem;line-height:1.35}.math-instruction{color:var(--muted);font-size:.9rem;margin-top:.3rem!important}.math-game-settings{border-bottom:1px solid var(--edge);flex-wrap:wrap;align-items:end;gap:.8rem;margin-bottom:.7rem;padding-bottom:.7rem;display:flex}.math-game-settings fieldset{border:0;flex-wrap:wrap;gap:.3rem;min-width:0;margin:0;padding:0;display:flex}.math-game-settings legend{color:var(--muted);margin-bottom:.2rem;font-size:.8rem}.math-game-settings label{cursor:pointer;position:relative}.math-game-settings label input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.math-game-settings label span{border:1px solid var(--control-edge);background:var(--panel);-webkit-user-select:none;user-select:none;pointer-events:none;border-radius:.5rem;align-items:center;min-height:44px;padding:.4rem .65rem;display:flex}.math-game-settings input:checked+span{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}.math-game-settings input:focus-visible+span{outline:2px solid var(--accent);outline-offset:3px}.math-workspace{flex-wrap:wrap;justify-content:center;align-items:start;gap:.8rem;display:flex}.math-reference,.math-answer,.math-part{text-align:center;min-width:0}.math-reference,.math-answer{flex:220px}.math-part-whole{text-align:center;flex:100%;min-width:0}.math-reference>p,.math-answer h4,.math-part h4{margin-bottom:.3rem;font-size:.9rem;font-weight:500}.math-whole{font-size:1rem}.math-whole strong,.math-target{font-size:2rem;font-weight:650;line-height:1.2}.math-original{color:var(--muted);font-size:.9rem}.math-parts-diagram{justify-content:center;gap:4rem;height:22px;display:flex}.math-parts-diagram span{border-top:1px solid var(--control-edge);transform-origin:0;width:50px;transform:rotate(18deg)}.math-parts-diagram span:first-child{transform-origin:100%;transform:rotate(-18deg)}.math-part-boards{justify-content:center;align-items:center;gap:.7rem;display:flex}.math-part{border:1px solid var(--control-edge);background:var(--panel);border-radius:.7rem;flex:220px;padding:.55rem .25rem}.math-part[data-board-role=left]{--counter-ink:var(--math-left)}.math-part[data-board-role=right]{--counter-ink:var(--math-right)}.math-part strong{min-height:1.3em;font-size:1.3rem;line-height:1.3;display:inline-block}.math-cover{border:2px solid var(--control-edge);height:90px;color:var(--rust);background:var(--shade);border-radius:16px 16px 8px 8px;flex:0 0 55px;place-items:center;font-size:2.5rem;display:grid}.math-activity[data-hidden-part=true] .math-part-whole{flex:290px}.math-activity[data-hidden-part=true] .math-part{background:0 0;border:0;padding:.25rem}.math-activity[data-hidden-part=true] .math-parts-diagram{display:none}.math-counter-board{--counter-ink:var(--accent);grid-template-columns:repeat(5,44px);grid-auto-rows:44px;place-content:center;gap:3px;width:100%;max-width:248px;min-height:100px;margin:0 auto;display:grid;position:relative}.math-part .math-counter-board{--counter-ink:inherit}.math-activity .math-counter-cell,.math-activity .math-counter-cell[aria-pressed=true],.math-activity .math-counter-cell:disabled{width:44px;min-width:44px;height:44px;min-height:44px;box-shadow:none;color:var(--counter-ink);opacity:1;-webkit-user-select:none;user-select:none;touch-action:manipulation;background:0 0;border:0;border-radius:11px;padding:0;line-height:1;display:block}.math-counter-cell svg{pointer-events:none;width:100%;height:100%;display:block}.math-counter-space{fill:var(--panel);stroke:var(--control-edge);stroke-width:1px;stroke-dasharray:3 3}.math-counter-token{fill:var(--counter-ink);stroke:var(--text);stroke-opacity:.15;stroke-width:1px;opacity:0}.math-counter-shine{fill:none;stroke:var(--paper);stroke-opacity:.6;stroke-width:2px;stroke-linecap:round;opacity:0}.math-counter-number{fill:var(--paper);font-size:16px;font-weight:600;display:none}.math-activity[data-example=count][data-mode=demo] .math-counter-cell[aria-pressed=true] .math-counter-number{display:block}.math-counter-cell[aria-pressed=true] .math-counter-space{stroke-dasharray:none;stroke-opacity:.4}.math-counter-cell[aria-pressed=true] .math-counter-token,.math-counter-cell[aria-pressed=true] .math-counter-shine{opacity:1}.math-counter-cell:not(:disabled):hover .math-counter-space{stroke:var(--accent);stroke-width:2px}.math-counter-cell.math-unmatched .math-counter-space{stroke:var(--rust);stroke-width:2px;stroke-dasharray:none}.math-counter-board[data-arrangement=ring]{width:260px;max-width:100%;height:260px;display:block}.math-counter-board[data-arrangement=ring] .math-counter-cell{left:calc(50% + var(--ring-x));top:calc(50% + var(--ring-y));position:absolute;transform:translate(-50%,-50%)}.math-counter-board[data-arrangement=scatter] .math-counter-cell:nth-child(2n){transform:translateY(5px)}.math-counter-board[data-arrangement=scatter] .math-counter-cell:nth-child(3n){transform:translateY(-5px)}.math-counter-board[data-readonly=true][data-arrangement=ring]{width:224px;height:112px}.math-counter-board[data-readonly=true][data-arrangement=ring] .math-counter-cell{width:27px;min-width:0;height:27px;min-height:0}.math-counter-board[data-readonly=true] .math-counter-cell[aria-pressed=false] .math-counter-space{opacity:.25}.math-answer-count{margin-top:.2rem;font-size:1.4rem;line-height:1.2;display:block}.math-construction-controls,.math-construction-controls>div,.math-answer-actions{flex-wrap:wrap;justify-content:center;align-items:center;gap:.4rem;display:flex}.math-construction-controls{margin-top:.6rem}.math-activity .math-action{border:1px solid var(--control-edge);min-height:44px;color:var(--text);background:var(--panel);-webkit-user-select:none;user-select:none;touch-action:manipulation;border-radius:.55rem;justify-content:center;align-items:center;gap:.35rem;padding:.45rem .6rem;font-size:.88rem;display:inline-flex}.math-action svg{fill:none;stroke:currentColor;stroke-width:1.7px;stroke-linecap:round;stroke-linejoin:round;flex:none}.math-activity .math-action-primary{background:var(--accent);color:var(--paper);border-color:var(--accent);font-weight:600}.math-activity .math-action:disabled{opacity:.45}.math-activity .math-action:not(:disabled):hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.math-total-control{align-items:center;gap:.45rem;font-size:.88rem;display:inline-flex}.math-total-control input{width:4rem;min-height:44px;font:inherit;text-align:center;background:var(--panel);color:var(--text);border:1px solid var(--control-edge);border-radius:.5rem}.math-equation{text-align:center;padding-top:.5rem;font-size:1.3rem;line-height:1.25}.math-hint{border-left:3px solid var(--rust);background:var(--shade);border-radius:.4rem;margin-top:.6rem;padding:.55rem .7rem;font-size:.9rem}.math-hint-frame{flex-wrap:wrap;gap:.25rem;margin-top:.4rem;display:flex}.math-hint-frame span{border:2px dashed var(--rust);border-radius:50%;width:23px;height:23px}.math-hint-frame .math-hint-known{border-style:solid;border-color:var(--accent);background:var(--accent)}.math-hint[data-level="2"] .math-hint-missing{background:var(--panel);box-shadow:0 0 0 2px var(--panel)}.math-feedback{text-align:center;min-height:2.6em;padding:.25rem .35rem;font-size:.92rem;line-height:1.3;margin-top:.55rem!important}.math-feedback[data-result=correct]{border-left:3px solid var(--accent);background:var(--accent-soft)}.math-feedback[data-result=retry]{border-left:3px solid var(--rust)}.math-answer-actions{margin-top:.3rem}.math-static-notice{font-size:.9rem;margin-top:.6rem!important}.math-activity[data-mode=game] .math-counter-board{min-height:48px}.math-activity .math-action[data-math-action=undo],.math-activity .math-action[data-math-action=reset]{width:44px;padding:.45rem}.math-action[data-math-action=undo] span,.math-action[data-math-action=reset] span{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@media (max-width:680px){.math-topic-grid{grid-template-columns:minmax(0,1fr)}.math-activity{padding:.7rem}.math-activity:not([data-hidden-part=true]) .math-part-boards{flex-wrap:wrap}.math-activity:not([data-hidden-part=true]) .math-part{flex-basis:100%}.math-workspace{gap:.4rem}.math-game-settings{grid-template-columns:auto 1fr;gap:.4rem;margin-bottom:.4rem;padding-bottom:.4rem;display:grid}.math-game-settings legend{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.math-game-settings fieldset:nth-child(2){grid-area:2/1/auto/-1}.math-construction-controls{gap:.3rem}.math-activity .math-action{padding:.4rem;font-size:.83rem}.math-action[data-math-action=skip]{width:44px}.math-action[data-math-action=skip] span{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.math-activity[data-mode=game] .math-reference .math-counter-board{grid-template-columns:repeat(5,32px);grid-auto-rows:32px;min-height:70px}.math-activity[data-mode=game] .math-reference .math-counter-cell{width:32px;min-width:0;height:32px;min-height:0}.math-activity[data-mode=game] .math-reference .math-counter-board[data-arrangement=ring]{height:95px}}@media (min-width:370px) and (max-width:680px){.math-activity[data-game-kind=split] .math-part-boards{flex-wrap:nowrap}.math-activity[data-game-kind=split] .math-part{flex-basis:0}.math-activity[data-game-kind=split] .math-part .math-counter-board{grid-template-columns:repeat(3,44px)}}
