:root{--ink:#172e2c;--muted:#66736f;--paper:#f5f7f5;--line:#dfe5df;--green:#c8f078;--orange:#db542e;--soft:#eef3eb;--white:#fff;--radius:20px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #ce643b;outline-offset:4px}button{color:inherit}a{color:inherit}h1,h2,h3,p{margin:0}h1{font-size:clamp(2rem,3vw,2.75rem);letter-spacing:-1.5px;line-height:1.15;font-weight:650}h2{font-size:1.4rem;letter-spacing:-.5px}h3{font-size:1.05rem}p{line-height:1.6}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:.75rem;letter-spacing:1.8px;font-weight:700}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.shell{display:grid;grid-template-columns:234px minmax(0,1fr);min-height:100vh}.sidebar{padding:36px 22px 24px;border-right:1px solid var(--line);background:#fff;display:flex;flex-direction:column;position:fixed;top:0;bottom:0;width:234px}.brand{display:flex;gap:11px;align-items:center;margin:0 8px 50px;text-decoration:none}.brandmark{display:grid;place-items:center;width:42px;height:42px;background:var(--ink);color:var(--green);border-radius:13px;font-size:1.8rem;font-weight:750;letter-spacing:-3px;padding-right:4px}.brandname{font-size:1rem;font-weight:750;line-height:1.25}.brandname small{display:block;font-weight:400;font-size:.75rem;color:var(--muted);margin-top:4px}.nav{display:flex;flex-direction:column;gap:8px}.nav button{border:0;background:none;text-align:left;border-radius:10px;padding:14px;display:flex;align-items:center;gap:13px;color:var(--muted);font-size:.95rem}.nav button.active{background:var(--soft);color:var(--ink);font-weight:650}.nav button:hover{background:var(--soft)}.sidebottom{margin-top:auto;padding:22px 8px 0}.exam{border:1px solid var(--line);padding:16px;border-radius:14px;line-height:1.5;font-size:.85rem}.exam strong{display:block;margin-top:8px}.profile{display:flex;gap:10px;align-items:center;margin-top:24px}.avatar{height:35px;width:35px;background:#e9ede6;border-radius:50%;display:grid;place-items:center;font-size:.85rem;font-weight:650}.profile small{display:block;font-size:.75rem;color:var(--muted);margin-top:3px}.main{grid-column:2;padding:0 46px 54px;max-width:1530px;width:100%;margin:auto}.topbar{height:87px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:36px;gap:15px;font-size:.875rem}.topbar .right{display:flex;align-items:center;gap:22px}.pill{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--line);border-radius:30px;font-size:.8rem;white-space:nowrap}.heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.heading p{margin-top:10px;color:var(--muted);font-size:.95rem}.date{font-size:.85rem;color:var(--muted);white-space:nowrap}.dashboard{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:26px}.today{background:var(--ink);color:white;border-radius:var(--radius);padding:30px 32px;position:relative;overflow:hidden}.today .eyebrow{color:var(--green);margin-bottom:18px}.today h2{font-size:1.9rem;max-width:440px;line-height:1.2;margin-bottom:12px;letter-spacing:-.7px}.today p{color:#bacbc2;font-size:.9rem;max-width:450px}.today-bottom{display:flex;align-items:center;gap:20px;margin-top:25px;flex-wrap:wrap}.today-bottom span{font-size:.85rem;color:#c0d0c8}.btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;border:1px solid var(--line);border-radius:11px;min-height:47px;padding:12px 20px;background:white;font-size:.9rem;font-weight:600;text-decoration:none;transition:background .15s,transform .15s}.btn:hover:not(:disabled){transform:translateY(-1px);background:#f0f3ef}.btn.primary{background:var(--ink);border-color:var(--ink);color:white}.btn.primary:hover{background:#284741}.btn.lime{background:var(--green);border-color:var(--green);color:var(--ink)}.btn.lime:hover{background:#dbffa0}.btn.ghost{background:transparent}.btn.small{min-height:38px;padding:8px 12px;font-size:.85rem}.btn.danger{background:#fff0e9;border-color:#e7a791;color:#a73318}.section-title{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:32px 0 17px}.section-title span{color:var(--muted);font-size:.8rem}.chapter-title{display:flex;align-items:center;gap:14px;margin:0 0 18px}.chapter-number{background:#e7ecdf;border:1px solid #dce2d1;border-radius:12px;padding:12px;font-size:1rem;font-weight:700}.chapter-title small{color:var(--muted);display:block;margin-top:5px;font-size:.8rem}.lessons{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}.lesson{display:flex;align-items:center;gap:16px;padding:19px 20px;width:100%;border:0;border-bottom:1px solid #ecf0eb;background:white;text-align:left}.lesson:last-child{border-bottom:0}.lesson:hover{background:#f7f9f4}.lesson.current{background:#f0f6e6}.lesson-num{width:39px;height:39px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;border:1px solid var(--line);font-size:.9rem;font-weight:600;color:#78827a}.lesson.current .lesson-num{background:var(--ink);color:var(--green);border-color:var(--ink)}.lesson.done .lesson-num{background:#e1f1cd;color:#426c29;border-color:#d5e7c0}.lesson-text{flex:1;min-width:0}.lesson-text strong{font-weight:600;font-size:.95rem;display:block}.lesson-text small{display:block;color:var(--muted);font-size:.8rem;margin-top:5px}.lesson .duration{color:var(--muted);font-size:.75rem}.block-label{display:flex;align-items:center;justify-content:space-between;margin:23px 0 10px;font-size:.85rem;color:var(--muted)}.block-label b{color:var(--ink);font-weight:500}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px}.card+.card{margin-top:18px}.card h3{margin-bottom:18px}.ring{width:114px;height:114px;border-radius:50%;margin:24px auto;display:grid;place-items:center;background:conic-gradient(var(--ink) var(--progress,0%),#edf1e9 0)}.ring>div{width:95px;height:95px;background:#fff;border-radius:50%;display:grid;align-content:center;text-align:center}.ring strong{font-size:1.9rem;font-weight:650;letter-spacing:-1px}.ring span{color:var(--muted);font-size:.75rem}.statline{display:flex;justify-content:space-between;font-size:.85rem;padding:12px 0;border-top:1px solid #edf0ec}.statline strong{font-weight:600}.word-day .eyebrow{color:#9e4d2e;margin-bottom:20px}.word-day h3{font-size:1.15rem;line-height:1.4;margin-bottom:8px}.word-day .translation{font-size:.875rem;color:var(--muted)}.word-day blockquote{margin:20px 0 0;border-left:2px solid #db876a;padding-left:13px;font-size:.875rem;line-height:1.6}.note{font-size:.8rem;color:var(--muted);line-height:1.65;margin-top:20px}.review-box{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#edf3e6;border:1px solid #d9e3ce;border-radius:14px;padding:18px 22px;margin-top:20px}.review-box p{font-size:.8rem;color:var(--muted);margin-top:5px}.pagefoot{margin-top:32px;color:var(--muted);font-size:.75rem;line-height:1.6}.search{width:100%;padding:15px 17px;border:1px solid var(--line);border-radius:12px;background:white;margin-bottom:20px}.vocab-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.vocab{position:relative}.vocab h3{font-size:1.1rem;margin:8px 0;line-height:1.45;padding-right:30px}.vocab p{font-size:.9rem}.vocab .example{border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.vocab .example small{display:block;margin-top:7px;color:var(--muted);font-size:.8rem}.vocab .speak-btn{position:absolute;right:18px;top:34px}.speak-btn{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);background:white;border-radius:50%}.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.filter{padding:9px 15px;border:1px solid var(--line);border-radius:25px;background:white;font-size:.85rem}.filter.active{background:var(--ink);color:white;border-color:var(--ink)}.empty{padding:40px;text-align:center;border:1px dashed #c9d4c7;border-radius:18px;color:var(--muted)}.statcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:25px}.statcards .card{margin:0}.statcards strong{display:block;font-size:2rem;margin:15px 0 4px}.statcards small{color:var(--muted)}.history{padding:17px 0;border-bottom:1px solid var(--line)}.history:last-child{border-bottom:0}.history p{font-size:.9rem;margin:8px 0;white-space:pre-wrap;overflow-wrap:anywhere}.history small{font-size:.8rem;color:var(--muted)}.badge{font-size:.75rem;display:inline-flex;padding:5px 9px;border-radius:6px;background:var(--soft);color:#4f6c36}.badge.retry{background:#fcece6;color:#994228}.badge.self{background:#edf0f3;color:#586571}.settings{max-width:700px}.settings .card{margin-bottom:20px}.settings p{font-size:.95rem}.settings dl{margin:0}.settings dt{font-size:.85rem;color:var(--muted);margin-top:20px}.settings dd{margin:6px 0 0;line-height:1.6}.budgetbar{height:8px;border-radius:10px;background:var(--soft);margin:16px 0;overflow:hidden}.budgetbar div{height:100%;background:var(--orange);width:var(--progress)}
/* A single exercise takes the stage. */
.practice{max-width:790px;margin:0 auto;padding:28px 28px 60px;min-height:100vh}.practice-header{display:flex;align-items:center;gap:20px;margin-bottom:35px}.icon-btn{display:grid;place-items:center;background:transparent;border:1px solid var(--line);border-radius:50%;height:40px;width:40px;flex-shrink:0}.practice-progress{flex:1;height:8px;background:#e0e6de;border-radius:10px;overflow:hidden}.practice-progress div{height:100%;background:#8cbf4b;transition:width .3s;width:var(--progress)}.count{font-size:.85rem;color:var(--muted);white-space:nowrap}.practice-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px;font-size:.8rem;color:var(--muted)}.practice-meta .eyebrow{color:#6b8056}.exercise{background:white;border:1px solid var(--line);border-radius:24px;padding:35px;min-height:365px}.exercise h1{font-size:1.65rem;letter-spacing:-.5px;margin-bottom:22px}.question{font-size:1.45rem;line-height:1.55;margin-bottom:26px;overflow-wrap:anywhere}.question.long{font-size:1.1rem}.options{display:grid;gap:11px}.option{width:100%;display:flex;gap:16px;align-items:center;text-align:left;padding:15px;border:1px solid var(--line);background:#fff;border-radius:12px;line-height:1.45}.option .key{display:grid;place-items:center;border:1px solid var(--line);border-radius:6px;height:26px;min-width:26px;font-size:.75rem;color:var(--muted)}.option.selected{border-color:#416a40;background:#f0f7e7;box-shadow:0 0 0 1px #416a40}.answer-input{border:1px solid #cdd7cc;border-radius:12px;padding:16px;width:100%;resize:vertical;line-height:1.7;color:var(--ink);background:#fcfdfb;min-height:56px}.answer-input.textarea{min-height:170px}.answer-area{min-height:100px;border:1px dashed #bccab4;border-radius:12px;padding:12px;display:flex;gap:7px;align-content:flex-start;flex-wrap:wrap;margin-bottom:22px;background:#fafcf8}.token{padding:10px 13px;border:1px solid #cbd5c8;border-bottom-width:3px;border-radius:9px;background:white;font-size:.95rem}.tokens{display:flex;gap:9px;flex-wrap:wrap}.practice-actions{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:24px;flex-wrap:wrap}.practice-actions .btn{min-width:165px}.hint-toggle{background:none;border:0;text-decoration:underline;text-underline-offset:4px;color:var(--muted);padding:12px 0;font-size:.85rem}.hints{background:var(--soft);padding:13px 16px;border-radius:10px;margin:14px 0;font-size:.9rem;line-height:1.6}.feedback{margin-top:20px;border:1px solid #cfdfc0;background:#eef7e5;border-radius:14px;padding:22px;line-height:1.6;overflow-wrap:anywhere}.feedback.retry{background:#fff1e9;border-color:#edd0bf}.feedback.self,.feedback.improve{background:#eef2f4;border-color:#d2dce1}.feedback h3{margin-bottom:10px}.feedback p{font-size:.95rem}.feedback .correction{font-size:1.05rem;margin:12px 0;white-space:pre-wrap}.feedback small{display:block;font-size:.8rem;color:var(--muted);margin-top:10px}.word-intro{text-align:center;padding:18px 0}.word-intro .eyebrow{color:var(--muted);margin-bottom:25px}.word-intro h2{font-size:1.85rem;line-height:1.3;margin-bottom:14px}.word-intro .ru{font-size:1.1rem;color:var(--muted)}.word-intro .example{font-size:1.15rem;padding:28px 5px 9px;line-height:1.6}.word-intro .translation{font-size:.9rem;color:var(--muted);line-height:1.6}.word-intro .speak-btn{margin:22px auto 0;width:44px;height:44px}.dots{display:flex;justify-content:center;gap:7px;margin-top:25px}.dots span{width:6px;height:6px;border-radius:50%;background:#dfe6d9}.dots span.active{background:#628640;width:19px;border-radius:8px}.record-box{border:1px solid var(--line);padding:19px;border-radius:12px;margin-bottom:18px;background:#f7f9f4}.record-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.record-row small{font-size:.8rem;color:var(--muted)}.record-box audio{width:100%;margin-top:15px}.record-box p{font-size:.8rem;margin-top:12px;color:var(--muted)}.recording{animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.55}}.summary{text-align:center;padding:30px 10px}.summary .medal{display:grid;place-items:center;background:var(--green);border-radius:50%;width:76px;height:76px;margin:0 auto 22px;font-size:2rem}.summary h1{font-size:2rem;margin-bottom:15px}.summary p{color:var(--muted)}.summary-stats{display:flex;justify-content:center;gap:40px;margin:30px 0}.summary-stats strong{font-size:1.75rem;display:block}.summary-stats span{color:var(--muted);font-size:.85rem}.summary .btn{margin:10px}.login{max-width:430px;margin:12vh auto;padding:25px}.login .brand{margin:0 0 30px}.login h1{font-size:1.8rem;margin-bottom:12px}.login label{display:block;margin:24px 0 8px}.login .btn{width:100%;margin-top:18px}.boot{display:grid;place-items:center;min-height:70vh;align-content:center;gap:20px}.error{color:#a33b25;font-size:.9rem;margin-top:12px;line-height:1.5}.hidden{display:none!important}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#233f38;color:white;padding:14px 23px;border-radius:12px;max-width:min(90vw,600px);font-size:.9rem;line-height:1.5;box-shadow:0 8px 35px #0002;z-index:50;display:none}#toast.show{display:block}.subtle-link{border:0;background:none;padding:0;color:var(--muted);font-size:.8rem;text-decoration:underline}.mobile-brand{display:none}button .icon{pointer-events:none}
@media(min-width:1600px){.main{padding-left:70px;padding-right:70px}.dashboard{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1100px){.shell{grid-template-columns:195px minmax(0,1fr)}.sidebar{width:195px;padding:28px 14px}.main{padding:0 28px 35px}.dashboard{grid-template-columns:minmax(0,1fr)}.aside{display:grid;grid-template-columns:1fr 1fr;gap:18px}.aside .card+.card{margin-top:0}.aside .note{grid-column:1/-1}.brand{margin-left:0;margin-right:0;gap:8px}.brandname{font-size:.9rem}.heading .date{display:none}}
@media(max-width:680px){.shell{display:block}.sidebar{width:100%;top:auto;bottom:0;height:72px;z-index:20;padding:0 8px;border-right:0;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom);height:calc(72px + env(safe-area-inset-bottom))}.sidebar .brand,.sidebottom{display:none}.nav{flex-direction:row;justify-content:space-around;height:100%;gap:0}.nav button{flex-direction:column;gap:5px;justify-content:center;padding:9px 10px;font-size:.7rem;border-radius:0;min-width:62px;background:none!important}.nav button.active{color:#366725}.main{padding:0 20px 110px}.topbar{height:72px;margin-bottom:28px}.topbar>.muted{display:none}.mobile-brand{display:flex;font-weight:700;align-items:center;gap:9px}.mobile-brand .brandmark{width:32px;height:32px;font-size:1.4rem;border-radius:10px}.topbar .right{gap:8px}.topbar .right .pill:first-child{display:none}.heading{margin-bottom:23px}h1{font-size:2rem;letter-spacing:-.9px}.heading p{font-size:.875rem}.today{padding:25px}.today h2{font-size:1.55rem}.today-bottom{gap:12px}.today-bottom .btn{width:100%}.today-bottom>span{width:100%;text-align:center;font-size:.75rem}.dashboard{gap:20px}.aside{grid-template-columns:1fr}.aside .card+.card{margin-top:0}.section-title{margin-top:27px}.section-title span{max-width:110px;text-align:right}.lesson{padding:17px 14px;gap:12px}.lesson .duration{display:none}.lesson-text strong{font-size:.9rem}.lesson-text small{font-size:.75rem}.lesson-num{width:33px;height:33px}.card{padding:21px}.review-box{padding:17px;gap:12px}.review-box .btn{padding:10px;min-width:92px}.review-box h3{font-size:.95rem}.vocab-grid{grid-template-columns:1fr}.statcards{gap:9px}.statcards .card{padding:15px 10px}.statcards strong{font-size:1.5rem}.statcards small{font-size:.75rem}.statcards .eyebrow{font-size:.65rem;letter-spacing:.4px}.practice{padding:20px 17px 35px}.practice-header{gap:13px;margin-bottom:24px}.practice-meta{font-size:.7rem;align-items:flex-start}.exercise{padding:24px 20px;border-radius:18px;min-height:350px}.exercise h1{font-size:1.4rem}.question{font-size:1.2rem}.question.long{font-size:1rem}.option{padding:13px 11px;font-size:.95rem;gap:10px}.practice-actions .btn{min-width:140px}.word-intro h2{font-size:1.55rem}.word-intro .example{font-size:1.05rem}.practice-actions{margin-top:18px}.summary-stats{gap:25px}.summary .btn{width:100%;margin:8px 0}.summary h1{font-size:1.7rem}.count{font-size:.75rem}.block-label{font-size:.8rem}#toast{bottom:95px}.login{margin:7vh auto}.token{font-size:.875rem;padding:9px 11px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
