/* In-page, viewport-fitted demo with a quiet blue focus light. */
.study-focus-track {
  position: relative;
  isolation: isolate;
  width: 100%;
}
.study-focus-track::before {
  content: '';
  position: absolute;
  inset: -24px 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(96, 165, 250, 0.08) 48%,
    transparent 73%
  );
  transition: opacity 0.4s ease;
}
.study-focus-track.is-highlighted::before {
  opacity: 1;
}
.agent-workspace.is-scroll-framed {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--study-focus-width);
  height: var(--study-focus-height);
  grid-template-rows: minmax(0, 1fr) auto;
  max-width: none;
  margin: 0;
  transform: translate(-50%, -50%) scale(var(--study-focus-scale, 1));
  transform-origin: center;
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.06);
}
.is-highlighted .agent-workspace.is-scroll-framed {
  box-shadow:
    0 14px 70px rgba(59, 130, 246, 0.14),
    0 0 0 1px rgba(147, 197, 253, 0.28);
}
.is-scroll-framed .agent-step-list {
  overscroll-behavior-y: auto;
}
@media (prefers-reduced-motion: reduce) {
  .study-focus-track::before {
    transition: none;
  }
}

.is-scroll-framed .agent-story {
  min-height: 0;
  overflow: hidden;
}
.is-scroll-framed .agent-story-content {
  overflow-y: auto;
}
.is-scroll-framed .study-figure {
  min-height: 0;
  overflow-y: auto;
}
.is-scroll-framed .study-figure > .study-viewer {
  height: auto;
  min-height: 280px;
  flex: 1 1 430px;
}
.is-scroll-framed .study-figure > .study-models {
  min-height: 280px;
  flex: 1 1 430px;
}
.product-page .study-prepared {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  flex: 1 1 430px;
  background: #fafaf9;
  overflow: hidden;
}
.product-page .study-prepared[hidden] {
  display: none;
}
.product-page .study-prepared img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: contain;
}
.product-page .study-prepared > span {
  position: absolute;
  bottom: 12px;
  left: 16px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #626873;
  font-size: 10px;
}
.product-page .agent-workspace[data-agent-stage='0'] .study-prepared {
  display: none;
}
