html[data-studio-loading] { background: #101010; }
html[data-studio-loading] body > :not(#studio-loading) { visibility: hidden !important; }
#studio-loading { display: none; }
/* showModal focuses the full-screen status dialog. Only its interactive
   controls should draw a focus indicator, never the viewport-sized panel. */
#studio-loading, #studio-loading:focus, #studio-loading:focus-visible { outline: none; box-shadow: none; }
html[data-studio-loading] #studio-loading {
  position: fixed; inset: 0; z-index: 2147483647;
  box-sizing:border-box;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; background: #101010; color: #b9b9b9;
  font: 14px/1.6 Arial, sans-serif; text-align: center;
}
#studio-loading p { margin: 0; max-width: 360px; }
/* Every waiting surface uses the same logo and bar. Status text stays available to assistive technology. */
.studio-loading-indicator{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;background:#101010;color:#b9b9b9;text-align:center;font:14px/1.6 Arial,sans-serif}
:is(#studio-loading:not(.is-error):not(.is-slow),.studio-loading-indicator:not(.is-error))>:is(p,span){position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
:is(#studio-loading,.studio-loading-indicator).is-error::before{animation:none}
:is(#studio-loading,.studio-loading-indicator).is-error::after{display:none}
:is(#studio-loading,.studio-loading-indicator)::before{content:'';display:block;width:var(--studio-loading-logo-size,64px);height:var(--studio-loading-logo-size,64px);background:var(--studio-loading-logo,none) center/contain no-repeat;animation:studio-loading-breathe 1.8s ease-in-out infinite}
:is(#studio-loading,.studio-loading-indicator)::after{content:'';order:1;width:56px;height:4px;border-radius:4px;background:linear-gradient(90deg,transparent,var(--studio-loading-accent,#ff60d3),transparent);animation:studio-loading-sweep 1.2s ease-in-out infinite}
@keyframes studio-loading-breathe{0%,100%{transform:scale(.94);opacity:.6}50%{transform:scale(1);opacity:1}}
@keyframes studio-loading-sweep{0%,100%{transform:scaleX(.35);opacity:.35}50%{transform:scaleX(1);opacity:1}}
@media(prefers-reduced-motion:reduce){:is(#studio-loading,.studio-loading-indicator)::before,:is(#studio-loading,.studio-loading-indicator)::after{animation:none}}
#studio-loading-retry { border: 0; background: none; font: inherit; cursor: pointer; color: #f6f4f2; text-decoration: underline; text-underline-offset: 4px; }
#studio-loading-retry[hidden] { display: none; }
#studio-loading-retry:focus-visible { outline: 2px solid #f6f4f2; outline-offset: 4px; }

.studio-loading-indicator[hidden]{display:none!important}

:is(.reviews-home,.dashboard-view).is-loading{background:#101010!important}
