:root{--bg:#e8f3df;--ink:#2b3a2b;--accent:#6b8e5a;--accent-dark:#4f6e41;--card:#fff;--warn:#b5533c;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:20px}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);touch-action:manipulation;margin:0}h1{margin:.2em 0;font-size:2rem}button{font:inherit}.big-button,.big{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:18px;min-width:56px;min-height:56px;padding:.6em 1.4em;font-size:1.3rem;font-weight:700}.big-button:disabled{opacity:.5}.big-button:active,.big:active{background:var(--accent-dark)}.loading{text-align:center;margin-top:30vh}.map-screen,.login-screen{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:100dvh;padding:1.5rem;display:flex}.map-path{align-items:flex-end;gap:1.2rem;margin:0;padding:0;list-style:none;display:flex}.place{background:var(--card);border-radius:22px;flex-direction:column;align-items:center;gap:.2rem;min-width:120px;padding:.8rem;display:flex}.place .emoji{font-size:3rem}.place.current{background:#fff3c4;box-shadow:0 4px #e6cf7a}.place.ahead{opacity:.55}.pinpad{flex-direction:column;align-items:center;gap:1rem;display:flex}.pin-dots{gap:.8rem;display:flex}.dot{border:3px solid var(--accent);border-radius:50%;width:22px;height:22px}.dot.filled{background:var(--accent)}.pin-grid{grid-template-columns:repeat(3,84px);gap:.7rem;display:grid}.pin-key{min-height:72px}.pin-error{color:var(--warn);margin:0}.parent-link{color:var(--accent-dark);margin-top:1rem;font-size:.8rem}.ink-surface{border:3px solid var(--accent);-webkit-user-select:none;user-select:none;background:#fff;border-radius:16px;width:100%;position:relative;overflow:hidden}.ink-canvas{touch-action:none;width:100%;height:100%;position:absolute;inset:0}.lines-grid{background-image:linear-gradient(#cfe0f0 1px,#0000 1px),linear-gradient(90deg,#cfe0f0 1px,#0000 1px);background-size:40px 40px}.lines-lined{background-image:linear-gradient(#cfe0f0 2px,#0000 2px);background-size:100% 56px}.ink-columns{pointer-events:none;background:#6b8e5a1f;justify-content:space-around;padding:4px 0;font-weight:700;display:flex;position:absolute;inset:0 0 auto}.practice,.essay,.stage-end{flex-direction:column;gap:1rem;max-width:1000px;margin:0 auto;padding:1.2rem;display:flex}.stage-end{text-align:center;justify-content:center;align-items:center;min-height:100dvh}.practice-head{opacity:.8;justify-content:space-between;align-items:center;display:flex}.task-text{margin:.4em 0;font-size:1.8rem;line-height:1.35}.numberline{width:100%;max-width:640px}.quiet{color:var(--accent-dark);cursor:pointer;background:0 0;border:0;min-height:48px;padding:.6em;font-size:1rem}.hint,.intro,.notice{background:#fff3c4;border-radius:16px;margin:0;padding:.8rem 1rem}.intro{background:#e3eefc;align-items:center;gap:1rem;display:flex}.answer-input{flex-direction:column;align-items:flex-start;gap:1rem;display:flex}.answer-label{flex-direction:column;gap:.4rem;width:100%;font-weight:600;display:flex}input,textarea{font:inherit;border:3px solid var(--accent);border-radius:14px;width:100%;min-height:56px;padding:.5em .7em;font-size:1.5rem}.choice-row{gap:1rem;display:flex}.choice.picked{background:var(--accent-dark);outline:4px solid #fff3c4}.parts-row{flex-wrap:wrap;gap:.8rem;display:flex}.parts-row label{flex-direction:column;gap:.3rem;width:120px;font-weight:700;display:flex}.quote-keys{flex-wrap:wrap;gap:.5rem;margin-top:.5rem;display:flex}.quote-key{min-width:56px;padding:.3em .6em}.mode-switch,.ink-tools{flex-wrap:wrap;gap:.5rem;display:flex}.mode-switch button,.ink-tools button{border:2px solid var(--accent);cursor:pointer;background:#fff;border-radius:14px;min-height:52px;padding:0 1em;font-size:1rem}.mode-switch .on,.ink-tools .on{background:var(--accent);color:#fff}.ink-area{flex-direction:column;gap:.8rem;display:flex}.feedback,.confirm-words{text-align:center;align-items:center}.confirm-words{flex-direction:column;gap:1rem;display:flex}.confirm-words ul{flex-direction:column;gap:1rem;width:100%;padding:0;list-style:none;display:flex}.confirm-words li{align-items:flex-end;gap:1rem;display:flex}.confirm-words label{text-align:left;flex:1;font-weight:600}.explanation{max-width:640px;font-size:1.4rem}.writing-prompt{border-left:8px solid var(--accent);background:#fff;border-radius:12px;margin:0;padding:1rem 1.2rem;font-size:1.5rem}.writing-prompt.small{font-size:1.1rem}.plan-editor{flex-direction:column;gap:1rem;display:flex}.plan-editor label,.plan-editor fieldset{border:0;flex-direction:column;gap:.4rem;padding:0;font-weight:600;display:flex}.gap{color:var(--warn);font-weight:400}.essay-text{min-height:320px}.criteria{text-align:left;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:.8rem;padding:0;list-style:none;display:grid}.criteria li{background:#fff;border-radius:14px;flex-direction:column;gap:.2rem;padding:.7rem 1rem;display:flex}.strengths{padding:0;font-size:1.3rem;list-style:none}.exam,.exam-result,.exam-lobby{flex-direction:column;gap:1rem;max-width:1100px;margin:0 auto;padding:1rem;display:flex}.exam-lobby{text-align:center;align-items:center}.exam-lobby ul{flex-direction:column;gap:1rem;width:100%;max-width:520px;padding:0;list-style:none;display:flex}.exam-lobby li{background:#fff;border-radius:18px;flex-direction:column;gap:.5rem;padding:1rem;display:flex}.exam-head{background:var(--bg);z-index:2;flex-wrap:wrap;align-items:center;gap:1rem;padding:.5rem 0;display:flex;position:sticky;top:0}.exam-timer{font-variant-numeric:tabular-nums;border:3px solid var(--accent-dark);background:#fff;border-radius:16px;padding:.1em .5em;font-size:2.6rem;font-weight:800}.task-nav{flex-wrap:wrap;flex:1;gap:.5rem;display:flex}.task-nav button{border:3px solid var(--accent);cursor:pointer;background:#fff;border-radius:14px;min-width:52px;min-height:52px;font-size:1.1rem;font-weight:700}.task-nav [data-state=answered]{background:#cfe8c3}.task-nav [data-state=current]{background:var(--accent);color:#fff}.offline{background:#ffe1d6;border-radius:14px;margin:0;padding:.7rem 1rem}.score{margin:0;font-size:2rem;font-weight:800}.topics{flex-direction:column;gap:.5rem;max-width:520px;padding:0;list-style:none;display:flex}.topics li{grid-template-columns:160px 1fr 90px;align-items:center;gap:.6rem;display:grid}.exam-result{text-align:center;align-items:center}.exam-link{text-align:center;margin:-1rem 0 1rem}.parent-area,.parent-login{max-width:900px;margin:0 auto;padding:1rem;font-size:17px}.parent-nav{border-bottom:2px solid var(--accent);flex-wrap:wrap;align-items:center;gap:1rem;margin-bottom:1rem;padding-bottom:.8rem;display:flex}.parent-nav a{color:var(--accent-dark);padding:.4em .2em;font-weight:600;text-decoration:none}.parent-nav a.active{border-bottom:3px solid var(--accent-dark)}.parent-card{background:#fff;border-radius:16px;flex-direction:column;gap:.8rem;padding:1.2rem;display:flex}.parent-card button,.parent-login button{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:10px;align-self:flex-start;padding:.6em 1.2em;font-size:1rem}.parent-card button:disabled{opacity:.5}.parent-card input[type=text],.parent-card input:not([type]),.parent-card select,.parent-login input{border:2px solid var(--accent);border-radius:8px;width:auto;min-height:44px;padding:.5em;font-size:1rem}.parent-card input[type=checkbox],.parent-card input[type=radio]{width:22px;min-height:22px}.check-row,.radio-row label{align-items:center;gap:.6rem;display:flex}.radio-row{gap:1.5rem;display:flex}.big-number{margin:0;font-size:1.8rem;font-weight:800}.budget-alert{background:#ffe9c4;border-radius:10px;margin:0;padding:.6rem .9rem}.competency-list{flex-direction:column;gap:1rem;padding:0;list-style:none;display:flex}.competency-head{justify-content:space-between;display:flex}.parent-card progress{width:100%;height:14px}.patterns{color:var(--warn);font-size:.9rem}.parent-login form{flex-direction:column;gap:1rem;max-width:360px;display:flex}.parent-login label{flex-direction:column;gap:.3rem;display:flex}
