.instrument-performance-navigation {
  width: 100%;
  min-width: 0;
}

.instrument-performance-navigation__body {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.instrument-performance-navigation__label {
  font-weight: 600;
}

.instrument-performance-navigation__timeline {
  width: 100%;
  min-width: 0;
}

.instrument-performance-navigation__range {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  cursor: ew-resize;
  accent-color: var(--bs-primary);
}

.instrument-performance-navigation__ruler {
  position: relative;
  height: 1.15rem;
  margin: -0.18rem 0.5rem 0;
  border-top: 1px solid color-mix(in srgb, var(--bs-secondary-color) 38%, transparent);
  pointer-events: none;
  user-select: none;
}

.instrument-performance-navigation__marker {
  position: absolute;
  top: -1px;
  left: var(--performance-marker-position, 0%);
  width: 1px;
  height: 0.28rem;
  background: var(--bs-secondary-color);
  opacity: 0.42;
  transform: translateX(-0.5px);
}

.instrument-performance-navigation__marker--beat {
  height: 0.48rem;
  opacity: 0.64;
}

.instrument-performance-navigation__marker--bar {
  width: 2px;
  height: 0.72rem;
  opacity: 0.9;
  transform: translateX(-1px);
}

.instrument-performance-navigation__marker-label {
  position: absolute;
  top: 0.68rem;
  left: 50%;
  color: var(--bs-secondary-color);
  font-size: 0.62rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.instrument-performance-navigation__meta {
  display: flex;
  min-width: 8.5rem;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}

.instrument-performance-navigation__position {
  min-width: 8.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.instrument-performance-navigation__grid {
  margin-top: 0.18rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .instrument-performance-navigation__body {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label meta"
      "timeline timeline";
    gap: 0.35rem 0.5rem;
  }

  .instrument-performance-navigation__label {
    grid-area: label;
    justify-self: start;
  }

  .instrument-performance-navigation__timeline {
    grid-area: timeline;
    width: 100%;
  }

  .instrument-performance-navigation__meta {
    grid-area: meta;
    min-width: 0;
  }

  .instrument-performance-navigation__position {
    min-width: 0;
  }
}
