.portal-startup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    color: #173a32;
    background: #f6f9f8;
    font: 1rem/1.5 system-ui, sans-serif;
    text-align: center;
}
.portal-startup[hidden], .portal-startup [hidden] { display: none; }
.portal-startup-logo { width: min(220px, 70vw); height: auto; }
.portal-startup-logo-dark { display: none; }
.portal-startup p { margin: 0; max-width: 32rem; }
.portal-startup-progress { width: min(220px, 70vw); height: 4px; overflow: hidden; border-radius: 4px; background: #dbe7e2; }
.portal-startup-progress::after {
    content: "";
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: #177453;
    animation: ait-startup-progress 1.4s ease-in-out infinite alternate;
}
.portal-startup[data-failed="true"] .portal-startup-progress { display: none; }
.portal-startup button { padding: .65rem 1.2rem; border: 1px solid #177453; border-radius: .5rem; color: #fff; background: #177453; font: inherit; cursor: pointer; }
.portal-startup button:focus-visible { outline: 3px solid #82bcaa; outline-offset: 3px; }
html[data-theme="dark"] .portal-startup { color: #e2ede8; background: #17231f; }
html[data-theme="dark"] .portal-startup-logo-light { display: none; }
html[data-theme="dark"] .portal-startup-logo-dark { display: block; }
html[data-theme="dark"] .portal-startup-progress { background: #334b40; }
html[data-theme="dark"] .portal-startup-progress::after { background: #5dbd94; }
@keyframes ait-startup-progress { from { transform: translateX(0); } to { transform: translateX(150%); } }
@media (prefers-reduced-motion: reduce) { .portal-startup-progress::after { animation: none; width: 100%; } }
