.cm-comunicacao{min-width:0;--cm-bg:#0f172a;--cm-card:#111c30;--cm-texto:#f1f5f9;--cm-suave:#aab9cf;--cm-borda:#334155;--cm-acento:#0e7490;color:var(--cm-texto)}
.cm-comunicacao *{box-sizing:border-box}
.cm-comunicacao h3{font-size:1rem;line-height:1.5;font-weight:800;margin:0}
.cm-comunicacao p{font-size:.875rem;line-height:1.6;overflow-wrap:anywhere}
.cm-comunicacao button,.cm-comunicacao input,.cm-comunicacao select,.cm-comunicacao textarea{font:inherit}
.cm-comunicacao button,.cm-comunicacao summary{min-height:44px;cursor:pointer}
.cm-comunicacao button{padding:.65rem 1rem;border:1px solid var(--cm-borda);border-radius:.75rem;color:var(--cm-texto);background:var(--cm-bg);font-size:.8125rem;font-weight:700}
.cm-comunicacao button:disabled{opacity:.55;cursor:default}
.cm-comunicacao .cm-primario{background:var(--cm-acento);border-color:var(--cm-acento);color:#fff}
.cm-comunicacao button:focus-visible,.cm-comunicacao summary:focus-visible,.cm-comunicacao input:focus-visible,.cm-comunicacao textarea:focus-visible,.cm-comunicacao select:focus-visible{outline:3px solid #22d3ee;outline-offset:3px}
.cm-abas{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem;padding:.35rem;border:1px solid var(--cm-borda);border-radius:1rem;background:#02061780}
.cm-abas button{border-color:transparent;background:transparent;min-width:0;padding:.6rem .3rem;overflow-wrap:anywhere}
.cm-abas button[aria-selected=true]{background:var(--cm-acento);color:#fff}
.cm-comunicacao [hidden]{display:none!important}
.cm-card{border:1px solid var(--cm-borda);background:var(--cm-card);border-radius:1.1rem;padding:clamp(1rem,3vw,1.5rem);min-width:0;margin:1rem 0}
.cm-card-topo{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.cm-card-topo p{color:var(--cm-suave);margin:.4rem 0 0}
.cm-legenda{font-size:.75rem!important;font-weight:800;color:#67e8f9!important;margin:0 0 .35rem!important}
.cm-estado{border-left:3px solid #22d3ee;background:#08334455;border-radius:.5rem;padding:.85rem 1rem;font-weight:700;margin:1rem 0}
.cm-grade{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;min-width:0}
.cm-campo{display:flex;flex-direction:column;gap:.5rem;font-size:.875rem;font-weight:650;min-width:0;margin-bottom:1rem}
.cm-campo input,.cm-campo textarea,.cm-campo select{width:100%;min-width:0;min-height:44px;border:1px solid var(--cm-borda);border-radius:.7rem;background:var(--cm-bg);color:var(--cm-texto);padding:.75rem;font-weight:400;line-height:1.5}
.cm-campo textarea{resize:vertical;min-height:130px}
.cm-campo-dias{max-width:24rem;margin-top:1.25rem}
.cm-opcao{display:flex;align-items:center;gap:.75rem;min-width:0;border:1px solid var(--cm-borda);border-radius:.85rem;padding:1rem;cursor:pointer}
.cm-opcao>span:first-child{flex:1;min-width:0}
.cm-opcao strong{display:block;font-size:.9375rem;line-height:1.5}
.cm-opcao small{display:block;color:var(--cm-suave);font-size:.8125rem;line-height:1.6;margin-top:.3rem}
.cm-opcao input,.cm-check input{width:20px;height:20px;accent-color:#06b6d4;flex-shrink:0}
.cm-opcao [data-rotulo]{font-size:.75rem}
.cm-check{display:flex;align-items:flex-start;gap:.65rem;font-size:.875rem;line-height:1.6;cursor:pointer;margin:.6rem 0;min-height:32px}
.cm-ajuda{color:var(--cm-suave);font-size:.8125rem!important;margin:.7rem 0}
.cm-acoes{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;margin-top:1rem}
.cm-acoes p{flex:1;min-width:160px;font-size:.8125rem;color:var(--cm-suave)}
.cm-config{border:1px solid var(--cm-borda);border-radius:1rem;padding:0 1rem;margin:1rem 0}
.cm-config>summary{padding:1rem 0;font-weight:750;font-size:.875rem;line-height:1.5}
.cm-publico-lista{max-height:220px;overflow:auto;border:1px solid var(--cm-borda);padding:.5rem .85rem;border-radius:.7rem}
.cm-contador{font-size:.75rem;color:var(--cm-suave);text-align:right;margin-top:-.5rem}
.cm-previa{border:1px solid #0891b2;border-radius:.9rem;padding:1rem;background:#08334455;margin-top:1rem}
.cm-mensagem{white-space:pre-wrap;overflow-wrap:anywhere}
.cm-canais{display:flex;gap:1.5rem;flex-wrap:wrap}
.cm-item-historico{border-bottom:1px solid var(--cm-borda);padding:1rem 0}
.cm-item-historico:last-child{border:0}
.cm-item-historico h4{font-size:.9375rem;font-weight:800;margin:.4rem 0}
.cm-item-historico p{margin:.35rem 0;color:var(--cm-suave)}
.cm-selo{display:inline-block;font-size:.7rem;line-height:1.5;padding:.25rem .6rem;border:1px solid var(--cm-borda);border-radius:2rem;margin:.2rem .3rem .2rem 0}
#cc-legado .lg\:col-span-2{display:none}
#cc-legado .lg\:col-span-3{grid-column:1/-1}
#cc-legado>.grid{display:block}
.cm-receptor{--cm-bg:#fff;--cm-card:#f8fafc;--cm-texto:#0f172a;--cm-suave:#475569;--cm-borda:#cbd5e1;--cm-acento:#0e7490;margin-bottom:1.25rem}
.cm-receptor .cm-legenda{color:#0e7490!important}
.cm-receptor .cm-card{background:var(--cm-card);margin:0}
.cm-receptor .cm-estado{background:#ecfeff;border-color:#0891b2}
.cm-receptor details{margin-top:.85rem}
.cm-receptor summary{font-size:.8125rem;line-height:1.5;padding:.7rem 0;font-weight:700}
.dark .cm-receptor,.sa-dark.cm-receptor{--cm-bg:#0f172a;--cm-card:#111c30;--cm-texto:#f1f5f9;--cm-suave:#aab9cf;--cm-borda:#334155}
.dark .cm-receptor .cm-legenda,.sa-dark.cm-receptor .cm-legenda{color:#67e8f9!important}
.dark .cm-receptor .cm-estado,.sa-dark.cm-receptor .cm-estado{background:#08334455}
@media(max-width:640px){.cm-grade{grid-template-columns:minmax(0,1fr)}.cm-abas button{font-size:.75rem}.cm-opcao{flex-wrap:wrap}.cm-acoes>button{width:100%}.cm-card-topo>button{width:100%}}
@media(prefers-reduced-motion:reduce){.cm-comunicacao *{scroll-behavior:auto!important}}


/* BJJ Manager - Modal 40FB */
.cm40-overlay {
    position:fixed;
    inset:0;
    z-index:600;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:16px;
    background:rgba(2,6,23,.76);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    overflow-y:auto;
}
.cm40-overlay[hidden],
.cm40-dialog [hidden] {
    display:none!important;
}
.cm40-dialog {
    box-sizing:border-box;
    width:100%;
    max-width:460px;
    max-height:calc(100dvh - 32px);
    overflow-y:auto;
    padding:clamp(22px,5vw,36px);
    border-radius:28px;
    background:#fff;
    color:#0f172a;
    border:1px solid #e2e8f0;
    box-shadow:0 35px 100px rgba(0,0,0,.4);
    text-align:center;
    font-family:Inter,system-ui,sans-serif;
    animation:cm40-entrada .28s ease-out;
}
.cm40-dialog * {
    box-sizing:border-box;
}
.cm40-topo {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:22px;
}
.cm40-selo {
    font-size:10px;
    font-weight:900;
    color:#0891b2;
    letter-spacing:1.5px;
    text-align:left;
}
.cm40-fechar {
    width:36px;
    min-width:36px;
    height:36px;
    border:1px solid #e2e8f0;
    border-radius:50%;
    background:#f8fafc;
    color:#64748b;
    font-size:24px;
    cursor:pointer;
}
.cm40-icone {
    display:flex;
    align-items:center;
    justify-content:center;
    width:76px;
    height:76px;
    margin:0 auto 22px;
    border-radius:24px;
    background:linear-gradient(135deg,#06b6d4,#2563eb);
    color:white;
    font-size:36px;
    font-weight:900;
    box-shadow:0 14px 28px rgba(6,182,212,.25);
}
.cm40-titulo {
    margin:0 0 16px;
    color:#0f172a;
    font-size:clamp(23px,5vw,28px);
    font-weight:900;
    line-height:1.25;
}
.cm40-descricao {
    color:#475569;
    font-size:14px;
    font-weight:500;
    line-height:1.75;
}
.cm40-ajuda {
    margin:18px 0;
    padding:12px;
    border:1px solid #bae6fd;
    border-radius:12px;
    background:#f0f9ff;
    color:#0369a1;
    font-size:12px;
    line-height:1.5;
}
.cm40-acoes {
    display:grid;
    gap:10px;
    margin-top:22px;
}
.cm40-acoes button {
    width:100%;
    min-height:48px;
    padding:12px 16px;
    border-radius:13px;
    font-size:13px;
    font-weight:800;
    cursor:pointer;
    transition:transform .15s ease;
}
.cm40-acoes button:hover:not(:disabled) {
    transform:translateY(-1px);
}
.cm40-aceitar {
    border:0;
    background:linear-gradient(110deg,#0891b2,#2563eb);
    color:white;
}
.cm40-depois {
    border:1px solid #e2e8f0;
    background:#f1f5f9;
    color:#334155;
}
.cm40-nunca {
    border:1px solid #e2e8f0;
    background:transparent;
    color:#64748b;
}
.cm40-dialog button:disabled {
    opacity:.5;
    cursor:not-allowed;
}
.cm40-dialog button:focus-visible {
    outline:3px solid #06b6d4;
    outline-offset:3px;
}
.cm40-status {
    margin:12px 0 0;
    color:#b45309;
    font-size:12px;
}
.cm40-status:empty {
    display:none;
}
.cm40-rodape {
    margin:20px 0 0;
    padding-top:16px;
    border-top:1px solid #e2e8f0;
    color:#94a3b8;
    font-size:11px;
    line-height:1.5;
}
@keyframes cm40-entrada {
    from {
        opacity:0;
        transform:translateY(16px) scale(.97);
    }
    to {
        opacity:1;
        transform:translateY(0) scale(1);
    }
}
@media(max-width:480px) {
    .cm40-overlay {padding:12px}
    .cm40-dialog {
        padding:22px;
        border-radius:22px;
        max-height:calc(100dvh - 24px);
    }
    .cm40-icone {
        width:64px;
        height:64px;
        font-size:31px;
    }
}
@media(prefers-reduced-motion:reduce) {
    .cm40-dialog {animation:none}
    .cm40-acoes button {transition:none}
}


/* 40FB - Logo oficial do BJJ Manager */
.cm40-icone.cm40-marca {
    width:min(180px,52vw);
    height:88px;
    margin:0 auto 18px;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:inherit;
}

.cm40-icone.cm40-marca img {
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
}

@media(max-width:480px) {
    .cm40-icone.cm40-marca {
        width:min(156px,54vw);
        height:78px;
        margin-bottom:16px;
    }
}
