/* Aviso de conexão / envio pendente e convite para instalar o app (pwa.js) */
.chk-net, .chk-install {
    align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-full); box-shadow: var(--shadow-lg);
    color: var(--ink); display: flex; font-size: 13px; font-weight: 600; gap: 10px; left: 50%; line-height: 1.3; max-width: min(94vw, 560px);
    padding: 8px 8px 8px 16px; position: fixed; transform: translateX(-50%); width: max-content; z-index: 200;
}
.chk-net { top: calc(env(safe-area-inset-top, 0px) + 8px); }
.chk-net[hidden] { display: none; }
.chk-net.off { background: #fff7ed; border-color: #fdba74; color: #9a3412; padding-right: 16px; }
.chk-net.wait { background: #eff6ff; border-color: #93c5fd; color: #1d4f91; }
.chk-net.auth { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
[data-theme="dark"] .chk-net.off { background: #2a1a0b; border-color: #7c4a1d; color: #fdba74; }
[data-theme="dark"] .chk-net.wait { background: #0f1c33; border-color: #27508f; color: #93c5fd; }
[data-theme="dark"] .chk-net.auth { background: #2b1111; border-color: #7f2a2a; color: #fca5a5; }
.chk-net button, .chk-install button {
    background: var(--primary); border: 0; border-radius: var(--radius-full); box-shadow: none; color: #fff; cursor: pointer; flex-shrink: 0;
    font-size: 12.5px; font-weight: 700; min-height: 34px; padding: 0 14px;
}
.chk-install { bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); }
.chk-install button.x { background: transparent; color: var(--muted); font-size: 20px; min-height: 34px; padding: 0 10px; }
@media (max-width: 520px) {
    .chk-net, .chk-install { border-radius: 16px; width: 94vw; }
    .chk-net span, .chk-install span { flex: 1; min-width: 0; }
}

/* selo do cabeçalho quando está sem conexão */
.online-badge.off { color: #b45309; }
.online-badge.off .online-dot { animation: none; background: #d97706; }
[data-theme="dark"] .online-badge.off { color: #fdba74; }
