/**
 * Orbit
 * Copyright (c) 2026 Letstream Ventures Pvt Ltd. All rights reserved.
 * Author: Letstream Ventures Pvt Ltd
 *
 * Built on Instadash AI Base by Letstream
 * (Letstream Ventures Pvt Ltd, https://www.theletstream.com, hello@theletstream.com).
 * Template portions (c) Letstream Ventures Pvt Ltd.
 *
 * The Instadash AI Base template is provided "AS IS", without warranty of any
 * kind, express or implied, including merchantability, fitness for a particular
 * purpose and non-infringement, unless covered by an explicit written agreement
 * with Letstream Ventures Pvt Ltd. Unauthorized use, copying, modification or
 * redistribution of the template, in whole or in part, is prohibited and may
 * result in legal action and remedies available under applicable law.
 */

/* Critical startup surface uses system colors before application tokens exist. */
:root {
    color-scheme: light dark;
}
:root[data-startup-theme="light"] {
    color-scheme: light;
}
:root[data-startup-theme="dark"] {
    color-scheme: dark;
}
.app-startup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--canvas-bg, Canvas);
    color: var(--p-text-color, CanvasText);
    font-family: system-ui, sans-serif;
    text-align: center;
}
.app-startup__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.app-startup__mascot {
    width: 3rem;
    height: 3rem;
}
.app-startup__logo-light,
.app-startup__logo-dark {
    width: auto;
    height: 1.375rem;
}
.app-startup__logo-dark,
:root[data-startup-theme="dark"] .app-startup__logo-light {
    display: none;
}
:root[data-startup-theme="dark"] .app-startup__logo-dark {
    display: block;
}
.app-startup__progress {
    box-sizing: border-box;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    opacity: 0.6;
    animation: app-startup-turn 1.2s linear 25;
}
.app-startup p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}
.app-startup .app-startup__hint {
    opacity: 0.7;
    font-size: 0.8125rem;
}
.app-startup__retry {
    color: inherit;
    font-size: 0.8125rem;
    text-underline-offset: 0.2em;
    padding: 0.5rem;
}
.app-startup__retry:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 0.375rem;
}
.app-startup[data-state="failed"] .app-startup__progress {
    display: none;
}
@keyframes app-startup-turn {
    to {
        transform: rotate(360deg);
    }
}
@media (prefers-reduced-motion: reduce) {
    .app-startup__progress {
        animation: none;
    }
}
