.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--line-strong);
}

.timeline__item {
  position: relative;
  padding-left: 2.25rem;
  padding-bottom: var(--s-5);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: 0.35rem;
  top: 0.25rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--brand-600);
  z-index: 1;
}

.timeline__item--comment .timeline__marker {
  border-color: var(--ink-400);
}

.timeline__item--allocated .timeline__marker {
  border-color: var(--ok);
  background: var(--ok-bg);
}

.timeline__item--cancelled .timeline__marker,
.timeline__item--rejected .timeline__marker {
  border-color: var(--danger);
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: baseline;
  margin-bottom: var(--s-1);
  font-size: var(--fs-xs);
  color: var(--ink-500);
}

.timeline__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-900);
}

.timeline__body {
  font-size: var(--fs-sm);
  color: var(--ink-700);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-3);
}

.timeline__item--internal .timeline__body {
  border-left: 3px solid var(--brand-600);
  background: var(--brand-50);
}

.timeline__internal-tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: var(--s-1);
}
