:root {
  color: #24324a;
  background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#host-shell,
.module-container,
.module-container iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
}

.host-status {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
}

.host-status p {
  margin: 0;
  font-size: 0.875rem;
}

.host-status--error {
  flex-direction: column;
  color: #92400e;
  background: #fffbeb;
}

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border: 3px solid #dbe4f0;
  border-top-color: #2563eb;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

.module-container iframe {
  display: block;
  border: 0;
  background: white;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}
