:root{--teal:#146b70;--ivory:#f3ede0;--amber:#e8a451;--ink:#263449}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#fcfbf7;font:17px/1.65 system-ui,-apple-system,'Segoe UI',sans-serif}a{color:var(--teal);text-underline-offset:4px}a:hover{color:#0a4246}header{border-bottom:1px solid #ddd9ce;background:#fff}header>div{max-width:1240px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 32px}.logo{text-decoration:none;font-weight:850;letter-spacing:2px;font-size:23px}.logo .legacy-letter-icon{background:var(--teal);color:#fff;padding:6px 10px;margin-right:10px;border-radius:8px}nav{display:flex;gap:25px;flex-wrap:wrap}nav a{text-decoration:none;font-size:15px;font-weight:650}main{max-width:1180px;padding:28px 32px 80px;margin:auto}h1,h2,h3{line-height:1.15;letter-spacing:-.035em}h1{font-size:clamp(2.2rem,5vw,4.5rem);margin:16px 0 24px;max-width:850px}h2{font-size:clamp(1.6rem,3vw,2.3rem);margin-top:0}h3{font-size:1.25rem}p{margin:0 0 20px}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:800;color:var(--teal)}.hero{display:grid;grid-template-columns:1.25fr 1fr;gap:55px;align-items:center;padding:65px 0}.hero p{max-width:560px}.hero-art{background:var(--ivory);border-radius:40% 40% 20% 30%;padding:35px;transform:rotate(-3deg)}svg{width:100%;height:auto;max-height:330px}.actions{display:flex;gap:14px;flex-wrap:wrap}.button,button{display:inline-block;border:1px solid var(--teal);border-radius:8px;background:var(--teal);color:#fff;padding:13px 21px;font:inherit;font-weight:650;text-decoration:none;cursor:pointer}.secondary{background:transparent;color:var(--teal)}button:hover,.button:hover{background:#10565a;color:white}button:disabled{opacity:.55;cursor:default}section{margin:54px 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{border:1px solid #d9ded9;border-radius:14px;background:white;padding:25px;display:block;text-decoration:none;color:var(--ink)}.card:hover{border-color:var(--teal);box-shadow:0 6px 20px #2634490b}.card .number{font-size:24px;color:var(--teal);background:var(--ivory);border-radius:10px;padding:8px 12px;display:inline-block}.card p{font-size:15px}.band{background:var(--ivory);padding:36px;border-radius:20px}.crumb{font-size:14px;margin-bottom:30px}.prose{max-width:780px}.prose h2{margin-top:42px}.prose li{margin-bottom:12px}.prose h1{font-size:clamp(2.2rem,5vw,3.5rem)}.lead{font-size:21px;color:#4e5b69}footer{background:var(--ink);color:#fff;padding:45px 32px}footer>div{max-width:1116px;margin:auto}footer a{color:#fff}footer nav{margin:22px 0}label{display:block;font-weight:650;margin:14px 0 5px}select,input{font:inherit;max-width:100%;min-height:48px;border:1px solid #879794;border-radius:6px;padding:10px;background:#fff;color:var(--ink)}input[type=checkbox]{min-height:auto;margin-right:10px}fieldset{border:1px solid #b8c7c4;border-radius:8px}fieldset label{font-size:15px}#practice{background:#fff;border:1px solid #cddbd7;padding:30px;border-radius:16px;margin-top:25px}#practice button{margin:10px 10px 10px 0}#practice form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}details{border-bottom:1px solid #d8dedb;padding:18px 0}summary{cursor:pointer;font-weight:650}details p{margin-top:15px}table{border-collapse:collapse;width:100%;margin:20px 0}td,th{padding:8px;border:1px solid #cddbd7;text-align:center}progress{width:100%;accent-color:var(--teal)}:focus-visible{outline:3px solid #a4550d;outline-offset:4px}.skip{position:absolute;top:-100px}.skip:focus{top:5px;background:#fff;padding:10px;z-index:10}.small{font-size:14px}img{max-width:100%}code{overflow-wrap:anywhere}#data-status{min-height:30px}@media(max-width:800px){header>div{align-items:flex-start;flex-direction:column;padding:20px}.hero{grid-template-columns:1fr;gap:30px;padding:30px 0}.hero-art{max-width:460px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}main{padding:24px 20px 50px}nav{gap:16px}.band{padding:24px}}@media(max-width:480px){.grid{grid-template-columns:1fr}h1{font-size:2.55rem}#practice{padding:18px}.hero-art{padding:20px}nav{font-size:14px;gap:12px}.button,button{padding:12px 16px}#practice form{display:block}#answer{width:100%}th{font-size:12px;padding:5px}footer{padding:32px 20px}}
/* Practice entrance visual refresh; reading pages retain their original layout. */
:root{--violet:#51418a;--lavender:#f0edfb;--blue:#456bb2}body{background:#fcfbff}.logo{color:var(--violet)}.logo .legacy-letter-icon{background:var(--violet)}nav a{min-height:44px;display:inline-flex;align-items:center}.practice-hero{grid-template-columns:1fr 1fr;gap:48px;padding:32px 0 20px}.practice-hero h1{font-size:clamp(2.4rem,4.1vw,3.65rem);letter-spacing:-.045em}.practice-hero h1 em{font-style:normal;color:var(--violet);background:linear-gradient(transparent 77%,#e9e0fd 77%)}.practice-hero .lead{font-size:18px;line-height:1.65}.hero-note{font-size:13px;margin-top:17px}.learning-friends{display:flex;align-items:center;gap:14px;font-size:13px;line-height:1.5;margin-top:18px}.learning-friends svg{width:126px;flex-shrink:0}.demo-stage{position:relative;min-width:0;padding:20px 12px;background:var(--lavender);border-radius:35px 55px 30px 55px}.demo-card{position:relative;background:#fff;border:1px solid #d7d0ec;border-radius:22px;padding:25px;margin:0;box-shadow:0 10px 0 #dcd5ef,0 20px 38px #51418a12}.demo-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--violet);font-size:10px;letter-spacing:.09em;font-weight:800}.demo-count{background:var(--lavender);padding:5px 9px;border-radius:20px;white-space:nowrap}.demo-card h2{font-size:25px;letter-spacing:-.035em;margin:16px 0 7px}.demo-card .demo-instruction{font-size:14px;margin:0;color:#596073}.demo-models{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:10px;align-items:center;margin:21px 0 10px}.fraction-model{min-width:0;text-align:center}.fraction-model svg{display:block;margin-top:14px}.fraction-name{display:inline-flex;flex-direction:column;font-size:30px;font-weight:750;line-height:1.2;min-width:34px}.fraction-name>span:first-child{border-bottom:2px solid #263449;padding-bottom:3px;margin-bottom:3px}.model-question{font-size:30px;font-weight:750;color:var(--violet)}.demo-options{border:0;display:flex;justify-content:center;gap:12px;padding:0;margin:0 0 15px;min-width:0}.demo-options legend{text-align:center;font-size:12px;font-weight:650;width:100%;margin-bottom:10px}.demo-options label{position:relative;margin:0;flex:1;max-width:100px}.demo-options input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.demo-options label>span:not(.sr-only){display:block;text-align:center;font-size:26px;line-height:1.2;padding:9px;background:#f6f4fb;border:2px solid #d8d1e8;border-radius:10px;color:#51418a}.demo-options input:checked+span{border-color:var(--violet);background:#e5def7;box-shadow:inset 0 0 0 1px var(--violet)}.demo-options input:focus-visible+span{outline:3px solid #a4550d;outline-offset:3px}.demo-check{width:100%;min-height:50px;box-shadow:0 4px 0 #0d4c50}.demo-card #demo-feedback{font-size:13px;line-height:1.5;margin:15px 0 8px;min-height:40px}.demo-card #demo-next{font-size:13px;padding:9px 12px;min-height:44px;margin-bottom:8px;width:100%}.demo-full{display:block;font-size:13px;text-align:center;padding:8px 0;min-height:44px}.demo-sticker{position:absolute;z-index:1;right:22px;top:0;background:#ffe2ae;color:#69420f;padding:3px 13px;border-radius:8px;transform:rotate(4deg);font-size:13px;font-weight:750}.demo-spark{position:absolute;pointer-events:none;font-size:34px;font-weight:800;color:var(--violet)}.spark-one{right:-8px;top:47px;transform:rotate(12deg)}.spark-two{left:-8px;bottom:24px;color:#a25a16}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.practice-hero+section{margin-top:32px}.practice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.practice-card{display:flex;flex-direction:column;align-items:flex-start;padding:20px;border:1px solid #dcd5ea;background:#fff;border-radius:16px;text-decoration:none;color:var(--ink);box-shadow:0 4px 0 #efebf6;transition:transform .15s,border-color .15s}.practice-card:hover{transform:translateY(-3px);border-color:#8571b7;color:var(--ink)}.practice-card svg{width:82px;height:66px;background:#f5f2fc;border-radius:12px;padding:5px;margin-bottom:14px;fill:#51418a;font:28px system-ui;font-weight:750}.practice-card h3{font-size:18px;line-height:1.25;margin:0 0 10px}.practice-card p{font-size:14px;line-height:1.55;margin-bottom:17px}.practice-link{margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;background:#e4f2ee;border-radius:8px;padding:10px 12px;color:#10565a;font-size:13px;font-weight:750;min-height:44px}.learning-steps{background:#f0edfb;border:1px solid #e0d9ef}.steps-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}.step-number{display:inline-grid;place-items:center;background:#fff;color:var(--violet);border-radius:12px;width:44px;height:44px;font-weight:800}.steps-grid h3{font-size:18px;line-height:1.3;margin:16px 0 8px}.steps-grid p{font-size:14px;line-height:1.6;margin:0}.card{border-color:#ded8eb}.card .number{background:#f0edfb;color:var(--violet)}.button,button{min-height:48px}.prose .button{margin-top:8px}
@media(max-width:1024px){.practice-hero{gap:28px}.demo-card{padding:20px}.practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.practice-hero{grid-template-columns:1fr;padding:12px 0 8px;gap:24px}.hero-copy{max-width:600px}.practice-hero h1{font-size:clamp(2.1rem,6vw,3.2rem);max-width:620px}.demo-stage{width:100%;max-width:540px;justify-self:center}.learning-friends{display:none}.hero-note{margin-bottom:0}.steps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-hero+section{margin-top:30px}}
@media(max-width:480px){.practice-hero h1{font-size:2.15rem;margin:10px 0 15px}.practice-hero .lead{font-size:16px;margin-bottom:18px}.practice-hero .eyebrow{font-size:10px;letter-spacing:.1em}.practice-hero .actions{gap:10px}.practice-hero .button{font-size:14px;padding:11px 13px;min-height:46px}.demo-stage{padding:16px 8px;border-radius:24px}.demo-card{padding:16px;border-radius:16px}.demo-card h2{font-size:21px}.demo-models{gap:6px;margin-top:15px}.fraction-name{font-size:27px}.demo-sticker{font-size:11px;top:-2px}.demo-spark{display:none}.demo-card #demo-feedback{min-height:40px}.practice-grid{gap:12px}.practice-card{padding:14px}.practice-card svg{width:65px;height:55px}.practice-card h3{font-size:16px}.practice-card p{font-size:13px}.practice-link{font-size:12px;padding:9px 8px;gap:5px}.steps-grid{gap:24px 16px}.steps-grid h3{font-size:16px}.learning-steps{padding:22px}.logo{font-size:21px}header>div{gap:8px;padding:16px 20px}header nav{gap:4px 15px}header nav a{font-size:13px;min-height:36px}main{padding-top:18px}}
@media(max-width:350px){.practice-grid{grid-template-columns:1fr}.practice-card{display:grid;grid-template-columns:65px minmax(0,1fr);column-gap:14px}.practice-card svg{grid-row:1/3;margin:0}.practice-card p{margin-bottom:12px}.practice-link{grid-column:1/-1}.demo-top{font-size:9px}.demo-card h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.practice-card{transition:none}.practice-card:hover{transform:none}}
/* Math Lab: bright working paper, quiet color and original mathematical models. */
.math-lab{margin:4px 0 32px;scroll-margin-top:16px}.lab-intro{display:flex;align-items:center;justify-content:space-between;gap:20px}.lab-intro h1{font-size:clamp(2.6rem,5vw,4rem);margin:6px 0 10px;color:#253b66}.lab-intro h1 span{color:#e1ad36}.lab-intro p{margin-bottom:14px}.lab-note{font:italic 18px/1.5 Georgia,serif;background:#fff6cf;padding:14px 22px;transform:rotate(3deg);border-radius:3px 16px 5px 12px;border-bottom:2px solid #e6d487}.lab-panel{padding:28px;border:2px solid #a9dfe3;border-radius:24px;background:linear-gradient(150deg,#fff 65%,#f0fafa);box-shadow:0 7px 0 #e5f2f5,0 18px 36px #3b65680b}.lab-toolbar{display:flex;align-items:center;gap:20px;flex-wrap:wrap;border-bottom:1px solid #dfebed;padding-bottom:16px}.lab-toolbar h2{flex:1;min-width:160px;font-size:26px;margin:0;color:#253b66}.lab-toolbar label{margin:0;font-size:12px}.lab-toolbar select{display:block;min-height:44px;margin-top:4px;padding:7px 12px;border-color:#bad9df;border-radius:12px;font-size:15px}.lab-curriculum{font-size:12px;color:#566b77;margin:12px 0 16px}.lab-progress{font-size:13px;font-weight:700;margin-bottom:5px;color:#527079}.lab-question{font-size:clamp(1.3rem,2.4vw,1.8rem);line-height:1.4;margin:20px 0}.lab-question-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:30px}.lab-visual,.lab-answer{min-width:0}.lab-model{min-width:0;padding:12px 0}.lab-model p{font-size:25px;font-weight:750;margin-bottom:8px;color:#3a476e}.lab-bar{display:grid;gap:1px;border:1px solid #8f9fc5;background:#f7f5ff;min-height:42px;border-radius:7px;overflow:hidden;margin-bottom:6px}.lab-bar span,.lab-bar button{min-width:0;min-height:40px;border:0;border-right:1px solid #c5c4dd;padding:0;margin:0;border-radius:0;background:#f5f2ff}.lab-bar .shaded{background:linear-gradient(165deg,#b7a3ec,#8b72c7)}.lab-model:nth-child(even) .shaded{background:linear-gradient(165deg,#86e2d4,#39aaab)}.lab-bar button:hover{background:#b5e4e2}.lab-answer form>label{margin-top:0}.lab-answer input{width:100%;border:2px solid #c3d8e2;border-radius:12px}.lab-answer form>button{width:100%;margin-top:12px}.lab-check{background:#ffdf74;color:#3e381d;border-color:#edce65;box-shadow:0 3px 0 #e8c75c}.lab-check:hover{background:#f7d25d;color:#3e381d}.lab-symbols{display:flex;gap:10px;margin-top:12px}.lab-symbols button{flex:1;font-size:25px;padding:4px 12px;min-height:48px;background:#eef8fa;border-color:#c0dfe3;color:#234d5e}.lab-note-paper{background:repeating-linear-gradient(#fff8db 0 27px,#eee4bd 28px,#fff8db 29px);border:1px solid #e7dca9;border-radius:4px 13px 6px 10px;padding:14px 18px;margin:16px 0;font-size:15px}.lab-explanation{background:#f3f0fc;border-radius:12px;padding:14px 18px;font-size:15px}.lab-answer>button{width:100%;margin-top:16px}.lab-answer [role=status]{margin:16px 0;font-size:14px}.lab-place-chart{display:flex;gap:4px}.lab-place-chart button{flex:1;min-width:0;white-space:pre-line;font-size:13px;padding:10px 2px;background:#e9f7fc;border-color:#b9dce8;color:#263449}.lab-hundred{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;max-width:240px;margin:18px 0}.lab-hundred span{aspect-ratio:1;background:#f2f0fa;border:1px solid #ccc4e3}.lab-hundred .shaded{background:#82cec8;border-color:#64aaa8}.lab-division{background:#f5f7fe;border:1px dashed #b8bfdf;border-radius:16px;padding:18px}.lab-division pre{font-size:26px;letter-spacing:3px;white-space:pre-wrap}.lab-division form input{width:100%}.lab-division form button{margin-top:12px}.lab-story{background:#eef9f5;border-radius:16px;padding:20px;font-size:16px}.lab-story label{font-size:14px}.lab-story input[type=checkbox]{width:22px;height:22px;vertical-align:middle}.lab-tools .practice-card[aria-current=true]{border:2px solid #44aaa6;background:#effbf8;box-shadow:0 4px 0 #bce7df}.lab-tools .practice-card{cursor:pointer}.lab-tools .practice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.lab-tools .small{margin-top:22px}.lab-tools .practice-link{background:transparent;padding:4px 0;color:#41677c}.lab-records{padding:26px;background:#f4f1fb;border-radius:20px}.lab-records h2{font-size:25px}.lab-records .actions{gap:8px}.lab-records button{font-size:14px}#lab-status{font-size:13px;margin:12px 0 0}#lab-work pre{overflow-wrap:anywhere;max-width:100%;white-space:pre-wrap}#lab-work progress{height:8px}.lab-tools .practice-card svg{transform:rotate(-3deg)}.math-lab~section{margin-top:38px}
@media(max-width:767px){.lab-panel{padding:20px}.lab-question-layout{grid-template-columns:1fr;gap:18px}.lab-toolbar{gap:12px}.lab-toolbar h2{flex-basis:100%;font-size:23px}.lab-note{font-size:15px;padding:10px 14px}.lab-tools .practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lab-visual{max-width:100%}.lab-model-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.lab-answer{padding-top:8px}.lab-question{font-size:21px}.lab-records{padding:20px}}
@media(max-width:480px){.lab-intro .eyebrow{font-size:9px;letter-spacing:.08em}.lab-intro h1{font-size:38px}.lab-intro>div>p:last-child{font-size:14px}.lab-note{display:none}.lab-panel{padding:16px;border-radius:20px}.lab-toolbar label{flex:1;min-width:0}.lab-toolbar select{width:100%;font-size:14px;padding:7px 6px}.lab-toolbar h2{font-size:22px;min-width:0}.lab-question{font-size:20px;margin:16px 0}.lab-model-pair{grid-template-columns:1fr;gap:0}.lab-model{padding:6px 0}.lab-model p{font-size:23px}.lab-tools .practice-card{display:flex;padding:12px;gap:0;grid-template-columns:none}.lab-tools .practice-card svg{width:60px;height:50px;margin-bottom:12px}.lab-tools .practice-card h3{font-size:15px;overflow-wrap:anywhere}.lab-tools .practice-card p{font-size:12px}.lab-tools .practice-grid{gap:12px}.lab-place-chart button{font-size:10px}.lab-division{padding:14px}.lab-records .actions{flex-direction:column}.lab-records button{width:100%}.lab-story{padding:16px}.lab-tools h2{font-size:27px}}
/* V2: Pip's cartoon laboratory and compact learning notebook. */
.lab-intro{padding:0 0 8px;align-items:flex-start}.lab-intro h1{font-size:clamp(2rem,4vw,3rem);letter-spacing:-.045em;margin:4px 0 10px}.lab-intro>div{max-width:800px}.lab-intro>div>p:last-child{font-size:18px;line-height:1.5}.lab-intro .eyebrow{display:none}.lab-intro .lab-note{display:none}.lab-panel{border:2px solid #a9dcd9;background:linear-gradient(140deg,#fff 70%,#effbf8);box-shadow:0 6px 0 #e0f0ef;border-radius:26px;padding:24px}.lab-question-layout{gap:24px;align-items:start;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.lab-question{font-size:25px}.lab-buddy{display:flex;align-items:center;gap:12px;background:#eef7fd;border:1px dashed #b7d4e2;border-radius:18px;margin-top:20px;padding:10px 14px}.lab-buddy svg{flex:none;width:78px;height:76px}.lab-buddy p{font-size:14px;line-height:1.5;margin:0}.lab-view-controls,.lab-adjust,.lab-step-nav{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 14px}.lab-view-controls button,.lab-adjust button,.lab-step-nav button{flex:1;font-size:13px;padding:8px;min-height:44px;min-width:90px;border-radius:12px;background:#edf7fb;color:#2b586d;border-color:#c0dce5}.lab-view-controls [aria-pressed=true],.lab-place-chart [aria-pressed=true]{background:#fff0b5;box-shadow:0 0 0 2px #dbb743 inset;color:#263449}.lab-model-pair>svg{width:100%;grid-column:1/-1;font:17px system-ui}.lab-big-number{font-size:44px;font-weight:800;letter-spacing:.06em;color:#304566;margin:6px 0 16px}.lab-bar{transform:rotate(-.3deg);border-radius:5px 9px 5px 8px}.lab-bar button{min-height:44px}.lab-note-paper{border-radius:5px 17px 7px 13px;box-shadow:3px 3px 0 #eee8cc}.lab-explanation{background:repeating-linear-gradient(#f4f0fc 0 27px,#e7e0f3 28px,#f4f0fc 29px);border:1px solid #dcd1ef}.lab-division{border:2px solid #d6d1ef;background:#faf8ff}.lab-division .eyebrow{color:#654a9d;background:#ede6fa;padding:8px 10px;border-radius:8px}.lab-division pre{font:24px/1.4 ui-monospace,Consolas,monospace;letter-spacing:1px}.lab-division form label{font-size:17px}.lab-division input{font-size:24px;min-height:52px}.lab-division form button{width:100%}.lab-story fieldset{padding:12px;margin:12px 0}.lab-story fieldset button{display:block;min-height:44px;width:100%;margin-bottom:8px;white-space:normal;font-size:16px;background:#fff;color:#284e61}.lab-story input[type=checkbox]{width:28px;height:28px}.lab-story details label{min-height:44px;display:flex;align-items:center;gap:10px}.lab-place-chart button{min-height:68px}.lab-note-paper>pre{font-size:28px;line-height:1.45;letter-spacing:1px;font-family:ui-monospace,Consolas,monospace}.lab-tools .practice-card{border-radius:18px 22px 18px 22px}.lab-tools .practice-card:nth-child(3n+2){background:#f6f2ff}.lab-tools .practice-card:nth-child(3n){background:#f2faff}.lab-tools .practice-card[aria-current=true]{background:#e7faf2}.lab-symbols button:focus{background:#fff0b5;color:#263449}.lab-question-layout[data-topic=math-word-problems] .lab-story>.eyebrow{font-size:11px}.lab-answer summary{min-height:44px;display:list-item;align-content:center}.celebrate svg{animation:pip-cheer .6s ease-out 1}@keyframes pip-cheer{0%,100%{transform:rotate(0)}35%{transform:translateY(-6px) rotate(-8deg)}70%{transform:rotate(5deg)}}
@media(max-width:767px){.lab-question-layout{grid-template-columns:1fr;gap:12px}.lab-panel{padding:18px}.lab-buddy{padding:8px 12px;margin-top:14px}.lab-buddy svg{width:58px;height:58px}.lab-buddy p{font-size:13px}.lab-question-layout[data-topic=decimal-place-value] .lab-hundred{max-width:180px}.lab-question-layout[data-topic=long-division] .lab-visual{max-width:480px;width:100%}.lab-question{font-size:22px}}
@media(max-width:480px){.lab-intro h1{font-size:30px}.lab-intro>div>p:last-child{font-size:15px}.lab-panel{padding:14px}.lab-toolbar h2{font-size:21px}.lab-curriculum{font-size:11px;margin-bottom:10px}.lab-question{font-size:20px;line-height:1.4}.lab-big-number{font-size:37px}.lab-place-chart button{font-size:11px;min-height:64px}.lab-division pre{font-size:22px;letter-spacing:0}.lab-note-paper>pre{font-size:24px}.lab-story{padding:14px}.lab-answer input{font-size:21px;min-height:52px}.lab-adjust button{min-width:80px;font-size:12px}.lab-note-paper,.lab-explanation{padding:12px 14px}.lab-buddy{align-items:center}.lab-buddy svg{width:50px;height:54px}#lab-work{scroll-margin-top:10px}.lab-question-layout[data-topic=fraction-comparison] .lab-model-pair{gap:2px}}
@media(prefers-reduced-motion:reduce){.celebrate svg{animation:none}html{scroll-behavior:auto}}
.lab-bar{position:relative}.lab-bar>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.lab-bar>span,.lab-bar>button,.lab-bar>.shaded,.lab-model:nth-child(even) .lab-bar>.shaded{position:relative;background:transparent}.lab-bar>button:focus-visible{outline-offset:-4px}.lab-bar>button:hover{background:#ffffff55}
/* Targeted tactile lab refresh: no changes to reading pages or math engines. */
.math-lab .lab-panel{background:linear-gradient(125deg,#fff 65%,#f1fbf9);border-color:#9fd6d2;padding:22px}.math-lab .lab-toolbar{gap:14px;padding-bottom:12px}.math-lab .lab-curriculum{margin:8px 0 10px;font-size:11px}.math-lab .lab-progress{margin:0 0 4px}.math-lab .lab-question{background:#fff7d6;border-left:4px solid #f0c54d;padding:12px 15px;border-radius:5px 14px 9px 7px;margin:10px 0 12px;font-size:24px;line-height:1.35}.math-lab .lab-buddy{margin:0 0 14px;background:transparent;border:0;border-bottom:1px dashed #c8dfdf;border-radius:0;padding:0 0 10px;max-width:none;gap:10px}.math-lab .lab-buddy svg{width:62px;height:60px}.math-lab .lab-buddy p{font-size:14px;max-width:680px}.math-lab .lab-question-layout{gap:20px}.math-lab .lab-model{border:2px solid transparent;border-radius:13px;padding:9px 10px;transition:background .15s,border-color .15s}.math-lab .lab-model>p{margin:0 0 7px;font-size:26px}.math-lab .lab-model.is-selected{background:#e7f8f0;border-color:#48a99e;box-shadow:0 3px 0 #c5e6dd}.math-lab .lab-model.is-selected>p:after{content:'';display:inline-block;width:1em;height:1em;background:url('/assets/icons/action-check.svg') center/contain no-repeat;font-size:19px;color:#16766b}.math-lab .lab-bar{border:0;border-bottom:4px solid #ad9bcf;box-shadow:0 2px 3px #5b47721a;min-height:49px;margin:0 0 6px;transform:none;background:#eee8fa;overflow:hidden}.math-lab .lab-bar>svg{height:calc(100% - 1px)}.math-lab .lab-bar svg rect{stroke:#b7a1d8;stroke-width:1.4px}.math-lab .lab-bar svg rect[fill='#9f87d8']{fill:#aa88e0;stroke:#8c69c6}.math-lab .lab-model:nth-child(even) .lab-bar{border-bottom-color:#60aaa9;background:#e7f8f7}.math-lab .lab-model:nth-child(even) .lab-bar svg rect[fill='#9f87d8']{fill:#5cc9c5;stroke:#37a4a5}.math-lab .lab-bar>button{border:0;min-height:44px}.math-lab .lab-bar button:hover{background:#fff5a080}.math-lab .lab-model-pair>.lab-model+div:not(.lab-model){background:#f6f3ff;border:1px dashed #cfbfe7;border-radius:14px;padding:12px}.math-lab .lab-model-pair select{width:100%;font-size:15px;margin:5px 0 8px;min-height:46px}.math-lab .lab-model-pair label{font-size:14px;margin-top:0}.math-lab .lab-model p.lab-equivalence{font-size:23px;color:#3b5a75;background:#fff9dd;border-radius:9px;padding:7px 10px;margin:7px 0}.math-lab .lab-transform-note{font-size:13px;line-height:1.5;margin:8px 0 0}.math-lab .lab-adjust{margin:8px 0 4px}.math-lab .lab-visual>.small{font-size:13px;margin:10px 0 4px}.math-lab .lab-note-paper,.math-lab .lab-explanation{position:relative;border:1px solid #e0d2a4;background:repeating-linear-gradient(#fff9df 0 25px,#e9dfbb 26px,#fff9df 27px);box-shadow:3px 4px 0 #e9dfc155;border-radius:5px 17px 7px 12px;margin:12px 0;padding:10px 14px 10px 21px}.math-lab .lab-explanation{background:repeating-linear-gradient(#f7f1ff 0 25px,#e5daef 26px,#f7f1ff 27px);border-color:#d5c5e7;box-shadow:3px 4px 0 #e1d6eb66}.math-lab .lab-note-paper:before,.math-lab .lab-explanation:before{content:'';position:absolute;left:-5px;top:14px;width:12px;height:28px;background:#bfe7e1;border:1px solid #91c9bf;border-radius:4px;transform:rotate(-5deg);pointer-events:none}.math-lab .lab-explanation:before{background:#dcccf3;border-color:#b4a2ce}.math-lab summary{font-size:15px;min-height:44px;align-content:center}.math-lab details p{font-size:15px;line-height:1.6;margin:10px 0}.math-lab .lab-answer{padding-top:0}.math-lab .lab-answer>form>label{margin:0 0 7px;font-size:15px}.math-lab .lab-answer input{border:2px solid #9dc9dd;background:#fff;border-radius:11px;font-size:23px;min-height:52px}.math-lab .lab-symbols{margin-top:8px;gap:8px}.math-lab .lab-symbols [aria-pressed=true]{background:#ddf6e9;border-color:#47aa83;box-shadow:0 2px 0 #b4e0cd}.math-lab .lab-answer [role=status]{margin:10px 0;font-size:13px}.math-lab .lab-answer>button{margin-top:8px}.math-lab .lab-story{padding:15px}.math-lab .lab-story>p{margin-bottom:10px}.math-lab .lab-story fieldset{margin:8px 0}.math-lab .lab-note-paper pre{margin:12px 0}.math-lab .lab-step-nav{margin-bottom:6px}.math-lab #lab-status{font-size:11px;line-height:1.45;margin-top:10px}
@media(max-width:767px){.math-lab .lab-question-layout{gap:10px}.math-lab .lab-question{font-size:21px}.math-lab .lab-buddy{padding-bottom:8px;margin-bottom:10px}.math-lab .lab-buddy svg{width:52px;height:51px}.math-lab .lab-buddy p{font-size:13px;line-height:1.4}.math-lab .lab-model-pair{gap:6px}.math-lab .lab-visual{padding-bottom:0}.math-lab .lab-model{padding:6px 8px}.math-lab .lab-visual>.small{margin-bottom:0}.math-lab .lab-model-pair>.lab-model+div:not(.lab-model){padding:10px}.math-lab .lab-place-chart{gap:5px}.math-lab .lab-hundred{margin:12px 0;max-width:150px}}
@media(max-width:480px){.math-lab .lab-panel{padding:13px}.math-lab .lab-toolbar h2{font-size:21px}.math-lab .lab-question{font-size:20px;padding:10px 12px;margin:9px 0 10px}.math-lab .lab-question-layout{gap:8px}.math-lab .lab-model>p{font-size:24px}.math-lab .lab-bar{min-height:46px}.math-lab .lab-note-paper,.math-lab .lab-explanation{padding:8px 12px 8px 19px;margin:10px 0}.math-lab .lab-buddy{gap:8px}.math-lab .lab-buddy p{font-size:12px}.math-lab .lab-transform-note{font-size:12px}.math-lab .lab-model-pair label{font-size:13px}.math-lab .lab-adjust button{min-width:0;font-size:12px;padding:7px 4px}.math-lab .lab-model-pair select{font-size:14px}.math-lab .lab-division{padding:12px}.math-lab .lab-place-chart button{font-size:11px;padding:8px 2px}.math-lab .lab-big-number{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.math-lab .lab-model{transition:none}}
.math-lab .lab-equivalence{font-size:23px;font-weight:750;color:#3b5a75;background:#fff9dd;border-radius:9px;padding:7px 10px;margin:7px 0}
.math-lab .lab-model-pair>div:not(.lab-model) .lab-bar{border-bottom-color:#60aaa9;background:#e7f8f7}.math-lab .lab-model-pair>div:not(.lab-model) .lab-bar svg rect[fill='#9f87d8']{fill:#5cc9c5;stroke:#37a4a5}
/* Equivalent wholes must keep identical physical lengths, including on phones. */
.math-lab .lab-model-pair>div:not(.lab-model){padding:0;border:0;background:transparent;border-radius:0}
.math-lab .lab-model-pair>.lab-model+div:not(.lab-model){padding:0;border:0;background:transparent}
/* Clean Math Lab: content first, optional teaching aids, consistent teal. */
.math-lab .lab-panel{background:#fff;border:1px solid #c9dedc;border-radius:18px;box-shadow:0 4px 18px #224f4b08;padding:22px}.math-lab .lab-question{background:transparent;border:0;border-radius:0;padding:0;margin:14px 0 18px;font-size:25px;line-height:1.4;color:#213f44}.math-lab .lab-question-layout{gap:24px;align-items:start}.math-lab .lab-toolbar{padding-bottom:10px}.math-lab .lab-toolbar h2{color:#245b57;font-size:24px}.math-lab .lab-curriculum{font-size:11px;color:#647774;line-height:1.4}.math-lab .lab-model{padding:6px 8px;border-radius:10px;transition:none;box-shadow:none}.math-lab .lab-model>p{font-size:24px;color:#245b57}.math-lab .lab-bar,.math-lab .lab-model:nth-child(even) .lab-bar,.math-lab .lab-model-pair>div:not(.lab-model) .lab-bar{border-bottom:2px solid #90c5bc;background:#eef8f5;box-shadow:none;border-radius:5px;min-height:44px}.math-lab .lab-bar svg rect{stroke:#9cc7bf}.math-lab .lab-bar svg rect[fill='#9f87d8'],.math-lab .lab-model:nth-child(even) .lab-bar svg rect[fill='#9f87d8'],.math-lab .lab-model-pair>div:not(.lab-model) .lab-bar svg rect[fill='#9f87d8']{fill:#56b6a7;stroke:#399889}.math-lab .lab-model.is-selected{border-color:#2b9685;background:#eef9f4;box-shadow:none}.math-lab .lab-note-paper,.math-lab .lab-explanation{background:#f7faf9;border:1px solid #d5e4e0;border-radius:10px;box-shadow:none;margin:10px 0;padding:7px 12px;transform:none}.math-lab .lab-note-paper:before,.math-lab .lab-explanation:before{display:none}.math-lab summary{font-size:14px;min-height:44px}.math-lab details p{font-size:14px;line-height:1.55;margin:9px 0}.math-lab .lab-buddy{display:inline-block;border:0;margin:0;padding:0;vertical-align:middle;background:transparent}.math-lab .lab-buddy svg{width:38px;height:38px;animation:none}.math-lab .lab-note-paper>p{display:inline-block;max-width:calc(100% - 48px);vertical-align:middle;margin-right:8px}.math-lab .lab-answer input{font-size:23px;border:1px solid #9cbeb8;border-radius:9px;min-height:52px}.math-lab .lab-check{background:#ffdf70;color:#3b371d;border:1px solid #ebc958;border-radius:9px;box-shadow:none;min-height:50px}.math-lab .lab-symbols button,.math-lab .lab-view-controls button,.math-lab .lab-adjust button,.math-lab .lab-step-nav button{background:#f1f8f6;border-color:#c6ddd6;color:#245b57;box-shadow:none}.math-lab .lab-symbols [aria-pressed=true],.math-lab .lab-view-controls [aria-pressed=true]{background:#dff2ec;border-color:#54a994;box-shadow:none}.math-lab .lab-big-number{color:#245b57;margin:4px 0 12px}.math-lab .lab-place-chart button{background:#f0f8f5;border-color:#c5ded5;color:#245b57}.math-lab .lab-division{background:#f7faf9;border:1px solid #d0e1dc;border-radius:12px;padding:14px}.math-lab .lab-division .eyebrow{background:#e8f4ef;color:#245b57;padding:7px 10px}.math-lab .lab-story{background:#f4faf7;border:1px solid #dbe9e3;border-radius:12px}.math-lab .lab-story>p.small{display:none}.math-lab .lab-visual>.small{font-size:12px;line-height:1.45}.math-lab .lab-transform-note{font-size:12px;line-height:1.45}.math-lab #lab-status{color:#607570;font-size:11px}.lab-tools .practice-card,.lab-tools .practice-card:nth-child(3n),.lab-tools .practice-card:nth-child(3n+2){background:#fff;border:1px solid #d5e3df;box-shadow:none;border-radius:13px}.lab-tools .practice-card[aria-current=true]{background:#f0faf5;border:2px solid #59a99a;box-shadow:none}.lab-tools .practice-card svg{transform:none;background:#edf7f2}.math-lab .lab-grid-detail{margin:8px 0;border:1px solid #d5e4df;border-radius:9px;padding:4px 10px}.math-lab .lab-question-layout[data-topic=decimal-operations]{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
@media(max-width:767px){.math-lab .lab-panel{padding:16px}.math-lab .lab-question-layout,.math-lab .lab-question-layout[data-topic=decimal-operations]{grid-template-columns:1fr;gap:12px}.math-lab .lab-question{font-size:22px;margin:12px 0 14px}.math-lab .lab-toolbar h2{font-size:22px}.math-lab .lab-model-pair{gap:4px}.math-lab .lab-visual>.small{margin:7px 0 0}.math-lab .lab-answer{padding-top:0}}
@media(max-width:480px){.math-lab .lab-panel{padding:13px;border-radius:15px}.math-lab .lab-question{font-size:20px}.math-lab .lab-toolbar h2{font-size:21px}.math-lab .lab-model>p{font-size:23px}.math-lab .lab-buddy svg{width:32px;height:34px}.math-lab .lab-note-paper,.math-lab .lab-explanation{padding:6px 10px}.math-lab .lab-division{padding:12px}.math-lab .lab-question-layout{gap:10px}.math-lab .lab-answer>form>label{font-size:14px}.lab-tools .practice-card svg{width:52px;height:46px}.math-lab .lab-curriculum{font-size:10px}}
.math-lab .numerator-model{border:1px solid #d5e4df;border-radius:9px;padding:6px 11px}.math-lab .numerator-model>summary{min-height:44px;font-size:14px}.math-lab [data-task=missing-numerator] .lab-visual{min-width:0}.math-lab [data-task=missing-numerator] #numerator-help{font-size:12px;line-height:1.45;margin:7px 0 10px}.math-lab [data-task=missing-numerator] input[aria-invalid=true]{border-color:#a36b23}.math-lab [data-task=missing-numerator]{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
@media(max-width:767px){.math-lab [data-task=missing-numerator]{grid-template-columns:1fr;gap:12px}.math-lab [data-task=missing-numerator] .lab-answer{grid-row:1}.math-lab [data-task=missing-numerator] .lab-visual{grid-row:2}}
/* Homepage tool selector only: three square-picture entries per row. */
.lab-tools .photo-tool-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:22px 20px;max-width:780px;margin:22px auto 0}.lab-tools .photo-tool-card,.lab-tools .photo-tool-card:nth-child(3n),.lab-tools .photo-tool-card:nth-child(3n+2){grid-column:span 2;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:8px 8px 12px;border:2px solid transparent;border-radius:16px;background:transparent;box-shadow:none;text-align:center;color:#244740;min-width:0;transition:border-color .12s,background .12s;transform:none}.lab-tools .photo-tool-card:nth-child(7){grid-column:2/span 2}.lab-tools .photo-tool-card:nth-child(8){grid-column:4/span 2}.lab-tools .tool-picture{display:block;position:relative;width:100%;aspect-ratio:1;border:1px solid #bcdcd2;border-radius:13px;overflow:hidden;background:#edf7f2}.lab-tools .photo-tool-card:nth-child(3n+2) .tool-picture{border-color:#d4c6e9}.lab-tools .photo-tool-card:nth-child(3n) .tool-picture{border-color:#e6d4a4}.lab-tools .tool-picture img{display:block;width:100%;height:100%;object-fit:cover;aspect-ratio:1}.lab-tools .photo-tool-card h3{font-size:18px;line-height:1.25;margin:0;letter-spacing:-.02em;overflow-wrap:normal;word-break:normal;hyphens:none;font-weight:750}.lab-tools .photo-tool-card[aria-current=true]{background:#e9f6ef;border-color:#248b73;box-shadow:none}.lab-tools .photo-tool-card:hover{background:#f1f8f4;border-color:#82baaa;transform:none}.lab-tools .photo-tool-card[aria-current=true]:hover{border-color:#248b73}.lab-tools .tool-selected{display:none;position:absolute;right:7px;top:7px;background:#1e8068;color:#fff;border:2px solid #fff;border-radius:50%;width:26px;height:26px;align-items:center;justify-content:center;font-size:16px;font-weight:800}.lab-tools [aria-current=true] .tool-selected{display:flex}.lab-tools .photo-tool-card:focus-visible{outline:3px solid #a76a18;outline-offset:2px}
@media(max-width:800px){.lab-tools .photo-tool-grid{max-width:650px;gap:16px 12px}.lab-tools .photo-tool-card h3{font-size:16px}}
@media(max-width:480px){.lab-tools .photo-tool-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 6px;margin-top:15px}.lab-tools .photo-tool-card,.lab-tools .photo-tool-card:nth-child(3n),.lab-tools .photo-tool-card:nth-child(3n+2){padding:3px 2px 6px;gap:7px;border-radius:11px}.lab-tools .tool-picture{border-radius:10px}.lab-tools .photo-tool-card h3{font-size:13px;line-height:1.25;letter-spacing:-.025em}.lab-tools .tool-selected{width:22px;height:22px;right:3px;top:3px;font-size:13px}.lab-tools .photo-tool-card:nth-child(7){grid-column:2/span 2}.lab-tools .photo-tool-card:nth-child(8){grid-column:4/span 2}}
@media(max-width:350px){.lab-tools .photo-tool-card h3{font-size:12px;letter-spacing:-.035em}.lab-tools .photo-tool-grid{gap:13px 4px}.lab-tools .photo-tool-card{padding:3px 1px 5px}}
@media(prefers-reduced-motion:reduce){.lab-tools .photo-tool-card{transition:none}}
/* Unified original light-cartoon math theme; prose and policy pages stay readable. */
:root{--teal:#287f73;--ink:#29444e;--violet:#675b9a;--blue:#447ca0;--lab-mint:#eaf7ef;--lab-sky:#edf7fc;--lab-lilac:#f1edfa;--lab-yellow:#ffe18b}body{background:#fffefa;color:var(--ink)}header{background:#fff;border-bottom:1px solid #e0ece5}header>div{padding-top:15px;padding-bottom:15px}.logo{color:#33445d;letter-spacing:1px}.logo .legacy-letter-icon{background:#7763aa;border-radius:12px;box-shadow:0 3px 0 #e4dcf1}header nav a{border-radius:9px;padding:2px 8px;color:#315c65}header nav a:hover{background:#edf7f2;color:#206b5e}.button,button{border-radius:12px;box-shadow:0 2px 0 #cfe3da;border-color:#448f7e}.secondary{background:#f3faf6;color:#286a5d}.button:hover,button:hover{background:#286e62;color:#fff}select,input{border-color:#a8c6bc;border-radius:10px}.card{border-radius:16px;border-color:#dbe6df;box-shadow:0 3px 0 #f1f4ed}.card .number{background:#edf7f2;color:#317a6b}.band{background:#f0f7ef;border-radius:18px}.learning-steps{background:#f4f1fa;border-color:#e5deee}.crumb{color:#607774}.prose{line-height:1.8}.prose h1{color:#294958}.prose h2{color:#32695d}.prose details{background:#fafcf9}.prose a.button{line-height:1.5}footer{background:#294b51}footer a:hover{color:#ffe18b}.practice-card .directory-tool-art{display:block;width:min(100%,152px);height:auto;aspect-ratio:1;object-fit:contain;border-radius:14px;background:#f2f9f6;margin-bottom:12px}.practice-card{border-radius:17px;border-color:#d9e6df;box-shadow:0 3px 0 #eff4ee}.practice-card:hover{border-color:#72b4a0}.practice-link{background:#edf7f1}.tool-page-title{display:flex;align-items:center;gap:14px}.tool-page-title img{width:62px;height:62px;object-fit:contain;flex-shrink:0;border-radius:15px;border:1px solid #d0e5d8}#practice{border:1px solid #bcded2;border-radius:20px;background:#fff;box-shadow:0 4px 0 #eaf4ec}#practice form button{background:#ffe18b;color:#3c432e;border-color:#e4c66d;box-shadow:0 3px 0 #f4e7bc}#practice h2{color:#2a5360}#practice details{background:#f5f8fc;border:1px solid #dce6ef;border-radius:10px;padding:12px 14px;margin:12px 0}#practice input{font-size:21px;min-height:50px}
.math-lab{margin-top:0}.math-lab .lab-intro{position:relative;gap:18px;padding:5px 0 12px}.math-lab .lab-intro h1{display:flex;align-items:center;gap:12px;color:#2d4258;font-size:clamp(2rem,3.8vw,3rem);margin-bottom:8px}.hero-pip{display:inline-flex;width:66px;height:64px;flex-shrink:0}.hero-pip svg{width:100%;height:100%}.hero-math-doodle{display:block;width:145px;height:95px;flex:none;align-self:center}.math-lab .lab-intro>div>p:last-child{font-size:17px;line-height:1.5;margin-bottom:8px}.math-lab .lab-panel{border:2px solid #b6ded5;border-radius:23px;background:linear-gradient(130deg,#fff 70%,#f7fcf8);box-shadow:0 5px 0 #e6f3ec;padding:22px}.math-lab .lab-toolbar{border-color:#dfebe5;gap:14px;padding-bottom:13px}.math-lab #lab-heading{display:flex;align-items:center;gap:10px;color:#345c63;font-size:25px}.math-lab #lab-heading:before{content:'';display:inline-block;width:43px;height:43px;flex-shrink:0;background-size:contain;background-position:center;background-repeat:no-repeat;border-radius:11px}.math-lab .lab-question{background:#edf7fc;border-radius:14px 18px 14px 18px;padding:12px 15px;border:1px solid #dbeaf3;font-size:24px;margin:13px 0 17px;color:#2e4e5a}.math-lab .lab-answer>form{padding:14px;background:#fff9e8;border-radius:15px;border:1px solid #f0e4bf}.math-lab .lab-answer input{border-color:#adcac4;background:#fff;box-shadow:inset 0 1px 2px #314d4705;border-radius:10px}.math-lab .lab-check{background:#ffe18b;border-color:#e7c66a;box-shadow:0 3px 0 #f0dda0;border-radius:12px;color:#3d422a}.math-lab .lab-note-paper{background:#f4f0fb;border-color:#e0d6f0}.math-lab .lab-explanation{background:#eef5fc;border-color:#d6e5f1}.math-lab .lab-note-paper,.math-lab .lab-explanation{border-radius:12px;box-shadow:0 2px 0 #e8edf044;padding:7px 13px}.math-lab .lab-note-paper:before,.math-lab .lab-explanation:before{display:none}.math-lab .lab-view-controls [aria-pressed=true],.math-lab .lab-symbols [aria-pressed=true]{background:#e0f4e9;border-color:#4da48a;box-shadow:0 2px 0 #c9e8db}.math-lab .lab-bar{border-radius:6px;border-bottom-width:3px;box-shadow:0 2px 0 #e1eee8}.math-lab .lab-bar svg rect[fill='#9f87d8'],.math-lab .lab-model:nth-child(even) .lab-bar svg rect[fill='#9f87d8'],.math-lab .lab-model-pair>div:not(.lab-model) .lab-bar svg rect[fill='#9f87d8']{fill:#69bfaa;stroke:#4b9a86}.math-lab .lab-model:nth-child(even) .lab-bar svg rect[fill='#9f87d8']{fill:#9dbbdc;stroke:#779fca}.math-lab .lab-division{background:#f6f4fc;border-color:#ded7ef}.math-lab .lab-story{background:#f1f9f3;border-color:#d6e8dc}.math-lab .lab-place-chart button{background:#edf7f3;border-color:#c4dfd2}.math-lab .lab-place-chart [aria-pressed=true]{background:#fff0b6;border-color:#ddc66b}.math-lab .lab-answer>button{background:#eef7fc;border-color:#b6d7e8;color:#366680;box-shadow:none}.math-lab .lab-buddy svg{width:34px;height:35px}.math-lab .numerator-model{background:#f8fbf8;border-color:#d7e7dc}.lab-tools .tool-picture{border-width:1px;border-radius:16px;background:#f2f9f6}.lab-tools .photo-tool-card,.lab-tools .photo-tool-card:nth-child(3n),.lab-tools .photo-tool-card:nth-child(3n+2){border-radius:17px}.lab-tools .photo-tool-card[aria-current=true]{border-color:#3c9881;background:#ebf8ef;box-shadow:0 3px 0 #d6eadf}.lab-tools .photo-tool-card:active{background:#e3f1e8}.lab-records{background:#f5f2fa;border:1px solid #e6e0ee}progress{height:9px;accent-color:#50ab91}
@media(max-width:800px){.hero-math-doodle{width:100px;height:75px}.math-lab .lab-intro>div>p:last-child{font-size:16px}.tool-page-title{font-size:clamp(2rem,5vw,3rem)}}
@media(max-width:767px){.hero-math-doodle{display:none}.math-lab .lab-panel{padding:16px}.math-lab #lab-heading{font-size:23px}.math-lab #lab-heading:before{width:35px;height:35px}.math-lab .lab-question{font-size:21px;padding:11px 13px}.math-lab .lab-answer>form{padding:12px}.math-lab .lab-intro h1{font-size:32px}.hero-pip{width:45px;height:45px}}
@media(max-width:480px){header>div{padding:12px 20px;gap:6px}header nav a{padding:0 4px;font-size:13px}.logo{font-size:21px}.math-lab .lab-intro{padding:0 0 5px}.math-lab .lab-intro h1{font-size:28px;gap:8px;margin:2px 0 8px;line-height:1.1}.hero-pip{width:40px;height:43px}.math-lab .lab-intro>div>p:last-child{font-size:14px;line-height:1.45;margin-bottom:7px}.math-lab .lab-panel{padding:12px;border-radius:18px}.math-lab #lab-heading{font-size:21px;gap:8px}.math-lab #lab-heading:before{width:32px;height:32px}.math-lab .lab-question{font-size:20px;padding:10px 12px;margin:11px 0 13px}.math-lab .lab-answer>form{padding:11px}.math-lab .lab-toolbar{padding-bottom:9px}.math-lab .lab-curriculum{font-size:10px}.tool-page-title{gap:10px;font-size:2rem}.tool-page-title img{width:46px;height:46px}.prose{line-height:1.75}.lab-tools .photo-tool-card h3{font-size:13px}}
@media(max-width:350px){.lab-tools .photo-tool-card h3{font-size:12px}.math-lab .lab-intro h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){.photo-tool-card,.practice-card{transition:none;transform:none}}

progress{border:0;border-radius:8px;overflow:hidden}progress::-webkit-progress-bar{background:#e6f1eb;border-radius:8px}progress::-webkit-progress-value{background:#56b596;border-radius:8px}progress::-moz-progress-bar{background:#56b596;border-radius:8px}
/* Homepage reference composition: original Pip, photographed materials, compact lab. */
body:has(.math-lab){background:linear-gradient(#e9f8ff 0,#fff 650px);color:#19254f}body:has(.math-lab) main{max-width:1100px}body:has(.math-lab) h1,body:has(.math-lab) h2,body:has(.math-lab) h3{color:#17145b;letter-spacing:-.035em}body:has(.math-lab) header{background:#fff}body:has(.math-lab) .logo{color:#211476}.math-lab .lab-intro{min-height:180px;align-items:center;padding:16px 25px;background:radial-gradient(ellipse at 90% 90%,#c9eacc 0,transparent 55%);border-radius:28px 28px 0 0}.math-lab .lab-intro>div{max-width:720px}.math-lab .lab-intro h1{font-weight:900;font-size:clamp(30px,4vw,48px);color:#17145b;max-width:640px}.hero-pip{width:110px;height:110px;order:2;margin-left:22px}.math-lab .lab-intro .eyebrow{display:none}.hero-math-doodle{transform:rotate(3deg);width:155px;height:115px}.math-lab .lab-panel{border-color:#e0d6ff;box-shadow:0 5px 0 #f0ebff,0 10px 24px #46416b0b;background:white;border-radius:26px}.math-lab #lab-heading{color:#21165d;background:#f6f1ff;border-radius:30px;padding:8px 14px}.math-lab .lab-question{color:#17145b;background:#eaf1ff;font-weight:800}.math-lab .lab-check{background:#ffdf39;color:#15184c;border-color:#f8ca20;box-shadow:0 3px 0 #fff0ac;min-height:48px}.math-lab .lab-model:nth-child(even) .lab-bar svg rect[fill='#9f87d8']{fill:#83d1bc;stroke:#43a594}.lab-tools{margin:28px 0}.lab-tools h2{font-size:28px}.lab-tools .photo-tool-grid{max-width:820px;margin:18px auto;gap:18px}.lab-tools .photo-tool-card{background:#effbf5;border:1px solid #b9e7d1;padding:12px;border-radius:20px;box-shadow:none}.lab-tools .photo-tool-card:nth-child(3n+2){background:#f9f0ff;border-color:#e4c6f6}.lab-tools .photo-tool-card:nth-child(3n){background:#fff9dd;border-color:#f3df95}.lab-tools .tool-picture{border:0;border-radius:14px;overflow:hidden}.lab-tools .tool-picture img{object-fit:cover;filter:brightness(1.025) saturate(.95)}.lab-tools .photo-tool-card h3{font-size:18px;margin:10px 0 3px;font-weight:800}.lab-tools .photo-tool-card[aria-current=true]{outline:3px solid #39a991;outline-offset:2px}.lab-records{position:relative;background:#eef9f3;border-color:#d3eee0;border-radius:20px;padding:20px;margin:24px 0}.lab-records h2{margin:0 0 6px}.lab-records .actions{margin:8px 0}.record-management{margin-top:10px}.record-management summary{cursor:pointer;font-weight:700;color:#276c62}.home-how,.home-explore,.home-faq{margin:26px 0}.home-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.home-steps>div{border:1px solid #e2d7f7;background:#f8f5ff;border-radius:18px;padding:18px}.home-steps span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#7965de;color:white;font-weight:800}.home-steps h3{font-size:18px;margin:10px 0 6px}.home-steps p{font-size:14px;margin:0}.explore-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.explore-columns article{border:1px solid #cbdffb;border-radius:20px;background:#f0f7ff;padding:20px}.explore-columns article:nth-child(2){background:#f7f0ff;border-color:#e3d3fa}.explore-columns h3{margin:0;font-size:22px}.explore-columns p{font-size:14px}.explore-columns ul{list-style:none;padding:0}.explore-columns li{padding:8px 0;border-bottom:1px solid #dce7f1;font-size:14px}.home-faq{background:#fff2f6;border:1px solid #f7dfeb;border-radius:20px;padding:20px}.home-faq>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.home-faq details{background:white;border:0;border-radius:10px;padding:10px 14px}.home-faq summary{font-weight:700;font-size:14px;cursor:pointer}.home-faq details p{font-size:14px}body:has(.math-lab) footer{background:#f3f9ef;color:#25504d;border-top:1px solid #d5ead7}body:has(.math-lab) footer a{color:#25504d}.lab-answer input{scroll-margin-block:120px}.lab-curriculum{max-width:760px}
@media(max-width:767px){.math-lab .lab-intro{min-height:135px;padding:8px 4px}.math-lab .lab-intro h1{font-size:30px;line-height:1.05}.hero-pip{width:70px;height:70px;margin-left:8px}.lab-tools .photo-tool-grid{gap:12px 7px}.lab-tools .photo-tool-card{padding:6px}.lab-tools .photo-tool-card h3{font-size:13px;line-height:1.25}.explore-columns{grid-template-columns:1fr}.home-steps{gap:8px}.home-steps>div{padding:12px 9px}.home-steps h3{font-size:14px}.home-steps p{font-size:12px}.home-faq>div{grid-template-columns:1fr}.lab-records{padding:16px}.lab-tools h2{font-size:23px}.home-faq{padding:14px}.math-lab .lab-curriculum{font-size:10px;margin:5px 0}.math-lab .lab-question{font-size:19px}}
@media(max-width:350px){.lab-tools .photo-tool-card h3{font-size:12px}.math-lab .lab-intro h1{font-size:26px}.hero-pip{width:58px;height:65px}.home-steps h3{font-size:12px}.home-steps p{font-size:11px}}
@media(max-width:767px){.math-lab .lab-model-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.math-lab .lab-model-pair>.lab-model+div:not(.lab-model){grid-column:1/-1}.math-lab .lab-model{padding:4px 0}.math-lab .lab-model>p{font-size:22px;margin:4px 0}.math-lab .lab-bar{min-height:35px}.math-lab .lab-view-controls{margin:4px 0}.math-lab .lab-intro{min-height:110px}.math-lab .lab-intro>div>p:last-child{font-size:13px}.math-lab .lab-answer input{min-height:48px}.math-lab .lab-visual>.small{font-size:11px}.math-lab .lab-toolbar{gap:8px}.math-lab .lab-toolbar select{margin-top:2px}.math-lab .lab-question{margin:8px 0}.lab-tools .small{font-size:12px}.lab-records #lab-history{font-size:14px}.lab-records .actions button{min-height:44px}body:has(.math-lab) footer{padding-top:24px;padding-bottom:24px}body:has(.math-lab) footer p{font-size:12px;margin:8px 0}}

/* Shared approved otter mark; the wordmark remains real text. */
.logo .brand-icon,.footer-brand .brand-icon{display:block;width:38px;height:38px;object-fit:contain;flex:none}.logo .brand-name{background:none;box-shadow:none;border-radius:0;width:auto;height:auto;color:inherit;font-size:inherit;line-height:inherit}.logo,.footer-brand{display:inline-flex;align-items:center;gap:8px;text-decoration:none}.footer-brand{color:inherit;max-width:100%}.footer-brand:hover{color:inherit}.footer-brand .brand-icon{width:38px;height:38px}@media(max-width:767px){.logo .brand-icon,.footer-brand .brand-icon{width:34px;height:34px}}
