/* Cold-load veil for every route except the public homepage.
   The homepage uses n1-bare-boot in start.css. Every other URL used to paint
   #screen-dashboard (it has no "hidden" class in the HTML) until app-core.js
   finished and the platform shell existed. This hides that screen before the
   first paint. An inline script then reveals the screen the URL asked for,
   or a one-line loader when that screen is created later by the platform. */

html.n1-route-boot #mainContent > .screen:not(.n1-boot-show) {
  display: none !important;
}

html.n1-route-boot #mainContent > .screen.n1-boot-show {
  display: block !important;
}

#appRouteBoot {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  margin: 0;
  color: #3d4d66;
  font: 600 1rem/1.4 -apple-system, system-ui, sans-serif;
}

html.n1-route-boot #appRouteBoot,
html.n1-route-pending #appRouteBoot {
  display: flex;
}

html.n1-route-boot:has(.n1-boot-show) #appRouteBoot {
  display: none;
}

.platform-screen-loading {
  margin: 48px 0;
  color: #3d4d66;
  font-weight: 600;
}
