.viewer-frame-shell { position: relative; isolation: isolate; }
.three-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  background: #111114;
  color: #f5f5f7;
  text-align: center;
  font-family: system-ui, -apple-system, sans-serif;
  letter-spacing: 0;
}
.three-loading[hidden], .three-loading [hidden] { display: none; }
.three-loading--scene { position: fixed; z-index: 40; }
.three-loading-status { display: grid; justify-items: center; gap: 14px; max-width: 420px; }
.three-loading strong { font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.three-loading p { margin: 0; color: #b7b6c0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.three-loading-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid #3b3847;
  border-top-color: #c4b5ef;
  border-radius: 50%;
  animation: threeLoadingSpin 1s linear infinite;
}
.three-loading[data-state="error"] .three-loading-spinner { display: none; }
.three-loading-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.three-loading-actions button, .three-loading-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #575260;
  border-radius: 6px;
  background: #27242e;
  color: #f5f5f7;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  cursor: var(--akts-cursor-pointer, pointer);
}
.three-loading-actions button:hover, .three-loading-actions a:hover { background: #393340; }
.three-loading-actions :focus-visible { outline: 2px solid #c4b5ef; outline-offset: 3px; }
@keyframes threeLoadingSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .three-loading-spinner { animation: none; } }
