:root{--bg:#f5f5ef;--paper:#fff;--ink:#193c37;--text:#273d38;--muted:#6d7b73;--line:#e2e6dc;--primary:#205c4b;--lime:#d9edaa;--soft:#edf3e4;--orange:#efb778;--bad:#ab4335;--redbg:#fff1eb;--radius:23px;--shadow:0 12px 40px #233e2d06;font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif;font-size:17px;color:var(--text);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e6a66a;outline-offset:3px}a{color:var(--primary);text-underline-offset:3px}h1,h2,h3,p{margin:0}h1{font-size:clamp(28px,3.5vw,40px);line-height:1.2;letter-spacing:-1.1px;font-weight:720}h2{font-size:24px;line-height:1.3;letter-spacing:-.5px}h3{font-size:19px;line-height:1.4}p{line-height:1.65}small,.small{font-size:13px;line-height:1.55}.muted{color:var(--muted)}.eyebrow{font-size:12px;font-weight:750;letter-spacing:1.1px;text-transform:uppercase;color:var(--muted)}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.stack{display:flex;flex-direction:column;gap:18px}.grow{flex:1;min-width:0}.icon{width:23px;height:23px;flex-shrink:0;display:inline-block;vertical-align:middle;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.brandmark{display:flex;align-items:center;justify-content:center;background:var(--lime);color:var(--ink);width:46px;height:46px;border-radius:15px;font-size:39px;font-weight:800;line-height:1;padding-bottom:7px}.brand{font-size:27px;letter-spacing:-1px;font-weight:750}.brand small{display:block;font-size:10px;letter-spacing:1px;font-weight:500;margin-top:1px;text-transform:uppercase}.shell{display:grid;grid-template-columns:234px minmax(0,1fr);min-height:100dvh}.sidebar{background:var(--ink);color:#e7eee6;padding:32px 19px 22px;position:fixed;inset:0 auto 0 0;width:234px;display:flex;flex-direction:column;z-index:30}.sidebar .brandrow{padding:0 10px 36px}.navitem{display:flex;align-items:center;gap:13px;border:0;background:transparent;color:#b6cdc0;width:100%;text-align:left;border-radius:13px;padding:14px 15px;margin:4px 0;font-size:15px;font-weight:550}.navitem.active{background:var(--lime);color:var(--ink)}.navitem:hover:not(.active){background:#ffffff0b}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff19;padding:24px 13px 0}.sidebar-bottom .eyebrow{color:#a5bdad}.sidebar-bottom p{color:#c5d3c6;font-size:13px;margin-top:9px;line-height:1.6}.stage{grid-column:2;padding:0 42px 56px;max-width:1600px;width:100%;margin:auto}.topbar{min-height:89px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:34px}.crumb{font-size:13px;color:var(--muted)}.status-dot{width:7px;height:7px;border-radius:100%;background:#709468;display:inline-block;margin-right:7px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e7eddf;font-size:15px;font-weight:700}.btn{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:13px;min-height:48px;padding:12px 19px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:650;font-size:15px;line-height:1.3;text-decoration:none;transition:transform .15s,background .15s}.btn:hover{background:#f2f6ec}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--ink);color:#fff;border-color:var(--ink)}.btn.primary:hover{background:#28594c}.btn.lime{background:var(--lime);border-color:var(--lime)}.btn.ghost{background:transparent;border-color:transparent}.btn.warn{background:var(--redbg);color:var(--bad);border-color:#eccabc}.btn.compact{font-size:13px;min-height:42px;padding:10px 13px}.btn.square{padding:11px;min-width:46px;min-height:46px}.btn.full{width:100%}.linkbtn{border:0;background:none;color:var(--primary);font-size:14px;font-weight:650;padding:10px 0;min-height:44px;text-align:left}.titlebar{margin-bottom:26px}.titlebar p{margin-top:9px;color:var(--muted);max-width:700px}.grid2{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:24px}.equal2{display:grid;grid-template-columns:1fr 1fr;gap:22px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:25px;box-shadow:var(--shadow)}.hero{background:var(--lime);border-color:var(--lime);padding:29px 32px;position:relative;overflow:hidden;min-height:267px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between}.hero h2{font-size:clamp(27px,3vw,35px);max-width:460px;margin:14px 0 10px;letter-spacing:-.9px;position:relative;z-index:1}.hero p{max-width:450px;font-size:15px;position:relative;z-index:1}.hero .hero-bottom{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:25px;z-index:1}.hero .eyebrow{color:#507244}.hero-bubble{font-size:120px;font-weight:800;position:absolute;right:15px;bottom:11px;color:#94b57024;letter-spacing:-5px;transform:rotate(-11deg);pointer-events:none}.badges{display:flex;gap:8px;flex-wrap:wrap}.badge{font-size:11px;font-weight:700;line-height:1.5;border-radius:7px;padding:4px 9px;background:var(--soft);color:#5b7456;display:inline-flex;align-items:center;gap:5px}.badge.amber{background:#fcf0de;color:#906733}.badge.gray{background:#eff0eb;color:#747b6f}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 16px}.stat{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:19px 20px}.stat .value{font-size:32px;letter-spacing:-1px;font-weight:700;margin-top:8px;line-height:1.2}.stat .label{font-size:12px;line-height:1.5;margin-top:5px;color:var(--muted)}.stat .icon{width:19px;height:19px}.tasks{display:flex;flex-direction:column;margin-top:13px}.task{display:flex;align-items:center;gap:13px;padding:16px 0;border-bottom:1px solid var(--line)}.task:last-child{border:0;padding-bottom:0}.task-icon{display:grid;place-items:center;background:var(--soft);border-radius:13px;min-width:44px;height:44px;color:#65834f}.task p{font-size:13px;color:var(--muted);line-height:1.5;margin-top:3px}.task h3{font-size:15px}.circlecheck{width:32px;height:32px;border:1px solid var(--line);border-radius:50%;background:#fff;display:grid;place-items:center;flex-shrink:0}.circlecheck.checked{background:var(--primary);border-color:var(--primary);color:white}.progress-track{height:7px;background:#e9eddf;overflow:hidden;border-radius:5px}.progress-track>span{height:100%;display:block;background:#77945d;border-radius:5px;transition:width .4s}.week-row{display:flex;justify-content:space-between;gap:5px;margin:20px 0 15px}.daydot{min-width:27px;text-align:center;font-size:11px;color:var(--muted)}.daydot .dot{width:31px;height:31px;border-radius:50%;background:#f0f2e9;display:grid;place-items:center;margin-top:7px;color:#68745d;font-size:12px}.daydot.today .dot{background:var(--ink);color:white}.daydot.done .dot{background:var(--lime);color:var(--ink)}.notice{font-size:13px;line-height:1.7;background:#f1f3ea;border:1px solid #e2e8d9;border-radius:14px;padding:14px 17px;color:#667658}.notice.amber{background:#fff4e5;border-color:#f0dfc3;color:#896b44}.notice.error{background:var(--redbg);border-color:#efccbc;color:var(--bad)}.notice.success{background:#eff7e7;color:#42643e;border-color:#d5e5c6}.notice a{font-weight:650}.mini-fact{display:flex;gap:13px;align-items:flex-start}.mini-fact .icon{color:#c79658}.divider{height:1px;background:var(--line);margin:20px 0}.tabs{display:flex;gap:6px;flex-wrap:wrap;background:#ebeee3;border-radius:13px;padding:5px;width:fit-content;margin-bottom:22px}.tab{padding:10px 15px;border:0;background:transparent;border-radius:9px;font-size:14px;color:var(--muted);min-height:44px;font-weight:600}.tab.active{background:#fff;color:var(--ink);box-shadow:0 2px 4px #20372106}.field{display:flex;flex-direction:column;gap:8px}.field label,.field-label{font-size:13px;font-weight:650;color:var(--text)}input[type=text],input[type=number],input[type=date],select,textarea{width:100%;border:1px solid #dce2d5;border-radius:12px;padding:13px 14px;background:#fff;color:var(--text);min-height:48px;font-size:16px}input::placeholder,textarea::placeholder{color:#959d92}textarea{resize:vertical;line-height:1.7;min-height:170px}input[type=checkbox]{accent-color:var(--primary);width:20px;height:20px;flex-shrink:0}.filterbar{display:grid;grid-template-columns:minmax(150px,1.7fr) minmax(130px,1fr) minmax(110px,.8fr);gap:12px;margin-bottom:20px}.wordrow{display:flex;align-items:center;gap:14px;padding:16px 20px;border-bottom:1px solid var(--line)}.wordrow:last-child{border:0}.wordlist{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:white}.wordrow .word{font-size:20px;font-weight:650;color:var(--ink);overflow-wrap:anywhere}.wordrow .meaning{font-size:14px;color:var(--muted);margin-top:4px}.wordrow .btn{flex-shrink:0}.word-actions{display:flex;align-items:center;gap:5px}.starred{color:#b38735!important}.worddetails{padding:0 20px 18px;background:#fafbf7;font-size:14px;line-height:1.7;border-bottom:1px solid var(--line)}.coursegrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.module-card{display:flex;flex-direction:column;align-items:flex-start;padding:23px;min-height:255px;position:relative}.module-card.current{border:2px solid #b5c68c;background:#f5f9ed}.module-number{font-size:12px;color:var(--muted);margin-bottom:15px}.module-card h3{margin-top:11px}.module-card p{font-size:13px;line-height:1.65;color:var(--muted);margin:10px 0 20px}.module-card .btn{margin-top:auto}.study-shell{max-width:850px;margin:auto;padding:27px 24px 45px;min-height:100dvh}.study-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px}.study-main{padding:38px;min-height:390px;text-align:center;display:flex;flex-direction:column;align-items:center}.study-main .cue{font-size:clamp(28px,4vw,43px);font-weight:720;line-height:1.3;letter-spacing:-.7px;margin:27px 0 15px;max-width:100%;overflow-wrap:anywhere}.study-main .answer{font-size:clamp(26px,4vw,38px);font-weight:700;color:var(--primary);margin:13px 0;overflow-wrap:anywhere}.study-main .example{font-size:19px;line-height:1.6;margin-top:19px}.study-main .hint{font-size:15px;color:#9a875f;margin-top:10px}.study-input{max-width:560px;margin-top:20px;width:100%}.study-input input{text-align:center;font-size:20px;min-height:58px}.study-bottom{margin-top:20px}.ratings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.rating{border:1px solid var(--line);background:white;border-radius:14px;padding:16px 8px;min-height:77px;text-align:center;color:var(--ink);font-size:13px;font-weight:650}.rating small{display:block;color:var(--muted);font-size:11px;font-weight:400;margin-top:5px}.rating:first-child{background:#fff2eb;border-color:#f3dccc}.rating:last-child{background:var(--lime);border-color:var(--lime)}.keyboard{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;margin:10px 0}.key{background:#eef1e7;border:0;border-radius:7px;min-width:37px;min-height:39px;padding:6px;color:var(--ink)}.choices{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0;width:100%}.choice{padding:15px;text-align:left;background:#fff;border:1px solid var(--line);border-radius:13px;min-height:56px;line-height:1.5;font-size:15px;color:var(--text)}.choice.correct{background:#edf5e4;border-color:#9ab77b}.choice.incorrect{background:#fff0e9;border-color:#d99e8c}.result-circle{width:105px;height:105px;background:var(--lime);border-radius:50%;display:grid;place-items:center;font-size:40px;margin:20px auto}.lesson-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(240px,.8fr);gap:22px}.lesson-text{font-size:17px;line-height:1.95;overflow-wrap:anywhere;white-space:pre-line}.example-line{padding:14px 0;border-bottom:1px solid var(--line)}.example-line:last-child{border:0}.example-line p{font-size:18px}.example-line small{color:var(--muted)}.question{padding:20px 0;border-bottom:1px solid var(--line)}.question:last-child{border:0}.question p{font-weight:600;font-size:17px}.question .choices{margin-bottom:0}.dialog-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.9fr);gap:24px}.chat-bubble{background:#edf2e7;border-radius:19px 19px 19px 3px;padding:22px;margin-top:20px}.chat-bubble p{font-size:23px;line-height:1.55;color:var(--ink)}.chat-bubble small{display:block;color:var(--muted);margin-top:10px}.reply-bubble{background:#f3f0e7;border-radius:19px 19px 3px 19px;padding:20px;margin-top:18px}.prompt-ru{font-size:16px;line-height:1.65}.recordbox{border:1px dashed #cbd9be;border-radius:14px;padding:17px;background:#fafbf7}.recordbox audio{width:100%;max-width:400px;margin-top:14px;display:block}.recording{animation:pulse 1s infinite;background:#fff0e7!important;color:#a4473d!important}.checklist{display:flex;flex-direction:column;gap:11px;margin-top:15px}.checklist label{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6}.bars{height:130px;display:flex;gap:10px;align-items:flex-end;padding:10px 0}.barwrap{flex:1;min-width:20px;text-align:center;height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:7px}.bar{min-height:4px;background:#bace99;border-radius:6px 6px 2px 2px;width:100%}.barwrap small{font-size:10px;color:var(--muted)}.barwrap .barvalue{font-size:11px;color:var(--ink)}.heatmap{display:grid;grid-template-columns:repeat(15,minmax(0,1fr));gap:6px;margin-top:17px}.heatday{aspect-ratio:1;border:1px solid var(--line);border-radius:5px;background:#f0f2e9;font-size:9px;display:grid;place-items:center;min-width:0;color:#8a9385}.heatday.done{background:#b6ce8a;border-color:#9fbb72;color:#314b30}.heatday.current{outline:2px solid var(--primary);outline-offset:1px}.settingsgrid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settingsgrid .card h3{margin-bottom:20px}.settingsgrid .field{margin-bottom:17px}.radio-line{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6;margin-bottom:12px}.source{padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}.source a{font-weight:650}.source small{display:block;margin-top:5px;color:var(--muted)}.mobile-nav{display:none}.mobile-brand{display:none}.boot{min-height:90dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px}.empty{text-align:center;padding:40px 20px}.empty p{color:var(--muted);margin:13px 0 22px}.modal-backdrop{position:fixed;inset:0;background:#0b221ecc;display:flex;align-items:center;justify-content:center;padding:20px;z-index:100}.modal{width:100%;max-width:610px;max-height:90dvh;overflow:auto;background:var(--bg);border-radius:24px;padding:27px}.modal h2{padding-right:35px}.modal .field{margin-top:16px}.modal .close{float:right;margin-top:-5px}.modal .btn.full{margin-top:20px}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%) translateY(120px);background:var(--ink);color:white;max-width:min(580px,92vw);padding:14px 20px;border-radius:14px;z-index:150;font-size:14px;box-shadow:0 9px 30px #09201d33;opacity:0;transition:.25s;pointer-events:none;line-height:1.6}#toast.show{transform:translateX(-50%) translateY(0);opacity:1}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.topspace{margin-top:20px}.tiny{font-size:11px}.pin-right{margin-left:auto}.nowrap{white-space:nowrap}.loading-dot{height:9px;width:9px;background:var(--primary);border-radius:50%;display:inline-block;animation:pulse 1s infinite}@keyframes pulse{50%{opacity:.45}}
@media(min-width:1450px){.stage{padding-left:60px;padding-right:60px}.hero{min-height:286px}}
@media(max-width:1190px){.shell{grid-template-columns:200px minmax(0,1fr)}.sidebar{width:200px;padding-left:12px;padding-right:12px}.stage{padding:0 25px 45px}.grid2{grid-template-columns:1.2fr 1fr}.coursegrid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{padding:25px}.hero h2{font-size:30px}.card{padding:22px}.lesson-layout,.dialog-layout{grid-template-columns:1fr}.lesson-layout>.stack,.dialog-layout>.stack{display:grid;grid-template-columns:1fr 1fr;align-items:start}.lesson-layout>.stack>*,.dialog-layout>.stack>*{min-width:0}.settingsgrid{gap:18px}}
@media(max-width:950px){.shell{display:block}.sidebar{display:none}.stage{padding:0 26px 105px}.topbar{min-height:82px;margin-bottom:27px}.mobile-brand{display:flex;align-items:center;gap:10px}.mobile-brand .brandmark{width:35px;height:35px;border-radius:11px;font-size:30px;padding-bottom:5px}.mobile-brand .brand{font-size:23px}.crumb{display:none}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;padding:8px max(12px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:#ffffffed;border-top:1px solid var(--line);backdrop-filter:blur(16px);z-index:40;justify-content:space-around}.mobile-nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;min-height:50px;min-width:48px;color:var(--muted);padding:4px 8px}.mobile-nav button .icon{width:22px;height:22px}.mobile-nav button.active{color:var(--ink);background:var(--soft);border-radius:12px}.hero{min-height:265px}.settingsgrid{grid-template-columns:1fr 1fr}#toast{bottom:90px}.grid2{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
@media(max-width:650px){:root{font-size:16px}.stage{padding:0 17px 106px}.topbar{margin-bottom:24px;min-height:75px}.topbar .status-label{display:none}.titlebar{margin-bottom:21px}.titlebar h1{font-size:30px}.titlebar p{font-size:14px}.grid2,.equal2,.settingsgrid{grid-template-columns:1fr}.grid3{gap:9px}.stat{padding:15px 12px;border-radius:16px}.stat .value{font-size:27px}.stat .label{font-size:11px}.hero{min-height:260px;padding:24px}.hero h2{font-size:30px;max-width:290px}.hero p{font-size:14px;max-width:290px}.hero .hero-bottom{margin-top:23px;gap:8px}.hero-bubble{font-size:93px;right:8px;bottom:65px;opacity:.75}.card{padding:21px;border-radius:20px}.section-head{margin-top:24px}.section-head h2{font-size:21px}.coursegrid{grid-template-columns:1fr 1fr;gap:12px}.module-card{padding:17px;min-height:245px}.module-card h3{font-size:17px}.module-card p{font-size:12px}.module-card .btn{font-size:13px;min-height:44px;padding:10px 13px}.filterbar{grid-template-columns:1fr 1fr}.filterbar input{grid-column:1/-1}.wordrow{padding:15px;gap:10px}.wordrow .word{font-size:18px}.word-actions{flex-direction:column;gap:0}.word-actions .btn{min-height:40px;min-width:40px;padding:9px}.wordrow .meaning{font-size:13px}.wordrow .badge{font-size:10px}.lesson-layout>.stack,.dialog-layout>.stack{display:flex;flex-direction:column}.lesson-text{font-size:16px;line-height:1.9}.chat-bubble p{font-size:21px}.tabs{width:100%;flex-wrap:nowrap;overflow:auto;gap:2px}.tab{padding:10px 12px;font-size:13px;white-space:nowrap;flex:1}.study-shell{padding:18px 15px 35px}.study-main{padding:27px 19px;min-height:380px}.study-top .btn{min-height:42px;padding:9px 11px}.study-top .badge{display:none}.study-main .cue{font-size:30px}.study-main .answer{font-size:29px}.ratings{grid-template-columns:1fr 1fr}.rating{min-height:69px;padding:13px 8px;font-size:14px}.choices{grid-template-columns:1fr}.question .choices{grid-template-columns:1fr}.keyboard{gap:5px}.key{min-width:34px;min-height:38px}.heatmap{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}.heatday{font-size:10px}.modal-backdrop{padding:11px}.modal{padding:21px}.barwrap small{font-size:9px}.recordbox .row{flex-wrap:wrap}.btn{font-size:14px}.row.mobile-wrap{flex-wrap:wrap}.topbar .btn.square{min-width:41px;min-height:41px;padding:9px}}
@media(max-width:365px){.stage{padding-left:13px;padding-right:13px}.mobile-nav button{min-width:42px;padding:4px 5px;font-size:9px}.coursegrid{grid-template-columns:1fr}.hero h2{font-size:28px}.brand small{font-size:9px}.grid3{gap:7px}.stat{padding:13px 10px}.btn{padding:11px 14px}.study-main .cue{font-size:27px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.mobile-nav,.topbar,.btn,.tabs{display:none!important}.shell{display:block}.stage{padding:0}.card{break-inside:avoid;border:1px solid #ddd;box-shadow:none}body{background:white}.grid2,.equal2{display:block}}
