/* Rehearsal controls use the same maple finish in either player. The notation,
   part identities, intonation grades and recording indicators have their own colors. */
:root[data-ensemble-theme=maple] :is(#rehearsalRoom, #testStudio, .rehearsalLesson) {
  --wash:var(--mh-theme-elevated);
}
:root[data-ensemble-theme=maple] #rehearsalRoom :is(.toggles, .entryCueBody p, .gameGuide, .gameGuide .modeHelp,
  .standSpeedField small, .standSetupCaption small),
:root[data-ensemble-theme=maple] #testStudio :is(.studioSetupFields .studioField > span, #studioSoundSummary,
  #studioDuringLabel, #studioPhones, .mht-status, .mht .mht-selection, .mht .mht-hint, .mht-detail-value) {
  color:var(--muted);
}
:root[data-ensemble-theme=maple] #rehearsalRoom :is(#jumpToScore, .entryCue summary),
:root[data-ensemble-theme=maple] #testStudio :is(.studioListen > summary, .studioPresets legend,
  .studioSpeedRail button, #studioCloseSetup, .mht .mht-summary, .mht-details summary) {
  color:var(--pine);
  text-decoration-color:var(--mh-theme-edge);
}
:root[data-ensemble-theme=maple] :is(#rehearsalRoom, #testStudio) :is(select, .num, .mhsp button),
:root[data-ensemble-theme=maple] #rehearsalRoom :is(.testShortcut button, #retryEntry, #returnScore),
:root[data-ensemble-theme=maple] #testStudio :is(.studioPresetGrid label, #studioSettings .studioCheck, #studioTonePreview,
  .studioTone button, .mht-secondary, .studioChannel, .studioSpeedRail button) {
  background-color:var(--mh-theme-field);
  border-color:var(--line);
  color:var(--ink);
}

/* Transport, desk and exercise settings also open as compact mobile drawers. */
:root[data-ensemble-theme=maple] #rehearsalRoom :is(#standTransport, .practice, #standChoices, .channelStrip,
  #standSetupToggle),
:root[data-ensemble-theme=maple] #testStudio :is(.studioPlaybackBar, .studioSetupFields, #studioRecorder .mht,
  #studioPracticeReview:not(:empty):not([hidden]), .studioReviewJump, #studioReturnScore),
:root[data-ensemble-theme=maple] #testStudio.mhfd-active .studioHead,
:root[data-ensemble-theme=maple] #rehearsalRoom.mhfd-stand .mainpanel > #practice:not([hidden]),
:root[data-ensemble-theme=maple] #rehearsalRoom.mhfd-stand.mhfd-sound-open .mainpanel > #standQuickTone {
  background-color:var(--mh-theme-elevated);
  border-color:var(--line);
  color:var(--ink);
}
:root[data-ensemble-theme=maple] #rehearsalRoom.mhfd-stand,
:root[data-ensemble-theme=maple] #testStudio.mhfd-active { background:var(--card) }
:root[data-ensemble-theme=maple] #testStudio.mhfd-active #studioPiece {color:var(--ink)}
:root[data-ensemble-theme=maple] #rehearsalRoom #standTransport #listenStrip:not([hidden]) {
  color:var(--muted);border-color:var(--line);
}
:root[data-ensemble-theme=maple] #rehearsalRoom :is(.standTools, .entryCue, .standSpeedField input),
:root[data-ensemble-theme=maple] #testStudio :is(.studioHead, .studioViewTools, .studioDrawerBody, #studioSettings, .mhp-pair) {
  border-color:var(--line);
}
:root[data-ensemble-theme=maple] #rehearsalRoom .practice .results {
  color:var(--ink);background:var(--mh-theme-elevated);border-color:var(--mh-theme-edge);
}
:root[data-ensemble-theme=maple] #rehearsalRoom .entryCue {background:var(--card);border-inline-start-color:var(--mh-theme-edge)}
:root[data-ensemble-theme=maple] #rehearsalRoom #standSetupToggle[aria-expanded=true] {outline-color:var(--green)}
:root[data-ensemble-theme=maple] #rehearsalRoom .standTransportTools :is(.navlinks, .mobiletempo) {
  color:var(--ink);background:var(--mh-theme-field);border-color:var(--line);
}
:root[data-ensemble-theme=maple] #rehearsalRoom :is(.listenPair button:not([aria-pressed=true]),
  .playerrow button:not(.play), .standTransportTools button) {color:var(--pine)}
:root[data-ensemble-theme=maple] #rehearsalRoom :is(.playerrow button:not(.play),
  .standTransportTools button, .listenPair button:not([aria-pressed=true])):hover:not(:disabled) {
  background:var(--mh-theme-active);color:var(--pine);
}
:root[data-ensemble-theme=maple] #rehearsalRoom :is(#parts, .quick, .mix-options) button[aria-pressed=true],
:root[data-ensemble-theme=maple] #rehearsalRoom .barmap button[aria-current=true],
:root[data-ensemble-theme=maple] #rehearsalRoom :is(#entryCueListen, #standFocusSound[aria-expanded=true], #expandStand),
:root[data-ensemble-theme=maple] #testStudio :is(.mhfd-toggle, #studioSettings .studioCheck:has(input:checked),
  .mhsp-jump[aria-current=true], .mhsp-save[aria-pressed=true]) {
  color:var(--pine);background:var(--mh-theme-active);border-color:var(--mh-theme-edge);
}
:root[data-ensemble-theme=maple] #rehearsalRoom :is(#expandStand[aria-pressed=true], #play, #tap),
:root[data-ensemble-theme=maple] #testStudio :is(.mhfd-toggle[aria-pressed=true], .mhsp-actions .mhsp-play,
  .mht-record, .mht-transport [data-rec-action=reference][aria-pressed=true]) {
  color:#fffaf4;background:var(--mh-theme-button);border-color:var(--mh-theme-button);
}
:root[data-ensemble-theme=maple] #rehearsalRoom :is(#play:hover, #tap:active),
:root[data-ensemble-theme=maple] #testStudio :is(.mhsp-play:hover, .mht-record:hover, .mh-guided-primary:hover):not(:disabled) {
  background:var(--mh-theme-button-hover);border-color:var(--mh-theme-button-hover);
}
:root[data-ensemble-theme=maple] #testStudio .mht-transport[data-state=record] .mht-record {
  background:var(--pine);box-shadow:inset 0 -2px var(--deep);
}
:root[data-ensemble-theme=maple] #testStudio[data-phase=record] .studioPlaybackBar {border-color:var(--mh-theme-edge)}
:root[data-ensemble-theme=maple] #testStudio .mht-transport [data-rec-action=reference] {border-color:var(--mh-theme-edge);color:var(--pine)}
:root[data-ensemble-theme=maple] #testStudio .mhp-take-save,
:root[data-ensemble-theme=maple] #testStudio .mhp-pair-downloads a {color:var(--green)}
:root[data-ensemble-theme=maple] #testStudio .mhsp .mhsp-panel {background:var(--mh-theme-elevated);border-color:var(--line)}
:root[data-ensemble-theme=maple] #testStudio :is(.mhsp, .mhsp-scope, .mhsp-status) {color:var(--muted)}
:root[data-ensemble-theme=maple] #testStudio .mhsp .mhsp-save {color:var(--green)}
:root[data-ensemble-theme=maple] #studioGuided .mh-guided-secondary {color:var(--pine);border-color:var(--line)}
:root[data-ensemble-theme=maple] :is(.ensemble-sound, .es-quick) {color:var(--ink);border-color:var(--line)}
:root[data-ensemble-theme=maple] .ensemble-sound {background:var(--card)}
:root[data-ensemble-theme=maple] :is(.ensemble-sound .es-summary, .es-section > legend, .es-quick-field > span) {color:var(--pine)}
:root[data-ensemble-theme=maple] :is(.ensemble-sound, .es-quick) :is(.es-select, .es-pitch, .es-button) {
  color:var(--ink);background:var(--mh-theme-field);border-color:var(--line);
}
:root[data-ensemble-theme=maple] :is(.ensemble-sound, .es-quick) :is(.es-select, .es-button):hover:not(:disabled) {
  background:var(--mh-theme-active);border-color:var(--mh-theme-edge);
}
:root[data-ensemble-theme=maple] :is(.es-unit, .es-output, .es-quick-status:not(:empty)) {color:var(--muted)}

:root[data-ensemble-theme=maple] #testStudio :is(.mhp-capture-button, .mh-guided-tempo)[aria-pressed=true] {
  color:var(--pine);background-color:var(--mh-theme-active);border-color:var(--mh-theme-edge);
}
:root[data-ensemble-theme=maple] .mht-transport .mht-guided:not([aria-pressed=true]) {color:var(--pine)}
:root[data-ensemble-theme=maple] .mht button:focus-visible,
:root[data-ensemble-theme=maple] .mhtf-review :is(button, input, select):focus-visible {outline-color:#a06520}

/* Beat cells are navigation cues, separate from the colored pitch verdicts. */
:root[data-ensemble-theme=maple] .mhsl-strip {
  --mhsl-ink:var(--ink);--mhsl-line:var(--line);--mhsl-hot:var(--pine);
  background:var(--mh-theme-elevated);border-color:var(--line);
}
:root[data-ensemble-theme=maple] .mhsl-detail {color:var(--muted)}
:root[data-ensemble-theme=maple] :is(.mhsl-cell:not(:first-child), .mhtf-pulse span),
:root[data-ensemble-theme=maple] #rehearsalRoom .beat {
  color:var(--muted);border-color:var(--line);background:var(--card);
}
:root[data-ensemble-theme=maple] .mhsl-cell:not(:first-child) .mhsl-marker {background:var(--mh-theme-edge)}
:root[data-ensemble-theme=maple] .mhsl-strip[data-phase=count] {background:#fbf3e5;border-color:#c5a675}
:root[data-ensemble-theme=maple] :is(#rehearsalRoom .beat.on, .mhsl-cell:not(:first-child)[aria-current=step],
  .mhtf-live:not([data-kind=count]) .mhtf-pulse [aria-current=step]) {
  background:var(--pine);color:#fffaf4;border-color:var(--pine);box-shadow:none;
}
:root[data-ensemble-theme=maple] .mhtf-live[data-kind=count] .mhtf-pulse [aria-current=step] {
  background:#765923;border-color:#765923;color:white;box-shadow:0 0 0 1px #765923;
}
:root[data-ensemble-theme=maple] .mhsl-cell:not(:first-child)[aria-current=step] {box-shadow:inset 0 -4px #d9b59c}
:root[data-ensemble-theme=maple] .mhsl-cell:not(:first-child)[aria-current=step] .mhsl-marker {background:transparent}
:root[data-ensemble-theme=maple] #studioScore[data-mhsl-tick]:not([data-mhsl-accent=true]) .mhts-viewport {
  --mhsl-edge:rgba(112,59,67,.56);
}
:root[data-ensemble-theme=maple] .mhsl-strip:is([data-phase=idle], [data-phase=opening]) .mhsl-cell {background:var(--card)}

/* Partner rehearsals, re-entry and the shared listening cue. */
:root[data-ensemble-theme=maple] .ensemble-cue {--ec-green:var(--green);--ec-border:var(--line)}
:root[data-ensemble-theme=maple] :is(.mh-partner-caption, .rj-caption, .ec-beat-line) {
  color:var(--ink);background:var(--mh-theme-elevated);border-color:var(--line);
}
:root[data-ensemble-theme=maple] :is(.ec-tempo output, .ec-message, .ec-feedback, .ec-beats i) {color:var(--muted);border-color:var(--line)}
:root[data-ensemble-theme=maple] .ensemble-cue .ec-beats .is-current {color:white}
:root[data-ensemble-theme=maple] .ensemble-cue button {color:var(--ink);border-color:var(--line);background:var(--card)}
:root[data-ensemble-theme=maple] .ensemble-cue .ec-tap {background:var(--mh-theme-active);color:var(--pine)}
:root[data-ensemble-theme=maple] :is(.ensemble-cue .ec-start, .rejoinPractice .rj-start,
  .rj-landmark.at-entry .rj-position, .mh-partner-actions .mh-partner-primary,
  .mh-partner-actions button[aria-pressed=true]) {
  background:var(--green);color:white;border-color:var(--green);
}
:root[data-ensemble-theme=maple] .mh-partner-actions:has(button[aria-pressed=true]) .mh-partner-primary[aria-pressed=false] {
  background:var(--card);color:var(--ink);border-color:var(--line);
}
:root[data-ensemble-theme=maple] .ensemble-cue .ec-start:hover:not(:disabled),
:root[data-ensemble-theme=maple] .rejoinPractice .rj-start:hover:not(:disabled),
:root[data-ensemble-theme=maple] .mh-partner-actions button[aria-pressed=true]:hover:not(:disabled) {background:var(--pine)}

/* The verdict, printed chart series, grades and the recorder's red light remain
   distinguishable from the panel, labels and ordinary controls around them. */
:root[data-ensemble-theme=maple] :is(.mhtf-live, .mhtf-review) {
  --mhtf-ink:var(--ink);--mhtf-muted:var(--muted);--mhtf-line:var(--line);--mhtf-green:var(--green);
  background-color:var(--card);
}
:root[data-ensemble-theme=maple] :is(.mhtf-readout, .mhtf-inspect, .mht-table th, .mh-attempt-progress) {
  background:var(--mh-theme-elevated);border-color:var(--line);color:var(--ink);
}
:root[data-ensemble-theme=maple] :is(.mhtf-nav button, .mhtf-nav select, .mhtf-note-select, .mh-coach-actions button,
  .mh-coach-actions a, .mht .mht-compare select) {background:var(--mh-theme-field);color:var(--pine);border-color:var(--line)}
:root[data-ensemble-theme=maple] :is(.mhtf-range, .mh-coach .mh-coach-label, .mh-coach-partial, .mh-coach-transfer,
  .mh-attempt-progress .mhap-caption, .mhap-detail, .mhap-storage) {color:var(--muted)}
:root[data-ensemble-theme=maple] .mh-coach {background:var(--card);color:var(--ink)}
:root[data-ensemble-theme=maple] .mh-coach:not([data-tone=good]) {border-color:var(--line);border-inline-start-color:var(--gold)}
:root[data-ensemble-theme=maple] .mh-coach-actions [data-coach-action=audition] {background:var(--green);color:white;border-color:var(--green)}
:root[data-ensemble-theme=maple] :is(.mhap-metric, .mht-table td) {border-color:var(--line)}
:root[data-ensemble-theme=maple] .mhap-name {color:var(--ink)}

/* A phrase may be shared into the next rehearsal from either the reader or the stand. */
:root[data-ensemble-theme=maple] :is(.mh-share, .mh-task-preview) {color:var(--ink)}
:root[data-ensemble-theme=maple] :is(.mh-share-panel, .mh-task-card, .mh-task-editor, .mh-share .mh-task-trigger) {
  background:var(--mh-theme-elevated);color:var(--ink);border-color:var(--line);
}
:root[data-ensemble-theme=maple] :is(.mh-share button, .mh-share-text, .mh-task-field select,
  .mh-task-card button, .mh-task-note-input, .mh-task-note-picker) {
  background:var(--mh-theme-field);border-color:var(--line);color:var(--ink);
}
:root[data-ensemble-theme=maple] .mh-share .mh-task-send {background:var(--green);color:white;border-color:var(--green)}
:root[data-ensemble-theme=maple] .mh-task-conductor-note {border-color:var(--mh-theme-edge)}
:root[data-ensemble-theme=maple] :is(.mh-task-note-count, .mh-task-note-help, .mh-task-note-status) {color:var(--muted)}
