/* Cabeçalhos e ações de conta seguem o mesmo padrão nas três visões. */
@media screen {
    .topo,
    .site .site-topo,
    .portal .topo,
    .painel .topo {
        min-height: 72px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px 16px;
        padding: 6px max(24px, calc((100vw - 1200px) / 2));
        background: rgb(243 243 241 / 94%);
        border-bottom: 1px solid var(--marca-borda);
    }

    .topo .marca,
    .site-topo .site-marca {
        display: block;
        flex-shrink: 0;
        margin: 0;
    }

    .topo .logo-pequena,
    .site-topo .logo-horizontal {
        width: 236px;
        height: auto;
    }

    .topo .usuario,
    .site-topo .usuario {
        align-items: center;
        gap: 18px;
        font-size: 0.95rem;
        max-width: calc(100% - 252px);
    }

    .site-topo .usuario {
        display: flex;
        justify-content: flex-end;
        margin: 0;
    }

    .site .site-menu {
        justify-content: center;
        gap: 8px 18px;
        padding: 0;
    }

    .topo .usuario .nome {
        color: var(--marca-tinta);
        font-weight: 600;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topo .header-acao,
    .site-topo .site-botao {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 44px;
        padding: 12px 22px;
        border: 2px solid var(--marca-azul-escuro);
        border-radius: var(--marca-raio-botao);
        color: var(--marca-azul-escuro);
        background: transparent;
        font: 600 0.95rem/1.6 var(--marca-fonte);
        text-decoration: none;
        text-align: center;
        white-space: nowrap;
        cursor: pointer;
    }

    .topo .header-acao:hover,
    .site-topo .site-botao:hover {
        background: rgb(31 95 107 / 8%);
    }

    .topo .header-acao:focus-visible,
    .site-topo .site-botao:focus-visible {
        outline: 3px solid var(--marca-azul-escuro);
        outline-offset: 4px;
    }

    @media (max-width: 700px) {
        .topo,
        .site .site-topo,
        .portal .topo,
        .painel .topo {
            justify-content: center;
            padding: 6px 16px;
        }

        .topo .usuario,
        .site-topo .usuario {
            flex: 1 1 100%;
            max-width: 100%;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 8px 18px;
        }

        .site-topo .usuario {
            justify-content: flex-end;
        }

        .site .site-menu {
            padding-inline: 0;
        }

        .painel .topo .marca {
            margin-inline: 0;
        }
    }
}
