/* VEVL-199 — shared loading-state contract.
   Reflects real application work only: no artificial delays and no synthetic data. */
:root{
  --sp-loading-accent:#5fc4ff;
  --sp-loading-track:rgba(86,183,255,.16);
  --sp-loading-spinner:currentColor;
}
body[data-global-loading="v199"] .spaceron-loading-rail{
  position:fixed;inset:0 0 auto;z-index:10020;height:3px;overflow:hidden;
  background:var(--sp-loading-track);opacity:0;pointer-events:none;
  transition:opacity .14s ease;
}
body[data-global-loading="v199"][data-page-busy="true"] .spaceron-loading-rail{opacity:1}
body[data-global-loading="v199"] .spaceron-loading-rail::after{
  content:"";display:block;width:38%;height:100%;transform:translateX(-110%);
  background:linear-gradient(90deg,transparent,var(--sp-loading-accent),#bceaff,transparent);
  animation:spaceron-loading-rail 1.25s ease-in-out infinite;
}
body[data-global-loading="v199"] :is(button,[role="button"])[data-sp-loading-indicator="true"]{
  position:relative;cursor:progress!important;
}
body[data-global-loading="v199"] :is(button,[role="button"])[data-sp-loading-indicator="true"]::after{
  content:"";display:inline-block;flex:0 0 auto;width:14px;height:14px;margin-left:9px;
  border:2px solid color-mix(in srgb,var(--sp-loading-spinner) 38%,transparent);
  border-top-color:var(--sp-loading-spinner);border-radius:50%;vertical-align:-2px;
  animation:spaceron-loading-spin .72s linear infinite;
}
body[data-global-loading="v199"] form[aria-busy="true"] :is(input,select,textarea):not([type="hidden"]){cursor:progress}
body[data-global-loading="v199"] main[aria-busy="true"]{cursor:progress}
body[data-global-loading="v199"] [aria-busy="true"][data-sp-loading-region="true"]{isolation:isolate}
@keyframes spaceron-loading-spin{to{transform:rotate(360deg)}}
@keyframes spaceron-loading-rail{0%{transform:translateX(-110%)}55%,100%{transform:translateX(310%)}}
@media(prefers-reduced-motion:reduce){
  body[data-global-loading="v199"] .spaceron-loading-rail::after{width:100%;transform:none;animation:none;background:var(--sp-loading-accent)}
  body[data-global-loading="v199"] :is(button,[role="button"])[data-sp-loading-indicator="true"]::after{animation:none;border-color:currentColor transparent currentColor currentColor}
  body[data-global-loading="v199"] .spaceron-loading-rail{transition:none}
}
@media(forced-colors:active){
  body[data-global-loading="v199"] .spaceron-loading-rail{background:Canvas}
  body[data-global-loading="v199"] .spaceron-loading-rail::after{background:Highlight}
  body[data-global-loading="v199"] :is(button,[role="button"])[data-sp-loading-indicator="true"]::after{border-color:ButtonText;border-top-color:transparent}
}
