: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;--font-h:Kanit,sans-serif;--font-b:Sarabun,sans-serif;--font-n:Inter,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=types]:not([aria-pressed=true]) .m-ico{color:#2563eb}.seg button[data-m=parts]:not([aria-pressed=true]) .m-ico{color:#db2777}.seg button[data-m=build]:not([aria-pressed=true]) .m-ico{color:#7c3aed}.seg button[data-m=area]:not([aria-pressed=true]) .m-ico{color:#047857}.seg button[data-m=explore]:not([aria-pressed=true]) .m-ico{color:#d97706}.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}.slot-wrap{position:relative;display:inline-flex;vertical-align:middle}.slot{height:calc(var(--q-size,34px) * 1.25);min-width:calc(var(--q-size,34px) * 1.6);display:inline-grid;place-items:center;padding:0 .5em;border-radius:12px;border:2.5px dashed #cbd5e1;font:800 calc(var(--q-size,34px) * .62)/1 var(--font-h);color:var(--primary);background:#fff;cursor:pointer;white-space:nowrap}.slot.ask{border-color:#ffbf6f;background:#fff7ed;color:#ea580c;animation:blankPulseH 1.6s ease-in-out infinite}.slot.ask.call{animation:shk .4s,blankPulseH 1.6s ease-in-out infinite}.slot.armed{border-style:solid;border-color:#f97316;background:#ffedd5}.slot.done{border:2.5px solid #6ee7b7;background:#ecfdf5;color:var(--ok);animation:none;cursor:default}.slot.dim{color:#94a3b8;background:#f8fafc;cursor:default}#explain .slot{--q-size:24px;margin:0 .2em}.sign-pop{position:absolute;z-index:80;top:calc(100% + 10px);left:50%;transform:translateX(-50%);display:flex;gap:6px;padding:6px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 10px 30px rgba(15,30,74,.18)}.sign-pop.up{top:auto;bottom:calc(100% + 10px)}.sign-pop button{min-width:96px;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 12px;font:600 17px/1.2 var(--font-h);white-space:nowrap}.sign-pop button .mk{font:800 24px/1 var(--font-n)}.sign-pop button:hover:not(:disabled){background:#fff7ed;border-color:#f97316}.sign-pop button.bad{background:#fef2f2;border-color:#fca5a5;color:#dc2626;opacity:1}@keyframes shk{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}.pick-wrap{position:static;display:flex}.fam-btn{display:flex;align-items:center;gap:6px;height:46px;padding:0 10px;font:600 15px var(--font-h);white-space:nowrap}.fam-btn .caret{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}.fam-pop{position:absolute;z-index:80;top:calc(100% + 8px);left:50%;transform:translateX(-50%);display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:min(560px,calc(100vw - 24px));padding:8px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 10px 30px rgba(15,30,74,.18)}.fam-pop button{width:96px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 4px}.fam-pop button small{font:600 12.5px var(--font-h);line-height:1.15;text-align:center}.nw{white-space:nowrap}.eq-set{display:flex;align-items:center;gap:8px}.eq-view{display:inline-flex;align-items:center}.eq-view b{display:inline-flex;align-items:center;gap:.25em;font:600 calc(var(--q-size) * .62)/1.2 var(--font-h);color:var(--primary);white-space:nowrap}#board{position:fixed;z-index:1;top:var(--b-top,150px);bottom:var(--b-bot,140px);left:12px;right:12px;display:flex}#board svg{display:block;width:100%;height:100%;touch-action:manipulation}.stage-wrap{flex:1;min-width:0;min-height:0;display:flex}.tri-ico{width:30px;height:30px;flex:none;display:block}.fam-pop .tri-ico{width:48px;height:48px}.fam-btn .tri-ico{width:34px;height:34px}.hard-tag{display:block;font:600 11px var(--font-h);color:#b45309}.tex .katex{font-size:1.08em}.eq-view b .tex .katex{font-size:.82em;color:var(--primary)}#explain .tex .katex{font-size:1.05em;color:var(--primary)}.v-name{font-family:Inter,sans-serif;font-weight:700;fill:#1e3a8a;paint-order:stroke;stroke:#fff;stroke-width:4px;vector-effect:non-scaling-stroke;stroke-linejoin:round}.v-deg{font-family:Inter,sans-serif;font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:4px;vector-effect:non-scaling-stroke;stroke-linejoin:round}.ang.hi .arc-edge{animation:arcPulse 1.2s ease-in-out infinite}@keyframes arcPulse{50%{stroke:#b45309;stroke-width:6px}}.prot-body{fill:rgba(173,216,255,.34);stroke:#1e3a8a}.prot-num{font-family:Inter,sans-serif;font-weight:500;fill:#c2410c}.prot-num.dark{font-weight:700;fill:#1e3a8a}.zero-ring{animation:zeroPulse 1.4s ease-in-out infinite}@keyframes zeroPulse{50%{stroke-opacity:.35}}.s-len{font-family:Inter,sans-serif;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:4px;vector-effect:non-scaling-stroke;stroke-linejoin:round}.r-num{font-family:Inter,sans-serif;font-weight:700;fill:#8a4b00}.r-unit{font-family:var(--font-b),sans-serif;font-weight:700;fill:#a16207}.tap-cue{display:inline-block;padding:0 10px;border:2px dashed #ffbf6f;border-radius:9999px;background:#fff7ed;color:#c2410c;font:700 .9em 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.with-side{gap:12px}.side-card{flex:none;align-self:center;width:min(460px,40%);max-height:100%;background:#fff;border:1px solid var(--border);border-radius:16px;padding:10px 14px;box-shadow:0 6px 20px rgba(30,58,138,.08)}.side-card svg{display:block;width:100%;height:auto;max-height:100%}.venn-card{display:flex;flex-direction:column}.venn-card>svg{flex:0 1 auto;min-height:0}.vn-r{fill:#f8fafc;stroke:#94a3b8;stroke-width:2;cursor:pointer}.vn-r.isos{fill:#ede9fe;stroke:#7c3aed}.vn-r.equi{fill:#dbeafe;stroke:#2563eb}.vn-r.on{fill:#d1fae5;stroke:#047857;stroke-width:3.5}.vn-r:hover{filter:brightness(.97)}.vn-t{font:600 17px var(--font-h);fill:#334155;pointer-events:none}.vn-me{fill:#fde68a;stroke:#b45309;stroke-width:2.5;stroke-linejoin:round;pointer-events:none}#lat-svg{touch-action:none}.lat-dots circle{fill:#94a3b8}.lat-knob{fill:#fff;stroke:#1e3a8a}.lat-h{cursor:grab}.lat-h.off{cursor:default}.lat-h:hover .lat-knob{fill:#fff7ed;stroke:#b45309}.kind-table{display:grid;grid-template-columns:auto repeat(3,1fr);gap:5px;font-size:clamp(13px,2vmin,19px)}.kt-c{display:grid;place-items:center;text-align:center;border-radius:10px;padding:4px 6px;min-height:2.2em}.kt-h{font:600 1em/1.2 var(--font-h);color:var(--primary);background:#eef4fb}.kt-corner{font:500 .78em/1.2 var(--font-h);color:var(--ink-mid)}.kt-cell{aspect-ratio:1.25;border:2px dashed #cbd5e1;background:#fff}.kt-cell.cur{border:2.5px solid #ffbf6f;background:#fff7ed;animation:blankPulseH 1.6s ease-in-out infinite}.kt-cell.made{border:2px solid #6ee7b7;background:#ecfdf5}.kt-cell.none{border:2px solid #e2e8f0;background:#f1f5f9;color:#94a3b8;font:800 1.4em var(--font-n)}.kt-ico{width:82%;height:82%}.work-card{flex:none;align-self:center;width:min(540px,40%);font-size:var(--fs,20px);max-height:100%;overflow:hidden;background:#fff;border:1px solid var(--border);border-radius:16px;padding:10px 16px;box-shadow:0 6px 20px rgba(30,58,138,.08)}.work-card.empty{visibility:hidden}.work-h{font:700 .8em var(--font-h);color:var(--primary);margin-bottom:.2em}.wl{font:600 1em/1.75 var(--font-n);color:var(--ink);display:flex;align-items:center;flex-wrap:wrap;column-gap:.3em}.wl b{font:600 .85em var(--font-h);color:var(--ink-mid)}.wl .th{font:500 .9em var(--font-b);color:var(--ink)}.wl .v{color:var(--ok);font-weight:800}.wl.now{background:#fff9e6;border-radius:8px;margin:0 -8px;padding:0 8px}.wl .tex .katex{font-size:1.05em}.wl .blank-h{font:800 1em/1.3 var(--font-n);min-width:2.2em;padding:1px 8px}.wl .slot{height:1.55em;min-width:2em;font-size:1em;border-radius:.4em}.dbl{border-bottom:3px double var(--ok);padding-bottom:1px}@media(max-aspect-ratio:1/1){#board.with-side{flex-direction:column}.side-card,.work-card{width:auto;align-self:stretch;max-height:46%}.side-card svg{max-height:32vh;margin:auto;width:auto;max-width:100%}#board .kind-table{height:46%;grid-template-rows:auto repeat(3,minmax(0,1fr))}#board .kt-cell{aspect-ratio:auto;min-height:0}#board .kind-table svg.kt-ico{max-height:100%;width:auto;height:82%}}.role-t{font-family:var(--font-h);font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:4px;vector-effect:non-scaling-stroke;stroke-linejoin:round}.cand-n{font-family:Inter,sans-serif;font-weight:800;fill:#334155}.tap-corner,.tap-side{cursor:pointer}.c-given{display:inline-flex;flex-wrap:wrap;gap:4px 10px;color:var(--ink)!important}.c-chip{white-space:nowrap}.c-chip.chain{color:#b45309}.c-card{width:min(300px,30%);display:flex;flex-direction:column;gap:4px}.c-h{font:600 clamp(13px,1.9vmin,18px) var(--font-h);color:var(--primary)}.c-sketch{width:100%;max-height:26vh}.sk-n{font:700 7px Inter,sans-serif;fill:#1e3a8a}.sk-v{font:700 6px Inter,sans-serif;fill:#047857}.sk-a{font:700 5.5px Inter,sans-serif;fill:#b45309}.c-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.c-tool{display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;font:500 clamp(11px,1.6vmin,15px)/1.15 var(--font-h);color:var(--ink-mid);border:2px solid var(--border);background:#fff}#board .c-tool svg{width:min(44px,5vmin);height:min(44px,5vmin);fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.c-tool.ask{border:2px dashed #ffbf6f;background:#fff7ed;color:#c2410c}.c-tool.on{border:2px solid #6ee7b7;background:#ecfdf5;color:var(--ok)}#build-svg{cursor:crosshair}@media(max-aspect-ratio:1/1){.c-card{width:auto;flex-direction:row;flex-wrap:wrap;align-items:center}.c-card .c-h{display:none}#board .c-card svg.c-sketch{width:40%;max-height:18vh;margin:0}.c-card .c-tools{flex:1;min-width:52%}}.mini-seg button:disabled{opacity:.38;cursor:not-allowed}.side-col{flex:none;align-self:center;width:min(560px,42%);max-height:100%;display:flex;flex-direction:column;gap:10px;min-height:0}.side-col .work-card{width:auto;align-self:stretch;min-height:0;flex:0 1 auto}.story-card{flex:none;font-size:var(--fs,20px);max-height:52%;overflow:hidden;padding:.5em .8em;background:#fff;border:1px solid var(--border);border-left:5px solid var(--primary);border-radius:14px;box-shadow:0 4px 14px rgba(30,58,138,.08)}.story-card p{margin:0;font:500 .9em/1.6 var(--font-b);color:var(--ink);text-wrap:pretty}.st-ph{border-radius:6px;padding:0 .2em;white-space:nowrap}.st-ph.hl{background:#fef9c3;box-shadow:inset 0 -2px 0 #facc15;font-weight:600}.wp-n{font:600 .8em var(--font-n);color:var(--ink-mid)}.x-kinds{display:inline-flex;gap:6px;flex-wrap:wrap}.x-kind{font:600 .82em/1 var(--font-h);padding:.38em .7em;border-radius:9999px;border:2px solid currentColor;background:#fff;white-space:nowrap;transition:color .2s,background .2s}.x-kind.a-acute{color:#2563eb;background:#eff6ff}.x-kind.a-right{color:#db2777;background:#fdf2f8}.x-kind.a-obtuse{color:#7c3aed;background:#f5f3ff}.x-kind.s-equi,.x-kind.s-isos,.x-kind.s-scalene{color:#047857;background:#ecfdf5}.x-tog button[aria-pressed=false]{color:var(--ink-mid);background:0 0}.x-tog button[aria-pressed=true]{color:var(--primary)}.x-tog button[aria-pressed=true]::before{content:'✓ ';color:var(--ok)}.x-tog-wrap{position:relative}.x-tog-btn{display:none;align-items:center;gap:4px;height:36px;padding:0 12px;border-radius:10px;border:1px solid var(--border);background:#fff;font:600 14px var(--font-h);color:var(--primary)}.x-tog-btn .caret{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.6}@media(max-width:760px),(max-height:500px){.x-tog-btn{display:inline-flex}#x-tog-wrap .x-tog{display:none;position:absolute;left:0;bottom:calc(100% + 10px);flex-direction:column;align-items:stretch;padding:6px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px rgba(30,58,138,.16);z-index:40}#x-tog-wrap.open .x-tog{display:flex}.x-tog button{text-align:left;padding:8px 12px}}@media(max-aspect-ratio:1/1){.side-col{width:auto;align-self:stretch;max-height:56%}.side-col .work-card{max-height:none}.story-card{max-height:24vh}}#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}.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)}#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}.dock-opts{display:contents}.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}.num-wrap{width:56px}.num-wrap .nbox{height:36px;font-size:17px;padding-right:20px}.spin{width:16px}#btn-random{width:38px;height:38px}.fam-btn{height:38px;padding:0 6px;font-size:13px}.fam-btn span{display:none}.sign-pop button{min-width:84px;min-height:56px;font-size:15px}#explain{display:flex;flex-direction:column;align-items:flex-start;gap:1px;border-radius:12px;padding:.35rem .8rem}#explain .slot{--q-size:20px}#dock{bottom:8px;gap:3px;padding:5px}#dock .dots{order:9;flex-basis:100%;justify-content:center}.dock-opts{display:flex;flex-basis:100%;justify-content:center;gap:4px}#dock .sep{display:none}#btn-play{width:44px;height:44px}.dots button{width:28px;height:28px;font-size:12px}.walk{display:contents}.eq-view .nm{display:none}}@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}.fam-btn{height:32px;padding:0 4px;gap:3px}.fam-btn span{display:none}.fam-pop{width:min(720px,calc(100vw - 24px));gap:4px;padding:6px}.fam-pop button{width:78px;padding:3px 2px;gap:1px}.fam-pop .tri-ico{width:30px;height:30px}.fam-pop button small{font-size:11px}.sign-pop button{min-width:76px;min-height:46px;font-size:14px}#explain{flex-direction:row;align-items:center;gap:.5rem;padding:.2rem .8rem}#explain .slot{--q-size:18px}#dock{padding:3px}#dock .dots{order:0;flex-basis:auto}.dock-opts{display:contents}#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){.ang.hi .arc-edge,.slot.ask,.zero-ring{animation:none}}#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}}