/* App do celular (24/11/2026): barra de baixo do app instalado e a tela Avisos no celular. */

.app-barra { display: none; }

@media (display-mode: standalone) {
    /* Aberto pelo icone da tela de inicio: Ao vivo, Hoje e Avisos na barra de baixo; o menu
       comprido do computador some no celular. */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    header { padding-top: env(safe-area-inset-top); }
    .app-barra {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
        background: var(--cor-fundo-card); border-top: 1px solid var(--cor-borda);
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
        box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
    }
    .app-barra-item {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        font-size: var(--fs-mini, 0.72rem); color: var(--cor-texto-secundario); text-decoration: none;
        padding: 4px 0; border-radius: var(--raio-pequeno, 8px);
    }
    .app-barra-item svg { width: 22px; height: 22px; }
    .app-barra-item[aria-current="page"] { color: var(--cor-primaria); background: var(--cor-primaria-fundo); font-weight: 600; }
    .voz-chat { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
    .hoje-agendar-flutuante { bottom: calc(144px + env(safe-area-inset-bottom)) !important; }
}

@media (display-mode: standalone) and (max-width: 760px) {
    .navegacao-principal { display: none; }
}

/* --- tela Avisos no celular --- */
.ap { display: grid; gap: 1rem; max-width: 640px; margin: 1rem auto 2rem; padding: 0 1rem; }
.ap-cartao { background: var(--cor-fundo-card); border: 1px solid var(--cor-borda); border-radius: var(--raio, 10px);
    box-shadow: var(--sombra-card); padding: 1rem 1.1rem; }
.ap-cartao h2 { font-size: var(--fs-media, 1rem); margin: 0 0 0.6rem; }
.ap-situacao { margin: 0 0 0.9rem; padding: 0.6rem 0.75rem; border-radius: var(--raio-pequeno, 8px);
    background: var(--cor-neutro-fundo); color: var(--cor-texto); font-size: var(--fs-texto, 0.875rem); }
.ap-situacao[data-tipo="ok"] { background: var(--cor-ok-fundo); color: var(--cor-ok-escura); }
.ap-situacao[data-tipo="aviso"] { background: var(--cor-atencao-fundo); color: var(--cor-atencao); }
.ap-situacao[data-tipo="erro"] { background: var(--cor-critico-fundo); color: var(--cor-critico); }
.ap-grupo { border: 0; margin: 0 0 0.9rem; padding: 0; }
.ap-grupo legend { font-size: var(--fs-pequena, 0.8rem); color: var(--cor-texto-secundario); margin-bottom: 0.4rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.ap-opcao { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.65rem 0.2rem;
    border-bottom: 1px solid var(--cor-borda); cursor: pointer; }
.ap-opcao:last-child { border-bottom: 0; }
.ap-opcao input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cor-primaria); flex: none; }
.ap-opcao span { display: flex; flex-direction: column; gap: 2px; }
.ap-opcao small { color: var(--cor-texto-secundario); font-size: var(--fs-pequena, 0.8rem); }
.ap-opcao-curta { align-items: center; }
.ap-opcao-curta input { margin-top: 0; }
.ap-botoes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ap-botoes .botao-primario { flex: 1 1 100%; min-height: 44px; }
.ap-botoes .botao-secundario { flex: 1 1 40%; min-height: 40px; }
.ap-instalar { background: var(--cor-info-fundo); border-radius: var(--raio-pequeno, 8px); padding: 0.6rem 0.9rem;
    margin-bottom: 0.9rem; font-size: var(--fs-texto, 0.875rem); }
.ap-instalar p { margin: 0.2rem 0; }
.ap-instalar ol { margin: 0.3rem 0 0.2rem; padding-left: 1.2rem; }
.ap-passos { margin: 0; padding-left: 1.1rem; font-size: var(--fs-texto, 0.875rem); display: grid; gap: 0.4rem; }
.ap-nota { color: var(--cor-texto-secundario); font-size: var(--fs-pequena, 0.8rem); margin: 0.6rem 0 0; }
.ap-aparelhos { list-style: none; margin: 0; padding: 0; }
.ap-aparelhos li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0; border-bottom: 1px solid var(--cor-borda); }
.ap-aparelhos li:last-child { border-bottom: 0; }
.ap-aparelhos span { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-texto, 0.875rem); }
.ap-aparelhos small { color: var(--cor-texto-secundario); }
