/* Burgundy tracks the current beat; brass marks the selected phrase on the white score. */
:root[data-ensemble-theme=maple] {
  --mh-score-wash:rgba(125,72,49,.07);
  --mh-score-trail:rgba(125,72,49,.16);
}
:root[data-ensemble-theme=maple] #originalPlayhead {background:#875d53}
:root[data-ensemble-theme=maple] #originalPlayhead.playing {background:var(--green)}
:root[data-ensemble-theme=maple] #originalPlayhead::before {border-top-color:var(--green)}
:root[data-ensemble-theme=maple] #mapLayer .barZone:hover {background:var(--mh-score-wash)}
:root[data-ensemble-theme=maple] #mapLayer .barZone.currentBar {
  background:var(--mh-score-wash);box-shadow:inset 0 0 0 1.4px #99675399;
}
:root[data-ensemble-theme=maple] .scoreViewport .cursor {
  background:var(--green);box-shadow:-1px 0 0 2px var(--mh-score-trail);
}
:root[data-ensemble-theme=maple] .scoreViewport:not(.readingStand) .leaf.active {
  border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green);
}
:root[data-ensemble-theme=maple] .scoreViewport .leaf .leafheader {color:var(--muted)}
:root[data-ensemble-theme=maple] .scoreViewport:not(.readingStand) .leaf:not(.stand-range-in,.stand-range-out,.stand-range-first,.stand-range-preview) .leafheader {background:var(--mh-theme-elevated)}
:root[data-ensemble-theme=maple] .scoreViewport .leaf.active:not(.stand-range-in,.stand-range-out,.stand-range-first,.stand-range-preview) .leafheader {
  color:var(--green);background:var(--mh-theme-active);
}
:root[data-ensemble-theme=maple] .scoreViewport.readingStand .leaf.active :is(.drawing,.readingTail)::after {background:var(--mh-score-wash)}
:root[data-ensemble-theme=maple] .scoreViewport.readingStand:not(.picking-range) .leaf.active .measureStart {
  color:var(--green);background:var(--mh-theme-active);
}
:root[data-ensemble-theme=maple] .scoreViewport .leaf.stand-range-out .leafheader {
  color:var(--muted);background:#f4f0eb;
}

:root[data-ensemble-theme=maple] .mhts {
  --mhts-ink:var(--green);
  --mhts-rule:var(--line);
  color:var(--ink);
}
:root[data-ensemble-theme=maple] #testStudio .mhts-viewport {border-color:var(--line);scrollbar-color:#ad9380 #f4ece3}
:root[data-ensemble-theme=maple] #testStudio .mhts :is(.mhts-option,.mhts-bar-label,.mhts-edge) {color:var(--muted)}
:root[data-ensemble-theme=maple] #testStudio .mhts .mhts-hint {border-inline-start-color:var(--mh-theme-edge)}
:root[data-ensemble-theme=maple] #testStudio .mhts-viewport:not(.mhts-edition) .mhts-bar {border-color:var(--line)}
:root[data-ensemble-theme=maple] #testStudio .mhts-viewport:not(.mhts-edition) .mhts-bar-label {background:var(--mh-theme-elevated)}
:root[data-ensemble-theme=maple] #testStudio .mhts-viewport:not(.mhts-edition) .mhts-outside {
  background:#e8e1d9;border-color:var(--line);
}
:root[data-ensemble-theme=maple] #testStudio .mhts-edition .mhts-outside {background:#f2eeea}
:root[data-ensemble-theme=maple] #testStudio .mhts-edition .mhts-outside:not([aria-current=true])::after {background:rgba(228,220,210,.43)}
:root[data-ensemble-theme=maple] #testStudio .mhts-edition .mhts-bar.mhts-inside .mhts-bar-label {
  background:white;color:var(--muted);box-shadow:inset 0 -1px var(--line);
}
:root[data-ensemble-theme=maple] #testStudio .mhts-has-range .mhts-bar.mhts-inside:not([aria-current=true]) .mhts-bar-label {
  background:#f6e9d6;color:#5b3e28;box-shadow:inset 0 -2px #af7d49;
}
:root[data-ensemble-theme=maple] #testStudio .mhts-bar.mhts-proposed:not(.mhts-inside) .mhts-bar-label {
  background:#fbf3e7;color:var(--muted);box-shadow:inset 0 -2px #c5a378;
}
:root[data-ensemble-theme=maple] #testStudio .mhts-edition .mhts-endpoint .mhts-edge:not(:empty),
:root[data-ensemble-theme=maple] #testStudio .mhts-edition .mhts-opening.mhts-endpoint .mhts-bar-number {
  background:#ead9bf;color:#533a25;
}
:root[data-ensemble-theme=maple] #testStudio .mhts .mhts-bar[aria-current=true] {border-color:var(--green)}
:root[data-ensemble-theme=maple] #testStudio .mhts-viewport:not(.mhts-edition) .mhts-bar[aria-current=true] {
  box-shadow:inset 0 0 0 1px var(--green);
}
:root[data-ensemble-theme=maple] #testStudio .mhts .mhts-bar[aria-current=true] .mhts-bar-label {
  background:var(--green);color:#fff;box-shadow:none;
}
:root[data-ensemble-theme=maple] #testStudio .mhts .mhts-bar[aria-current=true] :is(.mhts-edge,.mhts-bar-number) {
  background:transparent;color:white;
}
:root[data-ensemble-theme=maple] #testStudio .mhts-edition-cursor {background:var(--green)}
:root[data-ensemble-theme=maple] #testStudio .mhts-cursor {stroke:var(--green)}

/* The same color marks time in a reduced score as in the full edition. */
:root[data-ensemble-theme=maple] .ensemble-cue {--ec-green:var(--green);--ec-border:var(--line)}
:root[data-ensemble-theme=maple] :is(.ec-score,.ec-score-top,.mh-partner-score,.mh-partner-part,.rj-figure) {color:var(--ink)}
:root[data-ensemble-theme=maple] :is(.mh-partner-score,.mh-partner-row + .mh-partner-row) {border-color:var(--line)}
:root[data-ensemble-theme=maple] :is(.ec-bars span,.mh-partner-measures) {background:var(--mh-theme-elevated);color:var(--muted);border-color:var(--line)}
:root[data-ensemble-theme=maple] :is(.ec-bars .is-current,.mh-partner-measures .is-playing) {background:var(--green);color:white}
:root[data-ensemble-theme=maple] .ec-band {background:var(--mh-score-wash);border-color:var(--mh-score-trail)}
:root[data-ensemble-theme=maple] .ec-cursor {box-shadow:-3px 0 0 var(--mh-score-trail)}
:root[data-ensemble-theme=maple] .mh-partner-cursor {stroke:var(--green)}
:root[data-ensemble-theme=maple] .rj-note {fill:var(--mh-score-trail);stroke:var(--green)}

/* Real fingerboard, ivory marker, amber diamond for notes outside the key. */
:root[data-ensemble-theme=maple] .mhfb {
  --fb-dark:var(--ink);--fb-muted:var(--muted);--fb-line:var(--line);--fb-paper:var(--card);
  --fb-ebony-top:#3c302c;--fb-ebony-middle:#27201e;--fb-ebony-grain:#302621;--fb-ebony-end:#211b19;
  --fb-marker-shadow:#322620;--fb-next-outline:#e5cfac;--fb-marker-light:#f6e6cd;
}
:root[data-ensemble-theme=maple] .mhfb > .mhfb-summary {background:linear-gradient(105deg,var(--mh-theme-elevated),var(--card) 74%);border-color:var(--line)}
:root[data-ensemble-theme=maple] .mhfb .mhfb-summary > .mhfb-icon,
:root[data-ensemble-theme=maple] .mhfb .mhfb-tools .mhfb-guide-toggle[aria-pressed=true] {
  color:var(--green);background:var(--mh-theme-active);border-color:var(--mh-theme-edge);
}
:root[data-ensemble-theme=maple] .mhfb :is(.mhfb-part,.mhfb-cue,.mhfb-chord-note,.mhfb-live-chord,.mhfb-mode-hint,.mhfb-spelling) {color:var(--muted)}
:root[data-ensemble-theme=maple] .mhfb :is(.mhfb-chevron,.mhfb-key,.mhfb-spelling) {border-color:var(--mh-theme-edge)}
:root[data-ensemble-theme=maple] .mhfb :is(.mhfb-pitch,.mhfb-next bdi,.mhfb-equivalent bdi,.mhfb-spelling-toggle,.mhfb-tools button,.mhfb-tools .mhfb-guide-toggle,.mhfb-choice) {color:var(--green)}
:root[data-ensemble-theme=maple] .mhfb .mhfb-choice {border-color:var(--line)}
:root[data-ensemble-theme=maple] .mhfb .mhfb-choice[aria-pressed=true] {background:var(--green);border-color:var(--green);color:white}
:root[data-ensemble-theme=maple] .mhfb .mhfb-board {
  background:linear-gradient(165deg,#4b3930,#2f241f);border-color:#4b3930;box-shadow:inset 0 0 12px #25191340;
}
:root[data-ensemble-theme=maple] .mhfb .mhfb-string-pitch {fill:#d4c3b3}
:root[data-ensemble-theme=maple] .mhfb .mhfb-fingernum {fill:var(--fb-marker-shadow)}
:root[data-ensemble-theme=maple] .mhfb .mhfb-rail-note text {fill:#c6b6a9;stroke:var(--fb-marker-shadow)}
:root[data-ensemble-theme=maple] .mhfb .mhfb-rail-current rect {fill:var(--fb-marker-light)}
:root[data-ensemble-theme=maple] .mhfb .mhfb-rail-current text {fill:var(--fb-marker-shadow);stroke:none}
:root[data-ensemble-theme=maple] .mhfb .mhfb-open-current .mhfb-string-pitch {fill:var(--fb-marker-light)}
:root[data-ensemble-theme=maple] .mhfb .mhfb-spelling-panel {background:var(--mh-theme-elevated);border-color:var(--line)}
:root[data-ensemble-theme=maple] .mhfb .mhfb-spelling-mode {color:var(--ink);background:var(--mh-theme-field);border-color:var(--line)}
:root[data-ensemble-theme=maple] .mhfb .mhfb-row:focus-visible {background:#f4dfbd1a}
@media (hover:hover) {
  :root[data-ensemble-theme=maple] .mhfb :is(.mhfb-summary,.mhfb-tools button,.mhfb-choice:not([aria-pressed=true])):hover {background:var(--mh-theme-active)}
  :root[data-ensemble-theme=maple] .mhfb .mhfb-row:not(:disabled):hover {background:#f3dcc00c}
}

/* Conductor cues retain the separate hold/preparation and release states. */
:root[data-ensemble-theme=maple] .lessonShortcut {background:var(--mh-theme-elevated);color:var(--green);border-color:var(--line)}
:root[data-ensemble-theme=maple] .lessonShortcut:is(:hover,:focus-visible) {background:var(--mh-theme-active);border-color:var(--mh-theme-edge)}
:root[data-ensemble-theme=maple] .lessonEmblem {background:var(--green)}
:root[data-ensemble-theme=maple] .lessonPlace {color:var(--muted)}
:root[data-ensemble-theme=maple] .rehearsalLesson {box-shadow:0 20px 75px #33221f50}
:root[data-ensemble-theme=maple] .rehearsalLesson::backdrop {background:rgb(39 27 25 / .76)}
:root[data-ensemble-theme=maple] .lessonHeader {border-color:var(--line)}
:root[data-ensemble-theme=maple] .lessonHeader h2 {color:var(--ink)}
:root[data-ensemble-theme=maple] #lessonClose,
:root[data-ensemble-theme=maple] .rehearsalLesson .fm-controls button {
  color:var(--green);background:var(--mh-theme-field);border-color:var(--line);
}
:root[data-ensemble-theme=maple] .rehearsalLesson .fm-controls .primary {background:var(--green);border-color:var(--green);color:white}
:root[data-ensemble-theme=maple] .fm-stage {background:#3c2b29;border-color:#655047}
:root[data-ensemble-theme=maple] .fm-scene {background:radial-gradient(ellipse at 50% 85%,#564037,#352727 60%,#2d2325)}
:root[data-ensemble-theme=maple] .fm-stage .fm-caption,
:root[data-ensemble-theme=maple] .fm-stage[data-mode=trial] .fm-caption {background:#372828;border-color:#8e786770}
:root[data-ensemble-theme=maple] .fm-stage[data-mode=example][data-phase=release] .fm-caption {background:#634940}
:root[data-ensemble-theme=maple] .fm-count::before {border-color:#857165}
:root[data-ensemble-theme=maple] .fm-digit {color:#f6e8da;background:#3f302c;border-color:#9b8273}
:root[data-ensemble-theme=maple] .fm-count li[aria-current=step] .fm-digit {
  background:#f4e3ce;color:#362825;border-color:#f4e3ce;outline-color:#c59567;
}
:root[data-ensemble-theme=maple] .fm-stage:is([data-phase=hold],[data-phase=prepare]) li[aria-current=step] .fm-digit {
  background:#f9df9e;border-color:#f9df9e;outline-color:#c9a765;
}
:root[data-ensemble-theme=maple] :is(.fm-bar,.fm-count-tag,.fm-count-toggle) {color:#f5e6d7}
:root[data-ensemble-theme=maple] .fm-count-toggle[aria-pressed=true]::before {background:#f4e3ce;border-color:#f4e3ce;color:#362825}
:root[data-ensemble-theme=maple] .fm-baseline {stroke:#c5ab93}
:root[data-ensemble-theme=maple] .fm-marker,
:root[data-ensemble-theme=maple] .fm-stage[data-mode=trial] .fm-indicator svg .fm-marker {color:#f4e3ce}
:root[data-ensemble-theme=maple] :is(.fm-shaft,.fm-tip) {stroke:#342523}
:root[data-ensemble-theme=maple] .fm-indicator .fm-trail {stroke:#e5c9ac}
:root[data-ensemble-theme=maple] .fm-indicator svg:is([data-phase=hold],[data-phase=prepare]) .fm-marker {color:#ffde9c}
:root[data-ensemble-theme=maple] .fm-stage[data-mode=example] .fm-indicator svg[data-phase=release] .fm-marker {color:#fff4e2}
:root[data-ensemble-theme=maple] .fm-indicator .fm-ring {stroke:#ffe2b6}
:root[data-ensemble-theme=maple] .fm-instruction {color:var(--ink)}
:root[data-ensemble-theme=maple] .fm-result:is(:not([data-level]),[data-level=neutral]) {background:var(--mh-theme-elevated);color:var(--ink);border-color:var(--mh-theme-edge)}
@media (prefers-reduced-motion:reduce) {
  :root[data-ensemble-theme=maple] .fm-stage[data-mode=trial][data-phase=release] .fm-signal {color:#ffe2b6}
}
