@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Literata:opsz,wght@7..72,400;7..72,500;7..72,600&display=swap');
:root{--ink:#263b33;--green:#246957;--muted:#6d7971;--line:#e3e7df;--paper:#fafbf7;--soft:#eef4eb;--error:#a53732}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px 'DM Sans',Arial,sans-serif}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;cursor:pointer}a{color:var(--green)}button:focus-visible,a:focus-visible,label:has(+ input:focus-visible){outline:3px solid #c08e3c;outline-offset:4px}button:disabled{cursor:wait;opacity:.5}[hidden]{display:none!important}.topbar{height:84px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 max(32px,calc((100vw - 1190px)/2));background:#fff}.brand{text-decoration:none;color:var(--ink);font-weight:700;font-size:22px;letter-spacing:-.8px;display:flex;align-items:center;gap:10px}.logo{width:34px;height:38px;border-radius:9px 9px 4px 4px;background:var(--green);color:#fff;display:flex;align-items:center;justify-content:center;font:30px Georgia}.logo span{color:#d4b967}.quiet{border:0;background:none;color:var(--ink);font-size:14px}.quiet span{margin-left:12px}main{max-width:1190px;margin:auto;padding:42px 0 0}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.eyebrow,.chapter,.stat-label{font-size:11px;font-weight:700;letter-spacing:1.6px}.eyebrow{color:var(--green);margin:0 0 12px}h1{font-family:'Literata',Georgia,serif;font-size:35px;font-weight:500;letter-spacing:-1.3px;margin:0 0 12px;line-height:1.25}.intro p:last-child{margin:0;color:var(--muted);font-size:15px}.round-badge{background:#eef1e8;padding:12px 17px;border-radius:30px;font-size:13px;white-space:nowrap}.round-badge span{color:#af862b;margin-right:8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);background:white;border:1px solid var(--line);border-radius:14px;padding:20px 0;margin-bottom:25px}.stats>div{padding:0 28px;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stat-label{color:var(--muted);font-size:10px;letter-spacing:1.3px;display:block}.stats strong{display:block;font-size:30px;font-weight:500;margin:7px 0 3px;font-variant-numeric:tabular-nums;line-height:1.2}.stats i{font-size:12px;font-style:normal;margin-left:7px;color:var(--muted)}small{color:var(--muted);font-size:11px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:26px;align-items:start}.practice{background:white;border:1px solid var(--line);border-radius:16px;padding:29px 30px 0;box-shadow:0 6px 18px #334e3703}.practice-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.chapter{color:var(--green);font-size:10px}#counter{font-size:12px;color:var(--muted)}.steps{display:flex;gap:6px;margin:17px 0 30px}.step{height:5px;flex:1;background:#edf0ea;border-radius:4px}.step.done{background:var(--green)}.step.active{background:#b5cba7}.story-meta{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600}.book-icon{color:#8b9958;font-size:19px} .author{margin-left:auto;font-size:11px;font-weight:400;color:var(--muted)}.target{font:500 25px/1.9 'Literata',Georgia,serif;letter-spacing:.05px;margin:14px 0 25px;white-space:pre-wrap;overflow-wrap:anywhere;min-height:115px;color:#35443a}.target .correct{color:#789383}.target .wrong{color:var(--error);background:#fbe9e6;text-decoration:underline}.target .current{background:#e2e9b8;box-shadow:0 2px #98ad55;border-radius:2px}.input-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-size:12px}.input-heading label{font-weight:600}#char-count{color:var(--muted);font-size:11px}textarea{display:block;width:100%;min-height:135px;resize:vertical;border:1px solid #b4cbb8;border-radius:9px;background:#f3f8ef;padding:17px 18px;font:18px/1.65 'DM Sans',Arial,sans-serif;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s}textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px #24695713}textarea::placeholder{font-size:14px;color:#8a998b}textarea.error{border-color:#c26455;background:#fff6f3}.feedback-line{display:flex;gap:12px;justify-content:space-between;min-height:52px;padding-top:11px;font-size:11px;color:var(--muted)}.enter-note{white-space:nowrap;font-size:10px}.practice-bottom{border-top:1px solid var(--line);margin-top:5px;min-height:60px;display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.dot{width:5px;height:5px;background:#84a26a;border-radius:50%}.text-button{border:0;background:none;padding:6px 0;color:var(--green);font-size:12px}.practice-bottom .text-button{margin-left:auto;white-space:nowrap}.next-key-card{background:#edf2e7;border:1px solid #e2e8d9;border-radius:14px;padding:23px;text-align:center}.next-key-card .eyebrow{font-size:9px;letter-spacing:1.5px}#next-key{display:block;margin:20px auto 15px;min-width:64px;width:fit-content;max-width:100%;padding:4px 16px;height:68px;background:#fff;border:1px solid #d9ded2;border-bottom-width:5px;border-radius:10px;font:38px/55px 'Literata',Georgia,serif;color:var(--green);box-shadow:0 3px 4px #00000004}.next-key-card p{font-size:11px;color:var(--muted);margin:0}.tips{padding:25px 6px 6px}h2{font-family:'Literata',Georgia,serif;font-weight:500;font-size:20px;margin:0 0 18px}.tips h2{font-size:19px}.tips ol{list-style:none;padding:0;margin:0}.tips li{display:flex;gap:11px;font-size:12px;line-height:1.6;margin:15px 0}.tips li span{background:#edf0e8;min-width:22px;height:22px;border-radius:50%;text-align:center;font-size:10px;line-height:22px}.tips>p{font-size:11px;line-height:1.7;color:var(--muted);margin-top:20px}.tips kbd{font:10px 'DM Sans',Arial;border:1px solid #d6ddd2;border-radius:4px;padding:2px 4px;background:#fff}.little-note{display:flex;gap:13px;padding:8px 6px;color:#8b8a6e;align-items:center}.little-note span{font-size:34px}.little-note p{font:italic 15px/1.6 Georgia,serif}footer{display:flex;justify-content:space-between;align-items:center;padding:25px 0;color:#899187;font-size:11px}.summary{text-align:center;padding:40px 30px;min-height:500px}.success-seal{width:64px;height:64px;border-radius:50%;background:#edf2dd;color:var(--green);font-size:33px;line-height:64px;margin:0 auto 24px}.summary h2{font-size:34px;margin:12px 0}.summary p{color:var(--muted);line-height:1.6;font-size:14px}.summary-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:25px 0}.summary-stats div{background:var(--paper);padding:15px;border-radius:9px}.summary-stats strong{display:block;font-size:25px;margin-bottom:6px}.summary-stats span{font-size:11px;color:var(--muted)}.primary{border:1px solid var(--green);background:var(--green);color:#fff;border-radius:8px;padding:13px 21px;text-decoration:none;display:inline-block;font-size:14px}.primary:hover{background:#185241}.primary span{margin-left:18px}.subtle{font-size:11px!important;color:var(--muted);line-height:1.7}dialog{width:min(650px,calc(100% - 30px));padding:35px;border:1px solid var(--line);border-radius:18px;color:var(--ink);max-height:88vh}dialog::backdrop{background:#192f2b88;backdrop-filter:blur(3px)}dialog p{font-size:13px;line-height:1.7}dialog h2{font-size:29px}.close{position:absolute;top:16px;right:15px}.tale-list{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0}.tale-list span{background:var(--soft);border-radius:5px;padding:7px 9px;font-size:11px}dialog>a{font-size:12px}hr{border:0;border-top:1px solid var(--line);margin:24px 0}h3{font-size:17px}code{font-size:11px;background:var(--soft);padding:3px;overflow-wrap:anywhere}.actions{display:flex;gap:10px;margin:20px 0 10px;flex-wrap:wrap}.upload{cursor:pointer}.secondary{border:1px solid var(--line);border-radius:8px;padding:13px;font-size:13px;text-decoration:none}.file-input{position:absolute;width:1px;height:1px;opacity:0}#file-message{color:var(--error)}@media(min-width:1500px){main{padding-top:50px}}@media(max-width:1250px){main{padding:32px 28px 0}.topbar{padding:0 28px}.workspace{grid-template-columns:minmax(0,1fr) 235px;gap:20px}h1{font-size:30px}}@media(max-width:900px){.workspace{grid-template-columns:1fr}.workspace aside{display:none}.intro{align-items:flex-start}.round-badge{font-size:11px;padding:9px 12px}.stats>div{padding:0 18px}.target{font-size:24px}}@media(max-width:600px){.topbar{height:70px;padding:0 18px}.brand{font-size:20px}.quiet{font-size:12px}main{padding:28px 16px 0}.intro{display:block;margin-bottom:22px}h1{font-size:29px}.intro p:last-child{font-size:13px;line-height:1.6}.eyebrow{font-size:9px}.round-badge{display:inline-block;margin-top:16px}.stats{grid-template-columns:repeat(2,1fr);row-gap:20px;padding:18px 0}.stats>div:nth-child(2){border:0}.stats strong{font-size:25px}.stats i{font-size:10px}.stat-label{font-size:9px}.stats small{font-size:10px}.practice{padding:23px 18px 0}.target{font-size:21px;line-height:1.8;min-height:0}.story-meta{flex-wrap:wrap}.author{margin-left:0}.steps{margin-bottom:22px}.enter-note{display:none}.feedback-line{min-height:46px}.practice-bottom{font-size:9px}.summary{padding:30px 20px}.summary h2{font-size:28px}footer{font-size:10px}dialog{padding:28px 22px}}
