body {
    margin: 0;
    padding: 0;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.loader {
    text-align: center;
    color: #fff;
    width: min(92vw, 560px);
    padding: 24px;
}

.spinner {
    border: 4px solid rgba(255,255,255,0.1);
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.status {
    font-size: 15px;
    color: #bfdbfe;
    margin-bottom: 8px;
}

.meta {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 16px;
    line-height: 1.4;
}

.diagnostics {
    text-align: left;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    padding: 12px;
    max-height: 42vh;
    overflow: auto;
    font-size: 12px;
    line-height: 1.45;
    color: #e2e8f0;
}

.diagnostics:empty {
    display: none;
}

.diagnostics-line {
    margin-bottom: 6px;
    word-break: break-word;
}

.diagnostics-line:last-child {
    margin-bottom: 0;
}

.diagnostics-ok {
    color: #86efac;
}

.diagnostics-warn {
    color: #fcd34d;
}

.diagnostics-error {
    color: #fca5a5;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
