:host {
  display: block;
  /* visually "centers" because the dark edge of the shadow gives the illusion this is offset */
  --grid-line-color: transparent;
  --ruler-text-placement: start;
}
:host ::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}
:host ::-webkit-scrollbar-thumb {
  background-color: var(--color-border-interactive-muted, #2b659b);
  border-radius: 8px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
:host ::-webkit-scrollbar-thumb:vertical {
  border-left-width: 4px;
}
:host ::-webkit-scrollbar-thumb:horizontal {
  border-top-width: 4px;
}
:host ::-webkit-scrollbar-thumb:active,
:host ::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-background-interactive-default, #3a81bf);
}
:host ::-webkit-scrollbar-track,
:host ::-webkit-scrollbar-corner {
  background: var(--color-background-surface-default, #1b2d3e);
}
:host ::-webkit-scrollbar-track:vertical {
  box-shadow: var(--scrollbar-shadow-inner-vertical, inset 3px 3px 3px 0px rgba(0, 0, 0, 0.5));
}
:host ::-webkit-scrollbar-track:horizontal {
  box-shadow: var(--scrollbar-shadow-inner-horizontal, inset 1px 3px 3px 0px rgba(0, 0, 0, 0.5));
}

:host([show-grid]) {
  --grid-line-color: var(--color-background-base-default, #101923);
  --ruler-text-placement: center;
}

.rux-timeline {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  position: relative;
}

.ruler-position__top {
  flex-direction: column-reverse;
}

.hidden {
  display: none;
}

.rux-playhead {
  width: 2px;
  background: var(--color-background-interactive-default, #4dacff);
  z-index: 2;
  position: absolute;
  height: 100%;
  top: 0;
  pointer-events: none;
}
.rux-playhead:after {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid var(--color-background-interactive-default, #4dacff);
  content: "";
  position: absolute;
  left: -10.9px;
}

.ruler {
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.rux-track {
  display: contents;
}

.ruler-time {
  display: flex;
  align-items: center;
  padding: 12px 20px;
}

#rulerTrack::part(container) {
  margin-bottom: 0;
}