/* Keep unloaded controls out of view; the intro remains outside this grid. */
.swd-dmd-wrap:not([data-dmd-runtime-state]):not([data-dmd-resource-wait]) .swd-dmd-grid > :not(.swd-dmd-canvas-loader) { display: none; }
.swd-dmd-wrap:not([data-dmd-runtime-state]):not([data-dmd-resource-wait]) .swd-dmd-grid { position: relative; min-height: 100px; }
.swd-dmd-wrap .swd-dmd-grid.swd-dmd-is-loading { position: relative; }
.swd-dmd-canvas-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255,255,255,.82);
  color: #222;
  font-size: 14px;
}
.swd-dmd-canvas-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(0,0,0,.18);
  border-top-color: rgba(0,0,0,.72);
  border-radius: 50%;
  animation: swdDmdSpin .75s linear infinite;
}
@keyframes swdDmdSpin { to { transform: rotate(360deg); } }


/* Download status inside the existing options gate; keep its message visible. */
.swd-dmd-wrap .swd-dmd-canvas-gate.swd-dmd-is-preparing {
  flex-direction: column;
  gap: 14px;
}
.swd-dmd-wrap .swd-dmd-canvas-loader.swd-dmd-preparation-loader {
  position: static;
  inset: auto;
  background: transparent;
  flex: 0 0 auto;
}
