:root{color-scheme:light;--pink:#f47eb3;--blue:#63c9f8;--ink:#202b39}*{box-sizing:border-box}body{margin:0;background:#f2f4f7;color:var(--ink);font:16px/1.5 system-ui,sans-serif}main{max-width:1360px;margin:auto;padding:28px}header,.toolbar,.midi,.turn,nav,.legend{display:flex;align-items:center;gap:18px;flex-wrap:wrap}header,.turn{justify-content:space-between}h1{font-size:30px;margin:0 0 16px}h2{margin:5px 0;font-size:24px}p{margin:8px 0}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#596a7c}.badge{padding:6px 12px;border:1px solid #ccd6e0;border-radius:24px}.toolbar,.midi{padding:14px 0}.toolbar label{font-size:14px}select,input,button{font:inherit;border:1px solid #bcc8d4;border-radius:7px;padding:8px;background:white;color:var(--ink)}select{max-width:360px}input[type=number]{width:82px}button{cursor:pointer}button:disabled{opacity:.42;cursor:default}.primary{background:var(--ink);color:white}.lesson{border-radius:14px;background:white;padding:18px 24px;margin:12px 0}.notes{font-size:21px}.progress{display:flex;gap:8px;flex-wrap:wrap}.chip{font-size:13px;padding:4px 10px;border-radius:16px;background:#ecf0f4}.chip.current{background:#dcedfa;border:1px solid #63aee0}.chip.completed{background:#e3f0e4}.turn{margin:20px 0 10px;min-height:90px}.legend{font-size:13px}.pink{color:#a32b69}.blue{color:#17688e}#keyboard-scroll{overflow-x:auto;padding:6px 0 14px}#piano{position:relative;height:220px}.key{position:absolute;border-radius:0 0 5px 5px;touch-action:none;padding:0;user-select:none}.white{width:42px;height:210px;background:white;border:1px solid #687481;z-index:1}.black{width:28px;height:130px;background:#202733;border:1px solid #131a22;z-index:2;color:white}.key span{position:absolute;bottom:8px;width:100%;left:0;font-size:10px}.key small{position:absolute;bottom:35px;left:0;width:100%;font-size:10px;font-weight:bold}.key.teacher{background:var(--pink);color:#242332}.key.student{background:var(--blue);color:#132f44}.key.teacher.student{background:linear-gradient(90deg,var(--pink) 50%,var(--blue) 50%)}.live{font-size:14px;min-height:24px}nav{margin:16px 0}#feedback{padding:18px 22px;background:white;border-left:4px solid #9aaabe;border-radius:8px;min-height:70px}#feedback ul{margin:8px 0}details{margin:24px 0;padding:16px;background:#e8edf2;border-radius:10px}.settings{display:flex;gap:14px;flex-wrap:wrap;margin:14px 0}.settings label{font-size:13px;display:flex;flex-direction:column}pre{max-height:280px;overflow:auto;font-size:12px;white-space:pre-wrap}footer{font-size:12px;color:#596a7c;margin:24px 0}@media(max-width:700px){main{padding:16px}h1{font-size:24px}.toolbar{gap:10px}.lesson{padding:16px}select{max-width:270px}.legend{gap:10px}}

.report-header{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}.report-header strong{margin-right:auto}#copy-status{font-size:13px;color:#36566b}

.accuracy-score{font-size:36px;font-weight:750;line-height:1.2;margin:8px 0}#feedback{scroll-margin-top:16px}#lesson-message{font-size:14px;color:#496174}

.recent-results{font-size:14px;margin:12px 0}.recent-results ol{display:flex;gap:8px 20px;flex-wrap:wrap;list-style:none;padding:0;margin:6px 0}.recent-results li{padding:5px 10px;background:#e3eaf1;border-radius:6px}

.green{color:#367847}.key.start-hint{box-shadow:inset 0 0 0 4px #91dca0;background:#dff6e4;color:#203b29}.chip.current{font-weight:700}.coach-effect{font-size:24px;margin-right:10px}#countdown{font-weight:650;color:#496174}#orientation{font-size:18px}#feedback[data-type="completion"]{border-color:#d2ad44;background:#fffbea}#feedback[data-type="success"],#feedback[data-type="progression"]{border-color:#8bc99b}#feedback[data-type="encouragement"]{border-color:#9dafcf}@media(prefers-reduced-motion:no-preference){.coach-effect{display:inline-block;animation:coach-pop .35s ease-out}@keyframes coach-pop{from{transform:scale(.8)}to{transform:scale(1)}}}

/* Fixed stage: changing instructions and chord labels never move the piano. */
.lesson-stage{height:470px;display:flex;flex-direction:column;overflow:hidden;margin:12px 0 0}.lesson-stage .lesson{flex:1;min-height:0;overflow:auto;margin:0}.lesson-stage .turn{flex:0 0 150px;margin:10px 0 0;align-content:flex-start;overflow:auto}.lesson-stage .turn>div:first-child{flex:1;min-width:220px}.lesson-stage #orientation{margin:0 0 10px}.lesson-stage #skill{font-size:22px}.lesson-stage #countdown{min-height:24px}.toolbar label{white-space:nowrap}#learner-name{width:160px}#live{height:46px;overflow:auto}#feedback{min-height:100px}@media(max-width:700px){.lesson-stage{height:600px}.lesson-stage .turn{flex-basis:195px}.lesson-stage .legend{flex-basis:100%}}

.midi{height:100px;overflow:auto;align-content:flex-start}.midi select{width:220px}@media(max-width:700px){.midi{height:170px}}
