.typing-lab{--tl-blue:#2464d8;--tl-navy:#142c45;--tl-coral:#f47c60;--tl-line:#dce5f2;max-width:1500px;margin:0 auto;color:var(--tl-navy);min-width:0}.workspace-main:has(.typing-lab){margin-block:0}.typing-lab *{box-sizing:border-box}.tl-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:32px 36px;border:1px solid #d3e2fa;border-radius:24px;background:linear-gradient(120deg,#fff 10%,#eff6ff 70%,#e4eeff);position:relative;overflow:hidden}.tl-eyebrow{display:block;font-size:12px;letter-spacing:.2em;color:var(--tl-blue);font-weight:800;margin-bottom:12px}.tl-hero h1{font-size:clamp(24px,3vw,36px);line-height:1.35;margin:0 0 12px;letter-spacing:-.045em}.tl-hero p{margin:0;color:#506883;font-size:15px}.tl-hero-bot{display:grid;place-items:center;width:110px;height:110px;flex:none;font-size:58px;color:var(--tl-blue);border:1px solid #c4d8f7;border-radius:30px;background:#ffffffb8;box-shadow:0 10px 35px #3168ba12;transform:rotate(-6deg)}.tl-top-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.tl-top-actions p{font-size:13px;color:#5f7188;margin:0}.tl-top-actions>div{display:flex;gap:8px;flex-wrap:wrap}.tl-tabs{display:flex;gap:5px;flex-wrap:wrap;padding:5px;background:#eaf0f9;border:1px solid #dce5f2;border-radius:14px;margin-bottom:22px;width:fit-content;max-width:100%}.tl-tabs button{border:0;background:transparent;border-radius:10px;padding:12px 20px;color:#506781;min-height:44px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}.tl-tabs button[aria-pressed=true]{background:#fff;color:var(--tl-blue);box-shadow:0 2px 9px #1c467a12}.tl-practice-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:22px;align-items:start}.tl-practice-card,.tl-keyboard,.tl-goals,.tl-report-cards article,.tl-weakness,.tl-class-game{background:#fff;border:1px solid var(--tl-line);border-radius:20px;padding:24px;min-width:0}.tl-selectors{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:14px}.tl-selectors label,.tl-settings-grid label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#526780;margin:0}.typing-lab select,.typing-lab input,.typing-lab textarea{max-width:100%;min-width:0;font-family:inherit}.tl-modes{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 10px}.tl-fine{font-size:12px;color:#6a7d93;line-height:1.8;margin:10px 0}.tl-live-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:22px 0}.tl-live-metrics>div{padding:14px 10px;text-align:center;background:#f1f6fe;border-radius:12px}.tl-live-metrics span{font-size:11px;color:#657c98;display:block;margin-bottom:7px}.tl-live-metrics strong{font-size:24px;font-variant-numeric:tabular-nums;color:var(--tl-blue);line-height:1.2}.tl-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:clamp(19px,2vw,25px);line-height:1.85;padding:22px;background:#f7f9fd;border:1px solid #dce5f2;border-radius:14px;min-height:125px;max-height:330px;overflow:auto;letter-spacing:.02em}.tl-prompt span{border-radius:3px}.tl-hit{color:#20745e;background:#e4f6ed}.tl-miss{color:#ad3e30;background:#ffe9e3;text-decoration:underline;text-decoration-color:#cf6a54;text-underline-offset:5px}.tl-next{background:#dceaff;outline:2px solid #88b3ef}.tl-input-label{display:block!important;margin:18px 0 0;font-weight:700;font-size:13px}.tl-input-label textarea{display:block;margin-top:8px;width:100%;font-size:21px;line-height:1.75;padding:17px!important;border:2px solid #b7ceef;border-radius:13px;resize:vertical;min-height:125px;max-height:500px}.tl-input-label textarea:focus{border-color:var(--tl-blue);outline:3px solid #dceaff}.tl-input-label textarea:disabled{background:#f5f7fa;color:#6d7d90}.tl-practice-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.tl-status{font-size:13px;line-height:1.8;color:#235f54;white-space:pre-wrap;overflow-wrap:anywhere}.tl-error{font-size:13px;line-height:1.8;color:#b42318;white-space:pre-wrap;overflow-wrap:anywhere;min-height:0}.tl-error:empty,.tl-status:empty{margin:0}.tl-keyboard{padding:17px 13px}.tl-keyboard summary{font-weight:800;font-size:14px;cursor:pointer;margin:0 4px 17px}.tl-key-row{display:flex;justify-content:center;gap:3px;margin:4px 0}.tl-key-row kbd{display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:0;flex:0 1 24px;height:36px;font-family:inherit;background:#f2f5f9;border:1px solid #d8e1ec;border-bottom-width:3px;border-radius:5px;font-size:9px;line-height:1.15}.tl-key-row kbd b{font-size:11px;font-weight:600}.tl-key-row kbd.tl-key-next{background:#e0edff;color:#1459c4;border-color:#6598df;box-shadow:0 0 0 2px #bad1f733}.tl-key-row kbd.tl-space{flex-basis:165px;height:29px;font-size:10px}.tl-keyboard p{font-size:10px;line-height:1.7;color:#76869a;margin:13px 3px 0}.tl-goals{margin-top:18px;background:linear-gradient(140deg,#fff,#fff7f2);border-color:#f1ddd3;padding:21px}.tl-goals h3{font-size:15px;margin:0 0 12px}.tl-goals p{font-size:13px;line-height:1.8;margin:5px 0;color:#766454}.tl-goals b{color:#b8563e}.tl-report-tools{display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:15px}.tl-report-tools label{display:grid;gap:7px;max-width:320px;min-width:180px;font-size:13px}.tl-report-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tl-report-cards article{padding:22px}.tl-report-cards span{font-size:12px;color:#637c98}.tl-report-cards strong{display:block;font-size:30px;color:var(--tl-blue);margin:10px 0}.tl-report-cards strong small{font-size:15px;font-weight:500}.tl-report-cards p{font-size:12px;color:#5f7691;margin:0;line-height:1.8}.tl-badges{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tl-badges span{font-size:12px;background:#edf4ff;border:1px solid #cfdef6;color:#285fab;border-radius:100px;padding:7px 13px}.tl-weakness{margin:18px 0}.tl-weakness h3{font-size:16px;margin:0 0 14px}.tl-weakness>div{display:flex;flex-wrap:wrap;gap:10px}.tl-weakness span{padding:9px 12px;background:#fff4ee;border-radius:9px;font-size:12px;color:#9a533e}.tl-weakness b{font-size:19px;display:inline-block;margin-right:8px}.tl-weakness p{font-size:13px;color:#6c8097}.tl-table-wrap{overflow:auto;border:1px solid var(--tl-line);border-radius:16px;background:#fff}.tl-table-wrap table{border-collapse:collapse;width:100%;min-width:730px;font-size:12px}.tl-table-wrap caption{text-align:left;padding:16px 20px;font-weight:700}.tl-table-wrap th{background:#f0f5fc;color:#486583;text-align:center;padding:14px 12px;white-space:nowrap}.tl-table-wrap td{border-top:1px solid #e4ebf4;padding:13px 12px;text-align:center;overflow-wrap:anywhere;max-width:220px}.tl-class-game{margin-top:18px;padding:24px}.tl-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.typing-lab [hidden]{display:none!important}.typing-lab button:disabled{cursor:not-allowed;opacity:.5}.typing-lab button:focus-visible{outline:3px solid #8eb9fa;outline-offset:3px}.typing-lab .btn{min-height:40px}
@media(max-width:1100px){.tl-practice-grid{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.tl-practice-card{padding:20px}.tl-selectors{gap:10px}.tl-live-metrics strong{font-size:21px}.tl-keyboard{padding:15px 9px}.tl-key-row kbd{height:34px}.tl-key-row{gap:2px}.tl-hero{padding:26px}.tl-report-cards{gap:10px}.tl-report-cards article{padding:17px}}
@media(max-width:800px){.tl-practice-grid{grid-template-columns:1fr}.tl-practice-side{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}.tl-goals{margin:0}.tl-key-row kbd{flex-basis:30px}.tl-hero-bot{width:80px;height:80px;font-size:44px}.tl-hero p{font-size:13px;line-height:1.8}.tl-report-cards{grid-template-columns:1fr}.tl-report-cards article{padding:18px 22px}.tl-report-cards strong{font-size:26px}.tl-top-actions{align-items:start;flex-direction:column}.tl-tabs{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.tl-tabs button{padding:12px 8px;font-size:13px}.tl-class-game{padding:18px}}
@media(max-width:480px){.tl-hero{padding:24px 20px;border-radius:18px}.tl-hero-bot{display:none}.tl-hero h1{font-size:25px}.tl-selectors{grid-template-columns:1fr 1fr}.tl-selectors label:last-child{grid-column:1/-1}.tl-practice-card{padding:16px}.tl-modes .btn{flex:1 1 120px}.tl-live-metrics{gap:5px}.tl-live-metrics strong{font-size:18px}.tl-live-metrics span{font-size:10px}.tl-prompt{padding:16px;font-size:21px}.tl-practice-side{grid-template-columns:1fr}.tl-key-row kbd{flex-basis:31px;height:40px}.tl-key-row kbd b{font-size:13px}.tl-practice-buttons .btn{flex:1 1 42%}.tl-report-tools{align-items:stretch;flex-direction:column}.tl-report-tools label{max-width:none}.tl-settings-grid{grid-template-columns:1fr}.tl-input-label textarea{font-size:20px}}
.tl-key-row kbd.tl-modifier{flex:1 1 25px;font-size:8px}.tl-key-row:has(kbd:nth-child(14)) kbd{flex-basis:17px}.tl-key-row kbd.tl-space{flex:5 1 100px}.tl-report-tools{flex-wrap:wrap;justify-content:flex-start}.tl-report-tools label{flex:1 1 145px;min-width:110px;max-width:260px}.tl-report-tools .btn{margin-left:auto}.tl-weakness small{display:block;margin-top:5px;font-size:10px;color:#7f685f}.tl-record-detail{text-align:left;min-width:125px}.tl-record-detail summary{cursor:pointer;color:#2464d8}.tl-record-detail[open]{min-width:260px;max-width:500px}.tl-record-detail pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7fb;border-radius:7px;padding:10px;font:inherit;line-height:1.7;max-height:200px;overflow:auto}
@media(prefers-reduced-motion:reduce){.typing-lab *{scroll-behavior:auto!important;transition:none!important}}
.tl-growth-charts{display:grid;gap:18px;margin:20px 0}.tl-growth-chart{padding:22px 24px;border:1px solid var(--tl-line);border-radius:20px;background:#fff;min-width:0}.tl-growth-chart>header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap}.tl-growth-chart h3{font-size:17px;margin:0 0 8px}.tl-growth-chart header p{font-size:12px;color:#60758e;margin:0;line-height:1.7}.tl-growth-chart header p span{display:block;color:#60758e;font-size:11px}.tl-growth-legend{display:flex;flex-wrap:wrap;gap:13px;font-size:11px;padding-top:4px}.tl-growth-legend span{display:flex;align-items:center;gap:7px}.tl-growth-legend span:before{content:'';display:inline-block;width:20px;border-top:3px solid currentColor}.tl-growth-legend .tl-growth-accuracy:before{border-top-style:dashed}.tl-growth-cpm{color:#2464d8;stroke:#2464d8}.tl-growth-accuracy{color:#b34c32;stroke:#c85c3e}.tl-growth-condition{font-size:11px;color:#4d6b8f;background:#f2f6fc;border-radius:8px;padding:9px 12px;overflow-wrap:anywhere;margin:13px 0 3px}.tl-growth-svg{display:block;width:100%;height:auto;overflow:visible;margin-top:6px}.tl-growth-svg text{font-family:inherit;font-size:11px;fill:#526a87}.tl-growth-svg .tl-growth-axis-title{font-size:11px;fill:#526a87;font-weight:600}.tl-growth-grid{stroke:#e5ecf6;stroke-width:1}.tl-growth-line{fill:none;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.tl-growth-line.tl-growth-accuracy{stroke-dasharray:5 5}.tl-growth-point{fill:white;stroke-width:2;vector-effect:non-scaling-stroke}.tl-growth-gap{stroke:#aab7c8;stroke-width:2;stroke-linecap:round;vector-effect:non-scaling-stroke}.tl-growth-svg .tl-growth-empty{font-size:13px;fill:#6d819b}.tl-growth-values{font-size:12px;border-top:1px solid #e8eef7;padding-top:11px;margin-top:12px}.tl-growth-values>summary{cursor:pointer;color:#3b66a1;width:fit-content;padding:5px 0}.tl-growth-value-scroll{max-height:250px;overflow:auto;margin-top:10px}.tl-growth-values table{border-collapse:collapse;width:100%;font-size:11px;min-width:320px}.tl-growth-values caption{text-align:left;font-weight:600;padding:8px 0}.tl-growth-values td,.tl-growth-values th{padding:8px;text-align:center;border-bottom:1px solid #e9eef5;font-weight:400}.tl-growth-values thead th{background:#f3f7fc;font-weight:600}.tl-growth-values tbody th{font-variant-numeric:tabular-nums}
@media(max-width:800px){.tl-growth-svg text,.tl-growth-svg .tl-growth-axis-title{font-size:16px}}
@media(max-width:600px){.tl-growth-chart{padding:17px 12px;border-radius:15px}.tl-growth-chart h3{font-size:16px}.tl-growth-svg{min-height:175px}.tl-growth-svg text,.tl-growth-svg .tl-growth-axis-title{font-size:24px}.tl-growth-svg .tl-growth-empty{font-size:25px}.tl-growth-chart>header{gap:9px}.tl-growth-legend{font-size:10px;gap:11px}.tl-growth-condition{font-size:10px}}
