.candidate-lifecycle {
  width: 100%;
}

.candidate-lifecycle-scroll {
  overflow-x: auto;
  padding: 0.25rem 0.25rem 9rem;
}

.candidate-lifecycle-track {
  position: relative;
  min-width: 36rem;
  padding: 0 2.25rem;
}

.candidate-lifecycle-line {
  position: absolute;
  left: 4.75rem;
  right: 4.75rem;
  top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 0.25rem;
  overflow: hidden;
  background: #e5e7eb;
}

.candidate-lifecycle-line-segment {
  background: #e5e7eb;
}

.candidate-lifecycle-line-segment--green.is-active {
  background: #16a34a;
}

.candidate-lifecycle-line-segment--sky.is-active {
  background: #0284c7;
}

.candidate-lifecycle-line-segment--amber.is-active {
  background: #d97706;
}

.candidate-lifecycle-line-segment--indigo.is-active {
  background: #4f46e5;
}

.candidate-lifecycle-items {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(7rem, 1fr));
  align-items: start;
  gap: 1rem;
}

.candidate-lifecycle-item {
  position: relative;
  display: flex;
  min-height: 5.75rem;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.candidate-lifecycle-node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #60a5fa;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.candidate-lifecycle-node svg {
  width: 1.25rem;
  height: 1.25rem;
}

.candidate-lifecycle-node:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.candidate-lifecycle-node--green.is-active {
  border-color: #16a34a;
  color: #15803d;
  background: #f0fdf4;
}

.candidate-lifecycle-node--sky.is-active {
  border-color: #0284c7;
  color: #0369a1;
  background: #ffffff;
}

.candidate-lifecycle-node--amber.is-active {
  border-color: #d97706;
  color: #b45309;
  background: #fffbeb;
}

.candidate-lifecycle-node--indigo.is-active {
  border-color: #4f46e5;
  color: #4338ca;
  background: #eef2ff;
}

.candidate-lifecycle-label {
  margin-top: 0.75rem;
  color: #334155;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1rem;
  text-transform: uppercase;
}

.candidate-lifecycle-node.is-pending + .candidate-lifecycle-label {
  color: #94a3b8;
}

.candidate-lifecycle-tooltip {
  position: absolute;
  top: 4.9rem;
  left: 50%;
  z-index: 30;
  width: 17rem;
  transform: translateX(-50%) translateY(0.25rem);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.12);
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  visibility: hidden;
}

.candidate-lifecycle-tooltip::before {
  position: absolute;
  top: -0.4rem;
  left: 50%;
  width: 0.75rem;
  height: 0.75rem;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  content: "";
}

.candidate-lifecycle-tooltip-title {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.65rem 0.75rem;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
}

.candidate-lifecycle-tooltip-body {
  max-height: 8.5rem;
  overflow-y: auto;
  padding: 0.65rem 0.75rem;
  color: #475569;
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.candidate-lifecycle-item:hover .candidate-lifecycle-tooltip,
.candidate-lifecycle-item:focus-within .candidate-lifecycle-tooltip,
.candidate-lifecycle-item[data-open="true"] .candidate-lifecycle-tooltip {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
