.loading-screen{position:fixed;inset:0;z-index:100;display:grid;place-content:center;justify-items:center;gap:20px;color:#fff;background:#061a3c}.loading-screen i{width:42px;height:42px;border:4px solid #355b7f;border-top-color:#ffe17a;border-radius:50%;animation:loading-spin 1s linear infinite}@keyframes loading-spin{to{transform:rotate(360deg)}}
.learning-host{position:fixed;inset:0;overflow:auto;color:#eaf6ff;background:linear-gradient(140deg,#041020,#103768);font:16px/1.5 system-ui}.learning-host *{box-sizing:border-box}.learning-app{max-width:1200px;margin:auto;padding:20px}.learning-app>header{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.learning-app h1{flex:1}.learning-app button,.learning-app select{padding:10px 15px;border:1px solid #70b4d5;border-radius:10px;background:#153e67;color:#fff;font:inherit;cursor:pointer}.learning-app button:hover{background:#22638b}.learning-app button:disabled{opacity:.65;cursor:default}.learning-app h2{color:#ffdf83}.quiz-controls{display:flex;gap:15px;flex-wrap:wrap;align-items:end}.quiz-controls label{display:grid;gap:5px}.quiz-controls select{max-width:100%}.quiz-board,.diary-intro,.diary-list article,.quiz-question,.quiz-finish{padding:20px;border:1px solid #3977a4;border-radius:16px;margin:16px 0;background:#08213e}.quiz-board ol{padding:0;list-style:none}.quiz-board li{display:flex;gap:20px;padding:12px;border-bottom:1px solid #335570}.quiz-board li span{flex:1}.quiz-progress{display:flex;justify-content:space-between;gap:15px;margin-top:20px}.quiz-staff{position:relative;min-height:0;background:#fffdf5;border-radius:12px;overflow:auto;color:#08204a}.quiz-staff:empty{display:none}.quiz-staff svg{min-width:540px;display:block}.quiz-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:15px}.quiz-choices button{min-width:0;overflow:hidden}.quiz-choices button:has(svg){background:#fffdf5;padding:0;color:#08204a}.quiz-choices .correct{outline:3px solid #55e5a3}.quiz-question [data-next]{background:#f9da7b;color:#06203b}.placement-target.selected{background:#51b4ff88!important;box-shadow:0 0 0 2px #2185c1}.diary-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr));gap:12px}.diary-list article{margin:0}.homework-badge{background:#ffdc72;color:#08234a;border-radius:50%;padding:2px 6px;font-size:11px}.notation-octave-mark{position:absolute;left:24%;right:8%;width:auto!important;border-top:1px dashed #08204a;border-right:1px solid #08204a;text-align:left!important;font-style:italic;pointer-events:none}.notation-octave-mark.octave-above{top:12px!important;bottom:auto}.notation-octave-mark.octave-below{top:auto!important;bottom:12px;border-top:0;border-bottom:1px dashed #08204a}.piano-notation-readout{display:flex;flex-wrap:wrap;gap:12px;grid-column:1/-1}.piano-notation-readout>article{flex:1;min-width:260px;background:#fffdf5;border-radius:12px;color:#08204a;overflow:hidden}.piano-notation-readout h3{margin:5px 12px}.piano-switches{display:flex;flex-wrap:wrap;gap:16px}.piano-shell{height:auto!important;min-height:100%;grid-template-rows:auto auto auto auto auto!important;align-content:start}.piano-scroll{min-height:200px;height:clamp(200px,35vh,350px)}
@media(max-width:650px){.learning-app{padding:10px}.learning-app h1{font-size:1.3rem}.quiz-choices{grid-template-columns:1fr}.quiz-question{padding:10px}.learning-app>header button{font-size:.75rem}.orientation-guard{display:none!important}.note-lab{padding:6px!important}.lab-header{grid-template-columns:auto 1fr auto!important}.lab-score{display:none!important}.lab-brand h1{font-size:1rem!important}.lab-mode-tabs{overflow:auto!important;display:flex!important}.lab-mode-tabs button{min-width:75px}.exercise-content{grid-template-columns:1fr!important}.lab-workspace{overflow:auto!important}.piano-heading{flex-wrap:wrap}.piano-notation-readout>article{min-width:220px}}
@media(prefers-reduced-motion:reduce){.loading-screen i{animation:none}}
.music-reference{display:block!important;overflow:auto!important}.reference-controls,.reference-stage{margin-bottom:10px}.reference-stage{display:flex!important;flex-direction:column;gap:10px;height:auto!important;min-height:0!important;overflow:visible}.reference-stage>*{flex-shrink:0}.reference-staff.notation-surface{height:205px!important;min-height:205px;overflow:auto!important}.reference-staff.notation-surface>svg{height:205px!important;min-width:650px}.reference-piano-frame{height:180px!important;min-height:180px}.reference-library{display:block}.reference-list{max-height:300px}.reference-stage .reference-title{display:block}
.theory-reference [data-staff].notation-surface{height:205px}.quiz-staff.notation-surface{height:260px}.piano-notation-readout .notation-surface{height:215px}.quiz-choices button.notation-surface{height:175px}
.placement-overlay .placement-target{height:5px!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;transform:translateY(-50%);touch-action:none}.placement-overlay{touch-action:none}
@media(orientation:portrait){#app{visibility:visible!important}.lms-shell-ui{visibility:visible!important}.orientation-guard{display:none!important}}
/* 3.6: a stable playing area and stable quiz geometry. */
.mode-piano{overflow-anchor:none}.reference-naming select{font:inherit;min-height:30px;color:#fff;background:#092e54;border:1px solid #6badc9;border-radius:7px;padding:4px}.reference-switches output{font-size:.75rem;min-width:160px;color:#ffe491}.vf-notehead.is-sounding{filter:drop-shadow(0 0 3px currentColor)}.key-grade-controls{display:flex;gap:15px;flex-wrap:wrap;align-items:center;padding:12px;background:#08213e;border:1px solid #3977a4;border-radius:12px}.key-grade-controls label{display:flex;align-items:center;gap:8px}.key-grade-controls p{flex-basis:100%;margin:0}
.learning-host{overflow-y:scroll;scrollbar-gutter:stable;overflow-anchor:none}.learning-app{min-height:100%;padding:16px 20px}.learning-app>header{min-height:62px}.learning-app>header h1{margin:8px 0;font-size:1.55rem}.quiz-progress{min-height:32px;align-items:center;font-variant-numeric:tabular-nums}.quiz-progress output{min-width:80px;text-align:right}.quiz-progress>span{max-width:45%;text-align:right}.quiz-question{margin:10px 0;padding:16px;min-height:475px;overflow-anchor:none}.quiz-question h2{height:56px;overflow:auto;margin:0 0 8px;font-size:1.3rem;line-height:1.3}.question-stage{height:220px;min-height:220px;display:grid;align-content:center;overflow:auto}.question-stage .quiz-staff.notation-surface{height:210px}.question-stage .quiz-staff:has(.placement-overlay){height:230px}.quiz-choices{min-height:108px;margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-content:start}.quiz-choices button{min-height:48px;font-size:.95rem}.quiz-choices:has(svg){min-height:158px;grid-template-columns:repeat(4,minmax(0,1fr))}.quiz-choices button.notation-surface{height:150px}.quiz-choices svg{height:150px;width:100%}.quiz-instruction{min-height:24px;font-size:.8rem;margin:8px 0 0}.learning-app .quiz-start{background:linear-gradient(#ffe995,#ffc844);color:#092440;border:2px solid #fff0b0;font-weight:850;box-shadow:0 0 0 3px #ffda6033,0 5px 18px #0004;min-height:56px}.learning-app .quiz-start:hover{background:#ffec9d;box-shadow:0 0 0 4px #ffda6055}.learning-app .homework-card{display:block;text-align:left;padding:18px;border:1px solid #4e89b2;border-radius:16px;background:#08213e}.homework-card h3{color:#ffe491;margin:8px 0}.homework-card p{margin:8px 0}.homework-card>strong{color:#83e9cb}.homework-card-status{font-size:.75rem;color:#a9deff}.review-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.review-comparison>section{min-width:0;border:1px solid #3977a4;border-radius:12px;padding:12px;background:#092a49}.review-comparison h3{margin:0;color:#ffdf83}.review-note{background:#fffdf5;color:#08204a;overflow:auto;border-radius:8px}.review-note.notation-surface{height:200px}.review-note svg{width:100%;height:200px}.review-explanation{padding:15px;border-left:4px solid #79dfbb;background:#0d393e;margin:18px 0}.review-exercise{margin:16px 0}.learning-app .trash-review{border-color:#ee8a91;color:#ffc5ca;margin:12px 0}.learning-app .trash-review:disabled{opacity:.4}.review-exercise .quiz-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.report-table-wrap{overflow:auto}.quiz-report{width:100%;border-collapse:collapse;background:#08213e;margin:16px 0;font-size:.85rem}.quiz-report th,.quiz-report td{padding:12px;border:1px solid #3977a4;text-align:left;vertical-align:top}.quiz-report th{color:#ffdf83}.quiz-report small{display:block;color:#9ccde5}.quiz-report button{font-size:.8rem;padding:6px}.report-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}
@media(max-height:600px) and (orientation:landscape){.learning-app{padding:5px 12px}.learning-app>header{min-height:40px}.learning-app>header h1{font-size:1rem}.learning-app>header button{padding:5px 9px;font-size:.75rem}.quiz-progress{margin-top:4px;font-size:.75rem}.quiz-question{position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:40px 150px auto;gap:6px 12px;min-height:230px;padding:10px}.quiz-question h2{grid-column:1/-1;height:36px;margin:0;font-size:1rem}.quiz-question .question-stage{grid-column:1;grid-row:2;height:150px;min-height:150px}.quiz-question .quiz-staff.notation-surface{height:150px}.quiz-question .quiz-staff svg{height:150px;min-width:0}.quiz-question .quiz-choices{grid-column:2;grid-row:2;align-self:center;margin:0;min-height:0}.quiz-question .quiz-choices button{font-size:.75rem;min-height:52px;padding:5px}.quiz-question .quiz-choices:has(svg){grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-question .quiz-choices button.notation-surface,.quiz-question .quiz-choices svg{height:65px}.quiz-question .quiz-instruction{grid-column:1/-1;font-size:.7rem;margin:0}.quiz-question:has(.placement-overlay){grid-template-rows:40px 230px auto}.quiz-question:has(.placement-overlay) .question-stage{height:230px;grid-column:1/-1}.quiz-question:has(.placement-overlay) .quiz-staff.notation-surface{height:230px}.quiz-question:has(.placement-overlay) .quiz-staff svg{height:230px}}
@media(max-width:650px) and (orientation:portrait){.quiz-question{min-height:530px}.quiz-question h2{height:64px;font-size:1.1rem}.quiz-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-choices button{font-size:.8rem;min-height:60px;padding:8px}.quiz-choices:has(svg){grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-choices button.notation-surface,.quiz-choices svg{height:110px}.review-comparison{grid-template-columns:1fr}.learning-app{padding:10px}.learning-app>header{gap:7px}.learning-app>header h1{font-size:1.1rem}.quiz-progress{font-size:.75rem}.quiz-controls{display:grid;grid-template-columns:1fr}.quiz-controls>button{width:100%}}
@media print{body,#app,.learning-host{position:static!important;overflow:visible!important;height:auto!important;background:white!important;color:black!important}.learning-app>header,.side-dock,.lms-shell-ui,.quiz-board,.report-actions,.quiz-report button{display:none!important}.learning-app,.quiz-finish,.quiz-report{background:white!important;color:black!important;border-color:#777!important}.quiz-report th,.quiz-report td{color:black!important;border-color:#777!important}.quiz-finish h2{color:black!important}.report-table-wrap{overflow:visible}.quiz-report tr{break-inside:avoid}}
.review-comparison>section{align-self:start}.review-note[hidden]{display:none}.review-exercise[hidden]{display:none}

/* 3.7: fit the keyboard and notation to the actual available space. */
.piano-heading>div:first-child{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap}.piano-heading h2{font-size:1.15rem}.piano-key.white{max-height:100%}.piano-key-name{bottom:10px}
.learning-app .placement-overlay .placement-target{background:transparent;box-shadow:none}.learning-app .placement-overlay .placement-target.selected{background:#51b4ff88!important;box-shadow:0 0 0 2px #2185c1}.question-stage:has(.placement-overlay){height:260px;min-height:260px;overflow:visible}.question-stage .quiz-staff:has(.placement-overlay){height:260px;overflow:hidden}.quiz-staff:has(.placement-overlay) svg{min-width:0;width:100%;height:260px}.review-task{padding:14px 18px;border:1px solid #6eb9d9;border-radius:12px;margin:18px 0;background:#103655}.review-task h3{color:#9ae7ff;margin:0}.review-task h2{margin:8px 0}.review-task p{margin:0}.review-exercise{padding:16px;background:#08213e;border:1px solid #3977a4;border-radius:12px}.theory-reference h3 a{color:inherit;text-decoration:underline;text-underline-offset:4px}.theory-reference h3 a:hover{color:#9af0ff}
@media(max-height:600px) and (orientation:landscape){}
@media(max-width:650px) and (orientation:portrait){.piano-heading>div:first-child{gap:3px}.piano-heading small{font-size:.48rem}}

.composer-list{grid-template-columns:minmax(0,1fr)!important;align-content:start}.composer-list .composer-card b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.35}.composer-workspace{grid-template-columns:minmax(230px,.31fr) minmax(0,.69fr)}.composer-profile{align-content:start}.composer-profile .composer-portrait{display:block!important;margin:0;min-height:0;height:auto;align-self:start;border-radius:14px;overflow:hidden;padding:0;background:#0a274b}.composer-portrait>img{display:block;width:100%;height:230px;object-fit:contain;background:#061a30}.composer-portrait img[hidden]{display:none}.composer-portrait figcaption{font:12px/1.45 system-ui;padding:10px;color:#c9eaff}.portrait-fallback{padding:30px 12px;text-align:center}.portrait-fallback b{display:block;font-size:3rem}.portrait-fallback span{font-size:.8rem}.portrait-fallback[hidden]{display:none}.composer-flag-image{width:50px;height:34px;object-fit:contain;flex-shrink:0}.composer-flag-image[hidden]{display:none}.composer-story h3,.composer-works h3{margin:0 0 10px;color:#92e6fa;font-size:1rem}.composer-story li{margin:8px 0;line-height:1.5}.composer-works ol{padding-left:24px;margin:10px 0}.composer-works li{padding:8px 0;border-bottom:1px solid #84744155}.composer-works li b{display:block}.composer-works li small{display:inline-block;margin-right:12px}.composer-works a,.composer-sources a{color:#94e4ff;font-size:.8rem}.composer-sources{grid-column:1/-1;padding:12px;line-height:1.5}.composer-sources summary{cursor:pointer;color:#ffe491}
@media(max-width:800px){.composer-workspace{grid-template-columns:1fr}.composer-profile .composer-portrait{max-width:260px;grid-column:1/-1}.composer-portrait>img{height:200px}.composer-list{max-height:240px}.composer-profile{max-height:none!important}}

@media(orientation:portrait) and (max-width:1100px){.orientation-guard{display:grid!important;z-index:10000}#app,.lms-shell-ui,.learning-host{visibility:hidden!important}}
@media(orientation:landscape){.orientation-guard{display:none!important}}

.question-stage .quiz-staff:has(.placement-overlay)>svg{height:260px!important;width:100%!important}

@media(orientation:portrait) and (pointer:coarse){.orientation-guard{display:grid!important;z-index:10000}#app,.lms-shell-ui,.learning-host{visibility:hidden!important}}

/* Shared, self-contained music symbols: identical in study, dictionary and reports. */
.music-symbol-surface{display:grid!important;place-items:center!important;min-width:0!important;min-height:0!important;max-width:100%;padding:0!important;overflow:hidden!important;box-sizing:border-box}
.music-symbol-surface>svg.music-symbol-svg,.dictionary-glyph>svg.music-symbol-svg,.report-symbol>svg.music-symbol-svg{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;margin:0!important;overflow:hidden}
.symbol-card{display:grid!important;place-items:center;min-width:0;overflow:hidden}.symbol-card>[data-symbol]{width:100%;max-width:540px}.symbol-definition{min-width:0;overflow-wrap:anywhere;align-self:start}.symbol-definition dl{margin-bottom:0}.symbol-definition dt{font-weight:700}.symbol-definition dd{margin:4px 0 14px}
.dictionary-workspace{align-items:start!important;min-width:0}.dictionary-list{align-content:start;min-width:0}.dictionary-card{min-width:0;align-items:center}.dictionary-card>span:last-child{min-width:0}.dictionary-card strong{white-space:normal!important;text-overflow:clip!important;overflow:visible!important}.dictionary-glyph{display:grid!important;place-items:center;min-width:0!important;overflow:hidden!important;font-size:1.3rem!important;padding:0!important;width:64px!important;height:42px!important}.dictionary-card{grid-template-columns:64px minmax(0,1fr)!important}
.dictionary-detail{display:flex!important;flex-direction:column!important;align-items:stretch;justify-content:flex-start;min-width:0;gap:12px;overflow-x:hidden!important;overflow-wrap:anywhere}.dictionary-detail>*{flex-shrink:0;min-width:0;margin-top:0;margin-bottom:0}.dictionary-symbol{height:175px;width:100%;max-width:480px;align-self:center;color:inherit}.dictionary-detail h2{padding:0!important;margin:0!important;max-width:100%}.dictionary-detail dl{display:block!important}.dictionary-detail dl>div{margin:0 0 14px}.dictionary-detail dd{margin:5px 0;line-height:1.5}.dictionary-detail dt{font-weight:700;color:#96e7ff}.dictionary-detail .dictionary-definition-zone{padding:14px}.dictionary-detail .dictionary-definition-zone p{line-height:1.5}.dictionary-example h3{font-size:1rem}.dictionary-example p{margin:7px 0}.dictionary-sources{font-size:.85rem}.dictionary-sources summary{cursor:pointer}.dictionary-detail a{color:#94e4ff}.report-symbol{width:180px;max-width:100%;height:100px;margin:6px auto}.quiz-staff.music-symbol-surface{width:100%;height:100%!important}
@media(max-height:600px) and (orientation:landscape){.symbol-card{min-height:0!important}.symbol-card>[data-symbol]{height:130px!important}.dictionary-symbol{height:120px}.dictionary-workspace{grid-template-columns:minmax(180px,.4fr) minmax(0,.6fr)!important}.dictionary-list,.dictionary-detail{max-height:calc(100dvh - 205px)!important;overflow-y:auto!important}.dictionary-card{padding:8px!important;gap:5px!important;grid-template-columns:44px minmax(0,1fr)!important}.dictionary-glyph{width:44px!important;height:32px!important}.dictionary-card em{display:none}.dictionary-detail{padding:12px!important}.dictionary-tools{gap:8px}.dictionary-tools label span{font-size:.75rem}}

.symbol-card .music-symbol-surface{color:#08204a}.dictionary-workspace .dictionary-list{max-height:100%}.question-stage:has(.music-symbol-surface){grid-template-rows:minmax(0,1fr)}

.guide-card[href]{text-decoration:none}.guide-photo-link{display:inline-block;padding:10px 14px;border:1px solid #71e0ba;border-radius:10px;color:#bcffe6!important;margin:10px 0}
/* Stable responsive exercise sizing; retain scrolling for zoom and long explanations. */
.learning-host{height:100dvh;overflow-y:auto;scrollbar-gutter:stable}.learning-app{padding:clamp(8px,1.6vh,16px);min-height:0}.quiz-question{min-height:0;margin:8px 0;padding:12px}.quiz-question h2{height:auto;min-height:30px;overflow:visible;font-size:clamp(1rem,2.5vw,1.3rem)}.question-stage{height:clamp(140px,29dvh,220px);min-height:0;overflow:visible}.question-stage .quiz-staff.notation-surface{height:100%}.question-stage svg{min-width:0;width:100%;height:100%}.quiz-choices{min-height:0}.quiz-choices:has(svg){min-height:0}.quiz-choices button.notation-surface,.quiz-choices svg{height:clamp(90px,17dvh,150px)}.review-comparison{gap:8px}.review-note.notation-surface,.review-note svg{height:clamp(110px,23dvh,190px)}.review-task h2,.review-task h3,.review-comparison p{margin:5px 0}.review-explanation{margin:10px 0;padding:10px}.review-explanation h3{margin:0}.review-explanation p{margin:6px 0}.review-exercise .question-stage{height:clamp(130px,25dvh,195px)}
@media(max-width:600px){.learning-app>header{min-height:44px;gap:6px}.learning-app>header h1{font-size:19px}.learning-app button{min-height:44px;padding:8px}.review-comparison{grid-template-columns:repeat(2,minmax(0,1fr))}.review-comparison>section{padding:6px}.review-comparison h3{font-size:14px}.quiz-choices:has(svg){grid-template-columns:repeat(2,minmax(0,1fr))}.quiz-staff svg{min-width:0}.quiz-progress{margin-top:8px}.question-stage:has(.placement-overlay){min-height:230px}.learning-app>header a{font-size:13px}.quiz-board{padding:10px}}
