html,
body {
    min-height: 100%;
}

a,
.btn-link {
    color: inherit;
}

.content {
    padding-top: 1.1rem;
}

.btn:focus-visible,
.btn-link.nav-link:focus-visible,
.form-control:focus-visible,
.form-check-input:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid CanvasText;
}

.invalid {
    outline: 1px solid Mark;
}

.validation-message {
    color: Mark;
}

.blazor-error-boundary {
    padding: 1rem;
    color: Canvas;
    background: CanvasText;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: ButtonBorder;
}

/* Shared chip bridge for legacy client flows. Client scoped styles own the public visual identity. */
.av-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 10px;
    color: CanvasText;
    background: Canvas;
    border: 1px solid ButtonBorder;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
}

.av-chip--btn {
    cursor: pointer;
    transition:
        transform 120ms ease,
        border-color 120ms ease,
        background-color 120ms ease,
        color 120ms ease;
}

.av-chip--btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.av-chip--active,
.av-chip--btn.av-chip--active {
    color: Canvas;
    background: CanvasText;
}

.av-chip--btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
    transform: none;
}

.av-chip .mud-icon-root {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
    font-size: 14px !important;
}

.av-chip-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border: 1px solid ButtonBorder;
    border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
