:root {
    --ws-color-bg: #f4f6fb;
    --ws-color-surface: #ffffff;
    --ws-color-text: #122033;
    --ws-color-muted: #4c5e78;
    --ws-color-border: #d7e0ea;
    --ws-color-brand: #2558d9;
    --ws-color-brand-soft: #edf2ff;
    --ws-color-danger-bg: #c2362e;
    --ws-color-danger-soft: #fff3f1;
    --ws-color-danger-border: #f1c5c0;
    --ws-color-danger-text: #882622;
    --ws-color-success-soft: #effaf2;
    --ws-color-success-border: #bfe5c8;
    --ws-color-warning-soft: #fffaee;
    --ws-color-warning-border: #efd8a3;
    --ws-space-1: 0.25rem;
    --ws-space-2: 0.5rem;
    --ws-space-3: 0.75rem;
    --ws-space-4: 1rem;
    --ws-space-5: 1.5rem;
    --ws-space-6: 2rem;
    --ws-radius-md: 0.65rem;
    --ws-radius-lg: 0.9rem;
    --ws-radius-pill: 999px;
    --ws-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 10px rgba(15, 23, 42, 0.04);
    --ws-content-max-width: 72rem;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--ws-color-bg);
    color: var(--ws-color-text);
}

* {
    box-sizing: border-box;
}

a {
    color: var(--ws-color-brand);
}

a,
button,
select,
input,
textarea {
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation-duration: 0ms !important;
    }
}

:focus-visible {
    outline: 3px solid #8ab0ff;
    outline-offset: 2px;
}

input,
select,
textarea {
    inline-size: 100%;
    min-height: 2.75rem;
    border: 1px solid var(--ws-color-border);
    border-radius: var(--ws-radius-md);
    background: var(--ws-color-surface);
    color: var(--ws-color-text);
    padding: 0.62rem 0.72rem;
    font: inherit;
}

textarea {
    min-height: 6.5rem;
    resize: vertical;
}

.validation-message {
    color: var(--ws-color-danger-text);
    font-size: 0.86rem;
}

.valid.modified:not([type=checkbox]) {
    border-color: #7bc08f;
}

.invalid {
    border-color: #d46156;
}

#blazor-error-ui {
    color-scheme: light only;
    background: #fff8dc;
    border-top: 1px solid #e9da8f;
    bottom: 0;
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.7rem 2.3rem 0.75rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #d7dce8;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--ws-color-brand);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: 600;
    color: var(--ws-color-muted);
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

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