/* Loading is a transient annotation on the scene, never a row of the entry
   layout. The same elements/live regions and Retry actions continue to own it. */
body:not([data-authoring=true]) [data-model-load-panel] {
  position:fixed; inset:auto; left:var(--load-x,50%); top:var(--load-y,50%);
  transform:translate(-50%,-50%); z-index:7; box-sizing:border-box;
  width:min(258px,calc(100vw - 32px)); max-height:calc(100dvh - 20px);
  margin:0; padding:10px 13px; overflow:hidden; pointer-events:none;
  color:#f2ecdc; background:#172016f2; border:1px solid #b4a27787;
  border-radius:8px; box-shadow:0 4px 20px #0004; transition:none;
}
body:not([data-authoring=true]) [data-model-load-panel][hidden],
body:not([data-authoring=true]) .entry-guide :is(#load-status,#model-progress) { display:none!important }
body:not([data-authoring=true]) [data-model-load-panel]:not([hidden]) {
  animation:load-overlay-appear .16s ease-out .8s backwards;
}
@keyframes load-overlay-appear { from {opacity:0} to {opacity:1} }
body:not([data-authoring=true]) [data-model-load-panel]:is(.is-startup-ready,.is-complete),
body:not([data-authoring=true]) [data-model-load-panel=playback][data-phase=ready] {
  visibility:hidden; opacity:0; animation:none;
}
body:not([data-authoring=true]) [data-model-load-panel]:has([data-load-retry]:not([hidden])) {
  visibility:visible; opacity:1; animation:none;
}
body:not([data-authoring=true]) [data-model-load-panel] [data-load-retry] {
  pointer-events:auto;min-height:44px; margin-top:6px; border:1px solid currentColor;
}
body:not([data-authoring=true]) [data-model-load-panel] .model-load-detail {
  color:#d9d9cb; font-size:12px; margin:5px 0 0;
}
body:not([data-authoring=true]) [data-model-load-panel=navigation] {
  top:var(--load-y,calc(100% - 58px));
}
/* Compact navigation keeps its own instructions and action, particularly in
   phone landscape. Progress can occupy a separate shallow viewport strip. */
@media (max-height:580px) {
  body:not([data-authoring=true]) #entry-navigation-dialog[open] { max-height:calc(100dvh - 108px) }
  body:not([data-authoring=true]) [data-model-load-panel=navigation] {padding:5px 9px}
  body:not([data-authoring=true]) [data-model-load-panel=navigation] :is(.model-load-detail,[data-load-startup]) {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  body:not([data-authoring=true]) [data-model-load-panel=navigation] .model-load-bar {margin-top:4px;height:4px}
  body:not([data-authoring=true]) [data-model-load-panel=navigation]:has([data-load-retry]:not([hidden])) :is([data-load-transfer],[data-load-startup-error]) {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  body:not([data-authoring=true]) [data-model-load-panel=navigation] [data-load-retry] {margin:0;width:100%}
}
@media (prefers-reduced-motion:reduce) {
  body:not([data-authoring=true]) [data-model-load-panel]:not([hidden]) {animation-duration:.001s}
}
