.contador-comunicados-cabecalho,
.menu-contador[data-contador-amigos-real] {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid #0b1118;
    border-radius: 999px;
    background: #00dc91;
    color: #04120d;
    font-size: 10px;
    font-weight: 900;
    line-height: 15px;
    text-align: center;
    box-sizing: border-box;
}

.contador-comunicados-cabecalho[hidden],
.menu-contador[data-contador-amigos-real][hidden] {
    display: none !important;
}

.navegacao-lateral a[href^="amigos.html"],
.menu-lateral a[href^="amigos.html"] {
    position: relative;
}

.comunicados-dropdown {
    position: fixed;
    z-index: 12000;
    overflow: hidden;
    max-height: min(620px, calc(100vh - 92px));
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: #111a25;
    color: #f8fafc;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.comunicados-dropdown[hidden] {
    display: none !important;
}

.comunicados-dropdown-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.comunicados-dropdown-cabecalho div {
    display: grid;
    gap: 2px;
}

.comunicados-dropdown-cabecalho span {
    color: #00dc91;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.comunicados-dropdown-cabecalho strong {
    font-size: 18px;
}

.comunicados-dropdown-cabecalho button,
.comunicado-modal-fechar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    cursor: pointer;
}

.comunicados-dropdown-lista {
    overflow-y: auto;
    max-height: min(470px, calc(100vh - 220px));
}

.comunicado-dropdown-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 8px;
    align-items: start;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.comunicado-dropdown-item:hover,
.comunicado-dropdown-item:focus-visible {
    background: rgba(148, 163, 184, 0.08);
    outline: none;
}

.comunicado-dropdown-item.nao-lido {
    background: rgba(0, 220, 145, 0.055);
}

.comunicado-dropdown-icone {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: rgba(0, 220, 145, 0.12);
    color: #00dc91;
}

.comunicado-dropdown-icone.tipo-urgente {
    background: rgba(248, 113, 113, 0.13);
    color: #fb7185;
}

.comunicado-dropdown-icone.tipo-manutencao {
    background: rgba(251, 191, 36, 0.13);
    color: #fbbf24;
}

.comunicado-dropdown-conteudo {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.comunicado-dropdown-conteudo strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comunicado-dropdown-conteudo > span {
    display: -webkit-box;
    overflow: hidden;
    color: #a8b5c7;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.comunicado-dropdown-conteudo small {
    color: #64748b;
    font-size: 10px;
}

.comunicado-dropdown-ponto {
    width: 7px;
    height: 7px;
    margin-top: 5px;
    border-radius: 50%;
    background: #00dc91;
}

.comunicado-dropdown-ponto[hidden] {
    visibility: hidden;
}

.comunicados-dropdown-estado {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 34px 24px;
    color: #94a3b8;
    text-align: center;
}

.comunicados-dropdown-estado i {
    color: #00dc91;
    font-size: 24px;
}

.comunicados-dropdown-estado button {
    padding: 8px 12px;
    border: 1px solid rgba(0, 220, 145, 0.25);
    border-radius: 9px;
    background: rgba(0, 220, 145, 0.08);
    color: #00dc91;
    cursor: pointer;
}

.comunicados-dropdown-rodape {
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #7f8da1;
    font-size: 11px;
    text-align: center;
}

.comunicados-gerenciar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00dc91;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.comunicado-modal-fundo {
    position: fixed;
    z-index: 13000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 6, 12, 0.76);
    backdrop-filter: blur(8px);
}

.comunicado-modal-fundo[hidden] {
    display: none !important;
}

.comunicado-modal {
    position: relative;
    width: min(620px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow-y: auto;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background: #111a25;
    color: #f8fafc;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.comunicado-modal-fechar {
    position: absolute;
    top: 16px;
    right: 16px;
}

.comunicado-modal-etiqueta {
    display: block;
    margin-bottom: 8px;
    color: #00dc91;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.comunicado-modal h2 {
    margin: 0 42px 8px 0;
    font-size: clamp(24px, 4vw, 34px);
    line-height: 1.15;
}

.comunicado-modal-meta {
    margin-bottom: 24px;
    color: #7f8da1;
    font-size: 12px;
}

.comunicado-modal-mensagem {
    margin: 0;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.75;
    white-space: pre-wrap;
}

body.comunicado-modal-aberto {
    overflow: hidden;
}

@media (max-width: 640px) {
    .comunicados-dropdown {
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        border-radius: 15px;
    }

    .comunicado-modal {
        padding: 24px 20px;
        border-radius: 18px;
    }
}
