/* Only intentional keyboard focus should draw the large control rings. */
@media not all and (forced-colors: active) {
    html[data-nw-focus-mode="pointer"] :is(.nwe-v3, .nwm, .nwc-app, .nwm-app,
        .nwmbr, .nwe-member-shell, .nwe-member-app-header, .nwe-standalone-dock,
        .nwpres-dialog, .nwe-event-chat, .nw-registration-app, .nw-eco-studio,
        .nw-studio-page, .nwpub-page, .nwv-page, #nwe-private-account, #nwe-private-photo)
        :is(a[href], button, input, select, textarea, summary, [role="button"], [tabindex],
            [contenteditable="true"]):not([data-nwchat-search-match]):not([data-nwchat-reply-match]):not([data-nwchat-media-match]):focus-visible {
        outline-color: transparent !important;
    }

    .nwe-v3 .nwe-v3-main[tabindex="-1"]:focus,
    .nwm .nwm-event-detail-title[tabindex="-1"]:focus,
    html[data-nw-focus-mode="pointer"] .nwv-page :is([data-nwe-qr-start], [data-nwe-qr-stop]):focus,
    html[data-nw-focus-mode="pointer"] .nwv-page :is([data-nwv-heading], [data-nwv-record-status], [data-nwv-location-status])[tabindex="-1"]:focus,
    html[data-nw-focus-mode="pointer"] .nwc-app .nwc-history
        [data-message-id][tabindex="-1"]:focus:not([data-nwchat-search-match]):not([data-nwchat-reply-match]):not([data-nwchat-media-match]) {
        outline: none;
    }

    html[data-nw-focus-mode="pointer"] .nwc-app .nwc-composer textarea:focus:not([aria-invalid="true"]),
    html[data-nw-focus-mode="pointer"] .nwm [data-nwm-search]:focus:not([aria-invalid="true"]) {
        border-color: #8b7b85;
    }
}

.nwc-app .nwc-history :is([data-nwchat-search-match], [data-nwchat-reply-match], [data-nwchat-media-match]) {
    animation: nw-message-jump-highlight 2.2s steps(1, end) forwards;
}

@keyframes nw-message-jump-highlight {
    to { outline-color: transparent; }
}
