/* Section Approche (Réalisations) — onglets + démonstration Interventions */

.rx-approche-tab {
  isolation: isolate;
}

.rx-approche-tab__sweep {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.rx-approche-tab__sweep-path {
  fill: none;
  stroke: rgba(224, 242, 254, 0.92);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 9 91;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(165, 243, 252, 0.55));
  animation: rx-approche-border-sweep 1.05s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
}

@keyframes rx-approche-border-sweep {
  0% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}

.rx-approche-panel--metier {
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.78), rgba(8, 12, 24, 0.9) 55%, rgba(30, 27, 75, 0.22));
}

/* En-tête métier : titre à gauche, paragraphe à droite (desktop) */
.rx-approche-metier-head {
  display: grid;
  gap: 0.7rem;
  width: 100%;
}

.rx-approche-metier-head__tag {
  margin: 0;
}

.rx-approche-metier-head__title {
  margin: 0;
}

.rx-approche-metier-head__desc {
  margin: 0;
  max-width: 42rem;
}

@media (min-width: 1024px) {
  .rx-approche-metier-head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
      "tag ."
      "title desc";
    column-gap: clamp(1.5rem, 2.5vw, 3rem);
    row-gap: 0.65rem;
    align-items: start;
  }

  .rx-approche-metier-head__tag {
    grid-area: tag;
  }

  .rx-approche-metier-head__title {
    grid-area: title;
  }

  .vitrine-site main .rx-approche-metier-head__desc.type-body,
  .rx-approche-metier-head__desc {
    grid-area: desc;
    justify-self: end;
    width: min(42rem, 100%);
    max-width: min(65ch, 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-approche-tab__sweep,
  .rx-approche-tab__sweep-path {
    display: none !important;
    animation: none !important;
  }
}

/* --- Démonstration Interventions --- */

.rx-iv {
  --rx-iv-bg: #111827;
  --rx-iv-panel: rgba(30, 41, 59, 0.5);
  --rx-iv-line: rgba(148, 163, 184, 0.16);
  --rx-iv-cyan: #22d3ee;
  --rx-iv-violet: #8b5cf6;
  --rx-iv-dot: 1.5rem;
  --rx-iv-rail: clamp(3.5rem, 4.15vw, 4.85rem);
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(24, 33, 52, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
}

.rx-iv__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--rx-iv-line);
  background: rgba(12, 18, 32, 0.94);
}

.rx-iv__chrome-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.rx-iv__chrome-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.65rem;
  min-width: 0;
}

.rx-iv__app-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-card-title, 1.15rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.rx-iv__app-sub {
  margin: 0;
  font-size: var(--fs-small);
  color: #94a3b8;
  line-height: 1.2;
}

.rx-iv__chrome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
  align-items: center;
}

.rx-iv__ghost-btn {
  appearance: none;
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  font-family: var(--font-body);
  font-size: var(--fs-button);
  line-height: 1.3;
  cursor: pointer;
}

.rx-iv__ghost-btn:hover {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.4);
}

.rx-iv__ghost-btn:focus-visible {
  outline: 2px solid rgba(165, 243, 252, 0.7);
  outline-offset: 2px;
}

/* Corps : rail d'icônes pleine hauteur + colonne principale */
.rx-iv__shell {
  display: grid;
  grid-template-columns: var(--rx-iv-rail) minmax(0, 1fr);
  min-height: 0;
  align-items: stretch;
}

.rx-iv__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  border-right: 1px solid var(--rx-iv-line);
  background: rgba(8, 12, 24, 0.96);
}

.rx-iv__rail-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--rx-iv-line);
  flex-shrink: 0;
}

.rx-iv__rail-logo {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  pointer-events: none;
}

.rx-iv__rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.7rem 0.4rem 0.85rem;
}

.rx-iv__rail-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  color: #94a3b8;
  background: transparent;
  flex-shrink: 0;
}

.rx-iv__rail-item.is-current {
  border-color: rgba(167, 139, 250, 0.38);
  background: rgba(109, 40, 217, 0.22);
  color: #e9d5ff;
}

.rx-iv__rail-item svg {
  display: block;
}

.rx-iv__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.2);
}

.rx-iv__workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  background: rgba(15, 23, 42, 0.35);
}

/* Parcours : pastilles alignées + segments raccordés */
.rx-iv__progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0.85rem 0.75rem 0.9rem;
  border-bottom: 1px solid var(--rx-iv-line);
  background: rgba(15, 23, 42, 0.55);
}

.rx-iv__progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: #94a3b8;
  text-align: center;
}

.rx-iv__progress-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rx-iv-dot) minmax(0, 1fr);
  align-items: center;
  width: 100%;
}

.rx-iv__progress-seg {
  display: block;
  height: 1px;
  width: 100%;
  background: rgba(148, 163, 184, 0.28);
}

.rx-iv__progress-seg.is-edge {
  visibility: hidden;
}

.rx-iv__progress-seg.is-hot {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.7), rgba(34, 211, 238, 0.55));
}

.rx-iv__progress-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--rx-iv-dot);
  height: var(--rx-iv-dot);
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.92);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  z-index: 1;
}

.rx-iv__progress-item.is-current {
  color: #ecfeff;
}

.rx-iv__progress-item.is-done {
  color: #c4b5fd;
}

.rx-iv__progress-item.is-current .rx-iv__progress-index {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.rx-iv__progress-item.is-done .rx-iv__progress-index {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(139, 92, 246, 0.16);
  color: #ddd6fe;
}

.rx-iv__progress-label {
  display: block;
  width: 100%;
  padding: 0 0.2rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.35;
}

.rx-iv__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem;
}

.rx-iv__panel {
  border-radius: 0.9rem;
  border: 1px solid var(--rx-iv-line);
  background: var(--rx-iv-panel);
  padding: 1rem 1.05rem;
  opacity: 0;
  transform: translateY(0.45rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.rx-iv__panel.is-visible {
  opacity: 1;
  transform: none;
}

.rx-iv__proposal:not(.is-visible) {
  pointer-events: none;
}

.rx-iv__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.rx-iv__kicker {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #94a3b8;
}

.rx-iv__panel-title {
  margin: 0.2rem 0 0;
  font-family: var(--font-title);
  font-size: var(--fs-card-title, 1.15rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.rx-iv__status {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid rgba(167, 139, 250, 0.32);
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  white-space: nowrap;
}

.rx-iv__status--soft {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.rx-iv__status--ok {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.12);
  color: #a5f3fc;
}

.rx-iv__message {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.42);
  color: #e2e8f0;
}

.rx-iv__message p {
  margin: 0 !important;
  max-width: 44rem;
  font-family: var(--font-body) !important;
  font-size: var(--fs-body) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: #e2e8f0 !important;
}

.rx-iv__mark {
  background: transparent;
  color: inherit;
  border-radius: 0.35rem;
  padding: 0.08rem 0.28rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.rx-iv__mark.is-on {
  background: rgba(139, 92, 246, 0.22);
  color: #f5f3ff;
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.28);
}

.rx-iv__facts {
  margin-top: 0.95rem;
  opacity: 0;
  transform: translateY(0.35rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.rx-iv__facts.is-visible {
  opacity: 1;
  transform: none;
}

.rx-iv__facts-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  color: #cbd5e1;
}

.rx-iv__facts-list {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.rx-iv__facts-list > div {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.65rem 0.05rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.vitrine-site main .rx-iv__facts-list dt {
  margin: 0;
  color: #94a3b8;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
}

.vitrine-site main .rx-iv__facts-list dd {
  margin: 0;
  color: #f8fafc;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
}

@media (min-width: 1600px) {
  .vitrine-site main .rx-iv__facts-list dt,
  .vitrine-site main .rx-iv__facts-list dd {
    font-size: var(--fs-body);
  }
}

.rx-iv__summary {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rx-iv__summary-main,
.rx-iv__summary-side {
  min-width: 0;
}

.rx-iv__metric-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: #94a3b8;
}

.rx-iv__metric-value {
  margin: 0.15rem 0 0;
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 1.35rem + 1vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.05;
}

.rx-iv__metric-range {
  margin: 0.4rem 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: #94a3b8;
}

.rx-iv__metric-range span {
  color: #e2e8f0;
  font-weight: 500;
}

.rx-iv__difficulty {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  color: #f1f5f9;
}

.rx-iv__difficulty-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.rx-iv__difficulty-dot--simple { background: #67e8f9; }
.rx-iv__difficulty-dot--mid { background: #a78bfa; }
.rx-iv__difficulty-dot--complex { background: #f0abfc; }

.rx-iv__breakdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.rx-iv__total {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: #a5b4fc;
}

.rx-iv__bar {
  display: block;
  width: 100%;
  height: 0.7rem;
  overflow: hidden;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.12);
}

.rx-iv__bar-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rx-iv__bar-track.is-ready {
  transform: scaleX(1);
}

.rx-iv__bar-seg {
  display: block;
  min-width: 0;
  height: 100%;
}

.rx-iv__bar-seg--prep { background: #67e8f9; }
.rx-iv__bar-seg--diag { background: #a78bfa; }
.rx-iv__bar-seg--work { background: #818cf8; }
.rx-iv__bar-seg--check { background: #c4b5fd; }

.rx-iv__legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
}

.rx-iv__legend li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: #cbd5e1;
}

.rx-iv__legend li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rx-iv__legend strong {
  margin-left: auto;
  color: #f8fafc;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rx-iv__swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.rx-iv__validation {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: rgba(8, 47, 73, 0.28);
}

.rx-iv__validation-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: var(--fs-body);
  color: #a5f3fc;
}

.rx-iv__validation p {
  margin: 0;
  color: #e2e8f0;
  font-family: var(--font-body) !important;
  font-size: var(--fs-body) !important;
  line-height: 1.65 !important;
}

.rx-iv__validation-note {
  margin-top: 0.4rem !important;
  font-size: var(--fs-small) !important;
  color: #94a3b8 !important;
}

.rx-iv__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.05rem;
}

.rx-iv__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.9em;
  padding: 0.65rem 1.15rem;
  border-radius: 0.8rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.rx-iv__btn svg {
  flex-shrink: 0;
}

.rx-iv__btn--primary {
  flex: 1 1 12rem;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.96), rgba(79, 70, 229, 0.94));
  border-color: rgba(165, 180, 252, 0.35);
  color: #fff;
}

.rx-iv__btn--primary:hover {
  background: linear-gradient(180deg, rgba(129, 140, 248, 0.98), rgba(99, 102, 241, 0.95));
}

.rx-iv__btn--primary:focus-visible,
.rx-iv__btn--secondary:focus-visible {
  outline: 2px solid rgba(165, 243, 252, 0.7);
  outline-offset: 2px;
}

.rx-iv__btn--secondary {
  flex: 1 1 12rem;
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(148, 163, 184, 0.28);
  color: #e2e8f0;
}

.rx-iv__btn--secondary:hover {
  border-color: rgba(167, 139, 250, 0.4);
  color: #fff;
}

.rx-iv__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rx-iv__adjust {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(8px);
}

.rx-iv__adjust-card {
  width: min(100%, 28rem);
  max-height: 100%;
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(18, 27, 46, 0.98), rgba(10, 15, 28, 0.98));
  padding: 1rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.rx-iv__adjust-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rx-iv__adjust-head h5 {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-card-title, 1.15rem);
  color: #fff;
}

.rx-iv__adjust-lead,
.rx-iv__adjust-total {
  margin: 0.7rem 0 0;
  color: #94a3b8;
  font-size: var(--fs-small);
}

.rx-iv__adjust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.rx-iv__field {
  display: grid;
  gap: 0.35rem;
  color: #cbd5e1;
  font-size: var(--fs-small);
}

.rx-iv__field input,
.rx-iv__field select {
  width: 100%;
  min-height: 2.75em;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.7);
  color: #f8fafc;
  padding: 0.45rem 0.7rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
}

@media (max-width: 1023px) {
  .rx-iv {
    --rx-iv-rail: 3.35rem;
  }

  .rx-iv__rail-brand {
    min-height: 2.85rem;
  }

  .rx-iv__rail-logo {
    width: 1.55rem;
    height: 1.55rem;
  }

  .rx-iv__rail-item {
    width: 2.15rem;
    height: 2.15rem;
  }

  .rx-iv__grid {
    grid-template-columns: 1fr;
  }

  .rx-iv__summary {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 639px) {
  .rx-iv {
    --rx-iv-rail: 3.1rem;
  }

  .rx-iv__chrome {
    align-items: flex-start;
  }

  .rx-iv__chrome-titles {
    flex-direction: column;
    gap: 0.15rem;
  }

  .rx-iv__rail-nav {
    gap: 0.35rem;
    padding: 0.55rem 0.25rem 0.7rem;
  }

  .rx-iv__rail-item {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
  }

  .rx-iv__progress {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.7rem 0.85rem;
  }

  .rx-iv__progress-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 0.15rem 0;
  }

  .rx-iv__progress-rail {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) var(--rx-iv-dot) minmax(0, 1fr);
    width: var(--rx-iv-dot);
    height: 2.85rem;
    flex-shrink: 0;
  }

  .rx-iv__progress-seg {
    width: 1px;
    height: 100%;
    justify-self: center;
  }

  .rx-iv__progress-label {
    padding: 0;
    width: auto;
    flex: 1;
  }

  .rx-iv__facts-list > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .rx-iv__actions {
    flex-direction: column;
  }

  .rx-iv__btn {
    width: 100%;
    flex: none;
  }

  .rx-iv__adjust-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-iv__panel,
  .rx-iv__facts,
  .rx-iv__bar-track,
  .rx-iv__mark {
    transition: none !important;
  }

  .rx-iv__panel,
  .rx-iv__facts,
  .rx-iv__bar-track {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Hauteur partagée onglets 01 / 02 --- */

.rx-approche-panel--demo {
  background:
    linear-gradient(165deg, rgba(15, 23, 42, 0.78), rgba(8, 12, 24, 0.9) 55%, rgba(30, 27, 75, 0.22));
}

.rx-approche-softwin-stack {
  display: grid;
  width: 100%;
}

.rx-approche-softwin-slot {
  grid-area: 1 / 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.rx-approche-softwin-slot > .rx-iv,
.rx-approche-softwin-slot > .rx-pl,
.rx-approche-softwin-slot > .rx-hx {
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
}

.rx-approche-softwin-slot.is-inactive {
  visibility: hidden;
  pointer-events: none;
}

.rx-pl__shell,
.rx-pl__main {
  min-height: 100%;
  height: 100%;
}

/* --- Démonstration Planning (Systèmes existants) --- */

.rx-pl {
  --rx-pl-line: rgba(148, 163, 184, 0.16);
  --rx-pl-violet: #8b5cf6;
  --rx-pl-rail: clamp(3.5rem, 4.15vw, 4.85rem);
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(24, 33, 52, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
}

.rx-pl.is-active:not(.is-reduced) {
  animation: rx-pl-enter 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes rx-pl-enter {
  from {
    opacity: 0.72;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rx-pl__shell {
  display: grid;
  grid-template-columns: var(--rx-pl-rail) minmax(0, 1fr);
  min-height: 0;
  align-items: stretch;
}

.rx-pl__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  border-right: 1px solid var(--rx-pl-line);
  background: rgba(8, 12, 24, 0.96);
}

.rx-pl__rail-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--rx-pl-line);
  flex-shrink: 0;
}

.rx-pl__rail-logo {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
  pointer-events: none;
}

.rx-pl__rail-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.7rem 0.4rem 0.85rem;
}

.rx-pl__rail-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  color: #94a3b8;
  background: transparent;
  flex-shrink: 0;
}

.rx-pl__rail-item.is-current {
  border-color: rgba(167, 139, 250, 0.38);
  background: rgba(109, 40, 217, 0.22);
  color: #e9d5ff;
}

.rx-pl__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.2);
}

.rx-pl__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--rx-pl-line);
  background: rgba(12, 18, 32, 0.94);
}

.rx-pl__chrome-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-card-title, 1.05rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.rx-pl__chrome-title span {
  color: #64748b;
  font-weight: 500;
  margin: 0 0.2rem;
}

.rx-pl__sync {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: var(--fs-small);
  color: #86efac;
  white-space: nowrap;
}

.rx-pl__sync-ico {
  display: inline-flex;
  color: #4ade80;
}

.rx-pl__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  flex: 1 1 auto;
  border-bottom: 1px solid var(--rx-pl-line);
}

.rx-pl__fiche {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.95rem 1rem 1rem;
  border-right: 1px solid var(--rx-pl-line);
  background: rgba(15, 23, 42, 0.42);
  min-width: 0;
}

.rx-pl__fiche-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.rx-pl__fiche-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-card-title, 1.1rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.3;
}

.rx-pl__fiche-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0.35rem 0 0;
  font-size: var(--fs-small);
  color: #94a3b8;
}

.rx-pl__pipe {
  color: #475569;
}

.rx-pl__erp-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(30, 41, 59, 0.55);
  color: #cbd5e1;
  font-size: var(--fs-small);
}

.rx-pl__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(109, 40, 217, 0.28);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: #e9d5ff;
  font-size: var(--fs-small);
  font-weight: 600;
  white-space: nowrap;
}

.rx-pl__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 0.75rem;
}

.rx-pl__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.rx-pl__label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: #94a3b8;
}

.rx-pl__control {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.55);
  color: #f1f5f9;
  font-size: var(--fs-body);
}

.rx-pl__control.is-readonly {
  color: #e2e8f0;
}

.rx-pl__control-ico {
  display: inline-flex;
  color: #a5b4fc;
  flex-shrink: 0;
}

.rx-pl__control.is-select {
  padding-right: 0.35rem;
}

.rx-pl__control select {
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  padding: 0.1rem 1.4rem 0.1rem 0;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position:
    calc(100% - 0.75rem) 55%,
    calc(100% - 0.45rem) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.rx-pl__control select:focus-visible {
  outline: none;
}

.rx-pl__control:focus-within {
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.rx-pl__request {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rx-pl__request-text {
  margin: 0;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.45);
  color: #cbd5e1;
  font-size: var(--fs-body);
  line-height: 1.6;
}

.rx-pl__note {
  margin: 0;
  font-size: var(--fs-small);
  font-style: italic;
  color: #64748b;
}

.rx-pl__planning {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.95rem 1rem 1rem;
  background: rgba(15, 23, 42, 0.28);
  min-width: 0;
}

.rx-pl__planning-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rx-pl__planning-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-card-title, 1.05rem);
  font-weight: 700;
  color: #f8fafc;
}

.rx-pl__day-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.rx-pl__day-btn {
  appearance: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.rx-pl__day-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.rx-pl__day-btn:focus-visible,
.rx-pl__slot:focus-visible,
.rx-pl__btn:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.75);
  outline-offset: 2px;
}

.rx-pl__day-select select {
  appearance: none;
  min-height: 2rem;
  padding: 0.25rem 1.6rem 0.25rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position:
    calc(100% - 0.7rem) 55%,
    calc(100% - 0.4rem) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.rx-pl__grid {
  border: 1px solid var(--rx-pl-line);
  border-radius: 0.85rem;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.35);
}

.rx-pl__grid-head {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--rx-pl-line);
  background: rgba(15, 23, 42, 0.65);
}

.rx-pl__grid-corner {
  border-right: 1px solid var(--rx-pl-line);
}

.rx-pl__tech-head {
  padding: 0.55rem 0.65rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: #cbd5e1;
  text-align: center;
  border-right: 1px solid var(--rx-pl-line);
}

.rx-pl__tech-head:last-child {
  border-right: 0;
}

.rx-pl__tech-head.is-active {
  color: #e9d5ff;
}

.rx-pl__grid-body {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) minmax(0, 1fr);
  position: relative;
}

.rx-pl__hours {
  position: relative;
  border-right: 1px solid var(--rx-pl-line);
  background: rgba(15, 23, 42, 0.4);
}

.rx-pl__hour {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0 0.35rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: #64748b;
  text-align: center;
  line-height: 1;
}

.rx-pl__col {
  position: relative;
  border-right: 1px solid var(--rx-pl-line);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(var(--rx-pl-hour) - 1px),
    rgba(148, 163, 184, 0.12) calc(var(--rx-pl-hour) - 1px),
    rgba(148, 163, 184, 0.12) var(--rx-pl-hour)
  );
}

.rx-pl__col:last-child {
  border-right: 0;
}

.rx-pl__slot {
  appearance: none;
  position: absolute;
  left: 0;
  right: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.rx-pl__slot:hover,
.rx-pl__slot:focus-visible {
  background: rgba(139, 92, 246, 0.08);
}

.rx-pl__event {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  overflow: hidden;
  pointer-events: none;
}

.rx-pl__event.is-busy {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(51, 65, 85, 0.45);
  color: #cbd5e1;
}

.rx-pl__event.is-proposal {
  border: 1px solid rgba(167, 139, 250, 0.55);
  background: linear-gradient(165deg, rgba(109, 40, 217, 0.38), rgba(76, 29, 149, 0.28));
  color: #f5f3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rx-pl__event.is-proposal.is-confirmed {
  border-color: rgba(134, 239, 172, 0.45);
  background: linear-gradient(165deg, rgba(22, 101, 52, 0.4), rgba(109, 40, 217, 0.22));
}

.rx-pl__event-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-small);
  font-weight: 600;
}

.rx-pl__event-title {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
}

.rx-pl__event-ref,
.rx-pl__event-time,
.rx-pl__event-dur {
  margin: 0;
  font-size: var(--fs-small);
  opacity: 0.9;
}

.rx-pl__event-badge {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.45);
  border: 1px solid rgba(196, 181, 253, 0.35);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rx-pl__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  background: rgba(8, 12, 24, 0.92);
}

.rx-pl__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
  color: #e2e8f0;
  font-size: var(--fs-body);
}

.rx-pl__summary strong {
  font-weight: 700;
  color: #fff;
}

.rx-pl__summary-ico {
  display: inline-flex;
  color: #a78bfa;
}

.rx-pl__summary-sep {
  width: 1px;
  height: 1rem;
  background: rgba(148, 163, 184, 0.28);
}

.rx-pl__footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.65rem;
}

.rx-pl__conflict {
  margin: 0;
  width: 100%;
  order: -1;
  color: #fca5a5;
  font-size: var(--fs-small);
}

.rx-pl__confirmed {
  margin: 0;
  width: 100%;
  order: -1;
  color: #86efac;
  font-size: var(--fs-small);
}

.rx-pl__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.7rem;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.rx-pl__btn--ghost {
  border-color: rgba(148, 163, 184, 0.22);
  background: transparent;
  color: #cbd5e1;
}

.rx-pl__btn--ghost:hover {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.35);
}

.rx-pl__btn--primary {
  border-color: rgba(167, 139, 250, 0.45);
  background: linear-gradient(180deg, #7c3aed, #6d28d9);
  color: #fff;
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.28);
}

.rx-pl__btn--primary:hover:not(:disabled) {
  filter: brightness(1.06);
}

.rx-pl__btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 1023px) {
  .rx-pl {
    --rx-pl-rail: 3.35rem;
  }

  .rx-pl__body {
    grid-template-columns: 1fr;
  }

  .rx-pl__fiche {
    border-right: 0;
    border-bottom: 1px solid var(--rx-pl-line);
  }

  .rx-pl__rail-item {
    width: 2.15rem;
    height: 2.15rem;
  }
}

@media (max-width: 639px) {
  .rx-pl {
    --rx-pl-rail: 3.1rem;
  }

  .rx-pl__fields {
    grid-template-columns: 1fr;
  }

  .rx-pl__chrome {
    flex-wrap: wrap;
  }

  .rx-pl__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .rx-pl__footer-actions {
    justify-content: stretch;
  }

  .rx-pl__btn {
    flex: 1 1 auto;
  }

  .rx-pl__grid-head,
  .rx-pl__grid-body {
    grid-template-columns: 2.75rem minmax(0, 1fr) minmax(0, 1fr);
  }

  .rx-pl__event {
    left: 0.2rem;
    right: 0.2rem;
    padding: 0.35rem 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-pl.is-active {
    animation: none !important;
  }
}

/* --- Démonstration Historique (Pérennité) --- */

.rx-hx {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    linear-gradient(180deg, rgba(24, 33, 52, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.28);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.rx-hx.is-active:not(.is-reduced) {
  animation: rx-hx-enter 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes rx-hx-enter {
  from {
    opacity: 0.75;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rx-hx__chrome {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(12, 18, 32, 0.94);
}

.rx-hx__chrome-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.rx-hx__logo {
  width: 1.7rem;
  height: 1.7rem;
  object-fit: contain;
  flex-shrink: 0;
}

.rx-hx__chrome-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.65rem;
  min-width: 0;
}

.rx-hx__app-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-card-title, 1.05rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.rx-hx__app-sub {
  margin: 0;
  font-size: var(--fs-small);
  color: #94a3b8;
}

.rx-hx__body {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.15rem 1.15rem 1.05rem;
  flex: 1 1 auto;
}

.rx-hx__intro {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-width: 42rem;
}

.rx-hx__title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 1.05rem + 0.35vw, 1.45rem);
  font-weight: 750;
  color: #f8fafc;
  line-height: 1.3;
}

.rx-hx__lead {
  margin: 0;
  color: #94a3b8;
}

.rx-hx__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rx-hx__item {
  --rx-hx-rail: 2.6rem;
  --rx-hx-dot: 2.35rem;
  --rx-hx-gap: 1.35rem;
  display: grid;
  grid-template-columns: var(--rx-hx-rail) minmax(0, 1fr) minmax(7.5rem, 10rem);
  column-gap: 1rem;
  row-gap: 0.35rem;
  position: relative;
  padding-bottom: var(--rx-hx-gap);
}

.rx-hx__item:last-child {
  padding-bottom: 0;
}

.rx-hx__rail {
  position: relative;
  display: flex;
  justify-content: center;
  align-self: stretch;
  grid-row: 1 / -1;
}

.rx-hx__dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--rx-hx-dot);
  height: var(--rx-hx-dot);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.92);
  color: #c7d2fe;
  flex-shrink: 0;
}

.rx-hx__connector {
  position: absolute;
  top: var(--rx-hx-dot);
  left: 50%;
  width: 1px;
  height: calc(100% - var(--rx-hx-dot) + var(--rx-hx-gap));
  transform: translateX(-50%);
  background: rgba(148, 163, 184, 0.28);
  pointer-events: none;
}

.rx-hx__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding-top: 0.2rem;
}

.rx-hx__category {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.rx-hx__event-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.02rem, 0.95rem + 0.2vw, 1.15rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.rx-hx__event-desc {
  margin: 0;
  color: #cbd5e1;
  max-width: 44rem;
}

.rx-hx__team {
  margin: 0;
  color: #94a3b8;
  font-size: var(--fs-body);
  line-height: 1.45;
}

.rx-hx__team--desktop {
  padding-top: 1.55rem;
  text-align: right;
  align-self: start;
  justify-self: end;
}

.rx-hx__team--mobile {
  display: none;
}

.rx-hx__rule {
  grid-column: 2 / -1;
  display: block;
  height: 1px;
  margin-top: 1rem;
  background: rgba(148, 163, 184, 0.14);
}

.rx-hx__item:last-child .rx-hx__rule {
  display: none;
}

.rx-hx__footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.rx-hx__link {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #c4b5fd;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.rx-hx__link:hover {
  color: #ddd6fe;
}

.rx-hx__link:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.75);
  outline-offset: 3px;
  border-radius: 0.2rem;
}

.rx-hx__disclaimer {
  margin: 0;
  font-size: var(--fs-small);
  color: #64748b;
  max-width: 40rem;
}

.rx-hx__dialog-root {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.rx-hx__backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(2, 6, 23, 0.62);
  cursor: pointer;
}

.rx-hx__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: min(85%, 32rem);
  overflow: auto;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #0f172a;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  padding: 1rem 1.1rem 1.15rem;
}

.rx-hx__dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.rx-hx__dialog-head h5 {
  margin: 0;
  font-family: var(--font-title);
  font-size: var(--fs-card-title, 1.1rem);
  font-weight: 700;
  color: #fff;
}

.rx-hx__dialog-lead {
  margin: 0.35rem 0 0;
  color: #94a3b8;
}

.rx-hx__dialog-close {
  appearance: none;
  flex-shrink: 0;
  min-height: 2.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: var(--fs-button);
  cursor: pointer;
}

.rx-hx__dialog-close:focus-visible {
  outline: 2px solid rgba(196, 181, 253, 0.75);
  outline-offset: 2px;
}

.rx-hx__dialog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rx-hx__dialog-item {
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (max-width: 767px) {
  .rx-hx__item {
    grid-template-columns: var(--rx-hx-rail) minmax(0, 1fr);
  }

  .rx-hx__team--desktop {
    display: none;
  }

  .rx-hx__team--mobile {
    display: block;
    margin-top: 0.15rem;
  }

  .rx-hx__rule {
    grid-column: 2;
  }

  .rx-hx__body {
    gap: 0.95rem;
    padding: 0.95rem 0.9rem 0.9rem;
  }

  .rx-hx__item {
    --rx-hx-gap: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-hx.is-active {
    animation: none !important;
  }
}
