
#etma.etma-app{--p:#5543d6;--g:#159447;--bg:#eef0f4;--ink:#25252b;--line:#d7d9e0;width:100%;min-height:100vh;background:var(--bg);font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);overflow:hidden}#etma *{box-sizing:border-box}
.etma-header{height:62px;background:linear-gradient(90deg,#4f3bc9,#7051dc);color:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 18px}.etma-brand{display:flex;gap:10px;align-items:center}.etma-brand .logo{font-size:28px}.etma-brand b{display:block;font-size:16px}.etma-brand small{display:block;font-size:9px;opacity:.8}.etma-head-actions{display:flex;gap:7px;align-items:center;font-size:11px}.etma-head-actions>span,.head-btn{background:#ffffff1d;color:#fff;border:0;border-radius:7px;padding:9px 11px;font-weight:800}.head-btn{cursor:pointer}
.etma-layout{display:grid;grid-template-columns:315px 1fr;height:calc(100vh - 62px)}.etma-sidebar{background:#fff;border-right:1px solid #cfd1d8;display:flex;flex-direction:column;min-height:0}.side-title{background:#5845d2;color:#fff;padding:12px;text-align:center;font-size:12px;font-weight:900}.side-title b{opacity:.8}.side-tools{padding:8px}.side-tools input{width:100%;padding:9px;border:1px solid #d4d6de;border-radius:6px}.lesson-list{overflow:auto;flex:1;padding:3px 7px}.lesson-item{width:100%;min-height:43px;background:#fff;border:0;border-bottom:1px solid #eee;display:grid;grid-template-columns:29px 1fr 15px;align-items:center;text-align:left;padding:5px;cursor:pointer}.lesson-item:hover{background:#f5f3ff}.lesson-item.active{background:#ece9ff;outline:1px solid #6554dc}.lesson-item .num{font-size:11px;font-weight:900;text-align:center}.lesson-item b{display:block;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lesson-item small{font-size:8px;color:#777}.lesson-item .check{color:#149344;font-weight:900}.level-key{display:flex;flex-wrap:wrap;gap:4px;padding:8px;border-top:1px solid #ddd}.level-key span{font-size:7px;font-weight:900;border:1px solid #aaa;padding:3px 5px;border-radius:4px}
.etma-main{overflow:auto;padding:10px;background:#f3f4f6}.lesson-head{display:flex;justify-content:space-between;background:#e9f9d0;border:1px solid #a5d36b;border-radius:8px 8px 0 0;padding:13px 20px}.badge{display:inline-block;background:#188e42;color:#fff;padding:5px 9px;border-radius:4px;font-size:10px;font-weight:900}.lesson-head h1{font-size:23px;margin:7px 0 3px}.lesson-head p{margin:0;font-size:11px;color:#555}.lesson-counter{font-weight:900;font-size:18px;color:#3b963d}
.hand-intro{background:#e9f9d0;border:1px solid #a5d36b;border-top:0;padding:8px 20px 14px;text-align:center}.hand-intro h2{margin:0;font-size:20px}.hand-intro p{margin:3px;font-size:12px}.intro-content{display:grid;grid-template-columns:180px 1fr 180px;gap:8px;align-items:center;max-width:1100px;margin:auto}.intro-keyboard{background:#e1f1cb;border:1px solid #9bc969;border-radius:8px;padding:8px}.side-hand{height:130px;position:relative}.hand-label{font-size:10px;font-weight:900;color:#5a46cf}.palm{position:absolute;width:92px;height:74px;background:#efb08c;border-radius:50% 45% 48% 45%;left:44px;top:44px}.side-hand .finger{position:absolute;width:18px;height:62px;background:#efb08c;border-radius:15px;top:3px}.side-hand .f1{left:47px;height:48px;transform:rotate(-28deg)}.side-hand .f2{left:70px}.side-hand .f3{left:92px;height:67px;top:-3px}.side-hand .f4{left:114px;height:58px;transform:rotate(12deg);top:4px}.side-hand .thumb{position:absolute;width:22px;height:58px;background:#efb08c;border-radius:15px;left:113px;top:65px;transform:rotate(45deg)}.right-hand .f1{left:115px}.right-hand .f2{left:92px}.right-hand .f3{left:70px}.right-hand .f4{left:47px}.right-hand .thumb{left:43px;transform:rotate(-45deg)}.hand-note{position:absolute;bottom:0;width:100%;font-size:8px;color:#555}.ready-btn{background:#159447;color:#fff;border:0;border-radius:6px;padding:9px 15px;font-weight:900;cursor:pointer}
.practice-grid{display:grid;grid-template-columns:minmax(0,1fr) 215px;gap:9px;background:#f5f6f8;padding:9px}.metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.metric-row>div{background:#fff;border:1px solid var(--line);border-radius:6px;text-align:center;padding:6px}.metric-row small{display:block;font-size:8px;color:#777}.metric-row b{font-size:20px}.guidance{background:#fff;border:1px solid var(--line);border-radius:7px;margin:7px 0;padding:7px;display:grid;grid-template-columns:1fr 110px 70px 30px;align-items:center;gap:7px}.guidance small{display:block;font-size:8px;color:#777}.guidance b{font-size:11px}.hand-chip{font-size:8px;font-weight:900;padding:7px;border-radius:5px;text-align:center;background:#eeeaff;color:#5040c6}.hand-chip.right{background:#e4f8e8;color:#16873f}.current-key{height:35px;border:1px solid #888;border-radius:5px;background:#fff;text-align:center;padding:7px;font-weight:900}.finger-dot{font-size:25px;text-align:center;color:#d44}
.target{background:#fff;border:2px solid #d4d6dd;border-radius:7px;padding:12px;min-height:76px;font-size:22px;line-height:1.65;word-break:break-word}.target span.ok{color:#188e42}.target span.bad{color:#d32222;background:#ffe0e0}.target span.cur{background:#ccd5ff;border-bottom:3px solid #5647d5}
#etma #input,#etma #testInput{width:100%;height:65px;margin-top:7px;border:1px solid #c3c6cf;border-radius:7px;padding:10px;font-size:16px;resize:vertical}.keyboard-wrap{display:grid;grid-template-columns:125px 1fr 125px;align-items:center;gap:4px;margin-top:8px}.keyboard{background:#e4f1d2;border:1px solid #9bc96a;border-radius:7px;padding:7px;min-width:650px}.krow{display:flex;justify-content:center;gap:3px;margin:3px 0}.key{height:31px;min-width:34px;border:1px solid #999;background:linear-gradient(#fff,#ececec);border-radius:3px;font-size:9px;font-weight:700}.key.wide{min-width:60px}.key.space{min-width:260px}.key.expected{background:#6956df!important;color:#fff!important;border-color:#4e3ac5!important;box-shadow:0 0 0 2px #b8b0ff}.key.pressed{animation:keypress .18s ease;background:#159447!important;color:#fff!important}@keyframes keypress{50%{transform:translateY(4px) scale(.97)}}.hand-zone{height:130px;display:flex;justify-content:center;align-items:center}.visual-hand{position:relative;width:100px;height:80px}.visual-hand i{position:absolute;width:13px;height:47px;border-radius:12px;background:#efb08c;top:0}.vh-left i:nth-child(1){left:5px;transform:rotate(-30deg)}.vh-left i:nth-child(2){left:28px}.vh-left i:nth-child(3){left:48px;height:52px}.vh-left i:nth-child(4){left:68px;transform:rotate(10deg)}.vh-right i:nth-child(1){left:68px;transform:rotate(-10deg)}.vh-right i:nth-child(2){left:48px;height:52px}.vh-right i:nth-child(3){left:28px}.vh-right i:nth-child(4){left:5px;transform:rotate(30deg)}.visual-hand b{position:absolute;width:70px;height:55px;background:#efb08c;border-radius:50%;left:15px;top:35px}.visual-hand i.active{background:#ff5b2e;box-shadow:0 0 0 3px #ffc1aa;animation:fingerpress .45s ease}@keyframes fingerpress{50%{transform:translateY(18px) scale(.92)}}
.finger-caption{display:grid;grid-template-columns:repeat(9,1fr);font-size:7px;text-align:center;color:#777;margin-top:-4px}.controls{display:flex;gap:6px;align-items:center;margin:7px 0}.controls label{margin-right:auto;font-size:9px}.controls select,.ctl,.next{border:1px solid #d1d3db;background:#fff;border-radius:5px;padding:8px;font-size:10px;font-weight:800}.ctl{cursor:pointer}.next{background:#159447;color:#fff;border:0;cursor:pointer}.bar,.coursebar{height:6px;background:#ddd;border-radius:5px;overflow:hidden}.bar span,.coursebar span{display:block;width:0;height:100%;background:#159447}
.stats-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:9px}.stats-card h3{text-align:center;color:#197e35;font-size:10px;border-bottom:1px solid #ddd;padding-bottom:7px}.stat-big{display:flex;gap:8px;align-items:center;font-size:23px;margin:8px}.stat-big span{display:flex;flex-direction:column}.stat-big small{font-size:8px;color:#777}.stat-big b{font-size:18px}.timer-pills{background:#eff9df;padding:7px;text-align:center;margin-top:9px}.timer-pills b{display:block;font-size:8px;color:#287b36;margin-bottom:4px}.timer-pills button{border:1px solid #ddd;background:#fff;border-radius:4px;padding:5px;font-size:8px}.timer-pills .on{background:#159447;color:#fff}.start,.wide{width:100%;border:0;border-radius:6px;padding:9px;margin-top:6px;font-weight:900;cursor:pointer}.start{background:#159447;color:#fff}.wide{background:#f1f1f1;color:#777}.goal{background:#f2f9df;border:1px solid #d9e9b8;border-radius:6px;margin-top:9px;text-align:center;padding:10px;font-size:9px;line-height:1.6}.tips{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:0 9px 10px;background:#f5f6f8}.tips>div{background:#fff;border:1px solid var(--line);border-radius:7px;padding:9px}.tips h4{font-size:9px;color:#197e35;margin:0 0 5px}.tips p{font-size:9px;margin:4px 0}.tab-panel{background:#fff;border-radius:10px;padding:25px;min-height:500px}.tab-panel h2{font-size:27px}.test-target{font-size:21px;line-height:1.7;border:1px solid #ddd;border-radius:8px;padding:18px;margin:15px 0}.test-stats{margin-top:12px;font-size:12px}.dash{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:20px 0}.dash>div{background:#f4f5f7;border:1px solid #ddd;border-radius:8px;text-align:center;padding:20px}.dash b{display:block;font-size:28px}.dash small{font-size:9px;color:#777}
#etma:fullscreen{width:100vw!important;height:100vh!important}.etma-app:fullscreen .etma-layout{height:calc(100vh - 62px)}
@media(max-width:1050px){.etma-layout{grid-template-columns:250px 1fr}.keyboard-wrap{grid-template-columns:1fr}.hand-zone{display:none}.keyboard{min-width:0}.stats-card{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.stats-card h3,.timer-pills,.goal{grid-column:1/-1}}
@media(max-width:700px){.etma-header{height:auto;min-height:62px;flex-wrap:wrap}.etma-head-actions{overflow:auto}.etma-layout{display:block;height:auto}.etma-sidebar{height:290px}.etma-main{overflow:visible}.intro-content{grid-template-columns:1fr}.side-hand{display:none}.practice-grid{grid-template-columns:1fr}.stats-card{display:block}.metric-row,.dash{grid-template-columns:repeat(2,1fr)}.tips{grid-template-columns:1fr}.keyboard{overflow:auto}.finger-caption{display:none}}


/* v4.0.1: Mirror the right hand so both index fingers face each other. */
.side-hand.right-hand{transform:scaleX(-1)}
.side-hand.right-hand .hand-label,.side-hand.right-hand .hand-note{transform:scaleX(-1)}
.visual-hand.vh-right{transform:scaleX(-1)}
