.deal-stage-ribbon {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 0 4px;
  margin: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.deal-stage-ribbon__stage {
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0px;
  min-width: 36px;
  height: 34px;
  box-sizing: border-box;
  padding: 0 15px;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: var(--stage-fill, #e5e9ed);
  color: var(--stage-ink, #111827);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
  transition: flex-basis 180ms ease, flex-grow 180ms ease, background-color 180ms ease, color 180ms ease;
}
.deal-stage-ribbon__stage:first-child {
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}
.deal-stage-ribbon__stage.is-preview {
  flex: 0 0 var(--stage-expanded-width, 160px);
}
.deal-stage-ribbon__label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deal-stage-ribbon__stage.is-current::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: currentColor;
}
.deal-stage-ribbon__stage:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px currentColor;
}
.deal-stage-ribbon__stage:disabled {
  cursor: default;
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .deal-stage-ribbon__stage { transition: none; }
}
