/* Permanent owner: Application initialization and offline-state presentation. */

/* ── App init loader ──────────────────────────────────── */

.app-boot-fallback {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.app-boot-card {
    width: min(100%, 420px);
    padding: 28px;
    border: 1px solid var(--color-line-strong);
    border-radius: 22px;
    background: color-mix(in srgb, var(--color-surface) 94%, var(--color-bg) 6%);
    box-shadow: var(--shadow-panel);
}

.app-boot-brand {
    margin-bottom: 18px;
    color: var(--color-text-muted);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
}

.app-boot-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.app-boot-loading[hidden],
.app-boot-recovery[hidden] {
    display: none;
}

.app-boot-recovery h1 {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    line-height: 1.1;
}

.app-boot-recovery p {
    margin: 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.app-boot-reload {
    width: 100%;
    min-height: 44px;
    margin-top: 20px;
    border: 0;
    border-radius: 12px;
    background: var(--color-solar);
    color: var(--color-on-accent);
    font-weight: 750;
    cursor: pointer;
}

.app-boot-reload:hover {
    filter: brightness(0.92);
}

.app-boot-reload:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-solar) 40%, transparent);
    outline-offset: 3px;
}

.app-boot-details {
    margin-top: 16px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.app-boot-details code {
    display: block;
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    background: var(--color-bg-soft);
    color: var(--color-text-secondary);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.app-init-loader {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-init-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-solar);
    /* Bounded iteration count — CLAUDE.md prohibits continuous idle animations.
       8 iterations × 1.2s ≈ 9.6s gives the app plenty of time to finish booting
       on a cold cache; if init takes longer, the dot quietly settles rather than
       pulsing forever. */
    animation: app-init-pulse 1.2s ease-in-out 8;
}

@keyframes app-init-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50%       { opacity: 1;   transform: scale(1.2); }
}

/* ── Offline page ─────────────────────────────────────── */

.offline-page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.offline-content {
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}


