*,
*::before,
*::after {
    box-sizing: border-box;
}

a {
    color: var(--color-text-link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

code,
pre,
kbd,
samp {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

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

::selection {
    background: var(--color-accent-subtle);
}

fluent-dialog::part(control) {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 48px rgba(0, 0, 0, 0.6);
    height: auto;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fbe9a0;
    color: #1f1a12;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.loading-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 7.5rem;
    height: 7.5rem;
    margin: -3.75rem 0 0 -3.75rem;
}

    .loading-progress circle {
        fill: none;
        stroke-width: 0.5rem;
        stroke-linecap: round;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

    .loading-progress circle:first-child {
        stroke: var(--color-border-strong);
    }

        .loading-progress circle:last-child {
            stroke: var(--color-accent);
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.1s ease-in-out;
        }

.loading-progress-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: var(--color-text-secondary);
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "");
    }
