:root{--ink: #1b2a33;--muted: #5b6f7a;--bg: #f4f1ea;--card: #ffffff;--brand: #1f4e5f;--brand-2: #2f7d8c;--accent: #e8a33d;--ok: #2e7d4f;--ko: #b3472b;--line: #e2ddd2;--radius: 16px;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:var(--ink);background:var(--bg);-webkit-tap-highlight-color:transparent}*{box-sizing:border-box}body{margin:0;min-height:100vh;overscroll-behavior:none}h1{font-size:1.6rem;margin:.2em 0}h2{font-size:1.25rem;margin:.3em 0}h3{margin:0 0 .5em}.screen{max-width:980px;margin:0 auto;padding:max(16px,env(safe-area-inset-top)) 16px 32px;display:flex;flex-direction:column;gap:14px}button{font:inherit;font-size:1rem;min-height:48px;padding:10px 16px;border-radius:12px;border:1px solid var(--line);background:var(--card);color:var(--ink);cursor:pointer}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}button.danger{background:#fff3ef;border-color:#f0c2b4;color:var(--ko)}button.big{min-height:60px;font-size:1.1rem;padding:12px 22px}button.active,button[aria-pressed=true]{background:#e3eff2;border-color:var(--brand-2)}button.link{background:none;border:none;color:var(--brand-2);text-decoration:underline;min-height:40px}input,select{font:inherit;font-size:1rem;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}label{display:flex;flex-direction:column;gap:4px;margin:6px 0}label.check{flex-direction:row;align-items:flex-start;gap:10px}label.check input{min-height:auto;margin-top:4px}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.center{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}.card{background:var(--card);border-radius:var(--radius);padding:16px;border:1px solid var(--line)}.hint-small{font-size:.9rem;color:var(--muted);margin:4px 0}.error{color:var(--ko)}.badge{display:inline-block;font-size:.8rem;padding:3px 10px;border-radius:999px;background:#eee;margin-left:6px}.badge.demo{background:#fff2d6;color:#7a5410}.badge.real,.badge.ok{background:#e4f1e8;color:var(--ok)}.warn{border-left:4px solid var(--accent);background:#fffaf0;padding:12px;border-radius:10px;margin:10px 0}.home-head p{color:var(--muted);margin:.3em 0 .6em}.tile{display:flex;gap:14px;align-items:center;text-align:left;padding:16px;border-radius:var(--radius);min-height:84px;width:100%}.tile .ico{font-size:2rem}.tile strong{display:block;font-size:1.1rem}.tile small{color:var(--muted)}.tile.main{background:var(--brand);color:#fff;border:none;min-height:110px}.tile.main small{color:#d5e7ec}.grid2{display:grid;grid-template-columns:1fr;gap:12px}@media (min-width: 640px){.grid2{grid-template-columns:1fr 1fr 1fr}}.parent-link{align-self:flex-end}.teacher{background:var(--card);border-radius:var(--radius);padding:14px;border:1px solid var(--line);position:sticky;top:0;z-index:5}.teacher-head{display:flex;gap:12px;align-items:center}.avatar{width:52px;height:52px;border-radius:50%;background:var(--brand-2);display:grid;place-items:center;flex:none}.avatar span{width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .2s}.avatar.speaking span{animation:pulse .9s ease-in-out infinite}.avatar.listening{background:var(--ko)}.avatar.writing{background:var(--accent)}.avatar.paused{background:#9aa8ae}@keyframes pulse{50%{transform:scale(1.5)}}.status-pill{font-weight:700;font-size:1.1rem}.ai-note{margin:0;font-size:.8rem;color:var(--muted)}.subtitle{margin:10px 0 0;font-size:.95rem;color:var(--muted);background:#f7f6f2;padding:8px 10px;border-radius:10px}.voice-bar{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin-top:10px}.voice-bar button{font-size:.95rem}.mic-indicator{position:fixed;top:10px;right:10px;z-index:50;background:var(--ko);color:#fff;padding:8px 12px;border-radius:999px;display:flex;align-items:center;gap:10px;box-shadow:0 4px 16px #0003}.mic-indicator .dot{width:12px;height:12px;border-radius:50%;background:#fff;animation:pulse 1s infinite}.mic-indicator button{min-height:36px;padding:4px 12px}.speak{display:flex;flex-direction:column;align-items:center;gap:8px}.talk{width:160px;height:160px;border-radius:50%;background:var(--ko);color:#fff;font-size:1.3rem;font-weight:700;border:none;box-shadow:0 6px 20px #b3472b44}.sim-panel{width:100%}.choices{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}.choices button{min-width:120px}.sim-typed{display:flex;gap:8px;align-items:flex-end;margin-top:10px}.q-count{color:var(--muted)}.ink{width:100%;aspect-ratio:3 / 1;background:#fff;border-radius:var(--radius);border:2px solid var(--line);touch-action:none;display:block;cursor:crosshair}.ink-eraser{cursor:cell;border-color:var(--accent)}.pen-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.progress{display:flex;gap:6px}.progress span{flex:1;height:8px;border-radius:4px;background:var(--line)}.progress span.done{background:var(--brand-2)}.progress span.now{background:var(--accent)}.demo-box{background:#fff8e8;border:1px dashed #e0c07a;border-radius:12px;padding:8px 12px}.score-card{display:flex;gap:16px;align-items:center;background:var(--card);border-radius:var(--radius);padding:16px;border:1px solid var(--line)}.score{font-size:3rem;font-weight:800;color:var(--brand)}.score small{font-size:1.2rem;color:var(--muted)}.results{list-style:none;padding:0;margin:0;display:grid;gap:8px}.results li{display:grid;grid-template-columns:28px 1fr auto 28px;gap:10px;align-items:center;background:#fff;border-radius:12px;padding:6px 10px;border:1px solid var(--line)}.results img{width:100%;max-width:240px;border-radius:6px;border:1px solid #eee}.results .ok .mark,.results li.ok .mark{color:var(--ok)}.results li.ko .mark{color:var(--ko)}.results li.unsure .mark{color:var(--accent)}.results .target{font-weight:600}.num{color:var(--muted);font-weight:700}.lesson-card{background:var(--card);border:2px solid var(--brand-2);border-radius:var(--radius);padding:16px;display:flex;flex-direction:column;gap:8px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pair div{background:#f7f6f2;border-radius:12px;padding:10px;display:flex;flex-direction:column}.pair small{color:var(--muted)}.written{font-size:1.4rem;color:var(--ko);text-decoration:line-through;text-decoration-thickness:1px}.expected{font-size:1.4rem;color:var(--ok);font-weight:700}.tip{background:#eef6f1;padding:10px;border-radius:10px}.all-errors{text-align:left}.verify{display:flex;flex-direction:column;gap:10px}.verify-item{display:grid;grid-template-columns:24px 1fr;gap:8px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:8px}.verify-item img{width:100%;max-width:420px;border:1px solid #eee;border-radius:6px;grid-column:2}.verify-fields{grid-column:2;display:flex;gap:8px;flex-wrap:wrap;align-items:center}.verify-fields input{flex:1;min-width:180px;font-size:1.1rem}.verify-fields small{width:100%;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stats div,.month{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column}.stats strong{font-size:1.5rem;color:var(--brand)}.months{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.month span{color:var(--muted);font-size:.85rem}.weeks{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}@media (min-width: 640px){.weeks{grid-template-columns:repeat(12,1fr)}}.week{background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px;text-align:center;display:flex;flex-direction:column}.week.done{background:#e9f3ef;border-color:#bfdccc}.week.now{border-color:var(--accent);border-width:2px}.read-text{background:#fff;border-radius:var(--radius);padding:20px;font-size:1.3rem;line-height:1.8;border:1px solid var(--line)}.parent-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}.tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}.tabs button{white-space:nowrap}table.errors{width:100%;border-collapse:collapse;font-size:.9rem;background:#fff}table.errors th,table.errors td{border-bottom:1px solid var(--line);padding:6px;text-align:left;vertical-align:top}.grade-row summary{cursor:pointer}.modal-back{position:fixed;inset:0;background:#0006;display:grid;place-items:center;z-index:100;padding:16px}.modal{background:#fff;border-radius:var(--radius);padding:20px;width:min(380px,100%);display:flex;flex-direction:column;gap:10px}.modal input{font-size:1.6rem;letter-spacing:.4em;text-align:center}.setup ul{padding-left:1.2em}@media (max-width: 420px){.pen-bar{grid-template-columns:1fr 1fr}.talk{width:130px;height:130px}.score{font-size:2.4rem}}@media (max-width: 640px){.teacher{position:static;padding:10px}.avatar{width:40px;height:40px}.voice-bar{grid-template-columns:repeat(5,1fr);gap:6px}.voice-bar button{font-size:.72rem;padding:6px 2px;min-height:56px;line-height:1.15}.subtitle{font-size:.9rem}}.home-head h1{font-size:2rem}.home-head p{font-size:1.2rem}.start-btn{width:100%;min-height:200px;border:none;border-radius:28px;background:var(--brand);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:2rem;font-weight:800;box-shadow:0 10px 30px #1f4e5f40}.start-btn .ico{font-size:3rem}.start-btn small{font-size:1rem;font-weight:400;color:#d5e7ec}.small-tiles{grid-template-columns:1fr 1fr!important}.small-tiles .tile{min-height:90px;justify-content:center}.home-foot{display:flex;justify-content:space-between;align-items:center;margin-top:auto}.parent-link{font-size:1.4rem;text-decoration:none;opacity:.6}.teacher-head{justify-content:space-between}.teacher-status{flex:1}.teacher .status-pill{font-size:1.4rem}button.icon{min-height:44px;min-width:44px;padding:4px;border-radius:50%;font-size:1.2rem}.voice-bar{display:flex!important;gap:10px}.voice-bar button{flex:1;min-height:60px;font-size:1.05rem!important}.voice-bar .icon-btn{flex:0 0 64px;font-size:1.4rem!important}.big-emoji{font-size:3.2rem}.pen-bar{grid-template-columns:1fr 1fr 1.4fr!important}.pen-bar .done{font-size:1.15rem;min-height:64px}.self-check{display:flex;flex-direction:column;gap:12px;align-items:stretch}.compare{display:grid;grid-template-columns:1fr 1fr;gap:10px}.compare>div{background:#f7f6f2;border-radius:14px;padding:10px;display:flex;flex-direction:column;gap:6px}.compare small{color:var(--muted)}.compare img{width:100%;border-radius:8px;border:1px solid #eee;background:#fff}.compare .model{font-size:1.8rem;font-weight:700;color:var(--ok)}.question{font-size:1.3rem;font-weight:700;text-align:center;margin:4px 0}.yes-no{display:grid;grid-template-columns:1fr 1fr;gap:12px}.yes-no button{min-height:72px;font-size:1.2rem;font-weight:700;border-radius:18px}.yes-no .yes{background:#e6f3ec;border-color:#9fd0b4;color:var(--ok)}.yes-no .no{background:#fdeee9;border-color:#f0c2b4;color:var(--ko)}.stars{font-size:1.6rem}.tip{font-size:1.15rem;display:flex;gap:10px;align-items:flex-start}.tip-icon{font-size:1.5rem}.copy-img{width:100%;border-radius:8px;background:#fff;border:1px solid #eee}@media (max-width: 640px){.voice-bar button{font-size:.95rem!important;min-height:56px}.compare{grid-template-columns:1fr}.start-btn{min-height:170px}}.tbar{display:flex;align-items:center;gap:10px;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:8px 10px;position:sticky;top:0;z-index:5}.tbar .avatar{width:44px;height:44px}.tbar-text{flex:1;font-size:1.25rem;font-weight:700;line-height:1.2}button.round{width:56px;height:56px;min-height:56px;padding:0;border-radius:50%;font-size:1.5rem;flex:none}button.wide{width:100%}.step{display:flex;flex-direction:column;gap:18px;padding-top:8px}.hero{min-height:40vh;justify-content:center}.big-emoji{font-size:4rem;line-height:1}.big-q{font-size:1.6rem;font-weight:800;text-align:center;margin:6px 0;line-height:1.3}.dots{display:flex;gap:8px;justify-content:center}.dots span{width:14px;height:14px;border-radius:50%;background:var(--line)}.dots span.done{background:var(--brand-2)}.dots span.now{background:var(--accent);transform:scale(1.25)}.answers{display:flex;flex-direction:column;gap:14px;align-items:center}.choice-grid{display:grid;gap:14px;width:100%;grid-template-columns:1fr 1fr}.choice-grid.n3{grid-template-columns:1fr}.choice{min-height:96px;font-size:1.5rem;font-weight:700;border-radius:22px;border:2px solid #cfe0e6;background:#fff;color:var(--brand)}.choice:active{background:#e3eff2}.mic{border-radius:999px;min-height:56px;padding:8px 22px;font-size:1.3rem;display:flex;gap:8px;align-items:center;color:var(--ko);border-color:#f0c2b4;background:#fff6f3}.mic span{font-size:1rem}.counter{text-align:center;font-size:1.4rem;font-weight:800;color:var(--brand-2)}.dictation .ink{aspect-ratio:2.2 / 1}.pen-bar2{display:flex;gap:12px;align-items:center}.pen-bar2 .next{flex:1;min-height:72px;font-size:1.5rem;border-radius:20px}.big-stars{font-size:3rem}.correction .score{font-size:4.5rem}.lesson-card .pair span{font-size:1.8rem}@media (max-width: 640px){.choice{min-height:84px;font-size:1.3rem}.big-q{font-size:1.35rem}.tbar-text{font-size:1.1rem}}[hidden]{display:none!important}.templates{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}.templates button{font-size:.95rem}.goal-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:6px 14px;margin:8px 0 12px}.bar{height:12px;border-radius:999px;background:#ece7dc;overflow:hidden;margin:8px 0}.bar span{display:block;height:100%;background:var(--brand-2);border-radius:999px;transition:width .4s}.big-bar{height:22px}.goal-card{background:var(--card);border:2px solid var(--line);border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:6px}.goal-card.reached_pending_parent,.goal-card.granted{border-color:#9fd0b4;background:#f2faf5}.goal-card.reached_pending_parent .bar span,.goal-card.granted .bar span{background:var(--ok)}.goal-head{display:flex;align-items:center;gap:10px;font-size:1.25rem}.goal-head strong{flex:1}.goal-icon{font-size:2rem}.goal-done{font-size:1.6rem}.goal-foot{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-weight:600;color:var(--muted)}.goal-reward{margin:4px 0 0;font-size:1.05rem}.goal-reward small{color:var(--muted)}.ink-tall{aspect-ratio:1.4 / 1!important}.prompt{font-size:1.35rem;font-weight:700;text-align:center;margin:4px 0;line-height:1.35}.corrected-text{text-align:left;width:100%}.corrected-text p{font-size:1.4rem;color:var(--ok);font-weight:700;margin:4px 0 0}textarea{font:inherit;font-size:1.05rem;padding:8px 12px;border:1px solid var(--line);border-radius:10px;width:100%}.voice-warn{margin:0 0 16px;padding:12px 16px;border-radius:14px;background:#fff4e0;color:#6b4a12;font-size:1rem}.choice.right,.choice.right:disabled{background:#e6f4ea;border-color:#2e8b57;color:#1d5c39;opacity:1}.choice.wrong,.choice.wrong:disabled{background:#fdecea;border-color:#c0392b;color:#8e2a20;opacity:1;text-decoration:line-through}.feedback{width:100%;box-sizing:border-box;margin-top:18px;padding:18px 22px;border-radius:20px;border:2px solid;font-size:1.15rem;line-height:1.45;display:flex;flex-direction:column;gap:6px}.feedback p{margin:0}.feedback.ok{background:#f1f9f3;border-color:#2e8b57}.feedback.ko{background:#fff6ef;border-color:#e8a33d}.feedback .fb-title{font-size:1.4rem;font-weight:800}.feedback .fb-rule{margin-top:4px}.feedback .fb-tip,.feedback .fb-again{color:#5b6f7a}.feedback .fb-next{align-self:flex-end;margin-top:10px;min-height:56px}.retry-tag{text-align:center;margin:0 0 6px;font-weight:700;color:#b26b00}.answers.revealed .choice{min-height:64px;font-size:1.3rem}.answers.revealed .choice-grid{gap:10px}.feedback{scroll-margin-bottom:24px}.medals{margin:-6px 0 14px;font-size:1.15rem;font-weight:700;color:#8a5a00}.goal-card.won{border-color:#e8a33d;background:#fff8ea}.auto-tag{color:#5b6f7a;font-weight:500}details.card>summary{cursor:pointer;font-weight:700;font-size:1.05rem;padding:4px 0}.recap{max-width:640px;margin:18px auto 0;text-align:left;display:flex;flex-direction:column;gap:6px;font-size:1.1rem}.recap p,.week-report p{margin:0}.week-report{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;font-size:1.08rem;border:2px solid #2f7d8c}.week-report .row{margin-top:8px;gap:10px}.rewrite{display:flex;flex-direction:column;gap:12px}.rewrite .question{font-size:1.3rem;font-weight:800;margin:0}.rewrite-before{display:flex;align-items:center;gap:12px}.rewrite-before img{max-height:90px;border:1px dashed #cfd8dc;border-radius:10px;background:#fff}.tbar .home-btn{background:#fff}.listen-btn{display:inline-flex;align-items:center;gap:8px;min-height:56px;padding:0 18px;border-radius:999px;border:2px solid var(--brand);background:#e8f2f4;color:var(--brand);font-size:1.15rem;font-weight:800;flex:none}.listen-btn span[aria-hidden]{font-size:1.6rem;line-height:1}.listen-btn:active{background:#d3e6ea}@media (max-width: 560px){.listen-btn{padding:0 12px}.listen-label{display:none}.tbar{gap:6px}.tbar .avatar{display:none}}.say-again{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;margin-left:4px;border-radius:50%;border:2px solid var(--brand);background:#e8f2f4;font-size:1.2rem;vertical-align:middle}
