/* Admin loading cover lockup + centre the page loader card */
.pcs-cover-loader__logo,
.pcs-preview-loader__brand > img.pcs-cover-loader__logo {
  display: block;
  width: min(36rem, 92vw);
  max-height: min(14rem, 42vh);
  height: auto;
  object-fit: contain;
}
.pcs-preview-loader--shell .pcs-cover-loader__logo {
  width: min(22rem, 86vw);
  max-height: 8.5rem;
}
.pcs-preview-loader--splash .pcs-preview-loader__panel {
  width: min(100%, 40rem);
}
.pcs-preview-loader--shell .pcs-preview-loader__panel {
  width: min(100%, 26rem);
}
#pcs-boot-fallback {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
#pcs-boot-fallback .pcs-boot-logo {
  display: block;
  width: min(36rem, 92vw);
  max-height: min(14rem, 42vh);
  height: auto;
  object-fit: contain;
}

.pcs-cover-loader--full {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pcs-app .pcs-stage {
  display: flex !important;
  flex-direction: column !important;
}
.pcs-app .pcs-canvas {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
.pcs-page.pcs-page--loading,
.pcs-admin-loader,
.pcs-preview-loader--shell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  background: transparent !important;
}
.pcs-page.pcs-page--loading {
  min-height: calc(100dvh - 9.25rem);
  min-height: calc(100svh - 9.25rem);
}
.pcs-cover-loader--white {
  margin-inline: auto;
}

/* Older hashed chunks still render the atom SVG mark. Hide it and show the cover. */
.pcs-preview-loader__mark,
.pcs-preview-loader__name,
.pcs-preview-loader__rule {
  display: none !important;
}
.pcs-preview-loader__brand {
  width: min(22rem, 86vw);
  min-height: 8.5rem;
  background: url("/images/PC-Scientist-Cover-White.webp?v=1") center / contain no-repeat;
}
.pcs-preview-loader--splash .pcs-preview-loader__brand {
  width: min(36rem, 92vw);
  min-height: min(12rem, 38vh);
  background-image: url("/images/PC-Scientist-Cover-Transparent.webp?v=1");
}
.pcs-preview-loader__brand img:not(.pcs-cover-loader__logo) {
  display: none !important;
}
