.tool-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.tool-fields label{margin:8px 0;font-size:.88rem}.length-table input{font-size:1.4rem;text-align:center;padding:8px 0;margin:0;border:1px solid #afc6e2;border-radius:6px;background:#fff;min-width:0}.length-table input.cell-error{border:2px solid #bd3a61;background:#fff0f3}.conversion-answer{max-width:220px}.math-listen{font-size:.85rem;min-height:44px;margin:12px 0}.tool-feedback{background:#fff3cf;border-radius:10px;padding:12px;line-height:1.7;overflow-wrap:anywhere}.tool-feedback:empty{display:none}.math-question-tools{background:#f3f7ff;border:1px solid #c5d8ee;border-radius:16px;padding:16px;margin:20px 0}.math-question-tools>summary,.course-manipulation>summary{min-height:44px;padding:8px 0;font-size:1rem}.math-answer-format{font-size:.88rem;border-left:3px solid #e1b945;padding-left:12px}.math-question-tools .math-lab{padding:16px}.math-support-state{font-size:.8rem;color:#69546e}.operation-grid,.place-value,.proportion-table{width:100%;table-layout:fixed;border-collapse:collapse;background:white}.operation-grid th,.operation-grid td,.place-value td,.place-value th,.proportion-table th,.proportion-table td{border:1px solid #cad6e6;padding:8px 3px;text-align:center;font-size:.85rem;overflow-wrap:anywhere}.operation-grid th:first-child{width:86px}.operation-grid input,.place-value input,.proportion-table input{margin:0;padding:6px 0;text-align:center;width:100%;min-width:0}.operation-grid caption{padding:12px;font-weight:700}.operation-grid tr:last-child{border-top:3px solid #54227c}.operation-output{display:block;padding:16px;background:#fff3bc;border-radius:12px;font:700 1.3rem/1.5 ui-monospace,monospace}.time-buckets{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.time-buckets[hidden]{display:none}.minute-bucket,.second-remainder{padding:12px;background:#fff;border:2px solid #aac3e2;border-radius:14px;text-align:center}.second-remainder{border-color:#e0af45;background:#fff3c5}.fraction-band{display:grid;grid-template-columns:repeat(var(--parts),minmax(0,1fr));gap:2px;border:2px solid #54227c;padding:3px;background:#fff;margin:12px 0}.fraction-band button{border-radius:0;padding:0;min-width:0;min-height:48px;background:#f2ecf8;border:1px solid #b998ce}.fraction-band [aria-pressed=true]{background:#8950b0;color:white}.square-grid{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:2px;border:4px solid #54227c;background:#d4e3f0;padding:3px;max-width:400px}.square-grid span{aspect-ratio:1;background:#91badd;min-width:0}.layer-tabs,.dice-outcomes{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.layer-tabs [aria-pressed=true],.dice-outcomes [aria-pressed=true]{background:#54227c;color:#fff}.visual-math-drawing svg{width:100%;height:auto;background:#fff;border-radius:12px}.visual-math-drawing svg text{font:17px system-ui;fill:#35174f}.robot-track{display:flex;gap:2px;overflow:auto;background:#fff;padding:12px}.robot-track span{flex:0 0 27px;min-height:36px;border:1px solid #c5b2dd;text-align:center;color:#54227c}.equation-balance{display:flex;gap:12px;align-items:center;justify-content:center;padding:22px;border-bottom:4px solid #54227c;background:#fff}.equation-balance span{padding:12px;background:#f0e8f7;border-radius:12px;font-size:1.5rem}.math-mindmap{margin:20px 0;padding:18px;border-radius:18px;background:#fff6d4}.math-mindmap figcaption{font-weight:800;margin-bottom:12px}.math-mindmap ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:0;margin:0;list-style:none}.math-mindmap li{background:#fff;border:1px solid #e8dcb6;border-radius:12px;padding:12px;font-size:.9rem;line-height:1.6}.math-mindmap b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#54227c;color:white;margin-bottom:8px}.course-manipulation{border:1px solid #ccb6df;background:#faf5ff;border-radius:12px;padding:16px}.adventure-page>.adaptive-math-course{order:6}
@media(max-width:600px){.tool-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.math-question-tools{padding:10px}.math-question-tools .math-lab{padding:10px}.operation-grid th:first-child{width:54px;font-size:.62rem}.operation-grid td,.operation-grid th{padding:4px 1px;font-size:.7rem}.operation-grid input{font-size:16px;padding:6px 0}.place-value th{font-size:.6rem}.math-mindmap ol{grid-template-columns:repeat(2,minmax(0,1fr))}.math-mindmap{padding:12px}.math-mindmap li{padding:10px;font-size:.82rem}.math-lab{min-width:0}.fraction-band button{min-height:44px}.equation-balance{gap:6px;padding:12px}.equation-balance span{padding:8px}.length-table-scroll .length-table{min-width:0}}
.model-columns td{font:700 1.3rem/1.5 ui-monospace,monospace;white-space:pre}.model-columns .model-active{background:#fff0aa;color:#54227c;outline:2px solid #ddb341}.model-columns tr:last-child{background:#f8f1ff}.adaptive-math-course{min-width:0}.math-tool-target{min-width:0;max-width:100%;overflow-wrap:anywhere}
.student-division{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;background:white;border-radius:12px;padding:16px}.student-division>div:last-child{border-left:3px solid #54227c;padding-left:14px}.student-division textarea{font:17px/1.8 ui-monospace,monospace;white-space:pre;min-height:190px}.student-division label{font-size:.85rem}.math-mindmap li:not(:last-child){position:relative}.math-mindmap li:not(:last-child)::after{content:'→';position:absolute;right:-10px;top:45%;z-index:1;color:#54227c;font-weight:800}
.square-route svg{display:block;width:100%;max-width:300px;height:auto;background:white;border:1px solid #d8cbe5;border-radius:12px}
.angle-circle-tool input[type=range]{accent-color:#54227c;padding:10px 0;min-height:44px}.angle-circle-tool label{font-size:.9rem}
