.sce-loading[hidden],
.sce-loading__dismiss[hidden] {
  display: none !important;
}

.sce-loading {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(238, 240, 255, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: progress;
}

.sce-loading__card {
  width: min(360px, 100%);
  padding: 28px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(54, 63, 112, 0.16);
  text-align: center;
  color: #282d40;
  font: 1rem/1.5 "Segoe UI", sans-serif;
}

.sce-loading__spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 4px solid #eef0ff;
  border-top-color: #6973bd;
  border-radius: 50%;
  animation: sce-spin 0.8s linear infinite;
}

.sce-loading__card p {
  margin: 8px 0 0;
  color: #667086;
}

.sce-loading__dismiss {
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid #dfe3f0;
  border-radius: 10px;
  background: #eef0ff;
  color: #4b5386;
  cursor: pointer;
  box-shadow: none;
}

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

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

@media print {
  .sce-loading { display: none !important; }
}
