.milestone-strip {
  --milestone-gap: 24px;
  margin-top: 62px;
  padding-top: 31px;
  border-top: 1px solid #ffffff24;
  color: #fff;
  min-width: 0;
}

.milestone-strip-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 29px;
}

.milestone-strip .milestone-strip-heading h3 {
  margin: 0;
  color: var(--cyan, #4baff7);
  font: 400 9px/1.6 var(--mono, monospace);
  letter-spacing: 1.4px;
}

.milestone-direction {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.6;
  color: #a8b8cb;
}

.milestone-direction > span { color: var(--cyan, #4baff7); margin-left: 7px; }
.milestone-controls { display: flex; gap: 9px; flex-shrink: 0; }
.milestone-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  padding: 9px;
  color: #d9e7f4;
  background: transparent;
  border: 1px solid #ffffff42;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.milestone-controls button svg { width: 19px; height: 19px; }
.milestone-controls button[hidden] { display: none; }
.milestone-controls button:hover:not(:disabled) { background: #4baff71c; color: #fff; border-color: var(--cyan, #4baff7); }
.milestone-controls button:disabled { color: #60768d; border-color: #ffffff16; cursor: default; }
.milestone-controls button:focus-visible,
.milestone-source:focus-visible,
.milestone-track:focus-visible { outline: 2px solid var(--cyan, #4baff7); outline-offset: 4px; }

.milestone-track {
  display: flex;
  align-items: stretch;
  gap: var(--milestone-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  scrollbar-width: thin;
  scrollbar-color: #496984 #ffffff0b;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 6px 0 21px;
  direction: ltr;
}

.milestone-track::-webkit-scrollbar { height: 3px; }
.milestone-track::-webkit-scrollbar-track { background: #ffffff0b; }
.milestone-track::-webkit-scrollbar-thumb { background: #496984; }

.milestone-track > .milestone-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 260px;
  width: 260px;
  min-width: 0;
  scroll-snap-align: start;
  padding: 0;
  margin: 0;
  border: 0;
}

.milestone-date {
  color: var(--cyan, #4baff7);
  font: 400 9px/1.6 var(--mono, monospace);
  letter-spacing: .9px;
}

.milestone-axis {
  position: relative;
  display: block;
  align-self: stretch;
  height: 1px;
  background: #4baff744;
  margin-top: 17px;
  margin-bottom: 23px;
}

.milestone-card:not(:last-child) .milestone-axis::after {
  content: '';
  position: absolute;
  height: 1px;
  width: var(--milestone-gap);
  left: 100%;
  top: 0;
  background: #4baff744;
}

.milestone-axis > span {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--cyan, #4baff7);
  background: var(--navy, #141e2e);
  border-radius: 50%;
  left: 0;
  top: -3px;
}

.milestone-card:first-child .milestone-axis > span { background: var(--cyan, #4baff7); }
.milestone-strip .milestone-card h4 { margin: 0; color: #f4f7fb; font-size: 17px; font-weight: 500; line-height: 1.38; letter-spacing: -.25px; }
.milestone-strip .milestone-card > p { margin: 11px 0 21px; color: #a5b6ca; font-size: 11px; line-height: 1.85; }
.milestone-source { display: inline-flex; gap: 10px; align-items: center; max-width: 100%; color: #c0d7ea; font: 400 8px/1.7 var(--mono, monospace); margin-top: auto; padding: 3px 0; }
.milestone-source > span { min-width: 0; }
.milestone-source svg { width: 12px; height: 12px; flex-shrink: 0; }
.milestone-source:hover { color: var(--cyan, #4baff7); }
.milestone-position { margin: 13px 0 0; color: #8ba1b9; font: 400 8px/1.7 var(--mono, monospace); letter-spacing: .3px; }

@media (max-width: 760px) {
  .milestone-strip { --milestone-gap: 20px; margin-top: 39px; padding-top: 25px; }
  .milestone-strip-heading { margin-bottom: 26px; gap: 15px; }
  .milestone-strip .milestone-strip-heading h3 { font-size: 8px; letter-spacing: 1px; }
  .milestone-direction { font-size: 10px; max-width: 210px; }
  .milestone-controls { gap: 7px; }
  .milestone-controls button { width: 35px; height: 35px; padding: 8px; }
  .milestone-track > .milestone-card { flex-basis: min(260px, 78vw); width: min(260px, 78vw); }
  .milestone-strip .milestone-card h4 { font-size: 17px; }
  .milestone-strip .milestone-card > p { font-size: 12px; line-height: 1.75; }
  .milestone-source { font-size: 9px; }
  .milestone-position { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .milestone-track { scroll-behavior: auto; }
  .milestone-controls button { transition: none; }
}
