@font-face{font-family:Onest;font-style:normal;font-weight:400;font-display:swap;src:url('/assets/onest-regular.ttf') format('truetype')}
@font-face{font-family:Onest;font-style:normal;font-weight:500 600;font-display:swap;src:url('/assets/onest-semibold.ttf') format('truetype')}
@font-face{font-family:Onest;font-style:normal;font-weight:650 900;font-display:swap;src:url('/assets/onest-bold.ttf') format('truetype')}
*{box-sizing:border-box}html{font-size:16px;scroll-behavior:smooth}body{--bg:#f6f7fb;--surface:#fff;--ink:#252535;--muted:#686978;--line:#ececf2;--accent:#7856e9;--accent-soft:#f1edff;--green:#249b75;--red:#de5265;--shadow:0 5px 24px #29214503;margin:0;color:var(--ink);background:var(--bg);font-family:Onest,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}body.dark{--bg:#15151e;--surface:#1e1e2a;--ink:#e9e8f4;--muted:#a3a1b5;--line:#323240;--accent:#af94ff;--accent-soft:#302643;--green:#62d8ad;--red:#ff8794;--shadow:none;color-scheme:dark}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button,select{touch-action:manipulation}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--accent);outline-offset:4px}button{border:0;background:none}h1,h2,h3,p{margin:0}button svg,span[data-icon] svg{width:20px;height:20px;display:block;flex-shrink:0}span[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}svg{stroke:currentColor}button{transition:background .18s,color .18s,border-color .18s,transform .18s}.accent{color:var(--accent)}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;z-index:100;top:-70px;left:20px;background:var(--ink);color:var(--surface);padding:12px 20px;border-radius:12px}.skip-link:focus{top:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--surface);border-right:1px solid var(--line);padding:34px 20px 26px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;font-size:30px;font-weight:780;letter-spacing:-1.5px;padding:0 13px;margin-bottom:57px}.brand-dot{color:var(--accent)}.brand-mark{height:37px;width:37px;border-radius:11px;background:#7856e9;display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:9px 7px}.brand-mark i{width:4px;background:#fff;border-radius:5px;height:12px}.brand-mark i:nth-child(2){height:17px}.brand-mark i:nth-child(3){height:21px}.brand-mark i:nth-child(4){height:15px}.sidebar-label{font-size:10px;letter-spacing:1.6px;color:var(--muted);font-weight:650;padding:0 15px;margin-bottom:13px}.nav-list{display:grid;gap:6px}.nav-item{display:flex;align-items:center;text-align:left;gap:11px;width:100%;min-height:48px;padding:11px 14px;border-radius:10px;color:#797989;font-size:14px;font-weight:550;white-space:nowrap}.nav-item svg{width:19px;height:19px}.nav-item:hover{color:var(--accent);background:var(--bg)}.nav-item.active{background:var(--accent-soft);color:var(--accent)}.nav-count{font-size:11px;line-height:22px;min-width:26px;text-align:center;background:var(--surface);border-radius:6px;margin-left:auto}.second-label{margin-top:39px}.sidebar-bottom{margin-top:auto;padding:40px 13px 0}.sidebar-bottom strong{display:block;font-size:14px;font-weight:650;line-height:1.6}.sidebar-bottom p{font-size:12px;line-height:1.7;color:var(--muted);margin-top:9px}.small-key-art{display:flex;gap:5px;margin-bottom:17px;transform:rotate(-7deg);transform-origin:left center}.small-key-art span{height:29px;width:29px;border:1px solid #e0d9f9;border-bottom-width:3px;background:#f5f1ff;color:#9478d7;border-radius:7px;text-align:center;font-size:12px;padding-top:3px}.small-key-art span:nth-child(2){transform:translateY(-6px)}.small-key-art span:nth-child(3){transform:translateY(-9px)}.small-key-art span:nth-child(4){transform:translateY(-4px)}.local-note{display:flex;gap:6px;align-items:center;border-top:1px solid var(--line);margin-top:30px;padding-top:19px;color:var(--muted);font-size:10px;white-space:nowrap}.local-note svg{width:13px;height:13px}.app-shell{margin-left:238px}.topbar{height:82px;padding:0 42px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:var(--surface)}.breadcrumb{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:12px}.breadcrumb-line{height:13px;width:1px;background:var(--line);transform:rotate(20deg)}#breadcrumb-current{color:var(--ink)}.topbar-actions{display:flex;align-items:center;gap:17px}.streak-pill{display:flex;align-items:center;gap:7px;font-size:12px;color:#9a6d37;margin-right:9px}.streak-pill svg{color:#e4a754;width:18px;height:18px}.icon-button{width:35px;height:35px;display:flex;align-items:center;justify-content:center;border-radius:8px;color:var(--muted)}.icon-button:hover{background:var(--accent-soft);color:var(--accent)}.avatar{border-radius:50%;width:33px;height:33px;display:grid;place-items:center;font-weight:650;font-size:12px;background:#ebe6fc;color:#7856e9;border:3px solid var(--surface);box-shadow:0 0 0 1px var(--line)}main{max-width:1550px;margin:auto;padding:38px 42px 0;outline:none}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:31px}.eyebrow{font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:600;display:flex;align-items:center;gap:6px;margin-bottom:7px}.eyebrow>span{background:#b59df3;height:5px;width:5px;border-radius:50%}h1{font-size:36px;letter-spacing:-1.3px;line-height:1.4;font-weight:730}.page-heading p{color:var(--muted);font-size:14px;margin-top:4px}.language-control{position:relative;border:1px solid var(--line);border-radius:10px;background:var(--surface);display:flex;align-items:center;padding-left:13px;gap:9px;height:42px;color:#777785}.language-control>span:first-child svg{width:16px;height:16px}.language-control select{appearance:none;-webkit-appearance:none;background:transparent;color:var(--ink);border:0;font-size:12px;font-weight:550;cursor:pointer;min-width:104px;padding:10px 28px 10px 0;border-radius:6px}.select-chevron{position:absolute;right:10px;pointer-events:none}.select-chevron svg{width:13px!important;height:13px!important}.section-label{font-size:10px;font-weight:650;letter-spacing:1.1px;margin-bottom:12px}.section-label>span{letter-spacing:0;font-size:11px;font-weight:400;color:var(--muted);margin-left:12px}.level-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:25px}.level-card{padding:16px 15px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;position:relative;display:flex;gap:12px;align-items:center;box-shadow:var(--shadow)}.level-card:hover{border-color:#cbbaf6;transform:translateY(-2px)}.level-card.selected{border-color:var(--accent);background:var(--accent-soft);box-shadow:0 0 0 1px var(--accent)}.level-icon{width:35px;height:39px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--bg);color:#9d9caa;flex-shrink:0}.level-card.selected .level-icon{background:#e8dfff;color:#7856e9}.level-icon svg{width:21px;height:21px}.level-name{display:block;font-size:13px;font-weight:650;margin-bottom:3px}.level-description{display:block;font-size:11px;color:var(--muted);white-space:nowrap}.level-check{position:absolute;right:9px;top:8px;color:var(--accent)}.level-check svg{width:13px;height:13px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 258px;gap:23px}.training-column{min-width:0}.card{border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:var(--shadow)}.trainer{overflow:hidden}.trainer-heading{display:flex;align-items:center;justify-content:space-between;padding:23px 26px 20px}.lesson-eyebrow{display:block;font-size:9px;font-weight:650;color:var(--accent);letter-spacing:1.2px;margin-bottom:5px}h2{font-size:17px;letter-spacing:-.25px;font-weight:650}.subtle{width:31px;height:31px}.subtle svg{width:17px;height:17px}.live-metrics{display:grid;grid-template-columns:repeat(4,1fr);padding:0 26px 20px;gap:20px}.live-metrics>div{display:flex;flex-direction:column;border-right:1px solid var(--line)}.live-metrics>div:last-child{border:0}.live-metrics>div>span{font-size:24px;font-weight:580;font-variant-numeric:tabular-nums;letter-spacing:-.8px;line-height:1.3}.live-metrics em{font-style:normal;font-size:15px;margin-left:2px}.live-metrics small{font-size:10px;color:var(--muted);margin-top:4px}.live-metrics>div:first-child>span{color:var(--accent)}.live-metrics>div:nth-child(2)>span{color:var(--green)}.typing-zone{position:relative;min-height:168px;max-height:168px;margin:0 26px;overflow:hidden;border-radius:8px;cursor:text}.typing-text{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:27px;line-height:1.95;letter-spacing:1px;white-space:pre-wrap;word-break:break-word;color:#a5a6b3;position:relative;transition:transform .15s;padding:4px 0 54px;pointer-events:none}.char{border-radius:3px;position:relative}.char.correct{color:var(--ink)}.char.current{color:var(--accent);background:var(--accent-soft)}.char.current:before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--accent);border-radius:1px;animation:blink 1.1s infinite}.char.error{background:#ffe8ed;color:#d7415c}.typing-input{position:absolute;left:0;top:0;height:100%;width:100%;padding:0;border:0;outline:none!important;opacity:.01;color:transparent;caret-color:transparent;background:transparent;font-size:16px;resize:none;z-index:2;cursor:text}.typing-overlay{position:absolute;inset:0;background:color-mix(in srgb,var(--surface) 77%,transparent);backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;z-index:3}.typing-overlay>span{font-size:10px;color:var(--muted)}.start-button,.primary-button{display:inline-flex;gap:8px;justify-content:center;align-items:center;border:1px solid transparent;background:#7856e9;border-radius:9px;color:#fff;padding:11px 18px;font-size:12px;font-weight:600;box-shadow:0 4px 10px #7856e920}.start-button:hover,.primary-button:hover{background:#6643d2;transform:translateY(-1px)}.start-button svg{width:14px;height:14px}.typing-status{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:var(--muted);padding:15px 26px 17px;min-height:49px}#input-instructions{display:flex;align-items:center;gap:6px}.status-dot{width:5px;height:5px;background:#b5a5e6;border-radius:50%}.keyboard-shortcut{font-size:9px;white-space:nowrap;color:var(--muted)}kbd{font-family:inherit;border:1px solid var(--line);padding:1px 4px;border-radius:4px;background:var(--bg);font-size:9px}.exercise-track{height:3px;background:var(--line)}.exercise-track>div{height:100%;background:var(--accent);width:0;transition:width .15s}.keyboard-panel{padding:17px 24px 18px;background:color-mix(in srgb,var(--bg) 65%,var(--surface))}.keyboard-label{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:19px;color:var(--muted);font-size:10px}.keyboard-label>span{display:flex;align-items:center;gap:6px}.keyboard-label svg{width:14px;height:14px}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--accent);font-size:11px;font-weight:500;padding:5px 0;white-space:nowrap}.text-button:hover{color:#5a36c5;text-decoration:underline}.text-button svg{width:14px;height:14px}.keyboard{max-width:660px;margin:auto;user-select:none}.key-row{display:flex;gap:5px;margin-bottom:6px}.key{flex:1 1 0;min-width:0;height:35px;border:1px solid #e5e4ed;border-bottom:3px solid #e2e1e9;border-radius:6px;background:var(--surface);color:#737184;display:flex;justify-content:center;align-items:center;font-size:11px;position:relative;transition:background .1s,border-color .1s,transform .1s}.key.wide{flex:1.55}.key.extra-wide{flex:2.05;font-size:9px}.key.space{flex:6}.key.modifier{font-size:8px;color:var(--muted)}.key.home:after{content:"";position:absolute;bottom:4px;height:2px;width:8px;background:currentColor;border-radius:2px;opacity:.5}.keyboard.hints .key.finger-0{background:#fff0ed;border-color:#f2dcd7;color:#97584e}.keyboard.hints .key.finger-1{background:#fff7e7;border-color:#eedecc;color:#88692c}.keyboard.hints .key.finger-2{background:#ecf5f0;border-color:#d8e9df;color:#477959}.keyboard.hints .key.finger-3{background:#eef0ff;border-color:#dce0f2;color:#69668f}.keyboard.hints .key.finger-4{background:#f1eef8;border-color:#e3deed;color:#796889}.key.next,.keyboard.hints .key.next{background:#7856e9;color:#fff;border-color:#6c47d8;box-shadow:0 3px 7px #7856e923;transform:translateY(-2px)}.key.pressed{transform:translateY(2px)!important}.finger-legend{display:flex;gap:13px;justify-content:center;margin-top:15px;color:var(--muted);font-size:8px}.finger-legend span{display:flex;align-items:center;gap:4px}.finger-legend i{width:5px;height:5px;border-radius:50%}.finger-legend .finger-0{background:#db9b90}.finger-legend .finger-1{background:#d1b16e}.finger-legend .finger-2{background:#8cbba0}.finger-legend .finger-3{background:#a5a4d9}.finger-legend .finger-4{background:#b39dce}.practice-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:10px;padding:0 2px}.practice-bottom>span{display:flex;align-items:center;gap:5px;font-size:9px;color:var(--muted)}.practice-bottom>span svg{width:11px;height:11px}.practice-bottom .text-button{font-size:10px}.lesson-list{padding:21px 17px 12px}.section-card-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;padding:0 4px}.section-card-title h2{font-size:13px}.section-card-title>span{font-size:9px;background:var(--bg);color:var(--muted);border:1px solid var(--line);padding:2px 6px;border-radius:5px}.lesson-item{display:flex;text-align:left;align-items:center;gap:10px;padding:12px 10px;width:100%;border-radius:8px;position:relative;margin-bottom:3px;min-height:58px}.lesson-item:hover{background:var(--bg)}.lesson-item.selected{background:var(--accent-soft)}.lesson-number{height:26px;width:26px;border:1px solid var(--line);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:10px;color:var(--muted);background:var(--surface)}.lesson-item.selected .lesson-number{background:#7856e9;border-color:#7856e9;color:#fff}.lesson-number.done{background:#e7f7ef;color:#2aa074;border-color:#d4f0e2}.lesson-number svg{width:13px;height:13px}.lesson-copy{min-width:0}.lesson-copy strong{display:block;font-size:10px;font-weight:550;line-height:1.5}.lesson-copy small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.lesson-item.selected .lesson-copy strong{color:var(--accent)}.lesson-active-dot{margin-left:auto;height:5px;width:5px;border-radius:50%;background:var(--accent);flex-shrink:0}.daily-card{background:#eeebfa;border:1px solid #e8e2f8;border-radius:13px;padding:21px 21px 22px;margin-top:18px;color:#544969;position:relative;overflow:hidden}.daily-card:after{content:"✧";position:absolute;right:15px;top:31px;font-size:100px;line-height:1;color:#ded6f3;transform:rotate(12deg);pointer-events:none}.daily-card-top{display:flex;align-items:center;gap:7px;font-size:8px;font-weight:650;letter-spacing:1px;position:relative;z-index:1}.daily-icon svg{width:16px;height:16px}.daily-card h3{font-size:17px;font-weight:650;letter-spacing:-.4px;margin-top:16px;position:relative;z-index:1}.daily-card p{font-size:10px;line-height:1.8;color:#766584;margin-top:7px;position:relative;z-index:1}.daily-progress{display:flex;justify-content:space-between;font-size:9px;margin:20px 0 7px;color:#75638b}.daily-progress span:first-child{color:#796295;font-weight:650}.daily-track{height:4px;background:#dfd7ee;border-radius:4px;overflow:hidden}.daily-track>div{background:#9574d6;height:100%;width:0;max-width:100%}.tip-strip{margin-top:20px;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:17px 20px;display:flex;align-items:center;gap:15px}.tip-icon{height:35px;width:35px;border-radius:10px;background:#fff7e8;color:#cfab59}.tip-icon svg{width:19px;height:19px}.tip-strip strong{font-size:11px;font-weight:600}.tip-strip p{font-size:10px;color:var(--muted);margin-top:4px}.tip-strip .text-button{margin-left:auto;font-size:10px}.footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding:19px 0 23px;margin-top:30px;color:var(--muted);font-size:9px}.footer>span:first-child{font-size:14px;font-weight:700;letter-spacing:-.5px;color:#9895a5}.footer-caption{font-weight:400;font-size:9px;letter-spacing:0;border-left:1px solid var(--line);margin-left:9px;padding-left:12px}.tiny-spark{color:#b9a5e5;margin-left:3px}.dark .key{border-color:#43404f}.dark .keyboard.hints .key.finger-0{background:#3c2d31;border-color:#5a3f45;color:#dca89c}.dark .keyboard.hints .key.finger-1{background:#3a3526;border-color:#514a34;color:#cfb686}.dark .keyboard.hints .key.finger-2{background:#24382f;border-color:#3b5044;color:#9cc4ac}.dark .keyboard.hints .key.finger-3{background:#2d2d45;border-color:#414160;color:#aaaad6}.dark .keyboard.hints .key.finger-4{background:#342b41;border-color:#4b3e5f;color:#bba7d4}.dark .keyboard.hints .key.next{background:#9470ef;color:#fff;border-color:#b19aee}.dark .daily-card{background:#302940;border-color:#413352;color:#d1c2e5}.dark .daily-card:after{color:#433553}.dark .daily-card p{color:#b7a2ca}.dark .char.error{background:#58303a;color:#ff91a3}.dark .small-key-art span{background:#302643;border-color:#4b3c61}.dark .tip-icon{background:#3a3325}.dark .lesson-number.done{background:#233f32;border-color:#32573f;color:#66dba9}.dark .avatar{background:#3c2e54;color:#cbb2ff}
/* Secondary screens and dialogs */
.mode-card{padding:28px;margin-bottom:24px}.mode-heading{display:flex;align-items:center;gap:13px;margin-bottom:22px}.mode-heading .mode-icon{width:44px;height:44px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;border-radius:12px}.mode-heading h2{font-size:20px}.mode-heading p{font-size:13px;color:var(--muted);margin-top:5px}.speed-options{display:flex;align-items:center;gap:10px;margin-top:23px;flex-wrap:wrap}.duration-button{border:1px solid var(--line);background:var(--bg);padding:11px 24px;font-size:14px;border-radius:8px}.duration-button.selected{color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.speed-options .primary-button{margin-left:auto;font-size:13px}.speed-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.info-card{padding:22px}.info-card>span{display:block;color:var(--accent);margin-bottom:13px}.info-card h3{font-size:14px;margin-bottom:7px}.info-card p{font-size:13px;color:var(--muted);line-height:1.7}.progress-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:23px}.stat-card{padding:23px}.stat-label{font-size:12px;color:var(--muted);display:flex;gap:7px;align-items:center}.stat-label svg{width:16px;height:16px}.stat-value{font-size:32px;font-weight:650;letter-spacing:-1px;margin:15px 0 2px}.stat-value small{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted)}.stat-caption{font-size:11px;color:var(--muted)}.progress-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.chart-card,.weak-card,.history-card{padding:24px}.chart-header{display:flex;align-items:center;justify-content:space-between;gap:15px}.chart-header h2{font-size:15px}.chart-header>span{font-size:11px;color:var(--muted)}.bar-chart{height:180px;display:flex;align-items:stretch;gap:15px;margin-top:30px}.bar-column{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.bar-column>div{width:100%;max-width:42px;min-height:3px;border-radius:6px 6px 2px 2px;background:#dcd2fa;position:relative}.bar-column.today>div{background:#7856e9}.bar-column>span{font-size:10px;color:var(--muted)}.bar-column small{font-size:10px;color:var(--accent)}.chart-note{font-size:11px;color:var(--muted);margin-top:20px}.weak-card h2{font-size:15px}.weak-card p{font-size:12px;color:var(--muted);margin-top:10px}.weak-keys{display:flex;flex-wrap:wrap;gap:7px;margin:23px 0}.weak-key{display:flex;flex-direction:column;align-items:center;gap:5px}.weak-key kbd{font-size:21px;padding:4px 12px;border-radius:7px;color:var(--accent);background:var(--accent-soft);border-color:#d6c9f7}.weak-key small{font-size:9px;color:var(--muted)}.weak-card .primary-button{font-size:11px}.history-card{margin-top:20px}.history-card h2{font-size:15px;margin-bottom:20px}.history-table{width:100%;border-collapse:collapse;font-size:12px}.history-table th{text-align:left;color:var(--muted);font-size:10px;font-weight:500;padding:10px;border-bottom:1px solid var(--line)}.history-table td{padding:14px 10px;border-bottom:1px solid var(--line)}.history-table tr:last-child td{border:0}.history-table td:nth-child(3){color:var(--accent);font-weight:600}.empty-state{text-align:center;padding:32px 20px}.empty-state>span{margin:auto;color:var(--accent)}.empty-state h3{font-size:17px;margin-top:10px}.empty-state p{font-size:13px;color:var(--muted);max-width:390px;margin:9px auto 20px}.progress-actions{display:flex;justify-content:space-between;align-items:center;margin-top:20px;gap:15px;flex-wrap:wrap}.progress-actions p{font-size:10px;color:var(--muted)}.progress-actions>div{display:flex;gap:16px}.danger-text{color:var(--red)}dialog{padding:0;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--ink);width:580px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);box-shadow:0 30px 100px #0003}dialog::backdrop{background:#22203675;backdrop-filter:blur(5px)}.dialog-body{padding:32px}.dialog-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.dialog-top h2{font-size:23px;letter-spacing:-.6px}.dialog-intro{color:var(--muted);font-size:14px;margin-bottom:23px}.guide-step{display:flex;gap:13px;margin:20px 0}.guide-step>span{display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);border-radius:8px;height:29px;width:29px;flex-shrink:0;font-size:12px}.guide-step h3{font-size:14px;margin-top:3px}.guide-step p{font-size:13px;color:var(--muted);margin-top:5px;line-height:1.7}.guide-step kbd{font-size:11px}.guide-note{background:var(--accent-soft);padding:13px 16px;border-radius:9px;font-size:12px;color:var(--accent);margin-top:25px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:25px}.secondary-button{padding:10px 17px;border:1px solid var(--line);border-radius:9px;font-size:12px;background:var(--surface)}.secondary-button:hover{background:var(--bg)}.dialog-actions .primary-button{font-size:12px}.custom-text{width:100%;min-height:170px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:10px;padding:15px;font-size:15px;resize:vertical}.custom-count{font-size:11px;color:var(--muted);margin-top:7px}.form-error{font-size:12px;color:var(--red);margin-top:8px}.result-body{text-align:center;padding:35px 30px}.result-badge{margin:0 auto 18px;background:var(--accent-soft);width:65px;height:65px;display:flex;align-items:center;justify-content:center;color:var(--accent);border-radius:20px;transform:rotate(-7deg)}.result-badge svg{height:34px;width:34px;transform:rotate(7deg)}.result-body h2{font-size:26px;letter-spacing:-.8px}.result-subtitle{font-size:13px;color:var(--muted);margin-top:8px}.result-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;background:var(--bg);padding:22px 10px;border-radius:12px;margin:27px 0}.result-metrics strong{display:block;font-size:27px;font-weight:650;color:var(--accent)}.result-metrics span{font-size:10px;color:var(--muted)}.result-metrics>div:nth-child(2) strong{color:var(--green)}.result-message{font-size:13px;line-height:1.8;color:var(--muted)}.result-body .dialog-actions{justify-content:center}.result-close{position:absolute;right:14px;top:14px}.result-star{color:#ecb65a;letter-spacing:5px;font-size:23px;margin-top:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:200;background:var(--ink);color:var(--surface);font-size:13px;padding:13px 21px;border-radius:10px;box-shadow:0 5px 30px #0002;max-width:90vw;text-align:center}.noscript{position:fixed;inset:0;z-index:100;background:white;display:grid;place-items:center}.error-shake{animation:shake .17s}.mobile-note{font-size:11px;color:var(--muted);margin-top:16px}.storage-banner{border:1px solid #e7c786;background:#fff7df;color:#745d26;padding:10px 15px;border-radius:9px;font-size:12px;margin-bottom:18px}
@keyframes blink{50%{opacity:0}}@keyframes shake{0%,100%{transform:translateX(0)}33%{transform:translateX(-3px)}66%{transform:translateX(3px)}}
@media(min-width:1600px){main{padding-top:44px}.typing-zone{min-height:184px;max-height:184px}.typing-text{font-size:30px}.key{height:42px}.trainer-heading{padding-top:28px}.lesson-item{min-height:65px}.level-card{padding:20px}.level-name{font-size:15px}.level-description{font-size:12px}.workspace-grid{grid-template-columns:minmax(0,1fr) 285px}.lesson-copy strong{font-size:12px}.lesson-copy small{font-size:10px}.section-card-title h2{font-size:15px}.daily-card p{font-size:12px}.daily-card{padding:24px}.daily-card h3{font-size:19px}.tip-strip p{font-size:12px}.tip-strip strong{font-size:13px}}
@media(max-width:1190px){.sidebar{width:204px;padding-left:12px;padding-right:12px}.app-shell{margin-left:204px}main{padding:30px 26px 0}.topbar{padding:0 26px}.workspace-grid{grid-template-columns:minmax(0,1fr) 222px;gap:17px}.level-card{padding:14px 11px;gap:8px}.level-description{font-size:9px}.level-name{font-size:12px}.level-icon{width:29px;height:34px}.trainer-heading{padding:20px}.live-metrics{padding:0 20px 18px;gap:14px}.typing-zone{margin:0 20px}.typing-status{padding-left:20px;padding-right:20px}.keyboard-panel{padding-left:16px;padding-right:16px}.keyboard-shortcut{display:none}.keyboard-label{font-size:9px}.keyboard-label .text-button{font-size:9px}.key{height:32px;font-size:10px}.key-row{gap:4px}.finger-legend{gap:9px;font-size:7px}.lesson-list{padding:18px 11px 10px}.lesson-copy strong{font-size:9px}.lesson-copy small{font-size:8px}.section-card-title h2{font-size:11px}.lesson-item{padding:11px 7px;gap:8px}.daily-card{padding:19px 17px}.tip-strip{padding:15px;gap:12px}.tip-strip p{font-size:9px}.tip-strip .text-button{font-size:9px}.progress-metrics{gap:12px}.stat-card{padding:18px}.stat-label{font-size:10px}}
@media(max-width:1020px){.sidebar{width:80px;padding:30px 12px 20px;align-items:center}.brand{padding:0;margin-bottom:40px}.brand>span:last-child{display:none}.sidebar-label,.sidebar-bottom,.nav-count{display:none}.nav-item{font-size:0;width:48px;height:48px;justify-content:center;padding:12px}.nav-list{gap:12px}.sidebar>.nav-item{margin-top:25px}.nav-item svg{width:23px;height:23px}.app-shell{margin-left:80px}.topbar{height:69px}.level-card{gap:10px}.level-description{font-size:10px}.level-name{font-size:13px}main{padding-top:28px}.page-heading{margin-bottom:26px}.level-cards{gap:10px}.eyebrow{font-size:9px}.workspace-grid{grid-template-columns:minmax(0,1fr) 225px}.typing-text{font-size:25px}.progress-grid{grid-template-columns:1.4fr 1fr}.history-table{font-size:11px}.info-card{padding:18px}.speed-notes{gap:12px}}
@media(max-width:850px){.workspace-grid{grid-template-columns:minmax(0,1fr)}.lesson-column{display:grid;grid-template-columns:1.5fr 1fr;gap:17px}.daily-card{margin:0;display:flex;flex-direction:column;justify-content:center}.lesson-list{padding:18px}.section-card-title{margin-bottom:10px}.section-card-title h2{font-size:14px}.lesson-copy strong{font-size:11px}.lesson-copy small{font-size:9px}#lesson-items{display:grid;grid-template-columns:1fr 1fr;gap:2px}.lesson-item{min-height:54px}.daily-card h3{font-size:18px}.daily-card p{font-size:11px}.level-card{padding:13px 12px}.level-icon{width:25px}.level-description{font-size:8px}.level-name{font-size:11px}.level-check{top:5px;right:5px}.typing-zone{min-height:155px;max-height:155px}.key{height:38px;font-size:12px}.keyboard{max-width:620px}.keyboard-label{font-size:11px}.keyboard-label .text-button{font-size:10px}.finger-legend{font-size:9px;gap:15px}.typing-status{font-size:11px}.live-metrics>div>span{font-size:26px}.live-metrics small{font-size:11px}.tip-strip p{font-size:10px}.progress-metrics{grid-template-columns:repeat(2,1fr)}.progress-grid{grid-template-columns:1fr}.speed-notes{grid-template-columns:1fr}.speed-notes .info-card{display:grid;grid-template-columns:30px 1fr;column-gap:10px}.info-card>span{grid-row:span 2;margin:0}.info-card h3{margin:0}.info-card p{margin-top:4px}.footer-caption{display:none}}
@media(max-width:600px){.sidebar{inset:auto 0 0;width:100%;height:68px;border-right:0;border-top:1px solid var(--line);padding:5px 8px 7px;display:flex;flex-direction:row;justify-content:center;gap:5px;background:var(--surface)}.brand{display:none}.nav-list{display:contents}.nav-item{width:25%;height:55px;font-size:9px;display:flex;flex-direction:column;gap:3px;padding:5px 2px;border-radius:8px;font-weight:500}.nav-item svg{width:20px;height:20px}.sidebar>.nav-item{margin:0;font-size:0;position:relative}.sidebar>.nav-item:after{content:"Как печатать";font-size:9px}.app-shell{margin-left:0;padding-bottom:68px}.topbar{height:60px;padding:0 20px}.breadcrumb{font-size:10px;gap:9px}.breadcrumb>span:first-child{display:none}.topbar-actions{gap:10px}.streak-pill{font-size:9px;margin:0;gap:4px}.streak-pill svg{width:15px;height:15px}.avatar{width:29px;height:29px;font-size:10px}.icon-button{width:30px;height:30px}.topbar .icon-button svg{width:17px;height:17px}main{padding:25px 17px 0}.page-heading{margin-bottom:24px;gap:12px;align-items:center}.eyebrow{font-size:7px;letter-spacing:1px;margin-bottom:8px}h1{font-size:29px;letter-spacing:-1px}.page-heading p{font-size:11px;max-width:210px;line-height:1.7;margin-top:5px}.language-control{height:35px;padding-left:9px;gap:5px}.language-control select{min-width:84px;font-size:10px;padding:7px 22px 7px 0}.language-control>span:first-child svg{width:13px;height:13px}.select-chevron{right:7px}.section-label{font-size:9px;letter-spacing:.8px;margin-bottom:10px}.section-label>span{display:none}.level-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:20px}.level-card{padding:13px;gap:10px;min-height:66px}.level-icon{width:30px;height:33px}.level-name{font-size:12px}.level-description{font-size:9px}.level-check{right:8px;top:8px}.trainer-heading{padding:20px 17px 18px}.trainer-heading h2{font-size:15px}.lesson-eyebrow{font-size:8px}.live-metrics{padding:0 17px 18px;gap:12px}.live-metrics>div>span{font-size:23px}.live-metrics em{font-size:13px}.live-metrics small{font-size:9px}.typing-zone{margin:0 17px;min-height:154px;max-height:154px}.typing-text{font-size:23px;line-height:2;letter-spacing:.6px}.start-button{font-size:12px;padding:12px 19px}.typing-overlay>span{font-size:9px}.typing-status{padding:12px 17px;font-size:9px;min-height:45px}.keyboard-panel{padding:15px 10px}.keyboard-label{font-size:8px;gap:4px;margin-bottom:15px;align-items:flex-start}.keyboard-label>span{gap:4px}.keyboard-label>span svg{width:11px;height:11px}.keyboard-label .text-button{font-size:8px;padding:0}.key-row{gap:3px;margin-bottom:4px}.key{height:28px;font-size:9px;border-radius:4px;border-bottom-width:2px}.key.modifier,.key.extra-wide{font-size:6px}.key.home:after{bottom:3px;width:5px;height:1px}.finger-legend{font-size:6px;gap:7px;margin-top:12px}.finger-legend i{width:4px;height:4px}.finger-legend span{gap:3px}.practice-bottom{margin:8px 0 2px}.practice-bottom>span{font-size:8px}.practice-bottom .text-button{font-size:9px}.lesson-column{grid-template-columns:1fr;gap:15px}.lesson-list{padding:19px 14px 12px}.lesson-item{padding:9px 6px;gap:9px}.lesson-copy strong{font-size:10px}.lesson-copy small{font-size:8px}.section-card-title h2{font-size:13px}.daily-card{padding:20px}.daily-card p br{display:none}.daily-card h3{font-size:17px;margin-top:13px}.daily-card p{font-size:11px}.daily-progress{margin-top:17px}.daily-card:after{right:20px;top:20px}.tip-strip{gap:10px;align-items:flex-start;padding:15px;margin-top:16px}.tip-strip strong{font-size:10px}.tip-strip p{font-size:9px;line-height:1.8}.tip-strip .text-button{display:none}.tip-icon{width:28px;height:28px;border-radius:8px}.tip-icon svg{width:16px;height:16px}.footer{margin-top:24px;padding:17px 0 23px;font-size:7px;gap:7px}.footer>span:first-child{font-size:13px}.mode-card{padding:22px 18px}.mode-heading{align-items:flex-start;gap:11px}.mode-heading h2{font-size:17px}.mode-heading p{font-size:12px}.mode-heading .mode-icon{width:36px;height:36px;flex-shrink:0}.duration-button{padding:9px 17px;font-size:12px}.speed-options{gap:7px}.speed-options .primary-button{width:100%;margin-top:12px}.progress-metrics{gap:11px}.stat-card{padding:17px 14px}.stat-label{font-size:10px;gap:5px}.stat-label svg{width:13px;height:13px}.stat-value{font-size:27px;margin-top:12px}.stat-value small{font-size:10px}.stat-caption{font-size:9px}.chart-card,.weak-card,.history-card{padding:20px 16px}.chart-header h2{font-size:14px}.bar-chart{gap:12px}.history-table{font-size:10px}.history-table th,.history-table td{padding:10px 5px}.history-table th:nth-child(2),.history-table td:nth-child(2){display:none}.progress-actions{align-items:flex-start}.progress-actions p{font-size:9px}.progress-actions>div{justify-content:space-between;width:100%;gap:10px}.dialog-body{padding:25px 22px}.dialog-top h2{font-size:20px}.dialog-intro{font-size:13px}.guide-step p{font-size:12px}.result-body{padding:35px 20px 25px}.result-body h2{font-size:23px}.result-metrics strong{font-size:24px}.result-message{font-size:12px}.result-body .dialog-actions{flex-direction:column-reverse}.dialog-actions button{min-height:42px}.toast{bottom:83px;font-size:11px}}

/* Readable text sizes across desktop and touch layouts. */
.table-scroll{overflow-x:auto}.page-heading>div:first-child{min-width:0}.language-control{flex-shrink:0}.level-card{min-width:0}.level-card>span{min-width:0}
@media(max-width:359px){.level-card .level-icon{display:none}.level-card{padding:12px}.level-name{overflow-wrap:anywhere}.topbar .breadcrumb{display:none}.topbar-actions{margin-left:auto}.finger-legend{flex-wrap:wrap}.lesson-item{gap:5px}.lesson-number{width:22px;height:22px}.lesson-copy strong{font-size:11px!important}.lesson-copy small{font-size:10px!important}}

.sidebar-label{font-size:11px;letter-spacing:1.1px}.sidebar-bottom p{font-size:13px}.local-note{font-size:11px}.breadcrumb{font-size:13px}.streak-pill{font-size:13px}.eyebrow{font-size:11px}.page-heading p{font-size:15px}.language-control select{font-size:14px;min-width:116px}.section-label{font-size:12px}.section-label>span{font-size:12px}.level-card{min-height:84px}.level-name{font-size:14px}.level-description{font-size:12px;white-space:normal;line-height:1.45}.lesson-eyebrow{font-size:11px}.trainer-heading h2{font-size:19px}.live-metrics>div>span{font-size:29px}.live-metrics small{font-size:12px}.typing-text{font-size:28px}.typing-overlay>span{font-size:12px}.start-button{font-size:14px}.typing-status{font-size:12px;min-height:57px}.keyboard-shortcut,.keyboard-shortcut kbd{font-size:10px}.keyboard-label{font-size:12px}.keyboard-label .text-button{font-size:12px}.key{font-size:13px;height:38px}.key.modifier,.key.extra-wide{font-size:10px}.finger-legend{font-size:10px;gap:12px}.practice-bottom>span,.practice-bottom .text-button{font-size:12px}.section-card-title h2{font-size:15px}.section-card-title>span{font-size:12px}.lesson-item{min-height:67px}.lesson-copy strong{font-size:13px}.lesson-copy small{font-size:11px}.lesson-number{font-size:12px}.daily-card-top{font-size:11px;letter-spacing:.6px}.daily-card h3{font-size:19px}.daily-card p{font-size:12px}.daily-progress{font-size:12px}.tip-strip strong{font-size:14px}.tip-strip p{font-size:12px}.tip-strip .text-button{font-size:12px}.footer{font-size:11px}.footer-caption{font-size:11px}.text-button{font-size:13px}.stat-label{font-size:13px}.stat-caption{font-size:12px}.chart-header>span{font-size:12px}.chart-note{font-size:12px}.bar-column>span,.bar-column small{font-size:12px}.history-table{font-size:13px}.history-table th{font-size:12px}.progress-actions p{font-size:12px}.weak-card p{font-size:14px}.weak-card .primary-button{font-size:13px}.weak-key small{font-size:11px}.result-metrics span{font-size:12px}
@media(min-width:1200px){.sidebar{width:226px}.app-shell{margin-left:226px}.topbar{height:74px}main{padding-top:30px}.page-heading{margin-bottom:26px}.brand{font-size:31px;margin-bottom:47px}.workspace-grid{grid-template-columns:minmax(0,1fr) 272px;gap:22px}.keyboard-panel{padding-left:20px;padding-right:20px}.trainer-heading{padding-top:22px;padding-bottom:18px}}
@media(min-width:1021px) and (max-width:1190px){.level-card{align-items:flex-start}.level-icon{width:25px;height:31px}.level-name{font-size:12px}.level-description{font-size:11px}.lesson-copy strong{font-size:12px}.lesson-copy small{font-size:11px}.section-card-title h2{font-size:13px}.keyboard-label{font-size:10px}.keyboard-label .text-button{font-size:10px}.key{height:34px;font-size:11px}.finger-legend{font-size:9px}}
@media(min-width:601px) and (max-width:1020px){.sidebar .nav-item{font-size:0}.level-card{gap:8px;padding:14px 10px}.level-name{font-size:12px}.level-description{font-size:11px}.level-icon{width:25px}.keyboard-label{font-size:11px}.keyboard-label .text-button{font-size:11px}.lesson-copy strong{font-size:12px}.lesson-copy small{font-size:11px}.section-card-title h2{font-size:14px}}
@media(max-width:850px){.keyboard-shortcut{display:none}.lesson-item{min-height:66px}.daily-card p br{display:none}.finger-legend{font-size:10px}.keyboard-label{gap:8px}.typing-status{font-size:11px}}
@media(max-width:600px){.topbar{padding:0 17px}.breadcrumb{font-size:11px}.streak-pill{font-size:11px}.nav-item{font-size:11px}.sidebar>.nav-item:after{font-size:11px}.eyebrow{font-size:9px}.page-heading p{font-size:13px;max-width:215px}.language-control{padding-left:8px;gap:5px}.language-control select{font-size:12px;min-width:91px}.level-card{min-height:77px;padding:12px;gap:10px}.level-name{font-size:13px}.level-description{font-size:11px}.level-icon{width:27px}.section-label{font-size:11px}.trainer-heading h2{font-size:17px}.lesson-eyebrow{font-size:10px}.live-metrics>div>span{font-size:25px}.live-metrics small{font-size:11px}.typing-text{font-size:24px}.typing-overlay>span{font-size:11px}.typing-status{font-size:11px;min-height:54px}.keyboard-label{font-size:10px}.keyboard-label .text-button{font-size:10px}.key{height:30px;font-size:11px}.key.modifier,.key.extra-wide{font-size:7px}.finger-legend{font-size:8px;gap:6px}.practice-bottom>span,.practice-bottom .text-button{font-size:10px}.lesson-copy strong{font-size:12px}.lesson-copy small{font-size:11px}.section-card-title h2{font-size:15px}.daily-card h3{font-size:20px}.daily-card p{font-size:13px}.tip-strip strong{font-size:12px}.tip-strip p{font-size:11px}.tip-strip{padding:15px}.footer{font-size:9px}.stat-label{font-size:11px}.stat-caption{font-size:11px}.stat-value small{font-size:11px}.history-table{font-size:11px}.history-table th{font-size:10px}.progress-actions p{font-size:11px}.progress-actions .text-button{font-size:12px}.keyboard-shortcut{display:none}.dialog-intro{font-size:14px}.guide-step p{font-size:13px}}

@media(min-width:360px) and (max-width:600px){.breadcrumb{font-size:0}.breadcrumb-line{display:none}#breadcrumb-current{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
