body {
    margin: 0;
    color: #172332;
    background: #f7f9fb;
    font-family: system-ui, sans-serif;
    line-height: 1.6;
}

main {
    max-width: 60rem;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

a {
    color: #164b92;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #d7dfe8;
    padding-bottom: 1rem;
}

button, select {
    font: inherit;
    padding: 0.4rem 0.8rem;
    max-width: 100%;
}

label {
    display: block;
    font-weight: 600;
}

[role="alert"] { color: #932329; }
.tenant-context { border-left: 3px solid #164b92; padding-left: 1rem; }

@media (max-width: 40rem) {
    main { margin: 1rem auto; padding: 0 1rem; }
    header { align-items: flex-start; flex-direction: column; }
    select { width: 100%; }
}

a:focus-visible, button:focus-visible {
    outline: 3px solid #164b92;
    outline-offset: 3px;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
    background: #fff1c2;
}

#blazor-error-ui .dismiss {
    margin-left: 1rem;
}

.loading-progress {
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 0;
    transform: rotate(-90deg);
}

.loading-progress circle {
    fill: none;
    stroke: #d7dfe8;
    stroke-width: 0.6rem;
}

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

.loading-progress-text {
    text-align: center;
}

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