/* Miss North Maths: "See it move" panels. Slate #5A6985, terracotta #8C5C4C, cream #F3E6D8, navy #1F2D4D, beige #FBF6F1 */
.mn-panel{--sl:#5A6985;--te:#8C5C4C;--cr:#F3E6D8;--nv:#1F2D4D;--bg:#FBF6F1;--ok:#3F7550;--no:#B4443A;--line:#E3DDD6;
  background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;font-family:Lato,Calibri,Arial,sans-serif;color:#2B2F3A;position:relative}
.mn-panel *{box-sizing:border-box;min-width:0}
.mn-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.mn-top h3{margin:0;font-size:1.15em;color:var(--nv)}
.mn-board{font:inherit;font-weight:700;min-height:40px;padding:6px 14px;border-radius:10px;border:2px solid var(--sl);background:#fff;color:var(--sl);cursor:pointer;white-space:nowrap}
.mn-board span{font-size:1.1em}
.mn-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.mn-tabs button{font:inherit;font-weight:700;font-size:.95em;min-height:42px;padding:8px 14px;border-radius:999px;border:0;background:var(--bg);color:var(--sl);cursor:pointer}
.mn-tabs button.try{color:var(--te)}
.mn-tabs button[aria-selected=true]{background:var(--sl);color:#fff}
.mn-tabs button.try[aria-selected=true]{background:var(--te)}
.mn-panel button:focus-visible,.mn-panel input:focus-visible{outline:3px solid #E5B567;outline-offset:2px}
.ex{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:18px;align-items:start}
@media(max-width:760px){.ex{grid-template-columns:minmax(0,1fr)}}
.fig{width:100%}.fig svg{display:block;width:100%;height:auto;touch-action:manipulation;user-select:none;-webkit-user-select:none}
.fig.tall{max-width:440px;margin:0 auto}
.side{display:flex;flex-direction:column;gap:12px}
/* grid drawing */
.mn-grid .gl{stroke:#D5DAE3;stroke-width:1.1}
.mn-grid .gm{stroke:#EEF0F4;stroke-width:.8}
.mn-grid .ax{stroke:#2B2F3A;stroke-width:2}
.mn-grid .tk{font-size:15px;fill:#5E6470;paint-order:stroke;stroke:#fff;stroke-width:4px}
.mn-grid .axl{font-size:16px;font-style:italic;fill:#2B2F3A}
.mn-grid .ln{stroke-width:4;stroke-linecap:round}
.mn-grid .ln.main{stroke:var(--nv,#1F2D4D)}
.mn-grid .ln.good{stroke:#3F7550}
.mn-grid .ln.mineln{stroke:#B4443A;stroke-dasharray:10 7}
.mn-grid .ln.right{stroke:#3F7550;opacity:.75}
.mn-grid .tri{stroke-width:3.5;stroke-dasharray:8 6;stroke-linecap:round}
.mn-grid .tri.run{stroke:#5A6985}.mn-grid .tri.rise{stroke:#8C5C4C}
.mn-grid .tl{font-size:17px;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:5px}
.mn-grid .tl.run{fill:#5A6985}.mn-grid .tl.rise{fill:#8C5C4C}.mn-grid .tl.yint{fill:#1F2D4D}
.mn-grid .pt{stroke:#fff;stroke-width:2.5}
.mn-grid .pt.yint{fill:#E5B567;stroke:#1F2D4D;stroke-width:2.5}
.mn-grid .pt.mine{fill:#8C5C4C}
.mn-grid .pt.right{fill:#3F7550;stroke:none;opacity:.8}
.mn-grid.tappable{cursor:crosshair}
/* controls */
.eq{font-size:clamp(1.6em,4vw,2.2em);font-weight:900;color:var(--nv);background:var(--cr);border-radius:12px;padding:10px 16px;text-align:center;font-variant-numeric:tabular-nums}
.sl{display:grid;grid-template-columns:7.5em minmax(0,1fr) 3em;align-items:center;gap:10px}
.sl .sn{font-size:.95em;color:#5E6470}
.sl .sn b{font-style:italic;color:var(--te);font-size:1.1em}
.sl output{font-weight:900;font-size:1.15em;text-align:right;color:var(--nv)}
.sl input[type=range]{width:100%;height:44px;accent-color:var(--te);cursor:pointer}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{font:inherit;font-size:.9em;font-weight:700;min-height:38px;padding:6px 12px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--sl);cursor:pointer}
.read p{margin:.3em 0;line-height:1.45}.read .t-m{color:var(--te)}.read .t-c{color:#9A6B12}
.mn-btn{font:inherit;font-weight:700;min-height:44px;padding:8px 16px;border-radius:10px;border:0;background:var(--sl);color:#fff;cursor:pointer}
.mn-btn.ghost{background:var(--cr);color:var(--te)}
.mn-btn:disabled{opacity:.45;cursor:default}
/* quiz */
.qz-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:6px;font-weight:700;color:var(--sl);font-size:.95em}
.qz-dots{display:flex;gap:5px}.qz-dots i{width:12px;height:12px;border-radius:50%;background:#E4E7EE}
.qz-dots i.now{background:var(--sl)}.qz-dots i.ok{background:var(--ok)}.qz-dots i.no{background:var(--no)}
.qz-s{margin-left:auto}
.qz-foot{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.qz-end{text-align:center;padding:30px 10px}.qz-end .big{font-size:2.4em;font-weight:900;color:var(--nv);margin:0}
.qq{font-size:1.1em;margin:.2em 0 10px}.qq .eqi{color:var(--nv);white-space:nowrap}
.step .sh{margin:0 0 6px;font-weight:700}.step .sh b{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--te);color:#fff;font-size:.85em;margin-right:6px}
.muted{color:#6B7280;font-size:.9em;margin:0 0 8px}
table.tv{border-collapse:collapse;width:100%;max-width:380px;font-size:1.05em}
table.tv th,table.tv td{border:1.5px solid var(--sl);text-align:center;padding:0;height:46px;position:relative}
table.tv th{background:var(--sl);color:#fff;width:2.4em;font-style:italic}
table.tv tr:first-child td{background:var(--bg);font-weight:700}
table.tv input{width:100%;height:44px;border:0;text-align:center;font:inherit;font-size:max(16px,1em);background:transparent}
table.tv input.ok{background:#E3EFE4;color:var(--ok);font-weight:700}
table.tv input.no{background:#F7E1DE;color:var(--no);text-decoration:line-through}
table.tv .fix{position:absolute;right:3px;bottom:1px;font-size:.8em;font-weight:900;color:var(--ok)}
.ans .al{display:block;font-weight:700;margin-bottom:4px;font-style:italic;font-size:1.1em}
.ans .ar{display:flex;gap:8px}
.ans input{flex:1;font:inherit;font-size:max(16px,1.1em);min-height:46px;padding:8px 12px;border:2px solid #C9CED8;border-radius:10px}
.ans input.ok{border-color:var(--ok);background:#E3EFE4}.ans input.no{border-color:var(--no);background:#F7E1DE}
.fb{margin-top:8px;font-weight:700;line-height:1.45}.fb.ok{color:var(--ok)}.fb.no{color:var(--no)}
.fb .why{font-weight:400;color:#2B2F3A;margin-top:4px}
.hint summary{cursor:pointer;color:var(--sl);font-weight:700;min-height:36px;display:flex;align-items:center}
.hint p{margin:.2em 0 0;color:#4B5160}
/* Board: fill the screen, big labels */
.mn-panel.board{position:fixed;inset:0;z-index:50;border-radius:0;border:0;padding:16px 24px;overflow:auto;font-size:24px}
.mn-panel.board .mn-top h3{font-size:1.3em}
.mn-panel.board .ex{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:28px}
.mn-panel.board .fig svg{max-height:calc(100vh - 190px);width:auto;max-width:100%;margin:0 auto}
.mn-panel.board .fig.tall{max-width:none}
.mn-panel.board .sl input[type=range]{height:56px}
.mn-panel.board .eq{font-size:2.4em}
.mn-panel.board .sl{grid-template-columns:8.5em minmax(0,1fr) 3.2em}


.mn-panel.board table.tv{max-width:none}.mn-panel.board table.tv th,.mn-panel.board table.tv td{height:60px}.mn-panel.board table.tv input{font-size:1em;height:58px}
.mn-panel.board .ans input{font-size:1em;min-height:58px}
html.mn-noscroll{overflow:hidden}
@media(prefers-reduced-motion:reduce){.mn-panel *{transition:none!important}}

.lvl{display:inline-flex;background:var(--bg);border-radius:999px;padding:3px;margin-bottom:10px}
.lvl button{font:inherit;font-weight:700;font-size:.9em;min-height:38px;padding:6px 16px;border:0;border-radius:999px;background:transparent;color:var(--sl);cursor:pointer}
.lvl button[aria-checked=true]{background:#fff;color:var(--te);box-shadow:0 1px 3px rgba(31,45,77,.18)}

.mn-grid .pt.root{fill:#8C5C4C}.mn-grid .pt.turn{fill:#5A6985}
.mn-grid .tl.root{fill:#8C5C4C}.mn-grid .tl.turn{fill:#5A6985}
.mn-grid .minor{stroke:#8A90A0;stroke-width:1}
.fac{text-align:center;font-weight:700;color:var(--te);font-size:1.15em;margin-top:-6px;min-height:1.4em}
.read .key{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:7px;vertical-align:-1px}
.key.root{background:#8C5C4C}.key.yint{background:#E5B567;border:2px solid #1F2D4D}.key.turn{background:#5A6985}
.tvw{overflow-x:auto}table.tv.q7{max-width:460px}table.tv.q7 input{font-size:max(16px,.95em)}
/* keep the site's own .ans / .hint / .fb styles out of the panel */
.mn-panel .ans{margin:0;border:0;padding:0}
.mn-panel .hint{background:none;border-radius:0;padding:0;margin:0;font-size:inherit}
.mn-panel .fb{min-height:0}
.mn-panel .fb.ok{color:var(--ok)}.mn-panel .fb.no{color:var(--no)}
@media(max-width:760px){.ex.plot .side{order:-1}}

/* number line */
.fig.nlw svg{max-width:900px;margin:0 auto}
.mn-nl{touch-action:none}
.mn-nl .nl-ax{stroke:#2B2F3A;stroke-width:2.5}
.mn-nl .nl-tk{stroke:#2B2F3A;stroke-width:2}.mn-nl .nl-mn{stroke:#8A90A0;stroke-width:1.2}
.mn-nl .nl-lb{font-size:20px;fill:#2B2F3A;font-weight:700}
.mn-nl .nl-sh{fill:#F3E6D8;stroke:#8C5C4C;stroke-width:1.5}
.mn-nl .nl-sh.mine{fill:#DDE4F0;stroke:#5A6985}
.mn-nl .nl-end{stroke:#1F2D4D;stroke-width:3}.mn-nl .nl-end.closed{fill:#1F2D4D}.mn-nl .nl-end.open{fill:#fff}
.mn-nl .nl-el{font-size:20px;font-weight:900;fill:#1F2D4D;paint-order:stroke;stroke:#fff;stroke-width:5px}
.mn-nl .nl-val{font-size:19px;font-weight:700;fill:#8C5C4C}
.mn-nl .nl-h{cursor:grab;outline:none}.mn-nl .nl-h.drag{cursor:grabbing}
.mn-nl .nl-hit{fill:transparent}
.mn-nl .nl-hd{fill:#5A6985;stroke:#fff;stroke-width:3}
.mn-nl .nl-h.test .nl-hd{fill:#B4443A}
.mn-nl .nl-stem{stroke:#5A6985;stroke-width:2.5}.mn-nl .nl-h.test .nl-stem{stroke:#B4443A}
.mn-nl .nl-ht{font-size:18px;font-weight:900;fill:#5A6985;paint-order:stroke;stroke:#fff;stroke-width:5px}.mn-nl .nl-h.test .nl-ht{fill:#B4443A}
.mn-nl .nl-h:focus-visible .nl-hd{stroke:#E5B567;stroke-width:5}
.rx-ctl{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center;margin-bottom:6px}
.rx-l{display:flex;align-items:center;gap:8px;font-weight:700}
.rx-in{width:6.5em;font:inherit;font-size:max(16px,1.1em);min-height:44px;padding:6px 10px;border:2px solid #C9CED8;border-radius:10px}
.rx-ctl select{font:inherit;font-size:max(16px,1em);min-height:44px;padding:6px 10px;border:2px solid #C9CED8;border-radius:10px;background:#fff}
.rx-ctl .lvl{margin:0}
.rx-out{font-size:clamp(1.5em,4vw,2.1em);font-weight:900;color:var(--nv);background:var(--cr);border-radius:12px;padding:8px 16px;text-align:center;margin:8px 0;font-variant-numeric:tabular-nums}
.rx-out i{color:var(--te)}
.rx-test{font-size:1.05em}.rx-test .ok{color:var(--ok);font-weight:700}.rx-test .no{color:var(--no);font-weight:700}
.ei{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:1.25em;font-weight:700}
.ei input{width:6.5em;font:inherit;font-size:max(16px,1em);min-height:46px;padding:6px 10px;border:2px solid #C9CED8;border-radius:10px;text-align:center}
.ei input.ok{border-color:var(--ok);background:#E3EFE4}.ei input.no{border-color:var(--no);background:#F7E1DE}
.mn-panel .step{margin-top:12px}
.mn-panel.board .fig.nlw svg{max-width:none;max-height:none;width:100%}
.mn-nl.narrow .nl-lb{font-size:17px}.mn-nl.narrow .nl-el{font-size:17px}.mn-nl.narrow .nl-ht{font-size:16px}

/* inequalities */
.mn-nl .iq-bar{stroke:#1F2D4D;stroke-width:6;stroke-linecap:round}
.mn-nl .iq-arr{fill:#1F2D4D}
.mn-nl .iq-drop{stroke:#1F2D4D;stroke-width:1.5;stroke-dasharray:3 3}
.mn-nl .iq-c{stroke:#1F2D4D;stroke-width:3.5;cursor:grab}.mn-nl .iq-c.in{fill:#1F2D4D}.mn-nl .iq-c.out{fill:#fff}
.mn-nl .iq-bar.right{stroke:#3F7550}.mn-nl .iq-arr.right{fill:#3F7550}.mn-nl .iq-c.right{stroke:#3F7550}.mn-nl .iq-c.in.right{fill:#3F7550}
.chips.keys .chip{min-width:46px;font-size:1.1em}
.mn-panel .chips{margin-top:10px}

/* angles in parallel lines */
.mn-par{display:block;width:100%;height:auto;touch-action:none;user-select:none}
.mn-par .pl{stroke:#2B2F3A;stroke-width:3}.mn-par .pa{fill:none;stroke:#2B2F3A;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.mn-par .tv{stroke:#1F2D4D;stroke-width:3.5}
.mn-par .shape{fill:none;stroke:#E5B567;stroke-width:13;stroke-linecap:round;stroke-linejoin:round;opacity:.75}
.mn-par .wd{stroke:none}.mn-par .wd.ac{fill:#F3E6D8}.mn-par .wd.ob{fill:#DDE4F0}
.mn-par .wd.hi1,.mn-par .wd.hi2{fill:#8C5C4C;opacity:.35}
.mn-par .wd.giv{fill:#DDE4F0}.mn-par .wd.unk{fill:#F3E6D8}
.mn-par .al{font-size:25px;font-weight:900;paint-order:stroke;stroke:#fff;stroke-width:5px}
.mn-par .al.ac{fill:#8C5C4C}.mn-par .al.ob{fill:#5A6985}.mn-par .al.hi{fill:#8C5C4C;font-size:27px}.mn-par .al.giv{fill:#1F2D4D}.mn-par .al.unk{fill:#8C5C4C;font-style:italic;font-size:30px}
.mn-par .knob{fill:#8C5C4C;stroke:#fff;stroke-width:3;cursor:grab}.mn-par .khit{fill:transparent;cursor:grab}
.mn-par .knob:focus-visible{stroke:#E5B567;stroke-width:5;outline:none}
.chips.zfc .chip[aria-pressed=true]{background:var(--te);color:#fff;border-color:var(--te)}
.chips.zfc .chip b{font-size:1.15em}
.eq.why{font-size:clamp(1.2em,3vw,1.6em)}
.read .k{font-weight:900;padding:0 6px;border-radius:6px}.read .k.ac{background:#F3E6D8;color:#8C5C4C}.read .k.ob{background:#DDE4F0;color:#5A6985}
.opts{display:flex;flex-direction:column;gap:8px}
.opt{font:inherit;text-align:left;min-height:46px;padding:9px 14px;border-radius:10px;border:2px solid #C9CED8;background:#fff;cursor:pointer}
.opt.ok{border-color:var(--ok);background:#E3EFE4;font-weight:700}.opt.no{border-color:var(--no);background:#F7E1DE}

/* factor trees and Venn */
.ft-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
@media(max-width:760px){.ft-row{grid-template-columns:minmax(0,1fr)}}
.ft-col{background:var(--bg);border-radius:14px;padding:12px}
.ft-fig svg{display:block;width:100%;max-height:420px;height:auto;margin:6px auto}
.ft .ft-br{stroke:#5A6985;stroke-width:3;stroke-linecap:round}
.ft .ft-n circle{fill:#fff;stroke:#5A6985;stroke-width:2.5}
.ft .ft-n text{font-size:20px;font-weight:900;fill:#1F2D4D}
.ft .ft-n.open{cursor:pointer}.ft .ft-n.open circle{stroke-dasharray:5 4;stroke:#1F2D4D}
.ft .ft-n.open:hover circle,.ft .ft-n.open:focus-visible circle,.ft .ft-n.sel circle{fill:#FFF3D6;stroke:#E5B567;stroke-width:3.5;outline:none}
.ft .ft-n.prime circle{fill:#F3E6D8;stroke:#8C5C4C;stroke-width:4}.ft .ft-n.prime text{fill:#8C5C4C}
.ft .new{animation:ftpop .4s ease-out both}.ft line.new{animation:ftfade .4s ease-out both}
.ft .ft-n .new{transform-box:fill-box;transform-origin:center}
@keyframes ftpop{from{opacity:0;transform:scale(.4)}}@keyframes ftfade{from{opacity:0}}
.ft-pick{display:flex;flex-wrap:wrap;gap:6px;align-items:center;min-height:0}.ft-pick .pl{margin-right:4px}
.ft-out{font-size:1.15em;margin:8px 0 4px;line-height:1.5}.ft-out .ix{color:var(--te);font-weight:900;white-space:nowrap}
.ft-out .pr{color:var(--te);font-weight:700}
.ft-hist{font-size:.95em;margin-top:6px}.ft-hist .same{color:var(--ok);font-weight:700}
.vn-go{margin:14px 0}
.vn-fig svg{max-width:620px;margin:0 auto}
.vn .vc{fill:none;stroke-width:3}.vn .vc.a{stroke:#5A6985;fill:rgba(90,105,133,.06)}.vn .vc.b{stroke:#8C5C4C;fill:rgba(140,92,76,.06)}
.vn .vt{font-size:24px;font-weight:900;fill:#1F2D4D}
.vn .vp circle{fill:#F3E6D8;stroke:#8C5C4C;stroke-width:3}.vn .vp.m circle{fill:#FFF3D6;stroke:#9A6B12}
.vn .vp text{font-size:23px;font-weight:900;fill:#1F2D4D}
.vn-res p{margin:.35em 0;font-size:1.08em}.vn-res .chk{color:var(--ok);font-weight:700}
.fly{position:fixed;inset:0;pointer-events:none;z-index:1000;overflow:hidden}
.fchip{position:absolute;left:0;top:0;width:36px;height:36px;border-radius:50%;background:#F3E6D8;border:3px solid #8C5C4C;color:#8C5C4C;font-weight:900;display:grid;place-items:center;font-size:17px;transition:transform .8s cubic-bezier(.3,.7,.3,1),opacity .8s}
.fchip.merge{opacity:0}
.mn-panel.board .vn-fig svg{max-height:62vh}
.mn-panel.board .ft-fig svg{max-height:46vh;width:auto;max-width:100%}

/* expanding / factorising grid */
.xg-two{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px;align-items:start;margin-top:12px}
@media(max-width:760px){.xg-two{grid-template-columns:minmax(0,1fr)}}
.xg{display:grid;gap:6px;max-width:520px}
.xg>div{min-height:64px;border-radius:10px;display:grid;place-items:center;text-align:center;font-weight:900;font-size:1.35em;padding:4px}
.xg-c{color:var(--sl);font-size:1.5em}
.xg-h{background:var(--sl);color:#fff}.xg-h.neg{background:var(--te)}
.xg-b{background:#fff;border:2px solid var(--line);color:var(--nv)}
.xg-b.tap{border:2px dashed var(--sl);color:var(--sl);font-size:.9em!important;font-weight:700!important;cursor:pointer}
.xg-b.tap:hover,.xg-b.tap:focus-visible{background:#FFF3D6;border-color:#E5B567;outline:none}
.xg-b.ask{border:2px dashed var(--line);color:#9aa3b5}
.xg-b.full small{display:block;font-size:.55em;font-weight:700;color:var(--sl);line-height:1.1}
.xg-b.neg span{color:var(--te)}
.xg-b.like.l1{background:#FFF3D6;border-color:#E5B567}.xg-b.like.l2{background:#E4ECF7;border-color:#8FA6C8}.xg-b.like.l0{background:#E3EFE4;border-color:#8DBA97}
.xg-res .xg-ln{font-size:1.3em;font-weight:700;margin:.4em 0}.xg-res .step{font-size:1.1em;font-weight:400}
.xg-res .lk{border-radius:6px;padding:0 2px}.xg-res .lk.l1{background:#FFF3D6}.xg-res .lk.l2{background:#E4ECF7}.xg-res .lk.l0{background:#E3EFE4}
.big{font-size:1.2em;color:var(--nv)}
.tiles{display:block;width:100%;max-width:420px;height:auto}
.tiles .tl{stroke:#fff;stroke-width:2}.tiles .t2,.tiles .t1{fill:#5A6985}.tiles .t0{fill:#EFE6D6;stroke:#B7A88F}
.tiles .te{font-size:17px;font-weight:700;fill:#1F2D4D;font-family:Georgia,'Times New Roman',serif;font-style:italic}.tiles .tt{font-weight:700;font-style:italic;font-family:Georgia,'Times New Roman',serif}.tiles .tt.lt{font-size:15px;fill:#fff}.tiles .tt.one{font-size:9px;font-style:normal;fill:#1F2D4D}
.chip[aria-pressed=true]{background:var(--sl);color:#fff;border-color:var(--sl)}
.chip.ghost{border-style:dashed}
.xg-steps{margin:0 0 12px;padding-left:1.4em;font-size:1.05em;line-height:1.5}.xg-steps li{margin-bottom:.5em}
.xg-steps .chk{color:var(--ok);font-weight:700}
.pairs{display:flex;flex-direction:column;margin-top:4px}.pairs span{padding:1px 8px;border-radius:6px;width:max-content}.pairs .yes{background:#E3EFE4;color:var(--ok);font-weight:700}
.mn-pop{animation:ftpop .35s ease-out both}
.fb .mn-note{color:var(--no);margin-bottom:4px}
.mn-panel.board .xg{max-width:860px}.mn-panel.board .xg>div{min-height:110px;font-size:1.6em}
@media(prefers-reduced-motion:reduce){.mn-pop,.ft .new{animation:none}}

/* balance scales */
.bal-two{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:20px;align-items:start}
@media(max-width:760px){.bal-two{grid-template-columns:minmax(0,1fr)}}
.bal{display:block;width:100%;height:auto;max-width:640px}
.bal .stand{fill:#C9CED8}.bal .beam{stroke:#1F2D4D;stroke-width:8;stroke-linecap:round;transition:all .6s}
.bal .piv{fill:#1F2D4D}.bal .rope{stroke:#5A6985;stroke-width:2}.bal .dish{fill:#5A6985}
.bal .bag{fill:#E9CFC2;stroke:#8C5C4C;stroke-width:2.5}.bal .it text{font-weight:900;fill:#1F2D4D;font-size:17px}
.bal .w1{fill:#F3E6D8;stroke:#1F2D4D;stroke-width:1.5}.bal .w10{fill:#C9D2E3;stroke:#1F2D4D;stroke-width:1.5}.bal .w1+text{font-size:14px}
.bal .it{transform-box:fill-box;transform-origin:center}
.bal .it.go{animation:balgo .5s ease-in forwards}
@keyframes balgo{to{opacity:0;transform:translateY(-40px)}}
.bal-txt{display:flex;justify-content:center;gap:.6em;font-size:1.5em;font-weight:900;color:var(--nv);margin:6px 0}
.bal-txt.only{font-size:2em;padding:24px 0;background:#fff;border:2px solid var(--line);border-radius:14px}
.bal-txt .neq{color:var(--no)}
.bal-ctrl .ar{display:flex;gap:8px;margin-bottom:6px}
.bal-ctrl input{flex:1;font:inherit;font-size:max(16px,1.1em);min-height:46px;padding:8px 12px;border:2px solid #C9CED8;border-radius:10px;min-width:0}
.bal-ctrl .al{display:block;font-weight:700;margin-bottom:4px}
.bal-ctrl .chips{margin-bottom:6px}
.bal-msg{min-height:1.6em;font-weight:700;margin:6px 0}.bal-msg .bad{color:var(--no)}.bal-msg .okm{color:var(--ok);font-size:1.15em}
.bal-work{font-size:1.25em;font-weight:700;color:var(--nv);background:#fff;border:2px solid var(--line);border-radius:12px;padding:10px 14px}
.bal-work .wk-op{font-size:.75em;color:var(--te);font-weight:700;margin:2px 0 2px 1em}
.bal-work .wk-chk{font-size:.8em;color:var(--ok);margin-top:8px}
.lvl button small{display:block;font-weight:400;font-size:.75em}
.mn-panel.board .bal{max-width:none}.mn-panel.board .bal-work{font-size:1.4em}
@media(max-width:600px){.lvl button small{display:none}.lvl button{padding:6px 10px}}
.bal .tx{fill:#E9CFC2;stroke:#1F2D4D;stroke-width:1.5}.bal .t1{fill:#F3E6D8;stroke:#1F2D4D;stroke-width:1.5}
.bal .grp{fill:none;stroke:#8C5C4C;stroke-width:2;stroke-dasharray:6 4}
.bal .tx{fill:#5A6985;stroke:#3E4A61;stroke-width:1.5}.bal .t1{fill:#EFE6D6;stroke:#B7A88F;stroke-width:1.5}
.mn-panel .bal text.xl{fill:#fff;font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:700;font-size:15px}.mn-panel .bal text.one{fill:#1F2D4D;font-family:Georgia,serif;font-weight:700;font-size:10px}
.mn-panel i.mx{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-weight:700;font-size:1.08em}
.tiles .te.n{font-family:Lato,sans-serif;font-style:normal;fill:#5A6985}

/* be the examiner */
.bx-src{color:var(--sl);font-weight:700;margin:0 0 6px}
.bx-qimg{display:block;width:100%;max-width:820px;height:auto;border:1.5px solid var(--line);border-radius:12px;background:#fff}
.bx-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px;align-items:start;margin-top:16px}
@media(max-width:760px){.bx-two{grid-template-columns:minmax(0,1fr)}}
.bx-paper{background:#fff repeating-linear-gradient(#fff 0 35px,#DCE3EE 35px 36px);border:1.5px solid var(--line);border-radius:12px;padding:10px 18px 14px 44px;position:relative;line-height:36px}
.bx-paper:before{content:'';position:absolute;left:30px;top:0;bottom:0;border-left:2px solid #E8B4AA}
.bx-who{margin:0;font-weight:700;color:var(--sl);line-height:36px}
.bx-hand{margin:0;font-family:'Segoe Print','Bradley Hand','Chalkboard SE','Comic Sans MS','Marker Felt',cursive;color:#23408E;font-size:1.2em;line-height:36px}
.bx-hand:nth-child(odd){transform:rotate(-.4deg)}
.bx-none{margin:0;color:#9aa3b5;font-style:italic;line-height:36px}
.bx-ansl{margin:6px 0 0;font-weight:700;line-height:36px}.bx-ansl span{border-bottom:2px dotted var(--sl);padding:0 10px;font-size:1.15em}
.bx-ask{font-weight:700;margin:0 0 8px}
.bx-ms{background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:12px}
.bx-ms h4{margin:0 0 6px;font-size:1em}
.bx-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 12px;align-items:center;padding:8px 6px;border-bottom:1px solid var(--line);border-radius:8px}
.bx-code{font-weight:900;color:var(--sl);min-width:2.2em}
.bx-aw{display:flex;align-items:center;gap:6px;font-weight:700;cursor:pointer;min-height:40px;padding:0 10px;border:1.5px solid var(--line);border-radius:999px}
.bx-aw input{width:20px;height:20px;accent-color:var(--sl)}
.bx-why{grid-column:1/-1;font-size:.95em;line-height:1.45}
.bx-why .yes{color:var(--ok)}.bx-why .no{color:var(--no)}.bx-you{display:block;font-weight:700;color:var(--sl);margin-top:2px}
.bx-row.agree{background:#EEF5EF}.bx-row.differ{background:#FBEDEA}
.bx-key{font-size:.85em;color:var(--sl);margin:8px 0 0;line-height:1.5}
.bx-score{font-size:1.15em;margin:12px 0 6px}
.bx-lesson{background:var(--cr);border-left:5px solid var(--te);border-radius:8px;padding:10px 14px;font-weight:700;color:var(--nv)}
.mn-panel.board .bx-qimg{max-width:1100px}.mn-panel.board .bx-hand{font-size:1.35em}
.bx-qwrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.bx-zoom{display:none;font-weight:700;color:var(--sl);margin-top:4px}
@media(max-width:760px){.bx-qimg{min-width:620px}.bx-zoom{display:inline-block}}
.bx-hand{font-family:'Patrick Hand','Segoe Print','Bradley Hand','Chalkboard SE','Comic Sans MS',cursive!important}

/* which topic? */
.wt-ask{font-weight:700;font-size:1.1em;margin:4px 0 8px}
.wt-q{background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:14px;font-size:1.05em;line-height:1.5}
.wt-q .tag{font-size:12px}
.wt-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(max-width:520px){.wt-opts{grid-template-columns:minmax(0,1fr)}}
.wt-o{font:inherit;font-weight:700;font-size:1.05em;min-height:54px;padding:10px 14px;border-radius:12px;border:2px solid var(--line);background:#fff;color:var(--nv);cursor:pointer;text-align:left}
.wt-o:hover:not(:disabled){border-color:var(--sl);background:#F4F6FA}
.wt-o.ok{border-color:var(--ok);background:#E3EFE4;color:var(--ok)}.wt-o.no{border-color:var(--no);background:#F7E1DE;color:var(--no)}.wt-o:disabled{cursor:default}
.wt-fb .okm{color:var(--ok);font-weight:700;font-size:1.1em;margin:12px 0 4px}.wt-fb .nom{color:var(--no);font-weight:700;font-size:1.1em;margin:12px 0 4px}
.wt-clue{margin:0 0 8px;background:var(--cr);border-left:5px solid var(--te);border-radius:8px;padding:8px 12px}
.wt-go{font-weight:700;color:var(--sl)}
.mn-panel.board .wt-q{font-size:1.25em}.mn-panel.board .wt-o{font-size:1.2em;min-height:70px}
.wt-calc{margin-bottom:6px}.wt-q p{margin:.3em 0}.wt-q svg.dg{display:block;max-width:100%;height:auto;margin:8px 0;background:#fff;border-radius:8px}.wt-q svg.dg text{fill:#2b2f3a;font-family:Lato,Calibri,sans-serif}
.wt-q .part{display:flex;gap:8px;margin:.3em 0}.wt-q .mk{color:var(--sl);font-size:.85em}
.mn-panel .lvl{flex-wrap:wrap}
.wt-src{margin:0 0 6px;font-size:.85em;color:var(--sl);font-weight:700}.wt-img{display:block;width:100%;max-width:820px;height:auto}
.wt-o{font-weight:400;line-height:1.35}.wt-o sup{font-size:.7em}
@media(max-width:760px){.wt-q{overflow-x:auto}.wt-img{min-width:560px}}
.wt-lay{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;align-items:start}
.wt-lay .wt-opts{grid-template-columns:minmax(0,1fr)}
@media(max-width:900px){.wt-lay{grid-template-columns:minmax(0,1fr)}}
.mn-panel.board .wt-img{max-width:none}

/* give the reason */
.gr-lay{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:22px;align-items:start}
@media(max-width:860px){.gr-lay{grid-template-columns:minmax(0,1fr)}}
.gr-figbox svg{display:block;width:100%;max-width:420px;height:auto;background:#fff;border:1.5px solid var(--line);border-radius:12px}
.gr-ask{font-weight:700;margin:0 0 10px}
.gr-step{background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:10px 14px;margin-bottom:10px}
.gr-math{font-size:1.15em;font-weight:700;color:var(--nv)}
.gr-because{font-size:.85em;color:var(--sl);margin:4px 0}
.gr-slot{font:inherit;width:100%;text-align:left;min-height:46px;padding:8px 12px;border-radius:10px;border:2px dashed var(--sl);background:#F7F8FB;color:var(--sl);cursor:pointer}
.gr-slot.on{border-color:#E5B567;background:#FFF3D6}.gr-slot.full{border-style:solid;color:var(--nv);background:#fff;font-weight:700}
.gr-slot.ok{border-color:var(--ok);background:#E3EFE4;color:var(--ok)}.gr-slot.no{border-color:var(--no);background:#F7E1DE;color:var(--no)}
.gr-why{margin-top:6px;font-size:.95em;line-height:1.45}
.gr-bh{font-weight:700;margin:14px 0 6px}
.gr-bank{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.gr-card{font:inherit;font-size:.95em;padding:8px 12px;border-radius:10px;border:1.5px solid var(--line);background:#fff;color:var(--nv);cursor:pointer;text-align:left}
.gr-card.on{border-color:#E5B567;background:#FFF3D6;box-shadow:0 0 0 2px #E5B567}
.gr-card:disabled{opacity:.6;cursor:default}
.gr-out .okm{color:var(--ok);font-weight:700}.gr-out .tip{background:var(--cr);border-left:5px solid var(--te);border-radius:8px;padding:8px 12px;font-weight:700}
.mn-panel.board .gr-math{font-size:1.4em}.mn-panel.board .gr-figbox svg{max-width:560px}
