:root{--ink:#18223a;--muted:#67728a;--purple:#7253d8;--line:#e5e8ef;--green:#21886e}*{box-sizing:border-box}body{margin:0;background:#f7f8fc;color:var(--ink);font:15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}button,a,input,textarea{font:inherit}button,.import-label{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:9px 13px;font-size:13px;font-weight:600;transition:.15s}button:hover:not(:disabled),.import-label:hover{border-color:var(--purple);background:#f5f1ff}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,.import-label:focus-within{outline:3px solid #b4a3ed;outline-offset:3px}header{display:flex;align-items:center;justify-content:space-between;padding:18px 4%;border-bottom:1px solid var(--line);background:white;gap:16px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:var(--ink);font-size:20px;font-weight:750}.brand b{color:var(--purple)}.brand small{display:block;letter-spacing:2px;font-size:9px;margin-top:2px;color:var(--muted)}.brand-icon{background:var(--ink);color:white;border-radius:12px;font-size:25px;padding:3px 10px}.header-actions{display:flex;align-items:center;gap:10px}.offline{font-size:12px;color:var(--green);margin-right:10px}.layout{max-width:1600px;margin:auto;display:grid;grid-template-columns:270px minmax(0,1fr)}aside{background:#fff;border-right:1px solid var(--line);padding:30px 18px}.course-heading{padding:0 10px 23px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.7px;color:var(--purple)}h2{font-size:23px;line-height:1.3;margin:8px 0}p{color:var(--muted);margin:8px 0}.course-heading p{font-size:12px}.progress-track{height:5px;border-radius:5px;background:#eeedf6;margin:20px 0 8px;overflow:hidden}#course-bar{background:var(--purple);height:100%;transition:width .3s}#course-status{color:var(--muted);font-size:11px}#lessons{display:grid;gap:4px}.lesson-link{display:flex;text-align:left;gap:10px;align-items:center;border-color:transparent;border-radius:10px;padding:10px;background:transparent;width:100%}.lesson-link.active{background:#f0ebfc;color:#5b3bb7;border-color:#e5dcfa}.lesson-num{display:grid;place-items:center;min-width:28px;height:28px;border-radius:8px;background:#f2f3f7;font-size:11px}.active .lesson-num{background:var(--purple);color:#fff}.lesson-link.done .lesson-num{background:#e4f5ed;color:var(--green)}.lesson-link small{display:block;font-size:10px;color:var(--muted);font-weight:400}.lesson-link strong{font-size:12px;font-weight:650}.save-card{border-top:1px solid var(--line);margin:24px 8px 0;padding-top:20px;font-size:12px}.save-card p{font-size:11px}.save-card button,.import-label{display:block;width:100%;margin:8px 0;text-align:center;font-size:11px}.import-label input{position:absolute;width:1px;height:1px;opacity:0}.quiet{color:var(--muted);background:transparent;border-color:transparent}main{padding:34px 38px;min-width:0}.intro{display:flex;justify-content:space-between;align-items:center;margin:0 0 28px;gap:15px}h1{font-size:36px;line-height:1.2;letter-spacing:-1.2px;margin:12px 0}h1 span{color:var(--purple)}.intro p{font-size:13px;max-width:530px}.edition{font-size:10px;letter-spacing:2px;border:1px solid #ded6f4;background:#f0ebfb;color:var(--purple);padding:13px 15px;border-radius:12px;white-space:nowrap;text-align:center;font-weight:750}.edition span{display:block;font-size:8px;letter-spacing:1px;margin-top:5px}.lesson-panel,.guide-panel{border:1px solid var(--line);background:white;border-radius:18px;padding:25px;margin-bottom:20px;box-shadow:0 6px 18px #24305003}.lesson-top{display:flex;gap:18px;justify-content:space-between;align-items:center}.lesson-top p{font-size:12px;max-width:600px}#drill-tabs{display:flex;gap:5px}#drill-tabs button{font-size:11px;padding:8px 10px}#drill-tabs .selected{background:var(--ink);color:#fff;border-color:var(--ink)}.stats{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:12px;margin:22px 0}.stats>div{padding:14px 16px;border-right:1px solid var(--line)}.stats>div:last-child{border:0}.stats small{display:block;font-size:9px;letter-spacing:1px;color:var(--muted);font-weight:700}.stats strong{font-size:24px;display:block;margin-top:4px;font-variant-numeric:tabular-nums}.stats em{font-style:normal;font-size:11px;color:var(--muted)}.practice-head{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--muted);margin-bottom:10px;gap:10px}#state{color:var(--purple);font-weight:750}#passage{background:#f8f9fc;border:1px solid var(--line);padding:22px;border-radius:12px;font:21px/1.95 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;min-height:130px;max-height:240px;overflow-y:auto;letter-spacing:.5px}#passage .correct{color:#238269;background:#e6f3ed}#passage .incorrect{background:#ffe1e5;color:#a52743;text-decoration:underline}#passage .cursor{background:var(--purple);color:white;outline:2px solid var(--purple);border-radius:2px}.input-label{display:block;font-size:11px;color:var(--muted);margin:14px 0 7px}textarea{width:100%;resize:vertical;min-height:76px;max-height:180px;border:1px solid #d6cbed;border-radius:10px;padding:12px;color:var(--ink);background:#fff;font:17px/1.5 ui-monospace,Consolas,monospace}textarea:focus{outline:2px solid #b3a1e9;border-color:transparent}textarea:disabled{background:#fafbfe}#feedback{font-size:11px;color:var(--muted);margin:8px 0;min-height:18px}.actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.actions>div{display:flex;gap:7px;flex-wrap:wrap}.primary{background:var(--purple);border-color:var(--purple);color:#fff}.primary:hover:not(:disabled){background:#5e3ebf;color:white}#sound-hint{font-size:10px;color:var(--muted);max-width:170px;text-align:right}#result{background:#edf8f2;border:1px solid #bde4ce;border-radius:10px;margin-top:16px;padding:14px;font-size:13px}#result button{margin:12px 0 0;display:block;background:var(--green);color:white}.guide-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.guide-heading h2{font-size:19px}#next-key{background:#f0ebfc;color:var(--purple);padding:7px 12px;border-radius:8px;font-size:12px;font-weight:700}.keyboard-wrap{overflow-x:auto;margin:20px 0 14px}#keyboard{min-width:570px;max-width:800px;margin:auto;background:#edf0f6;border:1px solid #e1e5ee;padding:12px;border-radius:13px}.key-row{display:flex;gap:5px;margin-bottom:6px}.key-row:last-child{margin:0}.key{flex:1;min-width:0;height:39px;display:flex;align-items:center;justify-content:center;background:#fff;box-shadow:0 3px 0 #d4d9e5;border:1px solid #dce1eb;border-radius:6px;font:12px ui-monospace,Consolas,monospace;color:#5c6580;position:relative}.key .secondary{position:absolute;top:3px;left:5px;font-size:8px;color:#8b94a8}.key.wide{flex:1.7;font-size:10px}.key.space{flex:7}.key.next{background:var(--purple);color:white;border-color:var(--purple);box-shadow:0 3px 0 #4f33aa}.key.next .secondary{color:white}.key.shift{background:#fff0c7;border-color:#d6a539;color:#805e16;box-shadow:0 3px 0 #ddc48c}.key.pressed{transform:translateY(2px);box-shadow:0 1px 0 #d4d9e5}.hands{display:flex;justify-content:center;gap:30px;align-items:center;padding:14px 0}.hand{display:flex;align-items:flex-end;gap:6px;height:68px}.finger{display:flex;align-items:flex-end;justify-content:center;width:23px;border-radius:12px 12px 7px 7px;background:#ebedf4;color:#8590a6;font-size:8px;padding-bottom:6px;border:1px solid #dce2ec}.finger.active{background:#daf2e7;border-color:#6cb89b;color:#216d55;box-shadow:0 0 0 3px #eaf8f1}.hand-description{text-align:center;width:185px}.hand-description strong{display:block;font-size:13px;color:var(--green)}.hand-description span{font-size:10px;display:block;color:var(--muted);margin-top:4px}.legend{border-top:1px solid var(--line);padding-top:12px;display:flex;gap:18px;font-size:10px;color:var(--muted);flex-wrap:wrap;justify-content:center}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px}.violet{background:var(--purple)}.amber{background:#d5ac47}.green{background:#54a286}.bottom-nav{display:flex;align-items:center;justify-content:space-between;gap:10px}.bottom-nav span{font-size:11px;color:var(--muted)}footer{font-size:11px;color:var(--muted);text-align:center;margin:28px 0 5px}footer small{font-size:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:10px;box-shadow:0 5px 25px #0002;padding:14px 20px;font-size:13px;max-width:90vw;z-index:10}@media(min-width:1500px){main{padding:40px 55px}}@media(max-width:1100px){.layout{grid-template-columns:230px minmax(0,1fr)}main{padding:25px 20px}.stats>div{padding:12px 10px}.stats strong{font-size:20px}.edition{display:none}.actions{align-items:flex-start}#sound-hint{display:none}.hands{gap:15px}.finger{width:19px}.lesson-top{align-items:flex-start;flex-direction:column}}@media(max-width:760px){header{padding:12px 16px}.brand{font-size:16px}.brand-icon{font-size:21px}.brand small{font-size:7px}.offline{display:none}.header-actions{gap:5px}.header-actions button{font-size:11px;padding:8px}.layout{display:flex;flex-direction:column}aside{padding:15px 16px;border-right:0;border-bottom:1px solid var(--line)}.course-heading{padding:0}.course-heading h2,.course-heading p{display:none}.progress-track{margin:9px 0 4px}#lessons{display:flex;overflow-x:auto;margin-top:12px;padding:3px 0 7px}.lesson-link{width:170px;flex-shrink:0;padding:8px}.save-card{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:8px 0 0;padding:8px 0 0}.save-card strong{display:none}.save-card p{flex-basis:100%;margin:0}.save-card button,.import-label{width:auto;margin:3px 0;padding:5px 8px}main{padding:24px 14px}h1{font-size:29px}.intro{margin-bottom:20px}.lesson-panel,.guide-panel{padding:17px;border-radius:14px}.stats{grid-template-columns:repeat(3,1fr)}.stats>div:nth-child(3){border-right:0}.stats>div:nth-child(-n+3){border-bottom:1px solid var(--line)}.stats small{font-size:8px}.stats strong{font-size:20px}#passage{font-size:18px;padding:15px}.hands{gap:9px}.finger{width:15px}.hand{gap:3px}.hand-description{width:125px}.hand-description strong{font-size:11px}.guide-heading h2{font-size:16px}.eyebrow{letter-spacing:1px;font-size:9px}#next-key{font-size:10px;padding:6px}.bottom-nav button{font-size:11px;padding:8px}.bottom-nav span{font-size:10px}.practice-head{font-size:8px}.actions button{font-size:12px}.legend{gap:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(min-width:1000px){header{padding:12px 3%}.layout{grid-template-columns:245px minmax(0,1fr)}aside{position:sticky;top:0;height:calc(100vh - 73px);display:flex;flex-direction:column;padding:20px 15px}.course-heading{padding-bottom:14px}.course-heading h2{font-size:19px}.course-heading h2 br{display:none}.course-heading p{margin:5px 0}.progress-track{margin:12px 0 5px}#lessons{overflow-y:auto;min-height:100px;padding-right:4px;display:block;scrollbar-width:thin}.lesson-link{margin-bottom:3px;padding:8px}.save-card{margin-top:12px;padding-top:12px}.save-card strong{font-size:11px}.save-card button,.import-label{padding:6px}.save-card p{font-size:10px}main{padding:20px 28px}.intro{margin-bottom:18px}.intro h1{font-size:25px;margin:6px 0;letter-spacing:-.6px}.intro h1 br{display:none}.intro h1 span:before{content:' '}.intro p{font-size:12px;max-width:none;margin:5px 0}.lesson-panel,.guide-panel{padding:18px;margin-bottom:15px}.lesson-top{flex-direction:row;align-items:center}.lesson-top h2{font-size:21px;margin:5px 0}.lesson-top p{margin:5px 0}.stats{margin:14px 0}.stats>div{padding:9px 13px}.stats strong{font-size:22px;margin-top:2px}.practice-head{margin-bottom:7px}#passage{padding:13px 17px;min-height:80px;max-height:130px;font-size:19px;line-height:1.7}.input-label{margin:9px 0 5px}textarea{min-height:52px;height:54px;padding:9px;font-size:16px}#feedback{margin:5px 0;font-size:10px}.actions{margin-top:9px}.guide-heading h2{font-size:17px;margin:4px 0}.keyboard-wrap{margin:12px 0 8px}#keyboard{padding:9px;max-width:800px}.key{height:30px}.key-row{margin-bottom:5px}.hands{padding:6px 0;gap:25px}.hand{height:53px;transform:scale(.83);transform-origin:center}.hand-description span{margin-top:2px}.legend{padding-top:8px;font-size:9px}.bottom-nav button{padding:7px 11px;font-size:12px}footer{margin:14px 0 0;font-size:10px}footer small{font-size:9px}}

body.focused header,body.focused .intro{display:none}body.focused aside{height:100vh}body.focused main{padding-top:12px}body.focused .lesson-panel,body.focused .guide-panel{padding:14px;margin-bottom:10px}body.focused .lesson-top h2{font-size:19px}body.focused .lesson-top p{margin:3px 0}body.focused .stats{margin:10px 0}body.focused #passage{min-height:65px;max-height:100px;padding:10px 14px}body.focused .keyboard-wrap{margin:8px 0}body.focused .key{height:27px}body.focused .hands{padding:0}body.focused footer{display:none}
/* V4: a visible coaching workstation, with anatomically realistic hands. */
.practice-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start;margin-top:20px}.typing-column{min-width:0}.practice-workspace .guide-panel{margin:0;padding:14px;background:#f7f8fc;border-radius:12px;box-shadow:none;min-width:0}.guide-heading h2{font-size:16px}.guide-heading .eyebrow{font-size:8px;letter-spacing:.8px}.hands-coach{margin:10px 0}.hand-description{width:auto;text-align:center;margin:5px 0 7px;min-height:36px}.hand-description strong{font-size:13px}.hand-description span{font-size:10px}.real-hands{position:relative;width:100%;isolation:isolate;border-radius:12px;overflow:hidden;background:#f7f8fc}.real-hands img{width:100%;height:auto;display:block;user-select:none}.real-hands svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.real-hands .finger{display:inline;opacity:0;background:none;border:none;width:auto;height:auto;padding:0;box-shadow:none;transform:none}.real-hands .finger.active{opacity:1;background:none;box-shadow:none}.real-hands .finger ellipse{fill:#10b98140;stroke:#087e5c;stroke-width:10;filter:drop-shadow(0 0 10px #2dd4bf)}.real-hands .finger circle{fill:#087e5c;stroke:white;stroke-width:4}.real-hands .finger text{fill:#fff;font:bold 30px system-ui}.real-hands .shift-finger ellipse{fill:#f59e0b40;stroke:#bc7800;filter:drop-shadow(0 0 10px #fcd34d)}.real-hands .shift-finger circle{fill:#a56500}.hand-labels{display:flex;justify-content:space-around;font-size:8px;letter-spacing:2px;color:var(--muted);font-weight:700;margin:5px 0}.practice-workspace .keyboard-wrap{margin:13px 0 9px;overflow:visible}.practice-workspace #keyboard{min-width:0;width:100%;padding:7px}.practice-workspace .key-row{gap:3px;margin-bottom:4px}.practice-workspace .key{height:26px;border-radius:4px;font-size:9px}.practice-workspace .key.wide{font-size:6px}.practice-workspace .key .secondary{font-size:6px;top:1px;left:2px}.practice-workspace .legend{font-size:8px;gap:7px}.practice-workspace .legend>span:last-child{flex-basis:100%;text-align:center}.typing-column #passage{min-height:160px;max-height:220px;font-size:21px;line-height:1.9}.typing-column textarea{height:100px;min-height:80px}.typing-column .actions{display:block}.typing-column .actions>div{gap:7px}.typing-column #sound-hint{display:block;text-align:left;max-width:none;margin-top:9px;font-size:10px}.volume-control{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin:13px 0 0}.volume-control input{width:110px;accent-color:var(--purple)}.lesson-top p{max-width:none}.practice-workspace .guide-heading{align-items:flex-start}#next-key{white-space:nowrap;font-size:11px}.course-heading h2{line-height:1.4}.course-heading h2 br:after{content:' '}
body.focused .practice-workspace{margin-top:12px}body.focused .practice-workspace .guide-panel{padding:11px}body.focused .typing-column #passage{min-height:140px;max-height:200px}body.focused .typing-column textarea{min-height:80px;height:85px}body.focused .practice-workspace .key{height:25px}
@media(min-width:1000px){.intro{margin-bottom:13px}main{padding:17px 24px}.lesson-panel{padding:18px}.practice-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:18px}.stats{margin:12px 0}.guide-heading h2{font-size:16px}.practice-workspace .guide-panel{padding:12px}.real-hands{max-height:240px}.real-hands img{max-height:240px;object-fit:contain}.real-hands{aspect-ratio:1672/941}.real-hands img{width:100%;height:100%}}
@media(min-width:1000px) and (max-width:1200px){.layout{grid-template-columns:210px minmax(0,1fr)}main{padding:16px}.practice-workspace{gap:12px}.typing-column #passage{font-size:18px}.guide-heading .eyebrow{display:none}.practice-workspace .guide-panel{padding:10px}.practice-workspace .key.wide{font-size:5px}}
@media(max-width:999px){.practice-workspace{grid-template-columns:1fr}.practice-workspace .guide-panel{grid-row:1}.real-hands{max-width:490px;margin:auto}.practice-workspace #keyboard{max-width:650px}.practice-workspace .key{height:32px;font-size:11px}.practice-workspace .key.wide{font-size:8px}.typing-column #passage{min-height:100px}.intro h1{font-size:25px}.practice-workspace .guide-heading .eyebrow{display:none}.practice-workspace .guide-heading h2{font-size:15px}.practice-workspace .hand-description{margin:0 0 5px}.practice-workspace .legend{font-size:8px}.real-hands .finger text{font-size:30px}body.focused aside{display:none}body.focused main{padding-top:12px}}
@media(min-width:1000px){.intro{margin-bottom:12px}.intro .eyebrow,.intro p{display:none}.intro h1{font-size:23px;margin:3px 0}.edition{padding:7px 11px;font-size:8px}.edition span{font-size:7px;margin-top:2px}.practice-workspace{margin-top:14px}.practice-workspace .guide-heading .eyebrow{display:none}.hands-coach{margin:5px 0}.practice-workspace .hand-description{min-height:30px;margin:2px 0 5px}.real-hands,.real-hands img{max-height:180px}.practice-workspace .key{height:23px}.practice-workspace .keyboard-wrap{margin:8px 0}.practice-workspace .legend{padding-top:6px}.typing-column #passage{min-height:140px;max-height:200px}}
/* V5: desktop typing workstation inspired by classic typing software. */
body{background:#e9edf8}header{background:#f7f8ff;border-color:#c7cde2;padding:10px 24px}.brand{font-size:18px}.brand-icon{background:#515f9e}.brand small{letter-spacing:1.4px}.layout{max-width:1600px;grid-template-columns:205px minmax(0,1fr)}.layout>aside{background:#f5f6fc;border-color:#cbd1e5;padding:17px 12px;height:calc(100vh - 67px)}.course-heading h2{font-size:16px}.course-heading p{font-size:11px}.course-heading .eyebrow{font-size:9px}.lesson-link{padding:7px}.lesson-link strong{font-size:11px}.lesson-link small{font-size:9px}.lesson-num{min-width:25px;height:25px}.save-card{margin:10px 3px 0}.save-card strong{display:none}.save-card p{font-size:9px}.save-card button,.import-label{padding:5px;margin:5px 0}.intro{display:none}main{padding:18px 20px}.lesson-panel{background:linear-gradient(125deg,#f4ffe0,#eff9dc);border:2px solid #8794c7;border-radius:18px;box-shadow:0 4px 0 #c3cbe5,0 10px 30px #35427110;display:grid;grid-template-columns:minmax(0,1fr) 175px;column-gap:18px;padding:18px;margin:0 0 15px}.lesson-top{grid-column:1/-1;align-items:center;border-bottom:1px solid #ccdcb5;padding-bottom:12px;margin-bottom:12px}.lesson-top h2{font-size:21px}.lesson-top p{font-size:11px}.lesson-top .eyebrow{font-size:9px;letter-spacing:1px}.practice-workspace{grid-column:1;display:flex;flex-direction:column;gap:5px;margin:0;min-width:0}.typing-column{width:100%}.practice-head{font-size:9px}.typing-column #passage{background:#f8fff0;border:1px solid #c9d8b8;border-radius:8px;min-height:68px;max-height:90px;padding:9px 14px;font-size:21px;line-height:1.6;box-shadow:inset 0 1px 4px #93a67712}#passage .cursor{background:#6d58bb;outline-color:#6d58bb}.input-label{margin:7px 0 4px;font-size:10px}.typing-column textarea{height:37px;min-height:37px;max-height:60px;padding:6px 10px;font-size:15px;background:#fbfff7;border-color:#c4d3b3;border-radius:6px;resize:none}.typing-column #feedback{font-size:10px;margin:3px 0;min-height:15px}.practice-workspace .guide-panel{padding:5px 0 0;margin:0;border:none;border-radius:0;background:transparent;box-shadow:none;width:100%}.practice-workspace .guide-heading{margin:0 0 5px;align-items:center}.practice-workspace .guide-heading h2{font-size:11px;font-weight:550;margin:0;color:#536953}.practice-workspace .guide-heading .eyebrow{display:none}#next-key{padding:3px 8px;font-size:10px;border:1px solid #d3c8ed}.practice-workspace .keyboard-wrap{margin:0 0 7px}.practice-workspace #keyboard{max-width:850px;min-width:0;padding:6px;background:#d5dfc8;border:1px solid #a8b69b;border-radius:4px;box-shadow:0 2px 0 #c4ceb9}.practice-workspace .key-row{gap:3px;margin-bottom:4px}.practice-workspace .key{height:29px;font-size:12px;font-weight:600;border-radius:2px;border:1px solid #b7bfd2;box-shadow:inset 0 -4px 0 #a6b3d52e,0 2px 0 #9aa7c6;color:#303e5d;background:#eef2ff}.practice-workspace .key.wide{font-size:9px}.practice-workspace .key .secondary{font-size:7px;top:1px;left:3px}.key[data-finger="left-little"],.key[data-finger="right-little"]{background:#e4edf9}.key[data-finger="left-ring"],.key[data-finger="right-ring"]{background:#f5e2e7}.key[data-finger="left-middle"],.key[data-finger="right-middle"]{background:#e6eed2}.key[data-finger="left-index"],.key[data-finger="right-index"]{background:#ede3f5}.key[data-finger="right-thumb"]{background:#f6edcf}.practice-workspace .key.next{background:#7865c5!important;color:#fff;border-color:#59459e;box-shadow:inset 0 -4px 0 #4d368537,0 2px 0 #51418e}.practice-workspace .key.shift{background:#f7d77d!important;color:#74500a;border-color:#b89234}.hands-coach{margin:0;padding:0}.practice-workspace .hand-description{margin:2px 0 3px;min-height:28px}.hand-description strong{font-size:11px}.hand-description span{font-size:9px}.real-hands{max-width:500px;height:155px;max-height:155px;aspect-ratio:1672/941;margin:auto;background:#f6f8fc;border:1px solid #d9e2cc;border-radius:8px}.real-hands img{height:100%;max-height:155px;object-fit:contain}.hand-labels{margin:3px 0 0;font-size:7px}.practice-workspace .legend{border-color:#cddcba;padding-top:5px;font-size:8px;margin-top:3px;gap:7px}.practice-workspace .legend>span:last-child{display:none}.progress-sidebar{grid-column:2;grid-row:2;display:block;position:static;height:auto;padding:12px;background:#d8edb1;border:1px solid #c1d697;border-radius:9px;min-width:0}.progress-sidebar h3{font-size:13px;color:#435739;margin:0 0 9px}.bar-chart{display:flex;align-items:flex-end;gap:3px;height:115px;padding-bottom:6px;border-bottom:1px solid #b2c78e}.bar-chart span{display:block;flex:1;background:#eef8dc;border:1px solid #a6bb83;border-radius:1px;min-width:0}.bar-chart span.filled{background:linear-gradient(#c3acfb,#8170c1);border-color:#7563a7}#chart-label{font-size:9px;color:#596d40;display:block;margin-top:5px}.progress-sidebar .stats{display:grid;grid-template-columns:1fr;margin:12px 0;border:0;border-radius:0;background:transparent}.progress-sidebar .stats>div{border:0;border-bottom:1px solid #b9cc97;padding:9px 0}.progress-sidebar .stats>div:last-child{border-bottom:0}.progress-sidebar .stats small{font-size:8px;color:#5b6c45}.progress-sidebar .stats strong{font-size:24px;margin:2px 0 0}.progress-sidebar .actions{display:block;margin:10px 0 0}.progress-sidebar .actions>div{display:grid;gap:6px}.progress-sidebar button{font-size:11px;padding:7px 4px;border-radius:5px}.progress-sidebar .primary{background:#6f5abc;border-color:#5b479e}.volume-control{display:block;margin:12px 0 0;font-size:9px}.volume-control input{display:block;margin:6px 0 0;width:100%}#sound-hint{display:block;text-align:left;max-width:none;font-size:8px;margin-top:7px}.coach-note{font-size:9px;line-height:1.6;color:#65734e;margin:12px 0 0}.bottom-nav{margin-top:10px}.bottom-nav button{font-size:11px;padding:7px 10px}footer{font-size:9px;margin-top:12px}.offline{font-size:11px}body.focused .lesson-panel{padding:13px}body.focused .practice-workspace{margin:0}body.focused .practice-workspace .guide-panel{padding:5px 0 0}body.focused .typing-column #passage{min-height:68px;max-height:90px}body.focused .typing-column textarea{height:37px;min-height:37px}body.focused .practice-workspace .key{height:29px}body.focused .layout>aside{height:100vh}
@media(min-width:1000px) and (max-height:800px){main{padding:12px 16px}.lesson-panel{padding:13px;column-gap:14px}.lesson-top{padding-bottom:8px;margin-bottom:9px}.lesson-top h2{font-size:19px;margin:3px 0}.lesson-top p{margin:3px 0}.practice-workspace .key{height:25px}.real-hands,.real-hands img{height:135px;max-height:135px}.hand-description span{display:none}.practice-workspace .hand-description{min-height:17px}.progress-sidebar .stats>div{padding:6px 0}.progress-sidebar .stats strong{font-size:22px}.bar-chart{height:101px}.progress-sidebar .stats{margin:8px 0}.coach-note{display:none}footer{display:none}}
@media(max-width:1100px) and (min-width:1000px){.layout{grid-template-columns:180px minmax(0,1fr)}.lesson-panel{grid-template-columns:minmax(0,1fr) 150px;column-gap:12px}.practice-workspace .key.wide{font-size:7px}.practice-workspace .key{font-size:10px}.progress-sidebar{padding:9px}}
@media(max-width:999px){.layout{display:flex;flex-direction:column}.layout>aside{position:static;height:auto;padding:12px}.course-heading h2,.course-heading p{display:none}#lessons{display:flex;overflow-x:auto;margin-top:8px}.lesson-link{width:170px;flex-shrink:0}.save-card{display:flex;flex-wrap:wrap;gap:6px}.save-card p{flex-basis:100%}.save-card button,.import-label{width:auto}.lesson-panel{grid-template-columns:1fr;padding:12px;gap:10px}.lesson-top{grid-column:1;flex-direction:column;align-items:flex-start}.practice-workspace{grid-column:1;grid-row:auto;display:flex}.practice-workspace .guide-panel{grid-row:auto}.progress-sidebar{grid-column:1;grid-row:auto;padding:12px}.progress-sidebar h3{margin:0}.bar-chart,#chart-label,.coach-note{display:none}.progress-sidebar .stats{grid-template-columns:repeat(5,1fr);gap:7px;margin:8px 0}.progress-sidebar .stats>div{border:0;padding:5px 0}.progress-sidebar .stats strong{font-size:17px}.progress-sidebar .stats small{font-size:7px}.progress-sidebar .actions>div{grid-template-columns:repeat(4,1fr)}.volume-control{display:flex;gap:8px;align-items:center}.volume-control input{width:100px;margin:0}.practice-workspace .key{height:25px;font-size:9px}.practice-workspace .key.wide{font-size:6px}.practice-workspace .key .secondary{font-size:6px}.real-hands,.real-hands img{height:155px;max-height:155px}.practice-workspace .guide-heading h2{font-size:10px}.typing-column #passage{font-size:18px;min-height:65px}.typing-column textarea{font-size:14px}main{padding:12px}.header-actions button{font-size:10px;padding:7px}.brand{font-size:15px}.brand small{font-size:7px}.offline{display:none}header{padding:9px 12px;gap:8px}.header-actions{gap:5px}.hand-description span{display:none}.practice-workspace .hand-description{min-height:18px}.progress-sidebar .actions button{font-size:10px}.progress-sidebar #sound-hint{font-size:8px}body.focused .layout>aside{display:none}}
@media(min-width:1000px){.progress-sidebar .stats{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:9px}.progress-sidebar .stats>div:nth-child(5){grid-column:1/-1}.progress-sidebar .stats strong{font-size:22px}.progress-sidebar .stats em{font-size:9px}.progress-sidebar .actions>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.progress-sidebar .actions button{font-size:10px;padding:7px 3px;min-height:31px}.bar-chart{height:92px}.coach-note{margin-top:10px}}
@media(min-width:1000px) and (max-height:800px){.bar-chart{height:87px}.progress-sidebar .stats strong{font-size:21px}.progress-sidebar .stats>div{padding:7px 0}.progress-sidebar .actions{margin-top:8px}.progress-sidebar .volume-control{margin-top:9px}.progress-sidebar #sound-hint{font-size:8px}.progress-sidebar{padding:10px}}
#coach-next{background:#edf1ff;border-color:#adb9de;color:#40578c}@media(max-width:760px){header #focus{display:none}.header-actions{flex-wrap:wrap;justify-content:flex-end}}
.lesson-controls{display:flex;align-items:center;gap:10px}.lesson-controls #focus{font-size:10px;padding:7px 9px;background:#f9fff0;border-color:#bfcea8}.lesson-top>div:first-child{min-width:0}@media(max-width:760px){.lesson-controls{gap:7px;flex-wrap:wrap}.lesson-controls #focus{display:block}}
/* V6: MindKosh Pixora indigo / violet brand palette. */
:root{--purple:#6d4cdb;--ink:#19233d;--muted:#68738d;--line:#dfe4f1}body{background:#f4f6fc}header{background:white;border-color:#e0e5f3}.brand-icon{background:linear-gradient(135deg,#315de0,#8050d9)}.brand b{color:#7551d1}.layout>aside{background:#fafbff;border-color:#e0e5f2}.course-heading .eyebrow,.lesson-top .eyebrow{color:#7250ca}.lesson-link.active{background:#ede8fc;border-color:#d8ccfa;color:#5c3cb5}.active .lesson-num{background:#7651d2}.lesson-panel{background:#fff;border-color:#b8b6df;box-shadow:0 4px 0 #e1def4,0 12px 32px #2636610b}.lesson-top{border-color:#e0e2f0;background:linear-gradient(110deg,#f1edff,#eef3ff);padding:12px;border-radius:9px}.lesson-top h2{color:#26345a}.lesson-controls #focus{background:#fff;border-color:#c9c3e7}.typing-column #passage{background:#f7f8ff;border-color:#d5d9ed;box-shadow:inset 0 1px 4px #354b8510}.typing-column textarea{background:#fff;border-color:#bcb5e4}#passage .cursor{background:#7450d1;outline-color:#7450d1}.practice-workspace .guide-heading h2{color:#667293}.practice-workspace #keyboard{background:#dce3f4;border-color:#b8c3de;box-shadow:0 3px 0 #c3cce3}.practice-workspace .key{background:#eef2ff;border-color:#b5c0dd;box-shadow:inset 0 -4px 0 #b7c2e538,0 2px 0 #a4b1d2}.practice-workspace .key[data-finger="left-little"],.practice-workspace .key[data-finger="right-little"]{background:#e6ecff}.practice-workspace .key[data-finger="left-ring"],.practice-workspace .key[data-finger="right-ring"]{background:#e9e2fc}.practice-workspace .key[data-finger="left-middle"],.practice-workspace .key[data-finger="right-middle"]{background:#dff1f5}.practice-workspace .key[data-finger="left-index"],.practice-workspace .key[data-finger="right-index"]{background:#ece5fc}.practice-workspace .key[data-finger="right-thumb"]{background:#e5eafa}.practice-workspace .key.next{background:#7652d1!important;border-color:#5536a5;color:white}.practice-workspace .key.shift,.practice-workspace .key.held{background:#ffe2a2!important;border-color:#b89037;color:#765113}.progress-sidebar{background:linear-gradient(170deg,#eff0ff,#e5e9fa);border-color:#c7cbe8}.progress-sidebar h3{color:#354574}.bar-chart{border-color:#c2c8e4}.bar-chart span{background:#f7f8ff;border-color:#b7c0df}.bar-chart span.filled{background:linear-gradient(#a38aee,#6b4bc4);border-color:#7457b7}#chart-label,.progress-sidebar .stats small{color:#6d7399}.progress-sidebar .stats>div{border-color:#ccd1e9}.progress-sidebar .primary{background:linear-gradient(120deg,#4564cf,#7e51cf);border-color:#6951be}.progress-sidebar #sound-hint,.coach-note{color:#697393}.real-hands{border-color:#d9deed;background:#f6f8fc}.hand-description strong{color:#6c48bd}.practice-workspace .legend{border-color:#dce1ef}.real-hands .finger ellipse{fill:#8b5cf63d;stroke:#7950d1;filter:drop-shadow(0 0 9px #a78bfa)}.real-hands .finger circle{fill:#7148c2}.real-hands .shift-finger ellipse{fill:#fbbf2440;stroke:#bc7800}.real-hands .shift-finger circle{fill:#a56500}.legend .dot.green{background:#7950d1}.real-hands .finger.tapped{opacity:1;animation:fingertip-press .24s ease-out;transform-box:fill-box;transform-origin:center}.real-hands .finger.tapped ellipse{stroke:#008cbb;fill:#22d3ee60;filter:drop-shadow(0 0 16px #67e8f9)}.real-hands .finger.tapped circle{fill:#007eab}.real-hands .finger.tap-error ellipse{stroke:#d43861;fill:#fda4af66}.real-hands .finger.tap-error circle{fill:#c32952}.practice-workspace .key.key-hit{background:#5eb7dc!important;color:#102d53;transform:translateY(2px);box-shadow:inset 0 2px 3px #2e5b9440}.practice-workspace .key.key-error{background:#f2a4ba!important;border-color:#c44d71;transform:translateY(2px)}.key{touch-action:manipulation}.key:focus-visible{outline:3px solid #ac94ed}#last-key{letter-spacing:0;font-size:9px;color:#58779a}.practice-head{flex-wrap:wrap;gap:5px}.lesson-top{margin-top:-1px}.typing-column textarea:focus{outline-color:#a995e5}.progress-sidebar .volume-control input{accent-color:#7752d1}.key .secondary{pointer-events:none}.real-hands .finger text{pointer-events:none}@keyframes fingertip-press{0%{transform:translateY(0) scale(1)}35%{transform:translateY(10px) scale(.9)}100%{transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.real-hands .finger.tapped{animation:none}}@media(min-width:1000px) and (max-height:800px){.lesson-top{padding:8px}.real-hands,.real-hands img{height:125px;max-height:125px}.practice-workspace .key{height:24px}}
.practice-workspace .key{padding:0;line-height:1;margin:0}#passage{cursor:text}#passage:focus-visible{outline:2px solid #ac95e7;outline-offset:2px}textarea[readonly]{cursor:text;background:#fcfcff}.progress-sidebar .stats strong{line-height:1.2}.progress-sidebar .stats em{display:inline;font-size:8px}
#clear-text{padding:3px 8px;font-size:9px;border-color:#cbc5e7;background:#f6f3ff;color:#6851a4}.practice-head{align-items:center}.input-label{font-size:9px}.practice-head #best:empty{display:none}
