.mx_MatrixChat[data-mb-work] .mb-dm-send-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin: .15rem .75rem .35rem;
    color: var(--mb-work-muted);
    font: inherit;
    font-size: .85rem;
}
.mb-dm-send-status[data-state="failed"] { color: var(--cpd-color-text-critical-primary, var(--mb-work-ink)); }
.mb-dm-send-status button {
    color: var(--mb-work-action);
    background: var(--mb-work-bg);
    border: 1px solid var(--mb-work-line);
    border-radius: .45rem;
    min-height: 2rem;
    padding: .2rem .65rem;
    font: inherit;
    cursor: pointer;
}
.mb-dm-send-status button:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.mb-dm-send-status button[hidden] { display: none; }

/* Give the native encryption warning its own glyph. Its tooltip, severity,
   keyboard focus and accessible description still come from Element. */
@media (forced-colors: none) {
    @supports (mask-image: url("")) {
        .mx_MatrixChat[data-mb-mode="direct"] .mx_RoomView_messagePanel [data-testid="e2e-padlock"][class*="_warning_"] > svg {
            background-color: currentColor;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 21 5.5v5.7c0 4.8-3.2 8.7-9 11-5.8-2.3-9-6.2-9-11V5.5Z' fill='none' stroke='black' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M12 7v6m0 3v.3' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
        }
        .mx_MatrixChat[data-mb-mode="direct"] .mx_RoomView_messagePanel [data-testid="e2e-padlock"][class*="_warning_"] > svg > path {
            fill: transparent;
        }
    }
}
