.header-action-modal.modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    padding: 78px 22px 20px;
    background: rgba(31, 24, 57, .3);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .28s ease;
}
.header-action-modal.modal.show,
.header-action-modal.modal.active { display: flex; opacity: 1; animation: headerModalBackdropEnter .28s ease-out both; }
.header-action-modal .modal-content {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    width: min(420px, calc(100vw - 32px));
    max-width: 420px;
    max-height: min(600px, calc(100vh - 98px));
    margin: 0;
    padding: 0;
    overflow: hidden;
    transform: none;
    border: 1px solid #d7e3e2;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(16, 37, 41, .24);
    color: #243d40;
    animation: headerModalEnter .28s cubic-bezier(.2,.75,.25,1) both;
}
.header-action-modal.modal-mensagens .modal-content { width: min(440px, calc(100vw - 32px)); max-width: 440px; }
.header-action-modal.modal-notificacoes .modal-content { width: min(410px, calc(100vw - 32px)); max-width: 410px; }
.header-action-modal.modal-perfil .modal-content { width: min(400px, calc(100vw - 32px)); max-width: 400px; max-height: min(560px, calc(100vh - 98px)); }
.header-action-modal .comunicacao-header { flex: none; }
.header-action-modal .comunicacao-lista { flex: 1; min-height: 140px; overflow-y: auto; overscroll-behavior: contain; }
.header-action-modal .comunicacao-toolbar,
.header-action-modal .perfil-acoes { flex: none; }
.header-action-modal .comunicacao-vazio { min-height: 170px; padding: 16px; }
.header-action-modal .comunicacao-form { flex: none; }
.header-action-modal .modal-drag-header {
    flex: none;
    cursor: default !important;
    background: #f3f8f7 !important;
    color: #173f3d !important;
    text-transform: none;
    letter-spacing: 0;
}
.header-action-modal .modal-drag-header span { color: inherit !important; }
.header-action-modal .modal-body {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
    background: #fff !important;
    color: #243d40 !important;
}
.header-action-modal .comunicacao-fechar { transition: background .15s, color .15s, border-color .15s; }
.header-action-modal .comunicacao-fechar:hover { border-color: #b8ceca; background: #edf5f3; color: #1c5550; }
.header-action-modal.modal-notificacoes .comunicacao-header { background: #fffaf1; border-color: #efe5d1; }
.header-action-modal.modal-notificacoes .comunicacao-icon { background: #fff0cf; color: #9a5a05; }
.header-action-modal.modal-perfil .comunicacao-header { background: #f0f8fa; border-color: #d9e8eb; }
.header-action-modal.modal-perfil .comunicacao-icon { background: #dceef2; color: #236477; }
.header-action-modal.modal-comunicacao .modal-content {
    position: relative;
    max-width: 480px;
    border-radius: 6px;
    color: #203038;
    transform: none;
}

.header-action-modal.modal-mensagens .modal-content { border-top: 2px solid #6d958b; }
.header-action-modal.modal-notificacoes .modal-content { border-top: 2px solid #b39a6c; }
.header-action-modal.modal-perfil .modal-content { border-top: 2px solid #6c8c91; }
@keyframes headerModalBackdropEnter { from { opacity: 0; } to { opacity: 1; } }
@keyframes headerModalEnter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .header-action-modal.modal.show,.header-action-modal.modal.active,
    .header-action-modal .modal-content { animation: none; transition: none; }
}
@media (max-width: 1024px) {
    .header-action-modal.modal { align-items: center; justify-content: center; padding: 16px; }
    .header-action-modal .modal-content,
    .header-action-modal.modal-mensagens .modal-content,
    .header-action-modal.modal-perfil .modal-content { width: min(520px, 100%); max-width: 520px; max-height: calc(100vh - 32px); }
}

.modal-comunicacao .modal-content {
    width: min(560px, calc(100vw - 28px));
    max-height: min(76vh, 640px);
    overflow: hidden;
    padding: 0;
    border: 1px solid #dbe4e8;
    border-radius: 6px !important;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .26);
    display: flex;
    flex-direction: column;
}

.header-action-modal.modal-comunicacao .modal-content {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    max-width: 420px;
    max-height: min(600px, calc(100vh - 98px));
    margin: 0;
    border: 1px solid #dbe4e8;
    border-radius: 6px !important;
    background: #fff;
    box-shadow: 0 22px 60px rgba(16, 37, 41, .24);
    color: #203038;
    transform: none;
}


.comunicacao-header {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5e9eb;
    background: #f7faf9;
}

.comunicacao-header h2,
.comunicacao-header p { margin: 0; }
.comunicacao-header h2 { color: #172d2b; font-size: 17px; font-weight: 800; }
.comunicacao-header p { margin-top: 4px; color: #647477; font-size: 11px; }
.comunicacao-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: none; border-radius: 5px; font-size: 15px; }
.comunicacao-header-texto { min-width: 0; }
.comunicacao-kicker { display: block; margin-bottom: 4px; color: #438273; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.comunicacao-fechar { margin-left: auto; width: 30px; height: 30px; border: 1px solid #d7e0e1; border-radius: 4px; background: #fff; color: #475569; font-size: 20px; cursor: pointer; }
.comunicacao-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; color: #63716f; font-size: 11px; }
.comunicacao-toolbar button,
.comunicacao-enviar { min-height: 34px; padding: 0 12px; border: 0; border-radius: 5px; background: #39786b; color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 3px 8px rgba(23,107,89,.12); transition: transform .16s ease,box-shadow .16s ease,filter .16s ease; }
.comunicacao-toolbar button:hover,.comunicacao-enviar:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 8px 16px rgba(23,107,89,.2); }
.comunicacao-contador { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; padding: 0 8px; border: 1px solid #e3ece9; border-radius: 5px; background: #f5faf8; color: #477267; font-size: 10px; font-weight: 750; }
.comunicacao-contador i { color: #438273; }
.comunicacao-lista { overflow-y: auto; padding: 4px 18px 14px; scrollbar-color: #d9e6e2 transparent; scrollbar-width: thin; }
.comunicacao-item { position: relative; margin: 7px 0; padding: 12px 13px; border: 1px solid #e5ecea; border-radius: 6px; background: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(28,68,53,.03); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.comunicacao-item:hover { transform: translateY(-2px); border-color: #c9ded6; box-shadow: 0 9px 20px rgba(28,68,53,.08); }
.comunicacao-item:last-child { margin-bottom: 0; }
.comunicacao-item-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #82918e; font-size: 10px; }
.comunicacao-item-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: #eff7f3; color: #397662; font-size: 8px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.comunicacao-item-meta span::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
.comunicacao-item h3 { margin: 10px 0 6px; color: #173b34; font-size: 14px; line-height: 1.4; }
.comunicacao-item p { margin: 0; color: #536360; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.comunicacao-item small { display: flex; align-items: center; gap: 6px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #f0f4f2; color: #84918e; font-size: 10px; }
.comunicacao-item small::before { color: #7ba494; font-family: "Font Awesome 6 Free"; font-weight: 900; content: "\f2bd"; }
.comunicacao-item.nao-lida { border-color: #cde4da; background: linear-gradient(115deg,#fbfefc,#f6fbf8); }
.comunicacao-item.nao-lida::before { position: absolute; top: 15px; right: 15px; width: 7px; height: 7px; border-radius: 50%; background: #27916c; box-shadow: 0 0 0 4px rgba(39,145,108,.1); content: ""; }
.comunicacao-form { margin: 0 18px 10px; padding: 13px; border: 1px solid #d6e7df; border-radius: 6px; background: #f8fbf9; box-shadow: 0 4px 10px rgba(28,68,53,.04); }
.comunicacao-form[hidden] { display: none; }
.comunicacao-form label { display: block; margin: 0 0 5px; color: #36554d; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.comunicacao-form input,
.comunicacao-form textarea { width: 100%; margin: 0 0 12px; padding: 9px 10px; border: 1px solid #d6e2dd; border-radius: 5px; background: #fff; color: #172d2b; font: inherit; font-size: 12px; transition:border-color .15s ease,box-shadow .15s ease; }
.comunicacao-form input:focus,.comunicacao-form textarea:focus { border-color: #4b9b81; box-shadow: 0 0 0 3px rgba(75,155,129,.12); }
.comunicacao-form textarea { resize: vertical; min-height: 96px; }
.comunicacao-form-acoes { display: flex; justify-content: flex-end; gap: 8px; }
.comunicacao-cancelar { min-height: 38px; padding: 0 13px; border: 1px solid #dce6e2; border-radius: 9px; background: #fff; color: #536661; font-weight: 700; cursor: pointer; transition: background .15s ease,border-color .15s ease; }
.comunicacao-cancelar:hover { border-color: #c6d5cf; background: #f6f9f7; }
.comunicacao-vazio { min-height: 240px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 9px; padding: 28px; color: #71817d; text-align: center; }
.comunicacao-vazio > i { font-size: 26px; color: #8ba39c; }
.comunicacao-vazio strong { color: #28483f; font-size: 14px; }
.comunicacao-vazio span { font-size: 11px; line-height: 1.55; }
.comunicacao-vazio-icone { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 4px; border: 1px solid #e5eeea; border-radius: 18px; background: linear-gradient(145deg,#f2f8f4,#fff); color: #65917f; font-size: 20px; }

.modal-notificacoes .comunicacao-icon { background: #fff0cf; color: #9a5a05; }
.modal-notificacoes .comunicacao-header { background: #fffaf0; border-color: #f2e5c8; }
.modal-notificacoes .comunicacao-kicker { color: #a16d24; }
.notificacoes-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 8px; }
.notificacoes-toolbar .comunicacao-contador { border-color: #f0e5cf; background: #fffaf1; color: #9a6a23; }
.notificacoes-toolbar .comunicacao-contador i { color: #ba853a; }
.notificacoes-toolbar-ajuda { display: flex; align-items: center; gap: 6px; color: #9a8c72; font-size: 9px; text-align: right; }
.modal-notificacoes .comunicacao-lista { padding-top: 4px; }
.notificacao-item { width: 100%; display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; padding: 10px; border: 1px solid #eee8dc; border-radius: 6px; background: #fff; text-align: left; cursor: pointer; box-shadow: 0 2px 6px rgba(82,61,22,.025); transition: transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease; }
.notificacao-item:hover { transform: translateY(-1px); border-color: #e5d4ae; background: #fffdf8; box-shadow: 0 8px 17px rgba(82,61,22,.08); }
.notificacao-item:focus-visible { outline: 3px solid rgba(194,131,50,.24); outline-offset: 2px; }
.notificacao-simbolo { width: 32px; height: 32px; display: grid; place-items: center; flex: none; border: 1px solid #efe5d3; border-radius: 5px; background: #fbf6eb; color: #947443; }
.notificacao-conteudo { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 5px; }
.notificacao-conteudo strong { color: #3e3422; font-size: 12px; line-height: 1.4; }
.notificacao-conteudo > span { display: -webkit-box; overflow: hidden; color: #756a57; font-size: 11px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.notificacao-seta { align-self: center; color: #b39460; font-size: 10px; transition: transform .16s ease; }
.notificacao-item:hover .notificacao-seta { transform: translateX(2px); }
.notificacao-item.categoria-mensagem .notificacao-simbolo { border-color: #dcebe3; background: linear-gradient(145deg,#f0f7f2,#e5f1ea); color: #347259; }
.notificacoes-vazio { min-height: 180px; }
.modal-mensagens .comunicacao-icon { border: 1px solid #dfe9e4; border-radius: 5px; background: #edf3ef; color: #52796b; }
.modal-notificacoes .comunicacao-icon { border: 1px solid #eee6d7; border-radius: 5px; background: #f7f2e8; color: #947443; }
.modal-mensagens .comunicacao-header,.modal-notificacoes .comunicacao-header { gap: 11px; padding: 16px 18px; }
.modal-mensagens .modal-content { border-color: #d8e8e1; }
.modal-notificacoes .modal-content { border-color: #eee3cf; }
.modal-mensagens .comunicacao-toolbar { border-bottom: 1px solid #f0f4f2; }
.modal-notificacoes .notificacoes-toolbar { border-bottom: 1px solid #f6f0e5; }
@media (prefers-reduced-motion: reduce) {
    .comunicacao-item,.notificacao-item,.notificacao-seta,.comunicacao-toolbar button,.comunicacao-enviar { transition: none; }
    .comunicacao-item:hover,.notificacao-item:hover,.comunicacao-toolbar button:hover,.comunicacao-enviar:hover { transform: none; }
}
.modal-notificacoes .categoria-mensagem .notificacao-simbolo { background: #e9f2ee; color: #176b59; }

/* Keep header-action panels visible without dimming the page behind them. */
.header-action-modal.modal-mensagens,
.header-action-modal.modal-notificacoes,
.header-action-modal.modal-perfil {
    background: transparent;
    backdrop-filter: none;
}

/* Compact anchored panels for header actions */
.header-action-modal.is-anchored {
    display: block;
    padding: 0;
    background: rgba(15, 23, 42, .08);
    backdrop-filter: blur(1px);
}
.header-action-modal.is-anchored .modal-content {
    position: fixed;
    inset: auto;
    margin: 0;
    max-height: min(600px, calc(100vh - 24px));
    border: 1px solid #e5e7eb;
    border-radius: 12px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .05);
}
.header-action-modal.is-anchored .comunicacao-header {
    gap: 10px;
    padding: 13px 15px;
}
.header-action-modal.is-anchored .comunicacao-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
}
.header-action-modal.is-anchored .comunicacao-header h2 { font-size: 15px; }
.header-action-modal.is-anchored .comunicacao-header p { font-size: 10px; }
.header-action-modal.is-anchored .comunicacao-kicker { font-size: 8px; }
.header-action-modal.is-anchored .comunicacao-toolbar,
.header-action-modal.is-anchored .notificacoes-toolbar { padding: 8px 15px; }
.header-action-modal.is-anchored .comunicacao-lista { padding: 4px 13px 12px; }
.header-action-modal.is-anchored .comunicacao-vazio { min-height: 120px; }
.header-action-modal.modal-mensagens.is-anchored .modal-content { border-top: 0; }
.header-action-modal.modal-mensagens.is-anchored .comunicacao-header {
    border-color: #ebe8f4;
    background: #f8f7fb;
}
.header-action-modal.modal-mensagens.is-anchored .comunicacao-icon {
    border-color: #e9e5f2;
    background: #efedf6;
    color: #65548f;
}
.header-action-modal.modal-mensagens.is-anchored .comunicacao-kicker,
.header-action-modal.modal-mensagens.is-anchored .comunicacao-contador,
.header-action-modal.modal-mensagens.is-anchored .comunicacao-contador i { color: #65548f; }
.header-action-modal.modal-mensagens.is-anchored .comunicacao-toolbar button,
.header-action-modal.modal-mensagens.is-anchored .comunicacao-enviar { background: #514184; }
.header-action-modal.modal-mensagens.is-anchored .comunicacao-toolbar button:hover,
.header-action-modal.modal-mensagens.is-anchored .comunicacao-enviar:hover { background: #40346a; }
.header-action-modal.modal-notificacoes.is-anchored .modal-content { border-top: 0; }
.header-action-modal.modal-notificacoes.is-anchored .comunicacao-header {
    border-color: #eee9dc;
    background: #fbfaf7;
}
.header-action-modal.modal-notificacoes.is-anchored .comunicacao-icon {
    border-color: #eee9dc;
    background: #f4f0e7;
    color: #887347;
}
.header-action-modal.modal-notificacoes.is-anchored .comunicacao-kicker { color: #887347; }
.header-action-modal.modal-notificacoes.is-anchored .comunicacao-contador {
    border-color: #eee9dc;
    background: #fbfaf7;
    color: #776747;
}
.header-action-modal.modal-notificacoes.is-anchored .comunicacao-lista { padding-top: 7px; }
.header-action-modal.is-anchored .comunicacao-item,
.header-action-modal.is-anchored .notificacao-item {
    border-radius: 9px;
    box-shadow: none;
}
.header-action-modal.is-anchored .comunicacao-item:hover,
.header-action-modal.is-anchored .notificacao-item:hover {
    transform: none;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
}

#modalPerfil .modal-content { width: min(400px, calc(100vw - 32px)); max-width: 400px; max-height: min(560px, calc(100dvh - 32px)); }
#modalPerfil .perfil-dados { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.header-action-modal.modal-perfil .modal-content { border-top: 0; box-shadow: 0 18px 44px rgba(53, 39, 103, .2); transition: box-shadow .2s ease; }
.perfil-modal-cabecalho { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: flex-start; gap: 11px; flex: none; padding: 16px 18px; overflow: hidden; background: linear-gradient(118deg, #352767 0%, #514184 100%); color: #fff; }
.perfil-modal-cabecalho::after { position: absolute; z-index: -1; top: -46px; right: 44px; width: 120px; height: 120px; border: 1px solid rgba(235, 230, 255, .14); border-radius: 50%; box-shadow: 0 0 0 14px rgba(235, 230, 255, .035), 0 0 0 28px rgba(235, 230, 255, .025); content: ""; }
.perfil-modal-marca { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border: 1px solid rgba(235, 230, 255, .24); border-radius: 7px; background: rgba(235, 230, 255, .11); color: #e8e2ff; font-size: 15px; box-shadow: none; }
.perfil-modal-titulo { min-width: 0; }
.perfil-modal-titulo > span { color: #d0c6f4; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.perfil-modal-titulo h2 { margin: 3px 0 0; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.perfil-modal-titulo p { margin: 5px 0 0; color: #e0daf4; font-size: 11px; }
.perfil-modal-cabecalho .comunicacao-fechar { position: relative; z-index: 1; width: 36px; height: 36px; flex: none; margin-left: auto; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.1); color: #fff; transition: transform .18s ease, background .18s ease; }
.perfil-modal-cabecalho .comunicacao-fechar:hover { transform: rotate(90deg); border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.2); color: #fff; }
.perfil-dados { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #f7f6fb; }
.perfil-resumo { position: relative; overflow: hidden; border: 1px solid #e5e1f0; border-radius: 6px; background: #fff; box-shadow: 0 3px 10px rgba(53, 39, 103, .05); }
.perfil-banner { min-height: 58px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 11px 13px; background: #514184; color: #f4f1ff; }
.perfil-banner > span:first-child { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 800; }
.perfil-status-sessao { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid rgba(235, 230, 255, .24); border-radius: 999px; background: rgba(35, 25, 71, .2); color: #eee9ff; font-size: 9px; white-space: nowrap; }
.perfil-status-sessao i { width: 6px; height: 6px; border-radius: 50%; background: #b6e2c3; box-shadow: 0 0 0 3px rgba(182,226,195,.15); }
.perfil-identidade { display: flex; align-items: center; gap: 13px; min-width: 0; margin-top: -24px; padding: 0 15px 14px; }
.perfil-avatar-wrap { position: relative; width: 68px; height: 68px; flex: none; }
.perfil-avatar { position: relative; width: 66px; height: 66px; display: grid; flex: none; place-items: center; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: #514184; color: #fff; font-size: 21px; font-weight: 800; }
.perfil-avatar span { display: grid; width: 100%; height: 100%; place-items: center; }
.perfil-avatar span[hidden] { display: none; }
.perfil-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.perfil-avatar img[hidden] { display: none; }
.perfil-avatar-editar { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #604a9b; color: #fff; font: inherit; cursor: pointer; box-shadow: 0 2px 8px rgba(53,39,103,.22); transition: transform .16s ease, background .16s ease; }
.perfil-avatar-editar:hover { transform: scale(1.08); background: #463571; }
.perfil-avatar-editar:focus-visible { outline: 3px solid #c9bdff; outline-offset: 2px; }
.perfil-foto-status { display: block; min-height: 14px; margin-top: 5px; color: #65548f; font-size: 10px; line-height: 1.35; }
.perfil-identidade h3 { margin: 0; color: #352767; font-size: 17px; line-height: 1.2; }
.perfil-identidade p { margin: 6px 0 0; color: #706987; font-size: 11px; overflow-wrap: anywhere; }
.perfil-secao { border: 1px solid #e5e1f0; border-radius: 6px; background: #fff; padding: 10px 12px; }
.perfil-secao-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.perfil-secao-header span { color: #514184; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.perfil-botao-senha, .perfil-botao-salvar, .perfil-botao-cancelar, .perfil-sair { border: 0; border-radius: 5px; font-weight: 800; cursor: pointer; transition: all .15s ease; }
.perfil-botao-senha { padding: 7px 11px; background: #f1eef9; border: 1px solid #e1dbf1; color: #514184; }
.perfil-botao-senha:hover { background: #e8e2f5; }
.perfil-campos { margin: 0; display: flex; flex-direction: column; }
.perfil-campos div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0eef6; font-size: 11px; }
.perfil-campos div:last-child { border-bottom: 0; }
.perfil-campos dt { color: #77728a; }
.perfil-campos dd { margin: 0; color: #40365f; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.perfil-form-senha { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.perfil-form-senha[hidden] { display: none; }
.perfil-form-senha label { display: flex; flex-direction: column; gap: 6px; color: #625b79; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.perfil-form-senha input { width: 100%; min-height: 36px; border: 1px solid #e1ddec; border-radius: 5px; background: #faf9fd; padding: 0 10px; color: #352767; font-size: 12px; }
.perfil-form-senha input:focus { border-color: #7864b4; box-shadow: 0 0 0 3px rgba(114, 90, 184, .14); }
.perfil-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.perfil-form-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.perfil-botao-cancelar { min-height: 36px; padding: 0 12px; background: #fff; border: 1px solid #dfe7ea; color: #53646a; }
.perfil-botao-salvar { min-height: 34px; padding: 0 12px; background: #514184; color: #fff; box-shadow: 0 3px 8px rgba(53, 39, 103, .16); }
.perfil-botao-salvar:hover { filter: brightness(1.03); }
.perfil-acoes { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid #e5ecee; background: #fff; }
.perfil-sair { min-height: 34px; padding: 0 12px; background: #a4514d; color: #fff; }
.perfil-sair:hover { filter: brightness(1.03); }

@media (max-width: 520px) {
    .perfil-form-grid { grid-template-columns: 1fr; }
    .perfil-acoes { padding-inline: 14px; }
    .perfil-secao { padding: 12px 13px; }
    .perfil-dados { padding: 12px; }
    .perfil-banner { min-height: 64px; padding-inline: 13px; }
    .perfil-identidade { gap: 10px; padding-inline: 12px; }
    .perfil-identidade h3 { font-size: 15px; overflow-wrap: anywhere; }
    .perfil-modal-cabecalho { gap: 10px; padding: 17px 15px; }
    .perfil-modal-marca { width: 40px; height: 40px; border-radius: 12px; }
    .perfil-modal-titulo h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .perfil-modal-cabecalho .comunicacao-fechar,.perfil-avatar-editar { transition: none; } }

@media (max-width: 1024px) {
    .header-action-modal.modal { align-items: center; justify-content: center; padding: 16px; }
    .header-action-modal.modal-mensagens .modal-content { width: min(440px, 100%); max-width: 440px; max-height: calc(100vh - 32px); }
    .header-action-modal.modal-notificacoes .modal-content { width: min(410px, 100%); max-width: 410px; max-height: calc(100vh - 32px); }
    .header-action-modal.modal-perfil .modal-content { width: min(400px, 100%); max-width: 400px; max-height: min(560px, calc(100dvh - 40px)); }
}

.adei-auth-feedback { position: fixed; inset: 0; z-index: 40000; display: none; place-items: center; padding: 18px; background: rgba(20, 35, 39, .58); backdrop-filter: blur(5px); }
.adei-auth-feedback.is-visible { display: grid; animation: adei-feedback-fade .16s ease-out; }
.adei-auth-feedback-dialog { position: relative; width: min(370px, 100%); overflow: hidden; padding: 26px 24px 22px; border: 1px solid #dce5e7; border-radius: 8px; background: #fff; box-shadow: 0 20px 56px rgba(0, 0, 0, .24); text-align: center; animation: adei-feedback-enter .22s cubic-bezier(.2,.8,.2,1); }
.adei-auth-feedback-dialog::before { position: absolute; inset: 0 0 auto; height: 3px; background: #a9544d; content: ''; }
.adei-auth-feedback[data-type="success"] .adei-auth-feedback-dialog::before { background: #287447; }
.adei-auth-feedback[data-type="loading"] .adei-auth-feedback-dialog::before { background: #288650; }
.adei-auth-feedback-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 16px; border: 1px solid #f1d4d1; border-radius: 50%; background: #fce8e7; color: #b33e35; font-size: 24px; box-shadow: 0 5px 16px rgba(179, 62, 53, .12); }
.adei-auth-feedback[data-type="loading"] .adei-auth-feedback-icon { position: relative; width: 94px; height: 94px; overflow: visible; margin: 0 auto 14px; border: 0; background: transparent; color: #4a8069; box-shadow: none; }
.adei-auth-feedback-spinner { position: absolute; inset: 3px; display: block; border: 2px solid transparent; border-top-color: #4c8b6c; border-right-color: #8cb89a; border-radius: 50%; animation: adei-auth-green-spin 1.15s linear infinite; }
.adei-auth-feedback-spinner[hidden] { display: none; }
.adei-auth-feedback-spinner span:first-child { position: absolute; inset: 8px; border: 2px dashed #afcfb5; border-left-color: #4c8b6c; border-radius: 50%; animation: adei-auth-green-spin .9s linear infinite reverse; }
.adei-auth-feedback-spinner span:last-child { position: absolute; top: -2px; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: #4c8b6c; box-shadow: 0 0 0 3px rgba(76, 139, 108, .12); transform: translateX(-50%); }
.adei-auth-feedback-loading-photo { position: absolute; inset: 0; display: grid; place-items: center; width: 58px; height: 58px; overflow: hidden; margin: auto; border: 2px solid #fff; border-radius: 50%; background: #edf3ee; box-shadow: 0 2px 9px rgba(28, 61, 42, .16); z-index: 1; }
.adei-auth-feedback-loading-photo[hidden] { display: none; }
.adei-auth-feedback-loading-photo img,.adei-auth-feedback-loading-photo > span { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.adei-auth-feedback-loading-photo > span { display: grid; place-items: center; color: #246d3e; font-size: 25px; font-weight: 800; }
.adei-auth-feedback-loading-photo img[hidden] { display: none; }
.adei-auth-feedback-loading-photo > span[hidden] { display: none; }
.adei-auth-feedback-icon > i[hidden] { display: none; }
@keyframes adei-auth-green-spin { to { transform: rotate(360deg); } }
.adei-auth-feedback-avatar { width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; margin: 0 auto 16px; border: 3px solid #fff; border-radius: 50%; background: #edf4f3; box-shadow: 0 0 0 1px #d9e4e3, 0 7px 20px rgba(30, 73, 76, .14); }
.adei-auth-feedback-avatar[hidden] { display: none; }
.adei-auth-feedback-avatar img,.adei-auth-feedback-avatar span { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; }
.adei-auth-feedback-avatar span { display: grid; place-items: center; background: #e7f1ef; color: #28615f; font-size: 28px; font-weight: 800; }
.adei-auth-feedback-avatar img[hidden],.adei-auth-feedback-avatar span[hidden] { display: none; }
.adei-auth-feedback[data-type="success"] .adei-auth-feedback-icon { border-color: #d4e6d8; background: #edf5ee; color: #4a8060; box-shadow: 0 3px 10px rgba(40, 116, 71, .08); }
.adei-auth-feedback-dialog h2 { margin: 0; color: #203038; font-size: 18px; font-weight: 800; }
.adei-auth-feedback-dialog p { margin: 10px 0 22px; color: #5b6870; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.adei-auth-feedback-dialog button { min-height: 38px; min-width: 118px; padding: 0 16px; border: 0; border-radius: 5px; background: #8f514b; color: #fff; font-weight: 700; cursor: pointer; transition: background .15s ease, transform .15s ease, box-shadow .15s ease; box-shadow: 0 3px 9px rgba(110, 59, 54, .16); }
.adei-auth-feedback-dialog button:hover { background: #78423e; transform: translateY(-1px); box-shadow: 0 5px 12px rgba(110, 59, 54, .2); }
.adei-auth-feedback-dialog button:focus-visible { outline: 3px solid #f1aaa4; outline-offset: 3px; }
.adei-auth-feedback-dialog button[hidden] { display: none; }
.adei-auth-feedback[data-type="success"] .adei-auth-feedback-dialog button { background: #47775a; box-shadow: 0 3px 9px rgba(40, 116, 71, .15); }
.adei-auth-feedback[data-type="success"] .adei-auth-feedback-dialog button:hover { background: #395f49; }
@keyframes adei-feedback-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes adei-feedback-enter { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .adei-auth-feedback.is-visible, .adei-auth-feedback-dialog { animation: none; } }
.adei-auth-toast { position: fixed; z-index: 41000; top: 20px; right: 22px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 0 11px; width: min(370px, calc(100vw - 32px)); padding: 13px 15px 11px; border: 1px solid #d5e9dc; border-left: 4px solid #668d75; border-radius: 6px; background: #fff; box-shadow: 0 10px 28px rgba(20, 48, 31, .13); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
.adei-auth-toast.is-visible { opacity: 1; transform: translateY(0); }
.adei-auth-toast > i { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 5px; background: #edf4ee; color: #557c60; font-size: 12px; }
.adei-auth-toast-body { display: grid; gap: 3px; min-width: 0; }
.adei-auth-toast strong { color: #26352b; font-size: 12px; }
.adei-auth-toast-body > span { color: #68746b; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.adei-auth-toast-timing { grid-column: 1 / -1; display: grid !important; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 9px !important; margin-top: 10px; color: #78867b; font-size: 9px; font-variant-numeric: tabular-nums; }
.adei-auth-toast-progress { height: 3px; overflow: hidden; border-radius: 2px; background: #e9efe9; }
.adei-auth-toast-progress > span { display: block; width: 100%; height: 100%; border-radius: inherit; background: #759b7c; transform: scaleX(1); transform-origin: left center; transition: transform .2s linear; }
@media (max-width: 520px) { .adei-auth-toast { top: 12px; right: 12px; } }
@media (prefers-reduced-motion: reduce) { .adei-auth-toast { transition: none; } .adei-auth-toast-progress > span { transition: none !important; } }

.adei-login-overlay { position: fixed; inset: 0; z-index: 35000; display: none; align-items: center; justify-content: center; padding: 18px; background: rgba(23, 39, 42, .62); backdrop-filter: blur(5px); }
.swal2-container { z-index: 50000 !important; }
.adei-login-dialog { width: min(400px, 100%); overflow: hidden; border: 1px solid #dbe6e5; border-radius: 8px; background: #fff; box-shadow: 0 20px 58px rgba(8, 28, 33, .26); animation: adei-feedback-enter .22s cubic-bezier(.2,.8,.2,1); }
.adei-login-header { display: flex; align-items: center; gap: 13px; min-height: 98px; padding: 18px 20px; background: linear-gradient(125deg, #24464a 0%, #386861 100%); color: #fff; }
.adei-login-header img,.adei-login-header > span { width: 48px; height: 48px; flex: none; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; object-fit: contain; }
.adei-login-header img { display: none; padding: 3px; background: #fff; }
.adei-login-header > span { display: grid; place-items: center; background: rgba(255,255,255,.12); font-size: 21px; font-weight: 900; }
.adei-login-brand{min-width:0;}
.adei-login-eyebrow{color:#c8dedd;font-size:10px;font-weight:800;text-transform:uppercase;}
#adeiLoginInstitution{margin-top:5px;color:#fff;font-size:18px;font-weight:800;line-height:1.2;overflow-wrap:anywhere;}
.adei-login-form{display:flex;flex-direction:column;gap:13px;padding:20px;}
.adei-login-field label{display:block;margin-bottom:7px;color:#475b60;font-size:10px;font-weight:800;text-transform:uppercase;}
.adei-login-input-wrap{position:relative;}
.adei-login-input-wrap i{position:absolute;top:50%;left:13px;transform:translateY(-50%);color:#638582;font-size:13px;}
.adei-login-input-wrap input{width:100%;height:44px;padding:0 12px 0 39px;border:1px solid #d5e0e0;border-radius:6px;background:#fbfdfd;color:#203b41;font-size:13px;transition:border-color .15s,box-shadow .15s;}
.adei-login-input-wrap--password input{padding-right:42px;}
.adei-login-input-wrap input:focus{border-color:#4b8b87;box-shadow:0 0 0 3px rgba(57,126,121,.13);}
.adei-login-input-wrap input::placeholder{color:#9aabad;}
.adei-login-password-toggle{position:absolute;top:50%;right:10px;transform:translateY(-50%);display:grid;place-items:center;width:26px;height:26px;border:0;border-radius:5px;background:transparent;color:#51666b;cursor:pointer;transition:background .15s ease,color .15s ease;}
.adei-login-password-toggle:hover,.adei-login-password-toggle:focus-visible{background:rgba(73,103,105,.08);color:#1a2a2d;outline:none;}
.adei-login-error{display:none;border:1px solid #f1c9c5;border-radius:6px;background:#fff4f2;color:#9a3d35;font-size:11px;font-weight:700;padding:9px 11px;}
.adei-login-submit{display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:0;border-radius:6px;background:#245b5a;color:#fff;font-size:12px;font-weight:800;cursor:pointer;transition:background .15s,transform .15s,box-shadow .15s;box-shadow:0 5px 14px rgba(36,91,90,.2);}
.adei-login-submit:hover:not(:disabled){transform:translateY(-1px);background:#1d4a49;box-shadow:0 8px 18px rgba(36,91,90,.24);}
.adei-login-submit:disabled{cursor:wait;opacity:.84;}
.adei-login-spinner{display:none;width:17px;height:17px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:adei-login-spin .72s linear infinite;}
.adei-login-form.is-processing .adei-login-spinner{display:block;}
.adei-login-form.is-processing .adei-login-submit-icon{display:none;}
.adei-login-session-note{color:#77898d;font-size:10px;text-align:center;}
.adei-login-copyright{padding:0 20px 16px;color:#77898d;font-size:10px;text-align:center;}
@keyframes adei-login-spin{to{transform:rotate(360deg);}}
@media (max-width:480px){.adei-login-form{padding:20px;}.adei-login-header{padding:18px 20px;}}

@media (max-width: 520px) {
    .comunicacao-header { padding: 16px; }
    .comunicacao-toolbar { align-items: center; padding: 12px 16px; }
    .comunicacao-lista { padding: 4px 13px 14px; }
    .comunicacao-form { margin-inline: 13px; }
    .comunicacao-item { padding: 14px; }
    .notificacoes-toolbar { align-items: flex-start; padding-inline: 16px; }
    .notificacoes-toolbar-ajuda { max-width: 145px; line-height: 1.4; }
    .modal-mensagens .comunicacao-header,.modal-notificacoes .comunicacao-header { padding: 14px 16px; }
    .perfil-dados { padding: 12px; }
    .perfil-acoes { padding-inline: 16px; }
}