.ruler-slider {
  position: relative;
  flex: 1;
  min-width: 0;
  height: var(--time-ruler-height);
  overflow: visible;
  border-radius: 8px;
  outline: none;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

/* Share Tooltip's appearance/behavior without its inline-flex layout. */
.ruler-slider.tooltip { display: block; }
.ruler-slider[data-dragging] { cursor: grabbing; }
.ruler-slider:focus-visible .ruler-slider__needle {
  background: #fff4de;
  box-shadow: 0 0 8px #e5bc70;
}
.ruler-slider__scale {
  position: relative;
  height: 28px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 18%, black 82%, transparent);
}

.ruler-slider__strip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  pointer-events: none;
  will-change: transform;
}

.ruler-slider__tick {
  position: absolute;
  bottom: 7px;
  width: 1px;
  height: 14px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.7;
  transform: translateX(-50%);
}

.ruler-slider__needle {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 22px;
  border-radius: 3px;
  background: #e5bc70;
  pointer-events: none;
}
