@charset "UTF-8";
:root{--paper:#f7f5ef;--surface:#fffefb;--ink:#263025;--muted:#5d6b58;--green:#385641;--dark:#294231;--wash:#e9eee1;--line:#d9dfce;--clay:#89512f;--clay-wash:#fbefe2;--red:#963d32;--sans:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;--serif:"Noto Serif SC","Songti SC","SimSun",serif;--shadow:0 15px 50px #253b2310}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.85 var(--sans);letter-spacing:.01em}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}a{color:var(--green);text-underline-offset:4px}button,a,input,textarea,select,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #789059;outline-offset:4px}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{line-height:1.45}h1{font:500 clamp(32px,4.6vw,54px)/1.4 var(--serif);letter-spacing:.025em}h2{font:500 29px/1.45 var(--serif);margin-bottom:14px}h3{font:600 22px/1.5 var(--serif);margin-bottom:12px}h4{font-size:14px;margin-bottom:8px}p{margin-bottom:14px}[hidden]{display:none!important}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 18px;border:1px solid transparent;border-radius:8px;color:var(--green);font-size:13px;font-weight:600;line-height:1.5;text-decoration:none;background:transparent;transition:background .15s,border-color .15s}.button.primary{background:var(--green);color:white}.button.primary:hover:not(:disabled){background:var(--dark)}.button.secondary{background:var(--surface);border-color:#b8c7ac}.button.secondary:hover:not(:disabled),.button.quiet:hover:not(:disabled){background:var(--wash)}.button.small{font-size:11px;min-height:39px;padding:9px 12px}.full{width:100%}.danger{color:var(--red)!important}.icon-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:transparent;color:var(--muted);font-size:28px;border-radius:8px}.icon-button:hover{background:var(--wash)}.skip{position:fixed;top:-80px;left:20px;background:var(--green);color:white;z-index:100;padding:10px 16px}.skip:focus{top:12px}.header{height:91px;max-width:1440px;margin:0 auto;padding:0 60px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-size:22px;font-weight:700;letter-spacing:.05em;white-space:nowrap}.brand small{display:block;color:var(--muted);font-size:9px;font-weight:400;letter-spacing:.13em;margin-top:3px}.brand-symbol{display:flex;align-items:center;justify-content:center;width:43px;height:43px;border-radius:13px 13px 13px 4px;background:var(--green);color:var(--paper);font:700 32px Georgia,serif;padding-bottom:5px}.header-actions{display:flex;align-items:center;gap:9px}.adult-setting{font-size:11px!important;font-weight:400!important}.dot{width:6px;height:6px;background:#95652e;border-radius:50%;display:inline-block;flex:none}.dot.on{background:var(--green)}main{max-width:1280px;margin:0 auto;padding:0 40px;min-height:65vh}.kicker{font-size:10px;letter-spacing:.1em;color:var(--green);font-weight:700;margin-bottom:12px}.muted,.help{color:var(--muted)}.help{font-size:11px;line-height:1.85}.prose{white-space:pre-line;overflow-wrap:anywhere;line-height:1.95}.hero{max-width:900px;margin:0 auto;text-align:center;padding:47px 0 24px}.hero h1{margin-bottom:14px}.hero>p:last-child{font-size:14px;color:var(--muted);max-width:640px;margin:0 auto}.question-entry{max-width:900px;margin:0 auto;background:var(--surface);border:1px solid #b8c8aa;border-radius:14px;box-shadow:var(--shadow);padding:21px 26px 17px}.question-entry textarea{width:100%;min-height:125px;border:0;background:transparent;resize:vertical;color:var(--ink);font-size:17px;line-height:1.95;padding:5px 0}.question-entry textarea::placeholder{color:#63715c}.entry-bottom{display:flex;justify-content:space-between;gap:22px;align-items:center;border-top:1px solid var(--line);padding-top:14px;margin-top:7px}.entry-bottom p{font-size:11px;color:var(--muted);max-width:560px;margin:0}.quick-paths{max-width:900px;margin:18px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:15px}.path-card{display:flex;align-items:center;gap:15px;min-height:81px;padding:17px 20px;border:1px solid var(--line);border-radius:9px;background:transparent;text-align:left;color:var(--green)}.path-card:hover{background:var(--wash)}.path-card strong{display:block;font-size:14px;color:var(--ink)}.path-card small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.path-icon{display:flex;align-items:center;justify-content:center;width:35px;height:35px;flex:none;font:24px Georgia,serif;border:1px solid #bac9af;border-radius:8px}.home-lower{max-width:1080px;margin:35px auto 0;padding:28px 0 45px;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.section-heading h2{font-size:25px;margin:0}.section-heading p{font-size:11px;color:var(--muted);margin:0}.demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.demo-card{display:flex;flex-direction:column;align-items:start;background:#edf0e5;border:1px solid #d1dcc5;border-radius:11px;padding:25px}.demo-card h3{font-size:24px;margin-bottom:9px}.demo-card p{font-size:12px;color:var(--muted);margin-bottom:17px}.demo-card .button{margin-top:auto}.pill{display:inline-flex;align-items:center;border-radius:4px;padding:2px 8px;font-size:10px;line-height:1.8;background:#e6eddd;color:#4e643d;white-space:nowrap}.pill.offline{background:#f9efdf;color:#80512a}.pill.neutral{background:#eeeee6;color:var(--muted)}.resume-section{margin-top:31px}.resume-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.resume-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.resume-card h3{font:600 14px var(--sans);margin-bottom:7px;overflow-wrap:anywhere}.resume-card p{font-size:10px;color:var(--muted);margin:0}.catalog{display:grid;gap:0;border-top:1px solid var(--line)}.lesson-button{display:flex;width:100%;align-items:center;gap:13px;text-align:left;padding:16px 8px;min-height:72px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink)}.lesson-button:hover{background:var(--wash)}.lesson-button>span:first-child{font:italic 22px Georgia,serif;color:#617354;width:30px;flex:none}.lesson-button .lesson-title{font-size:13px;flex:1}.lesson-title small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:27px}.back-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 0 20px;font-size:11px;color:var(--muted)}.back-row a{text-decoration:none}.page-intro{max-width:840px;margin-bottom:24px}.page-intro h1{font-size:36px;margin-bottom:13px}.page-intro p{color:var(--muted);font-size:13px}.source-grid{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:start;padding-bottom:45px}.source-left{position:sticky;top:18px}.original{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#eaece1}.original-head{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:13px 16px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);background:#eeeee5}.page-form{display:flex;align-items:end;gap:9px;padding:13px 15px;border-bottom:1px solid var(--line)}.page-form .field{margin:0;flex:1}.page-form .button{flex:none;font-size:11px;padding:10px 12px;min-height:43px}.original-pages{max-height:calc(100vh - 210px);min-height:220px;overflow:auto;overscroll-behavior:contain}.original-page{padding:14px}.original-page p{font-size:10px;color:var(--muted);margin-bottom:10px}.original-page img{width:100%;height:auto;display:block;background:white;box-shadow:0 3px 15px #23351f12}.original-text{padding:20px;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;background:var(--surface)}.field{display:block;margin:16px 0}.field>span{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.field input,.field textarea,.field select{display:block;width:100%;border:1px solid #bac8ae;border-radius:7px;background:var(--surface);color:var(--ink);padding:10px 12px;line-height:1.85}.field textarea{min-height:115px;resize:vertical}.field .source-text{min-height:360px;font-size:14px}.field small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:6px}.check{display:flex;gap:10px;align-items:start;min-height:44px;padding:8px 0;font-size:12px;cursor:pointer}.check input{width:17px;height:17px;accent-color:var(--green);margin:4px 0 0;flex:none}.check small{display:block;color:var(--muted);font-size:10px}.actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px}.notice{padding:13px 16px;background:var(--clay-wash);color:#764b2b;border:1px solid #dcc8a7;border-radius:7px;font-size:12px;line-height:1.85;margin:16px 0;overflow-wrap:anywhere}.notice.green{background:var(--wash);border-color:#c1d0b5;color:var(--green)}.notice ul{padding-left:18px;margin:7px 0 0}.notice p{margin:0}.setup-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:28px;padding-bottom:45px}.setup-summary{align-self:start;padding:25px;background:#e9eee1;border:1px solid #d2ddc7;border-radius:10px}.setup-summary h3{font-size:24px;overflow-wrap:anywhere}.setup-summary p{font-size:12px;color:var(--muted)}.method-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:15px}.method-card{display:flex;align-items:start;gap:10px;border:1px solid var(--line);border-radius:8px;padding:15px;background:#fafbf5;cursor:pointer}.method-card:has(input:checked){background:var(--wash);border-color:#8ea77b}.method-card input{accent-color:var(--green);width:17px;height:17px;margin:5px 0 0;flex:none}.method-card strong{display:block;font-size:13px}.method-card small{display:block;font-size:10px;line-height:1.85;color:var(--muted);margin-top:5px}.method-help{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:10px}.method-help p{font-size:10px;color:var(--muted);margin:0}.study-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:18px}.study-heading h1{font:500 31px/1.5 var(--serif);margin:0;overflow-wrap:anywhere}.study-heading .button{flex:none}.mode-note{font-size:11px;color:var(--muted);margin-bottom:20px}.study-grid{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:30px;padding-bottom:50px;align-items:start}.study-main{min-width:0}.problem-card{padding:21px 25px;border:1px solid var(--line);border-radius:10px;background:var(--surface);margin-bottom:18px}.problem-card .prose{font-size:15px;font-weight:500}.problem-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:11px}.problem-head .kicker{margin:0}.response-card{padding:28px;background:#eef2e6;border:1px solid #cbd9bf;border-radius:13px;margin-bottom:18px}.response-card .message{font-size:16px;line-height:1.95}.current-question{margin-top:21px;padding-top:19px;border-top:1px solid #c6d4b9}.current-question .kicker{font-size:10px;margin-bottom:9px}.current-question .prose{font:500 24px/1.75 var(--serif)}.hint-card{padding:14px 17px;border-left:3px solid #a58e51;border-radius:0 7px 7px 0;background:#fcf5e6;color:#74512e;margin-top:17px;font-size:13px}.hint-card .kicker{color:#74512e;font-size:9px;margin-bottom:6px}.feedback-note{margin-top:14px;font-size:11px;color:var(--muted)}.feedback-note strong{font-weight:600;color:var(--green)}.attempt-panel{padding:24px 25px;background:var(--surface);border:1px solid #bdcbae;border-radius:11px;box-shadow:var(--shadow)}.attempt-panel h2{font:500 25px var(--serif);margin-bottom:8px}.attempt-panel>p{font-size:11px;color:var(--muted);margin-bottom:13px}.attempt-panel textarea{width:100%;min-height:140px;background:transparent;border:1px solid #c5cfbb;border-radius:7px;padding:12px;font-size:15px;line-height:1.9;resize:vertical;color:var(--ink)}.attempt-actions{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:14px}.attempt-actions p{font-size:10px;color:var(--muted);margin:0;max-width:420px}.learning-actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:16px 0}.learning-actions .button{font-size:12px;padding:12px 13px;min-height:48px}.more-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-top:14px;margin-top:20px}.more-actions p{font-size:11px;color:var(--muted);margin:0}.solution{padding:24px 26px;background:#fffdf5;border:1px solid #d4d9c6;border-radius:10px;margin:19px 0}.solution h3{font-size:24px}.solution .prose{font-size:14px}.solution ol{padding-left:21px;font-size:13px;line-height:1.95}.solution li{padding:4px 0;overflow-wrap:anywhere}.solution .check-line{border-top:1px solid var(--line);margin-top:15px;padding-top:13px;font-size:12px}.study-side{position:sticky;top:20px}.side-box{padding:23px 21px;border:1px solid var(--line);border-radius:10px;background:var(--surface);margin-bottom:17px}.side-box h3{font-size:21px}.side-box p{font-size:11px;color:var(--muted)}.stats{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:15px 0}.stat b{font:28px/1.3 Georgia,serif;color:var(--green);display:block}.stat span{font-size:10px;color:var(--muted)}.side-box .button{width:100%;font-size:11px;margin-top:7px}.review-note{width:100%;min-height:95px;border:1px solid #c2ceb7;border-radius:6px;background:transparent;padding:9px 11px;font-size:12px;color:var(--ink);resize:vertical}.save-note{font-size:10px;color:var(--muted);margin-top:7px}.turn-history{margin-top:25px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.turn-history>summary{padding:16px 20px;cursor:pointer;font-size:12px;color:var(--green);font-weight:600}.turn-item{padding:19px 22px;border-top:1px solid var(--line);font-size:12px}.turn-item .turn-label{font-size:10px;color:var(--muted);margin-bottom:10px}.student-quote{padding:11px 14px;border-left:2px solid #9dae89;background:#f4f5ed;margin:10px 0;white-space:pre-wrap;overflow-wrap:anywhere}.turn-item .solution{padding:17px;margin:13px 0}.turn-item .solution h3{font-size:18px}.start-card{text-align:center;padding:42px 28px;background:var(--surface);border:1px dashed #aebe9e;border-radius:12px}.start-card h2{font-size:30px}.start-card p{font-size:13px;color:var(--muted);max-width:520px;margin:0 auto 22px}.history-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.history-row>div{min-width:0;flex:1}.history-row h3{font:600 14px var(--sans);margin-bottom:7px;overflow-wrap:anywhere}.history-row p{font-size:10px;color:var(--muted);margin:0}.source-info{padding:15px 0;border-bottom:1px solid var(--line)}.source-info h3{font:600 14px var(--sans);margin-bottom:9px}.source-info p{font-size:11px;color:var(--muted)}.source-info a{font-size:12px}.source-info:last-child{border:0}.footer{max-width:1200px;margin:16px auto 0;border-top:1px solid var(--line);padding:22px 0 27px;display:flex;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted)}.live-wrap p{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:60;width:max-content;max-width:min(780px,calc(100% - 34px));padding:13px 18px;margin:0;border:1px solid #b8cbae;border-radius:8px;background:#edf2e5;box-shadow:0 8px 35px #22341e25;font-size:12px;color:var(--green);overflow-wrap:anywhere}.live-wrap #live-error{background:#faece4;border-color:#dcb5a5;color:#853d2e}.live-wrap a{margin-left:8px}dialog{padding:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);width:calc(100% - 34px);max-width:780px;max-height:90vh;box-shadow:0 20px 90px #22351f35}dialog::backdrop{background:#24322070;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 26px 15px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:1}.dialog-head h2{font-size:26px;margin:0}.dialog-head .kicker{font-size:9px;margin-bottom:7px}.dialog-body{padding:22px 26px 28px}.drawer{margin:0 0 0 auto;height:100vh;max-height:100vh;max-width:480px;border-radius:12px 0 0 12px}.drawer .dialog-body{padding-top:12px}hr{border:0;border-top:1px solid var(--line);margin:23px 0}.loading{text-align:center;padding:70px 25px;color:var(--muted);font-size:13px}.loading>span{display:block;width:130px;height:3px;margin:0 auto 24px;background:linear-gradient(90deg,transparent,#7c9368,transparent);animation:breathe 1.3s infinite}@keyframes breathe{50%{opacity:.3}}.empty{padding:45px 20px;text-align:center}.empty p{color:var(--muted);font-size:13px}.upload-preview{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px;padding:20px 0 45px}.upload-preview .panel>p{font-size:12px;color:var(--muted)}
@media(max-width:1000px){.header{padding:0 35px}.study-grid{grid-template-columns:minmax(0,1fr) 230px;gap:23px}.setup-grid{grid-template-columns:minmax(0,1fr) 255px;gap:22px}.source-grid{gap:20px}.panel{padding:23px}.footer{margin-left:40px;margin-right:40px}.study-heading h1{font-size:29px}.method-card{padding:13px}.learning-actions .button{font-size:11px}}
@media(max-width:760px){main{padding:0 24px}.header{height:81px;padding:0 24px}.brand{font-size:20px;gap:10px}.header-actions{gap:0}.header-actions .button{font-size:11px;padding:9px 11px}.hero{padding-top:34px}.hero h1{font-size:37px}.hero>p:last-child{font-size:13px}.question-entry{padding:18px 21px}.question-entry textarea{font-size:16px}.source-grid,.setup-grid,.upload-preview{grid-template-columns:1fr}.source-left{position:static}.original-pages{max-height:540px}.source-grid{gap:22px}.setup-summary{order:-1;padding:20px}.setup-summary h3{font-size:22px}.setup-summary p{margin-bottom:10px}.study-grid{grid-template-columns:1fr}.study-side{position:static;display:grid;grid-template-columns:1fr 1fr;gap:17px}.study-side .side-box{margin:0}.study-side .side-box:last-child{grid-column:1/-1}.study-heading h1{font-size:28px}.stats{margin:10px 0}.footer{margin-left:24px;margin-right:24px}.dialog-body .method-grid{grid-template-columns:1fr}.study-side .field{margin-top:7px}.hero{max-width:650px}}
@media(max-width:520px){body{font-size:14px}.header{height:75px;padding:0 17px;gap:10px}.brand{font-size:17px;gap:8px}.brand-symbol{width:35px;height:35px;font-size:27px;border-radius:10px 10px 10px 3px}.brand small{font-size:8px;letter-spacing:.04em}.header-actions .button{font-size:10px;padding:8px}.adult-setting{max-width:102px;font-size:9px!important;gap:5px;line-height:1.6}.dot{width:5px;height:5px}main{padding:0 17px}.hero{padding:28px 0 21px;text-align:left}.hero h1{font-size:31px;line-height:1.45;margin-bottom:13px}.hero>p:last-child{font-size:12px;margin:0;line-height:1.9}.kicker{font-size:9px}.question-entry{padding:15px 17px 16px;border-radius:11px}.question-entry textarea{font-size:15px;min-height:145px}.entry-bottom{align-items:start;gap:12px}.entry-bottom p{font-size:10px}.entry-bottom .button{font-size:11px;flex:none;padding:10px 13px}.quick-paths{gap:9px;margin-top:12px}.path-card{padding:13px 12px;gap:8px;min-height:83px}.path-icon{display:none}.path-card strong{font-size:12px}.path-card small{font-size:9px;line-height:1.8}.home-lower{margin-top:25px;padding-top:23px}.section-heading{align-items:start;gap:12px}.section-heading h2{font-size:23px}.section-heading p{max-width:145px;font-size:10px;text-align:right}.demo-grid{grid-template-columns:1fr;gap:12px}.demo-card{padding:22px}.demo-card h3{font-size:23px}.demo-card p{font-size:11px}.resume-list{grid-template-columns:1fr}.resume-card{padding:16px 18px}.back-row{padding:20px 0 17px;font-size:10px}.page-intro h1{font-size:29px}.page-intro p{font-size:12px}.panel{padding:21px 18px;border-radius:9px}.field>span{font-size:11px}.field input,.field textarea,.field select{font-size:14px;padding:9px 11px}.field .source-text{font-size:13px;min-height:280px}.field small,.help{font-size:10px}.check{font-size:11px}.notice{font-size:11px;padding:12px 14px}.actions .button{font-size:11px;padding:10px 13px}.page-form{padding:12px;gap:7px}.page-form .button{font-size:10px;padding:10px}.original-head{padding:11px 12px;font-size:10px}.original-page{padding:11px}.original-pages{max-height:460px}.source-grid{padding-bottom:30px}.method-grid{grid-template-columns:1fr;gap:9px}.method-card{padding:13px 14px}.method-card strong{font-size:12px}.method-card small{font-size:10px}.method-help{align-items:start;gap:12px}.method-help p{font-size:9px}.method-help .button{font-size:10px;min-height:35px;padding:7px}.study-heading{align-items:start;gap:14px}.study-heading h1{font-size:25px}.study-heading .button{font-size:10px;padding:8px 10px;min-height:39px}.mode-note{font-size:10px}.problem-card{padding:18px 19px}.problem-card .prose{font-size:14px}.problem-head .button{font-size:10px;min-height:34px;padding:7px 9px}.response-card{padding:23px 20px;border-radius:10px}.response-card .message{font-size:14px}.current-question .prose{font-size:22px}.hint-card{padding:13px 14px;font-size:12px}.feedback-note{font-size:10px}.attempt-panel{padding:21px 18px}.attempt-panel h2{font-size:23px}.attempt-panel>p{font-size:10px}.attempt-panel textarea{font-size:14px;min-height:145px}.attempt-actions{gap:13px;align-items:start}.attempt-actions p{font-size:9px}.attempt-actions .button{font-size:11px;flex:none;padding:11px 13px}.learning-actions{gap:7px;grid-template-columns:1fr 1fr}.learning-actions .button{font-size:11px;padding:11px 10px;min-height:45px}.learning-actions .button:last-child{grid-column:1/-1}.more-actions{gap:12px}.more-actions p{font-size:10px}.more-actions .button{font-size:11px;padding:10px 12px}.study-side{grid-template-columns:1fr;gap:13px}.study-side .side-box:last-child{grid-column:auto}.side-box{padding:21px}.side-box h3{font-size:22px}.stats{grid-template-columns:1fr 1fr 1fr}.stat b{font-size:26px}.stat span{font-size:9px}.solution{padding:22px 19px}.solution h3{font-size:23px}.solution .prose{font-size:13px}.solution ol{font-size:12px}.turn-item{padding:17px 18px;font-size:11px}.turn-history>summary{font-size:11px;padding:15px 18px}.history-row{gap:12px}.history-row h3{font-size:13px}.history-row .button{font-size:10px;padding:9px 11px;flex:none}.dialog-head{padding:18px 20px 12px}.dialog-head h2{font-size:23px}.dialog-body{padding:18px 20px 24px}.drawer{width:calc(100% - 14px)}.lesson-button{gap:9px;padding:14px 5px}.lesson-button .lesson-title{font-size:12px}.pill{font-size:9px;padding:2px 5px}.footer{margin-left:17px;margin-right:17px;font-size:9px;flex-direction:column;gap:6px}.live-wrap p{bottom:14px;font-size:11px;padding:12px 14px}.upload-preview{padding-top:10px}.start-card{padding:35px 22px}.start-card h2{font-size:27px}.start-card p{font-size:12px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{body{background:white;color:black}.header,.back-row,.footer,.live-wrap,.button,.study-side,.attempt-panel,.learning-actions,.more-actions{display:none!important}main{padding:0;max-width:none}.study-grid{display:block}.panel,.problem-card,.response-card,.solution,.turn-history{border:0;box-shadow:none;background:white}.study-heading h1{font-size:22pt}.current-question .prose{font-size:17pt}.response-card{padding:15px 0}.turn-history[open]{display:block}.turn-item{break-inside:avoid}.hint-card,.student-quote{background:#f7f7f2}.solution{padding:15px 0}@page{size:A4;margin:17mm}}
.source-grid>* , .setup-grid>* , .study-grid>* , .upload-preview>* , .method-grid>* , .demo-grid>* , .quick-paths>* , .resume-list>*{min-width:0}
.original-head span,.lesson-title,.method-card>span{min-width:0;overflow-wrap:anywhere}
.button.small,.problem-head .button,.study-heading .button,.method-help .button,.page-form .button{min-height:44px}
.pending-upload{max-width:900px;margin:18px auto 0}
@media(max-width:360px){.header{height:auto;min-height:75px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.header-actions{width:100%;justify-content:space-between}.adult-setting{max-width:none}.entry-bottom,.attempt-actions{flex-wrap:wrap}.entry-bottom .button,.attempt-actions .button{margin-left:auto}.section-heading{flex-wrap:wrap}.section-heading p{text-align:left;max-width:none}}

/* Mobile interaction foundation: 16px content, 44px controls and visible overflow fixes. */
:root{--touch-target:44px;--mobile-nav-height:68px}
html{scroll-padding-block:24px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 24px)}
button,input,textarea,select,summary{scroll-margin-block:24px calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 24px)}
.entry-choices{max-width:900px;margin:0 auto 18px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:12px}
.capture-card,.upload-card{display:flex;align-items:center;gap:17px;text-align:left;border-radius:12px;padding:24px;border:1px solid #c3ceb8;min-width:0;min-height:106px;color:var(--ink);background:var(--surface);font-family:var(--sans)}
.capture-card{background:var(--green);border-color:var(--green);color:#fff}
.capture-card:hover{background:#2b4633}.upload-card:hover{background:var(--wash)}
.capture-card>span:nth-child(2),.upload-card>span:nth-child(2){flex:1;min-width:0}
.capture-card strong,.upload-card strong{display:block;font-size:21px;font-weight:600;line-height:1.5}
.capture-card small,.upload-card small{display:block;font-size:13px;line-height:1.7;margin-top:4px;overflow-wrap:anywhere}
.upload-card small{color:var(--muted)}
.entry-icon{width:38px;height:38px;display:flex;align-items:center;justify-content:center;flex:none;font-size:34px}.entry-icon svg{width:32px;height:32px}
.entry-arrow{flex:none;font-size:23px}
.text-entry-link{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;min-height:44px;border:0;background:transparent;color:var(--green);padding:4px 1px;font-size:14px;text-align:left}
.mobile-nav{display:none}
.study-disclosure{padding:0;overflow-wrap:anywhere}
.study-disclosure>summary{cursor:pointer;min-height:44px;padding:18px 21px;font-weight:600;font-size:15px;line-height:1.7}
.disclosure-body{padding:0 21px 22px}
.study-disclosure[open]>summary{border-bottom:1px solid var(--line);margin-bottom:18px}
.current-question:focus-visible{outline:2px solid var(--green);outline-offset:6px;border-radius:4px}
@media(max-width:760px){
  body{font-size:16px;padding-bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px));}
  main{padding-inline:max(17px,env(safe-area-inset-left,0px)) max(17px,env(safe-area-inset-right,0px));}
  .header{height:auto;min-height:65px;padding:12px max(17px,env(safe-area-inset-right,0px)) 12px max(17px,env(safe-area-inset-left,0px));gap:12px;flex-wrap:nowrap}
  .brand{font-size:19px;min-height:44px;min-width:0}.brand small{font-size:11px}.brand-symbol{width:36px;height:36px}
  .desktop-actions{display:none}
  .hero{padding:24px 0 20px;text-align:left}.hero h1{font-size:29px;margin-bottom:10px}.hero>p:last-child{font-size:16px;line-height:1.8}
  .entry-choices{grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:14px}
  .capture-card,.upload-card{padding:19px 18px;gap:14px;min-height:96px;border-radius:12px}
  .capture-card strong,.upload-card strong{font-size:21px}.capture-card small,.upload-card small{font-size:16px;line-height:1.7}
  .upload-card{min-height:88px}.entry-icon{width:34px;height:34px}.text-entry-link{font-size:16px;padding:4px 2px}
  .question-entry{padding:18px;border-radius:12px}.question-entry textarea{font-size:16px;min-height:128px;line-height:1.9}
  .entry-bottom,.attempt-actions{display:flex;flex-direction:column;align-items:stretch;gap:14px}
  .entry-bottom .button,.attempt-actions .button{margin:0;width:100%}
  main p,main li,main .prose,main .help,main .notice,main small,dialog p,dialog li,dialog .prose,dialog .help,dialog .notice,dialog small{font-size:16px;line-height:1.85}
  main .kicker,dialog .kicker{font-size:12px;letter-spacing:.06em}
  .button,.button.small,.header-actions .button,.learning-actions .button,.study-heading .button,.problem-head .button,.method-help .button,.page-form .button,.side-box .button,.history-row .button,.actions .button{font-size:16px;min-height:44px;padding:11px 14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
  .icon-button{min-width:44px;min-height:44px;flex:none}
  .field>span,.check,.method-card strong,.lesson-button .lesson-title,.history-row h3,.resume-card h3,.source-info h3{font-size:16px;line-height:1.7}
  .field input,.field textarea,.field select,.field .source-text,.attempt-panel textarea,.review-note{font-size:16px;min-height:44px;line-height:1.85;max-width:100%}
  .attempt-panel textarea{min-height:140px}.review-note{min-height:108px}
  .check,.method-card{min-height:44px}.method-card small{font-size:16px}.method-card{gap:12px;padding:16px}
  .page-form,.study-heading,.section-heading,.back-row,.more-actions,.resume-card,.history-row,.method-help{flex-wrap:wrap}
  .page-form .field{min-width:120px}.page-form .button{flex:none}
  .back-row{gap:8px;padding:12px 0}.back-row a{display:inline-flex;align-items:center;min-height:44px;font-size:16px}.back-row>span{font-size:14px}
  .study-heading{gap:8px;margin-bottom:10px}.study-heading h1{font-size:25px;line-height:1.55;flex:1 1 210px}.study-heading>.button{margin-left:auto}
  .mode-note{font-size:16px;margin-bottom:16px}.study-grid{grid-template-columns:minmax(0,1fr);gap:20px;padding-bottom:24px}
  .problem-card,.response-card,.attempt-panel{padding:20px 18px}.problem-card .prose,.response-card .message{font-size:17px;line-height:1.9}
  .problem-head{gap:8px;flex-wrap:wrap}.current-question .prose{font-size:22px;line-height:1.75}.current-question{scroll-margin-block:24px 110px}
  .attempt-panel h2{font-size:23px}.learning-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.learning-actions .button:last-child{grid-column:1/-1}
  .study-side{display:block;position:static}.study-side .side-box{margin-bottom:12px}.study-disclosure>summary{font-size:16px;padding:17px 18px;min-height:56px}.disclosure-body{padding:0 18px 20px}
  .stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.stat span{font-size:14px;line-height:1.7;display:block}.stat b{font-size:28px}
  .turn-history>summary{min-height:44px;font-size:16px;padding:16px 18px}.turn-item{font-size:16px}.turn-item .turn-label{font-size:14px}.solution ol{font-size:16px}.solution .check-line{font-size:16px}
  .original-head{align-items:flex-start;flex-wrap:wrap;font-size:16px;padding:12px}.original-head a,.original-page>a:not(:has(img)),.source-info a{min-height:44px;display:inline-flex;align-items:center;overflow-wrap:anywhere}
  .original-pages{max-height:min(65dvh,520px)}.original-text{font-size:16px}.upload-preview .panel h2{overflow-wrap:anywhere}.setup-summary{order:0}
  .pill{font-size:12px;white-space:normal;overflow-wrap:anywhere}.lesson-button{flex-wrap:wrap;min-height:72px}.lesson-title small{font-size:16px}.lesson-button .lesson-title{min-width:140px}
  .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:40;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:var(--mobile-nav-height);padding:4px max(12px,env(safe-area-inset-right,0px)) max(4px,env(safe-area-inset-bottom,0px)) max(12px,env(safe-area-inset-left,0px));border-top:1px solid var(--line);background:#fafbf5;box-shadow:0 -3px 18px #2630250a}
  .mobile-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:0;border-radius:8px;min-height:56px;min-width:44px;background:transparent;color:var(--muted);font-size:14px;font-weight:500;line-height:1.5}
  .mobile-nav button>span{font-size:23px;line-height:1.1}.mobile-nav button[aria-pressed="true"]{background:var(--wash);color:var(--green);font-weight:700}
  body:has(#main textarea:focus,#main input:focus,#main select:focus) .mobile-nav{display:none}
  .live-wrap p{bottom:calc(var(--mobile-nav-height) + env(safe-area-inset-bottom,0px) + 12px);font-size:16px;padding:12px 14px;max-height:40dvh;overflow:auto}
  body:has(#main textarea:focus,#main input:focus,#main select:focus) .live-wrap p{bottom:12px}
  dialog{max-height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-width:calc(100% - 24px);overscroll-behavior:contain}.drawer{height:100dvh;max-height:100dvh;width:100%;max-width:100%;border-radius:0}
  .dialog-head{padding-top:max(18px,env(safe-area-inset-top,0px));gap:12px}.dialog-head h2{font-size:23px;overflow-wrap:anywhere}.dialog-body{padding:18px max(20px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(20px,env(safe-area-inset-left,0px));}
  .footer{margin:12px 17px 0;padding:18px 0 24px;font-size:14px;line-height:1.8}
}
@media(max-width:360px){.entry-icon{display:none}.capture-card,.upload-card{gap:10px;padding:18px 15px}.hero h1{font-size:27px}.study-heading h1{font-size:24px}.section-heading h2{font-size:22px}.history-row .button,.resume-card .button{margin-left:auto}.original-head a{max-width:100%}}
@media print{.mobile-nav,.entry-choices{display:none!important}.study-disclosure{display:none}body{padding:0}}

/* Account controls share the existing mobile settings drawer. */
.desktop-actions{display:flex;align-items:center;gap:9px}.account-button{max-width:180px;min-width:44px}.account-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.account-panel{padding:0 0 24px;margin-bottom:24px;border-bottom:1px solid var(--line)}.account-panel h3{overflow-wrap:anywhere}.account-panel p{color:var(--muted);font-size:13px}.account-actions,.auth-tabs{display:flex;flex-wrap:wrap;gap:10px}.auth-tabs{margin:20px 0}.auth-tabs [aria-pressed="true"]{font-weight:700;border-color:var(--green);background:var(--wash)}.auth-dialog{width:520px}.auth-dialog .field input{min-height:46px}.home-account{display:flex;align-items:center;justify-content:space-between;gap:16px;max-width:900px;margin:0 auto 18px;padding:12px 16px;border:1px solid var(--line);border-radius:9px;background:var(--surface)}.home-account p{margin:0;font-size:12px;color:var(--muted)}.home-account .button{flex:none}.conflict-notice{margin-top:20px}.conflict-notice p{margin-bottom:10px}.study-heading{flex-wrap:wrap}.study-heading h1{flex:1;min-width:0}.account-button:focus-visible{outline-offset:2px}
@media(max-width:760px){.desktop-actions{display:none}.header .header-actions{width:auto;flex:none}.header .account-button{max-width:120px;padding:10px 12px;font-size:14px;min-height:44px}.home-account{align-items:flex-start;flex-wrap:wrap;margin-bottom:14px}.home-account p,.account-panel p{font-size:16px}.home-account .button{margin-left:auto}.auth-dialog{width:calc(100% - 24px)}.auth-tabs .button{flex:1}.account-actions .button{flex:1}.auth-dialog .field input{font-size:16px}.study-heading h1{flex-basis:100%}.study-heading .button{flex:1}}
@media(max-width:360px){.header{flex-wrap:nowrap}.header .brand{font-size:15px}.header .brand-symbol{width:30px;height:30px}.header .account-button{max-width:100px;font-size:13px;padding:9px 8px}}
@media print{.header-actions,.home-account,.conflict-notice{display:none!important}}

#main:focus{outline:none}
