:root{--primary:#1e3a8a;--primary-hover:#142070;--candy:#2a4cc8;--candy-light:#93c5fd;--sky:#dbeeff;--orange:#ffbf6f;--orange-ink:#b45309;--surface:#f7fbff;--ink:#123049;--ink-mid:#46627b;--border:#e2e8f0;--grad:linear-gradient(135deg,#1e3a8a,#3b6ef0);--ok:#047857;--eq1:#2a4cc8;--eq2:#be185d;--font-h:Kanit,sans-serif;--font-b:Sarabun,sans-serif;--font-n:Inter,Sarabun,sans-serif;--radius:20px;--r-pill:9999px;--shadow:0 4px 20px rgba(30,58,138,.10);--gray-text:#6B7280;--text:#0f1e4a}*{box-sizing:border-box}body,html{height:100%}body{margin:0;overflow:hidden;background:#fff;color:var(--ink);font:16px/1.6 var(--font-b)}button,h1,h2,h3{font-family:var(--font-h)}a{color:var(--primary)}button{font:inherit;font-family:var(--font-h);cursor:pointer;border:1px solid var(--border);border-radius:12px;background:#fff;color:var(--primary)}button:disabled{opacity:.35;cursor:default}[tabindex]:focus-visible,a:focus-visible,button:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}.float-bar{position:fixed;z-index:30;display:flex;align-items:center;gap:6px;padding:6px;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(226,232,240,.9);border-radius:16px;box-shadow:0 6px 24px rgba(30,58,138,.1)}#brand{top:12px;left:12px;gap:10px;padding:5px 16px 5px 6px}#brand img{width:36px;height:36px;object-fit:contain;display:block}.back-home{font:500 14px var(--font-h);text-decoration:none;padding:6px 12px;background:var(--surface);border-radius:20px;white-space:nowrap}.back-home:hover{background:var(--primary);color:#fff}.site-title{margin:0;font:600 18px var(--font-h);color:var(--primary);white-space:nowrap}#topbar{top:12px;right:12px}.seg{display:flex;gap:3px;padding:3px;background:#eef4fb;border-radius:12px}.seg button{border:0;background:0 0;padding:7px 11px;white-space:nowrap;border-radius:10px;font-size:14px;line-height:1.25;display:flex;align-items:center;gap:6px}.seg button[aria-pressed=true]{background:var(--primary);color:#fff;box-shadow:0 2px 8px rgba(30,58,138,.25)}.m-ico{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.seg button[data-m=sys]:not([aria-pressed=true]) .m-ico{color:#2a4cc8}.seg button[data-m=graph]:not([aria-pressed=true]) .m-ico{color:#be185d}.seg button[data-m=count]:not([aria-pressed=true]) .m-ico{color:#7c3aed}.seg button[data-m=balance]:not([aria-pressed=true]) .m-ico{color:#d97706}.seg button[data-m=elim]:not([aria-pressed=true]) .m-ico{color:#047857}.seg button[data-m=subst]:not([aria-pressed=true]) .m-ico{color:#0e7490}.seg button[data-m=word]:not([aria-pressed=true]) .m-ico{color:#db2777}.sep{width:1px;height:28px;background:var(--border);margin:0 2px;flex:none}.icon-btn{width:44px;height:44px;flex:none;display:grid;place-items:center;padding:0;border:1px solid transparent;background:0 0;border-radius:12px}.icon-btn:hover:not(:disabled){background:var(--surface);border-color:var(--border)}.icon-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.fb{font:700 19px var(--font-n);text-decoration:none}#btn-lang{width:auto;padding:0 12px;font:600 13px var(--font-h)}#ui-restore{position:fixed;z-index:35;right:12px;bottom:12px;width:48px;height:48px;padding:0;opacity:.55}#ui-restore:focus-visible,#ui-restore:hover{opacity:1}body.ui-hidden #dock>:not(.walk):not(.keep),body.ui-hidden #topbar{display:none!important}.mode-pick{display:none;align-items:center;gap:6px;height:40px;padding:0 12px;white-space:nowrap;max-width:60vw;overflow:hidden;border:0;border-radius:10px;background:var(--primary);color:#fff;font:600 14px var(--font-h)}.mode-pick .caret{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}#topbar.mode-open{z-index:75}#topbar.mode-open .mode-pick .caret{transform:rotate(180deg)}.eq-float{top:74px;left:50%;transform:translateX(-50%);width:max-content;min-height:calc(var(--q-size) * 1.15 + 14px);gap:8px;padding:6px 8px 6px 10px;max-width:calc(100% - 16px);flex-wrap:wrap;justify-content:center}.eq-lbl{font:600 calc(var(--q-size) * .56)/1.2 var(--font-h);color:var(--ink-mid);white-space:nowrap}.eq-lbl.q-title{color:var(--primary)}#btn-random{width:46px;height:46px;border:1px solid var(--border)!important;border-radius:12px;background:#fff}.num-wrap{position:relative;display:flex;width:76px}.num-wrap .nbox{flex:1;width:0;height:44px;padding:0 24px 0 4px;border:1.5px solid var(--border);border-radius:11px;background:var(--surface);font:800 22px var(--font-n);color:var(--primary);text-align:center}.spin{position:absolute;right:3px;top:3px;bottom:3px;width:19px;display:flex;flex-direction:column;gap:2px}.spin button{flex:1;padding:0;border:0;border-radius:6px;background:#e8f0fb;color:var(--primary);font-size:9px;line-height:1}.spin button:hover:not(:disabled){background:#d6e6fb}.blank-h.done{border:2px solid #6ee7b7!important;background:#ecfdf5!important;color:var(--ok)!important;animation:none!important;cursor:default}.eq-float .blank-h{min-width:2.4em;font:800 var(--q-size)/1.15 var(--font-n);padding:2px 10px;white-space:nowrap}.nw{white-space:nowrap}.sys-bar .eq-view b{color:inherit}.sys-bar .eq-view .katex{font-size:.8em}.eqn{font:700 calc(var(--q-size) * .6)/1 var(--font-n);font-style:normal;margin-left:.2em}.sys-row{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:12px;border:2px solid color-mix(in srgb,var(--c) 28%,transparent)}.sys-row .eqn{color:var(--c)}.eq-op.v{font-style:italic;white-space:nowrap}#ans-pair{min-width:3.6em}.tex{white-space:nowrap}.eq-float.stack{left:12px;transform:none;justify-content:flex-start;align-items:center;column-gap:10px;row-gap:4px;padding:6px 10px}.eq-float .eq-view.eq-static{display:flex!important;cursor:default;white-space:nowrap;font:600 calc(var(--q-size) * .56)/1.2 var(--font-h)}.eq-static .eq-part{display:inline-flex;align-items:baseline;gap:.3em}.eq-static b{font:800 var(--q-size)/1.15 var(--font-n)}.stack .eq-view{display:grid;grid-template-columns:auto auto auto;align-items:baseline;gap:.08em 0;position:relative;padding:.1em .3em .1em .75em}.eq-float.stack .eq-view.eq-static{display:grid!important}.stack .eq-view .eq-part{display:contents}.stack .eq-view .ea-l{justify-self:end}.stack .eq-view .ea-r{justify-self:start}.stack .eq-view .eqn{margin-left:.35em}.stack .fr-eq>*{align-self:center}.stack .fr-eq .ea-l{display:inline-flex;align-items:center;gap:.25em}.stack .fr-eq .ea-r{margin-left:.3em}.stack .eq-view::before{content:'';position:absolute;left:.15em;top:.18em;bottom:.18em;width:.32em;border:2.5px solid #94a3b8;border-right:0;border-radius:.45em 0 0 .45em}.stack .eq-view b{line-height:1.2}.stack .eq-view b{font-size:calc(var(--q-size) * .86)}.stack .eq-view .katex{font-size:1em}.stack .eq-pdiv{display:none}.sys-bar.stack .eq-set{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.stack .q-title{align-self:center}.ans-grp{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}.sys-bar .ans-grp .eq-lbl.show{display:inline}.stack .sep{height:calc(var(--q-size) * 1.6)}#board{position:fixed;z-index:1;top:var(--b-top,150px);bottom:var(--b-bot,140px);left:12px;right:12px;display:flex}.stage-wrap{flex:1;min-width:0;min-height:0;display:flex}.tap-cue{display:inline-block;padding:0 10px;border:2px dashed #ffbf6f;border-radius:9999px;background:#fff7ed;color:#c2410c;font:700 .85em var(--font-h);animation:blankPulseH 1.6s ease-in-out infinite;white-space:nowrap}.tap-cue.done{border:2px solid #6ee7b7;background:#ecfdf5;color:var(--ok);animation:none}#board.sort{display:grid;gap:10px 20px;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"tray tray" "stage boxes"}.sort-tray{grid-area:tray;display:flex;justify-content:center;gap:clamp(6px,1.2vmin,14px)}.sort-card{width:clamp(36px,6.4vmin,64px);aspect-ratio:1;flex:none;border:2px solid var(--border);border-radius:14px;background:#fff;display:grid;place-items:center;font:700 clamp(15px,2.6vmin,26px) var(--font-n);color:var(--primary);transition:transform .25s}.sort-card.cur{border-color:#ffbf6f;box-shadow:0 0 0 4px #fff7ed;transform:translateY(-4px)}.sort-card.gone{border-style:dashed;background:#f8fafc;color:#94a3b8}.sort-stage{grid-area:stage;min-width:0;min-height:0;display:flex;touch-action:none}.sort-stage.grab{cursor:grab}.stage-note{margin:auto;max-width:420px;text-align:center;color:var(--ink-mid);font:500 clamp(15px,2.3vmin,23px)/1.5 var(--font-b)}.sys-card{margin:auto;display:flex;flex-direction:column;align-items:center;gap:.35em;max-width:100%;max-height:100%;padding:.5em 1.1em .6em;border:2.5px solid var(--border);border-radius:20px;background:#fff;box-shadow:var(--shadow);font-size:clamp(18px,5vmin,56px)}.sys-card.is{border-color:#6ee7b7}.sys-card.isnt{border-color:#fca5a5}.sys-no{font:600 .5em/1.2 var(--font-h);color:var(--ink-mid)}.sys-tex .katex{font-size:1.1em;color:var(--primary)}.sys-card.def .sys-tex .katex{color:var(--ink)}.def-t{font:500 .5em/1.5 var(--font-b);color:var(--ink-mid);text-align:center}.why{display:flex;flex-direction:column;align-items:center;gap:.1em;font-size:.62em;padding-top:.3em;border-top:1px dashed #cbd5e1;animation:popIn .3s ease-out}.why .katex{font-size:1em}.why-h{font:600 .8em var(--font-h);color:var(--ink-mid)}.why-t{font:600 .95em/1.3 var(--font-h);text-align:center}.why.ok .why-t{color:var(--ok)}.why.no .why-t{color:#b91c1c}.why.try{opacity:.85}.sort-boxes{grid-area:boxes;min-width:0;min-height:0;display:flex;flex-direction:column;gap:12px}.sort-box{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:8px 12px;border:2.5px solid;border-radius:18px;text-align:left;cursor:default;overflow:hidden}.sort-box.yes{border-color:#6ee7b7;background:#f0fdf8}.sort-box.no{border-color:#cbd5e1;background:#f8fafc}.sort-box .bh{font:600 clamp(15px,2.3vmin,23px)/1.3 var(--font-h)}.sort-box.yes .bh{color:var(--ok)}.sort-box.no .bh{color:#64748b}.sort-box .bin{flex:1;display:flex;flex-wrap:wrap;align-content:flex-start;gap:6px}.sort-box .mini{padding:2px 8px;background:#fff;border:1.5px solid var(--border);border-radius:10px;font-size:clamp(9px,1.45vmin,15px);color:var(--primary);animation:popIn .3s ease-out}.sort-box.ask{cursor:pointer;animation:boxPulse 1.6s ease-in-out infinite}.sort-box.hot{box-shadow:0 0 0 5px #f97316}@keyframes boxPulse{50%{box-shadow:0 0 0 5px rgba(255,191,111,.75)}}@keyframes popIn{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.sort-ghost{position:fixed;z-index:90;pointer-events:none;transform:translate(-50%,-50%);background:#fff;border:2px solid #ffbf6f;border-radius:14px;padding:6px 10px;font-size:18px;color:var(--primary);box-shadow:0 10px 30px rgba(15,30,74,.25)}@media(max-aspect-ratio:1/1){#board.sort{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) minmax(0,.7fr);grid-template-areas:"tray" "stage" "boxes"}.sort-boxes{flex-direction:row}}@media(max-height:500px){#board.sort{gap:4px 10px;grid-template-columns:auto minmax(0,1.3fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"tray stage boxes"}.sort-tray{display:grid;grid-template-columns:repeat(2,auto);align-content:center;gap:4px}.sort-card{width:30px;border-radius:9px;font-size:13px}.sort-card.cur{transform:none}.sort-box{padding:3px 8px;gap:2px;border-radius:12px}.sort-box .bh{font-size:13px}.sort-box .bin{gap:3px}.sort-box .mini{font-size:8px;padding:1px 4px}.sort-boxes{gap:6px;flex-direction:column}.sys-card{font-size:15px;padding:.3em .8em}}#board.sys-chk{display:grid;gap:10px 22px;grid-template-columns:minmax(260px,34%) minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"w p"}.sys-work{grid-area:w;align-self:center;min-height:0;max-height:100%;overflow:auto;padding:10px 12px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);font-size:var(--fs,19px);display:grid;grid-template-columns:auto auto auto minmax(0,1fr);align-content:start}.sys-work>*{grid-column:1/-1}.sys-work .wl.eqa{display:grid;grid-template-columns:subgrid;column-gap:0}.wl.eqa>.wl-pre{grid-column:1;padding-right:.55em}.wl.eqa>.ea-l{grid-column:2;justify-self:end;display:inline-flex;align-items:center;gap:.3em}.wl.eqa>.ea-r{grid-column:3;justify-self:start;display:inline-flex;align-items:center;gap:.45em}.wl.eqa>.ea-r.sp{padding-left:.3em}.wl.eqa>.wl-lab{grid-column:4;justify-self:start;margin-left:0;padding-left:.9em}.work-h{font:700 .78em var(--font-h);color:var(--primary);margin:0 0 2px 8px}.sys-work .wl{display:flex;align-items:center;gap:.45em;font:600 1em/1.6 var(--font-n);white-space:nowrap;padding:0 8px;border-radius:8px}.sys-work .wl.now{background:#fff7ed}.sys-work .wl .katex{font-size:1.05em}.wl-h{font:600 .74em var(--font-h);white-space:nowrap}.wl-h.sub{color:var(--ink-mid)}.tag{font:700 .72em var(--font-h);white-space:nowrap}.tag.ok{color:var(--ok)}.tag.no{color:#b91c1c}.wl.sol{margin-top:6px;padding-top:6px;border-top:1px dashed #cbd5e1;font:600 .8em var(--font-h);color:var(--ink-mid)}.wl.sol b{font:800 1.3em var(--font-n);color:var(--ok)}.sys-work .blank-h{font:800 1em/1.25 var(--font-n);min-width:2.4em;padding:0 8px;vertical-align:middle}.wl-empty{max-width:15em;padding:2px 8px 4px;font:500 .7em/1.5 var(--font-b);color:var(--ink-mid);white-space:normal}.sys-work.off{visibility:hidden}.q.dim{display:inline-block;min-width:1.8em;text-align:center;border:2px dashed #cbd5e1;border-radius:8px;background:#f8fafc;color:#94a3b8;font:800 .9em/1.3 var(--font-n)}.plane-card{grid-area:p;min-width:0;min-height:0;display:flex}.plane-wrap{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden}@media(max-aspect-ratio:1/1){#board.sys-chk{gap:6px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"p" "w"}.sys-work{align-self:stretch;max-height:32vh}}@media(max-height:500px){#board.sys-chk{gap:4px 10px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.sys-work{padding:4px 6px}.work-h{display:none}}#plane-svg{display:block;width:100%;height:100%;touch-action:manipulation}#plane-svg.tapping{cursor:crosshair}#plane-svg .g-min{stroke:#edf1f6;stroke-width:1}#plane-svg .g-maj{stroke:#edf1f6;stroke-width:1}#plane-svg .ax{stroke:#475569;stroke-width:2}#plane-svg .ax-name{font-style:italic;font-weight:800;font-family:var(--font-n);fill:#334155}#plane-svg .tick{font-weight:600;font-family:var(--font-n);fill:#64748b;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}#plane-svg .ln path{fill:none;stroke:var(--c);stroke-width:3.4;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:lnIn 1s ease-out forwards}#plane-svg .ln-tag{opacity:0;animation:fadeIn .4s ease-out forwards}#plane-svg .ln-tag circle{fill:#fff;stroke:var(--c);stroke-width:2.2}#plane-svg .ln-tag text{font-weight:800;font-family:var(--font-n);fill:var(--c)}#plane-svg .p-dot{stroke:#fff;stroke-width:2;transform-box:fill-box;transform-origin:center;animation:ptIn .35s cubic-bezier(.34,1.56,.64,1) backwards}#plane-svg .p-dot.faint{opacity:.6;stroke-width:1.4}#plane-svg .p-dot.sol{fill:var(--ok);stroke-width:3}#plane-svg .p-bad{fill:none;stroke:#94a3b8;stroke-width:3;stroke-linecap:round;animation:fadeIn .3s backwards}#plane-svg .p-lbl{font-weight:800;font-family:var(--font-n);paint-order:stroke;stroke:#fff;stroke-width:3.5px;stroke-linejoin:round;animation:fadeIn .3s backwards}#plane-svg .p-lbl.bad{fill:#64748b}#plane-svg .p-lbl.sol{fill:var(--ok)}#plane-svg .p-ring{fill:rgba(4,120,87,.07);stroke:#34d399;stroke-width:2;stroke-dasharray:6 5;animation:ringP 1.4s ease-in-out infinite}#plane-svg .p-hov circle{fill:none;stroke:#b45309;stroke-width:2}#plane-svg .p-hov text{font-weight:700;font-family:var(--font-n);fill:#b45309;paint-order:stroke;stroke:#fff;stroke-width:3px}#plane-svg .p-miss path{stroke:#dc2626;stroke-width:3;stroke-linecap:round}#plane-svg .p-miss text{font-weight:700;font-family:var(--font-n);fill:#dc2626;paint-order:stroke;stroke:#fff;stroke-width:3px}#plane-svg .ln.dash path{stroke-dasharray:12 9;stroke-dashoffset:0;stroke-width:3;animation:fadeIn .5s ease-out backwards}#plane-svg .p-frame{fill:none;stroke:#cbd5e1;stroke-width:1.5}#plane-svg .p-far line{stroke:#047857;stroke-width:2.6;stroke-dasharray:7 5}#plane-svg .p-far text{font-weight:700;font-family:var(--font-n);fill:#047857;paint-order:stroke;stroke:#fff;stroke-width:3.5px;stroke-linejoin:round}#plane-svg .p-drag{cursor:grab;touch-action:none}#plane-svg .p-drag:active{cursor:grabbing}#plane-svg .p-drag-hit{fill:rgba(4,120,87,.10);stroke:#6ee7b7;stroke-width:1.5;stroke-dasharray:4 4}#plane-svg .p-drag-dot{fill:var(--ok);stroke:#fff;stroke-width:3}#plane-svg .p-drag text{font-weight:800;font-family:var(--font-n);fill:var(--ok);paint-order:stroke;stroke:#fff;stroke-width:3.5px;stroke-linejoin:round}@keyframes lnIn{to{stroke-dashoffset:0}}@keyframes ptIn{from{transform:scale(0)}to{transform:scale(1)}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes ringP{50%{stroke-opacity:.35}}.sys-work .wl-pre{font:600 .78em var(--font-n);color:var(--ink-mid);white-space:nowrap}.sys-work .wl-lab{margin-left:auto;padding-left:.6em;font:700 .9em var(--font-n);color:var(--ink-mid)}.wl-sec{margin:6px 8px 0;padding-top:4px;border-top:1px dashed #cbd5e1;font:600 .72em var(--font-h);color:var(--primary)}.wl-sec.let{border-top:0;margin-top:0;font:600 .78em/1.45 var(--font-b);color:var(--ink);white-space:normal;max-width:24em}.sys-work .wl.tagline{white-space:normal;font:600 .74em/1.45 var(--font-b);max-width:24em}.sys-work .wl.tagline.ok{color:var(--ok)}.sys-work .wl.tagline.no{color:#b91c1c}.sys-work .wl.chk .katex{font-size:.92em}.sys-work .wl.chk.bad{color:#b91c1c}.wl-then{font:600 .85em var(--font-n);color:var(--ok);white-space:nowrap}.end-btns{display:flex;flex-wrap:wrap;gap:6px;margin:8px 8px 2px}.go-btn{display:inline-flex;align-items:center;gap:4px;padding:5px 12px;border:1.5px solid #fdba74;border-radius:9999px;background:#fff7ed;color:#c2410c;font:600 .66em/1.3 var(--font-h);white-space:nowrap}.go-btn:hover{background:#ffedd5}.go-btn.on{background:var(--primary);border-color:var(--primary);color:#fff}.sys-work>.go-btn{margin:6px 8px 2px;justify-self:start}.kind-wrap{position:relative;display:inline-flex}.kind-pick{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border:1.5px solid var(--border);border-radius:12px;background:#fff;color:var(--primary);font:600 14px var(--font-h);white-space:nowrap}.kind-pick .caret{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.kind-pick[aria-expanded=true] .caret{transform:rotate(180deg)}.list-pop{position:absolute;z-index:80;top:calc(100% + 6px);left:0;display:flex;flex-direction:column;gap:2px;min-width:190px;max-height:60vh;overflow:auto;padding:6px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 10px 30px rgba(15,30,74,.18)}.list-pop button{border:0;text-align:left;padding:8px 12px;border-radius:9px;font-size:14px;white-space:nowrap}.list-pop button:hover{background:var(--surface)}.list-pop button[aria-pressed=true]{background:var(--primary);color:#fff}.dock-lbl{font:500 13px var(--font-h);color:var(--ink-mid);white-space:nowrap;padding-left:4px}.tb-btn{height:36px;padding:0 12px;border-radius:10px;font-size:14px;white-space:nowrap}.tb-btn.on{background:var(--primary);border-color:var(--primary);color:#fff}.tb-blk{margin:2px 0 8px;padding:0 4px}.tb-eq{display:flex;align-items:center;gap:.3em;color:var(--c);font-size:.9em}.tb-eq .eqn{color:var(--c)}.tb{border-collapse:collapse;font:700 .9em var(--font-n)}.tb td,.tb th{min-width:2.3em;padding:.1em .4em;border:1.5px solid color-mix(in srgb,var(--c,#94a3b8) 35%,#e2e8f0);text-align:center;white-space:nowrap}.tb th{font-style:italic;color:var(--ink-mid);background:#f8fafc}.tb td.now{background:#fff7ed}.tb .blank-h{font-size:1em!important;padding:0 4px!important;min-width:1.8em!important}#board.cnt-x{display:grid;gap:10px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"p"}#board.cnt-x.with-tb{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"p t"}.cnt-x .plane-card{position:relative}.k-badge{position:absolute;z-index:2;top:6px;left:6px;padding:4px 12px;border-radius:9999px;font:600 clamp(13px,1.9vmin,19px)/1.3 var(--font-h);background:#fff;border:2px solid;box-shadow:var(--shadow)}.kind-chip{display:inline-flex;align-items:center;padding:3px 12px;border-radius:9999px;border:2px solid;font:600 calc(var(--q-size,26px) * .55)/1.3 var(--font-h);white-space:nowrap}.k-one{color:var(--ok);border-color:#6ee7b7;background:#ecfdf5}.k-none{color:#b91c1c;border-color:#fca5a5;background:#fef2f2}.k-many{color:#6d28d9;border-color:#c4b5fd;background:#f5f3ff}.kind-chip.wait{color:#c2410c;border:2px dashed #ffbf6f;background:#fff7ed}.sys-work .kind-chip{font-size:.8em}.x-table{grid-area:t;align-self:center;max-height:100%;overflow:auto;padding:8px 10px;background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);font-size:clamp(13px,1.9vmin,19px)}.x-table th .eqn{color:var(--c)}.x-table tr:first-child td,.x-table tr:first-child th{background:#f8fafc;color:var(--ink-mid)}.x-table td.hit{background:#ecfdf5;color:var(--ok);border-color:#6ee7b7}.x-hit{display:block;margin-top:4px;font:500 .8em var(--font-b);color:var(--ok)}@media(max-aspect-ratio:1/1){#board.cnt-x.with-tb{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"p" "t"}.x-table{justify-self:center;max-width:100%}}.bal-stack{grid-area:p;min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:clamp(6px,1.6vmin,16px);overflow:hidden;font-size:var(--fs,clamp(12px,2.1vmin,22px))}.bal-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:.4em;transition:opacity .4s}.bal-n{align-self:center;display:inline-flex;flex-direction:column;align-items:center;gap:2px;min-width:1.6em;font:800 1.2em/1 var(--font-n);color:var(--c,#475569)}.bal-badge{font:700 .62em/1.2 var(--font-n);font-style:normal;padding:1px 6px;border-radius:9999px;background:#fff7ed;border:1.5px solid #fdba74;color:#c2410c;white-space:nowrap}.pan{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:center;align-content:flex-end;gap:.25em;min-height:2.6em;padding:.35em .4em .45em;border-bottom:.3em solid var(--c,#475569);border-radius:.9em .9em .25em .25em;background:color-mix(in srgb,var(--c,#475569) 6%,#fff)}.fulc{align-self:end;position:relative;width:2.2em;height:2.2em;display:grid;place-items:end center}.fulc::before{content:'';position:absolute;inset:0;background:color-mix(in srgb,var(--c,#475569) 75%,#fff);clip-path:polygon(50% 0,100% 100%,0 100%)}.fulc span{position:relative;font:800 .85em/1.6 var(--font-n);color:#fff}.bal-row.faded{opacity:.42}.bal-row.src .pan{outline:2px dashed #fdba74;outline-offset:2px}.bal-row.pop{animation:popIn .4s ease-out}.bal-row.sum{padding-top:.4em;border-top:1.5px dashed #cbd5e1}.tl{display:inline-grid;place-items:center;height:1.7em;min-width:1.7em;padding:0 .2em;border:2px solid;border-radius:.35em;font:800 .8em/1 var(--font-n);font-style:italic;color:#fff}.tl-x{min-width:2.5em;background:#7c3aed;border-color:#6d28d9}.tl-y{min-width:2.5em;background:#d97706;border-color:#b45309}.tl-u{height:1.3em;min-width:1.3em;font-style:normal;font-size:.7em;background:#0d9488;border-color:#0f766e}.tl.neg{background:#fff;border-style:dashed}.tl-x.neg{color:#6d28d9}.tl-y.neg{color:#b45309}.tl-u.neg{color:#0f766e}.tl.pop{animation:popIn .35s ease-out backwards}.tl.flip{animation:flipIn .5s ease-out backwards}.tl-pair{position:relative;display:inline-flex;gap:1px;padding:1px;border-radius:.45em;animation:pairGo 1.8s ease-out forwards}.tl-pair .tl{animation:pairFade 1.8s ease-out forwards;animation-delay:inherit}.tl-pair .zero{position:absolute;inset:0;display:grid;place-items:center;font:800 1em var(--font-n);color:#64748b;opacity:0;animation:fadeIn .4s ease-out forwards;animation-delay:inherit}@keyframes pairGo{0%,40%{box-shadow:0 0 0 3px #fde68a}100%{box-shadow:0 0 0 1.5px #e2e8f0}}@keyframes pairFade{0%,45%{opacity:1}100%{opacity:.12}}@keyframes flipIn{from{transform:rotateX(90deg)}to{transform:none}}.wt{display:inline-grid;place-items:center;min-width:2.2em;height:1.7em;padding:0 .4em;border-radius:.5em .5em .3em .3em;background:#475569;color:#fff;font:800 .85em/1 var(--font-n)}.wt.ghost{background:#fff;color:#94a3b8;border:2px dashed #cbd5e1}.wt.ask{background:0 0;padding:0}.fruit{position:relative;display:inline-block;width:1.9em;height:1.9em;flex:none}.fruit svg{display:block;width:100%;height:100%}.fruit.ghost{opacity:.22;filter:grayscale(1)}.f-val{position:absolute;right:-.3em;bottom:-.2em;padding:0 .3em;border-radius:9999px;background:var(--ok);color:#fff;font:800 .55em/1.4 var(--font-n)}.fruit-in{display:inline-flex;gap:0;vertical-align:middle}.eq-float .fruit{width:1.15em;height:1.15em}.sys-work .fruit{width:1.2em;height:1.2em}.fr-eq{display:inline-flex;align-items:center;gap:.25em;font:700 calc(var(--q-size,26px) * .8) var(--font-n)}.fr-eq b{color:inherit}.fr-ans{display:inline-flex;align-items:center;gap:4px;font-size:var(--q-size,26px)}.fr-ans .fruit{width:1.1em;height:1.1em}.b-set{display:inline-flex;align-items:center;gap:3px}.b-lbl{display:inline-flex;align-items:center;font:700 15px var(--font-n);color:var(--ink-mid)}.b-set .fruit{width:24px;height:24px}#board.bal-board,#board.elim-board{display:grid;gap:10px 22px;grid-template-columns:minmax(0,1.25fr) minmax(250px,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"p w"}#board.elim-board.solo{grid-template-columns:minmax(0,1fr);grid-template-areas:"w"}#board.elim-board.solo .sys-work{justify-self:center}.elim-board .plane-card{position:relative}.e-note{position:absolute;left:8px;right:8px;bottom:6px;text-align:center;font:500 clamp(12px,1.8vmin,17px)/1.4 var(--font-b);color:var(--ink-mid);background:rgba(255,255,255,.88);border-radius:10px;padding:2px 8px}.tile-note{grid-area:p;margin:auto;max-width:400px;padding:16px 20px;border:2px dashed #cbd5e1;border-radius:18px;background:#f8fafc;text-align:center;color:var(--ink-mid);font:500 clamp(14px,2vmin,20px)/1.5 var(--font-b)}.sub-viz{grid-area:p;align-self:center;justify-self:center;display:flex;flex-direction:column;align-items:flex-start;gap:clamp(10px,3vmin,30px);max-width:100%;padding:clamp(10px,2vmin,22px) clamp(12px,2.6vmin,28px);background:#fff;border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow);max-height:100%;overflow:hidden;font-size:var(--fs,clamp(16px,3.6vmin,40px))}.sv-row{display:flex;align-items:center;flex-wrap:wrap;gap:.35em;color:var(--c);transition:opacity .4s}.sv-row .bal-n{font-size:.8em}.sv-row.dim{opacity:.4}.sv-arrow{display:inline-flex;align-items:center;gap:.3em;color:var(--ok)}.box-eq{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.15em}.sv-box{display:inline-flex;align-items:center;padding:0 .2em;border:2.5px solid #0e7490;border-radius:.3em;background:#ecfeff;color:#0e7490;transition:background .3s}.sv-box.in{border-color:var(--ok);background:#ecfdf5;color:var(--ok);animation:popIn .45s ease-out}.sv-box.lid{border-style:solid}.sv-ok{font:600 .5em/1.4 var(--font-h);color:var(--ok)}#board.word-board{display:grid;gap:10px 22px;grid-template-columns:minmax(0,1fr) minmax(260px,1.05fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"p w"}.story-card{grid-area:p;align-self:center;min-height:0;max-height:100%;overflow:auto;display:flex;flex-direction:column;gap:clamp(8px,1.6vmin,16px);padding:clamp(10px,1.8vmin,20px) clamp(12px,2.2vmin,24px);background:#fff;border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}.story{margin:0;font:500 clamp(15px,2.6vmin,28px)/1.65 var(--font-b);color:var(--ink)}.story .kn{font:700 1em var(--font-n);color:inherit;transition:color .3s}.story .ka{display:block;width:fit-content;margin-top:.5em;text-decoration:none;transition:all .3s}.story-card.marked .kn{color:var(--candy)}.story-card.marked .ka{text-decoration:underline 3px #fb923c;text-underline-offset:4px}.ka-t{color:#c2410c}.kn-t{color:var(--candy)}.story-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}.story-top .work-h{margin:0}.steps5{margin:0;padding:0;list-style:none;display:flex;align-items:center;gap:4px;font:600 clamp(11px,1.5vmin,14px)/1 var(--font-h)}.steps5 li{display:inline-flex;align-items:center;gap:6px;border-radius:9999px;color:#64748b;white-space:nowrap}.steps5 li i{display:grid;place-items:center;width:1.9em;height:1.9em;border-radius:50%;background:#f1f5f9;font:700 1em/1 var(--font-n);font-style:normal}.steps5 li.done i{background:#dbeafe;color:var(--primary)}.steps5 li.now{padding-right:12px;background:var(--primary);color:#fff}.steps5 li.now i{background:rgba(255,255,255,.22);color:#fff}.word-board .story-card,.word-board .sys-work{align-self:start}.w-work{grid-area:w}.ctx-btn{font-size:13px}.ctx-n{font:600 12px var(--font-n);color:var(--ink-mid)}.w-ans{white-space:normal;font:600 1.05em/1.4 var(--font-b);color:var(--ink)}.w-ans b{font:800 1.15em var(--font-n);color:var(--ok)}.wl.sol:has(.w-ans){white-space:normal}@media(max-aspect-ratio:1/1){#board.bal-board,#board.elim-board,#board.word-board{gap:6px;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"p" "w"}#board.elim-board.solo{grid-template-rows:minmax(0,1fr);grid-template-areas:"w"}#board.word-board{grid-template-rows:auto minmax(0,1fr)}#board.bal-board,#board.elim-board:not(.solo){grid-template-rows:minmax(0,1fr) minmax(0,1fr)}.bal-board .sys-work,.elim-board .sys-work{align-self:stretch}.word-board .sys-work{align-self:stretch}.story-card{align-self:stretch}}@media(max-width:760px){.kind-pick{height:34px;padding:0 8px;font-size:13px}.ctx-btn .ctx-n,.ctx-btn .ctx-t{display:none}.word-bar .blank-h{min-width:2.2em;padding:0 6px}.eq-float.word-bar{left:6px;right:6px;transform:none;width:auto;max-width:none;flex-wrap:nowrap}.word-bar #btn-random{width:34px;height:34px;margin-left:auto;flex:none}.word-bar .fr-ans{flex:none;gap:3px}.word-bar .eq-op{white-space:nowrap}.word-bar .sep{margin:0 2px!important}.b-lbl{font-size:12px}.b-set .fruit{width:18px;height:18px}.dock-lbl{display:none}.tb-btn{height:32px;padding:0 8px;font-size:13px}}@media(max-height:500px){#board.bal-board,#board.elim-board,#board.word-board{gap:4px 10px;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}#board.elim-board.solo{grid-template-columns:minmax(0,1fr)}.kind-pick{height:30px;padding:0 8px;font-size:12px}.story{font-size:14px;line-height:1.5}.steps5{display:none}.k-badge{font-size:12px;padding:2px 8px}.b-lbl{font-size:12px}.b-set .fruit{width:18px;height:18px}}#explain{position:fixed;z-index:25;left:50%;transform:translateX(-50%);bottom:80px;width:max-content;max-width:calc(100% - 24px);display:flex;gap:12px;align-items:center;padding:.5rem 1.4rem;background:#fff9e6;border:1px solid #f1e8c9;border-radius:22px;box-shadow:0 4px 16px rgba(30,58,138,.08)}#explain strong{font-family:var(--font-h);color:var(--primary);white-space:nowrap}#explain .ex-note{display:block;font-size:.92em;font-weight:700}#explain.fb-no .ex-note{color:#b91c1c}#explain.asking .ex-note{color:#c2410c}#explain.beside{border-radius:12px;padding:.25rem .7rem}#explain .tex .katex{color:var(--primary)}#dock{bottom:14px;left:50%;transform:translateX(-50%);max-width:calc(100% - 24px);width:max-content;flex-wrap:wrap;justify-content:center;row-gap:4px}.mini-seg{display:flex;gap:3px;padding:3px;background:#eef4fb;border-radius:10px}.mini-seg button{border:0;background:0 0;padding:5px 10px;border-radius:8px;font-size:14px;white-space:nowrap;min-width:34px}.mini-seg button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px rgba(30,58,138,.18);font-weight:600}.walk{display:flex;align-items:center;gap:5px}#btn-play{width:50px;height:50px;border-radius:50%;background:var(--grad);color:#fff;box-shadow:0 4px 12px rgba(30,58,138,.3)}#btn-play:hover{filter:brightness(1.1);background:var(--grad)}#btn-play svg{fill:currentColor;stroke:none}.dots{display:flex;gap:5px;padding:3px}.dots button{flex:none;width:30px;height:30px;padding:0;border-radius:50%;font:600 13px var(--font-n);background:#fff}.dots button.done{background:var(--sky);border-color:var(--candy-light)}.dots button.locked{opacity:.4;cursor:not-allowed}.dots button[aria-current=step]{background:var(--primary);color:#fff;border-color:var(--primary);transform:scale(1.12)}.dots .gap{flex:none;align-self:center;width:16px;text-align:center;color:#94a3b8;font:700 14px var(--font-n)}.blank{cursor:pointer;outline:0}.blank rect{fill:#fff7ed;stroke:#ffbf6f;stroke-width:3.5;stroke-dasharray:8 5;animation:blankPulse 1.6s ease-in-out infinite}.blank text{fill:#ea580c;pointer-events:none}.blank.miw-pad-target rect,.blank:focus-visible rect,.blank:hover rect{fill:#ffedd5;stroke:#f97316;stroke-dasharray:none;animation:none}.blank.miw-pad-target{outline:0!important}@keyframes blankPulse{50%{stroke:#f97316;fill:#ffedd5}}.blank-h.call,.blank.call rect{animation:blankCall .4s ease-in-out 3!important}.blank.call{transform-box:fill-box;transform-origin:center;animation:blankCallG .4s ease-in-out 3}@keyframes blankCall{50%{stroke:#f97316;fill:#ffedd5;border-color:#f97316;background:#ffedd5}}@keyframes blankCallG{50%{transform:scale(1.12)}}.blank.wait rect{fill:#f8fafc;stroke:#cbd5e1;animation:none}.blank.wait text{fill:#cbd5e1}.blank-h.wait,.blank.wait{cursor:not-allowed}.blank-h.wait{border-color:#cbd5e1!important;background:#f8fafc!important;color:#cbd5e1!important;animation:none!important}.blank-h{display:inline-block;min-width:2.2em;margin:0 .2em;padding:0 6px;border:2px dashed #ffbf6f;border-radius:8px;background:#fff7ed;color:#ea580c;font:inherit;font-weight:800;line-height:1.25;cursor:pointer;animation:blankPulseH 1.6s ease-in-out infinite}.blank-h.miw-pad-target,.blank-h:hover{border-style:solid;border-color:#f97316;background:#ffedd5;animation:none;outline:0!important}@keyframes blankPulseH{50%{border-color:#f97316;background:#ffedd5}}.dragme{cursor:grab;touch-action:none}.dragme.grabbing{cursor:grabbing}.dragme .ring{fill:rgba(249,115,22,.12);stroke:#f97316;stroke-width:3;stroke-dasharray:6 5;animation:blankPulse 1.6s ease-in-out infinite}.pick{fill:transparent;cursor:pointer}.pick:hover{fill:rgba(249,115,22,.12)}.tap{cursor:pointer}#explain.asking{background:#fff7ed;border-color:#fdba74}#explain.fb-ok{background:#ecfdf5;border-color:#6ee7b7}#explain.fb-no{background:#fef2f2;border-color:#fca5a5}.dots button.locked{opacity:.4;cursor:not-allowed}#fill-seg{display:flex;gap:3px;padding:3px;background:#eef4fb;border-radius:10px;flex:none}#fill-seg button{width:40px;height:34px;padding:0;border:0;border-radius:8px;background:0 0;display:grid;place-items:center;font-size:17px;line-height:1;cursor:pointer}#fill-seg button[aria-pressed=true]{background:#fff;box-shadow:0 1px 4px rgba(30,58,138,.18)}@media (max-width:760px){#fill-seg button{height:30px;width:36px}}@media (prefers-reduced-motion:reduce){.blank rect,.blank-h,.dragme .ring{animation:none}}.miw-tip{position:fixed;z-index:9700;max-width:min(320px,calc(100vw - 16px));padding:6px 11px;border-radius:9px;background:#1e293b;color:#fff;font:500 13px/1.35 Kanit,sans-serif;text-align:center;pointer-events:none;box-shadow:0 6px 18px rgba(15,23,42,.22);animation:miwTipIn .14s ease-out}.miw-tip::after{content:'';position:absolute;left:var(--ax,50%);top:100%;margin-left:-6px;border:6px solid transparent;border-top-color:#1e293b}.miw-tip.below::after{top:auto;bottom:100%;border-top-color:transparent;border-bottom-color:#1e293b}@keyframes miwTipIn{from{opacity:0;transform:translateY(3px)}}@media (prefers-reduced-motion:reduce){.miw-tip{animation:none}}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]){--cap-fs:15px;font-family:var(--font-b, 'Sarabun', sans-serif)!important;font-size:var(--cap-fs)!important;line-height:1.5!important;font-weight:400;color:#123049!important;background:#fff9e6;border:1px solid #f1e8c9;box-shadow:0 4px 16px rgba(30,58,138,.08)}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]) strong{font-family:var(--font-h, 'Kanit', sans-serif)!important;font-size:inherit!important;font-weight:600;color:#1e3a8a!important}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption])>span:not([class]){color:inherit;font-weight:inherit}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]) :where(b,em,mark):not([class]):not([style]){color:#c2410c;font-weight:700;font-style:normal;background:0 0}@media (max-height:760px) and (min-width:761px){html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]){--cap-fs:14px}}@media (max-width:760px){html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]){--cap-fs:13px}}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]) .dsep{display:inline!important;font-size:0!important}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]) .dsep::before{content:'\2014';font-size:var(--cap-fs);margin:0 .6em}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]) .dbr{display:none!important}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]).side{--cap-fs:14px;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;text-align:left!important;border-radius:16px!important}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]).side .dsep{display:none!important}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]).side .dbr{display:inline!important}html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]).miw-side{left:12px!important;right:auto!important;transform:none!important;width:auto!important;max-width:min(460px,calc(100vw - 24px))!important}@media (max-height:760px) and (min-width:761px){html :is(#explain,#instruction-text,#helper-card,#status,[data-caption]).side{--cap-fs:13px}}html.miw-cap-off :is(#explain,#instruction-text,#helper-card,#status,[data-caption]){visibility:hidden!important;height:0!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important;border-width:0!important;overflow:hidden!important;box-shadow:none!important}#btn-cap[aria-pressed=true]{color:#b45309}.miw-eq-pen{flex:none;display:inline-grid;place-items:center;width:max(30px,calc(var(--q-size,34px) * .85));height:max(30px,calc(var(--q-size,34px) * .85));margin:0 2px 0 0;padding:0;border:1px solid var(--border,#e2e8f0);border-radius:9px;background:#fff;color:var(--primary,#1e3a8a);cursor:pointer;align-self:center}.miw-eq-pen svg{width:45%;height:45%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.miw-eq-pen:hover{background:#eef4ff}[data-miw-eq=open]>.miw-eq-pen{background:var(--primary,#1e3a8a);border-color:transparent;color:#fff}body.ui-hidden .miw-eq-pen{display:none!important}:is(.eq-float,[data-eqset]) :is(.num-wrap > .nbox,.num-wrap > input,input.num-input):not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *){font-size:var(--q-size)!important;line-height:1!important;height:calc(var(--q-size) * 1.4)!important}:is(.eq-float,[data-eqset]) .num-wrap:not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *){width:auto!important;flex:none!important}:is(.eq-float,[data-eqset]) .num-wrap:not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *)>.nbox{flex:none!important;width:auto!important;min-width:calc(var(--q-size) * 1.25 + 28px)}:is(.eq-float,[data-eqset]) .num-wrap:not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *)>input{flex:none!important;width:calc(var(--q-size) * 1.9 + 30px)!important}@supports (field-sizing:content){:is(.eq-float,[data-eqset]) .num-wrap:not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *)>input{width:auto!important;min-width:calc(var(--q-size) * 1.25 + 30px);field-sizing:content}}:is(.eq-float,[data-eqset]) :is(.blank-h,.ans-chip):not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *){display:inline-flex!important;align-items:center;justify-content:center;box-sizing:border-box;font-size:var(--q-size)!important;line-height:1.15!important;min-height:calc(var(--q-size) * 1.4);min-width:calc(var(--q-size) * 1.5)}:is(.eq-float,[data-eqset]) :is(.eq-lbl,.eq-text,.math-symbol.remainder):not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *){font-size:calc(var(--q-size) * .56)!important}:is(.eq-float,[data-eqset]) :is(.eq-op,.op,.math-symbol:not(.remainder)):not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *){font-size:calc(var(--q-size) * .8)!important}:is(.eq-float,[data-eqset]) .eq-big{font-size:var(--q-size)!important}:is(.eq-float,[data-eqset]) .sep:not(.opt):not(:is(.pop-panel,.sign-pop,.float-pop,.mini-seg,[data-eqskip]) *){display:block!important;flex:none!important;align-self:center;width:2px!important;height:calc(var(--q-size) * 1.05)!important;margin:0 calc(var(--q-size) * .45)!important;border-radius:1px;background:#cbd5e1!important}:is(.eq-float,[data-eqset]) .sep:not(.opt):not(:is(.pop-panel,.sign-pop,.float-pop,.mini-seg,[data-eqskip]) *)~:not(.blank-h,[class*=chip],[class*=slot],.c-ans,.num-wrap,.mini-seg,button,input,[data-eqskip]),:is(.eq-float,[data-eqset]) .sep:not(.opt):not(:is(.pop-panel,.sign-pop,.float-pop,.mini-seg,[data-eqskip]) *)~:not(.blank-h,[class*=chip],[class*=slot],.c-ans,.num-wrap,.mini-seg,button,input,[data-eqskip]) :not(.blank-h,.blank-h *,[class*=chip],[class*=chip] *,[class*=slot],[class*=slot] *,.c-ans,.c-ans *,.num-wrap,.num-wrap *,.mini-seg,.mini-seg *,button,button *,input){color:#dc2626!important}[data-miw-eq=view] .num-wrap:not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *){width:auto!important;min-width:0!important;flex:none!important;cursor:pointer}[data-miw-eq=view] .num-wrap:not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *) .spin{display:none!important}[data-miw-eq=view] .num-wrap:not(:is(.pop-panel,.sign-pop,.float-pop,[data-eqskip]) *)>:is(.nbox,input,button){flex:none!important;width:auto!important;min-width:1.2ch;field-sizing:content;padding:0 2px!important;border-color:transparent!important;background:0 0!important;box-shadow:none!important;pointer-events:none;font-size:var(--q-size, 34px)!important;line-height:1.15!important;height:auto!important}[data-miw-eq=view] :is(.mini-seg,.seg):has(> button[aria-pressed]){background:0 0!important;border-color:transparent!important;box-shadow:none!important;padding:0!important}[data-miw-eq=view] :is(.mini-seg,.seg)>button[aria-pressed=false]{display:none!important}[data-miw-eq=view] :is(.mini-seg,.seg)>button[aria-pressed=true]{background:0 0!important;box-shadow:none!important;color:var(--primary,#1e3a8a)!important;pointer-events:none;padding:0 2px!important;font-size:calc(var(--q-size, 34px) * .8)!important}.eq-view:not([data-miw-eq=view] *),[data-miw-eq=view] .eq-set{display:none!important}:root{--q-size:clamp(34px, 4.9vmin, 50px)}@media (max-width:760px){:root{--q-size:24px}}@media (max-height:500px){:root{--q-size:21px}}.eq-set{display:contents}.eq-view{display:inline-flex;align-items:baseline;gap:.3em;white-space:nowrap;padding:0 4px;cursor:pointer;font:600 calc(var(--q-size) * .56)/1.2 var(--font-h, inherit);color:var(--ink-mid,#475569)}.eq-view b{font:800 var(--q-size)/1.15 var(--font-n, inherit);color:var(--primary,#1e3a8a)}.eq-view sup{font-size:.6em;line-height:0;margin-left:.05em}.eq-view .eq-part{display:inline-flex;align-items:baseline;gap:.3em}.eq-view .eq-pdiv{align-self:center;width:2px;height:calc(var(--q-size) * .8);margin:0 .7em;border-radius:1px;background:var(--border,#cbd5e1)}@media (max-width:760px),(max-height:500px){.miw-eq-pen{width:26px;height:26px;border-radius:8px}.miw-eq-pen svg{width:14px;height:14px}}@media (max-width:480px){html #topbar{gap:2px}html #topbar :is(.icon-btn,.fb-btn):not(.mode-pick){width:34px}html #topbar .mode-pick{flex:0 1 auto;min-width:0;gap:4px;padding:0 8px 0 10px;font-size:13px;white-space:nowrap}html #topbar .mode-pick>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html #topbar .mode-pick>svg{flex:none}}@media (max-width:380px){html #topbar .mode-pick>:first-child:not(span){display:none}}@media (min-width:761px) and (min-height:501px){#topbar .seg>button>span:last-of-type{display:inline!important}html.miw-modes-snug #topbar .seg>button{padding-left:8px!important;padding-right:8px!important;gap:5px;font-size:13px}html.miw-modes-bare #topbar .seg>button{padding-left:6px!important;padding-right:6px!important}html.miw-modes-bare:not(.miw-modes-menu) #topbar .seg>button>img,html.miw-modes-bare:not(.miw-modes-menu) #topbar .seg>button>svg{display:none!important}html.miw-modes-menu #mode-pick{display:inline-flex!important}html.miw-modes-menu #topbar .seg{display:none!important;position:absolute;top:calc(100% + 6px);left:4px;flex-direction:column;align-items:stretch;gap:2px;min-width:220px;padding:6px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 10px 30px rgba(15,30,74,.18);z-index:70}html.miw-modes-menu #topbar.mode-open .seg{display:flex!important}html.miw-modes-menu #topbar .seg>button{height:42px;padding:0 12px!important;justify-content:flex-start;font-size:14px}}.miw-ink-layer{position:fixed;inset:0;width:100%;height:100%;z-index:70;pointer-events:none;touch-action:none;overflow:visible}html.miw-inking .miw-ink-layer{pointer-events:auto;cursor:crosshair}.miw-ink-layer[data-tool=select]{cursor:default}.miw-ink-layer[data-tool=eraser]{cursor:cell}.miw-ink-layer[data-tool=text]{cursor:text}.miw-ink-sel{fill:rgba(147,197,253,.12);stroke:#3b82f6;stroke-width:1.5;stroke-dasharray:6 4;pointer-events:none}.miw-ink-box{fill:rgba(59,130,246,.08);stroke:#3b82f6;stroke-width:1;stroke-dasharray:4 3;pointer-events:none}.miw-ink-input{position:absolute;z-index:75;min-width:200px;padding:4px 8px;border:2px solid #93c5fd;border-radius:8px;font:600 20px Sarabun,sans-serif;background:#fff;outline:0;-webkit-user-select:text;user-select:text}html.miw-inking body{width:100vw;height:100vh;height:100dvh;margin:0;overflow:hidden}body{transition:transform .3s ease}html.miw-inking #dock,html.miw-inking #topbar,html.miw-inking #ui-restore,html.miw-inking .dock{z-index:80}.miw-ink-bar{position:fixed;z-index:9000;right:12px;top:12px;bottom:12px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;background:rgba(255,255,255,.96);border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 6px 24px rgba(30,58,138,.12);overflow-y:auto;scrollbar-width:none;font-family:Kanit,sans-serif;-webkit-user-select:none;user-select:none;animation:miwInkIn .3s ease-out both}.miw-ink-bar[hidden]{display:none}.miw-ink-bar::-webkit-scrollbar{display:none}.miw-ink-bar button{width:40px;height:32px;flex:none;padding:0;display:grid;place-items:center;border:1px solid transparent;border-radius:10px;background:0 0;color:#1e3a8a;cursor:pointer}.miw-ink-bar button:hover{background:#f7fbff;border-color:#e2e8f0}.miw-ink-bar button[aria-pressed=true]{background:#dbeeff;border-color:#93c5fd}.miw-ink-bar button:focus-visible{outline:3px solid #93c5fd;outline-offset:1px}.miw-ink-bar svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.miw-ink-bar .miw-ink-x{width:28px;height:26px;color:#c2410c}.miw-ink-bar .miw-ink-x svg{width:17px;height:17px;stroke-width:2.4}.miw-ink-col,.miw-ink-colors,.miw-ink-widths{display:flex;flex-direction:column;align-items:center;gap:3px;flex:none}.miw-ink-sep{align-self:stretch;height:1px;flex:none;margin:2px 0;background:#e2e8f0}.miw-ink-colors{gap:5px;padding:2px 0}.miw-ink-bar .miw-ink-sw{width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #e2e8f0}.miw-ink-bar .miw-ink-sw[aria-pressed=true]{border-color:#fff;box-shadow:0 0 0 2px #1e3a8a}.miw-ink-bar .miw-ink-sw.own{background:radial-gradient(circle,var(--own,#fff) 0 40%,transparent 43%),conic-gradient(#ef4444,#f59e0b,#eab308,#22c55e,#06b6d4,#3b82f6,#a855f7,#ef4444)}.miw-ink-bar .miw-ink-w{height:20px;padding:0 5px}.miw-ink-w i{display:block;width:100%;background:#193451;border-radius:4px}.miw-ink-pick{position:fixed;z-index:9001;display:flex;flex-direction:column;align-items:stretch;gap:10px;width:230px;padding:12px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:16px;box-shadow:0 8px 28px rgba(30,58,138,.16);font-family:Kanit,sans-serif}.miw-ink-pick[hidden]{display:none}.miw-ink-pick label{display:flex;flex-direction:column;gap:6px;font:500 13px/1.3 Kanit,sans-serif;color:#1e3a8a}.miw-ink-dot{align-self:center;width:36px;height:36px;border-radius:50%;box-shadow:0 0 0 3px #fff,0 0 0 4px #e2e8f0}.miw-ink-pick input{-webkit-appearance:none;appearance:none;width:100%;height:18px;margin:0;border-radius:9px;outline:0;cursor:pointer}.miw-ink-hue input{background:linear-gradient(90deg,#eb1313,#ebeb13,#13eb13,#13ebeb,#1313eb,#eb13eb,#eb1316)}.miw-ink-pick input::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;border-radius:50%;background:#fff;border:3px solid #1e3a8a;box-shadow:0 1px 4px rgba(0,0,0,.25)}.miw-ink-pick input::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:#fff;border:3px solid #1e3a8a}@media (max-height:830px),(max-width:900px){.miw-ink-bar{gap:3px;padding:5px}.miw-ink-bar button{height:26px}.miw-ink-bar svg{width:19px;height:19px}.miw-ink-bar .miw-ink-x{height:22px}.miw-ink-bar .miw-ink-sw{width:18px;height:18px}.miw-ink-colors{gap:4px}.miw-ink-bar .miw-ink-w{height:16px}}@media (max-height:620px){.miw-ink-bar{top:8px;bottom:8px;right:8px;gap:2px;padding:4px}.miw-ink-bar button{width:34px;height:21px}.miw-ink-bar svg{width:16px;height:16px}.miw-ink-bar .miw-ink-sw{width:15px;height:15px}.miw-ink-colors{gap:3px}.miw-ink-bar .miw-ink-w{height:14px}}@keyframes miwInkIn{from{opacity:0;transform:translateX(24px)}}@media (prefers-reduced-motion:reduce){.miw-ink-bar{animation:none}body{transition:none}}.miw-tour{position:fixed;inset:0;z-index:9500;pointer-events:none}.miw-tour.centred{background:rgba(15,30,74,.45)}.miw-tour-spot{position:fixed;border-radius:14px;box-shadow:0 0 0 4px #ffbf6f,0 0 0 9999px rgba(15,30,74,.45);transition:all .3s ease;pointer-events:none}.miw-tour-card{position:fixed;width:min(360px,calc(100vw - 16px));background:#fff;border-radius:16px;padding:14px 16px 12px;box-shadow:0 14px 40px rgba(15,30,74,.3);pointer-events:auto;font-family:Sarabun,sans-serif;color:#123049;transition:top .3s ease,left .3s ease}.miw-tour-count{font:700 12px Inter,sans-serif;color:#b45309;margin-bottom:2px}.miw-tour-card h3{margin:0 0 4px;font:700 17px Kanit,sans-serif;color:#1e3a8a}.miw-tour-card p{margin:0 0 8px;font-size:15px;line-height:1.55}.miw-tour-card .miw-tour-try{font-family:Kanit,sans-serif;color:#b45309;font-size:14px}.miw-tour-btns{display:flex;gap:6px;justify-content:flex-end}.miw-tour-btns button{height:36px;padding:0 14px;border-radius:9999px;border:1.5px solid #e2e8f0;background:#fff;color:#1e3a8a;font:600 14px Kanit,sans-serif;cursor:pointer}.miw-tour-btns button:disabled{opacity:.35;cursor:default}.miw-tour-btns .miw-tour-skip{margin-right:auto;border-color:transparent;color:#64748b}.miw-tour-btns .miw-tour-next{background:#1e3a8a;border-color:#1e3a8a;color:#fff}@media (prefers-reduced-motion:reduce){.miw-tour-card,.miw-tour-spot{transition:none}}.miw-pad{position:fixed;z-index:9600;width:256px;padding:10px;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 16px 40px rgba(15,30,74,.22);font-family:Kanit,sans-serif;user-select:none;-webkit-user-select:none;touch-action:manipulation;animation:miwPadIn .16s ease-out}.miw-pad-head{display:flex;align-items:center;gap:6px;margin-bottom:9px}.miw-pad-label{font:600 13px Kanit,sans-serif;color:#64748b;white-space:nowrap;max-width:40%;overflow:hidden;text-overflow:ellipsis}.miw-pad-show{flex:1;min-width:0;min-height:48px;display:flex;align-items:center;justify-content:flex-end;gap:1px;padding:0 12px;border-radius:12px;background:#f7fbff;border:1.5px solid #93c5fd;font:700 26px Inter,Kanit,sans-serif;color:#1e3a8a;white-space:nowrap;overflow:hidden}.miw-pad-show::after{content:'';flex:none;width:2px;height:1.05em;margin-left:2px;background:#1e3a8a;animation:miwPadCaret 1s steps(1) infinite}.miw-pad-show.empty::before{content:'?';color:#cbd5e1}.miw-pad-show.fresh{background:#dbeafe}.miw-pad-show.fresh::after{opacity:0;animation:none}.miw-pad-show i{font:italic 600 1.08em Cambria,'Times New Roman',serif;padding:0 1px}.miw-pad-frac{display:inline-flex;flex-direction:column;align-items:center;font-size:.62em;line-height:1.05}.miw-pad-frac span:first-child{border-bottom:2px solid currentColor;padding:0 3px}.miw-pad-pow{position:relative;top:-.5em;font-size:.62em;line-height:1;padding-left:1px}.miw-pad-pow.empty{top:-.3em;min-width:.85em;height:1.05em;margin-left:2px;border:2px dashed #f59e0b;border-radius:4px;text-align:center}.miw-pad-show.up::after{height:.62em;transform:translateY(-.4em)}.miw-pad-rad{position:relative;display:inline-flex;align-items:stretch;margin-left:1px}.miw-pad-rad.cube{padding-left:.14em}.miw-pad-radidx{position:absolute;left:0;top:.02em;font-size:.4em;line-height:1}.miw-pad-radsign{flex:none;width:.48em;height:auto;overflow:visible;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.miw-pad-radsign path{vector-effect:non-scaling-stroke}.miw-pad-radin{border-top:2.2px solid currentColor;padding:.05em .1em 0 .06em;line-height:1.05}.miw-pad-radin.empty::before{content:'';display:block;width:.55em;height:.75em;margin:.04em 0 .02em;border:2px dashed #f59e0b;border-radius:4px}.miw-pad-radkey{width:1.2em;height:1.05em;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.miw-pad-key svg.miw-pad-radkey{width:1.2em;height:1.05em}.miw-pad-radkey rect{fill:#f59e0b;stroke:none}.miw-pad-radkey text{fill:currentColor;stroke:none;font:700 9px Inter,sans-serif}.miw-pad-powkey{position:relative;display:block;width:1.25em;height:1.2em}.miw-pad-powkey::before{content:'';position:absolute;left:.05em;bottom:.05em;width:.75em;height:.75em;box-sizing:border-box;border:.1em solid currentColor;border-radius:.14em}.miw-pad-powkey::after{content:'';position:absolute;right:.05em;top:.05em;width:.42em;height:.42em;border-radius:.11em;background:#f59e0b}.miw-pad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.miw-pad-extra{display:grid;grid-template-columns:repeat(var(--n,3),1fr);gap:7px;margin-top:7px}.miw-pad-key{height:52px;min-width:0;padding:0;display:grid;place-items:center;border:1.5px solid #e2e8f0;border-radius:14px;background:#f7f9fc;box-shadow:0 3px 0 #dbe3ef;font:700 24px Inter,sans-serif;color:#1e293b;cursor:pointer;transition:transform .06s,box-shadow .06s,background .1s}.miw-pad-key:hover{background:#eef4fb}.miw-pad-key.hit,.miw-pad-key:active{transform:translateY(2px);box-shadow:0 1px 0 #dbe3ef;background:#e3edf9}.miw-pad-key:focus-visible,.miw-pad-ok:focus-visible{outline:3px solid #93c5fd;outline-offset:1px}.miw-pad-key.fn{font:600 16px Kanit,sans-serif;color:#475569}.miw-pad-key svg,.miw-pad-ok svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.miw-pad-key.var{font:italic 600 26px Cambria,'Times New Roman',serif;color:#1e3a8a}.miw-pad-key.op{color:#1e3a8a}.miw-pad-key.ok,.miw-pad-ok{display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:#1e3a8a;color:#fff;font:600 17px Kanit,sans-serif;cursor:pointer;box-shadow:0 3px 0 #142a66}.miw-pad-ok{width:100%;height:50px;margin-top:9px;border-radius:14px}.miw-pad-okrow{display:flex;gap:7px;margin-top:9px}.miw-pad-okrow .miw-pad-ok{flex:1;width:auto;margin-top:0}.miw-pad-close{flex:none;width:50px;height:50px;display:grid;place-items:center;padding:0;border:1.5px solid #fed7aa;border-radius:14px;background:#fff4e6;color:#c2410c;box-shadow:0 3px 0 #fde0c2;cursor:pointer}.miw-pad-close:hover{background:#ffedd5}.miw-pad-close:active{transform:translateY(2px);box-shadow:0 1px 0 #fde0c2}.miw-pad-close svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}.miw-pad-key.ok:hover:not(:disabled),.miw-pad-ok:hover:not(:disabled){background:#253f99}.miw-pad-key.ok:disabled,.miw-pad-ok:disabled{background:#9db3e0;box-shadow:0 3px 0 #8aa1d2;cursor:default}.miw-pad.shake{animation:miwPadShake .36s}.miw-pad.shake .miw-pad-show{border-color:#ef4444;background:#fef2f2;color:#b91c1c}.miw-pad.nudge .miw-pad-show{animation:miwPadNudge .2s}.miw-pad-target{outline:3px solid #ffbf6f!important;outline-offset:2px}.miw-pad-input{cursor:pointer;caret-color:transparent}.miw-pad.sheet{left:50%;right:auto;top:auto;bottom:0;width:min(560px,100vw);transform:translateX(-50%);border-radius:18px 18px 0 0;border-bottom:0;padding:8px 8px calc(8px + env(safe-area-inset-bottom));animation:miwPadUp .18s ease-out}.miw-pad.sheet .miw-pad-head{margin-bottom:6px}.miw-pad.sheet .miw-pad-head .miw-pad-key{flex:none;width:56px;height:42px;box-shadow:none}.miw-pad.sheet .miw-pad-head .miw-pad-key[data-k=close]{width:42px;background:0 0;border-color:transparent}.miw-pad.sheet .miw-pad-show{min-height:42px;font-size:22px}.miw-pad.sheet .miw-pad-grid{grid-template-columns:repeat(var(--n,6),1fr);gap:6px}.miw-pad.sheet .miw-pad-key{height:46px;font-size:21px;border-radius:12px}.miw-pad.sheet .miw-pad-key.var{font-size:23px}.miw-pad.sheet .miw-pad-key.ok{font-size:15px;gap:4px}.miw-pad.sheet .miw-pad-grid[style*="--n:8"] .miw-pad-key.ok span,.miw-pad.sheet .miw-pad-grid[style*="--n:9"] .miw-pad-key.ok span{display:none}.miw-pad.sheet .miw-pad-key.ok svg{width:20px;height:20px}.miw-pad.sheet.shake{animation:miwPadShakeSheet .36s}@keyframes miwPadIn{from{opacity:0;transform:scale(.94)}}@keyframes miwPadUp{from{transform:translate(-50%,100%)}}@keyframes miwPadCaret{50%{opacity:0}}@keyframes miwPadShake{20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}@keyframes miwPadShakeSheet{20%,60%{transform:translateX(calc(-50% - 7px))}40%,80%{transform:translateX(calc(-50% + 7px))}}@keyframes miwPadNudge{50%{transform:translateX(-4px)}}@media (prefers-reduced-motion:reduce){.miw-pad,.miw-pad-show::after,.miw-pad.shake,.miw-pad.sheet{animation:none}}@media(max-width:1300px){.seg button{padding:7px 8px;font-size:13px}.site-title{font-size:16px}}@media(min-width:761px) and (max-width:900px){#topbar{top:68px}}@media(max-width:760px){#brand{left:8px;right:8px;top:8px;padding:4px 10px 4px 4px}#brand img{width:30px;height:30px}.back-home{font-size:0;padding:4px 10px}.back-home::before{content:'←';font-size:16px}.site-title{font-size:15px;overflow:hidden;text-overflow:ellipsis}#topbar{top:62px;left:8px;right:8px;justify-content:space-between}#topbar .sep{display:none}.icon-btn{width:38px;height:38px}#board{left:6px;right:6px}.eq-float{gap:5px;padding:4px 6px}.eq-float.stack{left:6px;right:6px;width:auto;max-width:none;column-gap:6px}.stack .eq-view b{font-size:calc(var(--q-size) * .86)}.eq-float.stack .sep{margin:0 3px!important}.stack #btn-random{width:34px;height:34px;margin-left:auto}.stack .eq-view{padding-right:0}.num-wrap{width:56px}.num-wrap .nbox{height:36px;font-size:17px;padding-right:20px}.spin{width:16px}#btn-random{width:38px;height:38px}#explain{display:flex;flex-direction:column;align-items:flex-start;gap:1px;border-radius:12px;padding:.35rem .8rem}#dock{bottom:8px;gap:3px;padding:5px}#dock .dots{order:9;flex-basis:100%;justify-content:center}#dock .sep{display:none}#btn-play{width:44px;height:44px}.dots button{width:28px;height:28px;font-size:12px}.walk{display:contents}.sys-bar .eq-lbl{display:none}}@media(max-width:760px) and (min-height:501px){.stack .ans-grp{flex-direction:column;align-items:flex-start;gap:2px}.stack .ans-grp .eq-op{font-size:calc(var(--q-size) * .62)!important}.stack .kind-wrap{order:9}}@media(max-height:500px){.eq-float.stack{padding:2px 8px}.stack .eq-view b{font-size:calc(var(--q-size) * .8)}.stack .eq-view{gap:0}}@media(max-width:760px),(max-height:500px){.mode-pick{display:inline-flex}#topbar .seg{display:none;position:absolute;top:calc(100% + 6px);left:4px;flex-direction:column;align-items:stretch;gap:2px;min-width:220px;padding:6px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 10px 30px rgba(15,30,74,.18);z-index:70}#topbar.mode-open .seg{display:flex}#topbar .seg button{height:42px;padding:0 12px}#topbar .seg button span{display:inline}.mini-seg.pickone:not(.open) button[aria-pressed=false]{display:none}.mini-seg.pickone:not(.open) button[aria-pressed=true]::after{content:' ▾';font-size:10px;color:#64748b}}@media(max-height:500px){#brand{left:6px;right:auto;top:6px;gap:6px;padding:3px 8px 3px 3px}.site-title{display:none}#brand img{width:28px;height:28px}#topbar{top:6px;left:auto;right:6px;justify-content:flex-end;gap:2px;padding:3px}.icon-btn{width:34px;height:34px}.mode-pick{height:34px;padding:0 9px;font-size:13px}.mode-pick span{display:none}.eq-float{padding:2px 6px;gap:4px}#btn-random{width:30px;height:30px}.sys-bar .eq-lbl{display:none}#explain{flex-direction:row;align-items:center;gap:.5rem;padding:.2rem .8rem}#dock{padding:3px}#dock .dots{order:0;flex-basis:auto}#btn-play{width:38px;height:38px}.dots button{width:24px;height:24px;font-size:11px}}@media(pointer:coarse){.dots button{width:34px;height:34px}}@media(prefers-reduced-motion:reduce){#plane-svg .ln path,#plane-svg .ln-tag,#plane-svg .p-bad,#plane-svg .p-dot,#plane-svg .p-lbl,#plane-svg .p-ring,.bal-row.pop,.sort-box .mini,.sort-box.ask,.sv-box.in,.tap-cue,.tl-pair,.tl-pair .tl,.tl-pair .zero,.tl.flip,.tl.pop,.why{animation:none}.tl-pair .tl{opacity:.12}.tl-pair .zero{opacity:1}#plane-svg .ln path{stroke-dashoffset:0}#plane-svg .ln-tag{opacity:1}}#welcome-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:1.25rem;background:rgba(45,32,90,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}#welcome-overlay.hidden{display:none}.welcome-card{position:relative;width:100%;max-width:400px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);padding:2rem 1.5rem 1.75rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:1rem;animation:popIn .22s ease forwards}.welcome-lang{position:absolute;top:.85rem;right:.85rem;display:flex;gap:4px}.welcome-lang button{font-family:var(--font-h);font-weight:700;font-size:.72rem;padding:3px 9px;border-radius:var(--r-pill);cursor:pointer;border:1px solid var(--border);background:#fff;color:var(--gray-text)}.welcome-lang button.active{background:var(--primary);color:#fff;border-color:var(--primary)}.welcome-icon{width:76px;height:76px;border-radius:18px;object-fit:cover;box-shadow:var(--shadow)}.welcome-card h2{font-family:var(--font-h);font-size:1.15rem;font-weight:800;color:var(--primary);margin:0}.welcome-card p{font-size:.9rem;color:var(--text);margin:0;line-height:1.55}.welcome-shop-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;width:100%;margin-top:.25rem;padding:.85rem 1.25rem;background:linear-gradient(135deg,#f97316 0,#fb923c 100%);border:none;border-radius:var(--r-pill);color:#fff;font-family:var(--font-h);font-weight:800;font-size:1.02rem;cursor:pointer;text-decoration:none;box-shadow:0 6px 18px rgba(249,115,22,.4);transition:transform .15s ease,box-shadow .15s ease}.welcome-shop-btn:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(249,115,22,.5)}.welcome-note{font-size:.8rem;color:var(--gray-text)}@media (max-width:480px){.welcome-card{padding:1.75rem 1.25rem 1.5rem}}