:root{--bg:#fafaf7;--ink:#1d2327;--mute:#6b7378;--card:#fff;--line:#dcdcd4;--ok:#1e8e3e;--bad:#d93025;--miss:#9aa0a6;--accent:#2f5d8a}*{box-sizing:border-box}body{background:var(--bg);color:var(--ink);margin:0;font:16px/1.5 -apple-system,PingFang TC,Noto Sans TC,sans-serif}#app{max-width:480px;margin:0 auto;padding:16px}h1{margin:4px 0 2px;font-size:22px}h2{margin:20px 0 8px;font-size:17px}.sub{color:var(--mute);margin:0 0 16px}.card{background:var(--card);border:1px solid var(--line);border-radius:12px;margin-bottom:14px;padding:14px}button,.btn{font:inherit;background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:10px;min-height:46px;padding:12px 16px}button.secondary,.btn.secondary{color:var(--accent);background:#e9eef3}button.rec{background:var(--bad)}button:disabled{opacity:.5}.row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.row>*{text-align:center;flex:140px}.file{display:block}.file input{width:100%}.err{color:#8a1f17;background:#fdecea;border-radius:10px;margin:10px 0;padding:10px 12px}.warn{color:#7a5a00;background:#fff4d6;border-radius:10px;margin:10px 0;padding:10px 12px}.status{color:var(--mute);font-size:14px}.meter{background:#e9eef3;border-radius:4px;height:8px;overflow:hidden}.meter>i{background:var(--ok);width:0;height:100%;display:block}.scores{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.score{text-align:center;background:#f3f5f7;border-radius:10px;padding:10px}.score b{font-size:28px;line-height:1.1;display:block}.score span{color:var(--mute);font-size:13px}.score.total{background:#e8f1f9;grid-column:1/-1}.meta{color:var(--mute);margin-top:10px;font-size:14px}svg.staff{width:100%;height:auto;display:block}.staff .sl,.staff .ledger{stroke:#555;stroke-width:1px}.staff .clef{fill:#333;font-size:40px}.staff .ts{fill:#333;font-size:14px;font-weight:700}.staff .mnum{fill:var(--mute);font-size:8px}.staff .acc{font-size:11px}.note .head{fill:currentColor;stroke:currentColor;stroke-width:1.2px}.note .head.hollow{fill:#fff}.note .stem,.note .flag,.note .ledger{stroke:currentColor;stroke-width:1.2px;fill:none}.note .dot,.note .acc{fill:currentColor}.note.st-pending,.note.st-correct{color:var(--ok)}.note.st-pending{color:#222}.note.st-missed{color:var(--miss)}.note.st-uncovered{color:#d3d6d9}.note.st-wrong{color:var(--bad)}.legend{color:var(--mute);flex-wrap:wrap;gap:12px;font-size:13px;display:flex}.legend i{vertical-align:middle;border-radius:50%;width:10px;height:10px;margin-right:4px;display:inline-block}ul.hist{margin:0;padding:0;list-style:none}ul.hist li{border-bottom:1px solid var(--line);align-items:center;gap:8px;padding:8px 0;font-size:14px;display:flex}ul.hist li .t{flex:1}ul.hist button{min-height:32px;padding:6px 10px;font-size:13px}audio{width:100%;margin-top:8px}
