:root{--bg:#fafaf9;--fg:#1c1917;--muted:#a8a29e;--line:#e7e5e4;--accent:#2563eb;--accent-faded:#bfdbfe;--error:#dc2626}@media (prefers-color-scheme:dark){:root{--bg:#1c1917;--fg:#f5f5f4;--muted:#78716c;--line:#292524;--accent:#60a5fa;--accent-faded:#1e3a5f;--error:#f87171}}*{box-sizing:border-box}body{background:var(--bg);min-height:100vh;color:var(--fg);flex-direction:column;margin:0;font-family:ui-monospace,SF Mono,Menlo,monospace;display:flex}.hidden{display:none!important}header{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;padding:.75rem 1.5rem;display:flex}.logo{font-weight:700}button{font:inherit;color:var(--fg);border:1px solid var(--line);cursor:pointer;background:0 0;border-radius:4px;padding:.25rem .75rem}button:hover,button.active{border-color:var(--accent);color:var(--accent)}h2{text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin:0 0 .75rem;font-size:.8rem;font-weight:600}#trainer{flex:1;grid-template-columns:16rem 1fr 16rem;display:grid}main{flex-direction:column;justify-content:center;width:100%;max-width:48rem;margin:0 auto;padding:1rem 1.5rem;display:flex}#text{white-space:pre-wrap;font-size:1.75rem;line-height:1.6}#text .todo{color:var(--muted)}#text .done{color:var(--fg)}#text .current{color:var(--muted);border-bottom:2px solid var(--accent)}#text.error .current{animation:.25s flash}@keyframes flash{0%{color:var(--error);border-color:var(--error)}}#status{color:var(--muted);margin-top:1.5rem}aside{border-left:1px solid var(--line);padding:1rem 1.5rem;overflow-y:auto}#top-list{margin:0;padding:0;font-size:.85rem;list-style:none}#top-list li{grid-template-columns:3.5rem 1fr 3rem 1rem;align-items:center;gap:.5rem;padding:.15rem 0;display:grid}#top-list .bar{border-radius:2px;height:.4rem}#top-list .bar .raw{background:var(--accent-faded);border-radius:2px;height:100%;display:block}#top-list .bar .eff{background:var(--accent);border-radius:2px;height:100%;display:block}#top-list li{transition:opacity .4s}#top-list .bar .raw,#top-list .bar .eff{transition:width .35s}#top-list li.enter{animation:.4s ease-out enter}#top-list li.up .score{animation:.9s ease-out up}#top-list li.down .score{animation:.9s ease-out down}@keyframes enter{0%{opacity:0}}@keyframes up{0%{color:var(--error)}}@keyframes down{0%{color:var(--accent)}}@media (prefers-reduced-motion:reduce){#top-list li,#top-list .bar .raw,#top-list .bar .eff{transition:none}#top-list li.enter,#top-list li.up .score,#top-list li.down .score{animation:none}}.resting{opacity:.4}#top-list li.resting .gram{text-decoration:line-through}.legend{color:var(--muted);margin-top:1rem;font-size:.75rem;line-height:1.7}.swatch{vertical-align:middle;border-radius:2px;width:.8rem;height:.4rem;display:inline-block}.swatch.solid{background:var(--accent)}.swatch.faded{background:var(--accent-faded);margin-left:.5rem}.resting-sample{opacity:.4;text-decoration:line-through}.freq{text-align:center}.freq.boost{color:var(--accent)}.freq.lower{color:var(--muted)}#top-list .score,td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}.empty{color:var(--muted)}#top-list li.empty{display:block}@media (width<=960px){#trainer{grid-template-columns:1fr}#trainer main{order:-1}aside,aside.left{border-left:0;border-right:0;border-top:1px solid var(--line)}}header nav{gap:.5rem;display:flex}#stats,#language{width:100%;max-width:56rem;margin:0 auto;padding:1.5rem}#stats-filter{flex-wrap:wrap;gap:.5rem;margin-bottom:1rem;display:flex}.table-scroll{overflow-x:auto}#stats-table{border-collapse:collapse;width:100%;font-size:.9rem}#stats-table td.num{white-space:nowrap}#stats-table th{text-align:left;color:var(--muted);border-bottom:1px solid var(--line);padding:.4rem .75rem;font-weight:600}#stats-table td{border-bottom:1px solid var(--line);padding:.25rem .75rem}.spark{display:block}.spark polyline{fill:none;stroke:var(--accent);stroke-width:1.5px}.spark circle{fill:var(--accent)}#language{max-width:40rem;line-height:1.6}#language .hint{color:var(--muted);font-size:.85rem}.language-actions{flex-wrap:wrap;gap:.75rem;margin:1.25rem 0;display:flex}.upload{display:inline-block;position:relative}.upload input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.upload span{border:1px solid var(--accent);color:var(--accent);border-radius:4px;padding:.25rem .75rem;display:inline-block}.upload:focus-within span{outline:2px solid var(--accent);outline-offset:2px}#language-message{min-height:1.6em}aside.left{border-left:0;border-right:1px solid var(--line);font-size:.8rem}#last-round h3{color:var(--muted);margin:1.25rem 0 .4rem;font-size:.75rem;font-weight:600}#last-round .round-summary{margin:0}#last-round .note{color:var(--muted);margin:.4rem 0 0;line-height:1.5}.rhythm{width:100%;height:auto;display:block;overflow:visible}.rhythm .bar{fill:var(--accent)}.rhythm .iqr{fill:var(--accent-faded);opacity:.5}.rhythm .hit{fill:#0000}.rhythm g:hover .bar{opacity:.75}.rhythm .axis{stroke:var(--line);stroke-width:1px}.rhythm .median{stroke:var(--fg);stroke-width:1px;stroke-dasharray:2 2}.rhythm text{fill:var(--muted);font-family:inherit;font-size:9px}.rhythm .median-label{fill:var(--fg)}.changes{margin:0;padding:0;list-style:none}.changes li{grid-template-columns:2.5rem 1fr 3.5rem;gap:.4rem;padding:.1rem 0;display:grid}.changes .num,.changes .delta{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.changes .better{color:var(--accent)}.changes .worse{color:var(--error)}
