/* Lock button injected next to every audio slider. Locks default OFF.
   Click the lock to freeze the slider at its current value; double-click
   (or double-tap on mobile) on the slider track resets to default. */

.studio-slider-lock {
  background: none;
  border: none;
  padding: 0;
  margin-inline-start: 6px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  cursor: pointer;
  color: #9aa5b0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  vertical-align: middle;
  transition: background 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.studio-slider-lock:hover { background: rgba(255, 255, 255, 0.06); color: #f5f5f5; }
.studio-slider-lock:focus-visible {
  outline: 2px solid #7850F0;
  outline-offset: 2px;
}
.studio-slider-lock.locked { color: #7850F0; }
.studio-slider-lock.locked:hover { background: rgba(120, 80, 240, 0.12); }

.studio-slider-lock svg { width: 14px; height: 14px; pointer-events: none; }

/* When the slider is locked, dim it and switch the cursor so the visual
   matches the disabled-interaction behaviour. We don't disable the input
   outright because some flows still read its value programmatically. */
input[type="range"].is-locked {
  opacity: 0.55;
  cursor: not-allowed;
}
