/* Quiet Intelligence: the connected desktop update notice. Not a modal and
   not an update-state owner; widths and text come from the existing bridge. */
#dolosDesktopUpdateBanner,
#dolosDesktopUpdateBanner * { box-sizing: border-box; }

#dolosDesktopUpdateBanner {
    position: fixed;
    inset-inline-end: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(400px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    padding: 20px;
    border: 1px solid var(--qi-control-line);
    border-radius: var(--qi-radius-default);
    background: var(--qi-surface);
    color: var(--qi-text);
    box-shadow: var(--qi-shadow);
    font: 400 var(--qi-type-label)/var(--qi-type-leading) Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: start;
    overflow-wrap: anywhere;
    color-scheme: var(--qi-color-scheme);
}

#dolosDesktopUpdateBanner .du-title {
    margin: 0;
    font-size: var(--qi-type-body);
    font-weight: 650;
    line-height: 1.4;
}
#dolosDesktopUpdateBanner .du-sub { color: var(--qi-muted); }
#dolosDesktopUpdateBanner .du-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
#dolosDesktopUpdateBanner .du-btn {
    appearance: none;
    flex: 1 1 120px;
    min-width: var(--qi-touch-target);
    min-height: var(--qi-touch-target);
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--qi-text);
    border-radius: var(--qi-radius-small);
    background: var(--qi-text);
    color: var(--qi-surface);
    font: 600 var(--qi-type-label)/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
    box-shadow: none;
    transition: background-color var(--qi-motion-fast), color var(--qi-motion-fast);
}
#dolosDesktopUpdateBanner .du-btn:not(:disabled):hover {
    background: var(--qi-surface);
    color: var(--qi-text);
}
#dolosDesktopUpdateBanner .du-btn:focus-visible {
    outline: 3px solid var(--qi-text);
    outline-offset: 3px;
}
#dolosDesktopUpdateBanner .du-btn:disabled { cursor: default; opacity: 1; }
#dolosDesktopUpdateBanner .du-dismiss {
    border-color: var(--qi-control-line);
    background: var(--qi-surface);
    color: var(--qi-text);
}
#dolosDesktopUpdateBanner .du-dismiss:not(:disabled):hover { background: var(--qi-surface-soft); }
#dolosDesktopUpdateBanner .du-progress {
    display: none;
    flex: 0 0 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--qi-line);
    overflow: hidden;
}
#dolosDesktopUpdateBanner .du-progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--qi-text);
    /* Keep event-derived widths immediate even when the global accessibility
       sheet supplies a short transition-duration to every element. */
    transition-property: none;
}
