html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color-scheme: light dark;
    background-color: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
    html, body {
        background-color: #121212;
    }
}

#loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(128, 128, 128, 0.3);
    border-top-color: #888;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#boot-error {
    width: min(720px, 100%);
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#boot-error h1 {
    margin: 0 0 12px;
    font-size: 24px;
}

#boot-error pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.45;
}

@media (prefers-color-scheme: dark) {
    #boot-error {
        background: #1a1a1a;
        color: #f4f4f4;
        border-color: rgba(255, 255, 255, 0.08);
    }
}
