:root{--bg:#f6f7f2;--ink:#203f37;--muted:#69766f;--line:#e0e5dd;--green:#275849;--lime:#d8ebaa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:15px}header{max-width:1280px;margin:auto;padding:27px 40px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}.brand{color:var(--ink);text-decoration:none;font-size:20px;font-weight:700;display:flex;align-items:center;gap:12px}.logo{background:var(--green);color:white;border-radius:11px;width:38px;height:38px;text-align:center;font-size:28px}.tag,.eyebrow,.section-no,.pill{font-size:11px;letter-spacing:1.5px;font-weight:700}.tag{color:var(--muted)}main{max-width:1280px;padding:44px 40px 0;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px}.eyebrow{color:#68834a;margin:0 0 12px}h1{font-family:Manrope,sans-serif;font-size:42px;letter-spacing:-1.9px;line-height:1.2;margin:0 0 12px;font-weight:800}.intro p:last-child{color:var(--muted);margin-bottom:0}.session{font-size:13px;color:var(--muted);display:flex;gap:10px;align-items:center}.session span{font-size:28px;color:var(--green);font-weight:600}.layout{display:grid;grid-template-columns:320px 1fr;gap:24px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:25px}.section-no{color:#7f946b;display:flex;gap:12px;align-items:center}.section-no span{color:var(--muted);font-size:10px}h2{font-size:19px;letter-spacing:-.5px;margin:18px 0 9px}.muted{color:var(--muted);line-height:1.55}.small{font-size:12px}.choices{margin:22px -10px 20px;display:grid;gap:6px}.choices label{display:flex;gap:12px;align-items:center;padding:12px 10px;border:1px solid transparent;border-radius:10px;cursor:pointer}.choices label:has(input:checked){background:#f1f5eb;border-color:#e2e8d9}.choices input{accent-color:var(--green);width:18px;height:18px;flex-shrink:0}.choices span{font-size:13px;font-weight:600;flex:1}.choices small{display:block;color:var(--muted);font-weight:400;font-size:11px;margin-top:4px}.choices b{font-size:19px;font-weight:500;color:#798979}fieldset{border:0;border-top:1px solid var(--line);margin:0;padding:20px 0 0}legend{float:left;font-size:13px;font-weight:600;margin-bottom:12px}.seg{clear:both;display:flex;background:#f2f4ef;border-radius:9px;padding:4px}.seg label{flex:1;cursor:pointer}.seg input{position:absolute;opacity:0;width:1px}.seg span{display:block;text-align:center;padding:9px 2px;font-size:12px;border-radius:6px}.seg input:checked+span{background:var(--green);color:white}.seg input:focus-visible+span{outline:3px solid #9aaf5f}.workspace{display:grid;gap:18px}.exercise{padding:28px 32px}.exercise-top,.exercise-bottom,.help-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.pill{background:#f1f4ec;border-radius:20px;padding:8px 12px;font-size:9px;color:#748466}.math-wrap{text-align:center;padding:48px 0 30px}.expression{font-family:Manrope,sans-serif;font-size:clamp(27px,3.4vw,44px);font-weight:600;letter-spacing:1px;overflow-wrap:anywhere;line-height:1.7}.expression sup{font-size:.55em;vertical-align:super}.math-wrap p{font-size:13px}form>label{font-size:12px;font-weight:600;display:block;margin-bottom:9px}.answer-row{display:flex;gap:10px}input[type=text]{width:100%;min-width:0;border:1px solid #cdd7ca;border-radius:10px;font:20px 'DM Sans',sans-serif;padding:14px;background:#fcfdf9;color:var(--ink)}input::placeholder{font-size:14px;color:#9ba498}button{font:600 12px 'DM Sans',sans-serif;cursor:pointer;border-radius:9px;white-space:nowrap;padding:12px 16px;transition:background .15s}button:disabled{opacity:.5;cursor:default}.primary{background:var(--green);border:1px solid var(--green);color:white;min-width:145px}.primary span{margin-left:18px}.secondary{background:white;border:1px solid #d9e1d4;color:var(--ink)}button:hover:not(:disabled){filter:brightness(.96)}:focus-visible{outline:3px solid #a9bf75;outline-offset:3px}.minus-key{background:#f2f5ed;border:0;margin:10px 8px 0 0;padding:5px 10px}.exercise-bottom{border-top:1px solid var(--line);padding-top:18px;margin-top:12px}#feedback{min-height:22px;font-size:14px;margin:14px 0}#feedback.success{color:#327349}#feedback.error{color:#a25a36}.help{background:#edf2e5;border-color:#e1e8d7}.help h2{margin:12px 0 0}.help-actions{display:flex;gap:8px}.help-actions button{background:transparent}.help>p{margin-bottom:0}#help-content:not(:empty){border-top:1px solid #d5deca;padding-top:16px;margin-top:16px}#help-content p{font-size:14px;line-height:1.6}.step-math{font-size:24px;margin:12px 0;color:var(--green)}summary{cursor:pointer;display:flex;justify-content:space-between;font-size:13px;font-weight:600}.rules{padding:20px 25px}.rules ol{padding-left:20px;font-size:13px;line-height:2}footer{padding:28px;text-align:center;color:#8a9589;font-size:11px} @media(max-width:900px){.layout{grid-template-columns:280px 1fr}.help-head{align-items:start;flex-direction:column}.exercise{padding:24px}.answer-row{flex-direction:column}.primary{padding:14px}.exercise-bottom{align-items:start;flex-direction:column}}@media(max-width:650px){header{padding:20px}.tag{font-size:9px}main{padding:28px 16px 0}h1{font-size:33px}.intro{align-items:start;gap:18px}.session{display:none}.layout{grid-template-columns:1fr;gap:16px}.panel{padding:22px}.choices{grid-template-columns:1fr 1fr;margin-top:16px}.choices label{padding:10px 6px;gap:7px}.choices b{display:none}.choices span{font-size:12px}.choices small{font-size:10px}.math-wrap{padding:26px 0 18px}.answer-row{flex-direction:row}.primary{min-width:110px}.primary span{display:none}.exercise-bottom{flex-direction:row;align-items:center}.expression{font-size:30px}}
.language-switch{display:flex;padding:4px;background:#e9eee3;border-radius:10px;gap:3px}.language-switch button{padding:8px 12px;background:transparent;border:0;color:var(--ink);font-size:12px}.language-switch button[aria-pressed=true]{background:var(--green);color:white}header{gap:18px}header .tag{margin-left:auto}@media(max-width:650px){header{flex-wrap:wrap;gap:12px}header .tag{display:none}.language-switch{margin-left:auto}.language-switch button{padding:8px}.brand{font-size:18px}}
.negative-heading{clear:both;display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;font-size:12px}.negative-heading output{color:var(--green);background:#edf2e5;border-radius:6px;padding:4px 10px;font-weight:700}.negative-settings input[type=range]{width:100%;margin:4px 0 12px;accent-color:var(--green);cursor:pointer;min-height:24px}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}#negative-description{min-height:38px}#negative-notation{font-size:11px;border-top:1px solid var(--line);padding-top:12px}

.training-select{border:0;padding:8px 0 18px;margin:0}.training-select legend{font-size:12px}.adaptive-info{background:#f0f3eb;border:1px solid var(--line);border-radius:12px;padding:14px;margin:0 0 18px}.adaptive-info[hidden]{display:none}.adaptive-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.adaptive-top span{font-weight:700;font-size:13px}.adaptive-top button{padding:5px 9px;border:1px solid var(--line);background:white;font-size:10px;color:var(--ink)}#adaptive-description{margin:10px 0;color:var(--muted)}#adaptive-message{line-height:1.5;min-height:36px}.adaptive-info details{border-top:1px solid var(--line);padding-top:10px}.adaptive-info summary{font-size:11px}.adaptive-info details p{line-height:1.6;color:var(--muted)}.choices label:has(input:disabled){cursor:default}.choices input:disabled{opacity:.65}.seg input:disabled+span{opacity:.65}.training-select .seg span{font-size:11px;padding:10px 3px}
.easy-option{display:flex;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;margin:0 0 18px;background:var(--bg);cursor:pointer;font-size:13px;font-weight:600}.easy-option input{accent-color:var(--green);width:19px;height:19px;flex-shrink:0}.easy-option small{display:block;font-size:11px;line-height:1.5;font-weight:400;color:var(--muted);margin-top:5px}.next-action{display:flex;justify-content:flex-end;margin-top:12px}#next{min-height:48px;min-width:160px;font-size:14px;border:2px solid var(--green)}#next.ready{background:var(--green);color:white}#feedback:empty{min-height:0;margin:0}#feedback:not(:empty){padding:16px 18px;border:2px solid;border-radius:10px;font-size:17px;line-height:1.5;font-weight:600}#feedback.success{background:#e6f5e9;border-color:#27713e;color:#174d29}#feedback.error{background:#fff0ed;border-color:#b14532;color:#842b1c}#feedback.progress{background:#f2edff;border-color:#756098;color:#4f386d}input[aria-invalid=true]{border:2px solid #b14532}@media(max-width:650px){.next-action #next{width:100%}.answer-row{flex-wrap:wrap}.answer-row input{flex:1 1 150px}.answer-row #check{flex:1 1 110px}}

#adaptive-phase{font-weight:600;color:var(--green);margin:10px 0 0}
