:root{--navy:#0b2f57;--navy2:#173f6d;--red:#ef312f;--cream:#fbf8f2;--ink:#102033;--muted:#617083;--line:#d9e0e7;--good:#0f7b54;--bad:#b42318;--yellow:#f5c94c;--card:#fff;--radius:20px;--shadow:0 14px 36px rgba(11,47,87,.10)}*{box-sizing:border-box}html{background:var(--cream);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}body{margin:0;min-height:100vh}.boot{padding:40px;text-align:center}.shell{max-width:860px;margin:0 auto;padding:16px 16px 96px}.topbar{display:flex;align-items:center;gap:12px;padding:6px 0 18px}.logo{width:58px;height:58px;object-fit:cover;border-radius:14px;border:1px solid var(--line);background:#fff}.brand{min-width:0}.brand h1{font-size:22px;line-height:1.1;margin:0;color:var(--navy);letter-spacing:-.02em}.brand p{font-size:13px;color:var(--muted);margin:5px 0 0}.card{background:var(--card);border:1px solid rgba(11,47,87,.10);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}.hero{display:grid;grid-template-columns:1fr 180px;gap:24px;align-items:center}.hero h2{font-size:clamp(28px,7vw,48px);line-height:1.04;letter-spacing:-.045em;margin:0 0 12px;color:var(--navy)}.hero p{font-size:17px;line-height:1.5;color:#41546a}.hero img{width:100%;border-radius:18px}.btn{appearance:none;border:0;border-radius:14px;min-height:48px;padding:12px 18px;font:inherit;font-weight:750;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn:focus-visible,.choice:focus-visible,.chip:focus-visible{outline:3px solid #75a9db;outline-offset:3px}.btn-primary{background:var(--yellow);color:#1a2a3a}.btn-secondary{background:#edf3f8;color:var(--navy)}.btn-audio{background:var(--navy);color:#fff}.btn-danger{background:#feeceb;color:var(--bad)}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:30px 0 12px}.section-title h2{font-size:22px;margin:0}.section-title span{color:var(--muted);font-size:13px}.lesson-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lesson-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;cursor:pointer;text-align:left;min-height:112px}.lesson-card:hover{border-color:#9eb3c7}.lesson-card[disabled]{opacity:.45;cursor:not-allowed}.lesson-n{font-size:12px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}.lesson-title{font-size:19px;color:var(--navy);font-weight:800;margin-top:6px}.lesson-ru{font-size:13px;color:var(--muted);margin-top:4px}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#edf3f8;font-size:11px;font-weight:800;color:var(--navy);margin-top:9px}.pill-preview{background:#fff1cc;color:#6e4b00}.progressbar{height:8px;background:#e8eef3;border-radius:99px;overflow:hidden;margin:8px 0 18px}.progressbar>div{height:100%;background:var(--red);transition:width .2s ease}.exercise{max-width:680px;margin:0 auto}.exercise-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:var(--muted);font-weight:900}.instruction{font-size:24px;line-height:1.25;margin:5px 0 16px;color:var(--navy)}.phrase{font-size:clamp(28px,8vw,44px);line-height:1.12;letter-spacing:-.03em;font-weight:850;color:var(--navy);margin:16px 0 8px}.translation{font-size:19px;color:#445b70;margin:0 0 18px}.choice-list{display:grid;gap:10px;margin-top:16px}.choice{width:100%;text-align:left;background:#fff;border:2px solid var(--line);border-radius:14px;min-height:54px;padding:12px 14px;font:inherit;font-weight:700;cursor:pointer}.choice:hover{border-color:#9eb3c7}.choice.selected{border-color:var(--navy);background:#f0f5f9}.exercise-actions{display:grid;gap:16px;margin-top:20px;position:static;overflow:visible}.feedback{position:static;border-radius:14px;padding:14px 16px;line-height:1.4}.feedback.good{background:#e9f7f0;color:#075d3e}.feedback.bad{background:#ffefed;color:#8f1711}.cta-row{position:static;display:flex;gap:10px;flex-wrap:wrap}.cta-row .btn{min-height:48px;min-width:48px}.assemble{display:flex;flex-wrap:wrap;gap:8px;min-height:58px;padding:12px;border:2px dashed #bbc9d5;border-radius:14px;margin:12px 0}.chip-bank{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid #aebdca;background:#fff;color:var(--navy);border-radius:999px;padding:9px 13px;font:inherit;font-weight:750;cursor:pointer}.chip.used{opacity:.35}.result{text-align:center}.result .check{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:#e9f7f0;color:var(--good);font-size:34px;margin:0 auto 18px}.result h2{font-size:34px;margin:0 0 10px;color:var(--navy)}.result-phrases{display:grid;gap:8px;text-align:left;margin:22px 0}.result-phrase{background:#f4f7fa;border-radius:12px;padding:12px}.notice{border-left:4px solid var(--yellow);background:#fff9e7;border-radius:10px;padding:12px 14px;color:#5a491a;font-size:13px;margin-top:14px}.footer{font-size:12px;color:var(--muted);text-align:center;margin-top:40px;line-height:1.5}.audio-status{min-height:20px;font-size:12px;color:var(--muted);margin-top:8px}.back{border:0;background:transparent;color:var(--navy);font-weight:800;cursor:pointer;padding:8px 0}.muted{color:var(--muted)}@media(max-width:640px){.shell{padding:10px 12px 80px}.hero{grid-template-columns:1fr}.hero img{display:none}.lesson-grid{grid-template-columns:1fr}.card{padding:18px}.instruction{font-size:21px}.exercise-actions{gap:16px}.cta-row{display:grid;grid-template-columns:1fr}.cta-row .btn{width:100%;min-height:50px}.topbar{padding-top:4px}.logo{width:48px;height:48px}.brand h1{font-size:20px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.account-nav{margin-left:auto;flex-shrink:0}.account-form{display:grid;gap:18px}.account-form label{display:grid;gap:7px;font-size:16px}.account-form input,.account-form select{width:100%;min-height:48px;border:1px solid var(--line);border-radius:10px;padding:10px;font:inherit;background:#fff;color:var(--ink)}.account-email{overflow-wrap:anywhere}.btn:disabled{opacity:.6;cursor:wait}

/* Discrete lesson progress without inline styles under the existing CSP. */
.progress-step-0{width:0%}
.progress-step-1{width:8%}
.progress-step-2{width:17%}
.progress-step-3{width:25%}
.progress-step-4{width:33%}
.progress-step-5{width:42%}
.progress-step-6{width:50%}
.progress-step-7{width:58%}
.progress-step-8{width:67%}
.progress-step-9{width:75%}
.progress-step-10{width:83%}
.progress-step-11{width:92%}
.progress-step-12{width:100%}

.review-list{display:grid;gap:14px;margin-top:20px}.review-list h3{margin:0 0 8px;font-size:18px}.review-list p{line-height:1.5}.time-form{margin-top:20px}.btn-danger:disabled{cursor:not-allowed}.back{min-height:44px}
.brand .brand-name{font-size:22px;line-height:1.1;margin:0;color:var(--navy);letter-spacing:-.02em;font-weight:800}

.consent-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;margin-top:24px;padding:18px 20px;border:1px solid #b9c9d8;border-radius:16px;background:#f2f7fb;color:var(--ink)}.consent-card strong{display:block;color:var(--navy);font-size:17px}.consent-card p{margin:6px 0 0;line-height:1.5}.consent-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.footer nav{display:flex;gap:8px 16px;flex-wrap:wrap;justify-content:center;margin-top:12px}.footer a,.footer-button{color:var(--navy);text-decoration:underline;text-underline-offset:3px}.footer-button{border:0;background:transparent;padding:0;font:inherit;cursor:pointer}.privacy-state{margin-top:10px}.legal-shell{max-width:780px}.legal-card h1{margin:0 0 8px;color:var(--navy);font-size:clamp(30px,6vw,44px);letter-spacing:-.035em}.legal-card h2{margin:30px 0 10px;color:var(--navy);font-size:22px}.legal-card h3{margin:20px 0 8px;color:var(--navy);font-size:18px}.legal-card p,.legal-card li{font-size:16px;line-height:1.65}.legal-card ul{padding-left:22px}.legal-card table{width:100%;border-collapse:collapse;margin:12px 0 20px}.legal-card th,.legal-card td{padding:12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}.legal-card th{width:34%;color:var(--navy)}.legal-meta{color:var(--muted);margin-bottom:28px}.legal-nav{display:flex;gap:10px;flex-wrap:wrap;margin:26px 0 0}.legal-note{padding:14px 16px;border-left:4px solid var(--yellow);background:#fff9e7;border-radius:10px}.legal-address{font-style:normal;line-height:1.7;overflow-wrap:anywhere}
@media(max-width:640px){.consent-card{grid-template-columns:1fr}.consent-actions{display:grid;justify-content:stretch}.consent-actions .btn{width:100%}.legal-card table,.legal-card tbody,.legal-card tr,.legal-card th,.legal-card td{display:block}.legal-card th{width:auto;border-bottom:0;padding-bottom:2px}.legal-card td{padding-top:2px}.brand .brand-name{font-size:20px}}
