:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#203137;background:#f4f7f7;font-size:15px;letter-spacing:0;color-scheme:light;--teal:#117d79;--line:#dce5e5;--muted:#627479}
#experiment-settings{min-width:0;margin:18px 0 0;padding:12px 0 0;border:0;border-top:1px solid var(--line);grid-column:1/-1}#experiment-settings legend{padding:0 8px 0 0;font-size:13px;font-weight:600}#experiment-settings label{margin-top:8px}#experiment-count{font-size:12px;color:var(--muted);margin:12px 0 0;line-height:1.6}.history td:nth-child(3){min-width:150px;max-width:260px;overflow-wrap:anywhere}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,select,input,textarea{border:1px solid #cad7d8;border-radius:6px;background:white;color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:42px;cursor:pointer;font-weight:600;line-height:1.35}button:hover:not(:disabled){filter:brightness(.96)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #77bbd6;outline-offset:3px}button svg{width:18px;height:18px;flex-shrink:0}select,input{width:100%;min-height:42px;padding:8px 10px;min-width:0}label{display:block;margin:18px 0 7px;font-size:13px;font-weight:600}p{line-height:1.5}h1,h2,p{margin-top:0}h1{font-size:21px;line-height:1.4;margin-bottom:6px}h2{font-size:19px;line-height:1.35;margin-bottom:6px}a{color:inherit;text-decoration:none}.topbar{min-height:80px;display:flex;align-items:center;justify-content:space-between;padding:14px 32px;gap:16px;background:white;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-weight:700;font-size:16px;min-width:0}.brand img{border-radius:8px}.brand small{display:block;font-size:12px;color:var(--muted);font-weight:500;margin-top:4px}.header-end{display:flex;align-items:center;gap:18px}.header-end select{width:105px}.lab-label{font-size:12px;color:var(--teal);white-space:nowrap}main{max-width:1600px;padding:24px 32px;margin:auto}.workspace{display:grid;grid-template-columns:264px minmax(0,1fr);gap:28px}.settings{padding:8px 0}.scope{font-size:13px;color:var(--muted);margin-bottom:24px}.wide{width:100%;margin-top:10px}.primary{background:var(--teal);border-color:var(--teal);color:white}.secondary{background:white}.icon-button{width:42px;padding:10px;flex-shrink:0}.range{display:grid;grid-template-columns:1fr 1fr;gap:12px}.device-row{display:flex;gap:6px}.device-row select{min-width:0}.meter-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:14px}meter{width:100%;height:12px;margin-top:5px;accent-color:var(--teal)}.check{display:flex;align-items:flex-start;gap:9px;line-height:1.5;font-weight:400;font-size:13px}.check input{width:16px;height:16px;min-height:0;flex-shrink:0;accent-color:var(--teal);margin:2px 0}.controls{display:flex;gap:8px;margin-top:22px}.controls .primary{flex:1}.secondary-controls{display:flex;gap:8px;margin-top:8px}.secondary-controls>button:first-child{flex:1}.diagnostics{border-top:1px solid var(--line);margin-top:26px;padding-top:16px;color:var(--muted);font-size:12px}.diagnostics summary{cursor:pointer;font-weight:600}.diagnostics dl{display:grid;grid-template-columns:1fr 1fr;gap:10px}.diagnostics dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.practice{min-width:0;background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden;align-self:start}.practice-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px 16px}.practice-heading>div:first-child{min-width:0}.practice-heading h2{overflow-wrap:anywhere}.practice-heading p{color:var(--muted);font-size:12px;margin:0}.badge{font-size:12px;color:var(--teal);background:#eef7f4;border-radius:4px;padding:7px 10px;max-width:45%;flex-shrink:0;overflow-wrap:anywhere}.badge[data-state=error]{color:#a8402d;background:#fff0ea}.target-strip{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:14px 24px;background:#f4f8f8;border-top:1px solid var(--line)}.target{display:flex;flex-direction:column;gap:6px;min-width:0}.target>span{font-size:12px;color:var(--muted)}.target strong{font-size:25px;line-height:1.3;color:var(--teal);overflow-wrap:anywhere;min-height:33px}.target-position{display:flex;flex-direction:column;text-align:right;font-size:13px;gap:8px;color:var(--muted);flex-shrink:0}#progress-count{font-variant-numeric:tabular-nums}progress{display:block;width:100%;height:3px;border:0;appearance:none}progress::-webkit-progress-bar{background:#e7eeee}progress::-webkit-progress-value{background:var(--teal)}.score-scroll{max-height:420px;min-height:260px;overflow:auto;padding:12px 18px;scrollbar-gutter:stable}.score-scroll svg{max-width:100%}.feedback-bar{display:flex;justify-content:space-between;gap:16px;padding:14px 24px;border-top:1px solid var(--line);min-height:53px;align-items:center;font-size:13px}.feedback-bar>span:first-child{color:var(--teal)}.heard{display:flex;align-items:center;gap:10px;color:var(--muted);min-width:0}.heard strong{color:#b4613e;font-weight:500;overflow-wrap:anywhere}.keyboard-wrap{border-top:1px solid var(--line);padding:16px 24px;background:#fafbfb;overflow:auto}#keyboard{height:74px;position:relative;min-width:300px;max-width:620px;margin:auto;display:flex}.key{position:relative;flex:1;background:white;border:1px solid #bdcbcf;border-radius:0 0 3px 3px;height:74px;min-width:0;display:flex;align-items:flex-end;justify-content:center;padding-bottom:6px;font-size:9px;color:#60747b}.key.black{position:absolute;height:46px;background:#334349;border-color:#334349;z-index:1;color:white;align-items:flex-end;width:2.5%;transform:translateX(-50%)}.key.expected{background:#caebe5;border-color:#168f81;color:#07554e}.key.heard{background:#f4c694;border-color:#d48a36;color:#583710}.key.expected.heard{background:#58b4a3}.section-heading{display:flex;align-items:center;gap:12px;margin-bottom:15px}.section-heading h2{margin:0}.section-heading span{font-size:12px;color:var(--muted)}.history{margin-top:32px;border-top:1px solid var(--line);padding-top:24px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{font-size:12px;color:var(--muted);font-weight:500;background:#edf2f2}td,th{padding:12px 14px;border-bottom:1px solid var(--line)}td{vertical-align:middle}td:first-child{white-space:nowrap;font-variant-numeric:tabular-nums}.actions{display:flex;gap:5px}.actions button{height:32px;min-height:32px;width:34px;padding:6px}.actions svg{width:15px;height:15px}#empty-history{font-size:13px;color:var(--muted);padding:24px 14px}#notice{padding:12px 16px;margin-bottom:20px;border-left:3px solid #c67a31;background:#fff2df;font-size:14px;line-height:1.6;overflow-wrap:anywhere}dialog{width:min(520px,calc(100% - 32px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid var(--line);border-radius:8px;color:inherit}dialog::backdrop{background:#14242666}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.dialog-heading h2{margin:0}dialog p{color:var(--muted);font-size:13px;margin-top:14px}dialog textarea{width:100%;padding:10px;resize:vertical}dialog audio{width:100%}.dialog-actions{display:flex;justify-content:flex-end;margin-top:20px}[hidden]{display:none!important}
#score{min-width:840px}
.metronome{grid-column:1/-1;min-width:0;border:0;border-top:1px solid var(--line);padding:10px 0 0;margin:20px 0 0}
.metronome legend{font-size:13px;font-weight:600;padding-right:8px}.metronome-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px}.metronome-toggle label{margin:4px 0}.metronome>label{display:flex;justify-content:space-between;margin:10px 0 6px}.metronome input[type=range]{padding:0;accent-color:var(--teal)}#metronome-error{font-size:12px;color:#a8402d;margin:8px 0 0}#metronome-pulse{width:22px;height:6px;background:#d5e3e1;flex-shrink:0}#metronome-pulse.beat{animation:tick .16s ease-out}@keyframes tick{from{background:#117d79}to{background:#d5e3e1}}
@media(min-width:1500px){.score-scroll{max-height:520px}.workspace{grid-template-columns:280px minmax(0,1fr)}}
@media(max-width:900px){main{padding:18px}.workspace{grid-template-columns:220px minmax(0,1fr);gap:18px}.topbar{padding:14px 18px}.practice-heading,.target-strip,.feedback-bar{padding-left:16px;padding-right:16px}.feedback-bar{align-items:flex-start;flex-direction:column;gap:8px}.score-scroll{padding:10px 6px}.target strong{font-size:22px}}
@media(max-width:640px){.topbar{min-height:70px;padding:12px 16px}.brand{font-size:14px;gap:8px}.brand img{height:34px;width:34px}.lab-label{display:none}.header-end select{width:84px}.workspace{display:flex;flex-direction:column;gap:18px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.settings h1,.settings .scope,.settings>label:not(.check),#exercise,#upload,.range,.device-row,.meter-row,.settings meter,.check,.diagnostics{grid-column:1/-1}.settings h1{font-size:20px}.scope{margin-bottom:4px}.settings>label{margin-top:14px}.controls,.secondary-controls{margin-top:16px}.secondary-controls #restart{font-size:13px;padding:8px}.diagnostics{margin-top:16px}.practice{width:100%}.practice-heading{padding:16px}.practice-heading h2{font-size:17px}.target-strip{gap:10px}.target strong{font-size:21px}.target-position{font-size:12px}.score-scroll{max-height:460px;min-height:220px}.keyboard-wrap{padding:12px}.history{margin-top:24px}th,td{padding:10px}main{padding:16px}.badge{max-width:40%;font-size:11px}}
