:root{--bg:#fff;--surface:#fff;--surface-sub:#faf9f7;--text:#1f1e1c;--text-2:#5f5e5a;--text-3:#888780;--border:#e4e2dc;--border-strong:#c9c7bf;--accent:#185fa5;--accent-bg:#e6f1fb;--accent-text:#0c447c;--success:#3b6d11;--success-bg:#eaf3de;--danger:#a32d2d;--danger-bg:#fcebeb;--primary:#1f1e1c;--on-primary:#fff;--stress:#c0392b;--green-bg:#eaf3de;--green-fg:#27500a;--blue-bg:#e6f1fb;--blue-fg:#0c447c;--red-bg:#fcebeb;--red-fg:#791f1f;--pink-bg:#fbeaf0;--pink-fg:#72243e;--amber-bg:#faeeda;--amber-fg:#633806;--purple-bg:#eeedfe;--purple-fg:#3c3489;--gray-bg:#f1efe8;--gray-fg:#444441;--coral-bg:#faece7;--coral-fg:#712b13;--teal-bg:#e1f5ee;--teal-fg:#085041;--indigo-bg:#e8eaf6;--indigo-fg:#283593;--cyan-bg:#dff4f7;--cyan-fg:#0b5560;--brown-bg:#f2e8df;--brown-fg:#5d3a1a;--lime-bg:#eef5d6;--lime-fg:#3f5208;--slate-bg:#e7ecf0;--slate-fg:#33414e;--radius:12px;--tab-h:64px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#141413;--surface:#1f1f1e;--surface-sub:#191918;--text:#efeee9;--text-2:#b4b2a9;--text-3:#888780;--border:#33332f;--border-strong:#4a4945;--accent:#85b7eb;--accent-bg:#0c447c;--accent-text:#e6f1fb;--success:#97c459;--success-bg:#27500a;--danger:#f09595;--danger-bg:#501313;--primary:#efeee9;--on-primary:#1f1e1c;--stress:#f09595;--green-bg:#27500a;--green-fg:#eaf3de;--blue-bg:#0c447c;--blue-fg:#e6f1fb;--red-bg:#791f1f;--red-fg:#fcebeb;--pink-bg:#72243e;--pink-fg:#fbeaf0;--amber-bg:#633806;--amber-fg:#faeeda;--purple-bg:#3c3489;--purple-fg:#eeedfe;--gray-bg:#444441;--gray-fg:#f1efe8;--coral-bg:#712b13;--coral-fg:#faece7;--teal-bg:#085041;--teal-fg:#e1f5ee;--indigo-bg:#283593;--indigo-fg:#e8eaf6;--cyan-bg:#0b5560;--cyan-fg:#dff4f7;--brown-bg:#5d3a1a;--brown-fg:#f2e8df;--lime-bg:#3f5208;--lime-fg:#eef5d6;--slate-bg:#33414e;--slate-fg:#e7ecf0}}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{background:var(--bg);color:var(--text);margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Hiragino Sans,Noto Sans JP,sans-serif;font-size:15px;line-height:1.6}button{font:inherit;color:inherit}h1{margin:0 0 12px;font-size:20px;font-weight:600}h2{margin:0 0 8px;font-size:16px;font-weight:600}.app{flex-direction:column;max-width:520px;min-height:100dvh;margin:0 auto;display:flex}.screen{padding:calc(16px + env(safe-area-inset-top)) 16px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom));flex:1}.tabbar{background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);z-index:10;justify-content:center;display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar-inner{width:100%;max-width:520px;display:flex}.tabbar button{height:var(--tab-h);color:var(--text-3);cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-size:11px;display:flex}.tabbar button.on{color:var(--accent)}.tabbar svg{width:22px;height:22px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:10px;padding:12px 14px}.card.tap{cursor:pointer;text-align:left;width:100%;display:block}.card.tap:active{transform:scale(.99)}.card.tap.between,.card.tap.chunk{display:flex}.sub{color:var(--text-2);font-size:13px}.muted{color:var(--text-3);font-size:12px}.row{align-items:center;gap:8px;display:flex}.between{justify-content:space-between;align-items:center;gap:8px;display:flex}.stack>*+*{margin-top:8px}.btn{border:1px solid var(--border-strong);background:var(--surface);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:6px;min-height:44px;padding:0 16px;font-size:14px;display:inline-flex}.btn.primary{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.btn.block{width:100%}.btn.small{min-height:34px;padding:0 12px;font-size:13px}.btn:disabled{opacity:.5}.icon-btn{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;display:inline-flex}.icon-btn svg{width:20px;height:20px}.pos{white-space:nowrap;border-radius:6px;padding:1px 7px;font-size:11px;line-height:1.4;display:inline-block}.c-green{background:var(--green-bg);color:var(--green-fg)}.c-blue{background:var(--blue-bg);color:var(--blue-fg)}.c-red{background:var(--red-bg);color:var(--red-fg)}.c-pink{background:var(--pink-bg);color:var(--pink-fg)}.c-amber{background:var(--amber-bg);color:var(--amber-fg)}.c-purple{background:var(--purple-bg);color:var(--purple-fg)}.c-gray{background:var(--gray-bg);color:var(--gray-fg)}.c-coral{background:var(--coral-bg);color:var(--coral-fg)}.c-teal{background:var(--teal-bg);color:var(--teal-fg)}.c-indigo{background:var(--indigo-bg);color:var(--indigo-fg)}.c-cyan{background:var(--cyan-bg);color:var(--cyan-fg)}.c-brown{background:var(--brown-bg);color:var(--brown-fg)}.c-lime{background:var(--lime-bg);color:var(--lime-fg)}.c-slate{background:var(--slate-bg);color:var(--slate-fg)}.kana{color:var(--text-2);word-break:keep-all;overflow-wrap:anywhere;font-size:12px}.kana b{color:var(--stress);font-weight:700}.ipa{color:var(--text-3);font-family:Lucida Grande,Segoe UI,sans-serif;font-size:12px}.mic{cursor:pointer;background:var(--primary);width:60px;height:60px;color:var(--on-primary);border:0;border-radius:50%;justify-content:center;align-items:center;display:inline-flex}.mic svg{stroke-width:1.5px;width:26px;height:26px}.mic.live{background:var(--danger);color:#fff;animation:1.2s infinite pulse}@keyframes pulse{0%,to{box-shadow:0 0 #e24b4a80}50%{box-shadow:0 0 0 14px #e24b4a00}}.home-hero{flex-direction:column;align-items:center;gap:6px;padding:48px 0 36px;display:flex}.home-input{border:1px solid var(--border-strong);background:var(--surface);border-radius:12px;align-items:center;gap:8px;width:100%;margin-top:18px;padding:6px 6px 6px 14px;display:flex}.home-input input{min-width:0;color:var(--text);font:inherit;background:0 0;border:0;outline:none;flex:1;font-size:16px}.home-input .icon-btn svg{transform:rotate(180deg)}.card.tap.menu-row{align-items:center;gap:14px;padding:16px;display:flex}.menu-row>span{flex-direction:column;display:flex}.menu-row b{font-size:16px}.tile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.tile{border-radius:var(--radius);text-align:left;cursor:pointer;border:1px solid #0000;flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;min-height:72px;padding:12px 14px;display:flex;position:relative}.tile:not([class*=\ c-]){background:var(--surface);border-color:var(--border)}.tile-label{font-size:16px;font-weight:600}.tile-done{color:var(--success);position:absolute;top:8px;right:8px}.word-item{cursor:pointer}.word-meaning{margin-top:6px;font-size:16px;font-weight:600}.word-note{border-top:1px solid var(--border);margin-top:6px;padding-top:6px;font-size:14px}.phonics-spell{color:var(--accent);font-size:22px;font-weight:700}.phonics-word{border:1px solid var(--border);background:var(--surface-sub);cursor:pointer;border-radius:10px;flex-direction:column;align-items:flex-start;padding:6px 12px;display:inline-flex}.phonics-word .w{font-size:18px;font-weight:600}.phonics-word mark{color:var(--accent);background:0 0;text-decoration:underline}.phonics-word mark.silent{color:var(--text-3);text-decoration:line-through;text-decoration-thickness:2px}.tabbar button{font-size:10px}.ai-card{border-color:var(--accent)}.them-card{border-width:1.5px;border-color:var(--border-strong)}.note-line{color:var(--text-2);align-items:flex-start;gap:4px;margin:-2px 2px 4px;font-size:13px;display:flex}.reply-card{padding:10px 12px}.reply-card>b{font-size:16px;display:block}.reply-tag{background:var(--accent-bg);color:var(--accent-text);border-radius:6px;margin-right:4px;padding:1px 7px;font-size:11px;display:inline-block}.chat{flex-direction:column;gap:8px;margin-bottom:12px;display:flex}.chat>div:not(.bubble){flex-direction:column;display:flex}.bubble{cursor:pointer;border-radius:14px;max-width:85%;padding:8px 12px;font-size:15px}.bubble.them{background:var(--surface-sub);border:1px solid var(--border);border-bottom-left-radius:4px;align-self:flex-start}.bubble.me{background:var(--primary);color:var(--on-primary);border-bottom-right-radius:4px;align-self:flex-end;display:block}.kana-on-dark{display:block}.kana-on-dark .kana{color:color-mix(in srgb, var(--on-primary) 75%, transparent)}.kana-on-dark .kana b{color:#ffb4a8}.ja-on-dark{color:color-mix(in srgb, var(--on-primary) 70%, transparent);font-size:12px;display:block}.bubble.me .reply-tag{background:color-mix(in srgb, var(--on-primary) 20%, transparent);color:var(--on-primary)}.mini-speak{vertical-align:middle;color:var(--text-2);cursor:pointer;background:0 0;border:0;padding:0 2px}.flow-node{flex-direction:column;gap:6px;display:flex}.flow-reply{margin-left:18px}.flow-reply>summary{cursor:pointer;justify-content:flex-end;list-style:none;display:flex}.flow-reply>summary::-webkit-details-marker{display:none}.flow-reply[open]>summary .bubble.me{outline:2px solid var(--accent);outline-offset:2px}.flow-reply>.flow-node,.flow-end{border-left:2px solid var(--border);margin:6px 0 10px;padding-left:10px}.answer-area{border-top:1px solid var(--border);padding-top:10px}.topic-row{gap:6px;margin-bottom:12px;padding-bottom:2px;display:flex;overflow-x:auto}.topic{border:1px solid var(--border-strong);background:var(--surface);cursor:pointer;border-radius:999px;flex-shrink:0;padding:6px 12px;font-size:13px}.topic.on{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.fix{background:var(--success-bg);max-width:85%;color:var(--success);border-radius:10px;align-self:flex-end;margin:4px 0 0 auto;padding:6px 10px;font-size:13px}.fix b{cursor:pointer;font-size:15px;display:block}.typing{padding:10px 14px;display:inline-flex}.chat-input{border:1px solid var(--border-strong);background:var(--surface);border-radius:14px;align-items:center;gap:8px;padding:6px;display:flex}.chat-input input{min-width:0;color:var(--text);font:inherit;background:0 0;border:0;outline:none;flex:1;font-size:16px}.seg{background:var(--surface-sub);border:1px solid var(--border);border-radius:10px;padding:3px;display:flex}.seg button{cursor:pointer;color:var(--text-2);background:0 0;border:0;border-radius:8px;flex:1;padding:8px;font-size:14px}.seg.seg-sm button{padding:5px;font-size:13px}.seg button.on{background:var(--surface);color:var(--text);box-shadow:0 0 0 1px var(--border)}textarea{resize:vertical;border:1px solid var(--border-strong);background:var(--surface);width:100%;min-height:72px;color:var(--text);font:inherit;border-radius:10px;padding:10px 12px;font-size:16px}.chunk{justify-content:space-between;align-items:center;gap:10px;display:flex}.chunk-en{font-size:17px;font-weight:600}.tok{cursor:pointer;border:0;border-radius:8px;flex-direction:column;align-items:flex-start;margin:2px 4px 2px 0;padding:4px 8px;display:inline-flex}.tok .w{font-size:15px;font-weight:600}.tok .k{opacity:.85;font-size:10px}.order-flow{flex-wrap:wrap;align-items:center;gap:4px;font-size:13px;display:flex}.order-flow .arrow{color:var(--text-3)}.progress{background:var(--border);border-radius:3px;height:6px;overflow:hidden}.progress>div{background:var(--success);border-radius:3px;height:100%;transition:width .3s}.sheet-backdrop{z-index:20;background:#0006;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:100%;max-width:520px;max-height:85dvh;padding:10px 18px calc(18px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;animation:.22s ease-out up;overflow:auto}@keyframes up{0%{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}.grip{background:var(--border-strong);border-radius:2px;width:40px;height:4px;margin:0 auto 12px}.dropzone{border:2px dashed var(--border-strong);border-radius:var(--radius);flex-wrap:wrap;align-items:center;gap:6px;min-height:64px;padding:8px;display:flex}.block{cursor:pointer;border:0;border-radius:10px;flex-direction:column;align-items:center;padding:6px 12px;font-size:15px;font-weight:600;display:inline-flex}.block .k{font-size:10px;font-weight:400}.block.focus{box-shadow:0 0 0 2px var(--accent)}.block:disabled{opacity:1;cursor:default}.lead-plain{background:var(--accent-bg);color:var(--accent-text)}.lead{border-radius:var(--radius);margin-bottom:4px;padding:10px 14px;font-size:16px;font-weight:600}.word-row{border:0;border-bottom:1px solid var(--border);text-align:left;cursor:pointer;background:0 0;justify-content:space-between;align-items:center;width:100%;padding:8px 0;display:flex}.word-row:last-child{border-bottom:0}.points{margin:0;padding-left:20px;font-size:15px}.points li+li{margin-top:6px}.feedback{border-radius:var(--radius);margin:12px 0;padding:10px 12px;font-size:14px}.feedback.ok{background:var(--success-bg);color:var(--success)}.feedback.ng{background:var(--danger-bg);color:var(--danger)}.error{color:var(--danger);margin-top:6px;font-size:13px}.choice{text-align:left;justify-content:flex-start;width:100%;margin-bottom:8px}.choice:disabled{opacity:1}.choice .pos{text-align:center;min-width:5.4em;margin-right:10px}.choice:disabled:not(.correct):not(.wrong){color:var(--text-3)}.choice.correct{border-color:var(--success);background:var(--success-bg);color:var(--success)}.choice.wrong{border-color:var(--danger);background:var(--danger-bg);color:var(--danger)}.flash{text-align:center;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;min-height:220px;display:flex}.flash .big{font-size:32px;font-weight:700;line-height:1.25}.card-example{background:var(--surface-sub);border:1px solid var(--border);border-radius:10px;width:100%;margin-top:14px;padding:10px 12px;font-size:15px}.abc{grid-template-columns:repeat(4,1fr);gap:8px;display:grid}.abc button{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:10px;padding:8px 4px}.abc .L{font-size:22px;font-weight:700;display:block}.spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:22px;height:22px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.switch{justify-content:space-between;align-items:center;font-size:14px;display:flex}.switch input{width:20px;height:20px}.scene-sec{margin-bottom:16px}.scene-sec h2{color:var(--text-2);margin:0 4px 6px;font-size:13px;font-weight:600}.list-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.list-row{text-align:left;cursor:pointer;width:100%;color:var(--text);font:inherit;background:0 0;border:0;align-items:center;gap:10px;padding:11px 12px 11px 14px;display:flex}.list-row+.list-row{border-top:1px solid var(--border)}.list-row:active{background:var(--surface-sub)}.list-row>svg{color:var(--text-3);flex-shrink:0}.list-text{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.list-text b{font-size:15px;font-weight:600}.list-text .muted{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}html{touch-action:manipulation}
