.subjects a.subject{text-decoration:none}.math-main{padding-bottom:24px}.math-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:30px 0 22px}.math-heading h1{font-size:clamp(30px,4vw,44px);line-height:1.25;margin:5px 0 8px;letter-spacing:-1px}.math-heading p{margin:0;color:#557366}.math-heading img{width:95px;height:95px;object-fit:cover;border-radius:24px}.math-welcome{padding:18px 22px;background:#e8f2e7;border-radius:18px;display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}.math-welcome p{margin:4px 0}.math-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.math-topic{padding:24px;background:#fff;border:1px solid #d2dfd3;border-radius:22px;display:flex;flex-direction:column;gap:15px}.math-topic:first-child{border-top:5px solid #efbb3e}.math-topic:nth-child(2){border-top:5px solid #4a977b}.math-topic:nth-child(3){border-top:5px solid #cd8760}.math-topic:nth-child(4){border-top:5px solid #668dc6}.math-topic:nth-child(5){grid-column:1/-1;border-top:5px solid #9a85bf}.topic-heading{display:flex;gap:14px;align-items:center}.topic-heading h2{font-size:24px;margin:0 0 4px}.topic-heading p{margin:0;color:#557366;font-size:16px}.math-symbol{width:48px;height:48px;flex-shrink:0;display:grid;place-items:center;background:#f2f5e9;border-radius:15px;font-size:24px;font-weight:800}.math-topic label{display:grid;gap:7px;font-size:14px;font-weight:700}.math-topic select{width:100%;border:1px solid #bdcfc2;border-radius:12px;padding:12px;font:inherit;background:#fff;color:#214936}.topic-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.topic-actions .button{flex:1}.speak-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 13px;border:1px solid #bbd0c2;border-radius:13px;background:#fff;color:#24563e;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.speak-button svg{width:21px;height:21px;flex-shrink:0}.speak-button:focus-visible,.math-main button:focus-visible,.math-main input:focus-visible{outline:3px solid #dd9400;outline-offset:3px}.math-work-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:24px 0 14px}.math-work-top p{margin:0;color:#557366;font-size:14px}.math-step-dots{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;max-width:580px;margin:0 auto 20px}.math-step-dots span{height:8px;border-radius:8px;background:#dce6d9}.math-step-dots .done{background:#327452}.math-step-dots .current{background:#e3b32e}.math-workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px;align-items:start}.math-question{padding:clamp(18px,3vw,34px);background:#fff;border:1px solid #d7e1d3;border-radius:26px;min-width:0}.math-question h1{font-size:clamp(24px,3vw,33px);line-height:1.35;margin:12px 0 20px;word-break:keep-all}.question-meta{display:flex;align-items:center;gap:12px;justify-content:space-between}.question-meta>span{font-size:14px;font-weight:700;color:#627568}.math-equation{font-size:clamp(40px,6vw,70px);font-weight:800;letter-spacing:1px;text-align:center;padding:16px 0 20px;white-space:nowrap}.math-equation .unknown{display:inline-grid;place-items:center;min-width:1.15em;background:#fff1bc;border-radius:12px;color:#6f5012}.sequence-track{display:flex;gap:8px;justify-content:center;margin:30px 0;align-items:center}.sequence-track span{display:grid;place-items:center;flex:1;max-width:86px;min-height:70px;background:#eff5ec;border:1px solid #d7e4d1;border-radius:14px;font-size:clamp(24px,3.8vw,40px);font-weight:800}.sequence-track .blank{background:#fff2be;border:2px dashed #c09223;color:#8d6a17}.math-answer-card{background:#fff9df;border:1px solid #e5d6a3;border-radius:24px;padding:22px;position:sticky;top:18px}.math-answer-card label{font-weight:800;font-size:18px}.math-answer-card input{display:block;width:100%;box-sizing:border-box;text-align:center;border:2px solid #b7cabb;border-radius:14px;font-size:42px;background:#fff;padding:10px;margin:12px 0;min-height:75px;color:#254b36}.math-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.math-keypad button{min-height:54px;font-size:24px;font-weight:700;border:1px solid #d2d9c7;border-radius:12px;background:#fff;color:#254b36;cursor:pointer}.math-keypad button:active{background:#e4efde}.math-keypad .key-clear{font-size:15px}.math-submit{margin-top:12px;width:100%}.math-feedback{line-height:1.6;font-size:17px;margin:16px 0 0;min-height:27px}.math-feedback.good{color:#26633d}.math-feedback.retry{color:#985824}.math-help{border-top:1px solid #e4eadf;margin-top:18px;padding-top:18px}.math-help p{line-height:1.7}.math-help-toggle{margin-top:12px;width:100%}.help-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.help-heading h2{font-size:20px;margin:0}.math-numberline{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin:20px 0}.math-numberline .number-stop{display:grid;place-items:center;min-width:42px;min-height:56px;border:1px solid #d4e2cd;border-radius:11px;background:#f5f8f0;padding:5px}.number-stop b{font-size:23px}.number-stop small{font-size:12px}.number-stop.visited{background:#e0eddc}.number-stop.here{background:#ffdf77;border:2px solid #ba8f13}.helper-caption{font-size:17px;line-height:1.6;color:#36583e}.math-blocks{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,1fr);gap:15px;margin:20px 0}.block-zone{border:1px solid #bfd2bd;border-radius:17px;padding:14px;min-height:160px;background:#f7faf3}.block-zone h3{font-size:16px;margin:0 0 12px}.rod-tray{display:flex;flex-wrap:wrap;align-items:start;gap:7px}.ten-rod{display:grid;grid-template-rows:repeat(10,1fr);gap:2px;width:17px;height:145px;background:#327452;border:2px solid #327452;border-radius:4px}.ten-rod i{background:#a9d1b1}.one-tray{display:grid;grid-template-columns:repeat(5,18px);gap:5px}.one-block{height:18px;width:18px;background:#e5b547;border:1px solid #97752a;border-radius:3px}.one-block.added{outline:3px solid #a16803;outline-offset:2px}.block-count{font-size:16px;margin-top:12px;font-weight:700}.math-total{font-size:21px;font-weight:800;text-align:center;padding:12px;border-radius:13px;background:#eef5e7}.bundle-instruction{min-height:54px;font-size:19px;line-height:1.6}.bundle-instruction b{color:#245c3a}.multiply-groups{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.multiply-group{border:2px solid #c1d5bd;border-radius:16px;padding:10px;background:#f3f8ef;min-width:68px}.multiply-group.active{background:#fff0be;border-color:#d2a136}.multiply-group b{display:block;font-size:14px;margin-bottom:8px}.counter-grid{display:grid;grid-template-columns:repeat(5,11px);gap:5px}.counter-dot{width:11px;height:11px;border-radius:50%;background:#327452}.repeated-sum{font-size:22px;line-height:1.7;overflow-wrap:anywhere}.math-error{padding:14px;background:#fff2df;border:1px solid #d9b381;border-radius:14px;line-height:1.6;margin:16px 0}.math-review{margin-top:22px}.math-review summary{font-size:17px;font-weight:700;cursor:pointer}.round-record{display:flex;gap:12px;justify-content:space-between;align-items:center;border-bottom:1px solid #dce5d7;padding:13px 0;font-size:15px}.round-record span{display:block;color:#657968;font-size:14px}.math-result{max-width:740px;margin:30px auto;text-align:center;background:#fff;border:1px solid #d2dfd3;border-radius:28px;padding:32px 24px}.math-result h1{font-size:35px}.math-result .result-star{font-size:58px;color:#bc8b08}.math-result p{font-size:18px;line-height:1.7}.math-result-counts{display:flex;justify-content:center;gap:35px;margin:25px 0}.math-result-counts strong{font-size:40px;display:block}.math-result-counts span{font-size:15px}.result-question-list{text-align:left;margin:20px 0}.result-question-list div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #e0e8dc;padding:9px;font-size:16px}.result-question-list small{font-size:14px;color:#657968}.math-parent-note{font-size:15px;line-height:1.8;padding:20px;background:#eff5e8;border-radius:18px;margin-top:20px}.math-parent-note summary{cursor:pointer;font-weight:800}.math-main [hidden]{display:none!important}.math-main button:disabled{cursor:default;opacity:.55}.math-loading{text-align:center;padding:50px 16px;color:#416447}.math-save-note{font-size:14px;line-height:1.6;color:#62765f;margin:12px 0 0}.math-busy{pointer-events:none}.math-main .button{min-height:46px}#custom-time[hidden]{display:none!important}
@media(max-width:800px){.math-workspace{grid-template-columns:minmax(0,1fr)}.math-answer-card{position:static;max-width:none}.math-keypad{grid-template-columns:repeat(6,1fr)}.math-keypad button{min-height:50px}.math-blocks{grid-template-columns:1fr 1fr}.math-question{padding:20px}.math-heading img{width:72px;height:72px}.math-work-top{align-items:start}.math-welcome{flex-wrap:wrap}.math-equation{font-size:52px}.math-answer-card input{font-size:36px;min-height:60px}}
@media(max-width:560px){.math-topics{grid-template-columns:1fr}.math-topic:nth-child(5){grid-column:auto}.math-heading{margin-top:20px}.math-heading h1{font-size:30px}.math-heading img{display:none}.math-topic{padding:20px}.math-keypad{grid-template-columns:repeat(3,1fr)}.math-keypad button{min-height:48px}.math-blocks{gap:8px}.block-zone{padding:10px;min-width:0}.one-tray{grid-template-columns:repeat(5,14px);gap:4px}.one-block{width:14px;height:14px}.ten-rod{width:13px;height:125px}.sequence-track{gap:5px}.sequence-track span{font-size:25px;min-height:60px}.math-equation{font-size:46px}.question-meta{flex-wrap:wrap}.math-work-top .button{font-size:14px;padding:10px}.round-record{flex-wrap:wrap}.math-result-counts{gap:24px}.math-result h1{font-size:29px}}
.answer-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:18px}.math-answer-pad{display:block;width:100%;height:260px;box-sizing:border-box;border:3px solid #8eb19a;border-radius:18px;background-color:#fff;background-image:linear-gradient(#edf4e9 1px,transparent 1px),linear-gradient(90deg,#edf4e9 1px,transparent 1px);background-size:32px 32px;margin:14px 0 10px;touch-action:none;cursor:crosshair}.pad-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pad-tools .button{font-size:14px;padding:8px}.answer-compare{text-align:center;background:#fff;border:1px solid #d4dfcd;border-radius:16px;padding:13px;margin-top:12px}.answer-compare span{display:block;font-size:14px;color:#617565}.answer-compare strong,.answer-correct{display:block;font-size:64px;line-height:1.2;color:#24533b}.answer-compare p{margin:5px 0 12px;font-weight:700}.answer-compare>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.answer-correct{text-align:center;background:#fff;border-radius:16px;padding:18px;margin-top:14px}.math-submit{margin-top:12px;width:100%}
@media(max-width:800px){.math-answer-pad{height:320px}}
@media(max-width:560px){.math-answer-pad{height:270px}}
@media(prefers-reduced-motion:no-preference){.one-block.added{animation:math-pop .25s ease-out}@keyframes math-pop{from{transform:scale(.6)}to{transform:scale(1)}}}
.math-numberline{flex-wrap:nowrap;overflow-x:auto;padding:4px 2px 12px}.math-numberline.backwards{flex-direction:row-reverse;justify-content:flex-start}.math-numberline .number-stop{flex-shrink:0}
