.axis {
  min-height: 0;
  height: 100%;
  position: relative;
  padding: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--panel-radius);
  background: var(--panel);
  overflow: hidden;
}

.axis-line {
  position: absolute;
  left: 43px;
  top: 24px;
  bottom: 24px;
  width: 4px;
  background: var(--line);
  z-index: 0;
}

.axis-range {
  position: absolute;
  left: 43px;
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  z-index: 1;
  transition:
    top 220ms ease,
    height 220ms ease,
    opacity 180ms ease;
}

.axis-years {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 0;
}

.axis-year {
  position: relative;
  min-height: 12px;
}

.axis-year::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--line);
}

.axis-year span {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.axis-year:first-child::before {
  top: 0;
  transform: translateY(-50%);
}

.axis-year:first-child span {
  top: 0;
  transform: translateY(-50%);
}

.axis-year:last-child::before {
  top: 100%;
  transform: translateY(-50%);
}

.axis-year:last-child span {
  top: 100%;
  transform: translateY(-50%);
}

@media (max-width: 500px) {
  .axis {
    display: none;
  }
}
