.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: #162124;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
main.wrap { padding-top: 24px; }
.loaded-song { gap: 16px; flex-wrap: wrap; }
.loaded-song > div:first-child { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.playback-volume { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; flex: 0 1 220px; font-size: 11px; color: #c7d7c9; }
.playback-volume output { color: var(--gold); }
.playback-volume input { grid-column: 1 / -1; width: 100%; accent-color: var(--gold); }
.workspace.full-score-workspace { grid-template-columns: minmax(0, 1fr); }
.full-score-workspace .coach-column { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stage.full-score-view { height: min(var(--full-score-height, 680px), max(350px, 65vh), 680px); }
.full-score-scroll { position: absolute; inset: 38px 0 0; overflow: auto; overscroll-behavior: contain; scrollbar-color: #718884 #18272a; }
.full-score-scroll:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.full-score-page { position: relative; min-height: 100%; }
#full-score { display: block; position: sticky; top: 0; }
.full-score-view .stage-status { pointer-events: none; }
.full-score-view .stage-overlay.counting { z-index: 2; pointer-events: none; }
.score-icon-button { display: inline-flex; flex: 0 0 40px; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 8px; border: 1px solid #52625f; border-radius: 7px; background: #20302f; color: #d9e4d9; }
.score-icon-button:hover { background: #354640; color: var(--gold); }
.score-toolbar { position: absolute; inset: 0 0 auto; height: 56px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 7px 16px; background: #132321; border-bottom: 1px solid var(--line); }
.score-toolbar .button { min-height: 40px; padding: 8px 15px; }
.score-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #dce5d7; }
.score-shortcuts { color: #98afa3; font-size: 10px; white-space: nowrap; }
body.score-maximized { overflow: hidden; }
.stage.score-expanded { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-height: none; z-index: 100; border: 0; border-radius: 0; background: #18272a; }
.stage.score-expanded::backdrop { background: #18272a; }
.score-expanded .full-score-scroll { top: 94px; bottom: 56px; }
.score-expanded .stage-status { top: 73px; }
.score-expanded #highway { position: absolute; top: 94px; left: 0; width: 100%; height: calc(100% - 94px); }
.score-expanded.sheet-view:not(.full-score-view) #highway { height: calc(100% - 150px); }
.score-expanded:not(.sheet-view) .stage-overlay { top: 145px; }
.stage .score-legend { display: none; }
.score-expanded.sheet-view .score-legend { display: flex; position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; max-height: 56px; overflow: auto; padding: 9px 16px; gap: 7px 18px; border-top: 1px solid var(--line); }
.score-legend small { display: none; }
.score-view-label { display: flex; align-items: center; gap: 6px; color: #a3bab1; font-size: 11px; }
.score-view-label select { color: #dce5d7; background: #203331; border: 1px solid #405751; border-radius: 6px; padding: 8px; max-width: 130px; }
.view-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid #3b4b4a; border-radius: 8px; flex-shrink: 0; }
.view-switch button { border: 0; border-radius: 5px; padding: 8px 12px; background: transparent; font-size: 11px; color: #9eb2ac; min-height: 32px; }
.view-switch button[aria-pressed="true"] { color: #172025; background: var(--gold); font-weight: 650; }
.view-switch button:disabled { opacity: .45; }
.hit-cue { font-size: 11px; color: #adc6b8; line-height: 1.6; text-align: right; }
.hit-cue.due { color: #f7d791; font-weight: 650; }
.view-help { margin: 0; padding: 12px 22px; color: #a3bab1; font-size: 11px; line-height: 1.7; border-top: 1px solid var(--line); }
.view-availability { margin: 0; padding: 10px 22px; color: #b9c5ac; background: #29342b; font-size: 11px; line-height: 1.6; }
.sheet-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 13px 22px; background: #1d2b2c; }
.sheet-legend > span { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #c7d7c9; }
.sheet-legend i { font-size: 21px; font-style: normal; line-height: 1; color: var(--drum-color); }
.sheet-legend kbd { font-family: inherit; border: 1px solid #41544e; color: #c5d9bf; padding: 3px 6px; border-radius: 4px; font-size: 10px; }
.sheet-legend small { margin-left: auto; font-size: 10px; color: #91a99b; }
.stage.sheet-view .stage-overlay:not(.counting) { display: none; }
.stage.sheet-view .stage-overlay.counting { top: auto; bottom: 16px; left: auto; right: 22px; flex-direction: row; padding: 7px 12px; background: #25372e; border: 1px solid #506344; border-radius: 7px; text-shadow: none; }
.stage.sheet-view .stage-overlay.counting .eyebrow { display: none; }
.stage.sheet-view .stage-overlay.counting strong { font-size: 22px; }
.stage.sheet-view .stage-overlay.counting > span:last-child { font-size: 10px; }
@media (max-width: 540px) {
  .score-toolbar { gap: 8px; padding-inline: 10px; }
  .score-toolbar .button { padding: 8px 11px; font-size: 11px; }
  .score-shortcuts { display: none; }
  .score-title { font-size: 11px; }
  .score-view-label > span { display: none; }
  .score-view-label select { width: 98px; padding: 8px 3px; font-size: 10px; }
  main.wrap { padding-top: 16px; }
  .playback-volume { flex: 1 1 100%; }
  .full-score-workspace .coach-column { grid-template-columns: 1fr; }
  .view-toolbar { padding: 10px 14px; gap: 9px; flex-wrap: wrap; }
  .view-switch { width: 100%; }
  .view-switch button { flex: 1; font-size: 12px; }
  .hit-cue { text-align: left; min-height: 19px; font-size: 10px; }
  .view-help, .view-availability { padding: 10px 15px; font-size: 10px; }
  .sheet-legend { padding: 12px 15px; gap: 12px 16px; }
  .sheet-legend > span { font-size: 10px; }
  .sheet-legend small { width: 100%; margin: 0; }
}
