.cwScaleAdvisor{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:7px 3px;font-size:12px;color:#c9d4e6;line-height:1.45}.cwScaleAdvisor>span{flex:1;min-width:220px}.cwScaleAdvisor details{position:relative}.cwScaleAdvisor summary{cursor:pointer;white-space:nowrap;color:#afbfdb}.cwScaleAdvisor details p{position:absolute;right:0;bottom:20px;z-index:50;width:min(420px,75vw);padding:14px;border:1px solid #7285a3;background:#141d2c;border-radius:8px;box-shadow:0 4px 18px #000;color:#e1e7f1}.cwScaleMap [data-midi]{transition:none!important}.cwScaleMap .cwMapScale{background-image:linear-gradient(to top,rgba(100,118,143,.13),rgba(100,118,143,.04))}.cwScaleMap .cwMapDegree{position:absolute;bottom:35px;left:0;right:0;font-size:11px;font-style:normal;font-weight:600;text-align:center;color:#66768e;pointer-events:none}.cwScaleMap .melodyBlack .cwMapDegree,.cwScaleMap .makingBlack .cwMapDegree,.cwScaleMap .imBlack .cwMapDegree{color:#a3aebf;bottom:25px}.cwScaleMap .cwMapDot{position:absolute;top:65%;left:0;right:0;text-align:center;color:#7f9ac2;font-size:20px;font-style:normal;pointer-events:none}.cwScaleMap .cwMapVoice{background:#9bafd0!important;box-shadow:inset 0 -5px #617fae}.cwScaleMap .cwMapVoice .cwMapDegree{color:#354a69}.cwScaleMap .cwMapNext{outline:1px dashed #558c9b;outline-offset:-5px}.cwScaleMap .cwMapMelody{background:var(--cw-map-colour)!important;box-shadow:inset 0 0 0 2px var(--cw-map-edge),inset 0 -5px #e3dcf0!important}.cwScaleMap .cwMapMelody span,.cwScaleMap .cwMapMelody .cwMapDegree{color:#f6f2ff!important}.cwScaleMap .cwMapMelody.cwMapVoice{border-bottom:5px solid #779cc9}.cwScaleMap .cwMapPassing,.cwScaleMap .cwMapNeighbour{animation:cwMapArrival .6s ease-out 1}@keyframes cwMapArrival{0%{filter:brightness(1.55)}100%{filter:brightness(1)}}@media(prefers-reduced-motion:reduce){.cwScaleMap .cwMapPassing,.cwScaleMap .cwMapNeighbour{animation:none}}html.cwLearningSystem:has(.cwScaleMap) .makingNote.melody,html.cwLearningSystem:has(.cwScaleMap) .cwEarlyEvent.melody,html.cwLearningSystem:has(.cwScaleMap) .accompEvent.melody{transition:none!important}
/* The map owns melody colours while active, including legacy passing/borrowed classes. */
html.cwLearningSystem #melodyKeyboard.cwScaleMap [data-midi].cwMapMelody,html.cwLearningSystem #makingKeyboard.cwScaleMap [data-midi].cwMapMelody{background:var(--cw-map-colour)!important;box-shadow:inset 0 0 0 2px var(--cw-map-edge),inset 0 -5px #e3dcf0!important}html.cwLearningSystem #melodyKeyboard.cwScaleMap [data-midi].cwMapVoice,html.cwLearningSystem #makingKeyboard.cwScaleMap [data-midi].cwMapVoice{background:#9bafd0!important}html.cwLearningSystem #melodyKeyboard.cwScaleMap [data-midi].cwMapVoice.cwMapMelody,html.cwLearningSystem #makingKeyboard.cwScaleMap [data-midi].cwMapVoice.cwMapMelody{background:var(--cw-map-colour)!important;border-bottom:5px solid #779cc9}html.cwMakingMusic #makingKeyboard.cwScaleMap{min-width:0!important;width:100%!important}@media(max-width:1100px){html.cwMakingMusic #makingKeyboard.cwScaleMap .cwMapDegree{font-size:9px!important}}
/* B078BD: a visible muted-grey fill marks scale membership, not merely grey numerals. */
.cwScaleMap .cwMapScale{background-image:none!important;background-color:#b9bec6!important}.cwScaleMap .melodyBlack.cwMapScale,.cwScaleMap .makingBlack.cwMapScale,.cwScaleMap .imBlack.cwMapScale{background-color:#424b58!important}.cwScaleMap .cwMapDegree{color:#414c5c}.cwScaleMap .melodyBlack .cwMapDegree,.cwScaleMap .makingBlack .cwMapDegree,.cwScaleMap .imBlack .cwMapDegree{color:#d3d9e2}
html.cwLearningSystem #imKeyboard.cwScaleMap [data-midi].cwMapVoice{background:#9bafd0!important}html.cwLearningSystem #imKeyboard.cwScaleMap [data-midi].cwMapMelody{background:var(--cw-map-colour)!important;box-shadow:inset 0 0 0 2px var(--cw-map-edge),inset 0 -5px #e3dcf0!important}

/* B078BW: octave location and active musical role are separate layers. */
.cwOctaveBands{height:25px;position:relative;width:100%;margin:2px 0 4px;overflow:hidden}.cwOctaveBands[hidden]{display:none}.cwOctaveBands span{position:absolute;top:0;height:24px;box-sizing:border-box;text-align:center;font-size:11px;font-weight:700;line-height:23px;border-left:1px solid #8292aa;border-bottom:2px solid #8597b1;white-space:nowrap;overflow:hidden;color:#172334}
.cwScaleMap.cwMapClean [data-midi],.cwOctaveBands span{--oct-white:#dce5ed;--oct-scale:#afc3d6;--oct-black:#192b3e;--oct-black-scale:#536d89;--oct-band:#9eb6cf}
.cwScaleMap.cwMapClean [data-octave="0"],.cwOctaveBands [data-octave="0"]{--oct-white:#e9e4db;--oct-scale:#cabea7;--oct-black:#302a21;--oct-black-scale:#7b6c53;--oct-band:#c0b49b}
.cwScaleMap.cwMapClean [data-octave="2"],.cwOctaveBands [data-octave="2"]{--oct-white:#deebe5;--oct-scale:#a9c8b8;--oct-black:#1b3029;--oct-black-scale:#527966;--oct-band:#a1bfaf}
.cwScaleMap.cwMapClean [data-octave="3"],.cwOctaveBands [data-octave="3"]{--oct-white:#e7e2f0;--oct-scale:#c1afd6;--oct-black:#2c233b;--oct-black-scale:#74608c;--oct-band:#b8a6cb}
.cwScaleMap.cwMapClean [data-octave="4"],.cwOctaveBands [data-octave="4"]{--oct-white:#eee2df;--oct-scale:#d1b1aa;--oct-black:#382722;--oct-black-scale:#88685e;--oct-band:#c8a99f}
.cwScaleMap.cwMapClean [data-octave="5"],.cwOctaveBands [data-octave="5"]{--oct-white:#e2e9f1;--oct-scale:#adc0da;--oct-black:#202b3c;--oct-black-scale:#596f90;--oct-band:#a3b5d0}
.cwScaleMap.cwMapClean [data-octave="6"],.cwOctaveBands [data-octave="6"]{--oct-white:#eee9da;--oct-scale:#d1c59e;--oct-black:#332e20;--oct-black-scale:#84764f;--oct-band:#c9bc91}
.cwOctaveBands span{background:var(--oct-band)}
:is(#imKeyboard,#melodyKeyboard,#makingKeyboard,#bfKeyboard).cwScaleMap.cwMapClean [data-midi]{background:var(--oct-white)!important;box-shadow:none!important}:is(#imKeyboard,#melodyKeyboard,#makingKeyboard,#bfKeyboard).cwScaleMap.cwMapClean [data-midi].cwMapScale{background:var(--oct-scale)!important;box-shadow:inset 0 -3px #44576c!important}:is(#imKeyboard,#melodyKeyboard,#makingKeyboard,#bfKeyboard).cwScaleMap.cwMapClean :is(.imBlack,.melodyBlack,.makingBlack,.black){background:var(--oct-black)!important}:is(#imKeyboard,#melodyKeyboard,#makingKeyboard,#bfKeyboard).cwScaleMap.cwMapClean :is(.imBlack,.melodyBlack,.makingBlack,.black).cwMapScale{background:var(--oct-black-scale)!important;box-shadow:inset 0 -3px #d8e2ef!important}
:is(#imKeyboard,#melodyKeyboard,#makingKeyboard,#bfKeyboard).cwScaleMap.cwMapClean [data-midi].cwMapVoice{background:#729bd0!important;box-shadow:inset 0 -5px #315a90!important}:is(#imKeyboard,#melodyKeyboard,#makingKeyboard,#bfKeyboard).cwScaleMap.cwMapClean [data-midi].cwMapMelody{background:var(--cw-map-colour)!important;box-shadow:inset 0 0 0 2px var(--cw-map-edge),inset 0 -5px #e3dcf0!important}
.cwScaleMap.cwMapClean .cwMapDot{left:50%;right:auto;top:auto;bottom:29px;transform:translateX(-50%);width:10px;height:10px;border-radius:50%;background:#2469b4;border:2px solid #e0efff;box-shadow:0 0 0 1px #244e7d;z-index:3;box-sizing:border-box}.cwScaleMap.cwMapClean :is(.imBlack,.melodyBlack,.makingBlack,.black) .cwMapDot{bottom:23px}.cwScaleMap.cwMapClean .cwMapMelody .cwMapDot{border-color:#fff}
@media(min-width:901px){html:has(#bfKeyboard) .academy-shell{grid-template-columns:248px minmax(0,1fr)!important}}#bfKeyboard.cwScaleMap{min-width:0!important;width:100%!important}.bfKeyboardViewport:has(.cwScaleMap){overflow-x:hidden}
#bfKeyboard.cwScaleMap [data-part=bass]{background:#dbc36e!important;box-shadow:inset 0 0 0 2px #ffeb9e!important}#bfKeyboard.cwScaleMap [data-part=harmony]{background:#799dce!important;box-shadow:inset 0 0 0 2px #bfdaff!important}#bfKeyboard.cwScaleMap [data-part=melody].cwMapMelody{background:var(--cw-map-colour)!important;box-shadow:inset 0 0 0 2px var(--cw-map-edge)!important}
.bfNote.melody:not(.outside):not(.leading){background:#7546a5!important;border-color:#d6b3ff!important;color:#fff!important}
/* Same physical display: C1 through C7, 43 white keys, at every affected lesson. */
#imKeyboard .imBlack,#makingKeyboard .makingBlack,#melodyKeyboard .melodyBlack,#bfKeyboard .black{width:calc(100% / 43 * .62)!important}

/* B078BW: one measured keyboard geometry and label style for every map player. */
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard{display:flex!important;position:relative!important;width:100%!important;min-width:0!important;height:134px!important;min-height:134px!important;max-height:134px!important;padding:0!important;margin:0!important;box-sizing:border-box!important;border:1px solid #70829e!important;border-radius:5px!important;overflow:hidden!important;isolation:isolate!important}
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > [data-midi]{box-sizing:border-box!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;border-right:1px solid #8f9eb3!important;border-radius:0!important;transform:none!important}
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > :is(.imWhite,.makingWhite,.melodyWhite,[data-midi]:not(.black):not(.imBlack):not(.makingBlack):not(.melodyBlack)){position:relative!important;flex:1 1 0!important;height:100%!important;top:0!important;bottom:auto!important}
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > :is(.imBlack,.makingBlack,.melodyBlack,.black){position:absolute!important;flex:none!important;top:0!important;bottom:auto!important;height:58%!important;width:calc(100% / 43 * .62)!important;z-index:2!important;border-radius:0 0 3px 3px!important}
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > [data-midi] > span{position:absolute!important;bottom:8px!important;top:auto!important;left:0!important;right:0!important;display:block!important;margin:0!important;padding:0!important;text-align:center!important;font:500 9px/1.2 system-ui,sans-serif!important;color:#203046!important;text-shadow:none!important;white-space:nowrap!important}
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > :is(.imBlack,.makingBlack,.melodyBlack,.black) > span{color:#f3f6ff!important}
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > [data-midi].cwMapVoice{background:#286bb5!important;box-shadow:inset 0 0 0 2px #a8d5ff,inset 0 -5px #164778!important}
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > [data-midi].cwMapVoice > span,html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > [data-midi].cwMapMelody > span{color:#fff!important;font-weight:750!important}
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > [data-midi].cwMapMelody{background:var(--cw-map-colour)!important;box-shadow:inset 0 0 0 2px var(--cw-map-edge),inset 0 -5px #e3dcf0!important}
html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard .cwMapDot{width:12px!important;height:12px!important;background:#126acb!important;border:2px solid #fff!important;box-shadow:0 0 0 1px #164778!important}
html.cwLearningSystem body #bfKeyboard.cwUnifiedKeyboard [data-part=bass]{background:#d7b53c!important;box-shadow:inset 0 0 0 2px #fff0a3!important}html.cwLearningSystem body #bfKeyboard.cwUnifiedKeyboard [data-part=harmony]{background:#286bb5!important;box-shadow:inset 0 0 0 2px #a8d5ff!important}
html.cwLearningSystem body :is(#imTimeline,#makingTimeline,#foundationTimeline,#accompTimeline,#bfTimeline) :is(.imEvent,.makingNote,.cwEarlyEvent,.accompEvent,.bfNote).harmony{background:#24548e!important;border-color:#86bbfa!important;color:#fff!important}
html.cwLearningSystem body :is(#imTimeline,#makingTimeline,#foundationTimeline,#accompTimeline,#bfTimeline) :is(.imEvent,.makingNote,.cwEarlyEvent,.accompEvent,.bfNote).melody:not(.outside):not(.passing):not(.neighbour):not(.borrowed):not(.tension):not(.connecting):not(.chromatic):not(.leading){background:#7546a5!important;border-color:#d6b3ff!important;color:#fff!important}
@media(max-width:1100px){html.cwLearningSystem body :is(#imKeyboard,#makingKeyboard,#melodyKeyboard,#bfKeyboard).cwUnifiedKeyboard > [data-midi] > span{font-size:8px!important}}

.cwKeyboardFrame{display:flex;flex-direction:column;width:100%;min-width:0;gap:0}.cwKeyboardFrame>.cwScaleAdvisor{order:0}.cwKeyboardFrame>.melodyLegend,.cwKeyboardFrame>.makingLegend{order:1}.cwKeyboardFrame>.cwOctaveBands{order:2;flex:none}.cwKeyboardFrame>.cwUnifiedKeyboard{order:3;flex:none}

html.cwLearningSystem body #bfKeyboard.cwScaleMap.cwMapClean.cwUnifiedKeyboard > [data-midi][data-part="bass"]{background:#e4b923!important;box-shadow:inset 0 0 0 3px #fff3a3,inset 0 -7px #775100!important}html.cwLearningSystem body #bfKeyboard.cwScaleMap.cwMapClean.cwUnifiedKeyboard > [data-midi][data-part="bass"]>span{color:#211800!important;font-weight:800!important}.cwGuideChoice{font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:5px}.cwGuideChoice select{font:inherit;padding:4px 6px;min-height:28px;background:#182235;color:#edf3ff;border:1px solid #73839d;border-radius:4px}.cwDockExample{display:flex;align-items:center;gap:6px;margin-right:auto}.cwScaleAdvisor{row-gap:7px}

/* B078BW: guide choice is a prominent, centred keyboard control. */
html.cwLearningSystem .cwKeyboardFrame>.cwGuideChoice{order:2;align-self:center;display:flex!important;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;max-width:100%;box-sizing:border-box;margin:7px auto 10px!important;padding:8px 14px!important;min-height:56px;border:1px solid #a5b6ef!important;border-radius:8px;background:#1c2940;color:#f1f4ff;font-size:14px!important;font-weight:700!important;line-height:1.3}
html.cwLearningSystem .cwKeyboardFrame>.cwGuideChoice[hidden]{display:none!important}
html.cwLearningSystem .cwKeyboardFrame>.cwGuideChoice select{font-size:14px!important;font-weight:650;min-height:40px!important;min-width:200px;max-width:100%;padding:8px 12px!important;border:1px solid #bdcbff!important;border-radius:6px;background:#273c5d;color:#fff;cursor:pointer}
html.cwLearningSystem .cwKeyboardFrame>.cwGuideChoice:focus-within{outline:2px solid #c9b6ff;outline-offset:2px}
.cwKeyboardFrame>.cwOctaveBands{order:3}.cwKeyboardFrame>.cwUnifiedKeyboard{order:4}
