#ea-chat-launch{position:fixed;right:22px;bottom:86px;z-index:1200;width:54px;height:54px;border:0;border-radius:50%;background:linear-gradient(135deg,#5368df,#3549b7);color:#fff;box-shadow:0 8px 24px #25378344;font-size:23px;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}#ea-chat-launch:hover{transform:translateY(-2px);box-shadow:0 12px 28px #25378355}#ea-chat-count{position:absolute;top:-3px;right:-3px;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:#d8434f;color:#fff;font-size:11px;line-height:19px;font-weight:700}#ea-chat-panel{position:fixed;z-index:1201;right:18px;bottom:82px;width:min(410px,calc(100vw - 36px));height:min(700px,calc(100dvh - 110px));display:none;grid-template-rows:auto auto minmax(0,1fr);background:#f5f7fc;border:1px solid #dce3f0;border-radius:18px;box-shadow:0 22px 70px #15213e35;overflow:hidden;color:#17243d;font:14px/1.45 system-ui,sans-serif}#ea-chat-panel.ea-open{display:grid}#ea-chat-panel.ea-expanded{width:min(820px,calc(100vw - 36px));height:min(860px,calc(100dvh - 110px))}.ea-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:linear-gradient(120deg,#152544,#243e70);color:#fff}.ea-chat-head h2{font-size:17px;margin:0}.ea-chat-head p{font-size:10px;margin:3px 0 0;color:#d0daed;max-width:245px}.ea-chat-head-actions{display:flex;gap:6px;flex:none}.ea-chat-head button{width:34px;height:34px;border:1px solid #ffffff35;border-radius:9px;background:#ffffff12;color:#fff;cursor:pointer;font-size:18px}.ea-chat-tabs{display:flex;gap:5px;padding:9px 10px;background:#fff;border-bottom:1px solid #e5eaf3;overflow-x:auto}.ea-chat-tabs button{white-space:nowrap;border:0;background:#eff2fa;color:#425372;border-radius:8px;padding:7px 9px;cursor:pointer;font:600 12px/1.2 system-ui,sans-serif}.ea-chat-tabs button[aria-current=true]{background:#e6eaff;color:#3549b7}
.ea-chat-body {
  min-height: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  background: #fff;
}
.ea-chat-list{overflow:auto;padding:8px}.ea-chat-row{display:flex;width:100%;align-items:center;gap:10px;text-align:left;padding:10px;border:0;border-radius:10px;background:transparent;color:inherit;cursor:pointer}.ea-chat-row:hover,.ea-chat-row[aria-current=true]{background:#eef2fb}.ea-chat-create{background:#f1f3ff;color:#394cba;font-weight:700;margin-bottom:8px}.ea-chat-avatar{flex:none;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#dfe6ff;color:#4055bd;font-weight:700;position:relative}.ea-chat-online{position:absolute;right:0;bottom:0;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#36a878}.ea-chat-row-main{min-width:0;flex:1}.ea-chat-row-title{display:block;font-weight:650}.ea-chat-row-sub{display:block;font-size:12px;color:#73809a;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ea-chat-badge{background:#5366d9;color:#fff;border-radius:99px;padding:2px 7px;font-size:11px}.ea-chat-section-label{display:block;padding:12px 10px 6px;color:#687793;font-size:11px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}
.ea-chat-conversation {
  display: none;
  min-height: 0;
  min-width: 0;
  grid-template:
    "header" auto
    "pins" auto
    "messages" minmax(0, 1fr)
    "composer" auto
    / minmax(0, 1fr);
}
/* Nomear as áreas mantém o compositor na última linha mesmo sem fixações. */
.ea-chat-subhead { grid-area: header; }
.ea-chat-pinned {
  grid-area: pins;
  max-height: min(8rem, 18dvh);
  overflow: auto;
  overflow-wrap: anywhere;
}
.ea-chat-messages { grid-area: messages; min-height: 0; }
.ea-chat-composer { grid-area: composer; margin: 0; }
.ea-conversation .ea-chat-list{display:none}.ea-conversation .ea-chat-conversation{display:grid}.ea-chat-subhead{display:flex;align-items:center;gap:7px;padding:8px 10px;border-bottom:1px solid #e8edf5;background:#fff}.ea-chat-back{border:0;background:transparent;font-size:22px;cursor:pointer;color:#485a78}.ea-chat-subhead strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ea-chat-subhead button:not(.ea-chat-back){border:1px solid #e3e8f1;border-radius:7px;background:white;color:#53617d;cursor:pointer;padding:6px 8px;font-size:11px}.ea-chat-pinned:empty{display:none}.ea-chat-pin{padding:7px 12px;background:#fff6db;color:#6f5313;border-bottom:1px solid #f1dfaa;font-size:12px}.ea-chat-messages{overflow:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:linear-gradient(#fff,#fbfcff);scroll-behavior:smooth}.ea-chat-loadolder{align-self:center;border:1px solid #dce3f0;background:#fff;color:#53617d;border-radius:8px;padding:7px 11px;cursor:pointer}.ea-chat-msg{max-width:86%;padding:9px 11px;border-radius:13px;background:#eff2f8;align-self:flex-start;overflow-wrap:anywhere;box-shadow:0 1px 2px #15213e0a}.ea-chat-msg.ea-mine{align-self:flex-end;background:#e5eaff}.ea-chat-msg-author{font-size:11px;color:#4c5c79;font-weight:700}.ea-chat-msg-text{white-space:pre-wrap}.ea-chat-msg-meta{font-size:10px;color:#77839b;text-align:right;margin-top:4px}.ea-chat-msg-tools{display:flex;gap:4px;justify-content:flex-end}.ea-chat-msg-tools button,.ea-chat-msg-tools button:focus-visible{border:0;background:transparent;color:#697793;cursor:pointer;padding:3px 5px;border-radius:5px}.ea-chat-msg-tools button:hover{background:#dce4f5;color:#3249b4}.ea-chat-reply{border-left:2px solid #697be0;padding-left:7px;color:#62708d;font-size:11px;margin-bottom:4px}.ea-chat-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}.ea-chat-reaction{font-size:11px;background:#fff;border-radius:99px;padding:2px 6px}.ea-chat-composer{display:flex;gap:7px;padding:10px;border-top:1px solid #e5eaf3;background:#fff}.ea-chat-composer textarea{min-width:0;flex:1;resize:none;max-height:100px;border:1px solid #dbe2ef;border-radius:10px;padding:9px;font:inherit}.ea-chat-composer textarea:focus,.ea-chat-search:focus,.ea-chat-modal input:focus,.ea-chat-modal textarea:focus,.ea-chat-modal select:focus{outline:0;border-color:#687be1;box-shadow:0 0 0 3px #5468d42e}.ea-chat-composer button,.ea-chat-primary{border:0;border-radius:10px;background:#4f63d9;color:white;padding:8px 14px;font-weight:700;cursor:pointer}.ea-chat-composer button:disabled,.ea-chat-primary:disabled{opacity:.55;cursor:not-allowed}.ea-chat-search{box-sizing:border-box;width:100%;padding:9px;border:1px solid #dbe2ef;border-radius:9px;margin-bottom:8px;font:inherit}.ea-chat-empty{padding:24px 14px;color:#77839a;text-align:center}.ea-chat-toast{position:fixed;z-index:1202;right:24px;bottom:148px;background:#172744;color:white;padding:10px 14px;border-radius:10px;box-shadow:0 8px 24px #0003}.ea-chat-modal{width:min(520px,calc(100vw - 28px));max-height:min(82dvh,700px);padding:0;border:1px solid #dce3f0;border-radius:16px;box-shadow:0 24px 80px #15213e40;color:#17243d}.ea-chat-modal::backdrop{background:#101a2b80;backdrop-filter:blur(2px)}.ea-chat-modal form{padding:20px;max-height:inherit;overflow:auto}.ea-chat-modal h2{margin:0 0 14px;font-size:18px}.ea-chat-modal p{color:#6f7d96}.ea-chat-help{font-size:12px;color:#71809a}.ea-chat-check{display:flex;align-items:center;gap:6px;padding:7px 2px;border-bottom:1px solid #eef1f6}.ea-chat-admin-label{margin-left:auto;color:#687793;font-size:11px}.ea-chat-modal-actions{display:flex;justify-content:flex-end;gap:8px;position:sticky;bottom:-20px;margin:16px -20px -20px;padding:12px 20px;background:#fff;border-top:1px solid #e8edf5}.ea-chat-modal-actions button,.ea-chat-small{border:1px solid #dce3f0;background:#fff;color:#425372;border-radius:8px;padding:8px 12px;cursor:pointer}.ea-chat-modal-actions .ea-chat-primary{border:0;background:#4f63d9;color:white}.ea-chat-edit{box-sizing:border-box;width:100%;min-height:110px;padding:10px;border:1px solid #dbe2ef;border-radius:9px;font:inherit}.ea-chat-member{display:flex;align-items:center;gap:6px;padding:8px 0;border-bottom:1px solid #eef1f6;flex-wrap:wrap}.ea-chat-member span{flex:1;min-width:140px}.ea-chat-small{padding:6px 8px;font-size:11px}.ea-chat-danger{color:#ad3341}.ea-chat-admin-retention{padding:10px;border-radius:10px;background:#f5f7fc}.ea-chat-admin-retention input{width:100%;box-sizing:border-box;padding:8px;border:1px solid #dbe2ef;border-radius:8px}.ea-chat-admin-retention button{margin-top:8px}.ea-chat-admin-group{margin:8px 0;padding:10px;border:1px solid #e5eaf3;border-radius:10px}.ea-chat-admin-group>strong{display:block;margin-bottom:5px}
#ea-chat-panel button:focus-visible,#ea-chat-launch:focus-visible{outline:3px solid #6177e8;outline-offset:2px}@media(max-width:640px){#ea-chat-launch{right:14px;bottom:78px;width:50px;height:50px}#ea-chat-panel,#ea-chat-panel.ea-expanded{inset:0;width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}#ea-chat-panel.ea-open{bottom:0;right:0}.ea-chat-head{padding-top:max(14px,env(safe-area-inset-top))}.ea-chat-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}.ea-chat-modal{width:calc(100vw - 20px)}}@media(prefers-reduced-motion:reduce){#ea-chat-launch,.ea-chat-row,.ea-chat-messages{transition:none;scroll-behavior:auto}}

/* Chat: identidade EntreAtos, com leitura confortável e envio sempre acessível. */
#ea-chat-panel{width:min(440px,calc(100vw - 36px));height:min(720px,calc(100dvh - 110px));border:1px solid #cad8ed;border-radius:20px;background:#f3f6fc;box-shadow:0 24px 64px rgba(14,35,72,.28),0 4px 14px rgba(14,35,72,.12);font:14px/1.45 system-ui,sans-serif}
#ea-chat-panel.ea-expanded{width:min(820px,calc(100vw - 36px));height:min(860px,calc(100dvh - 110px))}
#ea-chat-panel .ea-chat-head{width:100%;max-width:none;margin:0;padding:16px 18px;background:linear-gradient(120deg,#102b55,#1b4888 70%,#315ca5);border:0;color:#fff}
#ea-chat-panel .ea-chat-head h2{color:#fff;font-size:18px;letter-spacing:-.02em;line-height:1.2;margin:0}#ea-chat-panel .ea-chat-head p{color:#dbe8fa;font-size:10px;line-height:1.35;margin:4px 0 0}
#ea-chat-panel .ea-chat-head button{display:grid;place-items:center;width:34px;height:34px;padding:0;min-height:0;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:10px;box-shadow:none}#ea-chat-panel .ea-chat-head button:hover{background:rgba(255,255,255,.23)}
#ea-chat-panel .ea-chat-tabs{width:100%;margin:0;padding:9px 10px;gap:5px;background:#eef3fb;border-bottom:1px solid #dbe5f2;box-shadow:inset 0 -1px #fff}#ea-chat-panel .ea-chat-tabs button{min-height:34px;padding:7px 10px;border:1px solid transparent;background:transparent;color:#526985;border-radius:9px;box-shadow:none;font:600 12px/1.2 system-ui,sans-serif}#ea-chat-panel .ea-chat-tabs button:hover{background:#e1eafa;color:#264c8d}#ea-chat-panel .ea-chat-tabs button[aria-current=true]{background:#fff;color:#2854a4;border-color:#d5e1f3;box-shadow:0 2px 7px rgba(30,62,113,.09)}
#ea-chat-panel .ea-chat-body{background:#f7f9fd}#ea-chat-panel .ea-chat-list{padding:10px;scrollbar-width:thin;scrollbar-color:#b7c8e1 transparent}#ea-chat-panel .ea-chat-row{margin:2px 0;padding:11px 10px;border:1px solid transparent;border-radius:12px;background:transparent;color:#1b2f50;box-shadow:none}#ea-chat-panel .ea-chat-row:hover,#ea-chat-panel .ea-chat-row[aria-current=true]{background:#eaf1fc;border-color:#d5e3f5}#ea-chat-panel .ea-chat-create{background:#e6efff;border-color:#d3e1f8;color:#254e9c}#ea-chat-panel .ea-chat-avatar{width:42px;height:42px;background:linear-gradient(145deg,#d7e8ff,#eaf1ff);color:#2854a0;box-shadow:inset 0 0 0 1px #c8d9f2;font-size:15px}#ea-chat-panel .ea-chat-row-title{font-size:13px;color:#203858}#ea-chat-panel .ea-chat-row-sub{font-size:12px;color:#667b98}#ea-chat-panel .ea-chat-section-label{color:#647d9f;font-size:10px;letter-spacing:.08em}#ea-chat-panel .ea-chat-badge{background:#315cbb;color:#fff}
#ea-chat-panel .ea-chat-subhead{width:100%;padding:10px 12px;background:#fff;border-bottom:1px solid #dae5f3;gap:7px}#ea-chat-panel .ea-chat-subhead strong{color:#213c65;font-size:14px}#ea-chat-panel .ea-chat-back{min-width:32px;min-height:34px;padding:0;color:#345889;border-radius:9px}#ea-chat-panel .ea-chat-subhead button:not(.ea-chat-back){min-height:32px;padding:6px 8px;background:#f3f6fb;border:1px solid #dce6f3;color:#385779;border-radius:8px;box-shadow:none}
#ea-chat-panel .ea-chat-messages{padding:16px 14px;gap:10px;background:radial-gradient(circle at 90% 0,rgba(179,203,238,.28),transparent 45%),linear-gradient(160deg,#eff4fb,#e9f0f9);scrollbar-width:thin;scrollbar-color:#b7c8e1 transparent}
#ea-chat-panel .ea-chat-msg{max-width:min(86%,580px);padding:9px 12px;border:1px solid #dde7f4;border-radius:5px 14px 14px 14px;background:#fff;color:#1b304e;box-shadow:0 2px 7px rgba(24,54,95,.08)}#ea-chat-panel .ea-chat-msg.ea-mine{border-color:#c2d6f4;border-radius:14px 5px 14px 14px;background:#dceaff;color:#17395f}#ea-chat-panel .ea-chat-msg-author{color:#315ca5}#ea-chat-panel .ea-chat-msg-meta{color:#607897}#ea-chat-panel .ea-chat-reply{border-color:#5278c4;color:#446287}#ea-chat-panel .ea-chat-msg-tools button{min-height:26px;padding:3px 5px;background:transparent;border:0;color:#536e92;box-shadow:none}#ea-chat-panel .ea-chat-msg-tools button:hover{background:#e1ebf9;color:#254c91}
#ea-chat-panel .ea-chat-composer{align-items:flex-end;padding:10px 12px;background:#fff;border-top:1px solid #d8e4f2;gap:8px}#ea-chat-panel .ea-chat-composer textarea{min-height:42px;max-height:110px;padding:10px 12px;border:1px solid #cfdced;border-radius:12px;background:#f7faff;color:#1b304e;font:inherit;line-height:1.4}#ea-chat-panel .ea-chat-composer button{min-height:42px;padding:9px 16px;border-radius:11px;background:linear-gradient(135deg,#416ed2,#3155b1);color:#fff;box-shadow:0 3px 10px rgba(49,85,177,.22)}#ea-chat-panel .ea-chat-composer button:hover:not(:disabled){background:#294f9f}
#ea-chat-launch{background:linear-gradient(145deg,#3f6ed1,#284a9e);box-shadow:0 8px 24px rgba(35,76,150,.32)}.ea-chat-modal{border-color:#cfdbed;border-radius:17px}.ea-chat-modal h2{color:#203e6a}.ea-chat-modal-actions .ea-chat-primary{background:#315ab8}
@media(max-width:640px){#ea-chat-panel,#ea-chat-panel.ea-expanded{inset:0;width:100vw;height:100dvh;max-height:none;border:0;border-radius:0}#ea-chat-panel .ea-chat-head{padding-top:max(14px,env(safe-area-inset-top))}#ea-chat-panel .ea-chat-composer{padding-bottom:max(10px,env(safe-area-inset-bottom))}#ea-chat-panel .ea-chat-subhead{flex-wrap:wrap}#ea-chat-panel .ea-chat-subhead strong{flex:1 1 55%;min-width:0}}
@media(prefers-reduced-motion:reduce){#ea-chat-panel *{scroll-behavior:auto!important;transition:none!important}}

#ea-chat-panel .ea-chat-row-sub { color: #4a5e7b; }
