.mathsLab{--ml-ink:#46435b;--ml-plum:#706087;--ml-teal:#4f807d;color:var(--ml-ink);max-width:1400px;margin:auto}.mathsLab *{box-sizing:border-box}.mathsLab button,.mathsLab input,.mathsLab select{min-height:48px;max-width:100%}.mathsLab button:focus-visible{outline:3px solid #7b609e;outline-offset:3px}.mathsLab button{white-space:normal}.mlHero{display:grid;grid-template-columns:1fr 1fr;padding:36px 44px;background:linear-gradient(125deg,#eef5ee,#f2eaf7 65%,#fff1df);border:1px solid #dfdcd9;border-radius:30px;overflow:hidden;gap:20px}.mlHero h3{font-size:clamp(32px,4vw,54px);line-height:1.05;margin:12px 0 18px;letter-spacing:-1.5px}.mlHero p{font-size:17px;line-height:1.6}.mlHeroArt{position:relative;min-height:215px;display:flex;align-items:center;justify-content:center}.mlHeroArt>span{position:absolute;display:grid;place-items:center;box-shadow:0 14px 30px #6d627422;border:2px solid #ffffffac}.mlHeroGrid{width:140px;height:150px;border-radius:24px;background:#c4dfcc;color:#5a8570;font-size:110px;transform:rotate(-12deg);left:8%}.mlHeroStar{width:96px;height:96px;border-radius:50%;background:#f7ddb3;color:#b18c4b;font-size:70px;right:10%;top:15px;transform:rotate(15deg)}.mlHeroHalf{width:125px;height:125px;border-radius:50%;background:#e2d4ee;color:#9276ac;font-size:96px;right:24%;bottom:23px}.mlHeroArt small{position:absolute;bottom:-4px;font-size:10px;font-weight:800;letter-spacing:2px}.mlStations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}.mlStations button{background:#fffcf8;border:1px solid #e3ddd7;border-radius:20px;text-align:left;padding:18px;display:grid;gap:6px;color:var(--ml-ink)}.mlStations button[aria-pressed=true]{background:#eee7f4;border:2px solid #9f89b5;padding:17px;box-shadow:0 6px 16px #74608012}.mlStations button>span{font-size:30px;line-height:1.2;color:#7e729b}.mlStations strong{font-size:16px}.mlStations small{line-height:1.5;color:#706b79}.mlToolbar,.mlSetup,.mlActions,.mlPager,.mlBundles{display:flex;flex-wrap:wrap;gap:10px;align-items:end}.mlToolbar{margin:18px 0}.mlWorkbench{border:1px solid #e1ddd6;border-radius:26px;background:#fffcf6;padding:28px;min-width:0}.mlIntro h3{font-size:27px;margin:8px 0}.mlIntro p{line-height:1.65;max-width:720px}.mlSetup{padding:16px 0 24px}.mlSetup label,.mlFraction label{display:grid;gap:8px;font-size:13px;font-weight:700;min-width:0}.mlSetup input{width:140px}.mlSetup select{width:260px}.mathsLab input,.mathsLab select,.mathsLab textarea{border:1px solid #d5cddc;border-radius:12px;padding:12px;background:#fff;color:var(--ml-ink);font:inherit}.mlValue{display:grid;justify-items:center;text-align:center;gap:8px;margin-bottom:22px;padding:20px;background:#edf3ed;border-radius:20px}.mlValue>span,.mlKnown small{font-size:10px;font-weight:800;letter-spacing:1.3px}.mlValue>strong{font-size:52px;line-height:1}.mlValue small{font-size:13px}.mlBlockBank,.mlColumns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.mlBlockBank{margin-bottom:16px}.mlBankItem{padding:14px 8px;border:1px solid #dfd8ca;border-radius:18px;background:#fffaf0;display:grid;justify-items:center;gap:7px;color:var(--ml-ink);touch-action:none;user-select:none;-webkit-user-select:none}.mlBankItem small{color:#7c736a;font-size:10px}.mlBlock{width:64px;height:64px;display:grid;place-items:center;border:2px solid #759a83;border-radius:8px;background:repeating-linear-gradient(0deg,transparent 0 10px,#72988045 10px 11px),repeating-linear-gradient(90deg,#bbd9c6 0 10px,#72988045 10px 11px);color:#284c3f;font-weight:800;font-size:12px;box-shadow:3px 4px 0 #759a8330}.mlB0{background-color:#d9c2e9;border-color:#9b81b1;color:#5c4270}.mlB2{width:18px;background:#f4d99f;border-color:#c5a15e;color:#6c5228;writing-mode:vertical-rl}.mlB3{width:22px;height:22px;background:#e5c1c5;border-color:#bf9098;color:#744c56}.mlMini{width:30px;height:30px;font-size:8px}.mlB2.mlMini{width:10px;height:30px;font-size:7px}.mlB3.mlMini{width:14px;height:14px;font-size:7px}.mlColumn{padding:16px 10px;border:1px dashed #cbbfd3;border-radius:18px;background:#f5eff8;text-align:center;min-width:0}.mlColumn:nth-child(2){background:#edf5ee;border-color:#b4c8ba}.mlColumn:nth-child(3){background:#fff5df;border-color:#dcc9a2}.mlColumn:nth-child(4){background:#fcf0f0;border-color:#dbc0c5}.mlColumn h4{margin:0 0 9px;font-size:15px}.mlColumn>b{font-size:12px}.mlBlockPile{min-height:92px;display:flex;flex-wrap:wrap;align-content:center;align-items:center;justify-content:center;gap:6px;padding:14px 0}.mlMore{font-size:11px;flex-basis:100%}.mlColumn p{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.mlColumnButtons{display:grid;gap:8px}.mlColumnButtons button{font-size:11px;padding:9px 6px}.mlInsight{padding:20px;border-radius:18px;background:#edf1ec;line-height:1.7;margin:22px 0 0;overflow-wrap:anywhere}.mlInsight>b{font-size:22px}.mlInsight small{display:block}.mlKnown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}.mlKnown>div{display:grid;gap:8px;padding:20px;border:1px solid #e0d8e8;background:#f2edf6;border-radius:16px;text-align:center}.mlKnown b{font-size:30px}.mlTray{padding:20px;border:1px dashed #b3c7b5;background:#f0f5ec;border-radius:20px;margin-bottom:20px;display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}.mlTray p{font-size:13px;margin-bottom:0}.mlBundles button{touch-action:none;user-select:none;min-width:70px}.mlBundles [aria-pressed=true]{background:#d9e7dc;border:2px solid #6a8e76}.mlGroupGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.mlGroup{display:grid;justify-items:center;align-content:start;gap:9px;background:#fff8e9;border:1px solid #e4d9bf;border-radius:22px;padding:18px;min-width:0;text-align:center}.mlFriend{font-size:38px}.mlGroup h4{margin:0;font-size:14px}.mlGroup>strong{font-size:30px}.mlTokens{min-height:38px;font-size:18px;color:#b08a4e;overflow-wrap:anywhere;max-width:100%;display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.mlTokens span{font-size:11px;background:#f3e6cd;padding:4px;border-radius:6px}.mlGroup button{width:100%;font-size:12px;padding:10px 6px}.mlPager{justify-content:center;align-items:center;margin:16px 0;font-size:12px}.mlActions{margin-top:20px}.mlFractionPair{display:grid;grid-template-columns:1fr 1fr;gap:28px}.mlFraction{min-width:0;padding:20px;background:#f4eef8;border:1px solid #ddd1e7;border-radius:20px;text-align:center}.mlFraction:nth-child(2){background:#edf4ef;border-color:#c6d9cd}.mlFraction h4{margin:0 0 16px}.mlFraction label{text-align:left}.mlFractionStrip{display:grid;grid-template-columns:repeat(var(--ml-parts),minmax(0,1fr));height:108px;gap:0;margin:24px 0;overflow:hidden;border-radius:10px;border:2px solid #aa91bf}.mlFractionStrip button{min-height:0;min-width:0;padding:0;border:1px solid #aa91bf;background:#fffcf8;border-radius:0;color:#806696;font-size:10px}.mlFractionStrip button[aria-pressed=true]{background:#bfa8d4}.mlFraction:nth-child(2) .mlFractionStrip,.mlFraction:nth-child(2) .mlFractionStrip button{border-color:#7caa91}.mlFraction:nth-child(2) .mlFractionStrip button[aria-pressed=true]{background:#9ac4ac;color:#426c54}.mlFractionStrip button:focus-visible{outline-offset:-5px}.mlFractionNumber{display:inline-grid;font-size:30px}.mlFractionNumber span:first-child{border-bottom:2px solid currentColor;padding:0 8px 4px}.mlFractionNumber span+span{padding-top:4px}.mlFraction p{font-size:13px}.mlQuestion{background:#f1edf7;border-radius:20px;padding:22px}.mlQuestion h4{font-size:20px;line-height:1.6;margin:0 0 12px}.mlQuestion p{line-height:1.6}.mlScene{font-size:clamp(18px,3vw,32px);padding:14px 0;overflow-wrap:anywhere}.mlDetailCards{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.mlDetailCards button{touch-action:none;user-select:none;flex:1;min-width:140px;background:#fff2d8}.mlDetailCards [aria-pressed=true]{border:2px solid #a38b60;background:#f5dfb2}.mlQuestionSlots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.mlSlot{display:grid;gap:12px;padding:22px 14px;border:2px dashed #b9cbbd;background:#f0f5ef;border-radius:20px;color:var(--ml-ink);min-width:0}.mlSlot small{font-size:10px;letter-spacing:1px}.mlSlot strong{font-size:15px}.mlSlot>span{padding:12px;background:#fffaf0;border-radius:12px;font-size:14px;min-height:64px;display:grid;place-items:center}.mlFind{background:#f5eff9;border-color:#c3acd5}.mlNotes{display:grid;gap:10px;margin:22px 0;font-size:15px;font-weight:700}.mlNotes textarea{width:100%;resize:vertical;min-height:90px}.mlDragging{opacity:.55;outline:3px solid #a18ab5}.mlDropOver{outline:4px solid #9b7fba;outline-offset:3px}.qdLabStart{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border:1px solid #c4d6c7;border-radius:22px;background:linear-gradient(120deg,#edf5ed,#f2edf8);margin:24px 0}.qdLabStart h3{margin:5px 0;font-size:24px}.qdLabStart p{line-height:1.6;margin:8px 0}.qdLabStart>span{font-size:42px;color:#81739a}.qdLabLink{margin:18px 0 0}.mlStatus{min-height:1.5em}
@media(max-width:1000px){.mlWorkbench{padding:20px}.mlHero{padding:28px}.mlStations{grid-template-columns:repeat(2,minmax(0,1fr))}.mlColumns{grid-template-columns:repeat(2,minmax(0,1fr))}.mlGroupGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.mlFractionPair{grid-template-columns:1fr}.mlFractionStrip{height:100px}.mlQuestionSlots{grid-template-columns:1fr}.mlHeroGrid{width:110px;height:120px;font-size:85px;left:0}.mlHeroStar{right:0}.mlHeroHalf{right:12%;width:105px;height:105px;font-size:80px}}
@media(max-width:540px){.mlHero{grid-template-columns:1fr;padding:24px}.mlHeroArt{min-height:150px;margin:0 20px}.mlHeroGrid{left:10%;width:100px;height:105px;font-size:80px}.mlHeroStar{right:10%;width:75px;height:75px;font-size:50px;top:0}.mlHeroHalf{right:28%;bottom:10px;width:95px;height:95px;font-size:72px}.mlHeroArt small{bottom:-10px}.mlStations{gap:8px}.mlStations button{padding:12px}.mlStations button[aria-pressed=true]{padding:11px}.mlStations strong{font-size:13px}.mlStations small{font-size:11px}.mlWorkbench{padding:16px;border-radius:20px}.mlIntro h3{font-size:23px}.mlBlockBank{gap:6px}.mlBankItem{padding:12px 3px}.mlBankItem strong{font-size:11px}.mlBlock:not(.mlMini){max-width:48px;max-height:48px;font-size:10px}.mlColumns{gap:8px}.mlColumn{padding:14px 8px}.mlKnown{gap:6px}.mlKnown>div{padding:14px 6px}.mlKnown small{font-size:8px;letter-spacing:.5px}.mlKnown b{font-size:23px}.mlGroupGrid{gap:8px}.mlGroup{padding:14px 8px}.mlSetup{align-items:stretch}.mlSetup label{width:100%}.mlSetup input,.mlSetup select{width:100%}.mlFraction{padding:16px 12px}.mlFractionStrip{height:110px}.mlDetailCards{display:grid;grid-template-columns:1fr}.qdLabStart{flex-wrap:wrap;padding:20px}.qdLabStart>span{display:none}.mlToolbar button{font-size:12px}.mlQuestion{padding:16px}.mlQuestion h4{font-size:18px}}
