@charset "UTF-8";
[hidden]{display:none!important}
.account-entry{font-size:13px;color:var(--green);padding:9px 12px;border:1px solid var(--border);border-radius:20px;background:white}.account-panel{max-width:760px}.account-panel button,.user-row button,.user-create-grid button,.user-dialog button{min-height:48px;font-size:16px}.account-panel [role=status],.user-dialog [role=status],#user-create-status,#users-status{margin:15px 0;color:var(--green);line-height:1.8}.account-panel p{margin:14px 0}.session-agent{display:block;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.user-create-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;align-items:end}.user-create-grid>button{justify-self:start;margin:10px 0}.user-create-grid>[role=status]{grid-column:1/-1}.user-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-top:1px solid var(--border)}.user-row p{font-size:14px;margin:6px 0}.user-row small{font-size:12px;color:var(--muted)}.user-dialog{width:min(600px,94vw);max-height:90vh;overflow-y:auto;border:1px solid var(--border);border-radius:16px;padding:25px;color:inherit}.user-dialog::backdrop{background:#1d302d66}.user-dialog .section-heading{margin-top:0}.user-reset{margin-top:25px;padding-top:25px;border-top:1px solid var(--border)}.user-reset>button{margin-top:15px}.audit-row{display:grid;gap:7px;padding:18px 0;border-top:1px solid var(--border)}.audit-row small,.audit-row p{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.sidebar{overflow-y:auto}@media(max-width:700px){.user-create-grid{grid-template-columns:1fr}.user-row{align-items:flex-start;flex-wrap:wrap}.account-entry{font-size:11px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-dialog{padding:18px}}
/* Practice controls use generous touch targets for tablet learning. */
.practice-intro,.practice-run,.practice-score{background:white;border:1px solid var(--border);border-radius:14px;padding:24px}.practice-intro>p{margin:14px 0;color:#71816a;font-size:14px}.practice-intro>button{margin:8px 10px 8px 0;min-height:48px}.practice-kind{display:flex;align-items:center;gap:12px;margin:20px 0}.practice-kind select{min-height:48px;max-width:100%;font-size:16px}.practice-top{display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:13px;color:#73816b}.practice-top>span:last-child{text-align:right}.practice-progress{width:100%;height:6px;margin:17px 0;accent-color:#627f4e}.practice-knowledge{color:#7b886f;font-size:13px;margin:6px 0 12px}.practice-prompt{font-size:20px;line-height:1.8;font-weight:600;white-space:pre-line;overflow-wrap:anywhere}.practice-options{display:grid;gap:12px;margin:22px 0}.practice-option{min-height:54px;display:flex;align-items:center;gap:12px;padding:14px 16px;text-align:left;font-size:17px;line-height:1.7;border:2px solid #e5e9de;touch-action:manipulation;white-space:pre-line}.practice-option.chosen{background:#edf3e6;border-color:#6c8957;color:#355b3d}.option-marker{min-width:23px;font-weight:650}.option-marker:empty{display:none}.option-check{margin-left:auto;min-width:16px;font-weight:700}.match-row{padding:15px;border:1px solid var(--border);border-radius:10px;margin:15px 0}.match-row legend{font-size:16px;padding:0 6px}.match-row>div{display:flex;gap:9px;flex-wrap:wrap}.match-row button{flex:1;justify-content:center;min-width:100px}.practice-controls{display:flex;gap:10px;flex-wrap:wrap;margin:19px 0}.practice-controls>button,.practice-controls>a{min-height:48px;font-size:15px}.practice-note,.practice-sync{font-size:12px!important;color:#7d8977;margin:13px 0!important;line-height:1.8}.practice-retry-sync{font-size:12px}.practice-score h3{font-size:24px;margin:8px 0}.practice-score p{color:#7d8977;font-size:14px}.practice-reviews{display:grid;gap:16px}.practice-review{border:1px solid var(--border);border-left:4px solid #82956f;border-radius:10px;background:white;padding:20px}.practice-review.incorrect{border-left-color:#c2924e}.practice-review h3{font-size:17px;margin:14px 0}.practice-review p{font-size:14px;margin:9px 0;line-height:1.85;overflow-wrap:anywhere;white-space:pre-line}.practice-review .answer-correct{color:#42664f;font-weight:600}.practice-source{border-top:1px solid #edf0e8;padding-top:13px;font-size:12px!important;color:#8a947f}.practice-source a{text-decoration:underline;text-underline-offset:3px}.practice-filters{flex-wrap:wrap}.practice-filters input{flex:1;min-width:180px}.practice-filters input,.practice-filters select{font-size:16px;min-height:48px}.practice-subject-name{color:#5f7852;min-width:54px;font-size:13px}.practice-paper-library{margin-top:30px}.practice-paper-library p{margin:12px 0}.practice-history{margin-top:18px}.practice-history-item{background:white;border:1px solid var(--border);border-radius:10px;padding:16px}.practice-history-item>summary{cursor:pointer;line-height:1.8}.practice-history-item>summary small{display:block;color:#8a947f;font-size:11px}.practice-history-item .practice-review{margin-top:14px}.practice-weak{display:flex;gap:9px;flex-wrap:wrap;margin:18px 0}.practice-weak a{padding:10px;min-height:44px}.practice-history .practice-top{font-size:12px}@media(max-width:1100px){.practice-intro,.practice-run,.practice-score{padding:18px}.practice-prompt{font-size:19px}.practice-top{align-items:flex-start}.practice-top>span:last-child{max-width:55%}}@media(max-width:700px){.practice-option{font-size:17px;padding:13px 12px}.practice-controls{justify-content:space-between}.practice-review{padding:15px}.practice-filters>*{width:100%}.match-row{padding:10px}.match-row button{font-size:15px;min-width:85px}.practice-subject-name{min-width:42px}.practice-intro,.practice-run{padding:15px}.practice-review .practice-top{flex-direction:column;align-items:flex-start}}
:root{font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#29362e;background:#f8f9f5;font-synthesis:none;--green:#42664f;--muted:#7a847b;--border:#e6e9e1;--paper:#fff;--sage:#e9f0e3;--gold:#e6b869}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a:hover{color:var(--green)}:focus-visible{outline:3px solid #c39b59;outline-offset:4px}button,input,select,textarea{border:1px solid var(--border);border-radius:9px;background:white;color:inherit}button{padding:10px 15px}button:hover{background:#f0f3ec}input,select{padding:9px 11px}textarea{padding:15px;resize:vertical;line-height:1.8;width:100%}h1,h2,h3,p{margin:0}h1{font-size:34px;font-weight:650;letter-spacing:-1px;line-height:1.5}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:17px;line-height:1.55}p{line-height:1.85}.skip{position:fixed;left:20px;top:-60px;background:white;padding:10px;z-index:20}.skip:focus{top:10px}.sidebar{width:234px;position:fixed;inset:0 auto 0 0;background:#f2f4ec;border-right:1px solid #e5e8df;padding:36px 21px 20px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;white-space:nowrap}.brand small{display:block;font-size:9px;letter-spacing:1.65px;color:#7c8876;font-weight:500;margin-top:5px}.grade-label{font-size:12px;color:#77836f;padding:28px 8px 27px;display:flex;align-items:center;gap:7px}.status-dot{width:6px;height:6px;background:#7b956a;border-radius:50%}nav{display:flex;flex-direction:column;gap:7px}nav a{padding:13px 15px;display:flex;gap:13px;align-items:center;color:#6c776a;font-size:14px;border-radius:9px}nav a.active{background:#e2e9da;color:#365b40;font-weight:600}.nav-icon{width:20px;font-size:22px;line-height:22px;font-weight:400}.sidebar-note{margin:60px 12px 20px;color:#7c8d70}.sidebar-note>span{font-size:15px;color:#596e4c}.sidebar-note p{font-size:12px;margin-top:11px;line-height:2}.sidebar-note svg{width:148px;margin-top:12px}.game-entry{margin-top:auto;display:flex;gap:10px;align-items:center;padding:16px 8px;border-top:1px solid #dfe5d5;font-size:13px;color:#79836f}.game-entry>span:first-child{font-size:28px;color:#839474}.game-entry>span:last-child{margin-left:auto}.game-entry small{display:block;font-size:10px;color:#929b88;margin-top:5px}.sidebar-footer{font-size:10px;color:#9ba28f;margin:12px 8px 0}.site-body{margin-left:234px}.topbar{height:89px;display:flex;align-items:center;justify-content:space-between;padding:0 46px;border-bottom:1px solid #eceee7;background:#fafbf7}.breadcrumb{font-size:12px;color:#818a7d}.topbar-right{display:flex;align-items:center;gap:20px;font-size:12px;color:#7e887b}.avatar{width:34px;height:34px;border-radius:50%;background:#e5e9da;color:#6a7a53;display:grid;place-items:center;font-size:13px}.mobile-brand{display:none}main{padding:33px 46px 30px;max-width:1420px;margin:auto;min-height:calc(100vh - 180px)}.eyebrow{font-size:11px;font-weight:650;letter-spacing:2px;color:#8b9b7a;margin-bottom:9px}.intro{color:#889181;font-size:13px;margin-top:9px}.hero{background:#edf1e4;border:1px solid #e3e9d8;border-radius:19px;display:flex;align-items:center;position:relative;overflow:hidden;margin:0 0 28px;min-height:254px;padding:33px 37px}.hero-copy{position:relative;z-index:1;flex:1}.hero h1{font-size:35px;color:#35513e;letter-spacing:1px}.hero p{font-size:13px;color:#7e8e70;margin:12px 0 21px;max-width:370px}.hero img{width:39%;max-width:365px;align-self:center;margin:-20px 0 -20px 10px}.button-primary{display:inline-flex;align-items:center;justify-content:center;gap:22px;padding:12px 19px;background:#42664f;color:white;border-color:#42664f;border-radius:8px;font-size:13px}.button-primary:hover{background:#34563f;color:white}.button-light{display:inline-flex;align-items:center;gap:13px;border:1px solid var(--border);padding:10px 16px;border-radius:8px;font-size:13px;background:white}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:28px 0 17px;gap:15px}.section-heading p,.section-heading>a{font-size:12px;color:#939b8c}.section-heading h2 span{font-size:11px;color:#98a08e;margin-left:12px;font-weight:400}.section-heading>a:hover{color:var(--green)}.study-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.today-card{background:white;border:1px solid var(--border);border-radius:13px;overflow:hidden;display:flex;flex-direction:column;min-height:210px;transition:transform .15s,border-color .15s}.today-card:hover{transform:translateY(-3px);border-color:#b9c7ac}.today-card-top{display:flex;align-items:center;justify-content:space-between;padding:20px 21px 16px}.subject-emblem{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-family:Georgia,"STSong",serif;font-size:20px}.color-ochre{--tint:#f7eee0;--accent:#a4824d}.color-sage{--tint:#e9f0e4;--accent:#6d8b51}.color-blue{--tint:#e8eff6;--accent:#6486a2}.color-violet{--tint:#eeebf5;--accent:#8d7da6}.color-coral{--tint:#f6eae4;--accent:#ad8170}.color-teal{--tint:#e5f1eb;--accent:#6b9582}.subject-emblem{background:var(--tint);color:var(--accent)}.pill{display:inline-block;padding:4px 8px;border-radius:5px;font-size:10px;background:#f4f5f0;color:#97a08e;white-space:nowrap}.today-card-content{padding:0 21px;flex:1}.today-card-content small{font-size:11px;color:var(--accent)}.today-card-content h3{font-size:17px;margin:8px 0 13px;line-height:1.65;overflow-wrap:anywhere}.card-foot{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#9ba28f;padding:13px 21px;border-top:1px solid #f0f2eb}.card-foot b{font-size:12px;color:var(--accent);font-weight:500}.quiet-note{display:flex;align-items:center;gap:10px;padding:14px 19px;border:1px dashed #dfe4d5;border-radius:9px;margin-top:17px;color:#929a86;font-size:12px;background:#fafbf7}.quiet-note span:first-child{font-size:18px;color:#a1af8c}.subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.subject-card{background:white;border:1px solid var(--border);border-radius:12px;padding:19px;transition:border-color .15s}.subject-card:hover{border-color:#b3c0aa}.subject-card .row{display:flex;gap:12px;align-items:center}.subject-card h3{font-size:15px}.subject-card small{font-size:10px;color:#98a08f;display:block;margin-top:4px}.subject-card .description{font-size:11px;color:#939c88;margin:14px 0}.progress-track{height:4px;border-radius:5px;background:#eff2e9;overflow:hidden}.progress-track progress{width:100%;height:4px;display:block;appearance:none;vertical-align:top}progress::-webkit-progress-bar{background:#eff2e9}progress::-webkit-progress-value{background:#a7ba8b}progress::-moz-progress-bar{background:#a7ba8b}.progress-label{font-size:10px;color:#a0a78f;display:flex;justify-content:space-between;margin-top:8px}.page-footer{border-top:1px solid #e8ece2;margin:0 46px;padding:20px 0 25px;display:flex;justify-content:space-between;font-size:10px;color:#a2aa96;gap:14px}.page-heading{margin-bottom:28px}.page-heading h1{font-size:30px}.page-heading .intro{max-width:750px}.filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:23px}.search{max-width:420px;flex:1;min-width:200px;background:white;padding:12px 15px;font-size:13px}.empty{border:1px dashed #d9e0ce;border-radius:13px;padding:36px;text-align:center;color:#929c86;font-size:13px;background:#fafbf6}.empty h3{color:#5f7154;margin-bottom:9px}.subjects-head{display:flex;align-items:center;gap:15px;margin-bottom:25px}.subjects-head .subject-emblem{width:53px;height:53px;font-size:28px}.subjects-head h1{font-size:28px;display:inline-block;margin-right:12px}.subjects-head p{font-size:12px;color:#929c86;margin-top:3px}.classroom{display:grid;grid-template-columns:266px minmax(0,1fr);gap:22px;align-items:start}.chapter-list{border:1px solid var(--border);background:white;border-radius:12px;max-height:790px;overflow:auto}.chapter-list details{border-bottom:1px solid #ecf0e6}.chapter-list details:last-child{border-bottom:0}.chapter-list summary{padding:17px 15px;font-size:12px;font-weight:600;cursor:pointer;line-height:1.7;color:#63735a}.lesson-link{display:flex;gap:9px;align-items:baseline;padding:10px 14px 10px 24px;font-size:12px;color:#8d9780;line-height:1.75}.lesson-link>span:first-child{color:#b2baa7;font-size:10px;min-width:14px}.lesson-link.active{background:#edf3e6;color:#47643d}.lesson-link.active>span:first-child{color:#6d8b51}.lesson-link:hover{background:#f6f8f1}.class-main{min-width:0}.lesson-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.lesson-title h2{font-size:23px;line-height:1.7}.lesson-title small{font-size:11px;white-space:nowrap;color:#99a18e}.lesson-subline{font-size:11px;color:#9aa38b;margin:5px 0 17px}.tabs{display:flex;gap:22px;border-bottom:1px solid var(--border);margin-bottom:17px}.tabs button{border:0;border-radius:0;background:none;font-size:13px;color:#8b977d;padding:12px 2px}.tabs button.active{border-bottom:2px solid #627f4e;color:#42664f;font-weight:600}.video-shell{position:relative;background:#1e2c24;border-radius:12px;overflow:hidden;aspect-ratio:16/9;display:grid;place-items:center}.video-shell video,.video-shell iframe{width:100%;height:100%;display:block;border:0}.video-shell .empty{border:0;background:transparent;color:#b8c7ab}.video-shell .empty h3{color:#e2ead9}.video-shell .empty a{color:#e7ddb2}.playback-error{padding:12px 15px;background:#fff5e3;color:#927745;border:1px solid #f1e1c0;border-radius:9px;margin-top:12px;font-size:12px}.playback-error button{font-size:11px;margin-left:7px}.source-select{display:flex;gap:10px;align-items:center;margin:15px 0;font-size:12px;color:#8e9980}.source-select select{min-width:0;width:100%;font-size:12px;padding:10px}.media-foot{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#9ca78e;margin-top:10px;line-height:1.7}.media-foot a{text-decoration:underline;text-underline-offset:3px}.lesson-actions{display:flex;gap:10px;margin:19px 0;flex-wrap:wrap}.lesson-actions button{font-size:12px}.lesson-actions .done{background:#e3edda;color:#5d7949;border-color:#d2dfc6}.study-steps{background:#f0f4e8;border-radius:10px;padding:16px 18px;margin-top:20px;font-size:12px;color:#7e8f6c;line-height:1.9}.study-steps strong{font-size:13px;color:#586d48;font-weight:600;display:block;margin-bottom:5px}.notes-box{background:white;border:1px solid var(--border);padding:20px;border-radius:12px;margin-top:20px}.notes-box h3{font-size:14px;margin-bottom:12px}.notes-box textarea{font-size:13px;min-height:125px;background:#fcfdf9}.notes-box small{display:block;color:#a1aa94;font-size:10px;margin-top:8px}.reader-toolbar{display:flex;align-items:center;gap:9px;justify-content:center;margin:15px 0;flex-wrap:wrap;font-size:12px}.reader-toolbar input{width:72px;padding:8px}.reader-toolbar button{font-size:12px}.book-page{width:100%;height:auto;display:block;background:white;border:1px solid var(--border);min-height:180px;border-radius:8px}.reader-caption{font-size:11px;color:#9ba58f;text-align:center;margin-bottom:16px}.record-list{display:grid;gap:12px}.record{border:1px solid var(--border);border-radius:11px;padding:20px;background:white;display:flex;align-items:center;gap:15px}.record>a{flex:1}.record h3{font-size:15px}.record p{font-size:12px;color:#939f86;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}.record .tag{font-size:11px;color:#6f855b}.source-box{border:1px solid var(--border);background:white;padding:24px;border-radius:12px;margin-bottom:16px}.source-box h2{font-size:17px;margin-bottom:14px}.source-box p,.source-box li{font-size:12px;color:#849174;line-height:2}.source-box ul{padding-left:19px;margin:10px 0}.source-box a{color:#5d7f4a;text-decoration:underline;text-underline-offset:3px}.source-table{width:100%;border-collapse:collapse;font-size:12px}.source-table th,.source-table td{text-align:left;padding:13px 8px;border-bottom:1px solid #edf0e7;line-height:1.7}.source-table th{color:#98a289;font-weight:500;font-size:11px}.source-table td{color:#758466}.library-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:#869679;font-size:11px;margin-top:15px;line-height:1.8}.toast{position:fixed;bottom:26px;left:calc(50% + 117px);transform:translateX(-50%);padding:13px 23px;border-radius:10px;background:#385640;color:white;font-size:13px;box-shadow:0 4px 20px #22331b20;z-index:30}.hidden,[hidden]{display:none!important}
@media(min-width:1550px){main{padding-top:45px}.hero{min-height:290px}.hero h1{font-size:42px}.hero p{font-size:14px}.study-grid{gap:22px}.today-card{min-height:225px}}
@media(max-width:1150px){.sidebar{width:204px;padding-left:17px;padding-right:17px}.brand{font-size:18px}.site-body{margin-left:204px}.topbar{padding:0 28px}main{padding:27px 28px}.page-footer{margin:0 28px}.hero{padding:28px}.hero h1{font-size:29px}.hero img{width:35%;margin-right:-25px}.hero p{max-width:320px}.classroom{grid-template-columns:220px minmax(0,1fr);gap:17px}.today-card-content h3{font-size:15px}.toast{left:calc(50% + 102px)}}
@media(max-width:900px){.sidebar{width:172px;padding:28px 12px 15px}.brand{font-size:15px;gap:7px}.brand img{width:32px;height:32px}.brand small{font-size:7px;letter-spacing:1.2px}.grade-label{font-size:10px;padding-left:5px}nav a{padding:12px 10px;font-size:12px;gap:8px}.sidebar-note{margin:48px 8px 15px}.site-body{margin-left:172px}.topbar{height:74px}main{padding:25px 22px}.hero{padding:25px}.hero img{width:31%;margin-right:-25px}.hero h1{font-size:27px}.hero p{font-size:12px;max-width:300px}.study-grid{gap:11px}.today-card-top{padding:16px}.today-card-content{padding:0 16px}.card-foot{padding:12px 16px}.subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.classroom{grid-template-columns:1fr}.chapter-list{max-height:280px}.classroom .class-main{grid-row:1}.toast{left:calc(50% + 86px)}.section-heading h2 span{display:none}.page-footer{flex-wrap:wrap}}
@media(max-width:640px){.sidebar{position:fixed;inset:auto 0 0;width:100%;height:66px;padding:0;background:#fafbf7;border-right:0;border-top:1px solid #e1e6d7}.brand,.grade-label,.sidebar-note,.game-entry,.sidebar-footer{display:none}nav{flex-direction:row;justify-content:space-around;gap:0;height:100%}nav a{display:flex;flex-direction:column;justify-content:center;gap:3px;border-radius:0;width:25%;font-size:10px;padding:4px 0}nav a.active{background:#edf2e6}.nav-icon{font-size:20px}.site-body{margin-left:0;padding-bottom:66px}.topbar{padding:0 20px;height:67px}.mobile-brand{display:block;font-size:17px;font-weight:700;letter-spacing:1px}.breadcrumb{display:none}.topbar-right{font-size:10px;gap:10px}.avatar{width:29px;height:29px;font-size:11px}main{padding:24px 18px;min-height:70vh}.hero{min-height:244px;border-radius:15px;padding:25px 23px;align-items:flex-start;margin-bottom:25px}.hero h1{font-size:27px;letter-spacing:0}.hero .eyebrow{font-size:9px}.hero p{font-size:12px;max-width:220px;margin:10px 0 18px;position:relative;z-index:1}.hero img{width:45%;position:absolute;right:-5px;bottom:10px;margin:0;opacity:.68}.hero .button-primary{padding:11px 15px;font-size:12px}.section-heading{margin:25px 0 14px;align-items:baseline}.section-heading h2{font-size:19px}.section-heading>a{font-size:11px}.section-heading p{font-size:10px}.study-grid{grid-template-columns:1fr;gap:12px}.today-card{min-height:auto;display:grid;grid-template-columns:67px minmax(0,1fr);align-items:center;border-radius:12px}.today-card-top{padding:18px 0 18px 16px}.today-card-top .pill{display:none}.today-card-content{padding:14px 10px 9px 0}.today-card-content h3{font-size:15px;margin:5px 0;line-height:1.5}.today-card-content small{font-size:10px}.card-foot{grid-column:2;justify-content:flex-start;gap:25px;border-top:0;padding:0 10px 15px 0}.quiet-note{font-size:11px;padding:12px}.subject-grid{gap:11px}.subject-card{padding:15px 13px}.subject-card .description{font-size:10px;min-height:36px;line-height:1.8}.subject-card .subject-emblem{width:31px;height:31px;font-size:18px;flex-shrink:0}.subject-card .row{gap:8px}.subject-card h3{font-size:14px}.subject-card small{font-size:9px}.page-footer{margin:0 18px;padding:18px 0 22px;font-size:9px;gap:9px}.page-footer>span:nth-child(2){display:none}.page-heading h1{font-size:27px}.page-heading .intro{font-size:12px}.subjects-head h1{font-size:26px}.subjects-head .subject-emblem{width:45px;height:45px}.subjects-head p{font-size:10px}.lesson-title h2{font-size:21px}.lesson-title{align-items:flex-start;flex-direction:column;gap:3px}.lesson-title small{font-size:10px}.media-foot{font-size:9px}.notes-box{padding:16px}.record{padding:16px;gap:10px}.record h3{font-size:13px}.record p{font-size:11px}.record .tag{font-size:9px;white-space:nowrap}.source-box{padding:17px}.source-table{font-size:10px}.source-table th,.source-table td{padding:10px 5px}.source-box p,.source-box li{font-size:11px}.toast{left:50%;bottom:85px;max-width:90%;width:max-content;font-size:12px}.button-light{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.ai-layout{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(0,1.25fr);gap:22px;align-items:start}.ai-layout .source-box{margin:0}.ai-layout p,.ai-admin p,#ai-gate p{font-size:14px}.ai-photo-actions{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.ai-photo-actions button,.ai-photo-actions label,.ai-followup button,.ai-admin button,#ai-gate button,.ai-feedback button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer}.ai-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.ai-photo-preview{border:1px dashed #cbd6c0;border-radius:12px;background:#f6f8f2;min-height:150px;display:grid;place-items:center;padding:10px}.ai-photo-preview p{padding:20px;color:var(--muted)}.ai-photo-preview img{width:100%;max-height:420px;object-fit:contain;display:block}.ai-field{display:grid;gap:9px;margin:19px 0;font-size:15px;font-weight:500}.ai-field input,.ai-field select{width:100%;min-height:48px;font-size:16px;font-weight:400}.ai-thread-photo{display:block;max-width:100%;width:auto;max-height:260px;object-fit:contain;margin:18px auto;border:1px solid var(--border);border-radius:10px}.ai-messages{display:grid;gap:17px;margin:20px 0}.ai-message{border:1px solid var(--border);border-radius:12px;padding:20px;overflow-wrap:anywhere}.ai-user{background:#edf3e7;margin-left:22px}.ai-assistant{background:#fff}.ai-message>strong{font-size:15px;color:var(--green)}.ai-message small{font-size:11px;color:var(--muted);font-weight:400}.ai-message p,.ai-message li{white-space:pre-wrap;line-height:1.95;font-size:16px}.ai-message p{margin:8px 0}.ai-answer-part{margin:18px 0}.ai-answer-part h4{font-size:14px;margin:0 0 7px;color:#667d56}.ai-answer-part ol{padding-left:23px;margin:0}.ai-answer-part li{padding:3px 0 7px}.ai-knowledge{font-size:12px!important;color:var(--muted)}.ai-job-status{font-size:14px;color:var(--green);padding:14px 0}.ai-followup{border-top:1px solid var(--border);padding-top:20px;margin-top:15px}.ai-quick-questions{display:flex;flex-wrap:wrap;gap:9px;margin:15px 0}.ai-quick-questions button{font-size:14px;text-align:left;justify-content:flex-start}.ai-followup form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.ai-followup form .ai-field{margin:5px 0}.ai-followup form>button{margin-bottom:5px}.ai-feedback{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--border);padding-top:20px;margin-top:22px;font-size:14px}.ai-feedback [aria-pressed=true]{background:var(--sage);border-color:var(--green)}.ai-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ai-history-item{display:grid;gap:8px;text-align:left;padding:18px;min-height:110px}.ai-history-item>span,.ai-history-item>small{font-size:12px;color:var(--muted)}.ai-history-item>strong{font-size:15px;font-weight:500;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.ai-admin{max-width:780px}.ai-admin-checks{border-top:1px solid var(--border);margin-top:25px;padding-top:23px}.ai-enable{display:flex;align-items:center;gap:12px;margin:25px 0;font-size:16px}.ai-enable input{width:22px;height:22px}.ai-admin [role=status],#ai-gate [role=status],#ai-followup-status{font-size:14px;color:var(--green);line-height:1.8;margin:14px 0;white-space:pre-wrap}.ai-admin a{text-decoration:underline;text-underline-offset:3px}.ai-compose{position:sticky;top:20px}.page-footer{flex-wrap:wrap}@media(max-width:1100px){.ai-layout{grid-template-columns:1fr}.ai-compose{position:static}.ai-layout .source-box{padding:22px}.ai-photo-preview img{max-height:330px}}@media(max-width:700px){.ai-layout .source-box{padding:17px}.ai-history{grid-template-columns:1fr}.ai-message{padding:15px}.ai-user{margin-left:12px}.ai-followup form{grid-template-columns:1fr}.ai-followup form>button{justify-self:start}.ai-photo-actions{gap:9px}.ai-layout p,.ai-admin p,#ai-gate p{font-size:14px}.ai-message p,.ai-message li{font-size:16px}.ai-admin .section-heading{flex-wrap:wrap}.sidebar nav a{white-space:nowrap}}
.menu-toggle,.menu-close{display:none}.course-directory{min-width:0}.course-directory>summary{display:none}#site-navigation{padding:0;border:0;background:#f2f4ec}#site-navigation::backdrop{background:#20322a80}.book-page,#ai-conversation{scroll-margin-top:calc(var(--study-header-height,64px) + 108px)}
@media(max-width:1199px){
  .site-body{margin-left:0;padding-bottom:env(safe-area-inset-bottom,0px)}
  body>.sidebar{display:none}
  #site-navigation{position:fixed;inset:0 auto 0 0;margin:0;width:min(340px,88vw);max-width:88vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;overflow:hidden}
  #site-navigation .sidebar{display:flex;position:static;inset:auto;width:100%;height:100%;padding:calc(18px + env(safe-area-inset-top,0px)) 20px calc(18px + env(safe-area-inset-bottom,0px));border:0;overflow:hidden}
  #site-navigation .brand{display:flex;font-size:20px;margin:12px 0 0}
  #site-navigation .brand img{width:40px;height:40px}#site-navigation .brand small{font-size:9px;letter-spacing:1.65px}
  #site-navigation .grade-label{display:flex;padding:18px 6px;font-size:13px}
  #site-navigation nav{display:flex;flex-direction:column;justify-content:flex-start;gap:6px;flex:1;min-height:0;height:auto;overflow-y:auto;overscroll-behavior:contain}
  #site-navigation nav a{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:auto;min-height:48px;padding:12px 15px;gap:12px;font-size:16px;border-radius:9px;flex-shrink:0}
  #site-navigation .sidebar-note{display:none}#site-navigation .game-entry{display:flex;margin-top:18px;font-size:14px;min-height:60px;flex-shrink:0}#site-navigation .sidebar-footer{display:block}
  .menu-close{display:inline-flex;align-self:flex-end;justify-content:center;align-items:center;min-height:48px;min-width:100px;font-size:16px;flex-shrink:0}
  .menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:64px;min-height:48px;font-size:16px;flex-shrink:0}
  .topbar{position:sticky;top:0;z-index:20;height:auto;min-height:72px;padding:calc(8px + env(safe-area-inset-top,0px)) max(20px,env(safe-area-inset-right,0px)) 8px max(20px,env(safe-area-inset-left,0px));gap:14px}
  .mobile-brand{display:block;font-size:18px;font-weight:650;white-space:nowrap;flex-shrink:0}.breadcrumb{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
  .topbar-right{margin-left:auto;min-width:0;gap:10px}.account-entry{max-width:min(32vw,240px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:44px;display:flex;align-items:center;font-size:14px}
  main{padding:26px max(24px,env(safe-area-inset-right,0px)) 28px max(24px,env(safe-area-inset-left,0px));min-height:calc(100dvh - 150px)}
  .page-footer{margin:0 24px;padding-bottom:calc(22px + env(safe-area-inset-bottom,0px))}.toast{left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));max-width:90vw}
  .classroom{display:flex;flex-direction:column;gap:20px}.class-main{width:100%}.course-directory{width:100%;border:1px solid var(--border);border-radius:12px;background:white}
  .course-directory>summary{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:52px;padding:12px 17px;cursor:pointer;color:var(--green);font-size:16px;font-weight:600;list-style:none}
  .course-directory>summary::-webkit-details-marker{display:none}.course-directory>summary span{font-size:14px;font-weight:400}.course-directory[open]>summary span{font-weight:600}
  .course-directory .chapter-list{max-height:45vh;max-height:45dvh;border:0;border-top:1px solid var(--border);border-radius:0 0 12px 12px;overscroll-behavior:contain}
  .classroom .class-main{grid-row:auto}.chapter-list summary{font-size:16px;min-height:48px;padding:14px 17px}.lesson-link{font-size:16px;min-height:48px;padding:12px 18px;line-height:1.6}
  .reader-toolbar{position:sticky;top:calc(var(--study-header-height,72px) + 6px);z-index:10;background:#f8f9f5f5;border:1px solid var(--border);border-radius:12px;padding:10px;gap:10px;box-shadow:0 3px 9px #23382a0a}
  .reader-toolbar label{display:flex;align-items:center;gap:7px;white-space:nowrap}.reader-toolbar input{width:78px}.reader-caption{font-size:14px;line-height:1.8}.lesson-title h2{font-size:25px}.lesson-subline{font-size:14px}
  .user-dialog{position:fixed;inset:calc(var(--study-viewport-top,0px) + 16px) 16px auto;margin:0 auto;max-height:calc(var(--study-visible-height,100dvh) - 32px);overscroll-behavior:contain}
  .source-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.source-table th,.source-table td{font-size:14px;min-width:88px}.record{min-width:0;flex-wrap:wrap}.record>div,.record>a{min-width:0;overflow-wrap:anywhere}
}
@media(max-width:1199px),(any-pointer:coarse){
  button,.button-primary,.button-light{min-height:48px}input:not([type=checkbox]),select,textarea{font-size:16px;min-height:48px}.source-select select,.notes-box textarea,.reader-toolbar input,.reader-toolbar button{font-size:16px}
  .tabs{gap:20px}.tabs button{font-size:16px;min-height:48px;padding:12px 4px}.lesson-actions button,.lesson-actions a{font-size:15px;min-height:48px}
  .source-select{font-size:15px}.media-foot{font-size:13px;flex-wrap:wrap;overflow-wrap:anywhere}.notes-box h3{font-size:17px}.notes-box small{font-size:13px;line-height:1.8}.study-steps{font-size:15px}.study-steps strong{font-size:16px}
  .intro,.hero p{font-size:16px}.source-box p,.source-box li{font-size:15px}.practice-note,.practice-sync{font-size:14px!important}.practice-intro>p{font-size:16px}.practice-review p{font-size:16px}.practice-source{font-size:14px!important}
  .today-card-content h3{font-size:18px}.today-card-content small,.card-foot,.subject-card small,.subject-card .description,.progress-label{font-size:13px}.subject-card h3{font-size:18px}.today-card-top .pill{font-size:12px}
  .ai-layout .ai-message p,.ai-layout .ai-message li{font-size:16px}.ai-layout .ai-knowledge{font-size:14px!important}.ai-quick-questions button{font-size:16px}
}
.practice-figure{margin:18px 0;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fff}.practice-figure img{display:block;width:100%;max-width:720px;height:auto;margin:auto;object-fit:contain}.practice-figure a{display:block;min-height:44px}.practice-figure figcaption{font-size:13px;color:#65745d;line-height:1.8;margin-top:8px}.practice-option-content{flex:1;min-width:0}.practice-option-figure{display:block;margin:8px 0}.practice-option-figure img{display:block;max-width:100%;width:auto;height:auto;max-height:240px}.practice-option-originals{margin:16px 0}.practice-option-originals summary{min-height:44px;cursor:pointer;line-height:44px}.practice-review .practice-figure{max-width:760px}.practice-review h3{white-space:pre-line}
.exam-setup .ai-field{max-width:600px}.exam-knowledge{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:360px;overflow:auto;margin:14px 0}.exam-knowledge-item{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--border);border-radius:9px;line-height:1.5;cursor:pointer}.exam-knowledge-item input{width:20px;height:20px;flex:none;accent-color:#627f4e}.exam-knowledge-item small{display:block;color:#788675;margin-top:3px}.practice-score+.practice-reviews{margin-top:20px}.practice-score li{line-height:1.8}.practice-score h2 small{font-size:14px;font-weight:400}
.scratchpad{margin:18px 0;padding:14px;border:1px solid var(--border);border-radius:10px;background:#fafbf8}.scratchpad summary{min-height:44px;line-height:44px;cursor:pointer;font-weight:600}.scratchpad-tools{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.scratchpad-tools button{min-height:44px}.scratchpad-tools button[aria-pressed=true]{background:#e4efdb;border-color:#6c8957}.scratchpad-sheet{display:grid;background:#fff;border:1px solid #dce3d7;border-radius:8px;overflow:hidden}.scratchpad-sheet canvas{grid-area:1/1;display:block;width:100%;height:auto;aspect-ratio:1000/620}.scratchpad-sheet [data-figure]{pointer-events:none}.scratchpad-sheet [data-ink]{touch-action:none;cursor:crosshair}.exam-diagram-preview{margin:14px 0;color:#788675;font-size:13px}.exam-diagram-preview canvas{display:block;width:100%;max-width:760px;height:auto;border:1px solid var(--border);border-radius:8px;background:#fff}.exam-record{width:100%;text-align:left;cursor:pointer}
.question-chat{margin:16px 0}.question-chat summary{display:inline-flex;align-items:center;min-height:48px;padding:8px 14px;border:1px solid var(--border);border-radius:9px;background:#fff;cursor:pointer}.question-chat-body{margin-top:12px;padding:15px;border:1px solid var(--border);border-radius:10px;background:#fafbf8}.question-chat-body label{display:block;font-size:14px}.question-chat-body textarea{display:block;width:100%;margin-top:8px;resize:vertical}.question-chat-messages{display:grid;gap:10px;max-height:420px;overflow:auto}.question-chat-message{padding:12px;border-radius:9px;background:#fff}.question-chat-user{background:#edf3e6}.question-chat-message p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}.question-chat-body .practice-controls{margin:12px 0}
@media(max-width:900px){.topbar #current-date,.breadcrumb{display:none}.study-grid{grid-template-columns:1fr}.today-card{min-height:auto}.today-card-top{padding:18px}.today-card-content{padding:0 18px}.card-foot{padding:14px 18px}.ai-history{grid-template-columns:1fr}.ai-followup form{grid-template-columns:1fr}.ai-followup form>button{justify-self:start}.hero img{width:34%;margin:0}.hero h1{font-size:29px}.section-heading{flex-wrap:wrap}.practice-top{gap:12px}.page-heading .intro{font-size:16px}}
@media(max-width:640px){main{padding:22px 16px}.topbar{padding-inline:12px;gap:9px}.mobile-brand{font-size:16px}.account-entry{max-width:28vw}.reader-toolbar{justify-content:flex-start}.reader-toolbar label{order:2;width:100%;justify-content:center}.page-footer{margin-inline:16px}.subject-grid{grid-template-columns:1fr}.hero .button-primary{font-size:15px}.source-box p,.source-box li{font-size:14px}}
@media(hover:none){.today-card:hover{transform:none}}
.study-menu-open,.study-menu-open body{overflow:hidden}

/* One semester selector and the same learning layout for every grade. */
.semester-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}.semester-heading h1{margin-right:auto}.semester-picker{display:flex;align-items:center;gap:12px;flex-shrink:0;font-size:15px;color:var(--muted)}.semester-picker select{min-width:190px;min-height:48px;font:inherit;color:#29362e;background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 14px}.subjects-head .semester-picker{margin-left:auto}.subjects-head{flex-wrap:wrap}
@media(max-width:700px){.semester-heading{align-items:stretch;flex-direction:column;gap:12px}.semester-picker{align-self:flex-start;flex-wrap:wrap;gap:8px}.semester-picker select{min-width:180px}.subjects-head .semester-picker{flex-basis:100%;margin-left:0}.semester-heading h1{margin-bottom:0}}
.past-exam-page{display:block;width:100%;height:auto;margin:1rem auto;border:1px solid #e0e5d9;border-radius:12px;background:#fff}
.past-exam-material{padding:1rem 1.2rem;margin:1rem 0;background:#f5f7f1;border-radius:12px}.past-exam-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:1.05rem;line-height:1.75}.past-exam-prompt{margin:1rem 0;font-weight:600}.past-exam-figure{display:block;max-width:100%;height:auto;margin:1rem auto}.past-exam-original{margin:1rem 0;color:#5a715a}.past-exam-original summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.past-exam-option-content{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;min-width:0;max-width:100%}.past-exam-option-content .past-exam-figure{margin:0;max-width:100%}.past-exam-review-options{display:grid;gap:1rem;margin:1rem 0}
.past-exam-answer{margin:1rem 0}.past-exam-answer fieldset{border:0;padding:0;margin:0}.past-exam-answer legend{font-weight:700;margin-bottom:.75rem}.past-exam-answer textarea,.past-exam-answer input{font-size:16px}.past-exam-question .practice-controls button{min-height:48px}
.past-exam-graph{display:block;width:100%;max-width:800px;height:auto;border:1px solid #aeb9c7;background:#fff;border-radius:8px;touch-action:none;user-select:none}
.past-exam-filters{display:flex;flex-wrap:wrap;gap:16px;margin:0 0 24px}.past-exam-filters label{display:grid;gap:8px;min-width:170px;flex:1;max-width:260px;color:var(--muted);font-size:14px}.past-exam-filters select{width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--border);border-radius:12px;background:#fff;color:#29362e;font:inherit;font-size:16px}.past-exam-filters select:disabled{opacity:.6}.past-exam-count{margin:0 0 16px;color:var(--muted);font-size:14px}@media(max-width:640px){.past-exam-filters{gap:12px}.past-exam-filters label{min-width:0;flex:1 1 100%;max-width:none}}
.past-exam-picker-launch{display:flex;justify-content:flex-end;margin:14px 0}.past-exam-picker-launch button{min-height:48px}.past-exam-picker{width:min(620px,calc(100% - 32px));max-height:80vh;max-height:80dvh;padding:24px;border:1px solid var(--border);border-radius:16px;background:#fff;color:inherit;overflow-y:auto;overscroll-behavior:contain}.past-exam-picker::backdrop{background:#1d302d88}.past-exam-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.past-exam-picker-head h2{margin:0;font-size:22px}.past-exam-picker-head p{margin:8px 0;color:var(--muted);font-size:14px}.past-exam-picker-head button{min-height:44px}.past-exam-picker-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:13px}.past-exam-picker-key{width:16px;height:16px;border:1px solid #cbd5c6;border-radius:4px;background:#fff}.past-exam-picker-key.answered{background:#e4efdd;border-color:#a9c49a}.past-exam-picker-key.current{background:#40634d;border-color:#40634d}.past-exam-picker-section{margin-top:20px}.past-exam-picker-section h3{font-size:15px;margin:0 0 10px}.past-exam-picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}.past-exam-picker-grid button{min-height:48px;padding:8px 4px;font-size:15px;overflow-wrap:anywhere}.past-exam-picker-grid button.answered{background:#e4efdd;border-color:#a9c49a;color:#385c3e}.past-exam-picker-grid button.current{background:#40634d;border-color:#40634d;color:#fff}.past-exam-picker [data-picker-status]{color:#a73b35;line-height:1.6}@media(max-width:640px){.past-exam-picker{padding:18px}.past-exam-picker-grid{grid-template-columns:repeat(auto-fill,minmax(55px,1fr))}}
.past-exam-result-float{position:fixed;z-index:10;right:20px;bottom:calc(20px + env(safe-area-inset-bottom,0px));min-height:48px;background:#40634d;color:#fff;border-color:#40634d;box-shadow:0 4px 16px #1d302d33}.past-exam-result-picker .result-correct,.past-exam-picker-key.result-correct{background:#e4efdd;border-color:#a9c49a;color:#385c3e}.past-exam-result-picker .result-incorrect,.past-exam-picker-key.result-incorrect{background:#fff0ef;border-color:#e6aaa6;color:#a43e38}.past-exam-result-picker .result-pending,.past-exam-picker-key.result-pending{background:#fff5df;border-color:#e1c58f;color:#805c25}.practice-review[data-review-index]{scroll-margin-top:88px}.past-exam-result-status{display:inline-block;margin:8px 0;padding:3px 9px;border-radius:6px;background:#f1f3ef;color:#64705e;font-size:13px}.past-exam-result-status.correct{background:#e4efdd;color:#385c3e}.past-exam-result-status.incorrect{background:#fff0ef;color:#a43e38}.past-exam-result-status.pending{background:#fff5df;color:#805c25}
.past-exam-explanation{margin-top:16px;padding:16px 18px;border-radius:12px;background:#f5f7f1}.past-exam-explanation h3{margin:0 0 8px;font-size:16px;color:#385c3e}.past-exam-explanation p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.8}.past-exam-explanation .past-exam-explanation-source{margin-top:10px;font-size:13px;color:#71816a}
