.week-path {
  position: relative;
  width: 100%;
  padding-top: 2px;
}

.week-path__rail {
  position: absolute;
  left: calc(100% / 14);
  right: calc(100% / 14);
  top: calc(var(--dot-size) / 2);
  height: var(--rail-h);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.week-path__rail-bg,
.week-path__rail-fill,
.week-path__segments {
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.week-path__rail-bg {
  background: #e5e7eb;
}

.week-path__rail-fill {
  left: var(--fill-left, 0%);
  width: var(--fill-width, 0%);
  right: auto;
  background: linear-gradient(90deg, var(--c-success-strong), var(--c-success));
}

.week-path__segments {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
}

.week-path__segment {
  min-width: 0;
  height: 100%;
  background: transparent;
}

.week-path__segment--done {
  background: linear-gradient(90deg, var(--c-success-strong), var(--c-success));
}

.week-path__segment--missed {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}

.week-path__segment--cheat {
  background: linear-gradient(90deg, #f59e0b, #fef3c7);
}

.week-path__segment--future {
  background: transparent;
}

.week-path__days {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
  list-style: none;
}

.week-path__day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.week-path__dot {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  border: 2.5px solid #e5e7eb;
  background: var(--c-surface);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.week-path__dot svg {
  width: 14px;
  height: 14px;
}

.week-path__day--done .week-path__dot {
  background: var(--c-success);
  border-color: var(--c-success-strong);
}

.week-path__day--missed .week-path__dot {
  background: #ef4444;
  border-color: #dc2626;
}

.week-path__day--cheat .week-path__dot {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #b45309;
}

.week-path__day--today .week-path__dot {
  border-color: var(--c-success-strong);
  box-shadow: 0 0 0 3px var(--c-success-soft);
}

.week-path__day--today.week-path__day--cheat .week-path__dot {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px #fef3c7;
}

.week-path__day--today.week-path__day--missed .week-path__dot {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px #fee2e2;
}

.week-path__day--future .week-path__dot {
  background: #f9fafb;
}

.week-path__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--c-ink-faint);
}

.week-path__day--done .week-path__label {
  color: var(--c-success-strong);
}

.week-path__day--missed .week-path__label {
  color: #dc2626;
}

.week-path__day--cheat .week-path__label {
  color: #b45309;
}

.week-path__day--today .week-path__label {
  color: var(--c-ink);
}
