:root{--bg:#f6f7f3;--paper:#fff;--ink:#243d37;--muted:#8a9690;--line:#e7ebe6;--green:#198b72;--green-dark:#17755f;--pale:#eaf5ef;--error:#cb6b60;--mono:'IBM Plex Mono','Consolas',monospace;--sans:'DM Sans','Microsoft YaHei',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px var(--sans);-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,select{cursor:pointer}button,a,select,input,textarea{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--green)}button{transition:background .16s,transform .16s}button:disabled{cursor:default;opacity:.4}button:hover:not(:disabled){filter:brightness(.96)}[hidden]{display:none!important}.topbar{height:84px;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 4.5%;gap:32px;background:#fafbf8}.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:11px;font-size:27px;font-weight:700;letter-spacing:-1.1px}.brand-icon{display:inline-flex;align-items:center;justify-content:center;background:var(--ink);color:white;border-radius:10px;width:34px;height:34px;font:600 27px var(--mono)}.brand-icon span{color:#8cddbb;font-size:23px}.brand-tag{font:600 9px var(--sans);letter-spacing:1.7px;border-left:1px solid #d8ded8;padding-left:15px;margin-left:5px;color:#8b9791}.topbar nav{display:flex;height:100%;gap:28px;margin-left:auto}.nav{border:0;background:none;color:#7f8c85;position:relative;font-weight:500;padding:0 3px}.nav.active{color:var(--green)}.nav.active:after{content:'';position:absolute;height:3px;bottom:0;left:0;right:0;background:var(--green);border-radius:3px}.nav span{font:10px var(--mono);background:#eaf0e9;padding:2px 5px;border-radius:4px;margin-left:4px}.local-label{display:flex;align-items:center;gap:7px;margin-left:22px;color:var(--muted);font-size:11px}.dot,.live-dot{width:5px;height:5px;background:#6eaf90;border-radius:50%;display:inline-block}.icon-button{border:1px solid var(--line);background:transparent;color:#71847b;width:29px;height:29px;border-radius:7px;font-size:17px;display:inline-flex;align-items:center;justify-content:center}.local-label .icon-button{border-radius:50%;width:21px;height:21px;font-size:12px;margin-left:13px}main{max-width:1470px;padding:36px 4.5% 0;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.eyebrow{font-size:9px;letter-spacing:2.2px;color:#9ba69e;font-weight:600}h1{font-size:29px;letter-spacing:1px;font-weight:600;margin:10px 0 10px;line-height:1.45}.page-heading p{font-size:12px;color:#8a958e;margin:0;letter-spacing:.4px}.button{border:1px solid #dfe5de;border-radius:8px;padding:10px 15px;background:white;color:var(--ink);font-size:12px;font-weight:500;display:inline-flex;gap:8px;align-items:center;justify-content:center}.button.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 4px 9px #198b7210}.button.danger{background:#b95349;border-color:#b95349;color:white}.plus{font-size:20px;line-height:16px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 262px;gap:24px;align-items:start}.practice-column{min-width:0}.card{background:white;border:1px solid #e3e9e1;border-radius:13px;box-shadow:0 3px 5px #243d3702}.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 21px}.label{font-size:12px;font-weight:600;display:flex;align-items:center;gap:9px;white-space:nowrap}.section-number{font:10px var(--mono);color:#a6b1a9;letter-spacing:1px}.reference-actions{display:flex;gap:9px;align-items:center}.reference-actions select{border:0;background:#f6f8f4;border-radius:6px;max-width:245px;color:#65796e;font-size:11px;padding:7px 24px 7px 10px}.reference-actions .icon-button{border:0;font-size:20px}.text-meta{display:flex;align-items:center;gap:10px;padding:0 23px;font-size:10px;color:#9ca69e}.pill{font-size:10px;background:var(--pale);color:#6b9b81;border-radius:4px;padding:4px 8px}.meta-separator{color:#c0c8c0}.reference-legend{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:9px}.reference-legend i{width:5px;height:5px;background:#4b9b7a;border-radius:50%;margin-left:6px}.reference-legend .error-dot{background:#cf8279}.reference{font:17px/1.95 var(--mono);letter-spacing:.04px;margin:18px 23px 16px;min-height:165px;max-height:208px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;color:#687c70;scrollbar-width:thin;scrollbar-color:#d6e0d5 transparent;padding-right:8px}.reference span.correct{color:#238e70;background:#edf7ef}.reference span.wrong{color:#c06358;background:#fceae6;border-radius:2px;text-decoration:underline;text-decoration-color:#dca298}.reference span.current{background:#edf5e8;border-bottom:2px solid #238e70;color:#243d37}.reference-footer{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #edf0ea;margin:0 23px;padding:12px 0;font-size:10px;color:#9da89f}.reference-footer span:first-child{color:#7c9988}.typing-card{margin-top:17px}.typing-card .card-heading{padding-top:17px;padding-bottom:8px}.status-badge{color:#9ca79e;background:#f5f6f2;border-radius:4px;font-size:9px;font-weight:400;padding:3px 7px;margin-left:3px}.status-badge.running{color:var(--green);background:var(--pale)}.typing-actions{display:flex;gap:19px}.text-button{border:0;background:none;color:#84968b;padding:3px 0;font-size:11px}.input-wrap{position:relative;margin:0 23px}#typingInput{display:block;border:0;background:transparent;resize:vertical;width:100%;height:100px;min-height:80px;max-height:250px;padding:10px 0;color:#335447;font:16px/1.85 var(--mono);outline:0}#typingInput::placeholder{font:12px var(--sans);color:#b0b9b0}#typingInput:focus::placeholder{color:#bdc6bd}.typing-card:focus-within{border-color:#91bba7;box-shadow:0 0 0 3px #198b7207}.input-footer{display:flex;justify-content:space-between;padding:7px 23px 15px;color:#a7b0a7;font-size:9px}.tiny-key{border:1px solid #e3e8de;border-radius:3px;padding:0 4px;margin-right:4px}.pause-overlay{position:absolute;inset:0;background:#fffffff3;display:flex;align-items:center;justify-content:center;border-radius:5px}.keyboard-section{margin-top:24px}.keyboard-heading{display:flex;align-items:center;justify-content:space-between;margin:0 1px 13px}.keyboard-model{font:8px var(--mono);color:#a0aca1;font-weight:400;letter-spacing:1px;margin-left:4px}.keyboard-legend{display:flex;gap:14px;color:#94a294;font-size:9px}.keyboard-legend span{display:flex;align-items:center;gap:5px}.keyboard-legend i{width:7px;height:7px;border-radius:2px}.next-legend{border:1px solid #80b6a0;background:#eaf3e9}.pressed-legend{background:#23896f}.keyboard{background:#e9ede5;border:1px solid #dfe5db;border-radius:12px;padding:11px;display:flex;gap:9px;user-select:none;box-shadow:0 5px 0 #dfe5db,0 8px 15px #364a3b04}.key-main{flex:15;min-width:0}.key-nav{flex:3.05;min-width:0}.key-numpad{flex:4.05;min-width:0}.key-row{display:flex;gap:4px;margin-bottom:5px;height:32px}.key-row:last-child{margin-bottom:0}.key{flex:1;min-width:0;border:1px solid #d8e0d2;border-bottom:2px solid #cdd7c7;background:#fcfdf9;border-radius:4px;display:flex;align-items:center;justify-content:center;font:10px var(--mono);color:#60765e;position:relative;transition:background .06s,transform .06s}.key.small{font-size:7px}.key.dual{flex-direction:column;gap:2px;font-size:9px}.key.dual span:first-child{font-size:7px;color:#a1ad97}.key.home:after{content:'';position:absolute;bottom:3px;width:6px;height:1px;background:#b1bda5}.key.next{background:#e4f1e3;border-color:#77aa88;color:#348154}.key.pressed{background:#23896f!important;border-color:#19755f!important;color:white!important;transform:translateY(1px);box-shadow:0 0 0 2px #23896f16}.key.pressed span{color:#d1eee0!important}.key.pressed.error{background:#c07569!important;border-color:#a25e54!important}.function-row{height:23px;margin-bottom:10px}.function-row .key{font-size:7px}.key-gap{flex:.5}.nav-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.key-nav .function-row{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.nav-grid .key{height:32px;font-size:7px}.arrows{margin-top:42px;display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.arrows .key{height:32px}.arrow-up{grid-column:2}.arrow-left{grid-column:1}.pad-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(5,32px);gap:5px 4px}.pad-grid .key{font-size:9px}.pad-tall{grid-row:span 2}.pad-wide{grid-column:span 2}.keyboard-bottom{display:flex;justify-content:space-between;gap:10px;padding:15px 2px 0;font-size:9px;color:#a3aea1}.keyboard-bottom>span:first-child{display:flex;align-items:center;gap:6px}.sidebar{display:flex;flex-direction:column;gap:17px}.stats-card .card-heading{padding:20px 21px 17px}.live-label{color:#9aa79a;font:8px var(--mono);letter-spacing:1px;display:flex;align-items:center;gap:5px}.live-label i{width:4px;height:4px;border-radius:50%;background:#83b49b}.speed{padding:8px 21px 0}.stat-label{font-size:10px;color:#8c9c8e}.speed-value{display:flex;align-items:baseline;gap:9px;margin:4px 0 3px}.speed-value strong{font:500 65px/1.15 var(--mono);letter-spacing:-5px;color:#205a47}.speed-value span{font:10px var(--mono);color:#9dac9b;letter-spacing:1px}.stat-note{font-size:9px;color:#aeb8a9}.sparkline{display:block;width:100%;height:49px;margin-top:12px;border-bottom:1px solid #eef1e9}.accuracy{padding:23px 21px 22px}.accuracy>div:first-child{display:flex;align-items:center;justify-content:space-between}.accuracy strong{font:500 24px var(--mono);color:#397c5b}.accuracy strong span{font-size:11px;margin-left:3px;color:#7c9b80}.accuracy-track,.progress-track{height:5px;background:#edf1e8;border-radius:4px;overflow:hidden;margin-top:13px}.accuracy-track>div{width:100%;height:100%;background:#94b995;transition:width .2s}.stat-grid{margin:0 21px;padding:20px 0;border-top:1px solid #edf0e9;border-bottom:1px solid #edf0e9;display:grid;grid-template-columns:1fr 1fr;gap:22px}.stat-grid>div{display:flex;flex-direction:column;gap:6px}.stat-grid strong{font:500 20px var(--mono);color:#4c6851}.stat-grid #errors{color:#b78b6f}.progress-section{padding:21px}.progress-section>div:first-child{display:flex;justify-content:space-between;align-items:center}.progress-section strong{font:11px var(--mono);color:#668269}.progress-track{height:5px;margin-top:12px}.progress-track>div{width:0;background:#3b8a6c;height:100%;transition:width .15s}.progress-section>span{display:block;font:9px var(--mono);color:#a7b2a1;margin-top:9px}.tip-card{border:1px solid #e3e9db;border-radius:12px;background:#edf2e6;padding:18px 19px;display:grid;grid-template-columns:20px 1fr;gap:9px}.tip-icon{color:#8b9e6f;font-size:22px}.tip-card h3{font-size:12px;font-weight:500;margin:5px 0 9px;color:#617857}.tip-card p{color:#8a9b7f;font-size:10px;line-height:1.95;margin:0}.tip-footer{grid-column:1/-1;border-top:1px solid #dfe7d7;padding-top:12px;margin-top:5px;font:7px var(--mono);letter-spacing:1px;color:#a2b092}.storage-note{font-size:9px;color:#a0ad9a;text-align:center;display:flex;align-items:center;justify-content:center;gap:5px}.page-footer{display:flex;justify-content:space-between;border-top:1px solid #e3e8de;margin-top:35px;padding:20px 0 22px;font-size:9px;color:#a8b1a3}.page-footer>span:first-child{color:#7c9181}.page-footer span span{margin:0 10px;color:#c2cbbc}.page-footer>span:last-child{font:8px var(--mono);letter-spacing:1.4px}.section-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:15px}.section-toolbar p{color:#8b9a8d;font-size:12px}.section-toolbar>div{display:flex;gap:8px}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.library-card{padding:24px;display:flex;flex-direction:column;min-height:260px}.library-card h3{font-size:17px;margin:15px 0 9px}.library-card p{font:12px/1.9 var(--mono);color:#8f9e91;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 22px}.library-card .library-actions{display:flex;align-items:center;gap:15px;margin-top:auto}.library-card .library-actions .button{margin-right:auto}.history-card{overflow:auto}.history-row{display:grid;grid-template-columns:2fr repeat(4,1fr);align-items:center;padding:21px 25px;border-bottom:1px solid var(--line);gap:15px;min-width:650px}.history-row:last-child{border:0}.history-row strong{font:500 18px var(--mono)}.history-row>div{display:flex;flex-direction:column;gap:6px}.history-row span,.history-row small{font-size:10px;color:#92a28f}.history-row h3{font-size:13px;font-weight:500;margin:0}.empty{text-align:center;padding:70px 20px;color:#9aaa99;font-size:13px}dialog{border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 24px 100px #243d3728;padding:30px;width:min(620px,92vw);max-height:88vh;overflow:auto}dialog::backdrop{background:#233e3550;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px}h2{font-size:23px;font-weight:500;margin:10px 0}form label{display:block;font-size:12px;margin:20px 0 9px;color:#678171}form label span{font-size:10px;color:#a1ad9e;margin-left:10px}form input,form textarea{width:100%;border:1px solid #dfe7dc;border-radius:8px;background:#fafcf8;color:#385340;padding:12px;font-size:13px}form input:focus,form textarea:focus{outline:2px solid #a0c5ad}form textarea{height:235px;resize:vertical;font:13px/1.8 var(--mono)}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px}.dialog-footer span{font-size:9px;color:#9ba996}#resultDialog{text-align:center;width:min(530px,92vw);padding:35px}.result-icon{margin:0 auto 23px;width:50px;height:50px;border-radius:50%;background:var(--pale);color:var(--green);font-size:25px;display:grid;place-items:center}#resultTitle{color:#9aaa97;font-size:12px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);background:#f6f8f2;border-radius:9px;padding:24px 10px;margin:25px 0;gap:10px}.result-grid>div{display:flex;flex-direction:column;gap:8px}.result-grid strong{font:500 25px var(--mono);color:#267053}.result-grid span{font-size:10px;color:#92a188}.result-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}#resultDialog .result-actions{justify-content:center}.result-message{font-size:11px;color:#8a9e85;line-height:1.9}.help-content{font-size:13px;line-height:1.9;color:#7e9380}.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,15px);opacity:0;pointer-events:none;padding:13px 22px;background:#254e3f;color:#fff;font-size:12px;border-radius:9px;box-shadow:0 5px 20px #243d3725;transition:.2s;z-index:100;max-width:90vw}.toast.visible{opacity:1;transform:translate(-50%,0)}#confirmMessage{font-size:13px;color:#81947c;line-height:1.8}
@media(min-width:1500px){main{padding-top:42px}.reference{min-height:192px;max-height:245px}.key-row,.nav-grid .key,.arrows .key{height:36px}.function-row{height:25px}.pad-grid{grid-template-rows:repeat(5,36px)}.arrows{margin-top:46px}}
@media(max-width:1150px){.topbar{padding:0 3%;gap:20px}.brand-tag{display:none}main{padding:28px 3% 0}.workspace{grid-template-columns:minmax(0,1fr) 225px;gap:17px}.keyboard{gap:5px;padding:8px}.key-row{gap:3px}.key{font-size:8px}.key.small{font-size:6px}.keyboard-model{font-size:7px}.reference{font-size:15px}.reference-actions select{max-width:185px}.key-nav{flex:2.7}.key-numpad{flex:3.5}.key-nav .key,.function-row .key{font-size:6px}.nav-grid,.arrows,.key-nav .function-row{gap:3px}.pad-grid{gap:5px 3px}.library-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.topbar{height:72px}.local-label{display:none}.topbar nav{gap:18px}.workspace{grid-template-columns:minmax(0,1fr)}.sidebar{display:grid;grid-template-columns:2fr 1fr}.stats-card{grid-row:span 2}.stats-card .speed{position:relative}.speed-value strong{font-size:50px}.sparkline{position:absolute;width:45%;right:20px;bottom:0}.accuracy{padding-top:15px;padding-bottom:15px}.stat-grid{grid-template-columns:repeat(4,1fr);gap:10px;padding:14px 0}.progress-section{padding-top:15px}.tip-card{align-self:start}.storage-note{align-self:end}.reference{max-height:230px}.keyboard{gap:8px}.key{font-size:10px}.key.small{font-size:7px}.key-nav .key{font-size:7px}.page-heading{margin-bottom:25px}.page-heading h1{font-size:25px}.page-heading p{font-size:11px}}
@media(max-width:600px){.topbar{height:auto;min-height:105px;padding:16px 5% 0;flex-wrap:wrap;gap:10px}.brand{font-size:24px}.brand-icon{width:29px;height:29px}.topbar nav{width:100%;margin:0;gap:30px;height:40px}.nav{font-size:12px}main{padding:25px 4% 0}.eyebrow{font-size:7px}.page-heading{align-items:flex-start;gap:10px}.page-heading h1{font-size:21px;letter-spacing:0}.page-heading p{font-size:10px;line-height:1.8;max-width:225px}.page-heading>.button{font-size:10px;padding:9px;gap:3px;margin-top:20px}.plus{font-size:16px}.card-heading{padding:15px}.reference-actions select{max-width:155px;font-size:10px}.reference-actions{gap:0}.reference .reference-legend{display:none}.text-meta{padding:0 15px;gap:6px}.reference-legend{font-size:8px}.reference{margin:15px;font-size:14px;min-height:160px;max-height:230px}.reference-footer{margin:0 15px;font-size:8px}.reference-footer>span:last-child{display:none}.typing-card .card-heading{padding:15px 15px 6px}.typing-actions{gap:12px}.text-button{font-size:10px}.input-wrap{margin:0 15px}#typingInput{font-size:14px}#typingInput::placeholder{font-size:10px}.input-footer{padding:8px 15px 14px;font-size:8px}.keyboard{min-width:540px}.keyboard-section{overflow-x:auto;padding-bottom:6px}.keyboard-heading,.keyboard-bottom{min-width:540px}.keyboard-heading .label{font-size:11px}.sidebar{display:flex}.stats-card{display:grid;grid-template-columns:1fr 1fr}.stats-card .card-heading{grid-column:1/-1}.speed{padding:0 20px 12px}.speed-value strong{font-size:50px}.sparkline{display:none}.accuracy{padding:10px 20px}.stat-grid{grid-column:1/-1;grid-template-columns:repeat(4,1fr);margin:0 20px}.stat-grid strong{font-size:17px}.progress-section{grid-column:1/-1}.tip-card{width:100%}.storage-note{align-self:center}.page-footer{margin-top:25px}.page-footer>span:last-child{display:none}.section-toolbar{align-items:flex-start;flex-direction:column}.section-toolbar>div{flex-wrap:wrap}.section-toolbar .button{font-size:10px}.library-grid{grid-template-columns:1fr}.dialog-footer{align-items:flex-end}.dialog-footer span{font-size:8px;max-width:145px}dialog{padding:23px}#resultDialog{padding:28px 22px}#resultDialog h2{font-size:21px}.result-grid strong{font-size:22px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Compact practice layout */
.header-actions{display:flex;align-items:center;gap:12px;margin-left:20px}.header-actions .icon-button{font-size:13px;border-radius:50%;width:25px;height:25px}main{padding-top:24px;padding-bottom:28px}.reference-card{padding-bottom:3px}.reference{min-height:150px;max-height:180px;font-size:16px;line-height:1.85}.text-meta{font-size:11px}.reference-legend{font-size:10px}.input-wrap{padding-bottom:14px}#typingInput{height:84px}.typing-card .card-heading{padding-bottom:10px}.label{font-size:13px}.keyboard-bottom{font-size:11px}.stat-label{font-size:12px}.progress-section>span{font-size:10px}.keyboard-legend{font-size:11px}.section-toolbar{justify-content:flex-end}.dialog-footer{justify-content:flex-end}.stats-card .card-heading{padding-bottom:18px}.header-actions .button{white-space:nowrap}
@media(max-width:900px){.sidebar{display:flex}.stats-card{display:block}.stats-card .speed{position:static}.sparkline{position:static;width:100%;height:49px}.stat-grid{grid-template-columns:repeat(2,1fr)}.topbar{gap:18px}.header-actions{margin-left:0}.topbar nav{gap:18px}}
@media(max-width:600px){.topbar{position:relative;padding-top:16px}.header-actions{position:absolute;right:5%;top:17px;gap:8px}.header-actions .button{font-size:11px;padding:8px 10px}.header-actions .icon-button{width:23px;height:23px}.topbar nav{width:100%;gap:28px}.reference{font-size:14px;min-height:140px;max-height:200px}.input-wrap{padding-bottom:10px}.stats-card{display:grid;grid-template-columns:1fr 1fr}.stats-card .speed{padding-top:0}.sparkline{display:none}.stat-grid{grid-template-columns:repeat(4,1fr)}.keyboard-legend{font-size:10px}main{padding-top:18px}.label{font-size:12px}}

.keyboard-title{display:flex;align-items:center;gap:16px}.keyboard-os{display:flex;gap:2px;padding:3px;border:1px solid #dde5da;background:#edf1e8;border-radius:7px}.keyboard-os button{border:0;background:transparent;border-radius:4px;color:#80917d;padding:5px 11px;font-size:11px;line-height:1.25}.keyboard-os button[aria-pressed="true"]{background:white;color:#23775d;box-shadow:0 1px 3px #243d3712;font-weight:600}.keyboard-heading{align-items:center}.key-numpad .function-row .key{font-size:6px}@media(max-width:600px){.keyboard-title{gap:12px}.keyboard-os button{padding:5px 9px}}
