.typing-practice{--tp-purple:#7050b7;--tp-ink:#354266;--tp-line:#d8e1f0;min-width:0;color:var(--tp-ink)}
.tp-heading{margin-bottom:20px}.tp-eyebrow{display:block;margin-bottom:7px;color:#75628f;font-size:12px;font-weight:800}.tp-heading h3{font-size:23px;margin:0 0 10px;line-height:1.7;color:#383763}.tp-heading p{font-size:16px;line-height:1.95;margin:0;color:#606e8b}
.tp-file-target{display:flex;align-items:center;gap:10px 13px;flex-wrap:wrap;margin:0 0 22px;padding:14px 17px;border:1px solid #d7dff0;border-radius:10px;background:#f1f5fd;min-width:0}.tp-file-target>span:first-child{font-size:12px;color:#657394}.tp-file-target>code{font-size:14px;font-weight:700;color:#52658d;max-width:100%;overflow-wrap:anywhere}.tp-script-type{padding:2px 7px;background:#e5eaf7;border-radius:5px;font-size:11px;color:#61749b}
.tp-progress{padding:0 0 20px}.tp-progress>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:13px;color:#63708e}.tp-progress strong{font-weight:700}.tp-progress b{font-size:20px;color:#66509a}.tp-progress-track{height:9px;margin-top:10px;border-radius:20px;background:#e4e8f5;overflow:hidden}.tp-progress-track>span{display:block;height:100%;background:linear-gradient(90deg,#9b7bd6,#7058be);border-radius:inherit}
.tp-segments{display:flex;flex-wrap:wrap;gap:7px;padding:0 0 23px;margin:0 0 20px;border-bottom:1px solid #e0e5f1}.tp-segments button{display:flex;align-items:center;gap:6px;min-height:37px;padding:7px 10px;border:1px solid #d5dded;border-radius:7px;background:#fff;color:#687591;font-family:inherit;font-size:12px;font-weight:600;line-height:1.7}.tp-segments button.is-current{background:#eee7fa;border-color:#af98d7;color:#65479b}.tp-segments button.is-done:not(.is-current){background:#edf7f1;border-color:#b9d8c8;color:#44785f}.tp-segment-check{font-size:13px;font-weight:800}.tp-segments button:disabled{opacity:.35}
.tp-part-heading{margin-bottom:20px}.tp-part-heading>strong{font-size:12px;color:#7d679f}.tp-part-heading h4{font-size:20px;margin:5px 0 9px;line-height:1.75}.tp-part-heading p{font-size:15px;line-height:1.9;color:#64728d;margin:0}
.tp-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.tp-sample,.tp-write{min-width:0;border:1px solid var(--tp-line);border-radius:11px;background:#fff;padding:20px}.tp-column-title{display:flex;align-items:center;gap:9px;margin-bottom:10px}.tp-column-title>span{font-size:20px;color:#8264b6;line-height:1}.tp-column-title h5{font-size:16px;line-height:1.8;margin:0;color:#4a5076}.tp-sample>p{font-size:13px;color:#687791;line-height:1.9;margin-bottom:14px}.tp-sample-code{overflow:auto;max-width:100%;background:#222939;border:1px solid #323c52;border-radius:8px;padding:13px 0;margin-bottom:13px;tab-size:4}.tp-source-row{display:grid;grid-template-columns:36px minmax(0,1fr);min-height:33px;line-height:1.9;padding-right:12px;border-left:3px solid transparent}.tp-source-row.is-current{border-left-color:#b7a3e1;background:#3b3654}.tp-line-number{font:12px/2.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-align:right;padding-right:10px;color:#9ea9bf;user-select:none}.tp-source-row>code{display:block;min-width:max-content;white-space:pre;overflow-wrap:normal;font:15px/2.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#f2f3fb}.tp-all-source>summary{font-size:12px;color:#6b5a95;line-height:1.9}.tp-all-source pre,.tp-written-code pre{overflow:auto;max-width:100%;margin:12px 0 0;padding:16px;background:#222939;border-radius:8px;color:#eff2f8;white-space:pre;tab-size:4}.tp-all-source pre code,.tp-written-code pre code{font:13px/1.9 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre;overflow-wrap:normal}
.tp-write>label{display:block;font-size:12px;color:#657493;margin:0 0 8px;line-height:1.9}.tp-code-input{display:block;width:100%;min-width:0;max-width:100%;min-height:151px;margin:0;padding:13px 14px;border:2px solid #b6c6e3;border-radius:8px;resize:vertical;overflow:auto;background:#fff;color:#34416a;white-space:pre;tab-size:4;font:16px/1.9 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;box-sizing:border-box}.tp-code-input:focus{border-color:#8a6ac1;outline:3px solid #f0e9fd;outline-offset:2px}.tp-code-input[aria-invalid=true]{border-color:#c38b74;background:#fffaf6}.tp-input-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-top:12px}.tp-input-tools button{display:inline-flex;align-items:center;gap:6px;padding:7px 9px;min-height:35px;border:1px solid #d4ddee;border-radius:6px;background:#f7f9ff;color:#687792;font-size:11px;line-height:1.8}.tp-input-tools>span{color:#657695;font-size:11px}.tp-input-tools kbd,.tp-keyboard-help kbd{border:1px solid #bfc9dc;border-bottom-width:2px;background:#fff;border-radius:4px;padding:2px 5px;font:11px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#58678b;white-space:nowrap}.tp-input-note{font-size:12px;line-height:1.9;margin:13px 0 0;color:#6c7790}
.tp-keyboard-help{margin:20px 0 0;padding:13px 17px;border:1px solid #e5dfc7;background:#fffbef;border-radius:8px;color:#7e7150}.tp-keyboard-help>summary{font-size:13px;font-weight:700;line-height:2}.tp-keyboard-help dl{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin:15px 0 0}.tp-keyboard-help dl>div{display:flex;align-items:baseline;gap:10px}.tp-keyboard-help dt{flex:0 0 74px}.tp-keyboard-help dd{margin:0;font-size:12px;line-height:1.9}.tp-keyboard-help p{font-size:12px;line-height:1.95;margin:15px 0 0}
.tp-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:24px}.tp-actions>.button{font-size:15px;padding:12px 19px}.tp-retry{min-height:44px;padding:10px 13px;border:1px solid #ccd5e8;border-radius:8px;background:#fff;color:#6d7890;font-size:12px;line-height:1.8}.tp-feedback{font-size:14px;line-height:1.95;color:#66728e;padding:13px 16px;margin:15px 0 0;border:1px solid #dfe5f0;background:#f4f7fc;border-radius:8px}.tp-feedback>span{display:block;margin-top:5px;font-weight:700}.tp-feedback.is-correct{border-color:#abd1bc;background:#edf8f1;color:#367254}.tp-feedback.is-wrong{border-color:#e4c9b5;background:#fff5e9;color:#93663e}
.tp-part-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:21px;margin-top:20px;border-top:1px solid #dce3f0}.tp-part-nav>button{min-height:42px;flex:0 0 auto;border:1px solid #c9cee3;background:#fff;border-radius:8px;padding:10px 13px;color:#70578e;font-size:13px;font-weight:700;line-height:1.7}.tp-part-nav>span{font-size:11px;color:#6b7890;text-align:center;line-height:1.9}.tp-last-part{padding:8px;color:#84719f!important}
.tp-complete{margin-top:25px;padding:23px;border:1px solid #afd0bf;border-radius:11px;background:#eef8f2;color:#397056}.tp-complete>div{display:flex;align-items:center;gap:11px;margin-bottom:10px}.tp-complete-mark{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#67a184;color:white;font-size:17px;font-weight:800}.tp-complete h4{font-size:19px;line-height:1.8;margin:0}.tp-complete>p{font-size:15px;line-height:1.95;margin-bottom:18px}.tp-complete>.button{font-size:15px;padding:11px 18px;background:#4e8c71}.tp-complete>.button:hover{background:#3d795e}.tp-written-code{margin-top:18px}.tp-written-code>summary{font-size:12px;line-height:1.9}
.typing-practice button:hover:not(:disabled){border-color:#a58bcf}.typing-practice button:focus-visible{outline:3px solid #efb737;outline-offset:3px}.large-text .tp-heading p,.large-text .tp-part-heading p,.large-text .tp-complete>p{font-size:19px}.large-text .tp-code-input{font-size:18px}.large-text .tp-source-row>code{font-size:17px}
@media(max-width:1000px){.tp-workspace{grid-template-columns:minmax(0,1fr)}.tp-sample,.tp-write{padding:18px}.tp-sample-code{margin-bottom:11px}.tp-code-input{min-height:145px}.tp-keyboard-help dl{grid-template-columns:1fr 1fr}.tp-part-nav>span{max-width:160px}}
@media(max-width:600px){.tp-heading h3{font-size:21px}.tp-heading p{font-size:15px}.tp-file-target{padding:13px 14px;gap:7px 10px}.tp-file-target>code{font-size:13px}.tp-segments{gap:6px}.tp-segments button{font-size:11px;padding:6px 8px}.tp-part-heading h4{font-size:19px}.tp-sample,.tp-write{padding:15px}.tp-source-row{grid-template-columns:31px minmax(0,1fr)}.tp-source-row>code{font-size:14px}.tp-code-input{font-size:15px}.tp-keyboard-help dl{grid-template-columns:1fr}.tp-keyboard-help dt{flex-basis:78px}.tp-actions{gap:10px}.tp-actions>.button{font-size:14px;min-height:46px;width:100%}.tp-retry{font-size:12px}.tp-part-nav{gap:8px;flex-wrap:wrap}.tp-part-nav>span:not(.tp-last-part){flex-basis:100%;order:-1;max-width:none;text-align:left}.tp-part-nav>button{font-size:12px;padding:9px 11px}.tp-complete{padding:19px}.tp-complete h4{font-size:18px}.tp-complete>p{font-size:14px}.tp-feedback{font-size:13px;padding:12px 14px}.tp-all-source pre code,.tp-written-code pre code{font-size:12px}}
