/* Critical PLM Studio application boot layer. Loaded last so legacy shell rules cannot reveal partial UI. */
body.studio-is-booting {
  overflow: hidden;
}

body.studio-is-booting > :not(#studioBootScreen):not(script) {
  visibility: hidden;
  pointer-events: none;
}

.studio-boot-screen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  min-width: 0;
  min-height: 100dvh;
  place-items: center;
  padding:
    max(24px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  color: #f4f8fb;
  background: #05090e;
  opacity: 1;
  visibility: visible;
  transition: opacity 190ms ease, visibility 190ms ease;
}

.studio-boot-screen[hidden] {
  display: none;
}

.studio-boot-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.studio-boot-panel {
  display: grid;
  width: min(100%, 360px);
  justify-items: center;
  gap: 0;
  text-align: center;
}

.studio-boot-logo {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  object-fit: contain;
}

.studio-boot-product {
  margin: 0 0 8px;
  color: #f7fbff;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: 0;
}

.studio-boot-panel h1 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(24px, 7vw, 32px);
  font-weight: 690;
  letter-spacing: 0;
  line-height: 1.15;
}

#studioBootStage {
  min-height: 22px;
  margin: 14px 0 20px;
  color: #93a5b5;
  font-size: 14px;
  line-height: 1.5;
}

.studio-boot-progress {
  position: relative;
  width: min(100%, 260px);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(193, 216, 233, 0.1);
}

.studio-boot-progress span {
  position: absolute;
  inset: 0 auto 0 -42%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(99, 213, 255, 0), #63d5ff 58%, rgba(255, 255, 255, 0.9));
  animation: studio-boot-progress 1.25s ease-in-out infinite;
}

.studio-boot-screen.is-error .studio-boot-progress {
  display: none;
}

.studio-boot-screen.is-error #studioBootStage {
  max-width: 330px;
  color: #a9b8c5;
}

.studio-boot-actions {
  width: 100%;
  margin-top: 8px;
}

.studio-boot-actions:not([hidden]) {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.studio-boot-button {
  min-width: 112px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(194, 215, 234, 0.15);
  border-radius: 9px;
  color: #dbe6ef;
  background: #0d151d;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.studio-boot-button:hover,
.studio-boot-button:focus-visible {
  border-color: rgba(99, 213, 255, 0.42);
  color: #f7fbff;
  outline: 2px solid rgba(99, 213, 255, 0.25);
  outline-offset: 2px;
}

.studio-boot-button.is-primary {
  border-color: rgba(99, 213, 255, 0.3);
  color: #f5fbff;
  background: rgba(33, 190, 245, 0.14);
}

@keyframes studio-boot-progress {
  from { transform: translateX(0); }
  to { transform: translateX(340%); }
}

@media (prefers-reduced-motion: reduce) {
  .studio-boot-screen {
    transition-duration: 1ms;
  }

  .studio-boot-progress span {
    width: 52%;
    animation: none;
    transform: translateX(92%);
  }
}