/* FW2-METRIC-013 — Model Residency carousel/timeline (additive). */
.model-residency-timeline-panel {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 8px;
  background: rgba(8, 12, 22, 0.45);
}

.model-residency-timeline-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

#model-residency-carousel {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  max-width: 100%;
  scroll-snap-type: x mandatory;
}

.model-residency-card {
  flex: 0 0 auto;
  min-width: 8.5rem;
  max-width: 12rem;
  scroll-snap-align: start;
  display: grid;
  gap: 0.15rem;
  padding: 0.4rem 0.5rem;
  border-left: 3px solid rgba(52, 211, 153, 0.65);
  background: rgba(15, 23, 42, 0.55);
}

.model-residency-card[data-residency-state="cold"] {
  border-left-color: rgba(148, 163, 184, 0.55);
  opacity: 0.85;
}

.model-residency-card[data-residency-state="warm_reuse"] {
  border-left-color: rgba(56, 189, 248, 0.75);
}

.model-residency-model {
  font-weight: 600;
  font-size: 0.85rem;
  word-break: break-word;
}

#model-residency-timeline-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  max-height: 10rem;
  overflow: auto;
}

.model-residency-event {
  display: grid;
  gap: 0.1rem;
  padding: 0.35rem 0.45rem;
  border-left: 3px solid rgba(52, 211, 153, 0.45);
  background: rgba(15, 23, 42, 0.55);
}

.model-residency-event[data-residency-kind="unload"] {
  border-left-color: rgba(248, 113, 113, 0.55);
}

.model-residency-event[data-residency-kind="reuse"],
.model-residency-event[data-residency-kind="load_time_savings"] {
  border-left-color: rgba(56, 189, 248, 0.65);
}

#model-residency-savings,
#model-residency-timeline-status {
  margin-top: 0.35rem;
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  #model-residency-carousel {
    scroll-snap-type: none;
  }
}
