html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #fff;
    font-family: system-ui, sans-serif;
    color: #4a5568;
}

#demo-agent {
    position: absolute;
    inset: 0;
    visibility: hidden;
}

/* Contain the existing loader's floating offsets inside this demo document only. */
#demo-agent > div {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

#demo-status {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: #f7fafc;
    text-align: center;
}

#demo-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #dbe8f5;
    border-top-color: #3182ce;
    border-radius: 50%;
    animation: demo-spin 0.8s linear infinite;
}

#demo-message { margin: 0; font-size: 14px; }
#demo-recovery { display: flex; flex-direction: column; align-items: center; gap: 16px; }
#demo-retry {
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    background: #2b6cb0;
    color: #fff;
    font: inherit;
    cursor: pointer;
}
#demo-recovery a { color: #2b6cb0; font-size: 14px; }
[hidden] { display: none !important; }

@keyframes demo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #demo-spinner { animation: none; } }
