/* Shared, lightweight first-paint status for the two independently loaded WASM editors. */
#dokumentum-editor-loading {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 28px;
  background: #f5f9ff;
  color: #173765;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: opacity 180ms ease, visibility 180ms ease;
}
#dokumentum-editor-loading.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
.dokumentum-editor-loading-card { width: min(100%, 420px); text-align: center; }
.dokumentum-editor-loading-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border: 2px solid #c8dcf5;
  border-top-color: #0757bd;
  border-radius: 50%;
  animation: dokumentum-editor-spin 950ms linear infinite;
}
.dokumentum-editor-loading-card h1 { margin: 0 0 10px; font-size: 1.32rem; line-height: 1.28; color: #0757bd; }
.dokumentum-editor-loading-card p { margin: 0; color: #4f6682; font-size: .94rem; }
.dokumentum-editor-loading-card .editor-loading-detail { margin-top: 10px; color: #6d829e; font-size: .8rem; }
.dokumentum-editor-loading-card .editor-loading-slow { margin-top: 18px; }
.dokumentum-editor-loading-card .editor-loading-slow a { color: #0757bd; text-decoration: underline; font-weight: 600; }
.dokumentum-editor-loading-card .editor-loading-slow[hidden] { display: none; }
@keyframes dokumentum-editor-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .dokumentum-editor-loading-mark { animation: none; }
  #dokumentum-editor-loading { transition: none; }
}
/* WordCraft has its own English-only loading indicator; show only the shared localized one. */
#wordcraft_loading { display: none !important; }
