:root{--bg: #0b1020;--bg-elevated: #141b30;--bg-card: #161f38;--bg-soft: #1d2745;--border: #2b3659;--text: #eef2ff;--text-muted: #a5b0d3;--primary: #6366f1;--primary-strong: #4f46e5;--primary-soft: rgba(99, 102, 241, .16);--cyan: #22d3ee;--cyan-soft: rgba(34, 211, 238, .14);--amber: #fbbf24;--green: #34d399;--red: #fb7185;--radius: 16px;--radius-sm: 10px;--shadow: 0 12px 32px rgba(0, 0, 0, .28);--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}*,*:before,*:after{box-sizing:border-box}html,body,#root{min-height:100%}body{margin:0;background:radial-gradient(900px 500px at 10% -10%,rgba(99,102,241,.18),transparent 60%),radial-gradient(700px 400px at 100% 0%,rgba(34,211,238,.1),transparent 55%),var(--bg);color:var(--text);font-family:var(--font);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}h1,h2,h3{line-height:1.2;margin:0 0 .5em}h1{font-size:clamp(1.7rem,5vw,2.5rem);letter-spacing:-.03em}h2{font-size:1.3rem;letter-spacing:-.02em}h3{font-size:1.05rem}p{margin:0 0 .8em}button,input{font:inherit}.muted{color:var(--text-muted);font-size:.9rem}.eyebrow{color:var(--cyan);font-size:.72rem;font-weight:800;letter-spacing:.18em}.app-shell{min-height:100vh;padding-bottom:78px}.app-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px max(16px,calc((100vw - 980px)/2));background:#0b1020db;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid var(--border)}.app-header__brand{display:flex;align-items:center;gap:11px}.app-header__logo{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,var(--primary),var(--cyan));color:#fff;font-weight:900;font-size:1.2rem}.app-header__title{font-weight:800;letter-spacing:-.02em}.app-header__tagline{color:var(--text-muted);font-size:.74rem}.app-header__meta{display:flex;gap:8px}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:var(--bg-soft);border:1px solid var(--border);font-size:.8rem;font-weight:700}.pill--cyan{background:var(--cyan-soft);border-color:#22d3ee59;color:var(--cyan)}.banner{padding:9px 16px;text-align:center;font-size:.85rem}.banner--warn{background:#fbbf2424;color:var(--amber)}.app-main{max-width:980px;margin:0 auto;padding:22px 16px 40px}.page{display:flex;flex-direction:column;gap:20px}.page__header h1{margin-bottom:.25em}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:grid;grid-template-columns:repeat(4,1fr);max-width:980px;margin:0 auto;background:#141b30f5;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--border);border-radius:18px 18px 0 0}.bottom-nav__item{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:9px 4px 10px;background:none;border:0;color:var(--text-muted);cursor:pointer}.bottom-nav__item.is-active{color:var(--cyan)}.bottom-nav__item.is-active:before{content:"";position:absolute;top:0;width:32px;height:3px;border-radius:0 0 4px 4px;background:var(--cyan)}.bottom-nav__icon{font-size:1.25rem}.bottom-nav__label{font-size:.7rem;font-weight:700}.bottom-nav__badge{position:absolute;top:4px;right:22%;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--cyan);color:#06202a;font-size:.68rem;font-weight:900;line-height:18px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:var(--radius-sm);font-weight:700;cursor:pointer;transition:transform .12s ease,background .15s ease,border-color .15s ease}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn--sm{padding:6px 10px;font-size:.8rem}.btn--md{padding:10px 16px;font-size:.92rem}.btn--lg{padding:13px 20px;font-size:1rem}.btn--primary{background:linear-gradient(135deg,var(--primary),var(--primary-strong));color:#fff;box-shadow:0 8px 20px #4f46e547}.btn--primary:hover{filter:brightness(1.08)}.btn--secondary{background:var(--bg-soft);border-color:var(--border);color:var(--text)}.btn--secondary:hover{border-color:var(--primary)}.btn--ghost{background:transparent;color:var(--text-muted)}.btn--ghost:hover{color:var(--text)}.btn--danger{background:#fb718524;border-color:#fb718580;color:var(--red)}.link-button{background:none;border:0;color:var(--cyan);cursor:pointer;padding:0;font-size:.88rem;font-weight:700;text-decoration:underline;text-underline-offset:3px}.link-button:hover{color:#fff}.progress{display:flex;flex-direction:column;gap:6px;width:100%}.progress__label{display:flex;justify-content:space-between;font-size:.78rem;color:var(--text-muted)}.progress__track{height:7px;border-radius:999px;background:var(--bg-soft);overflow:hidden}.progress__fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--primary),#818cf8);transition:width .35s ease}.progress__track--cyan .progress__fill{background:linear-gradient(90deg,var(--cyan),#67e8f9)}.progress__track--amber .progress__fill{background:linear-gradient(90deg,var(--amber),#fde68a)}.card,.panel,.exercise-card,.unit-card,.level-section,.stat-card{background:linear-gradient(180deg,var(--bg-card),var(--bg-elevated));border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.panel{padding:20px;display:flex;flex-direction:column;gap:12px}.panel--danger{border-color:#fb718559}.hero{display:grid;grid-template-columns:1fr;gap:20px;padding:26px;border-radius:22px;border:1px solid rgba(99,102,241,.35);background:radial-gradient(500px 260px at 90% 0%,rgba(34,211,238,.14),transparent),linear-gradient(145deg,rgba(99,102,241,.16),var(--bg-elevated))}.hero__copy h1{margin-top:.35em}.hero__copy p{color:var(--text-muted);max-width:52ch}.hero__actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.hero__card{display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:var(--radius);background:#0b10208c;border:1px solid var(--border)}.hero__stat{display:flex;align-items:baseline;gap:10px}.hero__stat-value{font-size:2rem;font-weight:900;letter-spacing:-.04em;color:var(--cyan)}.hero__stat-label{color:var(--text-muted);font-size:.85rem}.hero__hint{font-size:.82rem;color:var(--text-muted)}@media(min-width:760px){.hero{grid-template-columns:1.4fr .8fr;align-items:center;padding:34px}}.section-title{margin:0}.section-subtitle{color:var(--text-muted);max-width:70ch}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}.method-strip{display:flex;flex-direction:column;gap:10px}.method-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin-top:6px}.method-card{padding:16px;border-radius:var(--radius);background:var(--bg-card);border:1px solid var(--border)}.method-card__num{color:var(--primary);font-weight:900;font-size:.8rem}.method-card h3{margin:6px 0;font-size:.98rem}.method-card p{color:var(--text-muted);font-size:.84rem;margin:0}.path-levels{display:flex;flex-direction:column;gap:14px}.level-section{padding:0;overflow:hidden}.level-section__summary{display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;list-style:none}.level-section__summary::-webkit-details-marker{display:none}.level-section__summary:after{content:"⌄";color:var(--text-muted);font-size:1.2rem}.level-section[open] .level-section__summary:after{transform:rotate(180deg)}.level-section>.progress{padding:0 16px 14px}.level-section__text{display:flex;flex-direction:column;flex:1;min-width:0}.level-section__text small{color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.level-section__stat{font-weight:800;color:var(--cyan);font-size:.85rem}.level-badge{display:inline-grid;place-items:center;min-width:44px;padding:5px 8px;border-radius:9px;background:var(--primary-soft);color:#c7d2fe;font-weight:900;font-size:.85rem}.level-badge--a2{background:var(--cyan-soft);color:var(--cyan)}.level-badge--b1{background:#fbbf2424;color:var(--amber)}.level-badge--b2{background:#34d39924;color:var(--green)}.level-section__units{display:flex;flex-direction:column;gap:12px;padding:4px 14px 16px}.unit-card{padding:16px;box-shadow:none;background:var(--bg-elevated)}.unit-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:10px}.unit-card__eyebrow{color:var(--cyan);font-size:.74rem;text-transform:uppercase;letter-spacing:.08em}.unit-card__title{margin:3px 0 0;font-size:1.02rem}.unit-card__count{color:var(--text-muted);font-weight:800;font-size:.85rem}.unit-card__lessons{display:flex;flex-direction:column;gap:6px;margin-top:12px}.lesson-node{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border-radius:var(--radius-sm);border:1px solid transparent;background:var(--bg-soft);color:var(--text);text-align:left;cursor:pointer}.lesson-node:hover{border-color:var(--primary)}.lesson-node__icon{display:grid;place-items:center;flex:0 0 30px;height:30px;border-radius:50%;background:var(--bg);border:1px solid var(--border);font-size:.8rem;font-weight:800}.lesson-node--completed .lesson-node__icon{background:var(--green);color:#052e1f;border-color:var(--green)}.lesson-node--in-progress{border-color:#6366f199;background:var(--primary-soft)}.lesson-node--in-progress .lesson-node__icon{background:var(--primary);color:#fff}.lesson-node__body{display:flex;flex-direction:column;flex:1;min-width:0}.lesson-node__title{font-weight:700;font-size:.9rem}.lesson-node__desc{color:var(--text-muted);font-size:.75rem}.lesson-node__score{color:var(--green);font-weight:800;font-size:.82rem}.lesson-page__top{display:flex;align-items:center;justify-content:space-between;gap:12px}.lesson-page__breadcrumb{color:var(--text-muted);font-size:.82rem}.lesson-page__intro{display:flex;flex-direction:column;gap:10px}.lesson-page__intro h1{margin:0}.lesson-page__intro p{color:var(--text-muted);margin:0}.exercise-card{padding:22px;display:flex;flex-direction:column;gap:16px}.exercise-card__head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}.exercise-card__step{color:var(--text-muted);font-size:.8rem;font-weight:700}.exercise-card__kind{padding:4px 10px;border-radius:999px;background:var(--primary-soft);color:#c7d2fe;font-size:.76rem;font-weight:800}.exercise-card__prompt{font-size:1.25rem;letter-spacing:-.02em;margin:0}.speak-panel{display:flex;flex-direction:column;gap:16px}.speak-panel__target{padding:16px;border-radius:var(--radius-sm);background:#0b102099;border:1px solid var(--border)}.speak-panel__label{color:var(--text-muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.1em}.speak-panel__phrase{font-size:1.3rem;font-weight:700;line-height:1.4;margin:6px 0}.speak-panel__translation{color:var(--text-muted);margin:0;font-size:.9rem}.speak-panel__controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.speak-panel__hints{margin:0;padding:12px 16px 12px 32px;border-radius:var(--radius-sm);background:#fbbf2414;border:1px solid rgba(251,191,36,.25);font-size:.86rem;color:#fde68a}.speak-panel__status{min-height:24px}.status{font-size:.88rem;color:var(--text-muted)}.status--listening{color:var(--cyan);font-weight:700}.status--error{color:var(--red)}.status--warn{color:var(--amber)}.speak-panel__fallback-toggle{align-self:flex-start}.privacy-note{color:var(--text-muted);font-size:.75rem;margin:0}.text-fallback{display:flex;flex-direction:column;gap:8px}.text-fallback label{font-size:.85rem;color:var(--text-muted)}.text-fallback__row{display:flex;gap:8px}.text-fallback input{flex:1;min-width:0;padding:11px 13px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);color:var(--text);outline:none}.text-fallback input:focus{border-color:var(--cyan)}.text-fallback .muted{margin:0;font-size:.75rem}.feedback{display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg-elevated)}.feedback--ok{border-color:#34d39973;background:#34d39914}.feedback--retry{border-color:#fbbf2466;background:#fbbf2412}.feedback__head{display:flex;align-items:center;gap:14px}.feedback__score{font-size:2rem;font-weight:900;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--cyan)}.feedback__head p{margin:2px 0 0;color:var(--text-muted);font-size:.85rem}.feedback__detail{display:flex;flex-direction:column;gap:6px;font-size:.86rem}.feedback__detail p{margin:0}.feedback__model{color:var(--text)}.feedback__actions{display:flex;flex-wrap:wrap;gap:10px}.tag{display:inline-block;padding:2px 8px;border-radius:6px;background:var(--bg-soft);border:1px solid var(--border);font-size:.72rem;font-weight:800}.tag--ok{background:#34d39924;border-color:#34d39966;color:var(--green)}.tag--miss{background:#fbbf241f;border-color:#fbbf2459;color:var(--amber)}.lesson-complete,.empty-state,.result-panel{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:36px 22px}.lesson-complete__icon,.empty-state__icon{font-size:3rem}.lesson-complete p,.empty-state p{color:var(--text-muted);max-width:50ch}.lesson-complete__actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:8px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.stat-card{display:flex;flex-direction:column;gap:3px;padding:16px}.stat-card__icon{font-size:1.3rem}.stat-card__label{color:var(--text-muted);font-size:.78rem}.stat-card__value{font-size:1.5rem;letter-spacing:-.03em}.stat-card__hint{color:var(--text-muted);font-size:.72rem}.eval-list{display:flex;flex-direction:column;gap:8px}.eval-row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--bg-soft);font-size:.86rem}.eval-row>:last-child{margin-left:auto;font-weight:800}.rubric{display:flex;flex-direction:column;gap:8px}.rubric__row{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--bg-soft)}.rubric__row .muted{font-size:.78rem}.result-panel__level{display:grid;place-items:center;width:84px;height:84px;border-radius:24px;background:linear-gradient(135deg,var(--primary),var(--cyan));font-size:2rem;font-weight:900}.result-panel__scores{display:flex;gap:24px}.result-panel__scores div{display:flex;flex-direction:column}.result-panel__scores span{color:var(--text-muted);font-size:.78rem}.result-panel__scores strong{font-size:1.4rem}@media(max-width:480px){.app-main{padding:16px 12px 32px}.hero{padding:20px}.exercise-card{padding:16px}.speak-panel__phrase{font-size:1.15rem}.bottom-nav__label{font-size:.64rem}}
