/* Sound page only: inset list indicators and group mobile volume with the player. */
.score-shell[data-page="sound-design"] .studio-track {
  padding-left: clamp(12px, 1vw, 20px);
}
@media (max-width: 700px) {
  .score-shell[data-page="sound-design"] .studio-player .studio-volume {
    justify-content: flex-start;
    width: min(100%, 260px);
    gap: 16px;
    margin-right: auto;
  }
  .score-shell[data-page="sound-design"] .studio-player .studio-volume input {
    width: 140px;
    max-width: 60%;
    min-height: 44px;
    touch-action: pan-y;
  }
}

/* Stable mobile scene; keep the current 260svh scroll span and safe UI positions. */
@supports (height: 100lvh) {
  @media (max-width: 700px) and (min-height: 601px) and (prefers-reduced-motion: no-preference) {
    .score-shell[data-page="sound-design"] .sound-room.sound-room-refined {
      height: calc(260svh + 100lvh) !important;
    }
    .score-shell[data-page="sound-design"] .sound-room.sound-room-refined .sound-room-sticky {
      height: 100lvh !important;
    }
    .score-shell[data-page="sound-design"] .sound-room.sound-room-refined .sound-room-copy {
      bottom: calc(150px + 100lvh - 100svh) !important;
    }
    .score-shell[data-page="sound-design"] .sound-room.sound-room-refined .sound-journey-control {
      bottom: calc(max(28px, env(safe-area-inset-bottom)) + 100lvh - 100svh) !important;
    }
  }
  @media (max-width: 700px) and (min-height: 601px) and (max-height: 740px) and (prefers-reduced-motion: no-preference) {
    .score-shell[data-page="sound-design"] .sound-room.sound-room-refined .sound-room-copy {
      bottom: calc(132px + 100lvh - 100svh) !important;
    }
  }
}

/* Replace the browser's rectangular range focus ring with a gold thumb cue. */
.score-shell[data-page="sound-design"] .studio-volume input:focus {
  outline: none;
  box-shadow: none;
}
.score-shell[data-page="sound-design"] .studio-volume input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(211,183,132,.24);
}
.score-shell[data-page="sound-design"] .studio-volume input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(211,183,132,.24);
}
@media (forced-colors: active) {
  .score-shell[data-page="sound-design"] .studio-volume input:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 3px;
  }
}
