#blazor-error-ui {
    position: fixed;
    z-index: 1000;
    right: 16px;
    bottom: 16px;
    left: 16px;
    display: none;
    width: min(720px, calc(100% - 32px));
    margin-inline: auto;
    padding: 13px 44px 13px 16px;
    color: #713b14;
    background: #fff8e8;
    border: 1px solid #f0d8a8;
    border-radius: 10px;
    box-shadow: 0 10px 28px #1634521c;
    font: 500 13px/1.5 'DM Sans', Inter, system-ui, sans-serif;
}

#app:has(.loading-progress) {
    display: grid;
    min-height: 100vh;
    align-content: center;
    justify-items: center;
    gap: 14px;
    background: linear-gradient(145deg, #f7fbff, #eaf4ff);
    color: #718198;
}

.loading-progress {
    display: block;
    width: 76px;
    height: 76px;
    overflow: visible;
    animation: becca-loading-rotate 1.8s linear infinite;
}

.loading-progress circle {
    fill: none;
    stroke: #c9def3;
    stroke-width: 8;
}

.loading-progress circle:last-child {
    stroke: #1875d1;
    stroke-linecap: round;
    stroke-dasharray: 70 190;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    animation: becca-loading-pulse 1.2s ease-in-out infinite;
}

.loading-progress-text {
    color: #657b94;
    font: 500 13px/1.5 'DM Sans', Inter, system-ui, sans-serif;
}

.loading-progress-text::after {
    content: 'Loading your secure BECCA workspace…';
}

@keyframes becca-loading-rotate {
    to { transform: rotate(360deg); }
}

@keyframes becca-loading-pulse {
    0% { stroke-dasharray: 12 190; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 80 190; stroke-dashoffset: -30; }
    100% { stroke-dasharray: 12 190; stroke-dashoffset: -110; }
}

#blazor-error-ui a {
    margin-left: 8px;
    color: #155fae;
    font-weight: 700;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 8px;
    right: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 6px;
    color: #52657a;
    cursor: pointer;
}

#blazor-error-ui .dismiss:hover {
    background: #f5ecd9;
}
