/* Certigate 1.29.2 — non-blocking native loading language.
   The page/shell stays visible and interactive. Async work is communicated by
   a thin rail + compact status surface instead of a fullscreen splash. */
html.cg-native-busy::before{
  content:"";position:fixed;z-index:2147483000;top:0;left:0;width:34%;height:2px;
  border-radius:0 999px 999px 0;background:linear-gradient(90deg,transparent,#C9A227,#E8D17B,#C9A227,transparent);
  pointer-events:none;animation:cgNativeRail .92s ease-in-out infinite;box-shadow:0 1px 8px rgba(201,162,39,.18)
}
@keyframes cgNativeRail{0%{transform:translateX(-115%)}100%{transform:translateX(315%)}}

/* Candidate initial/route readiness: never cover the content canvas. */
body.cg-candidate-studio .cgcs-app .cgcs-boot{
  position:fixed!important;inset:0 0 auto 248px!important;height:3px!important;min-height:0!important;
  display:block!important;padding:0!important;background:transparent!important;box-shadow:none!important;
  pointer-events:none!important;z-index:220!important;opacity:1;visibility:visible
}
body.cg-candidate-studio .cgcs-app .cgcs-boot-progress{position:absolute!important;inset:0 0 auto 0!important;height:3px!important}
body.cg-candidate-studio .cgcs-app .cgcs-boot-card{
  position:absolute!important;top:12px!important;right:18px!important;left:auto!important;width:auto!important;min-width:0!important;
  max-width:min(360px,calc(100vw - 36px))!important;display:flex!important;grid-template-columns:none!important;gap:9px!important;
  padding:9px 11px!important;border-radius:14px!important;background:color-mix(in srgb,var(--cgcs-panel) 94%,transparent)!important;
  border:1px solid var(--cgcs-border)!important;box-shadow:0 10px 28px rgba(7,24,34,.11)!important
}
body.cg-candidate-studio .cgcs-app .cgcs-boot-brand{width:30px!important;height:30px!important;border-radius:10px!important;flex:0 0 30px!important}
body.cg-candidate-studio .cgcs-app .cgcs-boot-brand-dot{width:9px!important;height:9px!important}
body.cg-candidate-studio .cgcs-app .cgcs-boot-card strong{font-size:.78rem!important}
body.cg-candidate-studio .cgcs-app .cgcs-boot-card small{font-size:.66rem!important}
body.cg-candidate-studio.cgcs-route-leaving .cgcs-main{opacity:1!important;transform:none!important;pointer-events:auto!important}

/* Admin Studio first paint: keep the actual admin screen visible below. */
.cga-screen .cga-boot-screen{
  position:fixed!important;inset:0!important;display:block!important;padding:0!important;background:transparent!important;
  pointer-events:none!important;z-index:220!important;place-items:initial!important
}
.cga-screen .cga-boot-screen .cga-boot-shell{display:none!important}
.cga-screen .cga-boot-screen::before{
  content:"";position:absolute;top:0;left:0;width:34%;height:3px;background:linear-gradient(90deg,transparent,var(--cga-gold),#E8D17B,var(--cga-gold),transparent);
  animation:cgNativeRail .92s ease-in-out infinite
}
.cga-screen .cga-boot-live{
  position:absolute!important;top:12px!important;right:18px!important;left:auto!important;bottom:auto!important;margin:0!important;
  display:flex!important;align-items:center!important;gap:8px!important;width:auto!important;max-width:min(360px,calc(100vw - 36px))!important;
  padding:9px 11px!important;border:1px solid var(--cga-border)!important;border-radius:14px!important;
  background:color-mix(in srgb,var(--cga-card) 95%,transparent)!important;box-shadow:0 10px 28px rgba(7,24,34,.11)!important
}
.cga-screen .cga-boot-live::before{content:"CG";display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:10px;background:color-mix(in srgb,var(--cga-gold) 16%,var(--cga-card));color:var(--cga-gold);font-size:.66rem;font-weight:900;letter-spacing:.03em}
.cga-screen .cga-boot-live strong,.cga-screen .cga-boot-live small{display:block!important}
.cga-screen .cga-boot-live strong{font-size:.78rem!important}.cga-screen .cga-boot-live small{font-size:.66rem!important;margin-top:2px!important}
.cga-screen.is-booting .cga-boot-screen{opacity:1!important;visibility:visible!important;pointer-events:none!important}
.cga-screen.is-leaving .cga-content{opacity:1!important;transform:none!important}

@media(max-width:1080px) and (min-width:821px){body.cg-candidate-studio .cgcs-app .cgcs-boot{left:218px!important}}
@media(max-width:820px){
  body.cg-candidate-studio .cgcs-app .cgcs-boot{inset:57px 0 auto 0!important}
  body.cg-candidate-studio .cgcs-app .cgcs-boot-card,.cga-screen .cga-boot-live{top:8px!important;right:10px!important;max-width:calc(100vw - 20px)!important}
}
@media(prefers-reduced-motion:reduce){html.cg-native-busy::before,.cga-screen .cga-boot-screen::before,.cgcs-boot-progress span,.cgcs-boot-brand-dot{animation:none!important}}
