/* initial-presentation/1: parser-time retirement, independent of module loading.
   Native ports remain in the DOM for the application state machine. */
@layer telaio-initial-presentation {
 /* Demo-copy ports only: geometry and native demo state remain untouched. */
 [data-telaio-preview-demo-copy],
 .viewport-panel #demoProjectBadge,
 body:not([data-preview-state]) .viewport-panel #emptyState,
 [data-telaio-consumer="sf"][data-preview-state="demo"] :is([data-sf-hud="file"],[data-sf-hud="fit"]),
 body[data-bf-ux]:is(.bf-example-active,.bf-example-loading) #model-preview-title,
 body[data-bf-ux].bf-example-loading #model-preview-empty {display:none!important}

 [data-telaio-view-port="utility"]:not([data-telaio-view-utility]){display:none!important}
 [data-telaio-consumer="sf"] > :is(.sf3d__revision-position,.es3d-procedure-bar),
 [data-telaio-consumer="quote"] .ps3d__workflow-shell > .es3d-procedure-bar,
 [data-telaio-consumer="bf"] > .es3d-procedure-bar,
 [data-telaio-consumer="ombra"] .journey,
 [data-telaio-consumer="libro"] .mobile-scroll-cue,
 html[data-telaio-embedded="fb"] body > :is(.topbar,.steps,#revisionActions) {
  display:none!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  height:0!important;
 }
}
/* NascitaSegno: the native mobile grid must be usable before model-preview hydrates it. */
@media(max-width:1119px){
 [data-telaio-initial="ns"] #workspace:not([data-telaio-preview-columns]){grid-template-columns:minmax(0,1fr)!important}
}

/* startup-stability/1: hold only the application surface while Telaio and the
   canonical navigation complete their first layout. The global header and the
   rest of the WordPress document must stay visible and independently usable. */
@keyframes telaio-startup-fallback-reveal {
 to { visibility:visible; opacity:1; }
}
@media (scripting:enabled) {
 html:not([data-telaio-embedded]):not(.telaio-ready) body.telaio-startup-host [data-telaio-consumer],
 html:not([data-telaio-embedded]):not(.esnav-ready) body.telaio-startup-host [data-telaio-consumer],
 html:not([data-telaio-embedded]):not(.telaio-ready) body [data-telaio-consumer],
 html:not([data-telaio-embedded]):not(.esnav-ready) body [data-telaio-consumer],
 html[data-telaio-embedded]:not(.telaio-ready) body[data-telaio-consumer] {
  visibility:hidden;
  opacity:0;
  animation:telaio-startup-fallback-reveal 0s 3s forwards;
 }
 html.telaio-ready.esnav-ready:not([data-telaio-embedded]) body.telaio-startup-host [data-telaio-consumer],
 html.telaio-ready.esnav-ready:not([data-telaio-embedded]) body [data-telaio-consumer],
 html[data-telaio-embedded].telaio-ready body[data-telaio-consumer] {
  visibility:visible;
  opacity:1;
  animation:none;
 }
}
