/* Conecta Escola RasBR v1.0.7 — visual e acessibilidade; sem tocar no motor. */
/* Contraste real entre o fundo do projeto e os cartões */
body.cer-body{--cer-v107-page:#06111f;--cer-v107-surface:#11263a;--cer-v107-surface2:#0f2336;--cer-v107-border:rgba(100,181,225,.24);--cer-v107-shadow:0 13px 35px rgba(0,0,0,.35),0 1px 3px rgba(0,0,0,.2);--cer-v107-hover:#153f62;--cer-v107-bright:#50cefa;background:linear-gradient(180deg,var(--cer-v107-page),color-mix(in srgb,var(--cer-v107-page) 86%,#102a48))!important;color:#f7fbff!important}
body.cer-theme-blue-dark{--cer-v107-page:#06101b;--cer-v107-surface:#11283a;--cer-v107-surface2:#102336}
body.cer-theme-black-dark{--cer-v107-page:#06090e;--cer-v107-surface:#1e2934;--cer-v107-surface2:#18232e}
body.cer-theme-gray-dark{--cer-v107-page:#0a1018;--cer-v107-surface:#253341;--cer-v107-surface2:#1c2c3b}
body.cer-theme-red-dark{--cer-v107-page:#0e0b13;--cer-v107-surface:#30212b;--cer-v107-surface2:#281b25}
body.cer-theme-green-dark{--cer-v107-page:#061411;--cer-v107-surface:#143a32;--cer-v107-surface2:#102d29}
body.cer-theme-purple-dark{--cer-v107-page:#0a0c19;--cer-v107-surface:#2a2441;--cer-v107-surface2:#201d35}
/* Novos temas: 7 presets independentes por comunidade */
body.cer-theme-turbina-max{--cer-primary:#60baff;--cer-v107-page:#080e2b;--cer-v107-surface:#182750;--cer-v107-surface2:#112348;--cer-v107-border:rgba(135,172,248,.29);--cer-v107-bright:#79bbff;--cer-v107-hover:#233e77;--cer-ui-accent:#58aeff;--cer-ui-accent-2:#9bceff;--cer-ui-button:#1e3a6d;--cer-ui-button-hover:#31528c;--cer-ui-line:rgba(119,177,255,.34);--cer-ui-accent-soft:rgba(74,135,241,.17)}
body.cer-theme-blue-ocean{--cer-primary:#41c9f4;--cer-v107-page:#051425;--cer-v107-surface:#103d58;--cer-v107-surface2:#0e314b;--cer-v107-bright:#57d4f8;--cer-v107-hover:#135b76;--cer-ui-accent:#44c8f3;--cer-ui-accent-2:#8be5ff;--cer-ui-button:#12516d;--cer-ui-button-hover:#19738d;--cer-ui-line:rgba(91,216,248,.34);--cer-ui-accent-soft:rgba(42,189,228,.16)}
body.cer-theme-azure-vivid{--cer-primary:#87d2ff;--cer-v107-page:#0a1627;--cer-v107-surface:#224367;--cer-v107-surface2:#1c395a;--cer-v107-bright:#92d8ff;--cer-v107-hover:#2c5e8c;--cer-ui-accent:#78cdff;--cer-ui-accent-2:#c0e7ff;--cer-ui-button:#285879;--cer-ui-button-hover:#36749a;--cer-ui-line:rgba(150,222,255,.40);--cer-ui-accent-soft:rgba(102,199,247,.18)}
body.cer-theme-teal-navy{--cer-primary:#6ce2d2;--cer-v107-page:#061823;--cer-v107-surface:#173d4b;--cer-v107-surface2:#103342;--cer-v107-bright:#65efde;--cer-v107-hover:#165668;--cer-ui-accent:#5ee5d1;--cer-ui-accent-2:#a8fff0;--cer-ui-button:#175667;--cer-ui-button-hover:#24748b;--cer-ui-line:rgba(112,238,215,.35);--cer-ui-accent-soft:rgba(71,211,190,.15)}
body.cer-theme-sapphire-dark{--cer-primary:#86b7ff;--cer-v107-page:#050c22;--cer-v107-surface:#162e60;--cer-v107-surface2:#12264f;--cer-v107-bright:#8aafff;--cer-v107-hover:#29477d;--cer-ui-accent:#7cabff;--cer-ui-accent-2:#bdd2ff;--cer-ui-button:#254474;--cer-ui-button-hover:#365e93;--cer-ui-line:rgba(124,171,255,.38);--cer-ui-accent-soft:rgba(112,151,246,.17)}
body.cer-theme-midnight-cobalt{--cer-primary:#45b0fa;--cer-v107-page:#030b1b;--cer-v107-surface:#152747;--cer-v107-surface2:#101f3b;--cer-v107-bright:#4cb8ff;--cer-v107-hover:#234d80;--cer-ui-accent:#38adff;--cer-ui-accent-2:#8fd8ff;--cer-ui-button:#153c68;--cer-ui-button-hover:#20578a;--cer-ui-line:rgba(73,180,255,.33);--cer-ui-accent-soft:rgba(36,150,235,.16)}
body.cer-theme-graphite-blue{--cer-primary:#9ad5fa;--cer-v107-page:#12171f;--cer-v107-surface:#303e4e;--cer-v107-surface2:#273546;--cer-v107-bright:#a4d9fb;--cer-v107-hover:#3a5876;--cer-ui-accent:#91d4ff;--cer-ui-accent-2:#c5edff;--cer-ui-button:#36516a;--cer-ui-button-hover:#466984;--cer-ui-line:rgba(157,213,249,.34);--cer-ui-accent-soft:rgba(123,192,234,.17)}
/* Turbina Max: detalhes rosa moderados apenas na decoração, nunca rosa choque nos controles */
body.cer-theme-turbina-max .cer-block-title h2,body.cer-theme-turbina-max .cer-school-info h1{filter:drop-shadow(0 1px 8px rgba(189,104,207,.13))}
body.cer-theme-turbina-max .cer-school-profilebar{border-bottom:2px solid rgba(198,109,209,.26)!important}
body.cer-theme-turbina-max .cer-story-special{background:radial-gradient(circle at 95% 0,rgba(195,97,184,.23),transparent 44%),linear-gradient(145deg,#203760,#10264b)!important}
/* Herdar cores sem sacrificar separação: vários blocos antes usavam o mesmo fundo fixo */
body.cer-body .cer-composer,body.cer-body .cer-post,body.cer-body .cer-side-card,body.cer-body .cer-course,body.cer-body .cer-profile-card,body.cer-body .cer-gate-card,body.cer-body .cer-welcome-pack,body.cer-body .cer-learning-shortcuts article{
 background:linear-gradient(165deg,var(--cer-v107-surface),var(--cer-v107-surface2))!important;
 border:1px solid var(--cer-v107-border)!important;
 box-shadow:var(--cer-v107-shadow)!important;
}
body.cer-body .cer-post-author strong,body.cer-body .cer-side-card strong,body.cer-body .cer-block-title h2,body.cer-body .cer-story strong{color:#fbfdff!important}
body.cer-body .cer-muted,body.cer-body .cer-post-author small,body.cer-body .cer-story small,body.cer-body .cer-school-stats,body.cer-body .cer-block-title span{color:#bdcede!important}
body.cer-body .cer-post:target{box-shadow:0 0 0 2px var(--cer-v107-bright),var(--cer-v107-shadow)!important}
body.cer-body .cer-contact:hover,body.cer-body .cer-contact:focus-visible,body.cer-body .cer-side-card a:hover,body.cer-body .cer-side-card a:focus-visible{background:var(--cer-v107-hover)!important;color:#fff!important}
body.cer-body .cer-side-card a:hover *,body.cer-body .cer-side-card a:focus-visible *{color:#fff!important;opacity:1!important}
/* Desfazer o rosa de componentes legados sem interferir no conteúdo. */
body.cer-body .cer-voice-play{background:#fff!important;color:#d12b38!important;border:1px solid rgba(255,255,255,.88)!important;box-shadow:0 2px 9px rgba(0,0,0,.19)!important}
body.cer-body .cer-voice-play:hover,body.cer-body .cer-voice-play:focus-visible{background:#f2f8ff!important;color:#c32233!important;outline:2px solid #77dbf8!important;outline-offset:2px!important}
body.cer-body .cer-voice-play.is-playing{background:#f8fdff!important;color:#bd2a38!important}
body.cer-body .cer-chat-pane .cer-voice-note .cer-voice-play span{border-left-color:currentColor!important}
/* Área de chat: fechar sempre NA LINHA do cabeçalho, nunca no centro do painel. */
body.cer-body .cer-chat-pane{position:relative!important;overflow:hidden!important}
body.cer-body .cer-chat-head{display:flex!important;align-items:center!important;gap:10px!important;min-height:70px!important;padding:9px 10px 9px 54px!important;isolation:auto!important}
body.cer-body .cer-chat-head[hidden]{display:none!important}
body.cer-body .cer-chat-head .cer-chat-back{position:absolute!important;left:10px!important;top:50%!important;transform:translateY(-50%)!important}
body.cer-body .cer-chat-head .cer-safe-mini{position:static!important;top:auto!important;right:auto!important;transform:none!important;margin-left:auto!important;flex:none!important;padding:4px 7px!important;line-height:1.1!important}
body.cer-body .cer-chat-head .cer-chat-head-close{position:static!important;display:grid!important;top:auto!important;right:auto!important;transform:none!important;inset:auto!important;flex:0 0 30px!important;width:30px!important;height:30px!important;margin-left:0!important;border-radius:9px!important;background:rgba(19,51,72,.8)!important;color:#cce7f4!important}
body.cer-body .cer-chat-head .cer-chat-head-close:hover{background:#215a7a!important;color:white!important}
body.cer-body .cer-contacts{position:relative!important}
body.cer-body .cer-contacts .cer-contacts-close{position:absolute!important;top:8px!important;right:8px!important;left:auto!important;transform:none!important;z-index:12!important;display:grid!important;place-items:center!important;min-width:30px!important;min-height:30px!important;background:rgba(25,67,93,.85)!important}
body.cer-body .cer-contact-search-top{margin-right:34px!important}
body.cer-body .cer-chat-messages,body.cer-body .cer-contact-list,body.cer-body .cer-contacts{scrollbar-width:none!important;-ms-overflow-style:none!important}
body.cer-body .cer-chat-messages::-webkit-scrollbar,body.cer-body .cer-contact-list::-webkit-scrollbar,body.cer-body .cer-contacts::-webkit-scrollbar{display:none!important;width:0!important}
body.cer-body .cer-chat-head-details strong{font-size:15px!important;color:#fff!important}
body.cer-body .cer-head-presence.offline b{color:#a4b7c4!important}
@media(max-width:420px){body.cer-body .cer-chat-head{padding-left:50px!important;gap:6px!important}body.cer-body .cer-chat-head-avatar{width:33px!important;height:33px!important;flex:0 0 33px!important}body.cer-body .cer-chat-head-details strong{font-size:13px!important}body.cer-body .cer-chat-head .cer-safe-mini{font-size:9px!important;padding:3px 4px!important}}
/* Lixeira vetorial alinhada à ação destrutiva. */
.cer-trash-icon{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;vertical-align:middle;margin-right:7px}
body.cer-body .cer-post-menu .cer-delete-post{display:flex!important;align-items:center!important;gap:3px!important;color:#ffb2b2!important}
body.cer-body .cer-post-menu .cer-delete-post:hover{background:rgba(218,84,89,.15)!important;color:#fff!important}
/* Destaques: cartões um pouco menores e setas centralizadas sempre. */
body.cer-body .cer-stories{grid-auto-columns:108px!important;gap:9px!important;scroll-behavior:smooth!important}
body.cer-body .cer-story{height:132px!important;cursor:pointer!important;border-color:var(--cer-v107-border)!important}
body.cer-body .cer-story-post{cursor:pointer!important}
body.cer-body .cer-story-arrow{display:grid!important;place-items:center!important;top:50%!important;transform:translateY(-50%)!important;width:37px!important;height:37px!important;padding:0!important;line-height:0!important;border-radius:11px!important;box-shadow:0 5px 17px rgba(0,0,0,.44)!important;background:#11374c!important;color:#f4fcff!important}
body.cer-body .cer-story-arrow svg{display:block;width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:2.9;stroke-linecap:round;stroke-linejoin:round}
body.cer-body .cer-story-arrow.prev{left:-3px!important}body.cer-body .cer-story-arrow.next{right:-3px!important}
body.cer-body .cer-story-arrow:hover,body.cer-body .cer-story-arrow:focus-visible{background:#206485!important;color:white!important}
@media(max-width:700px){body.cer-body .cer-stories{grid-auto-columns:103px!important;padding-right:23px!important}body.cer-body .cer-story{height:126px!important}body.cer-body .cer-story-arrow{width:35px!important;height:35px!important;top:50%!important}body.cer-body .cer-story-arrow.prev{left:-3px!important}body.cer-body .cer-story-arrow.next{right:-3px!important}}
/* Publicar: espaçamento real abaixo das ferramentas */
body.cer-body .cer-composer-row{gap:12px!important;padding-top:15px!important}
body.cer-body .cer-composer-tools{gap:9px!important}
body.cer-body .cer-composer .cer-file-main,body.cer-body .cer-composer .cer-coming,body.cer-body .cer-composer .cer-kind-toggle{background:var(--cer-v107-surface2)!important;border-color:var(--cer-v107-border)!important;color:#eef8ff!important}
body.cer-body .cer-composer .cer-file-main>span,body.cer-body .cer-composer .cer-coming>span{color:var(--cer-v107-bright)!important;font-size:18px!important}
body.cer-body .cer-composer .cer-file-main:hover,body.cer-body .cer-composer .cer-coming:hover{background:var(--cer-v107-hover)!important;border-color:var(--cer-v107-bright)!important}
@media(max-width:700px){body.cer-body .cer-composer-row{row-gap:15px!important}body.cer-body .cer-composer-tools{gap:5px!important}body.cer-body .cer-composer .cer-publish{margin-top:3px!important}body.cer-body .cer-main{padding-bottom:95px!important}}
/* Menu mobile 100% colado nas 3 bordas, sem vazamentos por baixo e ícones maiores. */
@media(max-width:860px){
 body.cer-body .cer-mobile-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:calc(70px + env(safe-area-inset-bottom,0px))!important;border:0!important;border-top:1px solid rgba(111,201,244,.34)!important;border-radius:17px 17px 0 0!important;padding:7px 5px calc(7px + env(safe-area-inset-bottom,0px))!important;background:#0c2338!important;box-shadow:0 -10px 32px rgba(0,0,0,.45)!important;z-index:190!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;isolation:isolate!important}
 body.cer-body .cer-mobile-nav::before{content:"";position:absolute;z-index:-1;inset:0;background:#0c2338;border-radius:inherit}
 body.cer-body .cer-mobile-nav a{min-width:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;min-height:55px!important;border:1px solid rgba(120,201,235,.13)!important;background:#112c44!important;color:#c9e0f0!important;border-radius:11px!important;font-size:20px!important;font-weight:700!important;transition:background .14s,color .14s!important}
 body.cer-body .cer-mobile-nav a b{font-size:10px!important;font-weight:750!important;line-height:1.1!important;color:inherit!important}
 body.cer-body .cer-mobile-nav a>span{font-size:22px!important;line-height:1!important;color:inherit!important}
 body.cer-body .cer-mobile-nav .cer-nav-chat-icon svg{width:22px!important;height:22px!important}
 body.cer-body .cer-mobile-nav a:hover,body.cer-body .cer-mobile-nav a:focus-visible{background:#195a81!important;color:#fff!important;border-color:#4ebce8!important}
 body.cer-body .cer-mobile-nav a.active{background:#1b5679!important;border-color:rgba(102,216,255,.6)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(118,219,255,.15)!important}
 body.cer-body .cer-mobile-nav a.active span{color:#92ecff!important}
 body.cer-body .cer-footer{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
}
/* PWA: mensagem clara e própria da RasBR, só quando o navegador autorizar instalação. */
.cer-pwa-overlay{position:fixed;inset:0;z-index:6000;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(1,8,16,.69);backdrop-filter:blur(8px)}
.cer-pwa-overlay.is-visible{display:flex}
.cer-pwa-card{width:min(360px,100%);padding:25px 22px 20px;text-align:center;background:linear-gradient(145deg,#143a56,#0a1b2d);border:1px solid rgba(105,202,242,.42);border-radius:25px;box-shadow:0 28px 80px rgba(0,0,0,.52);color:#f4fcff;position:relative}
.cer-pwa-card img{display:block;width:74px;height:74px;object-fit:cover;border-radius:20px;margin:0 auto 14px;box-shadow:0 9px 27px rgba(0,0,0,.3)}
.cer-pwa-card h2{font-size:21px;line-height:1.2;margin:0 0 9px;color:#fff}
.cer-pwa-card p{font-size:13px;line-height:1.5;color:#cbdfec;margin:0 0 17px}
.cer-pwa-actions{display:flex;flex-direction:column;gap:9px}
.cer-pwa-install{padding:12px 14px;border:0;border-radius:13px;background:#4fc7ed;color:#062234;font-size:14px;font-weight:850;cursor:pointer}
.cer-pwa-dismiss{padding:10px;background:transparent;border:1px solid rgba(195,224,239,.24);border-radius:12px;color:#d9eaf5;font-weight:750;cursor:pointer}
.cer-pwa-dismiss:hover,.cer-pwa-install:hover{filter:brightness(1.12)}
.cer-pwa-close{position:absolute;top:9px;right:11px;border:0;background:transparent;color:#abc9dc;font-size:24px;cursor:pointer;padding:3px 7px}

/* Conversa em tela inteira no celular: menu inferior não deve cobrir o microfone. */
@media(max-width:860px){body.cer-body:has(.cer-chat-drawer) .cer-mobile-nav{display:none!important}body.cer-body:has(.cer-chat-drawer) .cer-main{padding-bottom:0!important}}


/* ==========================================================
   v1.0.8 — última lapidação do mensageiro, instalador e áudio
   ========================================================== */
/* PWA: anular estilos herdados/terceiros que estavam recolorindo os botões de rosa. */
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-install,
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-install:hover,
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-install:active{
 appearance:none!important;background:linear-gradient(145deg,#204e7f,#15385f)!important;
 border:1px solid #458bbb!important;color:#fff!important;
 border-radius:13px!important;box-shadow:0 5px 22px rgba(8,25,45,.35)!important;
 font-size:14px!important;font-weight:800!important;min-height:48px!important;
 opacity:1!important;text-decoration:none!important;
}
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-install:hover{background:linear-gradient(145deg,#286396,#1c4a75)!important}
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-install:focus-visible,
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-close:focus-visible,
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-dismiss:focus-visible{
 outline:2px solid #6ed3ff!important;outline-offset:3px!important;
}
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-close,
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-close:hover{
 appearance:none!important;background:#173954!important;border:1px solid rgba(106,187,226,.27)!important;
 border-radius:10px!important;color:#eaf6ff!important;min-width:32px!important;min-height:32px!important;
 display:grid!important;place-items:center!important;box-shadow:none!important;padding:0!important;
 line-height:1!important;right:12px!important;top:11px!important;
}
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-dismiss,
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-dismiss:hover{
 appearance:none!important;background:transparent!important;border:0!important;
 box-shadow:none!important;color:#99acbe!important;opacity:.76!important;
 border-radius:10px!important;min-height:37px!important;font-size:12px!important;font-weight:500!important;
}
body.cer-body .cer-pwa-overlay .cer-pwa-card .cer-pwa-dismiss:hover{color:#dbe9f5!important;opacity:1!important}
body.cer-body .cer-pwa-overlay .cer-pwa-card{border-color:rgba(76,161,219,.5)!important;background:linear-gradient(154deg,#112c43,#081b2c)!important}
/* Uma única saída funciona tanto na lista quanto na conversa aberta. */
body.cer-body .cer-chat-layout.cer-chat-drawer{position:fixed!important}
body.cer-body .cer-chat-layout .cer-chat-global-close,
body.cer-body .cer-chat-layout .cer-chat-global-close:hover{
 display:grid!important;position:absolute!important;top:12px!important;right:11px!important;
 left:auto!important;bottom:auto!important;transform:none!important;
 width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;
 place-items:center!important;z-index:110!important;margin:0!important;padding:0!important;
 background:#14344a!important;color:#e5f5ff!important;
 border:1px solid rgba(109,192,228,.29)!important;border-radius:10px!important;
 box-shadow:0 2px 10px rgba(0,0,0,.15)!important;font-size:20px!important;line-height:1!important;
}
body.cer-body .cer-chat-layout .cer-chat-global-close:hover{background:#225a7d!important;color:#fff!important}
body.cer-body .cer-chat-layout .cer-contacts-close,
body.cer-body .cer-chat-layout .cer-chat-head-close{display:none!important}
body.cer-body .cer-chat-head{padding-right:54px!important}
body.cer-body .cer-chat-head .cer-safe-mini{margin-right:8px!important}
body.cer-body .cer-contact-search-top{margin-right:40px!important}
/* Onda + progresso integrados. Cada arquivo começa com desenho próprio;
   ao tocar, o player substitui pelo desenho analisado do áudio quando disponível. */
body.cer-body .cer-voice-note{grid-template-columns:34px minmax(80px,1fr) auto!important;gap:10px!important}
body.cer-body .cer-voice-main{padding:6px 0!important}
body.cer-body .cer-voice-track{display:none!important}
body.cer-body .cer-voice-wave{
 height:32px!important;gap:2px!important;display:flex!important;align-items:center!important;
 opacity:1!important;pointer-events:auto!important;cursor:pointer!important;
 overflow:hidden!important;touch-action:pan-y!important;border-radius:6px!important;
}
body.cer-body .cer-voice-wave i{
 display:block!important;flex:1 1 0!important;min-width:1px!important;width:auto!important;
 max-width:4px!important;border-radius:4px!important;background:#8db5c2!important;
 opacity:.74!important;transition:background-color .12s ease!important;
}
body.cer-body .cer-voice-wave i.is-played{background:#fff!important;opacity:1!important}
body.cer-body .cer-msg:not(.mine) .cer-voice-wave i{background:#8aa9be!important}
body.cer-body .cer-msg:not(.mine) .cer-voice-wave i.is-played{background:#69d8fa!important}
body.cer-body .cer-voice-wave:focus-visible{outline:2px solid #67d3f7!important;outline-offset:4px!important}
body.cer-body .cer-voice-time{font-size:9px!important;opacity:.85!important;color:#e0f4fa!important}
body.cer-body .cer-msg:not(.mine) .cer-voice-time{color:#bfd7e7!important}
/* Controles discretos para excluir texto ou áudio de ambos os lados. */
body.cer-body .cer-chat-messages .cer-msg{position:relative!important;padding:15px 33px 10px 12px!important;min-width:130px!important}
body.cer-body .cer-chat-messages .cer-msg .cer-msg-delete{
 position:absolute!important;top:5px!important;right:5px!important;
 display:grid!important;place-items:center!important;width:25px!important;height:25px!important;
 padding:0!important;background:transparent!important;border:1px solid transparent!important;
 border-radius:8px!important;box-shadow:none!important;color:#a5c9d8!important;
 font-size:18px!important;font-weight:400!important;line-height:1!important;opacity:.72!important;
 cursor:pointer!important;transition:.15s ease!important;
}
body.cer-body .cer-chat-messages .cer-msg .cer-msg-delete:hover,
body.cer-body .cer-chat-messages .cer-msg .cer-msg-delete:focus-visible{
 background:#194969!important;border-color:rgba(140,216,255,.35)!important;color:#fff!important;opacity:1!important;
}
@media(hover:hover){body.cer-body .cer-chat-messages .cer-msg .cer-msg-delete{opacity:.40!important}
 body.cer-body .cer-chat-messages .cer-msg:hover .cer-msg-delete{opacity:1!important}}
@media(max-width:550px){body.cer-body .cer-chat-messages .cer-msg{max-width:95%!important}
 body.cer-body .cer-chat-layout .cer-chat-global-close{right:12px!important;top:11px!important}}
/* Confirmação acessível, sem o visual padrão do navegador. */
.cer-confirm-overlay{position:fixed;inset:0;z-index:9500;display:grid;place-items:center;padding:18px;background:rgba(2,10,19,.76);backdrop-filter:blur(5px)}
.cer-confirm-dialog{width:min(350px,100%);padding:24px 21px 19px;border-radius:19px;background:linear-gradient(160deg,#142d43,#0b1c2d);border:1px solid rgba(100,189,239,.35);color:#f4fbff;box-shadow:0 24px 80px rgba(0,0,0,.54)}
.cer-confirm-dialog h3{font-size:18px;font-weight:850;margin:0 0 9px;color:#fff}
.cer-confirm-dialog p{font-size:13px;line-height:1.5;color:#bed3e1;margin:0 0 18px}
.cer-confirm-actions{display:flex;gap:9px;justify-content:flex-end}
.cer-confirm-actions button{appearance:none;border:1px solid rgba(108,184,223,.3);border-radius:11px;min-height:41px;padding:8px 12px;font-size:12px;font-weight:750;cursor:pointer}
.cer-confirm-actions .cer-confirm-cancel{background:#132b3c;color:#d6ecf8}
.cer-confirm-actions .cer-confirm-delete{background:#1d557d;color:#fff;border-color:#3a82ad}
.cer-confirm-actions button:hover{filter:brightness(1.2)}
.cer-confirm-actions button:focus-visible{outline:2px solid #68d4fd;outline-offset:2px}
.cer-confirm-dialog .cer-confirm-error{margin:12px 0 0;color:#ffcccc;font-size:12px}

/* Turbina Max: neste acabamento, os detalhes também são azuis, sem rosa em controles ou cartões. */
body.cer-theme-turbina-max .cer-block-title h2,body.cer-theme-turbina-max .cer-school-info h1{filter:drop-shadow(0 1px 8px rgba(87,163,239,.15))!important}
body.cer-theme-turbina-max .cer-school-profilebar{border-bottom:2px solid rgba(103,181,248,.30)!important}
body.cer-theme-turbina-max .cer-story-special{background:radial-gradient(circle at 95% 0,rgba(56,150,219,.20),transparent 44%),linear-gradient(145deg,#203760,#10264b)!important}
