/* Native top layer keeps loading centred even when a view is animated or scrolled. */
#workspaceLoadingOverlay{
  position:fixed;inset:0;width:min(480px,calc(100vw - 32px));height:fit-content;
  min-height:0;max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;
  border:0;border-radius:24px;background:var(--surface-1,#fff);color:var(--text-primary,#0c0c31);
  box-shadow:0 16px 60px #0c0c311a;overflow:auto;
}
#workspaceLoadingOverlay::backdrop{
  background:color-mix(in srgb,var(--page-bg,#f6f6f6) 36%,transparent);
  backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);
}
#workspaceLoadingOverlay > .workspace-load-banner{
  position:static;display:flex;align-items:center;gap:16px;width:auto;margin:0;padding:24px;
  border:0;border-radius:inherit;background:transparent;box-shadow:none;transform:none;
}
#workspaceLoadingOverlay .workspace-load-banner strong{font-size:16px;font-weight:600;line-height:1.5;color:var(--text-primary,#0c0c31);}
#workspaceLoadingOverlay .workspace-load-banner small{margin-top:5px;font-size:13px;line-height:1.65;color:var(--text-secondary,#626278);}
#workspaceLoadingOverlay .workspace-load-mark::after{
  content:"";position:absolute;inset:0;border:2px solid var(--accent-soft,#eeeeff);
  border-top-color:var(--accent-blue,#3d46f2);border-radius:50%;animation:workspace-orbit 1.3s linear infinite;
}
@media(max-width:480px){#workspaceLoadingOverlay > .workspace-load-banner{gap:14px;padding:22px 20px;}#workspaceLoadingOverlay .workspace-load-banner strong{font-size:15px;}}
@media(prefers-reduced-motion:reduce){#workspaceLoadingOverlay .workspace-load-mark::after{animation:none;}}

/* Progressive updates stay in normal flow and never cover dashboard controls. */
#dashboard > .workspace-load-banner{
  position:static;transform:none;width:auto;margin:0 0 16px;
  padding:12px 16px;border:1px solid var(--border-subtle);border-radius:16px;
  background:var(--surface-1);box-shadow:none;
}
#dashboard > .workspace-load-banner[hidden]{display:none;}
#dashboard > .workspace-load-banner .workspace-load-mark{width:28px;height:28px;}
#dashboard > .workspace-load-banner .workspace-load-mark img{width:24px;height:24px;}
#dashboard > .workspace-load-banner strong{font-size:13px;font-weight:500;}
#dashboard > .workspace-load-banner small{font-size:12px;color:var(--text-secondary);}
