:root body .message-bar {
    position: fixed;
    inset: 1px 0 auto;
    z-index: 100;
    display: grid;
    place-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: calc(var(--dialog-top-clearance, 45px) - 2px);
    min-height: calc(var(--dialog-top-clearance, 45px) - 2px);
    margin: 0;
    padding: 1px 8px;
    border: 0;
    background: #20352f;
    color: #fff;
    font: 400 13px/1.3 system-ui, sans-serif;
    letter-spacing: normal;
    text-align: center;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 8px #20352f40;
    pointer-events: none;
}
:root body .message-bar:empty { display: none; }

:root body .message-bar[data-pending] {
    padding-bottom: 3px;
    overflow: clip;
}
:root body .message-bar[data-pending]::after {
    content: '';
    position: absolute;
    inset: auto auto 0 0;
    width: 28%;
    height: 2px;
    background: #9ed6b4;
}
@media (prefers-reduced-motion: no-preference) {
    :root body .message-bar[data-pending]::after {
        animation: message-bar-progress 1.4s ease-in-out infinite alternate;
    }
}
@keyframes message-bar-progress {
    to { transform: translateX(257%); }
}
