/* Some controls draw focus on a label, track, or child of the focused element. */
:focus,
label:focus-within,
input:focus-visible + *,
:focus-visible :where(.sidebar-new-chat-surface, .front, .back) {
    outline-style: none !important;
}

/* Tint the control itself so keyboard navigation stays visible in either theme. */
:where(button, a[href], summary, select, [tabindex]):focus-visible,
label:has(input:focus-visible) {
    box-shadow: inset 0 0 0 100vmax color-mix(in srgb, currentColor 15%, transparent);
}

@media (forced-colors: active) {
    :focus-visible,
    label:has(input:focus-visible) {
        background-color: Highlight !important;
        color: HighlightText !important;
    }
}
