:root{--navy:#13263e;--blue:#164b73;--gold:#ffd84d;--ink:#17344b;--muted:#566f80;--line:#cfdee7;--green:#237548;--red:#a52c28;--x:#154f85;--y:#14634e}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#f1f5f8;color:var(--ink);font:17px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,select,textarea{font:inherit}button,select,summary{cursor:pointer}button{min-height:44px;padding:9px 13px;border:1px solid var(--blue);border-radius:8px;background:var(--blue);color:white;font-weight:700}button:hover{background:var(--navy)}button.secondary{background:white;color:var(--blue)}button.secondary:hover{background:#edf4f8}button:disabled{opacity:.42;cursor:default}button:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a26900;outline-offset:3px}.skip{position:absolute;left:10px;top:-80px;background:white;padding:10px;z-index:10}.skip:focus{top:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.site-header{background:var(--navy);border-bottom:3px solid var(--gold)}.header-inner{max-width:1050px;min-height:50px;padding:3px 18px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:inline-flex;align-items:center;min-height:44px;color:white;text-decoration:none;font-size:20px;font-weight:800;letter-spacing:-.04em;white-space:nowrap}.brand span{color:var(--gold)}.skills-back{display:inline-flex;align-items:center;min-height:44px;color:#d5e5ef;font-size:14px;white-space:nowrap}main{max-width:1000px;margin:auto;padding:17px 18px 15px}.lesson-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}h1{font-size:28px;line-height:1.15;letter-spacing:-.025em;margin:0}h2{font-size:21px;line-height:1.2;margin:8px 0 4px}.text-button{min-height:44px;padding:6px 0;background:transparent;color:var(--blue);border:0;font-size:13px;text-decoration:underline;white-space:nowrap}.text-button:hover{background:none}.stage-select{margin-bottom:12px}.stage-select select{width:100%;min-height:44px;border:1px solid #9bb1c1;border-radius:8px;background:white;color:var(--ink);padding:8px 12px;font-size:16px}.lesson-card{background:white;border:1px solid var(--line);border-radius:12px;padding:16px 20px 14px;box-shadow:0 4px 18px #13263e07}.status-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}.question-layout{display:grid;grid-template-columns:1.08fr 1fr;gap:25px;align-items:center}.graph{margin:6px 0 0;min-width:0}.trend-graph{display:block;width:100%;height:auto}.trend-graph text{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.trend-graph .tick{font-size:15px;fill:#4b6578}.trend-graph .axis-label{font-size:18px;font-weight:650}.x-label{fill:var(--x)}.y-label{fill:var(--y)}.x-word{color:var(--x);font-weight:750}.y-word{color:var(--y);font-weight:750}.instruction{font-size:14px;color:var(--muted);margin:6px 0 8px}.sentence{font-size:24px;line-height:1.6;font-weight:550;margin-bottom:12px;overflow-wrap:anywhere}.sentence select{max-width:100%;vertical-align:baseline;border:1px solid #8ba8bb;border-radius:6px;padding:6px 22px 6px 8px;min-height:44px;background:#f5f9fc;color:var(--ink);font-size:17px;margin:3px 2px 3px 0}.sentence select[aria-invalid=true]{border:2px solid var(--red)}.sentence .ending{border-bottom:2px dashed #91a6b5;white-space:nowrap;padding:0 8px}.sentence.complete .ending{color:var(--green);border-color:var(--green)}.ending-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ending-options button{background:white;color:var(--blue);font-size:15px;min-height:49px;padding:8px}.ending-options button.correct{background:#e9f8ee;border:2px solid var(--green);color:#185c37;opacity:1}.ending-options button.wrong{background:#fff0eb;border:2px solid var(--red);color:var(--red)}.feedback{font-size:14px;line-height:1.35;min-height:1.4em;margin:9px 0 3px}.feedback.correct{color:var(--green);font-weight:650}.feedback.incorrect{color:var(--red)}.question-actions{display:grid;grid-template-columns:44px 1fr 1fr 1.3fr;gap:9px;margin-top:11px}.question-actions button{font-size:15px;padding:9px 7px}.question-actions .back{font-size:21px;padding:5px}.progress-track{height:4px;border-radius:4px;background:#e1eaf0;overflow:hidden;margin-top:12px}.progress-track span{display:block;background:var(--blue);height:100%}.hint,.model{background:#fffbee;border-left:3px solid var(--gold);padding:10px 12px;border-radius:3px;font-size:15px;line-height:1.4}.hint{margin:10px 0 0}.model{margin-top:10px}.model p{margin:3px 0}.model .model-label{font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.03em;color:#5e6871}#model-sentence{font-size:19px;font-weight:650;color:var(--green)}#model-note{font-size:13px;margin-top:8px}textarea{display:block;width:100%;min-height:82px;resize:vertical;border:2px solid #8ba5b7;border-radius:8px;padding:10px;color:var(--ink);background:white;font-size:18px;line-height:1.4}.write-label{display:block;font-size:13px;margin:0 0 5px}.writing-starter{font-size:18px;line-height:1.4;margin:0 0 10px}.self-check{font-size:14px;margin-top:12px}.self-check p{margin:0 0 3px;font-weight:650}.self-check label{display:flex;align-items:center;gap:9px;min-height:44px;padding:5px 0;cursor:pointer}.self-check input{width:20px;height:20px;accent-color:var(--blue);flex:none}.self-check small{font-size:12px;color:var(--muted)}.word-help{padding:15px 18px;margin-top:12px;background:white;border:1px solid var(--line);border-radius:10px;font-size:15px}.word-help h2{font-size:18px;margin:0 0 8px}.word-help dl{margin:0}.word-help dl>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;border-bottom:1px solid #e1eaf0;padding:7px 0}.word-help dt{font-weight:700}.word-help dd{margin:0}.word-help p{margin:10px 0 0}.small-note{text-align:center;font-size:11px;color:var(--muted);margin:9px 0 0}.remember{margin:20px 0;background:#f0f6fa;padding:15px;border-radius:8px}.remember p{font-size:21px;margin:8px 0 0}.finish-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}noscript{display:block;margin-top:14px;padding:14px;background:#fff1c9}
@media(max-width:700px){main{max-width:520px;padding:9px 12px 12px}.header-inner{padding:2px 14px}.brand{font-size:18px}.skills-back{font-size:13px}.lesson-head{margin-bottom:5px}h1{font-size:25px}.lesson-card{padding:12px 13px 11px}.stage-select{margin-bottom:10px}.question-layout{display:block}.graph{margin-top:3px}.trend-graph{max-height:250px}.status-row{font-size:11px}h2{font-size:19px;margin:7px 0 3px}.instruction{font-size:13px;margin:4px 0 5px}.sentence{font-size:22px;line-height:1.5;margin-bottom:8px}.sentence select{font-size:16px}.ending-options{gap:6px}.ending-options button{font-size:14px;padding:7px 4px;min-height:44px}.feedback{margin:7px 0 0;font-size:13px}.question-actions{gap:6px;margin-top:8px}.question-actions button{font-size:14px}.progress-track{margin-top:10px}.writing-starter{font-size:18px}.model{font-size:14px}#model-sentence{font-size:18px}.small-note{font-size:10px}.text-button{font-size:12px}}
@media(max-width:360px){main{padding-left:9px;padding-right:9px}.lesson-card{padding-left:10px;padding-right:10px}h1{font-size:22px}.lesson-head{gap:5px}.text-button{font-size:11px}.sentence{font-size:21px}.question-actions{grid-template-columns:42px 1fr 1fr 1.2fr}.question-actions button{font-size:13px}.ending-options button{font-size:13px}}
@media(max-height:620px) and (max-width:700px){main{padding-top:5px}.lesson-head{margin-bottom:2px}.stage-select{margin-bottom:7px}.lesson-card{padding-top:9px}.question-actions{margin-top:6px}.progress-track{margin-top:8px}.sentence{margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
