:root{--bg:#090d17;--panel:#111725;--panel2:#151d2e;--line:#263047;--text:#f3f5fb;--muted:#a1adc4;--dim:#6c7890;--lime:#baff48;--lime-dark:#213d18;--cyan:#5bdde6;--pink:#ff7798;--violet:#b59bff;--gold:#ffd274;--radius:16px;--typing-size:26px;--key-gap:5px;font-family:Inter,'Segoe UI',Arial,sans-serif;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55;background-image:radial-gradient(ellipse at 75% 0%,rgba(90,102,161,.07),transparent 45%)}button,input,textarea,select{font:inherit}button,a,input,textarea,summary,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}a{color:var(--lime)}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid var(--cyan);outline-offset:4px}button,input,textarea,select{border-radius:9px}button svg,.icon{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}svg{overflow:visible}.svg-library{width:0;height:0;position:absolute;overflow:hidden}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;top:-60px;left:20px;z-index:100;background:var(--lime);color:#13200b;padding:10px 20px}.skip-link:focus{top:12px}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.18;letter-spacing:-1.25px;margin-bottom:9px;font-weight:750}h2{font-size:18px;line-height:1.3;letter-spacing:-.3px;margin-bottom:10px}p{margin-bottom:14px}small{font-size:11px}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.6px;line-height:1.4;color:var(--muted);font-weight:750;margin:0 0 9px}.topbar{height:80px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 28px;background:rgba(12,17,29,.96);position:relative;z-index:3}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);flex-shrink:0}.brand-mark{height:42px;width:42px;background:var(--lime);color:#14200b;border-radius:12px 4px 12px 4px;display:grid;place-items:center;box-shadow:0 0 24px #baff4810}.brand-mark svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round}.brand strong{display:block;font-size:20px;letter-spacing:-.8px;line-height:1.2}.brand strong span{color:var(--lime);margin-left:3px}.brand small{display:block;font-size:8px;letter-spacing:1.6px;margin-top:4px;color:var(--muted)}.topnav{display:flex;gap:6px;flex:1;justify-content:center;height:100%;align-items:center}.nav-link{background:none;border:0;padding:10px 13px;display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:650;position:relative}.nav-link:hover{color:white;background:#ffffff06}.nav-link.active{color:var(--lime);background:#baff480b}.nav-link.active:after{content:'';position:absolute;bottom:-14px;left:20%;right:20%;height:2px;background:var(--lime);box-shadow:0 0 10px #baff4877}.top-actions{display:flex;gap:10px;align-items:center}.icon-button{width:36px;height:36px;border:1px solid var(--line);background:transparent;display:inline-flex;align-items:center;justify-content:center;position:relative;flex-shrink:0}.icon-button:hover{border-color:var(--muted);background:#ffffff06}.sound-off{position:absolute;left:6px;right:6px;top:17px;height:2px;background:var(--muted);transform:rotate(-45deg);box-shadow:0 0 0 2px var(--panel)}.profile-button{display:flex;align-items:center;gap:9px;background:none;border:0;padding:3px;font-size:12px}.profile-button>span:first-child{display:grid;place-items:center;background:#2e2447;color:#d0b9ff;width:33px;height:33px;border-radius:50%;font-size:10px;font-weight:700}.profile-button>span:last-child{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-shell{display:grid;grid-template-columns:238px minmax(0,1fr);max-width:1700px;margin:0 auto;min-height:calc(100vh - 80px)}.sidebar{padding:30px 18px 20px;border-right:1px solid var(--line);background:linear-gradient(#0e1422,#0b101a);display:flex;flex-direction:column;gap:0}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:0 9px}.sidebar-heading .eyebrow{font-size:9px;margin:0}.tiny-tag{font-size:9px;border:1px solid var(--line);color:var(--muted);padding:1px 5px;border-radius:4px}.sidebar h2{font-size:21px;margin:16px 9px 9px;letter-spacing:-.6px}.sidebar-copy{color:var(--muted);font-size:12px;line-height:1.8;margin:0 9px 24px}.unit-nav{display:flex;flex-direction:column;gap:6px}.unit-button{width:100%;text-align:left;display:flex;align-items:center;gap:10px;padding:11px 10px;background:transparent;border:1px solid transparent;min-height:56px;border-radius:9px}.unit-number{width:29px;height:29px;display:grid;place-items:center;font-family:Consolas,monospace;font-size:11px;border:1px solid var(--line);color:var(--muted);border-radius:7px;flex-shrink:0}.unit-name{flex:1;min-width:0}.unit-name strong{font-size:12px;font-weight:600;display:block;line-height:1.35}.unit-name small{display:block;font-size:10px;color:var(--dim);margin-top:3px}.unit-button.active{background:linear-gradient(100deg,#baff4813,#baff4805);border-color:#baff4838;box-shadow:inset 3px 0 var(--lime)}.unit-button.active .unit-number{background:var(--lime);color:#18200b;border-color:var(--lime)}.unit-button.active .unit-name strong{color:var(--lime)}.unit-button:hover{background:#ffffff05}.unit-check{color:var(--lime);width:13px!important}.sidebar-progress{padding:24px 9px 16px;margin-top:auto}.sidebar-progress>div:first-child{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:9px}.sidebar-progress strong{color:var(--text);font-size:11px}.progress-track{height:5px;border-radius:9px;background:#242d40;overflow:hidden}.progress-track>span{height:100%;display:block;background:var(--lime);width:0;transition:width .3s}.sidebar-progress p{font-size:9px;color:var(--dim);margin:8px 0 0}.guide-link{display:flex;align-items:center;gap:9px;padding:12px 10px;border:1px solid var(--line);background:none;font-size:11px;text-align:left}.guide-link span{margin-left:auto;color:var(--muted)}.connection{display:flex;align-items:center;gap:7px;font-size:9px;color:var(--dim);margin:18px 9px 0;line-height:1.4}.connection>span:first-child{height:5px;width:5px;flex-shrink:0;background:var(--lime);border-radius:50%}.main-content{padding:29px 32px 0;min-width:0;outline:none}.page-heading{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:24px}.page-heading>div:first-child{min-width:0}.page-heading p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.6;margin:0;max-width:610px}.rank-badge{display:flex;gap:8px;align-items:center;background:linear-gradient(120deg,#1a2333,#121a29);border:1px solid var(--line);padding:10px 13px;border-radius:11px;flex-shrink:0}.rank-badge>svg{width:25px;height:25px;fill:#baff4818;stroke:var(--lime);stroke-width:1.5}.rank-badge small{display:block;font-size:7px;letter-spacing:1px;color:var(--muted)}.rank-badge strong{display:block;font-size:12px;margin-top:2px}.rank-badge>span{font-size:10px;color:var(--lime);margin-left:10px;white-space:nowrap}.lesson-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-bottom:20px}.lesson-button{background:#101725;border:1px solid var(--line);padding:9px 10px;display:flex;gap:9px;text-align:left;align-items:center;min-height:53px}.lesson-button>span:first-child{font-family:Consolas,monospace;color:var(--dim);font-size:11px}.lesson-button strong{font-size:10px;line-height:1.3;display:block;min-width:0;font-weight:500}.lesson-button.active{border-color:var(--lime);background:#baff480a;box-shadow:0 0 16px #baff4808}.lesson-button.active>span:first-child{color:var(--lime)}.lesson-button.passed>span:first-child{color:var(--lime)}.lesson-button:hover{background:#ffffff06}.stats-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:16px 18px 13px;position:relative}.stat.main-stat{background:linear-gradient(115deg,#182421,#111b23);border-color:#baff4828}.stat-caption{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:9px;letter-spacing:1.1px;font-weight:650;white-space:nowrap}.stat-caption svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6}.main-stat .stat-caption{color:var(--lime)}.stat-value{display:flex;gap:7px;align-items:baseline;font-family:Consolas,'SFMono-Regular',monospace;font-variant-numeric:tabular-nums;line-height:1.3;margin:7px 0 1px}.stat-value>span{font-size:34px;font-weight:600;letter-spacing:-1.5px}.stat-value>small{font-family:'Segoe UI',sans-serif;color:var(--muted);font-size:10px;letter-spacing:0}.main-stat .stat-value>span{color:var(--lime)}.error-label{color:var(--pink)}.stat-note{font-size:9px;color:var(--dim)}.arena-grid{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:16px;margin-bottom:18px}.typing-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);overflow:hidden;padding:20px 22px 17px;position:relative}.card-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.card-top .eyebrow{font-size:8px;letter-spacing:1.3px;margin-bottom:4px;color:var(--lime)}.card-top h2{font-size:17px;margin:0}.combo{display:flex;align-items:center;gap:4px;border:1px solid #493d24;color:var(--gold);border-radius:20px;padding:4px 8px;font-size:8px;letter-spacing:.6px;white-space:nowrap}.combo svg{height:12px;width:12px;fill:none;stroke:currentColor;stroke-width:1.8}.combo b{font-size:11px;margin-left:2px}.instruction{font-size:11px;color:var(--muted);margin:12px 0 10px;min-height:17px}.passage{font-family:'Cascadia Code','SFMono-Regular',Consolas,'Liberation Mono',monospace;font-size:var(--typing-size);letter-spacing:1px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-wrap;min-height:126px;max-height:210px;overflow:hidden;color:#707e98;padding:6px 1px 14px;user-select:none;position:relative}.passage span{border-radius:2px;position:relative}.passage .char-done{color:var(--lime)}.passage .char-wrong{color:#ff90a8;background:#ff577024;text-decoration:underline;text-decoration-thickness:2px}.passage .char-current{background:var(--lime);color:#1b2811;box-shadow:0 0 17px #baff4822}.passage .char-current:after{content:'';height:3px;position:absolute;bottom:-4px;left:0;right:0;background:var(--lime)}.passage.error-flash .char-current{background:var(--pink)}.char-space{color:transparent}.char-space.char-current{color:#28411d}.char-space.char-done{color:#6f9936}.char-space.char-wrong{color:var(--pink)}.passage.is-paused{filter:blur(5px);opacity:.35}.input-wrap{display:flex;align-items:center;border:1px solid #2b364e;border-radius:8px;position:relative;background:#0c1220;padding:0 11px;transition:border-color .15s}.input-wrap:focus-within{border-color:#baff4880;box-shadow:0 0 0 2px #baff4807}.input-indicator{height:5px;width:5px;border-radius:50%;background:var(--dim);margin-right:8px;flex-shrink:0}.input-wrap:focus-within .input-indicator{background:var(--lime);box-shadow:0 0 8px #baff4877}.input-wrap input{flex:1;background:transparent;border:0;color:var(--text);padding:10px 0;width:100%;min-width:0;font-size:10px;outline:none!important;caret-color:var(--lime)}.input-wrap input::placeholder{color:var(--dim)}#inputState{font-size:7px;letter-spacing:1px;color:var(--muted);white-space:nowrap;margin-left:8px}.typing-feedback{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:9px;color:var(--muted);min-height:37px;padding:7px 0}.typing-feedback>span:last-child{font-family:Consolas,monospace;font-size:10px;white-space:nowrap}.exercise-track{height:3px;background:#242f43;border-radius:3px;margin-bottom:16px;overflow:hidden}.exercise-track span{display:block;background:var(--lime);height:100%;width:0;transition:width .12s}.exercise-controls{display:flex;align-items:center;gap:9px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;font-size:11px;line-height:1.35;font-weight:650;min-height:38px;border:1px solid transparent;text-decoration:none;white-space:nowrap}.btn.primary{background:var(--lime);border-color:var(--lime);color:#18230e;box-shadow:0 3px 14px #baff480d}.btn.primary:hover{background:#cdff7c;border-color:#cdff7c;transform:translateY(-1px)}.btn.primary svg{width:15px;height:15px}.btn.ghost{background:transparent;border-color:var(--line);color:var(--muted)}.btn.ghost:hover{border-color:#52617c;color:var(--text);background:#ffffff04}.btn.ghost svg{width:15px;height:15px}.switch-label{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:9px;white-space:nowrap;color:var(--muted);cursor:pointer;position:relative}.switch-label input{position:absolute;left:0;opacity:0;width:26px;height:20px}.switch{width:26px;height:15px;background:#35425a;border-radius:20px;display:inline-block;position:relative;border:1px solid transparent}.switch:before{content:'';height:9px;width:9px;background:#8c9bb6;border-radius:50%;position:absolute;top:2px;left:2px;transition:transform .15s}.switch-label input:checked+.switch{background:#baff4822;border-color:#baff4850}.switch-label input:checked+.switch:before{background:var(--lime);transform:translateX(10px)}.switch-label input:focus-visible+.switch{outline:2px solid var(--cyan);outline-offset:3px}.mission-card{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(155deg,#172032,#101724);padding:19px 18px;display:flex;flex-direction:column}.mission-card>.eyebrow{font-size:8px;letter-spacing:1.1px;margin-bottom:10px}.objective strong{font-size:26px;letter-spacing:-1px;line-height:1.15;display:block;color:var(--cyan)}.objective span{font-size:10px;color:var(--muted);display:block;margin-top:6px}.precision-goal{display:flex;justify-content:space-between;align-items:center;font-size:10px;margin:17px 0 0;color:var(--muted)}.precision-goal strong{font-size:12px;color:var(--text)}.mission-divider{height:1px;background:var(--line);margin:17px 0}.next-key-row{display:flex;align-items:center;gap:9px}.next-key{height:40px;min-width:40px;padding:0 7px;border:1px solid #baff4855;border-bottom-width:3px;border-radius:8px;display:grid;place-items:center;font:700 20px Consolas,monospace;color:var(--lime);background:#baff480b}.next-key-row strong{font-size:10px;display:block}.next-key-row small{font-size:9px;color:var(--muted);display:block;margin-top:3px}.key-instruction{font-size:9px;line-height:1.55;color:var(--muted);margin:9px 0 11px}.mini-tip{margin-top:auto;background:#0c1421;border-left:2px solid var(--violet);padding:9px 10px;border-radius:0 7px 7px 0}.mini-tip>span{font-size:7px;letter-spacing:1px;color:var(--violet);font-weight:700}.mini-tip p{font-size:9px;line-height:1.6;color:var(--muted);margin:3px 0 0}.keyboard-panel{border:1px solid var(--line);border-radius:var(--radius);background:#101725;padding:14px 20px 13px}.keyboard-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.keyboard-heading h2{font-size:11px;display:flex;gap:7px;align-items:center;margin:0;font-weight:600}.keyboard-heading svg{width:16px;height:16px;stroke:var(--muted);fill:none;stroke-width:1.6}.keyboard-heading h2 span{color:var(--dim);font-size:7px;letter-spacing:1px;margin-left:9px;font-weight:500}.keyboard-heading label{font-size:9px;color:var(--muted);display:flex;gap:6px;align-items:center}.keyboard-heading input{accent-color:var(--lime);height:12px;width:12px;margin:0}#keyboard{max-width:870px;margin:0 auto;user-select:none;overflow:visible}.keyboard-row{display:flex;gap:var(--key-gap);margin-bottom:var(--key-gap)}.key{--fc:#8191aa;flex:0 0 calc((100% + var(--key-gap)) / 15 * var(--u) - var(--key-gap));height:35px;position:relative;display:flex;align-items:center;justify-content:center;border-radius:5px;border:1px solid #33415c;border-bottom:3px solid color-mix(in srgb,var(--fc) 50%,#172032);background:linear-gradient(#1b2639,#182235);color:#d7dfee;transition:background .08s,transform .08s;min-width:0}.key-main{font:13px Consolas,monospace}.key-shift-symbol{position:absolute;font:8px Consolas,monospace;top:3px;left:5px;color:#8e9bb1}.key-altgr{position:absolute;font:7px Consolas,monospace;bottom:3px;right:4px;color:#95a4bd}.key-wide .key-main{font-size:9px;color:#aab7cd}.key-home:after{content:'';position:absolute;bottom:5px;width:10px;height:1px;background:currentColor;opacity:.8}.key.target{background:var(--lime);border-color:#d6ff94;border-bottom-color:#68a622;color:#162008;box-shadow:0 0 13px #baff4835}.key.target .key-shift-symbol,.key.target .key-altgr{color:#354f20}.key.modifier-target{border-color:var(--cyan);color:var(--cyan);background:#5bdde618}.key.modifier-target .key-main{color:var(--cyan)}.key.sequence-target:not(.target){border-color:var(--gold);box-shadow:0 0 0 1px #ffd27433}.key.pressed{transform:translateY(2px);background:#d4baff;color:#241c35;border-color:#d4baff;border-bottom-width:1px}.key.pressed .key-main{color:#241c35}.key-enter-top{border-bottom:0;border-bottom-left-radius:0;border-bottom-right-radius:0;z-index:1}.key-enter-top:after{content:'';position:absolute;height:calc(var(--key-gap) + 2px);width:calc(100% - 1px);bottom:calc(-1 * var(--key-gap) - 1px);right:-1px;background:#182235;border-left:1px solid #33415c;border-right:1px solid #33415c}.key-enter-bottom{border-top:0;border-top-left-radius:0;border-top-right-radius:0}.key-enter-top.pressed:after{background:#d4baff}.finger-lp{--fc:#db819c}.finger-lr{--fc:#d9ad6b}.finger-lm{--fc:#87c5a7}.finger-li{--fc:#75bde0}.finger-ri{--fc:#9e9ded}.finger-rm{--fc:#c092d1}.finger-rr{--fc:#d9ad6b}.finger-rp{--fc:#db819c}.finger-thumb{--fc:#8998b0}.finger-legend{display:flex;justify-content:center;gap:14px;margin-top:10px;flex-wrap:wrap}.finger-legend span{font-size:7px;color:#96a4bd;display:flex;align-items:center;gap:4px}.finger-legend span:before{content:'';width:4px;height:4px;border-radius:50%;background:var(--fc)}.play-footer{display:flex;justify-content:center;gap:26px;color:var(--dim);font-size:8px;margin:13px 0 0}.app-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid #1a2233;padding:18px 0;margin-top:26px;font-size:8px;color:#6d7a94;letter-spacing:.6px}.app-footer b{color:var(--lime);margin:0 5px}.mode-setup{margin-bottom:22px}.mode-setup h1{font-size:32px}.mode-setup p:not(.eyebrow){color:var(--muted);font-size:12px;margin-bottom:18px}.challenge-options{display:flex;gap:12px;margin:18px 0 12px}.challenge-options button{display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr 1fr;text-align:left;align-items:center;column-gap:12px;padding:13px 20px;background:var(--panel);border:1px solid var(--line);width:180px}.challenge-options button strong{grid-row:1/3;font:30px Consolas,monospace;color:var(--muted)}.challenge-options button span{font-size:8px;letter-spacing:1px;color:var(--muted)}.challenge-options button small{font-size:11px}.challenge-options button.selected{border-color:var(--lime);background:#baff480a}.challenge-options button.selected strong{color:var(--lime)}.record-line{font-size:11px;color:var(--muted)}.record-line strong{color:var(--text);margin-left:4px}.mode-setup textarea{width:100%;background:var(--panel);border:1px solid var(--line);color:var(--text);padding:13px 15px;resize:vertical;min-height:85px;font:13px/1.7 Consolas,monospace}.setup-actions{display:flex;gap:10px;align-items:center;margin-top:10px}.setup-actions>span{font-size:10px}.summary-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:26px}.summary-card{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius)}.summary-card>strong{display:block;font:32px Consolas,monospace;letter-spacing:-1px;color:var(--lime);margin:8px 0}.summary-card>span{font-size:10px;color:var(--muted)}.summary-card>small{font-size:9px;color:var(--dim)}.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:15px}.section-title h2{font-size:16px;margin:0}.section-title>span{font-size:9px;color:var(--muted)}.badge-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:24px}.badge-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:18px 10px 14px;text-align:center;opacity:.55}.badge-card.earned{opacity:1;border-color:#baff4840;background:linear-gradient(#19241e,#131b23)}.badge-card svg{display:block;width:27px;height:27px;fill:none;stroke:var(--muted);stroke-width:1.4;margin:0 auto 11px}.badge-card.earned svg{stroke:var(--lime)}.badge-card strong{display:block;font-size:10px}.badge-card p{font-size:8px;color:var(--muted);margin:5px 0 0;line-height:1.5}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;margin-bottom:20px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:22px}.panel p:last-child{margin-bottom:0}.history-chart{height:150px;display:flex;gap:9px;align-items:flex-end;padding-top:23px;margin:5px 0 13px;border-bottom:1px solid var(--line)}.chart-bar{position:relative;flex:1;background:linear-gradient(#baff48,#70ad36);border-radius:4px 4px 0 0;min-width:7px;max-width:70px;min-height:2px}.chart-bar>span{position:absolute;top:-21px;left:50%;transform:translateX(-50%);font:10px Consolas,monospace;color:var(--muted)}.empty-state{color:var(--muted);font-size:12px;text-align:center;padding:35px 15px;width:100%;align-self:center}.weak-keys{display:flex;flex-wrap:wrap;gap:9px;min-height:105px;align-content:flex-start;margin-bottom:12px}.weak-key{background:#1d2535;border:1px solid #39435a;border-radius:8px;min-width:47px;padding:9px 8px;text-align:center}.weak-key strong{font:19px Consolas,monospace;display:block;color:var(--pink)}.weak-key small{font-size:8px;color:var(--muted)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;color:var(--muted);font-size:9px;font-weight:600;white-space:nowrap;padding:10px 12px;border-bottom:1px solid var(--line)}td{padding:12px;border-bottom:1px solid #20293b;color:#cfdaee}td:not(:nth-child(2)){white-space:nowrap}td:first-child{font-size:10px;color:var(--muted)}tbody tr:last-child td{border-bottom:0}.history-panel{margin-bottom:18px}.backup-row{display:flex;gap:12px;align-items:center;border:1px dashed #364259;border-radius:13px;padding:18px 22px}.backup-row>div{flex:1}.backup-row h2{font-size:13px;margin-bottom:4px}.backup-row p{font-size:10px;color:var(--muted);margin:0}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}.guide-grid p{font-size:12px;color:var(--muted);line-height:1.8}.guide-grid strong{color:var(--text)}.guide-number{font:23px Consolas,monospace;color:var(--lime);display:block;margin-bottom:14px}.guide-grid h2{font-size:18px}.home-keys{display:flex;gap:7px;margin-top:20px}.home-keys span{display:grid;place-items:center;height:34px;width:34px;background:#202d3d;border:1px solid #405369;border-bottom:3px solid #7dc6cc;border-radius:5px;font:16px Consolas,monospace}.home-keys i{width:16px}.guide-details details{border:1px solid var(--line);background:var(--panel);border-radius:12px;margin-bottom:10px}.guide-details summary{cursor:pointer;padding:17px 20px;font-size:13px;font-weight:600}.guide-details details>div{padding:0 22px 18px;color:var(--muted);font-size:12px;line-height:1.85}.guide-details strong{color:var(--text)}.guide-details ol{padding-left:19px}.guide-details li{padding-left:5px;margin-bottom:5px}.accessibility-panel{display:flex;flex-wrap:wrap;gap:20px;align-items:center;margin-top:22px}.accessibility-panel>div{flex:1;min-width:220px}.accessibility-panel h2{font-size:15px}.accessibility-panel p{font-size:11px;color:var(--muted)}.accessibility-panel label{font-size:11px;color:var(--muted);display:flex;gap:9px;align-items:center}.accessibility-panel input{accent-color:var(--lime)}.accessibility-panel select{padding:7px 9px;border:1px solid var(--line);background:#1a2436;color:var(--text)}dialog{border:1px solid #445236;background:radial-gradient(ellipse at 50% 0%,#baff480b,transparent 50%),#121a28;color:var(--text);padding:34px;border-radius:21px;max-width:620px;width:calc(100% - 36px);box-shadow:0 25px 100px #0009}dialog::backdrop{background:#050913b8;backdrop-filter:blur(8px)}.result-dialog{text-align:center}.result-dialog h2{font-size:32px;letter-spacing:-1px;margin:9px 0}.result-dialog p{font-size:12px;color:var(--muted)}.result-icon{width:58px;height:58px;display:grid;place-items:center;border:1px solid #baff4850;background:#baff4812;border-radius:17px;margin:0 auto 17px;color:var(--lime)}.result-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.6}.stars{font-size:32px;letter-spacing:9px;color:var(--lime);padding-left:9px;margin:8px 0 14px}.stars span{color:#374257}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:19px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0}.result-stats strong{font:26px Consolas,monospace;display:block}.result-stats span{font-size:9px;color:var(--muted);display:block;margin-top:5px}.result-details{font-size:10px!important;line-height:1.9}.result-note{padding:12px 14px;background:#090f1b;border-radius:9px;font-size:11px!important;color:#c2cde0!important}.dialog-actions{display:flex;justify-content:center;gap:9px;flex-wrap:wrap;margin-top:22px}.profile-dialog{max-width:460px;position:relative}.profile-dialog h2{font-size:25px;letter-spacing:-.8px}.profile-dialog p{color:var(--muted);font-size:12px;line-height:1.7}.profile-dialog label{font-size:11px;display:block;color:var(--muted);margin:22px 0 7px}.profile-dialog input{background:#0d1423;color:var(--text);border:1px solid var(--line);padding:12px;width:100%;margin-bottom:15px}.profile-dialog form>.btn{width:100%}.dialog-close{position:absolute;right:14px;top:14px;width:28px;height:28px}.dialog-close svg{width:15px;height:15px}.existing-profiles{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.existing-profiles button{background:#202a3d;border:1px solid var(--line);color:var(--muted);padding:5px 9px;font-size:10px}.notice{padding:12px 15px;border-radius:10px;font-size:11px;margin-bottom:18px;border:1px solid #66542d;background:#2c2516;color:#f5d694}.notice button{font:inherit;margin-left:10px;padding:2px 8px;background:transparent;border:1px solid currentColor}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:#1b273d;border:1px solid #4d6382;box-shadow:0 10px 40px #0008;padding:12px 22px;border-radius:11px;font-size:12px;max-width:calc(100% - 30px);text-align:center}.noscript{position:fixed;inset:0;display:grid;place-items:center;background:#0a1020;padding:30px;color:white;font-size:22px}.high-contrast{--muted:#d1d9e8;--dim:#b0bed5;--line:#64718c}.high-contrast .passage{color:#c8d1e4}.high-contrast .stat-note,.high-contrast .sidebar-copy{color:#b9c6dd}.high-contrast .key{border-color:#7f8da7}.high-contrast .key-shift-symbol,.high-contrast .key-altgr{color:#c9d5ea}.high-contrast .badge-card{opacity:.8}
@media(min-width:1550px){.main-content{padding-left:44px;padding-right:44px}.arena-grid{grid-template-columns:minmax(0,1fr) 250px}.typing-card{padding-left:27px;padding-right:27px}.passage{min-height:165px}.key{height:39px}.sidebar{padding-top:35px}.unit-button{min-height:61px}.stat{padding:18px 22px}.stat-value>span{font-size:38px}}
@media(max-width:1190px){.topbar{padding:0 20px;gap:15px}.topnav{gap:0}.nav-link{padding:9px 10px;font-size:10px}.brand strong{font-size:18px}.brand-mark{width:37px;height:37px}.app-shell{grid-template-columns:208px minmax(0,1fr)}.sidebar{padding:25px 12px 18px}.main-content{padding:26px 22px 0}.rank-badge>span{display:none}.page-heading h1{font-size:28px}.arena-grid{grid-template-columns:minmax(0,1fr) 190px;gap:13px}.mission-card{padding:17px 14px}.typing-card{padding:18px 17px 15px}.stat{padding:13px}.stat-value>span{font-size:30px}.stat-caption{font-size:8px}.stat-note{font-size:8px}.lesson-button{padding:8px 7px;gap:6px}.lesson-button strong{font-size:9px}.exercise-controls{gap:7px}.exercise-controls .btn{padding:9px 10px;font-size:10px}.switch-label{font-size:8px}.keyboard-panel{padding:13px 15px}.key{height:32px}.passage{font-size:calc(var(--typing-size) - 2px);min-height:128px}.badge-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){.topbar{height:auto;min-height:73px;flex-wrap:wrap;padding:15px 20px 0;gap:12px}.brand{flex:1}.top-actions{margin-left:auto}.topnav{order:3;flex-basis:100%;justify-content:flex-start;height:45px;gap:6px}.nav-link.active:after{bottom:-4px}.app-shell{grid-template-columns:176px minmax(0,1fr)}.sidebar{padding:23px 9px 15px}.sidebar h2{font-size:17px}.sidebar-copy{font-size:11px}.unit-button{padding:9px 6px;gap:7px}.unit-name strong{font-size:10px}.unit-name small{font-size:9px}.unit-number{width:25px;height:25px;font-size:9px}.main-content{padding:24px 18px 0}.rank-badge{padding:9px}.rank-badge>svg{display:none}.page-heading h1{font-size:26px}.arena-grid{grid-template-columns:minmax(0,1fr)}.mission-card{display:grid;grid-template-columns:1fr 1fr;gap:5px 20px}.mission-card>.eyebrow:nth-of-type(1){grid-column:1}.mission-card>.eyebrow:nth-of-type(2){grid-column:2;grid-row:1}.objective{grid-row:2;grid-column:1}.objective strong{font-size:22px}.precision-goal{grid-column:1;grid-row:3;margin-top:0}.mission-divider{display:none}.next-key-row{grid-column:2;grid-row:2}.key-instruction{grid-column:2;grid-row:3;margin:2px 0 0}.mini-tip{display:none}.stats-row{gap:8px}.stat{padding:12px 10px}.stat-value>span{font-size:27px}.stat-note{font-size:7px}.stat-caption{font-size:7px;letter-spacing:.7px}.stat-value>small{font-size:8px}.lesson-strip{gap:5px}.lesson-button{display:block;min-height:61px}.lesson-button>span:first-child{display:block;margin-bottom:3px}.lesson-button strong{font-size:9px}.keyboard-heading h2 span{display:none}.finger-legend{gap:9px}.key{height:29px}.key-main{font-size:11px}.key-shift-symbol,.key-altgr{font-size:6px}.key-wide .key-main{font-size:7px}.play-footer{gap:15px;font-size:7px}.summary-stats{gap:8px}.summary-card{padding:14px}.summary-card>strong{font-size:27px}.backup-row{flex-wrap:wrap}.backup-row>div{flex-basis:100%}.dashboard-grid{grid-template-columns:1fr}.guide-grid{gap:13px}.panel{padding:18px}.home-keys{gap:4px}.home-keys span{width:25px;height:30px;font-size:13px}.home-keys i{width:5px}}
@media(max-width:720px){.topbar{padding:13px 16px 0}.brand small{font-size:7px}.brand strong{font-size:18px}.topnav{justify-content:space-between;gap:0}.nav-link{padding:9px 8px;font-size:9px;gap:5px}.nav-link svg{width:15px;height:15px}.app-shell{display:block}.sidebar{padding:14px 16px;border-right:0;border-bottom:1px solid var(--line)}.sidebar-heading,.sidebar h2,.sidebar-copy,.sidebar-progress,.connection{display:none}.unit-nav{display:flex;flex-direction:row;overflow-x:auto;gap:7px;padding-bottom:5px;scrollbar-width:thin}.unit-button{flex:0 0 137px;min-height:46px;padding:8px;border:1px solid var(--line)}.unit-name strong{font-size:9px}.unit-name small{font-size:8px}.unit-check{display:none}.guide-link{font-size:10px;position:relative;margin-top:8px;justify-content:center;min-height:31px;padding:4px 10px;border:0;color:var(--muted)}.guide-link svg{width:13px;height:13px}.guide-link span{margin-left:0}.main-content{padding:24px 16px 0}.page-heading{gap:10px;align-items:flex-start;margin-bottom:20px}.page-heading h1{font-size:26px;letter-spacing:-.8px}.page-heading .eyebrow{font-size:8px}.page-heading p:not(.eyebrow){font-size:11px}.rank-badge{display:none}.lesson-strip{grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:15px}.lesson-button{display:flex;min-height:42px;padding:8px 10px;gap:10px}.lesson-button strong{font-size:10px}.lesson-button>span:first-child{margin:0}.stats-row{gap:7px}.stat{padding:11px 9px;border-radius:11px}.stat-caption{font-size:6px;letter-spacing:.35px;gap:3px}.stat-caption svg{height:10px;width:10px}.stat-value>span{font-size:24px}.stat-value{margin-top:8px;gap:3px}.stat-value>small{font-size:7px}.stat-note{font-size:7px;line-height:1.4;display:block;min-height:20px}.stat-value #statCorrections{display:none}.typing-card{padding:17px 15px 15px;border-radius:13px}.card-top h2{font-size:16px}.passage{font-size:calc(var(--typing-size) - 2px);min-height:137px;line-height:1.8}.instruction{font-size:10px}.exercise-controls{flex-wrap:wrap;gap:8px}.switch-label{margin-left:auto;font-size:8px}.exercise-controls .btn{font-size:10px;padding:9px 10px}.exercise-controls .icon-button{width:32px}.typing-feedback{font-size:8px;line-height:1.4}.keyboard-panel{padding:12px 10px;overflow:hidden}.keyboard-heading{gap:7px}.keyboard-heading h2{font-size:10px}.keyboard-heading label{font-size:8px}.key{height:28px;border-radius:3px;border-bottom-width:2px}.keyboard-row{--key-gap:3px}.key-main{font-size:10px}.key-shift-symbol{font-size:6px;top:2px;left:3px}.key-altgr{font-size:5px;bottom:2px;right:2px}.key-wide .key-main{font-size:6px}.key-home:after{bottom:4px;width:7px}.finger-legend{gap:7px}.finger-legend span{font-size:6px}.play-footer{font-size:7px;gap:11px;flex-wrap:wrap}.challenge-options{gap:8px}.challenge-options button{width:33.33%;padding:12px;column-gap:7px}.challenge-options button strong{font-size:27px}.challenge-options button span{font-size:6px}.challenge-options button small{font-size:9px}.setup-actions{flex-wrap:wrap}.summary-stats{grid-template-columns:repeat(2,1fr);gap:10px}.badge-grid{gap:8px}.badge-card{padding:15px 8px}.badge-card strong{font-size:9px}.badge-card p{font-size:7px}.guide-grid{grid-template-columns:1fr}.home-keys span{height:36px;width:36px;font-size:16px}.home-keys i{width:13px}.app-footer{font-size:6px;letter-spacing:.3px}.result-dialog{padding:26px 20px}.result-dialog h2{font-size:26px}.result-stats strong{font-size:24px}.result-stats span{font-size:8px}.result-dialog p{font-size:11px}.dialog-actions{gap:7px}.dialog-actions .btn{font-size:10px;padding:9px 12px}.backup-row{padding:16px}.backup-row .btn{font-size:10px}.section-title>span{font-size:8px}.section-title h2{font-size:14px}.page-heading>.btn{font-size:9px;padding:8px 10px}.profile-button>span:last-child{max-width:65px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.topbar,.sidebar,#playView,#guideView,.backup-row,.app-footer,.toast,.dialog-actions{display:none!important}.app-shell{display:block}.main-content{padding:0}.panel,.summary-card,.badge-card{break-inside:avoid;background:white;color:black;border-color:#bbb}.badge-card{opacity:1}.summary-card>strong,td,th,h1,h2,p{color:black!important}body{background:white;color:black}#progressView{display:block!important}}
/* Keep the typing area and keyboard together on ordinary desktop screens. */
.passage{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#344259 transparent}
.instruction{font-size:12px}.typing-feedback{font-size:10px}.key-instruction{font-size:10px}.mini-tip p{font-size:10px}.stat-note{font-size:10px}.stat-caption{font-size:10px}
@media(min-width:981px) and (max-height:1000px){
 .topbar{height:68px}.nav-link.active:after{bottom:-8px}.app-shell{min-height:calc(100vh - 68px)}
 .sidebar{padding-top:22px}.sidebar h2{margin-top:13px}.sidebar-copy{margin-bottom:18px}.unit-button{min-height:49px;padding-top:8px;padding-bottom:8px}
 .main-content{padding-top:20px}.page-heading{margin-bottom:16px}.page-heading h1{font-size:28px}.page-heading .eyebrow{margin-bottom:7px}
 .lesson-strip{margin-bottom:14px}.lesson-button{min-height:44px;padding-top:7px;padding-bottom:7px}
 .stats-row{margin-bottom:14px}.stat{padding:11px 15px}.stat-value{margin-top:5px}.stat-value>span{font-size:29px}.stat-note{font-size:9px}.stat-caption{font-size:9px}
 .arena-grid{margin-bottom:14px}.typing-card{padding:15px 18px 14px}.card-top h2{font-size:16px}.instruction{margin:8px 0 6px;font-size:11px}
 .passage{height:92px;min-height:92px;max-height:92px;line-height:1.65;padding-top:1px;padding-bottom:8px}.typing-feedback{min-height:29px;font-size:9px}.exercise-track{margin-bottom:12px}
 .mission-card{padding:14px 16px}.mission-card>.eyebrow{margin-bottom:7px}.objective strong{font-size:24px}.objective span{margin-top:4px}.precision-goal{margin-top:12px}.mission-divider{margin:12px 0}.next-key{height:34px;min-width:34px;font-size:18px}.key-instruction{font-size:9px;margin:6px 0 8px}.mini-tip{padding:6px 9px}.mini-tip p{font-size:9px}
 .keyboard-panel{padding:11px 17px}.keyboard-heading{margin-bottom:9px}.key{height:28px}.finger-legend{margin-top:7px}.play-footer{margin-top:9px}.app-footer{margin-top:17px;padding-top:12px;padding-bottom:12px}
}

/* Akacenter identity and optional practice aids. */
.brand-logo-plate{display:block;flex-shrink:0;padding:7px 9px;background:#fff;border:1px solid #e2e8e0;border-radius:8px;line-height:0}
.brand-logo-plate img{display:block;width:142px;height:auto;max-width:100%}
.brand .brand-product strong{font-size:17px;letter-spacing:-.6px;white-space:nowrap}
.brand .brand-product small{font-size:6px;letter-spacing:1px;white-space:nowrap;margin-top:5px}
.keyboard-heading{flex-wrap:wrap;row-gap:10px}
.keyboard-options{display:flex;align-items:center;gap:17px;flex-wrap:wrap}
.keyboard-options label{cursor:pointer;min-height:24px;white-space:nowrap}
.keyboard-options input{width:14px;height:14px;cursor:pointer}
.sound-volume{flex-wrap:wrap;gap:10px!important}
.sound-volume input{width:140px;cursor:pointer}
.sound-volume output{min-width:32px;font-variant-numeric:tabular-nums;color:var(--lime)}
@media(max-width:1190px){.brand{gap:9px}.brand-logo-plate{padding:6px 7px}.brand-logo-plate img{width:121px}.brand .brand-product strong{font-size:15px}.brand .brand-product small{font-size:5px}.keyboard-options{gap:12px}}
@media(max-width:980px){.keyboard-options{width:100%;justify-content:flex-start;gap:17px}.brand-logo-plate img{width:142px}.brand .brand-product strong{font-size:17px}.brand .brand-product small{font-size:6px}}
@media(max-width:520px){.brand-product{display:none}.brand-logo-plate img{width:127px}.keyboard-options{gap:7px 13px}.keyboard-options label{font-size:9px}.sound-volume input{width:130px}}

/* Instructional hand overlay, independent of the keyboard visibility control. */
.ta-hands{margin-top:13px;padding-top:13px;border-top:1px solid var(--line,#263047);color:var(--text,#f3f5fb)}
.ta-hands-diagram{max-width:700px;margin:0 auto}
.ta-hands-svg{width:100%;height:auto;max-height:176px;display:block;overflow:visible}
.ta-hands-guide-line{fill:none;stroke:var(--line,#263047);stroke-width:1;stroke-dasharray:3 6;opacity:.65}
.ta-hands-palm{fill:#172234;stroke:#52617a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ta-hands-zone{fill:#233149;stroke:#6e809b;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;transition:fill .08s,stroke .08s}
.ta-hands-nail{fill:#172437;stroke:#8291a9;stroke-width:1;opacity:.8}
.ta-hands-joint,.ta-hands-palm-line{fill:none;stroke:#8190a9;stroke-width:1.1;stroke-linecap:round;opacity:.35}
.ta-hands-base-key{fill:#cbd5e5;font:600 11px Consolas,'SFMono-Regular',monospace;text-anchor:middle}
.ta-hands-side{fill:var(--muted,#a1adc4);font:600 9px 'Segoe UI',Arial,sans-serif;letter-spacing:1.5px;text-anchor:middle}
.ta-hands-target .ta-hands-zone{fill:var(--lime,#baff48);stroke:#e1ffb6;stroke-width:2;filter:drop-shadow(0 0 5px #baff4830)}
.ta-hands-target .ta-hands-nail{fill:#83b839;stroke:#253c12;opacity:.8}
.ta-hands-target .ta-hands-joint{stroke:#273f14;opacity:.55}
.ta-hands-target .ta-hands-base-key{fill:#14210b;font-weight:750}
.ta-hands-modifier:not(.ta-hands-target) .ta-hands-zone{fill:#254955;stroke:var(--cyan,#5bdde6);stroke-width:2}
.ta-hands-modifier:not(.ta-hands-target) .ta-hands-nail{fill:#1d3743;stroke:var(--cyan,#5bdde6)}
.ta-hands-modifier:not(.ta-hands-target) .ta-hands-base-key{fill:#a4f4f7}
.ta-hands-pressed .ta-hands-zone{stroke:var(--violet,#b59bff);stroke-width:3.5}
.ta-hands-pressed:not(.ta-hands-target):not(.ta-hands-modifier) .ta-hands-zone{fill:#463b61}
.ta-hands-step-badge{display:none}
.ta-hands-numbered .ta-hands-step-badge{display:block}
.ta-hands-step-badge circle{fill:#12210a;stroke:var(--lime,#baff48);stroke-width:1.2}
.ta-hands-step-badge text{fill:var(--lime,#baff48);font:700 11px 'Segoe UI',Arial,sans-serif;text-anchor:middle}
.ta-hands-reading{text-align:center;margin:2px auto 0;max-width:760px;padding:0 10px;min-height:47px}
.ta-hands-current{font-size:12px;line-height:1.55;font-weight:650;margin:0 0 3px;color:var(--lime,#baff48)}
.ta-hands-sequence{font-size:10px;line-height:1.6;color:var(--muted,#a1adc4);margin:0}
.ta-hands-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;margin:8px 0 0;font-size:8px;color:var(--muted,#a1adc4)}
.ta-hands-legend span{display:flex;align-items:center;gap:5px}
.ta-hands-legend span:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--lime,#baff48)}
.ta-hands-legend .ta-hands-legend-modifier:before{background:var(--cyan,#5bdde6)}
.ta-hands-legend .ta-hands-legend-pressed:before{background:var(--violet,#b59bff)}
.high-contrast .ta-hands-palm{stroke:#a0aec4}
.high-contrast .ta-hands-zone{stroke:#b3c2d7}
.high-contrast .ta-hands-nail{stroke:#d8e3f1}
@media(max-width:720px){.ta-hands{margin-top:10px;padding-top:10px}.ta-hands-svg{min-height:110px}.ta-hands-reading{min-height:55px;padding:0 3px}.ta-hands-current{font-size:11px}.ta-hands-sequence{font-size:9px}.ta-hands-legend{font-size:7px;gap:10px}.ta-hands-side{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ta-hands-zone{transition:none}}
@media(min-width:981px) and (max-height:1000px){.ta-hands{margin-top:8px;padding-top:8px}.ta-hands-svg{max-height:140px}.ta-hands-reading{min-height:43px}.ta-hands-legend{margin-top:5px}}

/* Optional light palette; all practice data and controls share the same theme. */
body[data-theme="light"] {
  --bg: #f1f5ef;
  --panel: #fff;
  --panel2: #f4f8f2;
  --line: #c8d6c9;
  --text: #20352b;
  --muted: #50675a;
  --dim: #617568;
  --lime: #28792c;
  --lime-dark: #e6f2de;
  --cyan: #087887;
  --pink: #b92e52;
  --violet: #7450aa;
  --gold: #886000;
  color-scheme: light;
  background-image: radial-gradient(ellipse at 75% 0%, #d9eec655, transparent 50%);
}
body[data-theme="light"] .topbar { background: #ffffffed; }
body[data-theme="light"] .sidebar { background: linear-gradient(#eef5e9, #f8faf5); }
body[data-theme="light"] .nav-link:hover,
body[data-theme="light"] .icon-button:hover,
body[data-theme="light"] .unit-button:hover,
body[data-theme="light"] .lesson-button:hover { color: var(--text); background: #eaf2e4; }
body[data-theme="light"] .nav-link.active { background: #e7f2df; color: var(--lime); }
body[data-theme="light"] .nav-link.active:after { box-shadow: none; }
body[data-theme="light"] .profile-button>span:first-child { background: #eee6f7; color: #684195; }
body[data-theme="light"] .unit-button.active { background: linear-gradient(100deg, #e0efd6, #edf5e7); border-color: #acd094; }
body[data-theme="light"] .unit-button.active .unit-number,
body[data-theme="light"] .btn.primary,
body[data-theme="light"] .skip-link { color: #fff; }
body[data-theme="light"] .btn.primary:hover { background: #206126; border-color: #206126; }
body[data-theme="light"] .btn.ghost:hover { border-color: #7a9a80; background: #edf4e8; }
body[data-theme="light"] .rank-badge,
body[data-theme="light"] .mission-card { background: linear-gradient(135deg, #f8fbf5, #eaf4e3); }
body[data-theme="light"] .rank-badge>svg { fill: #e5f2dc; }
body[data-theme="light"] .lesson-button,
body[data-theme="light"] .keyboard-panel { background: #fff; }
body[data-theme="light"] .lesson-button.active,
body[data-theme="light"] .challenge-options button.selected { background: #edf6e5; box-shadow: none; }
body[data-theme="light"] .stat.main-stat { background: linear-gradient(115deg, #e9f5de, #f9fcf5); border-color: #b6d599; }
body[data-theme="light"] .progress-track,
body[data-theme="light"] .exercise-track { background: #dbe5d6; }
body[data-theme="light"] .combo { border-color: #d5c58e; background: #fff9e8; }
body[data-theme="light"] .passage { color: #687768; scrollbar-color: #afc3a7 transparent; }
body[data-theme="light"] .passage .char-done { color: var(--lime); }
body[data-theme="light"] .passage .char-wrong { color: #a8173e; background: #ffe5eb; }
body[data-theme="light"] .passage .char-current { color: #fff; background: var(--lime); box-shadow: none; }
body[data-theme="light"] .passage.error-flash .char-current { color: #fff; background: var(--pink); }
body[data-theme="light"] .char-space.char-done { color: #538638; }
body[data-theme="light"] .input-wrap { background: #fafcf7; border-color: #b5c8b5; }
body[data-theme="light"] .input-wrap:focus-within { border-color: var(--lime); box-shadow: 0 0 0 2px #28792c18; }
body[data-theme="light"] .input-wrap:focus-within .input-indicator { box-shadow: none; }
body[data-theme="light"] .switch { background: #dde6d7; border-color: #9eb298; }
body[data-theme="light"] .switch:before { background: #5e7356; }
body[data-theme="light"] .switch-label input:checked+.switch { background: #dcefcf; border-color: #78aa61; }
body[data-theme="light"] .next-key { background: #ecf6e3; border-color: #84ad69; }
body[data-theme="light"] .mini-tip { background: #f4f0fa; }
body[data-theme="light"] .key { color: #2a3c31; background: linear-gradient(#fff, #edf3e8); border-color: #aebfac; border-bottom-color: color-mix(in srgb, var(--fc) 70%, #3b533e); }
body[data-theme="light"] .key-shift-symbol,
body[data-theme="light"] .key-altgr,
body[data-theme="light"] .key-wide .key-main { color: #51694f; }
body[data-theme="light"] .key.target { color: #fff; background: var(--lime); border-color: #226b27; border-bottom-color: #174d1c; box-shadow: 0 0 0 2px #28792c1a; }
body[data-theme="light"] .key.target .key-shift-symbol,
body[data-theme="light"] .key.target .key-altgr,
body[data-theme="light"] .key.target .key-main { color: #fff; }
body[data-theme="light"] .key.modifier-target { color: #006674; background: #d9f2f5; border-color: #218b98; }
body[data-theme="light"] .key.modifier-target .key-main { color: #006674; }
body[data-theme="light"] .key.sequence-target:not(.target) { border-color: #987a18; box-shadow: 0 0 0 1px #987a1833; }
body[data-theme="light"] .key.pressed { background: #e0cff3; border-color: #8162a4; color: #42265f; }
body[data-theme="light"] .key.pressed .key-main { color: #42265f; }
body[data-theme="light"] .key-enter-top:after { background: #edf3e8; border-color: #aebfac; }
body[data-theme="light"] .key-enter-top.pressed:after { background: #e0cff3; }
body[data-theme="light"] .finger-legend span { color: var(--muted); }
body[data-theme="light"] .badge-card { opacity: 1; }
body[data-theme="light"] .badge-card.earned { background: linear-gradient(#f4faed, #e9f4df); border-color: #b8d3a1; }
body[data-theme="light"] .chart-bar { background: linear-gradient(#5b9e2d, #28792c); }
body[data-theme="light"] .weak-key { background: #faf2f2; border-color: #dfc9cb; }
body[data-theme="light"] td { color: var(--text); border-color: #e0e8dc; }
body[data-theme="light"] td:first-child { color: var(--muted); }
body[data-theme="light"] .backup-row { border-color: #b0c2a7; }
body[data-theme="light"] .home-keys span { color: #29422a; background: #edf5e6; border-color: #97b18b; border-bottom-color: #4d9795; }
body[data-theme="light"] .accessibility-panel select { background: #fff; }
body[data-theme="light"] dialog { border-color: #b3c8a3; background: radial-gradient(ellipse at 50% 0%, #edf7de, transparent 55%), #fff; box-shadow: 0 25px 100px #213a263d; }
body[data-theme="light"] dialog::backdrop { background: #17302173; }
body[data-theme="light"] .result-icon { border-color: #9fbe84; background: #edf7e2; }
body[data-theme="light"] .stars span { color: #a8b8a0; }
body[data-theme="light"] .result-note { background: #eef5e7; color: #375331!important; }
body[data-theme="light"] .profile-dialog input { background: #fcfdf9; }
body[data-theme="light"] .existing-profiles button { background: #f0f5e9; }
body[data-theme="light"] .notice { background: #fff8e5; color: #785511; border-color: #d8bf75; }
body[data-theme="light"] .toast { background: #fff; border-color: #8ba67d; box-shadow: 0 10px 40px #28432126; }
body[data-theme="light"] .app-footer { color: #617260; border-color: #d4dfce; }
body[data-theme="light"] .ta-hands-palm { fill: #edf3e7; stroke: #819577; }
body[data-theme="light"] .ta-hands-zone { fill: #e0ead8; stroke: #7d9272; }
body[data-theme="light"] .ta-hands-nail { fill: #f7faf3; stroke: #7d9272; }
body[data-theme="light"] .ta-hands-joint,
body[data-theme="light"] .ta-hands-palm-line { stroke: #738469; opacity: .5; }
body[data-theme="light"] .ta-hands-base-key { fill: #3e5537; }
body[data-theme="light"] .ta-hands-target .ta-hands-zone { fill: var(--lime); stroke: #14541c; filter: none; }
body[data-theme="light"] .ta-hands-target .ta-hands-nail { fill: #96c77e; stroke: #16471d; }
body[data-theme="light"] .ta-hands-target .ta-hands-joint { stroke: #c8e6b6; opacity: .8; }
body[data-theme="light"] .ta-hands-target .ta-hands-base-key { fill: #fff; }
body[data-theme="light"] .ta-hands-modifier:not(.ta-hands-target) .ta-hands-zone { fill: #d3eef0; stroke: #117a88; }
body[data-theme="light"] .ta-hands-modifier:not(.ta-hands-target) .ta-hands-nail { fill: #ecf9f9; stroke: #117a88; }
body[data-theme="light"] .ta-hands-modifier:not(.ta-hands-target) .ta-hands-base-key { fill: #005865; }
body[data-theme="light"] .ta-hands-pressed .ta-hands-zone { stroke: var(--violet); }
body[data-theme="light"] .ta-hands-pressed:not(.ta-hands-target):not(.ta-hands-modifier) .ta-hands-zone { fill: #e7daf3; }
body[data-theme="light"] .ta-hands-step-badge circle { fill: #fff; stroke: var(--lime); }
body[data-theme="light"].high-contrast { --muted: #304939; --dim: #3e5544; --line: #82977c; }
body[data-theme="light"].high-contrast .passage { color: #41573d; }
body[data-theme="light"].high-contrast .stat-note,
body[data-theme="light"].high-contrast .sidebar-copy { color: var(--muted); }
body[data-theme="light"].high-contrast .key { border-color: #63805b; }
body[data-theme="light"].high-contrast .key:not(.target) .key-shift-symbol,
body[data-theme="light"].high-contrast .key:not(.target) .key-altgr { color: #354e2d; }
body[data-theme="light"].high-contrast .badge-card { opacity: 1; }
body[data-theme="light"].high-contrast .ta-hands-palm,
body[data-theme="light"].high-contrast .ta-hands-zone,
body[data-theme="light"].high-contrast .ta-hands-nail { stroke: #47623e; }

/* Document practice, file imports and learner reports. */
#themeBtn { min-width: 36px; }
.admin-setup { margin-bottom: 22px; }
.admin-fields { display: grid; grid-template-columns: minmax(200px, 1.8fr) repeat(3, minmax(110px, 1fr)); gap: 13px; margin: 17px 0 14px; }
.admin-fields label { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 600; color: var(--muted); min-width: 0; }
.admin-fields select,
.admin-fields input { width: 100%; min-width: 0; min-height: 39px; padding: 8px 10px; background: var(--panel); color: var(--text); border: 1px solid var(--line); font-size: 12px; }
.admin-fields input:disabled,
.admin-fields select:disabled { opacity: .65; }
.admin-brief { padding: 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 0 9px 9px 0; background: var(--panel); color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 14px; }
.admin-brief strong { color: var(--text); }
.admin-brief p:last-child { margin: 0; }
.document-actions,
.report-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.document-actions { margin: 14px 0; padding: 14px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.document-actions>div { flex: 1 1 240px; }
.document-actions p { color: var(--muted); font-size: 11px; margin: 0; }
.document-actions h2 { font-size: 14px; margin-bottom: 4px; }
.document-actions>span { color: var(--muted); font-size: 11px; }
.report-actions { margin-bottom: 18px; }
.report-actions p { flex-basis: 100%; font-size: 11px; color: var(--muted); margin: 3px 0 0; }
.upload-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; padding: 14px 16px; background: var(--panel); border: 1px dashed var(--line); border-radius: 11px; margin: 14px 0; }
.upload-panel>div { flex: 1 1 240px; min-width: 0; }
.upload-panel label { font-size: 12px; font-weight: 600; color: var(--text); }
.upload-panel p,
.upload-panel small { color: var(--muted); font-size: 11px; margin: 3px 0 0; }
.upload-panel input[type="file"] { max-width: 100%; min-width: 0; font-size: 11px; color: var(--muted); }
.upload-panel input[type="file"]::file-selector-button { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 9px 12px; margin-right: 10px; cursor: pointer; font: inherit; }
.upload-panel [role="status"] { flex-basis: 100%; overflow-wrap: anywhere; }

/* The collection is scoped so it never changes the small header rank badge. */
.rank-track { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0 0 25px; }
.rank-track .rank-badge { display: flex; position: relative; flex-direction: column; text-align: center; justify-content: flex-start; gap: 6px; padding: 18px 10px 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; min-width: 0; }
.rank-track .rank-badge>span { display: block; margin: 0; white-space: normal; }
.rank-track .rank-badge .rank-icon { display: grid; place-items: center; width: 48px; height: 52px; margin: 0 auto 3px; color: var(--muted); }
.rank-track .rank-badge svg.rank-icon,
.rank-track .rank-badge .rank-icon svg { width: 44px; height: 44px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.rank-track .rank-badge>svg { display: block; }
.rank-track .rank-badge strong { font-size: 12px; line-height: 1.35; color: var(--text); margin: 0; }
.rank-track .rank-badge p { font-size: 10px; line-height: 1.5; color: var(--muted); margin: 0; }
.rank-track .rank-badge small { font-size: 9px; line-height: 1.5; letter-spacing: 0; color: var(--muted); }
.rank-track .rank-badge.earned { background: linear-gradient(160deg, #baff4810, var(--panel)); border-color: #75994b; }
.rank-track .rank-badge.earned .rank-icon { color: var(--lime); }
.rank-track .rank-badge.current { border: 2px solid var(--lime); padding: 17px 9px 14px; box-shadow: 0 0 0 3px #baff4808; }
.rank-track .rank-badge.current:before { content: 'ACTUAL'; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--lime); color: #14220a; border-radius: 5px; padding: 2px 7px; font-size: 8px; font-weight: 750; letter-spacing: .6px; }
.rank-track .rank-badge.locked { border-style: dashed; }
.rank-track .rank-badge.locked .rank-icon { opacity: .65; }
.rank-progress { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 10px 0 18px; }
.rank-track .rank-progress { font-size: 9px; margin: auto 0 0; padding-top: 4px; }
.rank-next { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 9px 0 12px; }
.rank-unlock { border: 1px solid #75994b; background: linear-gradient(120deg, #baff4815, transparent); border-radius: 12px; padding: 13px 15px; margin: 16px 0; text-align: left; display: flex; gap: 12px; align-items: center; }
.rank-unlock .rank-icon,
.rank-unlock>svg { flex: 0 0 36px; width: 36px; height: 36px; color: var(--lime); fill: none; stroke: currentColor; stroke-width: 1.5; }
.rank-unlock strong { color: var(--lime); display: block; font-size: 15px; }
.rank-unlock p { margin: 3px 0 0; font-size: 11px; }
body[data-theme="light"] .rank-track .rank-badge.earned { background: linear-gradient(160deg, #edf7df, #fff); border-color: #97b67b; }
body[data-theme="light"] .rank-track .rank-badge.current { border-color: var(--lime); box-shadow: 0 0 0 3px #28792c0b; }
body[data-theme="light"] .rank-track .rank-badge.current:before { color: #fff; }
body[data-theme="light"] .rank-unlock { background: linear-gradient(120deg, #e9f5db, #fff); border-color: #9cbd7f; }

@media (max-width: 1190px) {
  .admin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rank-track { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
}
@media (max-width: 980px) {
  .topnav { overflow-x: auto; scrollbar-width: none; }
  .topnav::-webkit-scrollbar { display: none; }
  .nav-link { flex-shrink: 0; }
}
@media (max-width: 720px) {
  .admin-fields { gap: 11px; }
  .admin-fields label { font-size: 10px; }
  .admin-fields select,
  .admin-fields input { font-size: 11px; }
  .admin-brief { padding: 11px 13px; font-size: 11px; }
  .rank-track .rank-badge { display: flex; padding: 17px 9px 13px; }
  .rank-track .rank-badge.current { padding: 16px 8px 12px; }
  .rank-track .rank-badge strong { font-size: 11px; }
  .rank-track .rank-badge p { font-size: 9px; }
  .rank-track .rank-badge .rank-icon { width: 39px; height: 43px; }
  .rank-track .rank-badge svg.rank-icon,
  .rank-track .rank-badge .rank-icon svg { width: 36px; height: 36px; }
  .document-actions { padding: 13px; }
  .document-actions .btn,
  .report-actions .btn { font-size: 10px; }
  .report-actions { gap: 8px; }
}
@media (max-width: 400px) {
  .admin-fields { grid-template-columns: 1fr; }
  .rank-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav { justify-content: flex-start; }
}
@media print {
  .report-actions, .document-actions, .upload-panel { display: none!important; }
  .rank-track .rank-badge { break-inside: avoid; background: #fff; color: #000; border-color: #999; }
}

/* Controls added with the v1.2 workflow. */
#themeBtn{white-space:nowrap;min-height:36px;border:1px solid var(--line);background:var(--panel);color:var(--text);padding:7px 11px;font-size:11px;font-weight:600}
#themeBtn:hover{border-color:var(--lime);color:var(--lime)}
.history-download{padding:4px 7px;border:1px solid var(--line);background:var(--panel2);color:var(--text);font-size:10px;margin:2px 0}
.history-document-state{display:block;color:var(--muted);margin-top:3px}
.rank-track .rank-progress{width:100%;height:4px;padding:0;border-radius:4px;background:var(--line);overflow:hidden;margin:6px 0}
.rank-track .rank-progress span{display:block;height:100%;background:var(--lime)}
.admin-setup>.small{margin-top:12px}
.upload-panel label{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
#customFeedback{overflow-wrap:anywhere}
body[data-theme="light"] .key.target{background:#28792c;color:#fff;border-color:#205c22}
body[data-theme="light"] .key.target .key-main,body[data-theme="light"] .key.target .key-shift-symbol{color:#fff}
@media(max-width:760px){#themeBtn{font-size:10px;padding:6px 8px}.top-actions{gap:6px}}

/* Extended numeric keypad: deliberately scoped to avoid the alphanumeric guide. */
.tn-keyboard{color:var(--text);margin:12px auto 0;max-width:770px}
.tn-layout{display:grid;grid-template-columns:minmax(230px,300px) minmax(230px,1fr);gap:28px;align-items:start;justify-content:center}
.tn-pad-area{min-width:0}
.tn-pad-caption{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 2px 10px;font-size:8px;letter-spacing:1px;color:var(--muted);font-weight:700}
.tn-side-tag{color:var(--lime);white-space:nowrap}
.tn-pad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(5,47px);gap:7px;background:var(--panel2);border:1px solid var(--line);padding:13px;border-radius:16px;box-shadow:0 5px 0 #0000001c}
.tn-finger-ri{--tn-finger:#9e9ded}.tn-finger-rm{--tn-finger:#c092d1}.tn-finger-rr{--tn-finger:#d9ad6b}.tn-finger-rp{--tn-finger:#db819c}.tn-finger-rt{--tn-finger:#8998b0}.tn-finger-none{--tn-finger:var(--line)}
.tn-key{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-width:0;background:var(--panel);color:var(--text);border:1px solid var(--line);border-bottom:3px solid var(--tn-finger);border-radius:8px;box-shadow:0 2px 0 #00000020;font:650 23px/1.1 Consolas,'SFMono-Regular',monospace;transition:background .08s,border-color .08s,transform .08s}
.tn-key small{font:500 8px/1.5 'Segoe UI',Arial,sans-serif;text-align:center;margin:7px 2px 0;color:var(--muted)}
.tn-operator-symbol{position:absolute;right:6px;top:4px;color:var(--muted);font:600 10px/1.2 'Segoe UI',Arial,sans-serif}.tn-key.tn-target .tn-operator-symbol{color:inherit}
.tn-small{font:650 10px/1.2 'Segoe UI',Arial,sans-serif}
.tn-decimal{font-size:17px}.tn-enter{font:650 14px/1.2 'Segoe UI',Arial,sans-serif}
.tn-home{background:var(--panel2);border-top-color:var(--tn-finger)}
.tn-tactile{position:absolute;width:14px;height:3px;border-radius:3px;background:currentColor;bottom:7px;opacity:.6}
.tn-key.tn-target{background:var(--lime);color:#152309;border-color:var(--lime);box-shadow:0 0 0 3px #baff4820,0 2px 0 #00000018}
.tn-key.tn-target small{color:inherit}
.tn-key.tn-pressed{outline:3px solid var(--violet);outline-offset:1px;transform:translateY(2px)}
.tn-key.tn-pressed:not(.tn-target){background:#403554;color:#fff}
.tn-numlock-note{font-size:10px;color:var(--muted);margin:10px 2px 0;line-height:1.6}.tn-numlock-note strong{color:var(--text)}
.tn-posture{padding:14px 0 0;min-width:0}
.tn-eyebrow{color:var(--cyan);font-size:8px;font-weight:700;letter-spacing:1.3px;margin:0 0 5px}
.tn-posture h3{font-size:29px;line-height:1.2;letter-spacing:4px;margin:0 0 10px;color:var(--text);font-weight:700}
.tn-posture>p:not(.tn-eyebrow){font-size:11px;line-height:1.65;color:var(--muted);margin:0 0 13px;max-width:330px}
.tn-finger-list{display:grid;gap:7px;margin:12px 0}
.tn-finger-row{display:grid;grid-template-columns:7px 55px 1fr;align-items:center;gap:9px;font-size:10px;line-height:1.45}
.tn-finger-row strong{font-weight:600;color:var(--text)}.tn-finger-row>span:last-child{color:var(--muted)}
.tn-finger-dot{width:7px;height:7px;border-radius:50%;background:var(--tn-finger)}
.tn-posture .tn-enter-note{border-left:2px solid var(--lime);padding:7px 0 7px 10px;margin-top:15px!important}
.tn-enter-note strong{color:var(--text)}
.tn-hand{display:grid;grid-template-columns:minmax(190px,300px) minmax(230px,1fr);gap:28px;align-items:center;max-width:770px;margin:15px auto 0;padding-top:14px;border-top:1px solid var(--line)}
.tn-hand-diagram{max-width:290px;width:100%;margin:auto}
.tn-hand-svg{display:block;width:100%;height:auto;max-height:192px;overflow:visible}
.tn-hand-guide{fill:none;stroke:var(--line);stroke-width:1;stroke-dasharray:3 5}
.tn-palm{fill:#172234;stroke:#52617a;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tn-zone{fill:#233149;stroke:#7b8da7;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;transition:fill .08s,stroke .08s}
.tn-nail{fill:#172437;stroke:#8291a9;stroke-width:1;opacity:.8}
.tn-joint,.tn-palm-line{fill:none;stroke:#8190a9;stroke-width:1.1;stroke-linecap:round;opacity:.4}
.tn-base-number{fill:#d9e1ef;font:650 12px Consolas,'SFMono-Regular',monospace;text-anchor:middle}
.tn-hand-side{fill:var(--muted);font:650 8px 'Segoe UI',Arial,sans-serif;letter-spacing:1px;text-anchor:middle}
.tn-digit.tn-target .tn-zone{fill:var(--lime);stroke:#e1ffb6;stroke-width:2}
.tn-digit.tn-target .tn-nail{fill:#83b839;stroke:#253c12;opacity:.9}
.tn-digit.tn-target .tn-base-number{fill:#14210b;font-weight:750}
.tn-digit.tn-target .tn-joint{stroke:#273f14;opacity:.6}
.tn-digit.tn-pressed .tn-zone{stroke:var(--violet);stroke-width:3.5}
.tn-digit.tn-pressed:not(.tn-target) .tn-zone{fill:#463b61}
.tn-current{color:var(--lime);font-size:13px;font-weight:650;margin:0 0 7px}
.tn-instruction{color:var(--muted);font-size:11px;line-height:1.65;max-width:360px;margin:0}
.tn-visual-legend{display:flex;flex-wrap:wrap;gap:8px 14px;font-size:8px;color:var(--muted);margin:12px 0 0}
.tn-visual-legend span:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--lime);margin-right:6px}
.tn-visual-legend span:last-child:before{background:var(--violet)}
body[data-theme="light"] .tn-pad{box-shadow:0 4px 0 #243c2010}
body[data-theme="light"] .tn-key{background:#fff;border-color:#b9c7b2;border-bottom-color:var(--tn-finger);box-shadow:0 2px 0 #243c2010}
body[data-theme="light"] .tn-home{background:#f0f7e8;border-top-color:var(--tn-finger)}
body[data-theme="light"] .tn-key.tn-target{background:#28792c;border-color:#205c22;color:#fff;box-shadow:0 0 0 3px #28792c18,0 2px 0 #243c2010}
body[data-theme="light"] .tn-key.tn-pressed:not(.tn-target){background:#e6ddf7;color:#38224e}
body[data-theme="light"] .tn-palm{fill:#edf2e7;stroke:#809374}
body[data-theme="light"] .tn-zone{fill:#e0e8d9;stroke:#7c9170}
body[data-theme="light"] .tn-nail{fill:#f8fbf5;stroke:#8b9c81}
body[data-theme="light"] .tn-base-number{fill:#32482a}
body[data-theme="light"] .tn-joint,body[data-theme="light"] .tn-palm-line{stroke:#67815a;opacity:.55}
body[data-theme="light"] .tn-digit.tn-target .tn-zone{fill:#28792c;stroke:#1e5620}
body[data-theme="light"] .tn-digit.tn-target .tn-nail{fill:#d9ebbd;stroke:#193e13}
body[data-theme="light"] .tn-digit.tn-target .tn-base-number{fill:#fff}
body[data-theme="light"] .tn-digit.tn-target .tn-joint{stroke:#dcf0cd}
body[data-theme="light"] .tn-digit.tn-pressed:not(.tn-target) .tn-zone{fill:#d7c9ed;stroke:#755197}
.high-contrast .tn-key{border-width:2px;border-bottom-width:4px}.high-contrast .tn-zone{stroke-width:2}
.high-contrast .tn-base-number{font-weight:800}
@media(max-width:720px){.tn-layout,.tn-hand{grid-template-columns:minmax(0,1fr);gap:16px;max-width:420px;margin-left:auto;margin-right:auto}.tn-pad-area{max-width:300px;width:100%;margin:auto}.tn-posture{padding-top:0}.tn-posture>p:not(.tn-eyebrow){max-width:none}.tn-finger-list{grid-template-columns:1fr;max-width:300px}.tn-hand-reading{text-align:center}.tn-instruction{margin:auto}.tn-visual-legend{justify-content:center}.tn-hand-svg{max-height:178px}.tn-hand{padding-top:10px}}
@media(prefers-reduced-motion:reduce){.tn-key,.tn-zone{transition:none}}

.numeric-intro{display:flex;gap:24px;justify-content:space-between;align-items:center}
.numeric-intro>div{flex:1}.numeric-enable{display:flex;align-items:center;gap:12px;padding:15px 18px;background:var(--panel);border:1px solid var(--line);border-radius:12px;cursor:pointer;min-width:240px}
.numeric-enable input{accent-color:var(--lime);width:22px;height:22px;flex:0 0 22px}.numeric-enable strong{font-size:12px;display:block;color:var(--text)}.numeric-enable small{font-size:10px;display:block;color:var(--muted);margin-top:2px}
.numeric-setup .notice{margin:18px 0}.numeric-fields{grid-template-columns:minmax(180px,1fr) minmax(200px,1.7fr) minmax(160px,1fr) auto;align-items:end}.numeric-fields .btn{align-self:end;min-height:39px}
.calculator-panel{border:1px solid var(--line);background:var(--panel2);border-radius:11px;padding:13px 17px;margin-bottom:14px}.calculator-label{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:1px;color:var(--muted)}.calculator-label strong{color:var(--lime);font-size:11px;letter-spacing:0}
.calculator-prompt{font:600 17px/1.6 Consolas,monospace;color:var(--muted);margin-top:7px}.calculator-display{display:block;min-height:52px;text-align:right;font:600 clamp(25px,3vw,37px)/1.3 Consolas,monospace;color:var(--lime);overflow-wrap:anywhere;padding:5px 0}.calculator-last{margin:5px 0 0!important;border-top:1px solid var(--line);padding-top:8px;font-size:11px;color:var(--text);min-height:26px}
.char-numeric-enter{display:inline-block;padding-right:15px;color:var(--cyan)}.passage.numeric-passage{font-size:24px;letter-spacing:.6px}.passage.numeric-passage .char-current{color:var(--bg)}.numeric-passage .char-numeric-enter.char-current{padding-right:0;margin-right:15px}.numeric-passage .char-numeric-enter.char-done{color:var(--lime)}
#keyboardTitle{font-size:12px;color:var(--text);letter-spacing:0}
@media(min-width:1150px){body[data-training="numeric"] #practiceArea{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:0 18px;align-items:start}body[data-training="numeric"] #practiceArea>.stats-row{grid-column:1/-1}body[data-training="numeric"] #practiceArea>.arena-grid{grid-column:1;display:flex;flex-direction:column;gap:12px}body[data-training="numeric"] #keyboardPanel{grid-column:2;grid-row:2/6;padding:16px 10px;margin-top:0}body[data-training="numeric"] .tn-layout{display:block}body[data-training="numeric"] .tn-posture{display:none}body[data-training="numeric"] .tn-keyboard{max-width:280px}body[data-training="numeric"] .tn-pad{grid-template-rows:repeat(5,39px);gap:6px;padding:11px}body[data-training="numeric"] .tn-hand{display:block;margin-top:11px;padding-top:10px}body[data-training="numeric"] .tn-hand-svg{max-height:135px}body[data-training="numeric"] .tn-hand-reading{text-align:center}body[data-training="numeric"] .tn-current{font-size:12px}body[data-training="numeric"] .tn-instruction{font-size:10px}body[data-training="numeric"] .tn-visual-legend{justify-content:center;font-size:7px}body[data-training="numeric"] .keyboard-heading{display:block}body[data-training="numeric"] .keyboard-heading h2{margin-bottom:8px;flex-wrap:wrap}body[data-training="numeric"] .keyboard-options{display:flex;gap:6px 12px;flex-wrap:wrap}body[data-training="numeric"] .keyboard-options label{font-size:9px}body[data-training="numeric"] .mission-card{display:grid;grid-template-columns:1fr 1fr;gap:9px 16px;padding:15px 18px}body[data-training="numeric"] .mission-card>.eyebrow{grid-column:1/-1}body[data-training="numeric"] .mission-divider{display:none}body[data-training="numeric"] .precision-goal{margin:0;align-self:center}body[data-training="numeric"] .objective{margin:0}body[data-training="numeric"] .objective strong{font-size:23px}body[data-training="numeric"] .mini-tip{grid-column:1/-1;margin-top:0;padding:8px 10px}body[data-training="numeric"] .mini-tip p{font-size:10px}body[data-training="numeric"] .key-instruction{margin:0}body[data-training="numeric"] .play-footer{grid-column:1;font-size:9px}body[data-training="numeric"] .passage{height:125px;min-height:125px;max-height:125px}}
@media(min-width:981px) and (max-width:1390px){.topbar{gap:12px;padding-left:18px;padding-right:18px}.topnav{gap:0}.nav-link{padding:9px 8px;font-size:10px;gap:5px}.brand .brand-product{display:none}.top-actions{gap:8px}}
@media(max-width:1149px){.numeric-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.numeric-intro{align-items:flex-start}.numeric-enable{min-width:215px}}
@media(max-width:720px){.numeric-intro{display:block}.numeric-enable{margin:15px 0}.numeric-fields{grid-template-columns:1fr}.topnav{overflow-x:auto;justify-content:flex-start;gap:2px}.nav-link{flex-shrink:0}.numeric-setup .notice{font-size:12px}.calculator-prompt{font-size:16px}.passage.numeric-passage{font-size:22px}}
body[data-theme="light"] .passage.numeric-passage .char-current{color:#fff}

#timeCaption{white-space:normal;overflow-wrap:anywhere;min-width:0}
