:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#233a39;background:#f5f8f7;font-synthesis:none;--green:#008b75;--line:#e4ece8;--muted:#778985}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid var(--line);background:white;color:inherit;border-radius:10px;padding:10px 16px}button:hover{border-color:var(--green);background:#effaf5}button.active,.primary{background:var(--green);color:white;border-color:var(--green)}button:disabled{opacity:.5;cursor:default}input,select,textarea{border:1px solid #d9e4df;border-radius:9px;padding:11px;background:white;color:inherit}textarea{width:100%;min-height:260px;line-height:1.8;resize:vertical}a{color:var(--green)}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:-1px}h2{font-size:20px}h3{font-size:16px}.muted,small{color:var(--muted)}.small{font-size:13px}.shell{display:grid;grid-template-columns:208px 1fr;min-height:100vh}.sidebar{padding:30px 18px;background:white;border-right:1px solid var(--line);position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;margin:0 4px 38px;font-size:19px;font-weight:750}.brand img{width:38px;height:38px;border-radius:11px}.brand small{display:block;font-size:10px;letter-spacing:2px;margin-top:3px}.nav{display:grid;gap:7px}.nav button{text-align:left;border:0;background:transparent;padding:14px}.nav button.active{background:#e6f5ee;color:var(--green);font-weight:650}.navicon{display:inline-block;width:29px;font-size:18px}.local{margin-top:auto;padding:16px 8px;font-size:12px;color:var(--muted);line-height:1.9}.local i{display:inline-block;width:7px;height:7px;background:#1bb88c;border-radius:50%;margin-right:7px}.main{padding:34px 42px;max-width:1600px;width:100%;margin:auto}.topline,.row{display:flex;align-items:center;gap:12px}.topline{justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--green);margin-bottom:10px}.banner{background:#dff4eb;border-radius:20px;min-height:180px;padding:30px 34px;position:relative;overflow:hidden;margin-bottom:26px}.banner h2{font-size:27px;line-height:1.5;margin:7px 0 12px}.banner p{color:#52796c}.banner img{position:absolute;right:28px;bottom:-18px;width:200px}.banner .primary{position:relative;z-index:1}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.stat{background:white;border:1px solid var(--line);border-radius:14px;padding:20px}.stat strong{font-size:27px;display:block;margin:9px 0 0}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.subject-card{text-align:left;position:relative;overflow:hidden;border-radius:17px;min-height:158px;padding:25px;border:1px solid #e6eae5;background:#edf6f0}.subject-card:nth-child(2){background:#edf2fc}.subject-card:nth-child(3){background:#f3edfb}.subject-card:nth-child(4){background:#fff3e5}.subject-card h2{font-size:23px}.subject-card img{position:absolute;right:18px;top:4px;width:155px;height:150px;object-fit:contain}.subject-card .muted{color:#637c72}.section-title{margin:30px 0 18px;display:flex;justify-content:space-between;align-items:center}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.toolbar input{flex:1;min-width:180px}.tabs{display:flex;gap:8px;flex-wrap:wrap}.tabs button{border:0;background:transparent}.tabs button.active{background:#e0f2e9;color:var(--green)}.bank{display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,.85fr);gap:22px;align-items:start}.list,.panel{background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden}.list-item{display:block;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:18px 20px}.list-item:last-child{border-bottom:0}.list-item.active{background:#eaf7f0;color:#164e40;box-shadow:inset 3px 0 var(--green)}.list-item h3{margin:0 0 8px;line-height:1.5}.badge{display:inline-block;padding:4px 8px;border-radius:6px;background:#eff4f1;color:#627d70;font-size:11px;margin:2px 5px 2px 0}.preview{padding:28px;position:sticky;top:24px}.preview h2{line-height:1.65}.preview p{line-height:1.9}.preview .primary{width:100%;margin-top:18px}.preview-image{width:100%;max-height:240px;object-fit:contain}.empty{padding:50px 20px;text-align:center;color:var(--muted)}.pages{display:flex;align-items:center;justify-content:center;gap:14px;margin:20px 0}.practice{position:fixed;inset:0;background:#f7f9f8;z-index:10;display:flex;flex-direction:column}.practice-header{background:white;border-bottom:1px solid var(--line);padding:16px 26px;display:flex;align-items:center;justify-content:space-between;gap:15px}.practice-header h2{font-size:16px;margin:0}.practice-body{overflow:auto;flex:1;padding:26px}.practice-grid{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(300px,1.1fr);gap:24px;max-width:1250px;margin:auto;align-items:start}.material{padding:28px;line-height:1.95;background:white;border:1px solid var(--line);border-radius:14px;overflow-wrap:anywhere}.material p{margin-bottom:16px}.material h2{font-size:21px}.material table{border-collapse:collapse;width:100%;font-size:14px}.material td,.material th{border:1px solid var(--line);padding:8px}.question{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin-bottom:16px;line-height:1.8}.question h3{line-height:1.8}.choice{display:flex;gap:12px;border:1px solid var(--line);padding:12px;border-radius:9px;margin:10px 0;cursor:pointer;align-items:baseline}.choice:has(input:checked){background:#e8f6ef;border-color:var(--green)}.choice input{accent-color:var(--green)}.question.correct{border-color:#50ad84}.question.wrong{border-color:#dc9d85}.feedback{background:#f0f6f2;border-radius:9px;padding:14px;margin-top:16px;font-size:14px;white-space:pre-wrap}.wrong .feedback{background:#fff3ed}.blank{display:inline-flex;align-items:baseline;background:#eff7f2;border-radius:5px;margin:3px;max-width:100%;font-family:Georgia,serif}.blank input{border:0;border-bottom:1px solid var(--green);border-radius:0;background:transparent;padding:4px 2px;width:auto;min-width:0;max-width:100%;font-family:ui-monospace,Consolas,monospace;letter-spacing:.12em}.blank input::placeholder{color:#62877a;opacity:1}.blank-count{align-self:center;font-family:"Segoe UI","Microsoft YaHei",sans-serif;font-size:10px;white-space:nowrap;padding:0 4px;color:#526e64;letter-spacing:0}.slot{width:150px;padding:6px;margin:4px}.tokens{display:flex;gap:7px;flex-wrap:wrap;margin:20px 0}.tokens button{font-size:14px;padding:6px 10px;background:#f0f6fa}.prose{white-space:pre-wrap;line-height:1.9}.english{font-family:Georgia,"Times New Roman",serif;font-size:18px}.practice-footer{padding:12px 26px;background:white;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:14px}.result{padding:20px;background:#e1f4e9;border-radius:12px;margin-bottom:20px}.audio{width:100%;margin:10px 0}.audio-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:12px}.audio-tools button{padding:5px 10px}details{margin:15px 0}summary{cursor:pointer;color:var(--green)}.transcript button{display:block;text-align:left;border:0;border-radius:0;line-height:1.8;padding:8px;width:100%;font-family:Georgia,serif}.dialog-backdrop{position:fixed;inset:0;background:#18382f66;z-index:20;display:grid;place-items:center;padding:24px}.dialog{background:white;border-radius:18px;padding:28px;max-width:850px;width:100%;max-height:90vh;overflow:auto}.dialog .topline{position:sticky;top:-28px;background:white;padding:16px 0}.word-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.word{padding:22px}.word h3{font-size:21px}.word .meaning{min-height:48px;line-height:1.6}.word .row{justify-content:space-between}.record{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid var(--line);gap:16px}.record p{margin:5px 0}.loading{padding:100px;text-align:center}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#254a40;color:white;padding:12px 22px;border-radius:10px;z-index:40;opacity:0;pointer-events:none;transition:opacity .15s}#toast.show{opacity:1}.setting{padding:28px;line-height:1.9}.setting button{margin:8px 8px 8px 0}.note{padding:12px 16px;background:#fff8e8;border-radius:9px;color:#846c36;font-size:13px;margin:16px 0}.count{font-variant-numeric:tabular-nums}.mobile-label{display:none}@media(min-width:1500px){.main{padding:40px 64px}}@media(max-width:1000px){.sidebar{width:175px}.shell{grid-template-columns:175px 1fr}.main{padding:25px}.word-grid{grid-template-columns:repeat(2,1fr)}.subject-card img{width:110px;right:5px}.bank{grid-template-columns:1fr}.preview{position:static}.practice-grid{grid-template-columns:1fr}.stats{gap:8px}.stat{padding:14px}.stat strong{font-size:23px}}@media(max-width:650px){.shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:16px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 15px}.brand small{display:inline;margin-left:8px}.nav{display:flex;overflow:auto;gap:3px}.nav button{white-space:nowrap;padding:9px 12px;font-size:13px}.navicon{width:22px}.local{display:none}.main{padding:22px 16px}.topline{gap:10px;align-items:flex-start}h1{font-size:24px}.banner{padding:23px;min-height:190px}.banner h2{font-size:24px}.banner img{width:125px;right:-15px}.banner p{max-width:210px;font-size:13px}.stats{grid-template-columns:repeat(2,1fr)}.cards{gap:12px}.subject-card{min-height:160px;padding:18px}.subject-card h2{font-size:20px}.subject-card img{width:95px;height:95px;top:70px;right:-5px}.subject-card .muted{font-size:12px}.word-grid{grid-template-columns:1fr}.practice-header{padding:12px;align-items:flex-start}.practice-header h2{max-width:160px;font-size:13px}.practice-header button{padding:7px}.practice-body{padding:12px}.question,.material{padding:19px}.practice-footer{padding:10px 12px;font-size:12px}.practice-footer button{padding:8px}.dialog-backdrop{padding:10px}.dialog{padding:20px}.record{padding:15px}.toolbar select{max-width:100%}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.subject-card .muted{display:block;max-width:65%;line-height:1.7}.subject-card img{pointer-events:none}.practice-body{overscroll-behavior:contain}@media(max-width:650px){.subject-card .muted{max-width:100%;position:relative;z-index:1;padding-bottom:50px}.subject-card{min-height:195px}.subject-card img{top:auto;bottom:-6px}}

.resource-intro{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:18px 22px;border:1px solid var(--line);background:#eaf4ee;border-radius:13px;margin-bottom:20px}.resource-layout{display:grid;grid-template-columns:minmax(250px,.75fr) minmax(350px,1.25fr);gap:22px;align-items:start}.resource-detail{padding:26px;line-height:1.85;min-width:0}.resource-detail h2{font-size:22px;margin-bottom:10px}.resource-detail .topline{margin-bottom:15px}.resource-kind{font-size:11px;color:var(--green);font-weight:700;letter-spacing:1px;margin-bottom:8px}.resource-item p{line-height:1.8;margin:8px 0}.resource-item.active .muted{color:#527766}.resource-scope{font-size:13px;color:#6e6b54;background:#f6f3e8;padding:10px 14px;border-radius:8px;margin:16px 0}.resource-evidence{font-size:13px;border-left:3px solid #90bdab;padding:6px 14px;margin-bottom:20px}.resource-evidence p{margin:5px 0}.resource-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}.resource-link{font-size:13px;text-decoration:none;line-height:1.7}.resource-link:hover{text-decoration:underline}.resource-file{padding:18px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.resource-file strong{font-size:14px}.resource-file p{margin:6px 0}.resource-gallery figure{margin:22px 0}.resource-gallery img{width:100%;height:auto;display:block;border-radius:8px;border:1px solid var(--line)}.resource-gallery figcaption{font-size:12px;color:var(--muted);margin-bottom:8px}.resource-reader{border-top:1px solid var(--line);margin-top:12px;padding-top:18px}.reader-heading h3{margin-bottom:3px}.reader-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:14px 0}.reader-toolbar input{width:75px}.reader-toolbar button{padding:8px 12px}.resource-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;font-size:15px;background:#f7f9f6;padding:20px;border-radius:10px;max-height:630px;overflow:auto;tab-size:2}.resource-tabs button{font-size:13px}@media(max-width:1100px){.resource-layout{grid-template-columns:1fr}.resource-detail{padding:22px}}@media(max-width:650px){.resource-intro{padding:15px}.resource-intro .muted{display:block;margin-top:5px}.resource-text{padding:14px;font-size:14px}.resource-detail{padding:18px}.resource-tabs{gap:2px}.resource-tabs button{padding:9px}.reader-toolbar{gap:6px}}

.exam-practice{background:#fff}.exam-practice .practice-header{background:#223b62;color:#fff;padding:18px 30px;min-height:96px}.exam-section{font-size:13px;letter-spacing:.6px;opacity:.8;margin-bottom:8px}.exam-practice .practice-header h2{font-weight:500}.exam-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.exam-controls button{font-size:12px;padding:8px 12px;background:transparent;color:white;border-color:#7185a2}.timer-box{display:flex;gap:5px;flex-direction:column;min-width:150px}.timer-box .muted{color:#d4e0ef;font-size:11px}.timer-box #timer{font-size:27px;font-weight:650;letter-spacing:2px}.time-warning{color:#ffb4a9}.exam-practice .practice-body{background:#f1f3f6}.exam-practice .practice-grid{max-width:1450px;grid-template-columns:minmax(250px,1fr) minmax(300px,1fr)}.exam-practice .material,.exam-practice .question{border-radius:3px;border-color:#d8dce2;padding:28px;box-shadow:none}.exam-practice .question{margin-bottom:0}.exam-practice .question .eyebrow{color:#687b92}.exam-practice .material{font-size:16px}.exam-practice .practice-footer{min-height:80px;gap:12px;padding:16px 30px}.writing-exam textarea{min-height:410px;border:1px solid #aab4bf;border-radius:2px;padding:18px;line-height:1.85;font-family:Arial,sans-serif;font-size:17px}.word-counter{margin:12px 0;color:#536578;text-align:right;font-size:13px}.question-overview{max-width:1450px;margin:0 auto 20px;display:flex;gap:8px;flex-wrap:wrap;padding:16px;background:white;border:1px solid var(--line)}.question-overview button{font-size:13px}.task-history{border-top:1px solid var(--line);margin-top:24px;padding-top:22px}.task-history .record{padding:14px 0;align-items:flex-start;flex-wrap:wrap}.task-history .record h3{display:none}.task-history .record button{font-size:12px;padding:6px 10px}.task-history .record .badge{font-size:10px}.exam-practice .tokens button{border-radius:3px;background:#eef2f7;cursor:grab}.exam-practice .slot:focus{background:#f1f7ff;border-color:#236ab0}.exam-practice .result{border-radius:4px}.exam-practice .question .prose{line-height:1.9}@media(max-width:900px){.exam-practice .practice-grid{grid-template-columns:1fr}.exam-practice .practice-header{padding:14px}.exam-controls{gap:6px}.timer-box{min-width:100px}.timer-box #timer{font-size:23px}.exam-practice .practice-footer{padding:12px;flex-wrap:wrap}.exam-practice .practice-footer .row{flex-wrap:wrap;gap:6px}.exam-practice .question,.exam-practice .material{padding:20px}.writing-exam textarea{min-height:300px}}@media(prefers-reduced-motion:no-preference){.time-warning{transition:color .2s}}

.writing-exam .material h3{font-weight:400;font-size:16px;line-height:1.9}.writing-exam .material .small{white-space:pre-line}

.exam-practice .practice-grid.sentence-exam{grid-template-columns:minmax(0,1fr);max-width:1120px;gap:16px}.exam-practice .sentence-exam>.material{padding:14px 22px;display:flex;align-items:baseline;gap:18px;flex-wrap:wrap;background:transparent;border:0}.sentence-exam>.material .eyebrow{margin:0}.sentence-exam>.material p{margin:0}.exam-practice .sentence-exam .question{margin-bottom:18px}.sentence-exam .result{margin-bottom:18px}@media(max-width:650px){.exam-practice .sentence-exam>.material{padding:6px 8px;gap:6px}}

.ai-explanation{border-top:1px solid var(--line);margin-top:20px;padding-top:18px;font-size:14px}.ai-explanation>.row{flex-wrap:wrap;margin-bottom:12px}.ai-explanation .prose{margin:14px 0;line-height:1.95}.ai-explanation button{margin:6px 0}.ai-explanation .muted{font-size:11px}

.ai-report p{margin:10px 0;white-space:pre-wrap;line-height:1.95}.ai-report h3{margin:15px 0 8px}

.sentence-line{line-height:3}.sentence-line .slot{min-width:90px;width:auto;max-width:100%;vertical-align:middle;cursor:grab}.sentence-line .slot:focus{cursor:text}.sentence-line .slot.selected-slot{border-color:#2673b8;background:#edf5ff;box-shadow:0 0 0 2px #2673b825}.sentence-line .slot.drop-target{border:2px dashed #008b75;background:#dff5e9;box-shadow:0 0 0 3px #008b7520}.sentence-editor .tokens{padding:12px;min-height:54px;border:1px dashed #ccd8df;border-radius:6px}.sentence-editor .tokens.drop-target{background:#e4f5eb;border-color:#008b75}.sentence-editor .tokens .token-used{background:#f0f1f2;color:#75828c;border-style:dashed}.sentence-editor .drag-source{opacity:.45}.sentence-status{margin:12px 0}.sentence-bank button:focus-visible{outline:2px solid #2673b8;outline-offset:3px}
