@layer ios-workspace, taskhub-desktop-type;

html { scrollbar-gutter: stable; }
html.startup-pending #login, html.startup-pending #shell { visibility: hidden !important; }
#startup-status { display: none !important; }

html.startup-pending #startup-status {
  position: fixed;
  inset: 0;
  display: grid !important;
  align-content: center;
  justify-items: center;
  gap: 16px;
  overflow: hidden;
  background: #f2f2f7;
  color: #111827;
  z-index: 10000;
  font-family: "TaskHub Interface", system-ui, sans-serif;
}

#startup-status .startup-brand { font-size: 23px; }
#startup-status .startup-desktop-label { color: #565967; font-size: 14px; }
.ios-orbit { position: relative; width: 240px; height: 210px; isolation: isolate; }
.ios-orbit img { position: absolute; object-fit: contain; }
.ios-orbit-planet { left: 37px; top: 39px; z-index: 1; }
.ios-orbit-ship {
  left: 151px;
  top: 97px;
  z-index: 2;
  transform: rotate(140deg);
  animation: ios-orbit-flight 3.1s linear infinite;
}
@keyframes ios-orbit-flight {
  0% { transform: translate(0, 0) rotate(140deg) scale(1.04); z-index: 2; }
  12.5% { transform: translate(-37px, 17px) rotate(167deg) scale(1.08); z-index: 2; }
  25% { transform: translate(-105px, 7px) rotate(207deg); z-index: 2; }
  37.5% { transform: translate(-151px, -21px) rotate(266deg) scale(.91); z-index: 0; }
  50% { transform: translate(-150px, -43px) rotate(320deg) scale(.84); z-index: 0; }
  62.5% { transform: translate(-114px, -57px) rotate(350deg) scale(.80); z-index: 0; }
  75% { transform: translate(-52px, -49px) rotate(385deg) scale(.84); z-index: 0; }
  87.5% { transform: translate(-4px, -29px) rotate(445deg) scale(.92); z-index: 2; }
  100% { transform: translate(0, 0) rotate(500deg) scale(1.04); z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ios-orbit-ship { animation: none; }
}
