:root{font-family:"Segoe UI","Malgun Gothic",AppleSDGothicNeo,Arial,sans-serif;color:#262634;background:#f7f8fc;font-size:16px;--purple:#7856d9;--muted:#737682;--line:#e4e6e8;--control-edge:#d4d7db;--focus-ink:#65717b}
*{box-sizing:border-box}body{margin:0;min-height:100vh}button,select,textarea{font:inherit}button,select{cursor:pointer}button{border:0;background:none;color:inherit}:is(button,a,select,input,textarea):focus-visible{outline:2px solid var(--focus-ink);outline-offset:2px}[hidden]{display:none!important}svg.icon{width:1.1em;height:1.1em;display:block;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}i{font-style:normal;display:inline-flex}.shell{width:min(1100px,calc(100% - 88px));margin:auto}header{background:#fff;border-bottom:1px solid var(--line)}.topbar{display:flex;align-items:center;gap:52px;height:72px}.brand{display:flex;align-items:center;color:#292735;text-decoration:none;font-size:25px;letter-spacing:-1.5px;font-weight:800}.brand-dot{color:#8262df}.logo{margin-right:10px;width:35px;height:33px;background:linear-gradient(145deg,#9b7af2,#7952d5);color:white;border-radius:9px;border:1px solid #7755c9;box-shadow:inset 0 -3px #7553c5,0 2px 3px #53448018;display:grid;place-items:center}.logo svg{width:22px;height:22px;stroke-width:2.4}nav,.tools,.nav,.tools button,.language,.heading-group,.hint,.test-foot button,.key-legend,.enter-note{display:flex;align-items:center}nav{gap:10px}.nav{gap:8px;border-radius:8px;padding:9px 13px;font-size:.89rem;font-weight:650;color:#737482}.nav.active{background:#f0ebfb;color:#7251c7}.tools{margin-left:auto;gap:15px;font-size:.86rem;font-weight:600}.tools button,.language{gap:8px}.tools button{padding:8px 0}.tools i{font-size:17px;color:#61616e}.divider{height:17px;width:1px;background:var(--line)}.language{position:relative}.language select{appearance:none;border:0;background:transparent;padding:8px 19px 8px 0;color:inherit;max-width:100px}.language i:last-child{position:absolute;right:0;font-size:13px;pointer-events:none}
main{padding-bottom:40px}.hero{display:flex;justify-content:space-between;align-items:center;min-height:158px;gap:12px}.hero h1{font-size:clamp(30px,3.1vw,43px);line-height:1.2;font-weight:780;letter-spacing:-.068em;margin:0 0 12px}.hero p{color:#6e7081;font-size:.98rem;letter-spacing:-.025em;margin:0}.hero img{width:260px;height:124px;object-fit:contain;margin-right:20px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.metric,.panel{background:white;border:1px solid var(--line);box-shadow:0 3px 8px #2e284305;border-radius:15px}.metric{display:flex;align-items:center;padding:23px 21px;gap:15px}.metric-icon,.heading-icon,.result-icon{display:grid;place-items:center;flex:none}.metric-icon{width:46px;height:46px;border-radius:14px}.metric-icon svg{width:24px;height:24px}.purple .metric-icon,.heading-icon,.result-icon{background:#efebff;color:#805cd6}.green .metric-icon{background:#e3f6ed;color:#368d72}.peach .metric-icon{background:#fff0e6;color:#ce8250}.gold .metric-icon{background:#fff5d9;color:#b88a2c}.metric-label{font-size:.84rem;color:#626371;font-weight:580}.value{display:flex;align-items:baseline;gap:6px;margin-top:1px}.value b{font-size:2rem;line-height:1.17;letter-spacing:-1.7px;font-weight:700;font-variant-numeric:tabular-nums}.value small{font-size:.8rem;color:#83828f;font-weight:550}.panel{padding:23px 26px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.heading-group{gap:10px}.heading-icon{border-radius:8px;width:31px;height:31px}.heading-icon svg{width:18px;height:18px}h2{font-size:1.07rem;letter-spacing:-.045em;margin:0;font-weight:720}#status{display:inline-flex;align-items:center;gap:6px;color:#71717f;background:#f2f2f6;border-radius:16px;padding:4px 9px;font-size:.72rem;font-weight:600}#status:before{content:"";width:6px;height:6px;border-radius:50%;background:#9a99a6}#status.running{color:#318061;background:#eaf8f0}#status.running:before{background:#4ca57a}.durations{display:flex;gap:2px;background:#f3f3f7;padding:3px;border:1px solid #e9e8ee;border-radius:9px}.durations button{font-size:.81rem;color:#71727e;padding:5px 12px;border-radius:6px}.durations button.selected{color:#7250c5;background:#fff;box-shadow:0 1px 4px #32254924;font-weight:700}.test{position:relative;overflow:hidden}.test:focus-within{border-color:#cfc4e9}#typeArea{margin:20px 0 14px;padding:22px 24px;position:relative;background:#f8f7fc;border:1px solid #e9e5f4;border-radius:10px;cursor:text;min-height:112px}#passage{font-size:clamp(20px,1.8vw,26px);font-weight:510;line-height:1.8;letter-spacing:.025em;color:#777586;white-space:pre-wrap;overflow-wrap:anywhere}#passage span{position:relative}#passage .cursor:before{content:"";position:absolute;left:-2px;top:0;bottom:0;background:#8b68dd;width:2px;border-radius:2px}#passage .correct{color:#393347}#passage .wrong{color:#ba4257;background:#ffe5e9;border-radius:2px}#entry{position:absolute;inset:0;width:100%;height:100%;padding:22px 24px;resize:none;opacity:0;border:0;cursor:text;font-size:22px}#entry:disabled{cursor:default}.test-foot{display:flex;justify-content:space-between;gap:10px;align-items:center}.hint{gap:7px;font-size:.82rem;color:#797887}.hint i{color:#9282ac;font-size:16px}.test-foot button{gap:6px;font-size:.8rem;font-weight:600;border:1px solid #dfdfe8;border-radius:7px;padding:7px 10px}.test-foot button:hover,.nav:hover{background:#f6f4fa}.progress{height:3px;position:absolute;bottom:0;left:0;right:0}.progress div{height:100%;width:0;background:#aa8be8;transition:width .25s}.keys-panel{margin-top:20px}.key-legend{gap:7px;font-size:.77rem;color:#777582}.key-legend .pressed-swatch{width:9px;height:9px;background:#ad93e7;border:1px solid #9f81df;border-radius:3px}#keyboard{background:#f3f3f8;border:1px solid #e3e2eb;border-radius:12px;padding:12px 13px 14px;margin-top:18px}.key-row{display:flex;gap:6px;margin:0 0 6px}.key-row:last-child{margin:0}.key{display:flex;align-items:center;justify-content:center;gap:4px;height:34px;min-width:0;white-space:nowrap;background:#fff;border:1px solid #d9d8e2;box-shadow:0 2px 0 #d6d5e1;border-radius:6px;color:#60606e;font:550 .78rem "Segoe UI",Arial,sans-serif}.key.mod{background:#eaeaf1;color:#71717e}.key.enter{background:#dfd3f9;border-color:#c6b5e5;box-shadow:0 2px 0 #bda9df;color:#7550ae}.key .sub{color:#9896a4;font-size:.67rem}.key.hit{background:#b399ec;color:#342343;transform:translateY(2px);box-shadow:none}.key.hit .sub{color:inherit}.enter-note{justify-content:center;gap:8px;color:#85828e;font-size:.79rem;margin-top:16px}.mini-enter{font:600 .71rem "Segoe UI",sans-serif;color:#8667b0;background:#f3effa;border:1px solid #ded3ed;border-bottom-width:2px;border-radius:5px;padding:2px 5px}.enter-note i{color:#ac8acf}.particle{position:fixed;z-index:5;pointer-events:none;animation:burst .78s cubic-bezier(.13,.55,.28,1) forwards}.particle.star{clip-path:polygon(50% 0,65% 35%,100% 50%,65% 65%,50% 100%,35% 65%,0 50%,35% 35%)}@keyframes burst{0%{opacity:1;transform:scale(.7)}100%{transform:translate(var(--dx),var(--dy)) rotate(var(--spin)) scale(.25);opacity:0}}.celebrate{animation:glow .7s}@keyframes glow{25%{box-shadow:0 2px 12px #41454b20}}
dialog{border:1px solid var(--line);padding:32px;border-radius:18px;width:min(380px,90vw);text-align:center;color:inherit;box-shadow:0 20px 80px #26203730}dialog::backdrop{background:#29233755}.result-icon{width:52px;height:52px;margin:0 auto 14px;border-radius:16px}.result-icon svg{width:26px;height:26px}dialog h2{font-size:1.45rem}#summary{display:flex;justify-content:space-evenly;margin:24px 0;font-size:.86rem;color:var(--muted)}#summary strong{display:block;color:#38264e;font-size:1.45rem}dialog button{display:block;width:100%;padding:10px;border-radius:8px;font-size:.92rem}#again{background:var(--purple);color:white;font-weight:650}#records{margin-top:6px}#historyContent{overflow-x:auto}#historyContent p{color:var(--muted);text-align:center;margin:36px 0}table{border-collapse:collapse;width:100%;margin-top:18px;font-size:.88rem}th,td{padding:13px 8px;text-align:left;border-bottom:1px solid var(--line)}th{color:#787480;background:#faf9fc}
@media(min-width:1500px){.shell{width:min(1180px,calc(100% - 120px))}.hero{min-height:180px}.key{height:39px}}
@media(max-width:900px){.shell{width:calc(100% - 40px)}.topbar{gap:22px}.metric{padding:17px 12px;gap:9px}.metric-icon{width:36px;height:36px}.metrics{gap:9px}.key-row{gap:4px}.keyboard .sub{display:none}.tools{gap:10px}.hero img{margin:0;width:210px}.key{font-size:.68rem}}
@media(max-width:650px){.shell{width:calc(100% - 28px)}.topbar{height:auto;flex-wrap:wrap;gap:0;padding-top:12px}.brand{font-size:23px}.tools{order:1;font-size:.8rem}.tools button span{display:none}nav{width:100%;order:2;padding:10px 0 8px;gap:5px}.nav{font-size:.8rem;padding:6px 10px}.hero{min-height:126px}.hero h1{font-size:29px}.hero p{font-size:.84rem;line-height:1.6}.hero img{width:clamp(68px,22vw,130px);height:auto}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:13px}.metric{border-radius:11px;padding:12px 14px;gap:12px}.metric-label{font-size:.75rem}.value b{font-size:1.55rem}.value small{font-size:.72rem}.panel{padding:16px 13px;border-radius:12px}.panel-head{gap:5px}.heading-group{gap:6px}h2{font-size:.98rem}.heading-icon{width:26px;height:26px}#status{font-size:.65rem;padding:3px 5px}.durations button{font-size:.72rem;padding:4px 6px}#typeArea{padding:14px;margin:14px 0;min-height:110px}#passage{font-size:1.13rem}.hint{font-size:.73rem}.test-foot button{white-space:nowrap;padding:6px 7px;font-size:.74rem}.keys-panel{margin-top:13px}#keyboard{padding:6px 4px 8px;margin-top:12px}.key-row{gap:2px;margin-bottom:4px}.key{height:25px;font-size:clamp(5px,1.55vw,9px);border-radius:3px}.sub{display:none}.enter-note{font-size:.67rem}.key-legend{font-size:.7rem}.enter-note i{display:none}}
#passage .composing{color:#724dc2;text-decoration:underline;text-underline-offset:4px}
.pick-row,.dialog-actions,.reading-progress{display:flex;align-items:center;gap:8px}
.pick-row .sample-select{flex:1;min-width:0}
.pick-row button{border:1px solid var(--control-edge);background:#fff;border-radius:8px;min-height:36px;padding:6px 10px;color:#67499e}
#shuffle{display:grid;place-items:center}#editText{flex:1;text-align:left;font-size:.88rem}
.reading-progress{color:#60596f;font-size:.78rem;font-variant-numeric:tabular-nums;margin:0 0 15px;gap:10px;flex-wrap:wrap}
.reading-progress progress{flex:1;min-width:45px;height:6px;border:0;appearance:none;border-radius:5px;background:#edeaf4;overflow:hidden}
.reading-progress progress::-webkit-progress-bar{background:#edeaf4}.reading-progress progress::-webkit-progress-value{background:#9976d9}.reading-progress progress::-moz-progress-bar{background:#9976d9}
#editor{width:min(520px,94vw)}dialog form{text-align:left}dialog form label{display:block;margin:16px 0 8px;color:#666173;font-size:.9rem}
dialog form textarea,dialog form input{width:100%;color:inherit;line-height:1.5;padding:10px 12px;border:1px solid var(--control-edge);border-radius:8px;font:inherit}
dialog form textarea{resize:vertical}.dialog-actions{justify-content:flex-end;margin-top:16px}.dialog-actions button{width:auto;padding:8px 16px}.dialog-actions .apply{background:var(--purple);color:white}.dialog-actions button:disabled{opacity:.45}
.metric.purple{background:#f3efff;border-color:#d9cff0}
.metric.purple .value,.metric.purple .value small{color:#6240ad}
.practice-settings{display:flex;align-items:flex-end;gap:22px;flex-wrap:wrap;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.setting{display:grid;gap:6px;min-width:0}
.setting>span,.setting>label{font-size:.8rem;font-weight:650;color:#64616e}
.setting:nth-child(2){flex:1;min-width:145px}
.modes,.sample-select{display:flex;align-items:center}
.modes{gap:3px;padding:3px;border:0;border-radius:9px;background:#eeeff1}
.modes button{border-radius:6px;font-size:.86rem;padding:6px 13px;color:#605b69}
.modes button[aria-pressed="true"]{background:white;color:#333941;font-weight:650;box-shadow:0 1px 3px #26313d22}
.sample-select{position:relative}
.sample-select select{width:100%;appearance:none;border:1px solid var(--control-edge);background:white;border-radius:8px;color:#433b52;padding:7px 30px 7px 12px;font-size:.88rem;min-height:36px}
.sample-select i{position:absolute;right:10px;pointer-events:none;color:#756b83}
.inline-speed{display:flex;align-items:baseline;gap:6px;font-size:.8rem;color:#593b97;white-space:nowrap}
.inline-speed i{align-self:center;font-size:1.15rem}
.inline-speed b{font-size:1.6rem;font-variant-numeric:tabular-nums;letter-spacing:-.045em;line-height:1.2}
.inline-speed small{font-size:.8rem;font-weight:600}
@media(max-width:650px){
  .practice-settings{display:grid;grid-template-columns:1fr auto;gap:12px 10px;margin-bottom:14px;padding-bottom:14px}
  .setting:first-child{grid-column:1/-1}.modes button{flex:1}.setting:nth-child(2){min-width:0}
  .setting .durations button{min-height:27px}
  .test .panel-head{flex-wrap:wrap}.inline-speed{margin-left:auto;gap:4px}.inline-speed i{display:none}.inline-speed b{font-size:1.35rem}
}
@media(prefers-reduced-motion:reduce){*,*:before{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* The practice text and live reading are the visual center of the workspace. */
body{background:linear-gradient(155deg,#f0edf7 0,#f7f8fc 48%,#f6f7fa 100%)}
main.shell{padding-top:clamp(18px,2.6vw,36px)}
.metrics{grid-template-columns:1.32fr repeat(3,minmax(0,1fr));gap:12px}
.metric{min-width:0;border-radius:17px;padding:21px 18px}
.metric.purple{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(115deg,#453d55,#594e69);border-color:#554a64;color:white}
.metric.purple::after{content:"";position:absolute;inset:0;z-index:-1;background:url(keycaps.svg) right -16px center/44% auto no-repeat;opacity:.39}
.metric.purple .metric-icon{background:#ffffff1c;color:#f5eaff}
.metric.purple .value,.metric.purple .value small,.metric.purple .metric-label{color:white}
.metric .value{gap:7px}.metric .value b{font-size:clamp(2rem,3.2vw,2.9rem);line-height:1.12}
.metric .metric-label{font-size:.9rem}.metric .value small{font-size:.88rem}
.panel{border-radius:18px;box-shadow:0 4px 18px #30204408}
.test{padding:0 28px 22px}
.practice-settings{margin:0 -28px 22px;padding:18px 28px;background:#f9f9fa;gap:18px}
.setting>label,.setting>span{font-size:.85rem}
.setting select,.modes button{font-size:.92rem}
.pick-row button{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-height:38px;white-space:nowrap}
#editText{flex:none}
#addText{background:#eff0f2;border-color:transparent;color:#40464f;font-weight:650}
.pick-row button:hover,#addText:hover{background:#e9ebed}
.test .panel-head{flex-wrap:wrap}.test .heading-group{flex:1;min-width:0}
#sampleTitle{min-width:0;font-size:clamp(1.22rem,2.1vw,1.65rem);line-height:1.35;letter-spacing:-.05em;margin:0;overflow-wrap:anywhere}
#status{flex:none}
.inline-speed{border:1px solid #e8def7;border-radius:11px;background:#f7f3ff;padding:6px 10px;margin-left:auto}
.inline-speed b{font-size:clamp(1.65rem,2.3vw,2rem)}
#typeArea{display:flex;align-items:center;min-height:145px;margin:17px 0;padding:22px 26px;background:#f7f8f9;border:1px solid transparent}
#typeArea:has(#entry:focus-visible){border-color:#a6afb6}
#passage{font-size:clamp(1.5rem,2.5vw,2.05rem);line-height:1.65;letter-spacing:.012em;color:#625b71}
.reading-progress{margin-bottom:17px;font-size:.87rem}.reading-progress progress{height:7px}
#charsLeft{color:#5d477c;font-weight:650}
.keys-panel h2{font-size:1.15rem}.key{height:37px}
#saveError{font-size:.9rem;color:#a43749}
.length-count{display:block;text-align:right;margin-top:4px;color:#696674;font-variant-numeric:tabular-nums}
.length-count.over{color:#a32a47;font-weight:650}
#openQueue{border:0;border-radius:6px;padding:4px 9px;color:#535963;background:#eeeff1}
#queueDialog{width:min(690px,95vw);max-height:90dvh;overflow:auto;text-align:left;padding:24px}
.queue-columns{display:grid;grid-template-columns:1fr 1.2fr;gap:16px}
.queue-columns section{min-width:0}.queue-columns h3{font-size:1rem;margin:18px 0 6px}
.queue-scroll{height:clamp(160px,39dvh,350px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;background:#fbfafd;padding:8px;margin:0}
.queue-scroll h4{font-size:.8rem;color:#696271;margin:9px 5px 4px}
.queue-scroll label,.queue-scroll li{display:flex;align-items:center;gap:6px;padding:5px;border-radius:6px;font-size:.89rem;overflow-wrap:anywhere}
.queue-scroll label{cursor:pointer}.queue-scroll input{accent-color:#7451ae;flex:none}.queue-scroll label:has(:checked){background:#eee8f9}
.queue-scroll li{border-bottom:1px solid #eae5f1}.queue-scroll li span{flex:1;min-width:0}
.queue-scroll li button{width:27px;min-height:29px;flex:none;padding:2px;border:1px solid var(--control-edge);background:white;border-radius:5px;color:#514462}
.queue-scroll li button:disabled{opacity:.35}
.queue-scroll label small{margin-left:auto;white-space:nowrap;color:#706979;font-variant-numeric:tabular-nums}
#queueTotals{padding:10px 12px;border-radius:8px;background:#f1ecfa;color:#573e79;font-size:.9rem;font-weight:650}
@media(max-width:560px){#queueDialog{padding:16px}.queue-columns{grid-template-columns:1fr;gap:2px}.queue-columns h3{margin:9px 0 4px}.queue-scroll{height:19dvh;min-height:95px}}
#workSource{display:inline-block;margin-top:7px;font-size:.85rem;color:#655e70;text-underline-offset:3px}
#sampleTotal{border-left:1px solid #d9d7df;padding-left:10px;font-variant-numeric:tabular-nums}
.sample-labels{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:.85rem;font-weight:650;color:#64616e}
.sequence-choice{display:inline-flex;gap:5px;align-items:center;font-size:.78rem;cursor:pointer}
.sequence-choice input{margin:0;accent-color:#7555b4}
#liveKeys{margin:0 0 12px;padding:12px 0 0;border-top:1px solid #e7e4ee}
#liveKeys .heading-group{color:#625374;gap:7px}#liveKeys h2{font-size:.96rem}
.language select{max-width:11.5em}
.site-footer{padding:16px 0 28px;border-top:1px solid var(--line);color:#626371;font-size:.87rem;line-height:1.6}
.site-links{display:flex;flex-wrap:wrap;gap:8px 18px}
.site-links a,.policy a{color:#504961;text-underline-offset:3px}
.policy{max-width:720px;margin:32px auto;padding:24px;line-height:1.7}.policy h2{margin-top:22px}
#liveKeys .panel-head,#liveKeys .heading-group{flex-wrap:wrap}
#layout{max-width:100%;padding:4px 6px;color:#595463;background:#f4f5f6;border:1px solid transparent;border-radius:5px;font-size:.75rem}
#imeHelp{margin:5px 0 0;color:#675f70;font-size:.8rem}
#keyboard button.key{padding:0 2px;cursor:pointer}
#keyboard button.key:hover{border-color:#a5aab0}
#keyboard button.key[aria-pressed="true"]{background:#e4e6ea;border-color:#a5aab0}
#nextKeyLegend .extra-character{padding:1px 7px;background:white;border:1px solid var(--control-edge);border-radius:4px;font-weight:700}
html[lang="zh-Hant"] #keyboard .sub{display:inline}
.practice-settings .modes{flex-wrap:wrap}
#keyboard{margin-top:8px;padding:9px 10px 11px;background:#f0eff5}
.key-row{margin-bottom:5px}
#keyboard .key{height:clamp(24px,3.5dvh,36px);color:#484453}
#keyboard .key.hit{color:#32213f}#keyboard .key.enter{color:#69458f}
#keyboard .key.enter:not(.hit){
  background:#eaeaf1;border-color:#d9d8e2;box-shadow:0 2px 0 #d6d5e1;color:#595763;
}
#keyboard .key.next-key:not(.hit):not(.enter),#nextKeyLegend{
  background:#e4e0ed;color:#4e455d;border:1px solid transparent;
}
#keyboard .key.next-key:not(.hit):not(.enter){box-shadow:0 2px 0 #c8c7ce}
#keyboard .key.next-key .sub{display:inline;color:inherit;font-weight:700}
#nextKeyLegend{padding:2px 7px;border-radius:5px;font-size:.75rem;font-weight:600;white-space:nowrap}
#keyboard .key.enter.next-key:not(.hit){border-color:transparent}
#passage .passage-enter{
  display:inline-block;margin-inline-start:.45em;padding:.18em .55em;
  border:1px solid #ccc8d4;border-bottom-width:2px;border-radius:6px;
  color:#676270;background:#f5f4f7;vertical-align:.16em;
  font:600 .85rem/1.35 system-ui,sans-serif;letter-spacing:normal;white-space:nowrap;
}
.enter-ready #passage .passage-enter,.enter-ready #keyboard .key.enter:not(.hit){
  color:white;background:#5e556b;border-color:transparent;box-shadow:0 2px 0 #4e4759;
}
#passage .cursor{background:#eae6f1;border-radius:2px}
#typeArea{display:block;min-height:0;padding:16px 21px;margin:14px 0 10px}
#passage{max-height:4.95em;min-height:3.3em;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.test .reading-progress{margin-bottom:12px}
@media(min-width:701px) and (max-height:900px){
  main.shell{padding-top:14px}
  .metrics{margin-bottom:12px}
  .metric{padding-block:12px}
  .practice-settings{margin-bottom:13px;padding-block:12px}
  #typeArea{padding-block:11px}
  .test{padding-bottom:12px}
}
@media(min-width:701px) and (max-height:760px){
  .topbar{height:56px}
  main.shell{padding-top:10px}
  .metric{padding-block:8px}
  .metric .value b{font-size:2rem}
  #passage{max-height:3.3em}
  #liveKeys{padding-top:8px;margin-bottom:8px}
  #keyboard{padding-block:6px 8px}
  .key-row{margin-bottom:4px}
}
.sample-select select:hover,#layout:hover{border-color:#aeb4ba}
.test:focus-within{border-color:var(--line)}
.metrics .metric:not(.purple) .metric-icon{background:#f2f1f5;color:#706b79}
.inline-speed{background:#f6f5f8;border-color:transparent;color:#625c6d}
#practiceView[data-pace="slow"]{--pace-ink:#736b7d;--pace-light:#d9d4df}
#practiceView[data-pace="steady"]{--pace-ink:#594f65;--pace-light:#ede9f2}
#practiceView[data-pace="fast"]{--pace-ink:#43344f;--pace-light:#fff}
#speed{color:var(--pace-light,inherit)}
#inlineSpeed{color:var(--pace-ink,inherit)}
#practiceView[data-accuracy="low"] #accuracy,#practiceView[data-clock="urgent"] #time{color:#9a414d}
@media(prefers-reduced-motion:no-preference){
  #speed,#inlineSpeed,#accuracy,#time{transition:color 180ms ease-out}
}
@media(max-width:900px){
  .metric{padding:16px 12px}.practice-settings{gap:12px}.modes button{padding:6px 9px}
  .setting:nth-child(2){min-width:200px}
}
@media(max-width:700px){
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.metric .value b{font-size:1.9rem}
  .metric{padding:11px 13px}.metric .metric-label{font-size:.8rem}
  .test{padding:0 14px 15px}.practice-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(88px,auto);gap:10px;margin:0 -14px 15px;padding:13px 14px}
  .setting:first-child{grid-column:1/-1}.setting:nth-child(2){min-width:0}.modes button{flex:1}
  .setting select{font-size:.84rem}.pick-row{gap:4px}.pick-row button{padding:6px}
  #addLabel{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #typeArea{padding:17px 15px;min-height:116px}#passage{font-size:clamp(1.35rem,4.8vw,1.6rem)}
  .reading-progress{font-size:.77rem}.inline-speed{padding:4px 7px;gap:3px}.key{height:27px}
}
