:root{--primary:#1e3a8a;--primary-hover:#142070;--text:#0f1e4a;--border:#e2e8f0;--success:#10b981;--error:#ef4444;--font-h:"Kanit",sans-serif;--font-b:"Sarabun",sans-serif;--font-math:"Inter","Kanit",sans-serif}*{box-sizing:border-box}body,html{height:100%;margin:0}body{font-family:var(--font-b);color:var(--text);background:#fff;overflow:hidden;background-image:radial-gradient(#dbe5f3 1px,transparent 1px);background-size:26px 26px}button{font-family:var(--font-h)}.float-bar{position:fixed;z-index:60;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;max-width:calc(55vw - 24px)}.logo-link{display:block;flex:none}.logo-img{width:36px;height:36px;object-fit:contain;display:block;-webkit-user-drag:none}.back-home{font:500 14px var(--font-h);color:var(--primary);text-decoration:none;padding:6px 12px;background:#f7fbff;border-radius:20px;white-space:nowrap;flex:none}.back-home:hover{background:var(--primary);color:#fff}.site-title{margin:0;font:600 18px var(--font-h);color:var(--primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;user-select:none}#topbar{top:12px;right:12px}.fb-btn{min-width:44px;height:44px;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:.3rem;padding:0 .4rem;border:1px solid transparent;border-radius:12px;background:0 0;color:var(--primary);cursor:pointer;font:600 14px var(--font-h);white-space:nowrap}.fb-btn:hover:not(:disabled){background:#f7fbff;border-color:var(--border)}.fb-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.fb-link{font:700 19px Inter,sans-serif;text-decoration:none}.fb-lang{padding:0 12px;font:600 13px var(--font-h)}@media(max-width:1100px){.site-title{font-size:16px}}body.ui-hidden #topbar,body.ui-hidden .dock{display:none!important}[hidden]{display:none!important}#ui-restore{top:auto;left:auto;right:12px;bottom:12px;opacity:.55;transition:opacity .15s}#ui-restore:focus-visible,#ui-restore:hover{opacity:1}.cards{position:fixed;top:84px;bottom:92px;left:50%;transform:translateX(-50%);width:min(1600px,calc(100vw - 32px));display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:1fr;gap:14px;align-content:center;max-height:calc(100dvh - 176px)}.card{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:0;padding:40px 14px 30px;background:rgba(255,255,255,.95);border:1px solid var(--border);border-radius:20px;box-shadow:0 6px 24px rgba(30,58,138,.08);transition:border-color .2s,box-shadow .2s}.card.ok{border-color:rgba(16,185,129,.55);box-shadow:0 0 0 3px rgba(16,185,129,.15)}.card-tag{position:absolute;top:12px;left:14px;right:14px;display:flex;align-items:center;gap:6px}.card-tag b{font:600 15px var(--font-h);color:var(--primary);margin-right:auto;white-space:nowrap}.chip{min-width:26px;height:24px;padding:0 6px;display:inline-grid;place-items:center;border-radius:8px;background:#eef4fb;color:var(--primary);font:700 13px var(--font-math)}.chip.var{font:italic 600 15px Cambria,'Times New Roman',serif}.chip.none{background:0 0;color:#94a3b8;font:500 12px var(--font-h)}.q{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.4em;font:700 clamp(1.1rem, min(2.2vw, 3.7vh), 1.8rem) var(--font-math);color:var(--text);text-align:center}.q.words{font:600 clamp(.95rem, min(1.6vw, 2.6vh), 1.25rem) var(--font-h)}.ans i,.q i{font:italic 600 1.1em Cambria,'Times New Roman',serif}.frac{display:inline-flex;flex-direction:column;align-items:center;font-size:.72em;line-height:1.1}.frac span:first-child{border-bottom:2.5px solid currentColor;padding:0 4px}.pw{white-space:nowrap}.q sup{font-size:.62em;line-height:0}.ans-row{display:flex;align-items:center;gap:10px}.ans{width:clamp(130px,13vw,180px);height:clamp(42px,6.6vh,58px);text-align:center;border:2px solid #cbd5e1;border-radius:14px;background:#fff;font:700 1.6rem var(--font-math);color:var(--primary);outline:0}.ans::placeholder{color:#cbd5e1}.card.ok .ans{border-color:var(--success);background:#ecfdf5;color:#047857}.card.bad .ans{border-color:var(--error);background:#fef2f2}.msg{position:absolute;left:10px;right:10px;bottom:8px;margin:0;font:600 14px var(--font-h);color:#64748b;text-align:center}.card.ok .msg{color:#047857}.card.bad .msg{color:#b91c1c}.dock{bottom:12px;left:50%;transform:translateX(-50%)}.dock-btn{height:44px;padding:0 14px;display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:12px;background:0 0;color:var(--primary);font:600 15px var(--font-h);cursor:pointer;white-space:nowrap}.dock-btn:hover{background:#f7fbff;border-color:var(--border)}.dock-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.dock-btn[aria-pressed=true]{background:#dbeeff;border-color:#93c5fd}.dock-sep{width:1px;height:28px;background:var(--border);margin:0 2px}@media (max-width:900px){.cards{gap:10px}.chip{min-width:20px;height:20px;font-size:11px;padding:0 4px;border-radius:6px}.chip.var{font-size:13px}.chip.none{display:none}}@media (max-width:760px){#brand{left:8px;right:8px;top:8px;max-width:none;gap:6px;padding:4px 10px 4px 4px}.logo-img{width:30px;height:30px}.back-home{font-size:0;padding:4px 10px}.back-home::before{content:'\2190';font-size:16px}.site-title{font-size:15px}#topbar{top:58px;left:8px;right:8px;justify-content:flex-end;gap:2px;padding:4px}.fb-btn{min-width:38px;height:38px;padding:0 .3rem}.cards{top:112px;bottom:70px;width:calc(100vw - 16px);gap:6px;max-height:none}.card{padding:6px;gap:6px;border-radius:14px}.card-tag{top:6px;left:8px;right:8px}.card-tag b{font-size:12px;overflow:hidden;text-overflow:ellipsis}.chip{display:none}.card{padding-top:25px}.q{gap:.3em;font-size:.9rem}.q.words{font-size:.78rem}.ans-row{width:100%;justify-content:center}.ans{width:100%;max-width:108px;height:40px;font-size:1.15rem;border-radius:12px}.msg{display:none}.dock{bottom:8px}.dock-btn{height:40px;padding:0 10px;font-size:13px}}@media (max-height:560px) and (min-width:761px){.cards{top:70px;bottom:70px;gap:8px;max-height:none}.card{gap:4px;padding:34px 12px 8px}.msg{display:none}.ans{font-size:1.2rem}}.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}}.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}}