:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#263e37;background:#f6f3e9;font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select{font:inherit}button,a,select,input{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #126a91;outline-offset:4px}.shell{max-width:1080px;margin:auto;padding:38px 24px 24px}.welcome{display:flex;align-items:center;justify-content:space-between;gap:18px}.welcome h1{font-size:clamp(28px,4vw,42px);margin:8px 0}.welcome p{line-height:1.7;margin:8px 0}.eyebrow{font-size:14px;font-weight:600;color:#536b60;letter-spacing:.04em}.encouragement{display:flex;align-items:center;gap:14px;margin:28px 0;padding:14px 20px;border:1px solid #dedac7;border-radius:18px;background:#fffaf0}.encouragement span{font-size:30px;color:#8a6018}.encouragement p{line-height:1.7;margin:0}.subjects{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.subject{display:flex;flex-direction:column;gap:12px;text-decoration:none;padding:24px;border:1px solid #c4d5c8;border-radius:24px;background:#eef5ee;box-shadow:0 4px 0 #d5dfd3;transition:transform .15s}.subject:hover{transform:translateY(-3px)}.subject.math{background:#fff2df;border-color:#e4d0ad;box-shadow:0 4px 0 #e4d5bc}.subject.english{background:#eef2fb;border-color:#c8d1e4;box-shadow:0 4px 0 #d4dced}.symbol{display:flex;align-items:center;justify-content:center;width:66px;height:66px;border-radius:20px;background:#fff9;font-size:28px;font-weight:700}.subject h2{font-size:23px;margin:10px 0}.subject p{line-height:1.8;margin:0 0 12px}.go{display:block;padding-top:10px;font-weight:700;min-height:44px}.panel{background:#fffdf7;border:1px solid #deded0;border-radius:20px;padding:24px}.parent{margin-top:30px}.parent h2{font-size:18px;margin:0 0 12px}.parent p{font-size:15px;line-height:1.9;margin:10px 0}.review-link{display:inline-flex;min-height:44px;align-items:center;color:#335e49;font-weight:600}footer{text-align:center;margin-top:26px;font-size:13px;line-height:1.8;color:#596a61}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.top a{display:inline-flex;align-items:center;min-height:44px}.top h1{margin:6px 0;font-size:26px}.layout{display:grid;grid-template-columns:310px 1fr;gap:24px}.settings h2{font-size:20px;margin-top:0}.settings label{display:block;margin:16px 0 8px;font-weight:600}.settings select{width:100%;min-height:46px;border:1px solid #adbdb2;border-radius:10px;padding:10px;background:white;color:#263e37}.settings p{font-size:14px;line-height:1.8}.primary,.quiet,.rate{min-height:48px;padding:12px 18px;border-radius:12px;border:1px solid #b5c6b9;cursor:pointer;color:#263e37;background:#f5f8f1}.primary{background:#315f4d;color:white;border-color:#315f4d;font-weight:700}.primary:disabled{opacity:.55;cursor:default}.settings .primary{width:100%;margin-top:16px}.tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.tools button{flex:1}.practice{min-height:510px}.stage{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:440px}.stage h2{font-size:25px}.stage p{line-height:1.8}.equation{font-size:clamp(30px,5vw,55px);font-weight:650;margin:28px 0;white-space:nowrap;color:#1b3d33}.progress{color:#566d62;font-size:15px}.answer{background:#f4f6ea;border-radius:16px;padding:20px;width:100%;margin-bottom:20px}.answer strong{display:block;font-size:clamp(28px,4vw,40px);margin:8px 0}.answer p{font-size:20px;margin:12px 0}.ratings{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%}.rate{text-align:center}.rate:first-child{background:#e8f3e8}.rate:last-child{background:#fff0e8}.notice{line-height:1.8;font-size:14px;margin-top:16px;color:#5d6557}.summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;list-style:none;padding:0;width:100%}.summary li{background:#f0f4e9;border-radius:12px;padding:14px}.summary strong{font-size:24px}.empty-art{font-size:60px;color:#7c9879;margin:16px}.status{min-height:24px;font-size:14px;line-height:1.8;color:#4e6157;margin:12px 0}.list{font-size:15px;line-height:1.8}.back{margin-top:20px}.muted{color:#5b6c60}.footer-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}dialog{max-width:620px;width:calc(100% - 32px);border:1px solid #b5c6b9;border-radius:18px;padding:24px;color:#263e37;background:#fffdf7}dialog::backdrop{background:#182a2266}dialog h2{margin-top:0}dialog ul{max-height:45vh;overflow:auto;line-height:1.9}dialog .tools{justify-content:end}@media(max-width:860px){.subjects{grid-template-columns:1fr}.subject{flex-direction:row;align-items:flex-start}.layout{grid-template-columns:1fr}.shell{padding:24px 18px}.welcome img{width:80px;height:80px}.practice{min-height:400px}.settings{padding:20px}.stage{min-height:370px}}@media(max-width:420px){.subject{padding:20px;gap:14px}.symbol{width:50px;height:50px;flex-shrink:0;font-size:23px}.subject h2{font-size:21px}.welcome img{display:none}.ratings{grid-template-columns:1fr}.equation{font-size:32px}.top{align-items:flex-start}.top h1{font-size:23px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}[hidden]{display:none!important}
.answer-form{display:grid;gap:12px;width:min(300px,100%);margin:0 0 18px}.answer-form label{font-weight:700}.answer-form input{min-height:60px;width:100%;border:2px solid #91ae9a;border-radius:14px;background:white;color:#263e37;text-align:center;font-size:32px}.number-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.number-key{min-height:52px;padding:9px;font-size:21px}.number-key[data-key=clear],.number-key[data-key=back]{font-size:15px}.auto-feedback{min-height:28px;color:#9d4936;font-weight:700}.auto-feedback.is-correct{color:#245b40}.stage .answer-form .status{margin:0}.quiet:disabled{opacity:.5}

/* Two subjects, one clear next action; parent controls stay folded. */
.shell{padding-top:20px}.subjects{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.subject{flex-direction:row;align-items:flex-start;gap:16px}.subject .symbol{flex-shrink:0}.subject h2{font-size:25px}.subject .go{margin-top:10px}.subject p{line-height:1.7}.encouragement{margin:18px 0;padding:12px 18px}.parent{margin-top:22px}.parent>summary{cursor:pointer;font-weight:700;min-height:44px;display:list-item;line-height:44px}.parent:not([open]){padding:10px 22px}.homeLink{display:inline-flex;align-items:center;min-height:44px;border:1px solid #d6dccd;border-radius:12px;padding:8px 12px;text-decoration:none;background:#fffdf7;color:#315f4d}.mathShell{max-width:1120px;padding-top:max(8px,env(safe-area-inset-top))}.mathTop{min-height:48px;margin-bottom:12px}.mathTop h1{font-size:24px;margin:0}.mathStart{text-align:center;max-width:780px;margin:24px auto 0;padding:28px}.mathStart h2{font-size:30px;margin:12px 0}.mathStart p{line-height:1.7}.mathBadge{display:inline-grid;place-content:center;width:66px;height:66px;border-radius:20px;background:#fff0d8;color:#775320;font-size:28px;font-weight:700}.planDescription{font-weight:700;color:#315f4d}.mathStart .primary{min-width:280px;min-height:60px;font-size:22px;margin:14px 0 0}.mathStart .status{font-size:13px;color:#657266;margin:12px 0}.mathShell>.parent{max-width:780px;margin:18px auto 0}.parentSettingsGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.mathShell footer{margin-top:14px}.mathShell .practice{min-height:0;padding:18px 24px}.mathShell .stage{display:block;min-height:0}.mathRoundHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.typeBadge{padding:8px 18px;background:#fff1d7;border-radius:12px;color:#71501e;font-weight:700}.mathRoundHeader .quiet{padding:8px 14px;min-height:44px}.mathWork{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:center}.mathPrompt{min-width:0}.mathPrompt>p:first-child{font-size:21px;font-weight:600}.mathPrompt .equation{font-family:"Times New Roman",Times,serif;font-size:clamp(38px,5.6vw,62px);margin:25px 0;line-height:1.6}.mathBlank{display:inline-block;line-height:1.1;padding:0 3px;color:#9c5a30;background:#fff1dd;border-radius:8px}.mathPrompt .auto-feedback{font-size:18px;line-height:1.7}.mathPrompt .notice{font-size:14px}.mathAnswer{display:grid;justify-items:center;min-width:0}.mathAnswer .answer-form{width:min(320px,100%);gap:10px;margin:0}.mathAnswer input{font:40px/1.2 "Times New Roman",Times,serif;min-height:62px;caret-color:transparent}.mathAnswer .number-key{min-height:56px;font-size:25px;background:#fffdf7}.mathAnswer .number-key[data-key=clear],.mathAnswer .number-key[data-key=back]{font-size:16px}.mathAnswer .primary{width:100%;min-height:54px;font-size:19px}.mathAnswer .answer{margin:0 0 18px}.mathAnswer details{font-size:14px;line-height:1.8}.mathAnswer details>summary{cursor:pointer;min-height:44px;line-height:44px}.mathAnswer .answer strong{font-family:"Times New Roman",Times,serif}.helpButton{border-style:dashed;background:transparent}.mathStart .muted{font-size:14px}
@media(min-width:650px) and (max-height:800px){.shell{padding-top:12px}.welcome h1{font-size:32px}.welcome p{margin:4px 0}.welcome img{width:70px;height:70px}.subject{padding:20px}.encouragement{margin:14px 0}.parent{margin-top:18px}.mathShell{padding-top:8px}.mathStart{margin-top:12px;padding:20px}.mathStart h2{font-size:28px}.mathShell .practice{padding:14px 20px}.mathRoundHeader{margin-bottom:8px}.mathAnswer .answer-form{gap:8px}.mathAnswer .number-key{min-height:48px;padding:7px}.mathAnswer input{min-height:54px}.mathAnswer .primary{min-height:50px}.mathAnswer .status:empty{display:none}.mathPrompt .equation{margin:18px 0}.mathShell footer{margin-top:10px}}
@media(max-width:649px){.subjects{grid-template-columns:1fr}.subject h2{font-size:22px}.welcome img{width:70px;height:70px}.mathTop h1{font-size:19px}.mathTop .homeLink{font-size:13px;padding:6px 8px}.mathWork{grid-template-columns:1fr;gap:12px}.mathPrompt .equation{margin:8px 0;font-size:40px}.mathPrompt .notice{display:none}.mathPrompt>p:first-child{font-size:18px;margin:6px 0}.mathPrompt .auto-feedback:empty{display:none}.mathAnswer .answer-form{max-width:330px}.mathStart{padding:22px 16px;margin-top:12px}.mathStart h2{font-size:25px}.mathStart .primary{min-width:0;width:100%}.parentSettingsGrid{grid-template-columns:1fr}}
@media(min-width:650px) and (orientation:landscape) and (max-height:700px){.mathStart>.eyebrow{display:none}.mathBadge{width:52px;height:52px;font-size:24px}.mathStart h2{margin:8px 0}.mathStart{padding:18px}}

/* Adult travel course has its own entry and independent progress. */
.familyEntry{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:24px;padding:20px 24px;background:#eaf0e4;border:1px solid #b4c9b8;border-radius:18px;text-decoration:none;color:#245c4b}.familyEntry small,.familyEntry strong,.familyEntry>span>span{display:block}.familyEntry small{font-size:13px}.familyEntry strong{font-size:23px;line-height:1.5;margin:5px 0}.familyEntry>span>span{font-size:15px;line-height:1.7}.familyGo{font-size:18px;font-weight:700;white-space:nowrap}@media(max-width:520px){.familyEntry{align-items:flex-start;flex-direction:column;padding:20px}.familyEntry strong{font-size:22px}}
