* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family-base);
    font-size: var(--font-size-md);
    line-height: var(--line-height-base);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 2px;
}

#blazor-error-ui {
    background: var(--color-surface);
    border-top: 1px solid var(--color-danger);
    bottom: 0;
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
    display: none;
    left: 0;
    padding: var(--space-3) var(--space-4);
    position: fixed;
    right: 0;
    z-index: var(--z-toast);
}

#blazor-error-ui .dismiss {
    position: absolute;
    right: var(--space-4);
}

.app-boot {
    align-items: center;
    background: var(--color-bg);
    color: var(--color-text);
    display: grid;
    justify-content: center;
    min-height: 100dvh;
    padding: var(--space-6);
}

.app-boot__panel {
    align-items: center;
    display: grid;
    gap: var(--space-4);
    justify-items: center;
    max-width: 22rem;
    text-align: center;
    width: 100%;
}

.app-boot__logo {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: 5.5rem;
    object-fit: contain;
    padding: var(--space-3);
    width: 5.5rem;
}

.app-boot__copy {
    display: grid;
    gap: var(--space-1);
}

.app-boot__copy strong {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-tight);
}

.app-boot__copy span {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.app-boot__progress {
    background: var(--color-surface-muted);
    border-radius: var(--radius-full);
    height: 0.25rem;
    overflow: hidden;
    width: min(14rem, 100%);
}

.app-boot__progress span {
    animation: app-boot-progress 1.1s ease-in-out infinite;
    background: var(--color-primary);
    border-radius: inherit;
    display: block;
    height: 100%;
    width: 45%;
}

@keyframes app-boot-progress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(245%);
    }
}

.app-link {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
}

.app-link:hover {
    color: var(--color-primary-strong);
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
    }

    .app-boot__progress span {
        animation: none;
        transform: translateX(60%);
    }
}
