/* HBR Cloud: visible only while GO-Global fills #startingSession. */
#startingSession:not(:empty) {
  position: fixed;
  top: 38%;
  left: 50%;
  z-index: 0;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 40px));
  padding: 28px 32px 32px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(117, 75, 233, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 45px rgba(30, 13, 89, 0.11);
}

#startingSession:not(:empty) h2 {
  margin: 0 0 22px;
  color: #10075d;
  font: 600 20px/1.35 Arial, sans-serif;
}

#startingSession:not(:empty)::after {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: linear-gradient(90deg, #ece6ff 0%, #ece6ff 35%, #7b28f8 50%, #16aff1 63%, #ece6ff 78%, #ece6ff 100%);
  background-size: 220% 100%;
  content: "";
  animation: hbr-session-loading 1.9s linear infinite;
}

@keyframes hbr-session-loading {
  from { background-position: 100% 0; }
  to { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  #startingSession:not(:empty)::after {
    animation: none;
    background: linear-gradient(90deg, #7b28f8, #16aff1);
  }
}

/* The GO-Global AppController dialog already shows connection progress. */
#main:has(#installApp[style*="inline-block"]) #startingSession {
  display: none;
}
