:root{--bg:#fff;--bg-tint:#f0f0f2;--surface:#fff;--surface2:#e9ecf6;--text:#0f1b3d;--muted:#5a6482;--line:#d9deec;--brand:#0f1b3d;--accent:#ce1124;--accent-text:#fff;--ok:#0f1b3d;--warn:#ce1124;--bad:#ce1124;--user-bubble:#e3e8f7;--guest-bubble:#fde8ea;--shadow:0 1px 3px #0f1b3d1a;--cta-bg:#1c1f27;--cta-text:#fff;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light only;--bar:#1c1f27;--bar-line:#2e323d;--bar-text:#fff}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html{accent-color:#ce1124;background:#ececee}html,body{color:var(--text);overscroll-behavior:none;margin:0}body{font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}html{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}input,textarea,[contenteditable]{-webkit-user-select:text;user-select:text}h1{margin:.2rem 0;font-size:1.6rem}h2{margin:.2rem 0;font-size:1.3rem}h3{margin:0 0 .4rem;font-size:1.05rem}p{margin:.25rem 0}a{color:inherit;text-decoration:none}ul{margin:.3rem 0;padding-left:1.2rem}.page{max-width:560px;padding:18px 16px calc(104px + env(safe-area-inset-bottom));min-height:calc(100dvh - 57px - env(safe-area-inset-top));margin:0 auto}.stack{flex-direction:column;gap:12px;display:flex}.row{align-items:center;gap:8px;display:flex}.row.center,.center{text-align:center;justify-content:center}.stack.center{align-items:center}.grow{flex:1;min-width:0}.muted{color:var(--muted)}.small{font-size:.875rem}.ok{color:var(--ok);font-weight:600}.warn{color:var(--warn);font-weight:600}.err,.bad{color:var(--bad)}.svgi.inl{vertical-align:-.22em;width:1.15em;height:1.15em;margin-right:.4em}.btn .svgi.inl{margin-right:0}.star .svgi{fill:currentColor}.ico .svgi{width:26px;height:26px}.mic{color:#fff;place-items:center;display:grid}.mic .svgi{width:40px;height:40px}.icon-btn{place-items:center;display:inline-grid}.icon-btn .svgi{width:22px;height:22px}.en{font-weight:600}.good{color:var(--ok)}.big-text{font-size:1.3rem;font-weight:600}.card{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:14px;padding:14px}.card.error{border-color:var(--bad)}.card.cta{background:var(--cta-bg);color:var(--cta-text);border:none;flex-direction:column;gap:8px;display:flex}.subcard{background:var(--surface2);border-radius:10px;padding:10px}.linkrow{cursor:pointer;min-height:56px}.ico{text-align:center;width:2rem;font-size:1.5rem}.btn,button.btn,a.btn{border:1px solid var(--line);background:var(--surface);min-height:48px;color:var(--text);font:inherit;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:10px 16px;font-weight:600;display:inline-flex}.btn.primary{background:var(--accent);color:var(--accent-text);border-color:#0000}.card.cta .btn.primary{background:var(--accent);color:#fff}.btn.big{width:100%;min-height:56px;font-size:1.1rem}.btn.danger{color:var(--bad);border-color:var(--bad)}.btn:disabled{opacity:.5}.btn.rec,.icon-btn.rec{background:var(--bad);color:#fff;border-color:#0000;animation:1.2s infinite pulse}.btn.link-btn{text-align:left;justify-content:flex-start;font-weight:500}.icon-btn{border:1px solid var(--line);background:var(--surface2);min-width:48px;min-height:48px;color:var(--text);font:inherit;cursor:pointer;border-radius:50%}button.plain{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;width:100%;padding:0}button.link,a.link{color:var(--accent);font:inherit;cursor:pointer;text-align:left;background:0 0;border:none;padding:8px 0;text-decoration:underline}.chip{border:1px solid var(--line);background:var(--surface);min-height:40px;color:var(--text);font:inherit;cursor:pointer;border-radius:999px;align-items:center;padding:6px 12px;font-size:.9rem;display:inline-flex}.chip.small{cursor:default;min-height:0;padding:1px 8px;font-size:.75rem}.chip.danger{color:var(--bad)}.chip:disabled{opacity:.4}input,select,textarea{border:1px solid var(--line);background:var(--surface);width:100%;min-height:48px;color:var(--text);font:inherit;border-radius:12px;padding:10px 12px}input[type=checkbox]{flex:none;width:24px;height:24px;min-height:24px}input[type=range]{padding:0}label{flex-direction:column;gap:4px;font-weight:500;display:flex}label.row.check{flex-direction:row;align-items:center;font-weight:400}:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.tabbar{left:50%;bottom:calc(10px + env(safe-area-inset-bottom));z-index:20;background:var(--bar);border:1px solid var(--bar-line);border-radius:28px;gap:2px;width:min(100% - 24px,440px);padding:6px;display:flex;position:fixed;transform:translate(-50%);box-shadow:0 12px 28px -10px #0000008c}.tab{min-height:58px;color:var(--bar-text);border-radius:22px;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;padding:7px 0 6px;font-size:.7rem;font-weight:600;display:flex}.tab.active{color:#e5384a}.svgi{fill:none;stroke:currentColor;stroke-width:1.8px;stroke-linecap:round;stroke-linejoin:round;flex:none;width:24px;height:24px}.topbar{z-index:30;background:var(--bar);color:var(--bar-text);border-bottom:1px solid var(--bar-line);padding:env(safe-area-inset-top) 0 0;position:sticky;top:0}.topbar-in{justify-content:space-between;align-items:center;max-width:560px;min-height:56px;margin:0 auto;padding:0 12px 0 16px;display:flex}.logo{letter-spacing:-.02em;color:#fff;font-size:1.7rem;font-weight:800;line-height:1}.logo .en{vertical-align:baseline;width:1.26183em;height:.711em;margin-left:.14em;display:inline-block}.topbtns{gap:6px;display:flex}.topbtn .svgi{width:23px;height:23px}.topbtn{color:#fff;cursor:pointer;background:0 0;border:none;border-radius:50%;place-items:center;width:42px;height:42px;display:grid;position:relative}.topbtn:disabled{opacity:.5}.topbtn.on .svgi{fill:currentColor}.topbtn .dot{background:var(--accent);border:2px solid var(--bar);border-radius:50%;width:8px;height:8px;position:absolute;top:7px;right:8px}.topbar :focus-visible,.tabbar :focus-visible{outline-color:#fff}.toast{left:16px;right:16px;bottom:calc(100px + env(safe-area-inset-bottom));background:var(--cta-bg);color:var(--cta-text);border:1px solid var(--line);z-index:50;text-align:center;border-radius:12px;padding:12px 16px;position:fixed}.hero h1{color:var(--brand)}.home{flex-direction:column;padding-top:6px;display:flex}.home .toprow{justify-content:space-between;align-items:center;gap:8px;display:flex}.home .lvl.dark{background:var(--bar);color:#fff}.home .lvl{color:#111;letter-spacing:.08em;background:#fff;border:none;border-radius:999px;padding:4px 12px;font-size:.72rem;font-weight:700}.home .hello{letter-spacing:-.035em;color:var(--brand);margin:30px 0 0;font-size:clamp(2.2rem,11vw,2.9rem);font-weight:500;line-height:1.04}.home .hello b{color:var(--accent);font-weight:800}.home .sum{color:var(--muted);margin:14px 0 0;font-size:1rem;line-height:1.6}.home .sum strong{color:var(--text)}.home .big{text-align:left;background:var(--accent);color:#fff;box-shadow:0 14px 28px -14px color-mix(in srgb, var(--accent) 80%, transparent);border-radius:26px;align-items:center;gap:14px;margin-top:30px;padding:14px 18px 14px 14px;display:flex}.home .circ{color:#fff;background:#fff3;border-radius:50%;flex:none;place-items:center;width:64px;height:64px;display:grid}.home .circ svg{fill:none;stroke:currentColor;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round;width:30px;height:30px}.home .bigtxt{color:#ffffffe0;flex-direction:column;gap:2px;min-width:0;font-size:.9rem;line-height:1.35;display:flex}.home .bigtxt b{color:#fff;font-size:1.1rem}.home .done{margin-top:10px}.home .hhead{justify-content:space-between;align-items:baseline;margin-top:32px;display:flex}.home .hhead h2{color:var(--brand);margin:0}.home .hhead a{color:var(--accent);font-size:.85rem;font-weight:600}.home .pgrid{grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px;display:grid}.home .pblock{background:var(--bar);color:#fff;text-align:center;border-radius:22px;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px 8px;min-width:0;padding:12px 6px 10px;display:flex}.home .pblock .ic{color:#ce1124;background:#fff;border-radius:50%;flex:none;place-items:center;width:36px;height:36px;display:grid;box-shadow:0 6px 14px -6px #00000059}.home .pblock .svgi{width:18px;height:18px}.home .pblock b{letter-spacing:-.02em;white-space:nowrap;font-size:1.25rem;font-weight:800;line-height:1}.home .pblock .lbl{color:#a9afbd;flex-basis:100%;font-size:.72rem;line-height:1.2}.home .foot{margin-top:18px}.tiles{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.tile{background:var(--surface);border:1px solid var(--line);text-align:center;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:84px;padding:12px 8px;display:flex}.tile .num{font-size:1.3rem;font-weight:700}.quick{grid-template-columns:1fr 1fr;gap:8px;display:grid}.pagehead p{margin-top:0}.spinner{border:4px solid var(--line);border-top-color:var(--accent);border-radius:50%;width:36px;height:36px;margin:24px auto 8px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.7}}.login{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex}.login form{width:100%;max-width:320px;margin-top:12px}.phrase .try{flex-wrap:wrap;align-items:center;gap:10px;margin-top:8px;display:flex}.grammar{background:var(--surface2)}.flash{text-align:center;flex-direction:column;justify-content:center;gap:10px;min-height:220px;display:flex}.reveal{border-top:1px dashed var(--line);padding-top:10px}.ratings{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.ratings .btn{padding:10px 4px;font-size:.85rem}.r1{border-color:var(--bad)!important}.r2{border-color:var(--warn)!important}.r3{border-color:var(--ok)!important}.r4{border-color:var(--accent)!important}.progressbar{background:var(--surface2);border-radius:4px;height:8px;overflow:hidden}.progressbar>div{background:var(--accent);height:100%;transition:width .3s}.seg{background:var(--surface2);border-radius:12px;padding:4px;display:flex}.seg button{min-height:44px;color:var(--text);font:inherit;background:0 0;border:none;border-radius:9px;flex:1;font-weight:600}.seg button.on{background:var(--surface);box-shadow:var(--shadow)}.stepbar{gap:6px;font-size:.8rem;display:flex;overflow-x:auto}.stepbar span{background:var(--surface2);color:var(--muted);white-space:nowrap;border-radius:999px;padding:4px 10px}.stepbar span.on{background:var(--accent);color:var(--accent-text);font-weight:700}.stepbar span.done{color:var(--ok)}.plan li{margin:6px 0}.scene{height:calc(100dvh - 57px - 18px - 104px - env(safe-area-inset-top) - env(safe-area-inset-bottom));flex-direction:column;gap:8px;display:flex}.scene-top{flex-direction:column;gap:6px;display:flex}.goalbar{flex-wrap:wrap;gap:6px;font-size:.8rem;display:flex}.goal{background:var(--surface2);color:var(--muted);border-radius:8px;padding:3px 8px}.goal.done{background:var(--ok);color:#fff}.transcript{flex-direction:column;flex:1;gap:8px;padding:4px 2px;display:flex;overflow-y:auto}.bubble{border-radius:16px;max-width:86%;padding:10px 14px;font-size:1.05rem}.bubble.guest{background:var(--guest-bubble);border-bottom-left-radius:4px;align-self:flex-start}.bubble.user{background:var(--user-bubble);border-bottom-right-radius:4px;align-self:flex-end}.bubble.live{opacity:.75;font-style:italic}.tip{background:var(--surface2);border-left:4px solid var(--accent);border-radius:8px;padding:8px 10px;font-size:.9rem}.scene-bottom{flex-direction:column;gap:8px;display:flex}.statusline{text-align:center;min-height:24px}.rec-dot{color:var(--bad);font-weight:700;animation:1.2s infinite pulse}.mic{background:var(--accent);cursor:pointer;width:88px;height:88px;box-shadow:var(--shadow);touch-action:none;border:none;border-radius:50%;font-size:2.2rem}.mic.on{background:var(--bad);animation:1.2s infinite pulse}.controls{flex-wrap:wrap;justify-content:center;gap:6px;display:flex}.dots:after{content:"●●●";letter-spacing:3px;animation:1s infinite pulse}.modal{z-index:40;background:#00000080;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--bg);width:100%;max-width:560px;padding:16px 16px calc(16px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;max-height:85dvh;margin:0 auto;overflow-y:auto}.correction{border-bottom:1px solid var(--line);padding-bottom:8px}.correction:last-child{border:none}.stars{justify-content:space-between;align-items:center;display:flex}.star{color:var(--line);font-size:1.4rem}.star.on{color:var(--accent)}.goals{padding:0;list-style:none}.goals li{padding:3px 0}.phraseday{background:var(--surface2);border-radius:12px;padding:10px}.criteria{padding:0;list-style:none}.criteria li{padding:3px 0}.chat{min-height:calc(100dvh - 120px)}.messages{flex-direction:column;flex:1;gap:8px;display:flex}.msg{white-space:pre-wrap;border-radius:16px;max-width:92%;padding:10px 14px}.msg.user{color:#111;border:1px solid var(--line);background:#fff;align-self:flex-end}.msg.assistant{background:var(--surface);border:1px solid var(--line);align-self:flex-start}.exchip{background:var(--surface2);border-radius:10px;flex-wrap:wrap;align-items:center;gap:4px;margin:2px 0;padding:2px 6px;display:inline-flex}.exchip .icon-btn{min-width:36px;min-height:36px}.composer{background:0 0;padding:6px 0;position:sticky;bottom:90px}.bars{align-items:flex-end;gap:4px;height:90px;display:flex}.bar{background:var(--surface2);border-radius:4px;flex:1;align-items:flex-end;height:100%;display:flex}.bar>div{background:var(--accent);border-radius:4px;width:100%;min-height:2px}.table{flex-direction:column;font-size:.85rem;display:flex}.trow{border-bottom:1px solid var(--line);grid-template-columns:1fr 1fr 1fr 1.2fr 1fr;padding:4px 0;display:grid}.trow.head{color:var(--muted);font-weight:600}:root :is(.card,.tile,.subcard,.phraseday,.tip,.msg.assistant,.btn,.chip,.seg,.icon-btn,.exchip,.grammar){--text:#fff;--muted:#a9afbd;--line:var(--bar-line);--accent:#e5384a;--ok:#fff;--warn:#e5384a;--bad:#e5384a;--surface:#2a2e39;--surface2:#2a2e39;--shadow:none}:root :is(.card,.tile,.subcard,.phraseday,.tip,.msg.assistant,.btn,.chip,.seg,.icon-btn,.exchip,.grammar):not(.primary):not(.rec){background:var(--bar);border-color:var(--bar-line)}:root :is(.card,.tile,.subcard,.phraseday,.tip,.msg.assistant,.seg,.exchip,.grammar){color:var(--text)}.btn.primary{color:#fff}@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}.recd{background:currentColor;border-radius:50%;width:.7em;height:.7em;margin-right:.45em;display:inline-block}.plain-list{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.mlist{flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;display:flex}.mlist li{align-items:flex-start;gap:12px;display:flex}.mlist .mn{color:#111;background:#fff;border-radius:50%;flex:none;place-items:center;width:30px;height:30px;font-size:.85rem;font-weight:800;display:grid}.info .block{margin-top:2px;display:block}.tutor-head{align-items:flex-start;gap:10px}.pillbtn{background:var(--bar);color:#fff;font:inherit;letter-spacing:.08em;cursor:pointer;border:none;border-radius:999px;flex:none;margin-top:8px;padding:4px 12px;font-size:.72rem;font-weight:700}.histsheet{background:var(--bar);color:#fff;--text:#fff;--muted:#a9afbd;--line:var(--bar-line);--accent:#e5384a;--surface:#2a2e39;--surface2:#2a2e39}.histsheet .btn{background:#2a2e39}.goal{color:#111;border:1px solid var(--line);background:#fff}.goal.done{color:#111;background:#fff}.goal.done .svgi{color:var(--accent)}.bubble.guest,.bubble.user{color:#111;border:1px solid var(--line);background:#fff}.bubble .muted{color:#5a6482}.controls{flex-wrap:nowrap;justify-content:space-between;gap:6px}.controls .chip{flex:1;justify-content:center;min-width:0;min-height:46px;padding:6px 0}.controls .chip .svgi.inl{vertical-align:middle;width:1.4em;height:1.4em;margin:0}.controls .chip .flag{font-size:1.35rem;line-height:1}.bubble.guest,.bubble.user,.msg.user{border:none}.topbtn.current,.topbtn:active{color:#e5384a}
