#sound-open {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}
#sound-open.sound-enabled {
  color: var(--gold);
  background: #dcc89120;
}
.sound-panel {
  position: absolute;
  top: 85px;
  right: 40px;
  z-index: 16;
  width: 310px;
  max-height: calc(100dvh - 115px);
  padding: 20px;
  overflow-y: auto;
  background: #162b2cf5;
  border-radius: 7px;
  box-shadow: 0 15px 50px #0005;
}
.sound-panel .panel-title {
  margin-bottom: 10px;
}
.sound-panel p {
  font-size: 11px;
  line-height: 1.6;
  color: #b5c6bd;
}
.sound-panel label {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 6px;
  font-size: 11px;
}
.sound-panel output {
  font-variant-numeric: tabular-nums;
  color: #dfcd9f;
}
.sound-panel select {
  max-width: 172px;
  padding: 6px;
  font: inherit;
  color: #e7e9df;
  background: #263d3b;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.sound-panel input[type="range"] {
  width: 100%;
  accent-color: #dec994;
}
.sound-panel button:not(.icon-button) {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.sound-panel button:hover {
  background: #e4d3a51c;
}
.sound-panel .sound-power {
  display: flex;
  gap: 8px;
}
#sound-toggle {
  flex: 1;
  color: #172728;
  background: #d6c28d;
}
.sound-cues {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.sound-cues select {
  flex: 1;
  min-width: 0;
  font-size: 11px;
}
#sound-cue-status {
  min-height: 17px;
  margin: 7px 0;
  color: #dfcd9f;
}
.sound-credits {
  padding-top: 12px;
  font-size: 9px !important;
  border-top: 1px solid var(--border);
}
.sound-credits a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 700px) {
  .sound-panel {
    top: 72px;
    right: 14px;
    width: min(310px, calc(100vw - 28px));
    max-height: calc(100dvh - 94px);
  }
  .header-actions {
    gap: 8px;
  }
  #sound-open {
    flex-basis: 32px;
    width: 32px;
    height: 32px;
  }
}
