.sm360-viewer {
  --sm360-bg: #f7f7f7;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--sm360-bg);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  border-radius: 8px;
  outline: none;
}
.sm360-viewer:focus-visible { box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
.sm360-viewer.is-dragging { cursor: grabbing; }
.sm360-stage { position: relative; width: 100%; min-height: 220px; display: grid; place-items: center; }
.sm360-image { display: block; width: 100%; height: 100%; max-height: inherit; object-fit: contain; pointer-events: none; }
.sm360-loader { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.sm360-loader span { width: 34px; height: 34px; border: 3px solid rgba(0,0,0,.18); border-top-color: rgba(0,0,0,.68); border-radius: 50%; animation: sm360-spin .8s linear infinite; }
.sm360-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(0,0,0,.72); color: #fff; padding: 7px 12px; border-radius: 999px; font: 600 12px/1.2 system-ui, sans-serif; transition: opacity .2s; pointer-events: none; }
.sm360-hint.is-hidden { opacity: 0; }
.sm360-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,0,0,.08); transition: opacity .3s; }
.sm360-progress span { display: block; width: 0; height: 100%; background: currentColor; transition: width .15s linear; }
.sm360-progress.is-hidden { opacity: 0; }
@keyframes sm360-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sm360-loader span { animation-duration: 1.8s; } }
