/* DVD Rebar — bản web: thanh "Có bản mới" + nhãn "Ngoại tuyến" (js/pwa.js, vòng 7). Màu theo biến của app.css. */
.pwa-update {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: calc(100vw - 32px);
    padding: 8px 10px 8px 14px;
    border: 1px solid var(--line, #dde1e7);
    border-radius: 8px;
    background: var(--panel, #fff);
    color: var(--text, #1d2330);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
    font: 14px var(--font, system-ui, sans-serif);
}
.pwa-update[hidden], .pwa-offline[hidden] { display: none; }
.pwa-update button {
    border: 1px solid var(--line, #dde1e7);
    border-radius: 6px;
    padding: 4px 12px;
    background: var(--panel2, #f8f9fb);
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.pwa-update .pwa-reload {
    background: var(--accent, #1f6feb);
    border-color: var(--accent, #1f6feb);
    color: var(--accent-ink, #fff);
}
.pwa-offline {
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 1999;
    padding: 4px 10px;
    border: 1px solid #b26a00;
    border-radius: 999px;
    background: #fff4e0;
    color: #7a4800;
    font: 600 12px var(--font, system-ui, sans-serif);
    cursor: help;
}
@media (prefers-color-scheme: dark) {
    .pwa-offline { background: #3a2a10; color: #ffcf80; border-color: #8a5a10; }
}
