html, body {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Installed iOS PWA: viewport-fit=cover in index.html — keep controls clear of notch/status bar */
.invara-pwa-safe-top {
    padding-top: max(12px, env(safe-area-inset-top, 0px));
}

.invara-pwa-safe-bottom {
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}

/* iOS Safari auto-zooms inputs below 16px; scope to auth screens */
.assessor-auth-shell input[type="text"],
.assessor-auth-shell input[type="email"],
.assessor-auth-shell input[type="password"] {
    font-size: 16px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #EB1D27;
    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;
    font-weight: 600;
    color: #64748b;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}
