/* Transient only: the original controls remain the source of truth. */
.nx-segment-flight { position: relative !important; isolation: isolate; }
.nx-segment-flight > button[aria-pressed] {
  position: relative;
  z-index: 1;
  background: transparent !important;
  color: var(--nx-motion-idle-ink) !important;
  transition: none !important;
}
.nx-segment-flight > button[aria-pressed]::before { opacity: 0 !important; }
.nx-segment-flight > button[aria-pressed]::after {
  content: attr(data-nx-motion-label);
  position: absolute;
  inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: inherit;
  color: var(--nx-motion-selected-ink);
  font: inherit;
  white-space: nowrap;
  pointer-events: none;
  clip-path: var(--nx-motion-clip, inset(100%));
}
.nx-segment-flight .nx-segment-bed,
.nx-segment-flight .nx-segment-indicator { position: absolute; pointer-events: none; box-sizing: border-box; }
.nx-segment-flight .nx-segment-bed { z-index: -2; }
.nx-segment-flight .nx-segment-indicator { z-index: -1; }

/* Color-only sweep: existing heading, layout and text remain intact. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .nx-chromatic-heading {
    background-image: linear-gradient(180deg, currentColor 0%, currentColor 33%, #ff9b70 39%, #ff7542 46%, #ee5a28 51%, currentColor 65%, currentColor 100%) !important;
    background-size: 100% 300% !important;
    background-repeat: no-repeat !important;
    background-clip: text !important; -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: nx-chromatic-sweep 1.35s ease-in-out both !important;
  }
}
@keyframes nx-chromatic-sweep { from { background-position: 0 100%; } to { background-position: 0 0%; } }

@media (prefers-reduced-motion: reduce) { .nx-chromatic-heading { animation: none !important; background-image: none !important; -webkit-text-fill-color: currentColor !important; } }
