.docs-interactive {
  border: 1px solid #dbe4f5;
  border-radius: 12px;
  background: #f9fbff;
  padding: 14px;
  margin: 18px 0;
}

.docs-interactive-figure {
  margin: 0;
}

.docs-interactive-media-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d0ddee;
  background: #0b1220;
}

.docs-interactive-media {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}

.docs-interactive-media:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.6);
  outline-offset: -3px;
}

.docs-interactive-image {
  display: block;
  width: 100%;
  height: auto;
}

.docs-interactive-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #475569;
}

.docs-interactive-hotspot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.docs-interactive-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: rgba(99, 102, 241, 0.9);
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3);
}

.docs-interactive-hotspot-dot {
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  background: #ffffff;
}

.docs-interactive-hotspot:hover,
.docs-interactive-hotspot.is-active {
  background: rgba(99, 102, 241, 1);
}

.docs-interactive-hotspot:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.4);
  outline-offset: 1px;
}

.docs-interactive-story {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.docs-interactive-step {
  border: 1px solid #c4d3f1;
  border-radius: 999px;
  background: #ffffff;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.docs-interactive-step.is-active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #3730a3;
}

.docs-interactive-step:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.7);
  outline-offset: 2px;
}

.docs-interactive-detail {
  margin-top: 10px;
  border: 1px solid #d6e3f8;
  border-radius: 10px;
  background: #ffffff;
  padding: 10px 12px;
}

.docs-interactive-detail h4 {
  margin: 0 0 4px;
  font-size: 14px;
  color: #0f172a;
}

.docs-interactive-detail p {
  margin: 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
}

.docs-interactive[data-interactive-animation="fade-up"] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.docs-interactive[data-interactive-animation="zoom-in"] {
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 320ms ease, transform 320ms ease;
}

.docs-interactive.is-inview {
  opacity: 1;
  transform: none;
}

.docs-interactive--no-motion,
.docs-interactive[data-interactive-animation="none"] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.docs-interactive-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.docs-interactive-lightbox[data-open="1"] {
  display: block;
}

.docs-interactive-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
}

.docs-interactive-lightbox-panel {
  position: relative;
  width: min(1000px, calc(100vw - 40px));
  margin: 40px auto;
  border-radius: 14px;
  padding: 14px;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
}

.docs-interactive-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #111827;
  color: #e2e8f0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.docs-interactive-lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 200px);
  object-fit: contain;
  border-radius: 10px;
}

.docs-interactive-lightbox-caption {
  margin: 10px 0 0;
  font-size: 13px;
  color: #cbd5e1;
}

@media (max-width: 680px) {
  .docs-interactive {
    padding: 10px;
  }

  .docs-interactive-hotspot {
    width: 22px;
    height: 22px;
  }

  .docs-interactive-lightbox-panel {
    width: calc(100vw - 20px);
    margin: 10px auto;
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .docs-interactive,
  .docs-interactive * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
