/* This panel is a sibling of the React container. Streamlit owns #root exclusively. */
#root {--research-network-image:url("network.svg?v=4.2.1")}
body:has(.research-boot) {margin:0;background:#f0f6fb}
.research-boot {
  position:fixed;inset:0;z-index:15;display:grid;align-content:center;justify-items:center;
  box-sizing:border-box;padding:1rem;pointer-events:none;
  color:var(--research-ink,#112f40);font:500 1rem/1.5 Inter,"Segoe UI",sans-serif;
}
.research-boot::before {
  content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(ellipse at 18% 30%,#d7edf4b8,transparent 53%),
    radial-gradient(ellipse at 88% 66%,#e7dff3a6,transparent 55%),#f0f6fbc2;
}
.research-boot-panel {
  width:min(100%,25rem);box-sizing:border-box;display:grid;justify-items:center;text-align:center;
  padding:1.45rem 1rem;border-radius:1.55rem;background:var(--glass-raised);
  border:1px solid var(--glass-edge);box-shadow:var(--glass-depth);backdrop-filter:var(--glass-filter);
}
.research-boot-panel img {width:min(100%,15rem);height:auto;aspect-ratio:240/118}
.research-boot-panel p {margin:.35rem 0 .3rem}
.research-boot-panel a {pointer-events:auto;color:#2e5a72;font-size:.87rem;padding:.55rem}
.research-boot-panel a:focus-visible {outline:2px solid #2e7893;outline-offset:2px}
.research-boot-failed img {display:none}

/* Preserve native text and errors; suppress only known loading artwork during startup. */
body:has(.research-boot) [data-testid="stAppSkeleton"] {visibility:hidden!important}
/* The CSS fallback also releases an inert shell if the observer script is unavailable. */
body:has(.st-key-account_panel input[type=password]:enabled, .st-key-research_nav button:enabled,
         [role=dialog], [data-testid=stException], [data-testid=stAlert], [data-testid=stError]) .research-boot {
  display:none;
}
