.accompTimeline{margin:8px 0;border:1px solid #35445c;border-radius:6px;padding:5px 6px;background:#0b1320}
.accompRuler,.accompLane{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;font-size:10px;gap:6px}.accompRuler>div{height:18px;position:relative}.accompRuler b{position:absolute;font-weight:500;color:#b9c8de}.accompTrack{position:relative;height:39px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(6.25% - 1px),#32435b55 calc(6.25% - 1px),#32435b55 6.25%);border-left:1px solid #485b75;border-right:1px solid #485b75}.accompLane+.accompLane{border-top:1px solid #35445c}.accompEvent{position:absolute;top:5px;height:28px;border:1px solid #c294ed;background:#44365c;color:white;border-radius:3px;padding:0 1px;font-size:10px;overflow:hidden;white-space:nowrap;cursor:pointer}.accompEvent.harmony{background:#213d60;border-color:#6292cf;opacity:.84}.accompEvent.bass{background:#504727;border-color:#d9bc53}.accompEvent.passing{background:#794820;border-color:#f3aa52}.accompEvent.borrowed{background:#783d33;border-color:#ff927c;z-index:3}.accompEvent.sounding{box-shadow:inset 0 0 0 2px #fff;opacity:1;z-index:4}.accompEvent:hover,.accompEvent:focus-visible{z-index:5;outline:2px solid white}.accompCursor{position:absolute;top:0;bottom:0;border-left:1px solid #ffffff99;pointer-events:none;z-index:6}
html.cwAccompanimentFamily .melodyStatus{min-height:40px;font-size:11px!important}html.cwAccompanimentFamily .melodyBars{margin:6px 0}html.cwAccompanimentFamily .melodyBar{padding:6px}html.cwAccompanimentFamily .melodyNotes{min-height:16px}html.cwAccompanimentFamily .melodyNoteStrip{display:none}html.cwAccompanimentFamily .activity{padding:10px}html.cwAccompanimentFamily .melodyControls select{max-width:285px}
@media(max-width:900px){.accompRuler,.accompLane{grid-template-columns:47px minmax(0,1fr);gap:3px}.accompEvent{font-size:8px}.accompTimeline{padding:4px}.cwAccompanimentFamily .melodyControls{grid-template-columns:1fr}.cwAccompanimentFamily .melodyControls select{max-width:100%}}
.tone-borrowed{background:#783d33;color:#ffd2c9;border:1px solid #ff927c;border-radius:3px;padding:1px 3px}.tone-passing{background:#794820;color:#ffce91;border:1px solid #f3aa52;border-radius:3px;padding:1px 3px}
html.cwAccompanimentFamily #accompTimeline button.accompEvent{background:#44365c!important;border:1px solid #c294ed!important;color:#f5e7ff!important;min-height:0!important;min-width:0!important;height:28px!important;padding:0 1px!important;font-size:10px!important;border-radius:3px!important;line-height:1.1!important}
html.cwAccompanimentFamily #accompTimeline button.harmony{background:#213d60!important;border-color:#6292cf!important;color:#d4e5ff!important}html.cwAccompanimentFamily #accompTimeline button.bass{background:#504727!important;border-color:#d9bc53!important;color:#ffe9a0!important}html.cwAccompanimentFamily #accompTimeline button.sounding{box-shadow:inset 0 0 0 2px #fff!important}html.cwAccompanimentFamily #accompTimeline .tone-borrowed{background:#783d33!important;color:#ffd2c9!important;border:1px solid #ff927c!important}html.cwAccompanimentFamily #accompTimeline .tone-passing{background:#794820!important;color:#ffce91!important;border:1px solid #f3aa52!important}
@media(max-height:800px) and (min-width:901px){html.cwAccompanimentFamily .lesson-content{padding-top:8px!important}html.cwAccompanimentFamily .lesson-intro{margin-bottom:6px!important}html.cwAccompanimentFamily .start-card{padding:6px 8px!important}html.cwAccompanimentFamily .accompTrack{height:34px}html.cwAccompanimentFamily #accompTimeline button.accompEvent{height:25px!important;top:4px}html.cwAccompanimentFamily .melodyBar{padding:4px}html.cwAccompanimentFamily .explanation{margin-top:6px}}
@media(max-height:800px) and (min-width:901px){html.cwAccompanimentFamily .explanation{padding:8px 10px!important}html.cwAccompanimentFamily .explanation summary{font-size:13px!important}html.cwAccompanimentFamily .activity-toolbar h2{font-size:15px!important}html.cwAccompanimentFamily .melodyNotes{font-size:10px!important}html.cwAccompanimentFamily .lesson-intro h1{font-size:25px!important}}

/* Share the unchanged melody keyboard dimensions: same note range, key width and depth. */
.accompRoles{font-size:11px!important;line-height:1.35!important;margin:6px 0 0!important;color:#c7d8ed!important}
html.cwAccompanimentFamily .melodyControls{gap:6px 12px}html.cwAccompanimentFamily .melodyControls select{padding:5px!important;max-width:265px}html.cwAccompanimentFamily .melodyControls label{font-size:11px!important}
html.cwAccompanimentFamily .activity-toolbar{flex-wrap:wrap!important}html.cwAccompanimentFamily .melodyKeyboard .borrowedKey{background:#ff927c!important}
@media(max-height:800px) and (min-width:901px){html.cwAccompanimentFamily .accompTrack{height:30px}html.cwAccompanimentFamily #accompTimeline button.accompEvent{height:22px!important;top:4px}html.cwAccompanimentFamily .melodyStatus{min-height:34px;padding:5px!important}html.cwAccompanimentFamily .lesson-intro h1{font-size:23px!important}}
html.cwLearningSystem.cwAccompanimentFamily .start-card #accompRoles{font-size:11px!important;line-height:1.3!important;max-width:none!important;margin:5px 0 0!important}
html.cwLearningSystem.cwAccompanimentFamily .start-card #melodyStart{line-height:1.3!important;max-width:none!important}
@media(min-width:901px){html.cwLearningSystem.cwAccompanimentFamily .melodyControls{display:grid!important;grid-template-columns:.55fr 1.4fr 1.1fr 1.55fr 1fr;gap:10px!important}html.cwLearningSystem.cwAccompanimentFamily .melodyControls label{display:flex!important;flex-direction:column;align-items:stretch;gap:3px;font-size:10px!important;min-width:0}html.cwLearningSystem.cwAccompanimentFamily .melodyControls select{width:100%;max-width:none!important;min-width:0;height:30px!important;min-height:30px!important;padding:3px 6px!important;font-size:11px!important}}
.featureDot{color:#7ed9ef}.tone-feature{background:#154657;color:#c5f3ff;border:1px solid #7ed9ef;border-radius:3px;padding:1px 2px}html.cwAccompanimentFamily #accompTimeline .tone-feature{background:#154657!important;color:#c5f3ff!important;border:1px solid #7ed9ef!important}html.cwAccompanimentFamily .melodyKeyboard .featureKey{background:#7ed9ef!important;color:#101d24!important}
.tone-neighbour{background:#174b46;color:#c2fff6;border:1px solid #5fd6c8;border-radius:3px;padding:1px 2px}html.cwAccompanimentFamily #accompTimeline .tone-neighbour{background:#174b46!important;color:#c2fff6!important;border:1px solid #5fd6c8!important}
