.scene-viewer {
  max-width: 860px;
  margin: 0 auto;
}

#viewer-stage {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  background: #f5f5f5;
}

#viewer-container {
  width: 100%;
  height: 520px;
}

#viewer-container canvas {
  display: block;
}

#loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(245, 245, 245, 0.85);
}

.loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #ddd;
  border-top-color: #3273dc;
  border-radius: 50%;
  animation: sv-spin 0.9s linear infinite;
}

@keyframes sv-spin {
  to { transform: rotate(360deg); }
}

#viewer-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

#explode-slider {
  flex: 0 1 300px;
  accent-color: #3273dc;
}

#model-info {
  margin-left: auto;
}

#model-carousel {
  margin-top: 12px;
  padding: 0 44px;
}

#model-carousel .swiper-slide {
  width: 96px;
  cursor: pointer;
  text-align: center;
}

#model-carousel .swiper-slide img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #000;
  transition: border-color 0.15s;
}

#model-carousel .swiper-slide:hover img {
  border-color: #b5d0f5;
}

#model-carousel .swiper-slide.is-active img {
  border-color: #3273dc;
}

#model-carousel .slide-label {
  font-size: 0.7rem;
  color: #666;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#model-carousel .swiper-button-prev,
#model-carousel .swiper-button-next {
  color: #3273dc;
  --swiper-navigation-size: 24px;
}

@media (max-width: 768px) {
  #viewer-container { height: 360px; }
}
