/* Shared finishes for the shelf, music stand and ensemble room. */
:root {
  --mh-polish-surface: #fffcf6;
  --mh-polish-soft: #f1f3e9;
  --mh-polish-muted: #4e6258;
  --mh-polish-text: #254b3d;
  --mh-polish-heading: #1a3b34;
  --mh-polish-line: #ccd4c8;
  --mh-polish-hover: #e8efe4;
  --mh-polish-copper: #a67839;
  --mh-polish-copper-line: #c8aa75;
  --mh-polish-dark: #245747;
  --mh-polish-deep: #164337;
  --mh-polish-shadow: 0 5px 18px rgba(24, 51, 39, .07);
  --mh-polish-radius: .9rem;
  --mh-polish-stage: linear-gradient(113deg, #23473c, #183b33 57%, #112f2e);
}

#shelf .shelfTitle {
  border-color: #365749;
  border-radius: var(--mh-polish-radius);
  background: var(--mh-polish-stage);
  box-shadow: var(--mh-polish-shadow);
}

#shelf .shelfTitle::before {
  background: linear-gradient(128deg, #d8bf97, #edddbd 66%, #dcc6a0);
  border-color: #debf85;
  box-shadow: 0 0 0 4px #21463c, 0 0 0 5px #c2a571;
}

#shelf .shelfIntro::before {
  width: 2rem;
  border-radius: 1px;
  background: #d6ae6c;
}

#shelf .shelfTitle h1 {
  font-size: clamp(1.83rem, 4.15vw, 3.25rem);
  line-height: 1.35;
}

#shelf .shelfTitle p {
  max-width: 36ch;
  color: #e0e9dd;
}

#shelf .libraryEnsemble {
  filter: drop-shadow(0 .22rem .36rem #172f2545);
}

#shelf .catalogTile {
  border-color: var(--mh-polish-line);
  border-radius: var(--mh-polish-radius);
  background: var(--mh-polish-surface);
  box-shadow: var(--mh-polish-shadow);
}

#shelf .cover .coverName {
  color: #fff5df;
  text-shadow: 0 1px 2px #15221b80;
}

#shelf .catalogTile .pieceCard::after {
  border-radius: var(--mh-polish-radius);
}

#shelf .cardbody h2 {
  color: var(--mh-polish-heading);
  line-height: 1.43;
}

#shelf .catalogComposer {
  color: var(--mh-polish-muted);
}

#shelf .catalogParts {
  color: var(--mh-polish-muted);
  line-height: 1.57;
}

#shelf .catalogActions {
  border-color: var(--mh-polish-line);
}

#shelf .catalogTile .pieceCard {
  background: var(--mh-polish-dark);
  border-color: var(--mh-polish-dark);
}

#shelf .catalogTile .pieceCard:hover {
  background: var(--mh-polish-deep);
  border-color: var(--mh-polish-deep);
}

#shelf .catalogPractice {
  background: var(--mh-polish-surface);
  color: var(--mh-polish-text);
  border-color: var(--mh-polish-line);
}

#shelf .catalogPractice:hover {
  background: var(--mh-polish-hover);
}

#shelf .resumePassage {
  background: var(--mh-polish-soft);
  border-color: var(--mh-polish-line);
  border-inline-start: 3px solid var(--mh-polish-copper);
}

#shelf :is(.resumePassage, .comingPiece) h2 {
  color: var(--mh-polish-heading);
}

#shelf :is(.resumePassage, .comingPiece) p {
  color: var(--mh-polish-muted);
}

#shelf .comingPiece {
  border-color: var(--mh-polish-line);
  border-inline-start-color: var(--mh-polish-copper-line);
  background: var(--mh-polish-soft);
}

#shelf .ensemble-entry,
#shelf .em-shelf {
  background: var(--mh-polish-surface);
  border-color: var(--mh-polish-line);
  color: var(--mh-polish-text);
  border-radius: var(--mh-polish-radius);
}

#shelf .ensemble-entry {
  padding-block: .85rem;
  border-inline-start: 1px solid var(--mh-polish-line);
  box-shadow: var(--mh-polish-shadow);
}

#shelf:has(.em-shelf) .ensemble-entry {
  margin-block-end: 0;
  border-block-end: 0;
  border-end-start-radius: 0;
  border-end-end-radius: 0;
  box-shadow: none;
}

#shelf .em-shelf {
  margin-block-start: 0;
  margin-block-end: 1.12rem;
  background: var(--mh-polish-soft);
  border-start-start-radius: 0;
  border-start-end-radius: 0;
  box-shadow: var(--mh-polish-shadow);
}

#shelf :is(.ensemble-entry, .em-shelf) h2 {
  color: var(--mh-polish-heading);
}

#shelf .ensemble-entry h2 {
  font-size: 1.18rem;
}

#shelf .ensemble-entry p {
  color: var(--mh-polish-muted);
  font-size: .92rem;
}

#shelf .ensemble-entry :is(.ensemble-join, .ensemble-profile) {
  border-color: var(--mh-polish-dark);
  background: var(--mh-polish-dark);
  color: #fffaf0;
}

#shelf .ensemble-entry :is(.ensemble-join, .ensemble-profile):hover {
  border-color: var(--mh-polish-deep);
  background: var(--mh-polish-deep);
}

#shelf .ensemble-profile :is(img, [data-ensemble-instrument]) {
  flex: none;
}

#shelf .ensemble-profile [data-ensemble-name] {
  min-width: 0;
}

#shelf :is(.ensemble-entry .ensemble-account-actions, .ensemble-entry .ensemble-others, .em-shelf) button:not(.ensemble-profile, .ensemble-join) {
  color: var(--mh-polish-text);
  border-color: var(--mh-polish-line);
  background: var(--mh-polish-surface);
}

#shelf :is(.ensemble-entry .ensemble-account-actions, .ensemble-entry .ensemble-others, .em-shelf) button:not(.ensemble-profile, .ensemble-join):hover {
  background: var(--mh-polish-hover);
}

#shelf .em-shelf .em-help,
#shelf .em-shelf .em-count {
  color: var(--mh-polish-muted);
}

#shelf .ec-dock {
  --dock-line: var(--mh-polish-line);
  --dock-ink: var(--mh-polish-heading);
  --dock-muted: var(--mh-polish-muted);
  border-radius: var(--mh-polish-radius);
  background: var(--mh-polish-surface);
}

#shelf .ec-dock .ecd-head {
  background: var(--mh-polish-soft);
  color: var(--mh-polish-heading);
}

#desk .pieceHead h1 {
  color: var(--mh-polish-heading);
}

#desk .pieceIdentity .instrumentation {
  color: var(--mh-polish-muted);
}

#desk .pieceIdentity .eyebrow {
  color: var(--mh-polish-muted);
  font-weight: 650;
}

#desk .tabs,
#desk[data-active-tab=test] .tabs {
  border-color: var(--mh-polish-line);
  background: var(--mh-polish-surface);
}

#desk .tabs button {
  color: var(--mh-polish-text);
}

#desk .tabs button:hover {
  background: var(--mh-polish-hover);
  color: var(--mh-polish-heading);
}

#desk .tabs button[aria-current=page] {
  border-color: var(--mh-polish-dark);
  background: var(--mh-polish-dark);
  color: #fffaf1;
  box-shadow: inset 0 -2px #bd9857;
}

#desk .pieceLog,
#desk .sessionTools summary:not([data-timer-state=running]),
#desk .em-piece-trigger {
  border-color: var(--mh-polish-line);
  background: var(--mh-polish-surface);
  color: var(--mh-polish-text);
}

#desk .pieceLog:hover,
#desk .sessionTools summary:not([data-timer-state=running]):hover,
#desk .em-piece-trigger:hover {
  background: var(--mh-polish-hover);
}

#originalPane :is(.paperToolbar, .readerCommandRow, .paperFoot) {
  background: var(--mh-polish-surface);
}

#originalPane .playhead {
  background: var(--mh-polish-soft);
}

:is(.ec-dialog .ec-head, .em-dialog .em-dialog-head) {
  background: var(--mh-polish-stage);
}

.ec-dialog .ec-body > .ec-section-head h3,
.em-dialog .em-profile-head h3 {
  color: var(--mh-polish-heading);
}

.ec-dialog .ec-avatar-trigger {
  background: var(--mh-polish-soft);
  border-color: var(--mh-polish-line);
}

.siteFoot .wrap {
  border-color: var(--mh-polish-line);
}

@media (max-width: 680px) {
  #shelf .shelfTitle {
    border-radius: .72rem;
  }

  #shelf .shelfTitle h1 {
    font-size: clamp(1.48rem, 6.65vw, 2.4rem);
  }

  #shelf .ensemble-entry,
  #shelf .em-shelf {
    padding-inline: .75rem;
  }

  #shelf .ensemble-entry h2 {
    font-size: 1.08rem;
  }

  #shelf .ensemble-entry p {
    font-size: .87rem;
  }
}

@media (max-width: 540px) {
  #shelf .ensemble-others button {
    min-height: 44px;
    border: 1px solid var(--mh-polish-line);
    text-decoration: none;
    font-size: .84rem;
  }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 1024px) {
  #shelf .shelfTitle h1 {
    font-size: 1.55rem;
  }
}

#shelf .shelfAccess {
  display:inline-flex; align-items:center; justify-content:center; gap:.44rem;
  min-height:44px; margin-block-start:.55rem; padding:.3rem .74rem;
  border:1px solid #fff5df75; border-radius:.6rem; background:#17211d35;
  color:#fff9ed; font:650 .92rem/1.35 Tahoma,Arial,sans-serif;
}
#shelf .shelfAccess[hidden]{display:none}
#shelf .shelfAccess:hover{background:#fff6e01f}
#shelf .shelfAccess:focus-visible{outline:3px solid #ffe0a3;outline-offset:2px}
#shelf .shelfAccess svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#shelf .shelfAccess img{width:27px;height:27px;object-fit:cover;border-radius:50%}
#shelf .catalogHeading{display:flex;align-items:center;justify-content:space-between;gap:.55rem 1rem;flex-wrap:wrap;margin:.95rem 0 .65rem}
#shelf #catalogTitle{color:var(--mh-polish-heading);font-size:clamp(1.15rem,2.2vw,1.45rem);font-weight:750}
#shelf .catalogHeading label{display:inline-flex;align-items:center;gap:.45rem;color:var(--mh-polish-muted);font-size:.94rem;font-weight:650}
#shelf .catalogHeading select{min-height:44px;max-width:100%;padding:.25rem .6rem;background-color:var(--mh-polish-surface);border:1px solid var(--mh-polish-line);border-radius:.58rem;color:var(--mh-polish-heading);font:inherit}
#shelf .catalogHeading select:focus-visible{outline:3px solid var(--mh-polish-copper);outline-offset:2px}
@media(max-width:680px){
  #shelf .shelfAccess{font-size:.85rem;margin-block-start:.35rem;padding-inline:.48rem}
  #shelf .catalogHeading{margin:.7rem 0 .5rem}
}

#shelf .shelfTitle{grid-template-areas:"intro art" "people art";row-gap:0}
#shelf .shelfIntro{grid-area:intro;align-self:end;padding-block:1.05rem .15rem}
#shelf .libraryEnsemble{grid-area:art}
#shelf .shelfHeroBar{grid-area:people;align-self:start;display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .7rem;padding-block:.18rem 1rem}
#shelf .shelfHeroBar .shelfAccess{margin:0}
#shelf .shelfPeople{display:flex;justify-content:flex-start;gap:.25rem;min-width:0}
#shelf .shelfPeople .em-piece-trigger{min-height:44px;border:0;background:transparent;padding:.15rem .32rem;color:#fff5e0}
#shelf .shelfPeople .em-piece-count{color:#f7e5bf;border-color:#e8d5ac75}
#shelf .shelfPeople .em-piece-live::before{background:#a4e7bf}
#shelf .shelfPeople .em-piece-person{min-width:44px;min-height:44px;max-width:none;justify-content:center;padding:0;border:0;background:transparent}
#shelf .shelfPeople .em-piece-person .em-picture{width:30px;height:30px;border:1px solid #edd8ae}
#shelf .shelfPeople .em-piece-person .em-name{display:none}
#shelf .shelfPeople button:focus-visible{outline:3px solid #ffe0a3;outline-offset:0}
#shelf .shelfPeople button:hover{background:#ffffff20}
@media(max-width:680px){
  #shelf .shelfTitle{grid-template-areas:"intro art" "people people";padding-block:0;column-gap:.35rem}
  #shelf .shelfIntro{align-self:center;padding-block:.58rem .48rem}
  #shelf .libraryEnsemble{max-height:5.2rem;width:auto;max-width:100%;justify-self:center;object-fit:contain}
  #shelf .shelfHeroBar{
    align-items:center;justify-content:space-between;gap:.15rem .3rem;
    margin:0 -.86rem;padding:.18rem .64rem;background:var(--mh-polish-deep);border-top:1px solid #fff0d34a;
  }
  #shelf .shelfPeople{gap:0}
  #shelf .shelfPeople .em-piece-trigger{gap:.25rem;font-size:.85rem}
  #shelf .shelfPeople .em-piece-faces{gap:0}
  #shelf .shelfPeople .em-piece-person:nth-child(n+3){display:none}
}
@media(max-width:450px){#shelf .shelfPeople .em-piece-person:nth-child(n+2){display:none}}
