@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#ffffff;--panel:#ffffff;--panel2:#f5f6f8;--line:#e5e7eb;--text:#1b1d1f;--muted:#6b7280;--purple:#c2410c;--purple2:#9a3412;--mint:#177245;--orange:#ea580c;--blue:#0f766e;--radius:18px;--good:#177245;--bad:#cf222e}
*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;background:var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;font-size:14px}button,select,textarea{font:inherit}button{cursor:pointer}.app-shell{height:100vh;height:100dvh;display:flex;overflow:hidden}.sidebar{width:244px;flex:0 0 244px;border-right:1px solid var(--line);padding:27px 16px 18px;display:flex;flex-direction:column;background:var(--panel);height:100vh;height:100dvh;position:sticky;top:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;flex-shrink:0}.sidebar::-webkit-scrollbar{display:none}.sidebar-scrim{display:none}.sidebar-close{display:none}.brand{display:flex;align-items:center;gap:11px;color:var(--text);text-decoration:none;padding:0 10px 36px}.brand-mark{width:37px;height:37px;border-radius:12px;background:linear-gradient(145deg,#a89cff,#6955db);display:grid;place-items:center;font:800 21px Manrope;color:white;box-shadow:0 7px 22px #c2410c22}.brand-mark span{color:#72f0cb}.brand b{display:block;font:800 17px Manrope;letter-spacing:-.5px}.brand small{display:block;color:#71695c;font-size:10px;letter-spacing:1.6px;text-transform:uppercase;margin-top:1px}.side-label,.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:700;color:#7888a3}.side-label{padding:0 12px 11px}.side-nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#71695c;text-align:left;padding:11px 13px;border-radius:10px;display:flex;align-items:center;gap:13px;font-size:12px;font-weight:600;transition:.2s}.nav-item span{font-size:17px;width:18px;text-align:center;color:#71695c}.nav-item:hover{background:#19243a;color:white}.nav-item.active{background:#c2410c22;color:#c2410c}.nav-item.active span{color:#c2410c}.more-label{margin-top:31px}.sidebar-bottom{margin-top:auto}.mini-profile{border-top:1px solid var(--line);padding:17px 5px 14px;display:flex;align-items:center;gap:9px}.avatar{width:33px;height:33px;border-radius:50%;background:#f0b991;color:#4b2c26;display:grid;place-items:center;font-weight:800}.mini-profile b{display:block;font-size:11px}.mini-profile small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.dots{margin-left:auto;color:#74839b}.side-foot{font-size:8px;letter-spacing:1.4px;color:#5e6b81;padding:7px 6px}.main-area{min-width:0;flex:1;display:flex;flex-direction:column;height:100vh;height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}.topbar{height:70px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;position:sticky;top:0;background:#ffffffee;backdrop-filter:blur(14px);z-index:5}.breadcrumb{display:flex;gap:10px;align-items:center;color:#7888a0;font-size:11px}.breadcrumb i{font-style:normal;color:#43516a}.breadcrumb b{color:#1b1d1f;font-weight:600}.top-actions{display:flex;align-items:center;gap:19px}.keyboard-status{font-size:10px;color:#8fa0b8}.keyboard-status i,.live-dot{display:inline-block;width:6px;height:6px;background:#177245;border-radius:50%;margin-right:6px;box-shadow:0 0 0 4px #1772451b}.icon-btn{background:transparent;border:1px solid var(--line);color:#71695c;border-radius:9px;width:33px;height:33px}.profile-chip{border:0;background:transparent;color:#aab6c8;display:flex;align-items:center;gap:8px;font-size:11px}.avatar.small{width:27px;height:27px;font-size:11px}.mobile-menu{display:none}.content{width:min(1150px,100%);padding:36px 42px 110px;margin:0 auto;flex:none;overflow:visible}.page{display:none;animation:fade .25s ease}.page.active{display:block}@keyframes fade{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.8px}h1{font-size:34px;line-height:1.15;margin:8px 0 9px;font-weight:800}h1 em{font-style:normal;color:#a89bff}.muted{color:var(--muted);font-size:12px;line-height:1.7}.welcome-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.welcome-row .muted{margin-bottom:0}.streak-card{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:#fffdf7;padding:12px 16px;border-radius:13px}.flame{width:35px;height:35px;border-radius:10px;background:#332a37;color:#ffbd85;display:grid;place-items:center;font-size:20px}.streak-card b,.streak-card small{display:block}.streak-card b{font-size:11px}.streak-card small{font-size:10px;color:var(--muted);margin-top:4px}.hero-card{border-radius:20px;min-height:236px;background:linear-gradient(112deg,#9a3412,#c2410c 58%,#ea580c);position:relative;overflow:hidden;padding:27px 33px;display:flex;margin-bottom:33px}.hero-copy{position:relative;z-index:2;width:52%}.light-pill{background:#ffffff20;color:#f0edff}.pill{display:inline-block;border-radius:20px;padding:6px 10px;font-size:8px;font-weight:700;letter-spacing:1.2px}.hero-card h2{font-size:29px;line-height:1.14;margin:13px 0 8px}.hero-card p{color:#e1ddff;font-size:11px;line-height:1.6;max-width:330px;margin-bottom:17px}.btn{border:0;border-radius:9px;padding:11px 15px;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:17px;transition:.2s}.btn-light{background:#fff;color:#51449d}.btn-light:hover{transform:translateY(-2px)}.btn-primary{background:#c2410c;color:white;box-shadow:0 6px 16px #c2410c33}.btn-primary:hover{background:#ea580c}.btn-outline{background:transparent;border:1px solid #34415a;color:#c5d0e0}.btn-outline:hover{border-color:#9285ef;color:white}.btn.full{width:100%}.hero-art{position:absolute;right:5%;top:0;width:43%;height:100%;display:grid;place-items:center}.orbit{position:absolute;border:1px solid #ffffff35;border-radius:50%;width:260px;height:260px}.orbit-two{width:195px;height:195px}.keyboard-illustration{position:relative;z-index:1;transform:rotate(-10deg);padding:16px;background:#9a3412;border:1px solid #ffffff45;border-radius:15px;box-shadow:0 20px 40px #29205b66}.key-row{display:flex;gap:4px;margin-bottom:5px}.key-row span{height:24px;width:24px;border-radius:5px;background:#d9d4ff;color:#554a91;display:grid;place-items:center;font-size:9px;font-weight:800}.key-row.indent{margin-left:10px}.key-row.indent2{margin-left:24px}.space-key{height:10px;width:105px;background:#a49af1;border-radius:4px;margin:4px auto 0}.spark{position:absolute;color:#fff;font-size:25px}.spark-a{right:10%;top:25%}.spark-b{left:13%;bottom:18%;font-size:18px}.section-head,.panel-head{display:flex;align-items:center;justify-content:space-between}.section-head{margin-bottom:15px}.section-head h2{font-size:19px;margin:5px 0 0}.text-btn,.back-link{border:0;background:none;color:#a99bff;font-size:10px;font-weight:700}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:22px}.stat-card,.panel,.learning-card{background:var(--panel);border:1px solid var(--line);border-radius:15px}.stat-card{padding:16px 17px;min-height:129px}.stat-icon{width:29px;height:29px;border-radius:9px;display:grid;place-items:center;font-size:17px;margin-bottom:12px}.purple{background:#c2410c22;color:#c2410c}.mint{background:#1d3b3b;color:#177245}.orange{background:#44342e;color:#ea580c}.blue{background:#213a53;color:#0f766e}.stat-card>small{display:block;color:#94a2b7;font-size:10px}.stat-card strong{font:800 25px Manrope;display:block;margin:3px 0 4px}.stat-card strong small{font:600 10px 'DM Sans';color:#a6b2c5}.stat-note{font-size:9px;color:#71819a}.lower-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:14px}.panel{padding:19px}.panel h3{font-size:15px;margin:5px 0 0}.tag{font-size:8px;letter-spacing:1px;font-weight:800;color:#a99bff;background:#c2410c22;border-radius:20px;padding:6px 9px}.course-line{display:flex;align-items:center;gap:12px;margin-top:20px}.course-symbol{width:40px;height:40px;border-radius:12px;background:#c2410c22;color:#b7adff;display:grid;place-items:center;font-size:20px}.course-info{flex:1;min-width:0}.course-info b,.course-info small{display:block}.course-info b{font-size:11px}.course-info small{font-size:9px;color:var(--muted);margin-top:4px}.progress-track{height:4px;background:#28354b;border-radius:5px;margin-top:10px;overflow:hidden}.progress-track span{height:100%;display:block;background:#9c8eff;border-radius:5px}.round-arrow{border:1px solid #3a4560;background:transparent;color:#b8adff;border-radius:50%;width:31px;height:31px}.quick-actions{display:flex;gap:9px;margin-top:18px}.quick-actions button{flex:1;border:1px solid var(--line);background:#eceade;border-radius:10px;color:#b6c2d5;padding:11px 5px;font-size:9px}.quick-actions button span{display:block;color:#aa9dff;font-size:18px;margin-bottom:6px}.mobile-tip{display:none}.page-title{margin-bottom:25px}.page-title h1{font-size:29px}.page-title .muted{margin-bottom:0}.course-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.learning-card{padding:21px}.learning-card.featured{background:linear-gradient(140deg,#1a2040,#151c30)}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.course-icon{width:40px;height:40px;border-radius:12px;background:#c2410c22;color:#c2410c;display:grid;place-items:center;font-size:20px;font-weight:800}.course-icon.lilac{background:#342b48;color:#d4a9f3}.course-icon.peach{background:#49342e;color:#ea580c}.course-icon.mint-bg{background:#1d3c39;color:#80dfc2;font-size:13px}.learning-card h3{font-size:16px;margin-bottom:8px}.learning-card p{font-size:11px;line-height:1.7;color:var(--muted);min-height:38px}.course-meta{display:flex;gap:7px;color:#8291a8;font-size:9px;margin:16px 0}.learning-card .progress-track{margin:0 0 16px}.lesson-layout{display:grid;grid-template-columns:260px 1fr;gap:15px}.lesson-list h3{margin-bottom:17px}.lesson-item{width:100%;display:flex;align-items:center;gap:10px;background:transparent;border:0;border-bottom:1px solid #26334a;color:#9caac0;text-align:left;padding:13px 0;font-size:10px}.lesson-item span{width:25px;height:25px;border-radius:8px;background:#202b41;display:grid;place-items:center}.lesson-item b{font-size:10px;flex:1}.lesson-item i{font-style:normal;font-size:8px;color:#71809a}.lesson-item.selected{color:#c2410c}.lesson-item.selected span{background:#c2410c22;color:#c2410c}.lesson-detail{padding:27px}.lesson-badge{font-size:9px;letter-spacing:1.4px;color:#a89cff;font-weight:800}.lesson-detail h2{font-size:23px;margin:12px 0}.lesson-detail p{color:var(--muted);font-size:11px;line-height:1.7}.finger-demo{display:flex;gap:7px;align-items:center;justify-content:center;padding:24px 5px;background:#eceade;border-radius:12px;margin:20px 0}.finger-demo span{width:31px;height:35px;background:#28354c;border:1px solid #43516a;border-radius:6px;display:grid;place-items:center;font-weight:700}.finger-demo .home-key{background:#4d438e;border-color:#c2410c;color:white}.space-gap{width:13px}.tip-box{background:#c2410c22;color:#c7c0ff;border-radius:9px;padding:12px;font-size:10px;line-height:1.6;margin-bottom:20px}.typing-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.typing-heading h1{font-size:28px}.typing-workspace{background:#fffdf7;border:1px solid #2b3850;border-radius:17px;padding:19px 22px;margin-bottom:15px}.typing-topline{font-size:9px;letter-spacing:1.3px;color:#9ba9bf;font-weight:700;display:flex;align-items:center}.typing-mode{margin-left:15px;color:#7d8ba2;font-size:8px}.exit-practice{margin-left:auto;background:transparent;border:0;color:#8392a9;font-size:10px}.typing-metrics{display:flex;gap:38px;padding:19px 0;border-bottom:1px solid var(--line);margin-bottom:21px}.typing-metrics div small,.typing-metrics div b{display:block}.typing-metrics div small{font-size:8px;letter-spacing:1px;color:#7f8da5}.typing-metrics div b{font:700 20px Manrope;margin-top:4px}.prompt-label{font-size:8px;letter-spacing:1.5px;color:#8292aa;font-weight:800;margin-bottom:12px}.typing-prompt{font:600 20px/1.8 Manrope;letter-spacing:.3px;color:#aebbd0;min-height:72px;overflow-wrap:anywhere}.typing-input{width:100%;min-height:88px;resize:vertical;background:#fffdf7;border:1px solid #34425b;border-radius:10px;color:#eaf0fb;padding:14px;font-size:14px;line-height:1.7;outline:none}.typing-input:focus{border-color:#c2410c;box-shadow:0 0 0 3px #c2410c22}.typing-footer{display:flex;justify-content:space-between;color:#77869e;font-size:9px;margin-top:10px}.keyboard-panel{background:#fffdf7;border:1px solid #29364d;border-radius:15px;padding:15px 20px}.keyboard-caption{display:flex;justify-content:space-between;color:#8492a8;font-size:8px;letter-spacing:1.3px;font-weight:800;margin-bottom:13px}.keyboard-legend{letter-spacing:0;text-transform:none}.keyboard-legend i{display:inline-block;width:7px;height:7px;background:#6258a5;border-radius:2px;margin-right:5px}.visual-keyboard{max-width:660px;margin:auto}.vk-row{display:flex;gap:5px;justify-content:center;margin-bottom:5px}.vk-row kbd{font:600 9px 'DM Sans';color:#aab7ca;background:#253249;border:1px solid #3c4b64;border-radius:5px;min-width:clamp(18px,4vw,42px);height:27px;display:grid;place-items:center;box-shadow:0 2px 0 #111827}.vk-row kbd.home{background:#4b4382;color:#e3deff;border-color:#c2410c}.vk-row .wide{min-width:70px}.vk-row .spacebar{min-width:42%;}.vk-row.offset{padding:0 2%}.vk-row.offset2{padding:0 5%}.test-layout{display:grid;grid-template-columns:310px 1fr;gap:15px}.test-setup h3,.test-preview h3{margin:0 0 20px}.test-setup label{display:block;font-size:8px;letter-spacing:1.3px;color:#71695c;font-weight:800;margin:20px 0 10px}.duration-options{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.duration{border:1px solid #33415a;background:#eceade;color:#71695c;padding:9px 2px;border-radius:7px;font-size:9px}.duration.active{background:#c2410c22;border-color:#c2410c;color:#c2410c}.test-setup select,.setting-row select{background:#18243a;border:1px solid #35425a;color:#1b1d1f;padding:10px;border-radius:8px;width:100%;font-size:10px}.test-note{font-size:9px;color:#8b9ab0;line-height:1.6;background:#eceade;border-radius:9px;padding:11px;margin:18px 0}.test-preview{min-height:360px}.test-preview>p{font-size:11px;color:var(--muted);line-height:1.7}.preview-stats{display:flex;gap:35px;margin:24px 0}.preview-stats b,.preview-stats small{display:block}.preview-stats b{font:700 17px Manrope;color:#b3a7ff}.preview-stats small{font-size:9px;color:#8492a8;margin-top:4px}.empty-test{text-align:center;color:#8b7ef0;font-size:25px;padding:23px}.empty-test b{display:block;color:#8e9db3;font:500 10px 'DM Sans';margin-top:9px}.test-live .test-clock{font:800 23px Manrope;color:#b2a7ff;margin:12px 0}.test-live .typing-prompt{font-size:16px;min-height:45px}.test-live .typing-input{min-height:100px}.test-live .btn{margin-top:12px}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.game-card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--panel)}.game-visual{height:140px;display:flex;align-items:center;justify-content:center;gap:13px;font:800 28px Manrope;letter-spacing:2px;color:#d7d0ff;background:linear-gradient(135deg,#3b326d,#28274d)}.game-visual span{color:#8be0d0}.game-blue .game-visual{background:linear-gradient(135deg,#244a70,#27334f);color:#0f766e}.game-orange .game-visual{background:linear-gradient(135deg,#684637,#3d2d36);color:#ffc18e}.game-card-body{padding:17px}.game-card-body h3{margin:10px 0 7px}.game-card-body p{color:var(--muted);font-size:10px;line-height:1.7;min-height:34px}.game-demo{margin-top:17px;text-align:center}.game-demo .panel-head{text-align:left}.game-target{font:800 48px Manrope;color:#c2410c;background:#c2410c22;border-radius:15px;width:100px;height:100px;display:grid;place-items:center;margin:17px auto}.game-score{color:#9ba9be;font-size:11px;margin-bottom:15px}.game-score b{color:white}.chart-panel{margin-bottom:15px}.chart-bars{height:180px;display:flex;align-items:end;justify-content:space-around;padding:20px 10px 0;border-bottom:1px solid #34415a;margin-top:15px}.chart-bars div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:9px;width:9%}.chart-bars i{display:block;width:100%;max-width:35px;background:linear-gradient(180deg,#c2410c,#5e52a9);border-radius:6px 6px 0 0;min-height:5px}.chart-bars small{font-size:8px;color:#8391a7}.chart-caption{font-size:9px;color:#71819a;margin:12px 0 0}.history-panel h3{margin-bottom:15px}.history-empty{padding:18px;border:1px dashed #39465d;border-radius:10px;color:#8796ad;font-size:10px;text-align:center}.review-layout{display:grid;grid-template-columns:1.4fr .8fr;gap:15px}.review-main h3{margin-bottom:7px}.review-main>p,.review-side p{font-size:10px;line-height:1.7;color:var(--muted)}.review-keys{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;margin:20px 0}.review-keys span{height:34px;border:1px solid #38465e;background:#eceade;border-radius:6px;display:grid;place-items:center;font-size:10px;color:#b7c4d8}.key-legend{display:flex;gap:15px;flex-wrap:wrap;color:#8d9bb0;font-size:9px}.key-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.key-legend .ok{background:#177245}.key-legend .warn{background:#f5bd72}.key-legend .bad{background:#ed7f91}.review-side h3{margin:12px 0 8px}.settings-list{padding:0 20px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border:0}.setting-row b,.setting-row small{display:block}.setting-row b{font-size:11px}.setting-row small{font-size:9px;color:var(--muted);margin-top:4px}.setting-row select{width:190px}.switch{position:relative;width:38px;height:21px;flex:0 0 38px}.switch input{opacity:0;width:0;height:0}.switch span{position:absolute;inset:0;background:#344158;border-radius:20px;cursor:pointer}.switch span:before{content:"";position:absolute;width:15px;height:15px;left:3px;top:3px;border-radius:50%;background:#dce3ef;transition:.2s}.switch input:checked+span{background:#c2410c}.switch input:checked+span:before{transform:translateX(17px)}.footer{border-top:1px solid var(--line);padding:17px 42px;color:#687891;font-size:9px;display:flex;justify-content:space-between}.footer b{color:#a99bff}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#e9e5ff;color:#31295f;padding:11px 16px;border-radius:9px;font-size:11px;font-weight:700;box-shadow:0 10px 30px #0005;transition:.25s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}
body.dark{--bg:#121416;--panel:#1a1d20;--panel2:#22262a;--line:#2e3236;--text:#edeae2;--muted:#9b968a;--purple:#fb923c;--purple2:#f97316;--mint:#4cc38a;--orange:#fb923c;--blue:#5eead4;--good:#4cc38a;--bad:#ff7b72}body.light .sidebar{background:#fff}body.light .topbar{background:#ffffffee}body.light .nav-item{color:#61708a}body.light .nav-item.active{color:#5b4bb1;background:#eeeaff}body.light .typing-workspace,body.light .keyboard-panel,body.light .typing-input,body.light .finger-demo{background:#f5f6fb;color:#25314a}body.light .typing-prompt{color:#53627a}body.light .vk-row kbd{background:#e2e7f0;color:#38465e}body.light .setting-row select,body.light .test-setup select{background:#f5f6fb;color:#24314a}body.light .course-info b,body.light .stat-card strong{color:#1e2a40}
@media(max-width:1000px){.sidebar{width:210px;flex-basis:210px}.content{padding:30px 25px}.topbar{padding:0 25px}.hero-art{right:1%}.stats-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1000px){.lesson-layout,.test-layout,.review-layout{grid-template-columns:1fr}}
@media(max-width:720px){.sidebar{position:fixed;z-index:15;left:-260px;top:0;bottom:0;width:245px;transition:.25s;box-shadow:15px 0 40px #0005}.sidebar.open{left:0}.topbar{height:58px;padding:0 14px}.mobile-menu{display:none}.breadcrumb{margin-right:auto;margin-left:10px}.top-actions{gap:8px}.keyboard-status,.profile-name,.profile-chip>span:last-child,.top-actions>.icon-btn{display:none}.content{padding:23px 15px 35px}.welcome-row{align-items:flex-start;gap:10px}.welcome-row h1{font-size:28px}.streak-card{padding:8px 10px;white-space:nowrap}.streak-card small{display:none}.hero-card{padding:22px;min-height:205px}.hero-copy{width:70%}.hero-card h2{font-size:24px}.hero-card p{max-width:245px;font-size:10px}.hero-art{opacity:.65;right:-18%;width:54%}.keyboard-illustration{transform:scale(.72) rotate(-10deg)}.orbit{width:200px;height:200px}.orbit-two{width:150px;height:150px}.stats-grid{gap:9px}.stat-card{padding:13px;min-height:116px}.stat-card strong{font-size:22px}.lower-grid{grid-template-columns:1fr}.mobile-tip{display:flex;gap:11px;margin-top:15px;padding:13px;background:#17243a;border:1px solid #2b3a53;border-radius:11px;color:#b2a6ff}.mobile-tip>span{font-size:20px}.mobile-tip b,.mobile-tip small{display:block}.mobile-tip b{font-size:10px;color:#d7dff0}.mobile-tip small{font-size:9px;color:#93a2b9;line-height:1.6;margin-top:3px}.course-grid{grid-template-columns:1fr}.lesson-layout{grid-template-columns:1fr}.lesson-list{display:block}.test-layout{grid-template-columns:1fr}.game-grid{grid-template-columns:1fr 1fr}.game-visual{height:110px}.review-layout{grid-template-columns:1fr}.footer{padding:15px;gap:10px}.typing-metrics{gap:0;justify-content:space-between}.typing-workspace{padding:14px}.typing-prompt{font-size:17px}.typing-input{min-height:100px}.keyboard-panel{padding:12px 7px}.vk-row{gap:3px}.vk-row kbd{height:25px;min-width:clamp(16px,7vw,35px);font-size:8px}.vk-row .wide{min-width:48px}.typing-heading h1{font-size:25px}.page-title h1{font-size:26px}}
@media(max-width:420px){.streak-card{display:none}.hero-copy{width:83%}.hero-art{right:-30%;opacity:.45}.game-grid{grid-template-columns:1fr}.quick-actions{gap:5px}.quick-actions button{font-size:8px}.typing-mode{display:none}.typing-metrics div b{font-size:17px}.setting-row{gap:8px}.setting-row select{width:145px}.review-keys{grid-template-columns:repeat(7,1fr)}}
@media(orientation:landscape) and (max-height:500px) and (max-width:950px){.topbar{height:46px}.content{padding:12px 18px 20px}.typing-heading{margin-bottom:8px}.typing-heading h1{font-size:21px}.typing-heading .muted{display:none}.typing-workspace{padding:10px 15px;margin-bottom:8px}.typing-metrics{padding:9px 0;margin-bottom:9px}.typing-metrics div b{font-size:16px}.typing-prompt{font-size:15px;min-height:42px;line-height:1.5}.typing-input{min-height:55px;padding:8px}.keyboard-panel{padding:8px 12px}.keyboard-caption{margin-bottom:6px}.vk-row kbd{height:21px}.typing-footer{margin-top:5px}.footer{display:none}}

@media(max-width:720px){.sidebar{position:fixed;z-index:15;left:-260px;top:0;bottom:0;width:245px;transition:left .25s;box-shadow:15px 0 40px #0005}.sidebar.open{left:0}.sidebar-scrim{display:block;position:fixed;inset:0;background:#0008;z-index:14;border:0;padding:0}.sidebar-close{display:block;position:absolute;top:12px;right:12px;width:30px;height:30px;border-radius:8px;border:1px solid var(--line);background:transparent;color:var(--muted);font-size:16px}}
@media(orientation:portrait) and (max-width:720px){.sidebar{left:-260px}.sidebar.open{left:0}}

.typing-prompt .tc{border-radius:3px;padding:0 1px;transition:background-color .08s,color .08s}
.typing-prompt .tc.ok{color:#177245;background:rgba(23,114,69,.14)}
.typing-prompt .tc.bad{color:#cf222e;background:rgba(207,34,46,.16);text-decoration:underline}
.typing-prompt .tc.cur{background:rgba(194,65,12,.16);box-shadow:inset 0 -2px 0 #c2410c}
.typing-prompt{animation:none}

.tools-fab{position:fixed;right:16px;bottom:16px;z-index:40;border:0;border-radius:999px;padding:12px 16px;background:#c2410c;color:#fff7ed;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab;will-change:transform;font-weight:700;font-size:12px;box-shadow:0 8px 24px #0006}
.tools-panel{position:fixed;right:16px;bottom:64px;z-index:40;width:min(230px,calc(100vw - 32px));max-height:70vh;overflow-y:auto;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px;box-shadow:0 12px 32px #0005}
.tools-title{font-size:10px;letter-spacing:1.4px;font-weight:800;color:var(--muted);margin-bottom:10px}
.tools-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}
.tools-row button,.tools-btn{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:8px;padding:8px 10px;font-size:11px;font-weight:700}
.tools-btn{display:block;width:100%;margin-top:6px;text-align:left}
.upcoming-words{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 14px}
.upcoming-words .uw{border:1px solid var(--line);background:var(--panel2);border-radius:7px;padding:5px 8px;font-size:11px;color:var(--muted)}
.upcoming-words .uw.next{background:rgba(194,65,12,.14);border-color:#c2410c;color:#c2410c;font-weight:700}
.typing-metrics div b{font-variant-numeric:tabular-nums;white-space:nowrap}
@media(orientation:landscape) and (max-height:650px){
.main-area.typing-locked{overflow:hidden}
.content{height:calc(100dvh - 46px);padding:12px 18px 14px;display:flex;flex-direction:column}
#page-practice{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}
#page-practice .typing-heading{grid-column:1 / -1;margin-bottom:0}
#page-practice .typing-heading h1{font-size:21px}
#page-practice .typing-workspace{margin:0;display:flex;flex-direction:column;width:100%}
#page-practice .typing-prompt{min-height:48px;max-height:84px;overflow:hidden}
#page-practice .typing-input{min-height:56px;flex:1;resize:none}
#page-practice .keyboard-panel{margin:0;display:flex;flex-direction:column;width:100%}
#page-practice .visual-keyboard{transform:none;max-width:100%}
#page-practice .typing-metrics{padding:9px 0;margin-bottom:9px}
}

@media(max-width:720px){.topbar .mobile-menu{display:flex;align-items:center;justify-content:center;flex:0 0 auto}}

.sidebar-scrim[hidden]{display:none!important}
.footer{flex:0 0 auto;position:relative;z-index:1;background:var(--panel)}

body.controls-hidden .sidebar{display:none!important}
body.controls-hidden .topbar{display:none!important}
body.controls-hidden .main-area{height:100vh;height:100dvh}
.show-controls-fab{position:fixed;left:12px;top:12px;z-index:60;width:38px;height:38px;border-radius:10px;background:var(--panel);border:1px solid var(--line);color:var(--text);font-size:18px;display:none;align-items:center;justify-content:center;box-shadow:0 6px 20px #0005}
body.controls-hidden .show-controls-fab{display:flex}
body.controls-hidden .show-controls-fab[hidden]{display:none!important}

body.zoomed-in .course-grid,body.zoomed-in .stats-grid,body.zoomed-in .game-grid,body.zoomed-in .lower-grid,body.zoomed-in .review-layout,body.zoomed-in .test-layout,body.zoomed-in .lesson-layout{grid-template-columns:1fr!important}
body.zoomed-in .visual-keyboard{max-width:100%}

.main-area{overflow-y:auto;overflow-x:hidden}
.sidebar-bottom{flex:0 0 auto}

.mobile-menu{display:flex!important;align-items:center;justify-content:center;flex:0 0 auto}
.sidebar-close{display:block!important}
#hideTopbar{display:flex!important;align-items:center;justify-content:center;flex:0 0 auto}

.lesson-list .lesson-item{width:100%}

body.light{background:#ffffff;color:#1b1d1f}
body.light .sidebar{background:#ffffff}
body.light .topbar{background:#ffffffee;color:#1b1d1f}
body.light .breadcrumb b{color:#1b1d1f}
body.light .nav-item{color:#4b5563}
body.light .nav-item:hover{background:#f0ede6;color:#1b1d1f}
body.light .nav-item span{color:#4b5563}
body.light .typing-workspace,body.light .keyboard-panel{background:#ffffff;color:#1b1d1f}
body.light .typing-input{background:#ffffff;color:#1b1d1f;border-color:#d8d2c4}
body.light .typing-prompt{color:#3d4a5c}
body.light .quick-actions button{background:#ffffff;color:#1b1d1f;border-color:#ddd8ca}
body.light .quick-actions button span{color:#c2410c}
body.light .review-keys span{background:#f5f6fb;color:#1b1d1f;border-color:#ddd8ca}
body.light .test-setup select,body.light .setting-row select{background:#ffffff;color:#1b1d1f}
body.light .vk-row kbd{background:#eef1f6;color:#1b1d1f;border-color:#cbd5e1}
body.light .vk-row kbd.home{background:#e0d9ff;color:#4b2fb3;border-color:#c2410c}
body.light .stat-card strong,body.light .course-info b{color:#1b1d1f}
body.light .footer{background:#ffffff;color:#5e6b81}
body.light .tools-panel{background:#ffffff;color:#1b1d1f}

.tools-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 2px 2px;font-size:13px;font-weight:600;color:var(--text);cursor:pointer}

body.light .learning-card.featured{background:#fff7ed;border-color:#fed7aa}
body.light .learning-card.featured h3,body.light .learning-card.featured p{color:#1b1d1f}
body.light .lesson-item{color:#374151;border-bottom-color:#e5e7eb}
body.light .lesson-item span{background:#eef1f6;color:#374151}
body.light .finger-demo{background:#f5f6f8}
body.light .finger-demo span{background:#eef1f6;color:#1b1d1f;border-color:#cbd5e1}
body.light .finger-demo .home-key{background:#7c3aed;color:#ffffff;border-color:#7c3aed}
body.light .tip-box{color:#6d28d9}
body.light .btn-outline{color:#c2410c;border-color:#c2410c}
body.light .typing-input{border-color:#d1d5db}
body.light .keyboard-panel{border-color:#e5e7eb}
body.light .typing-workspace{border-color:#e5e7eb}
body.light .progress-track{background:#e5e7eb}
body.light .streak-card{background:#ffffff}

body.sidebar-hidden .sidebar{display:none!important}
body.sidebar-hidden .main-area{flex:1 1 auto}
.google-login-btn{margin:10px 5px 0;width:calc(100% - 10px)}

.tools-fab:active{cursor:grabbing}
