.edge-chat-root{position:fixed;right:20px;bottom:22px;z-index:99990;font-family:Inter,system-ui,Arial,sans-serif;color:#f8fafc;font-size:14px}.ec-toggle{display:flex;gap:8px;align-items:center;background:#22d3ee;color:#07111f;border:0;border-radius:999px;padding:13px 18px;font-weight:700;font-size:15px;font-family:inherit;box-shadow:0 12px 28px #0006;cursor:pointer}.ec-panel{position:absolute;right:0;bottom:65px;width:min(370px,calc(100vw - 24px));height:min(540px,calc(100dvh - 115px));display:flex;flex-direction:column;background:#0b1729;border:1px solid #355064;border-radius:20px;box-shadow:0 20px 70px #0009;overflow:hidden}.ec-panel[hidden],.ec-start[hidden],.ec-send[hidden]{display:none!important}.ec-panel header{padding:15px 18px;background:#11273b;display:flex;justify-content:space-between;align-items:center}.ec-panel header b,.ec-panel header small{display:block}.ec-panel header small{color:#c5d5df;font-size:12px;margin-top:3px}.ec-close{font-size:26px;color:white;background:none;border:0;cursor:pointer}.ec-messages{flex:1;overflow:auto;min-height:70px;padding:12px;display:flex;flex-direction:column;gap:9px}.ec-msg{max-width:90%;padding:10px 12px;border-radius:12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}.ec-admin{align-self:flex-start;background:#22384e}.ec-visitor{align-self:flex-end;background:#116e83}.ec-start,.ec-send{padding:12px;display:flex;flex-direction:column;gap:10px}.ec-start label{display:block;font-size:13px;color:#d9e7ee}.ec-start input,.ec-start select,.ec-send textarea{width:100%;box-sizing:border-box;margin-top:6px;border:1px solid #456078;border-radius:10px;padding:11px;color:#fff;background:#13283c;min-height:40px;font:inherit}.ec-start button,.ec-send button{border:0;border-radius:10px;padding:12px;background:#22d3ee;color:#07111f;font-weight:750;cursor:pointer}.ec-status{padding:0 12px;margin:0;color:#d5e2ed;font-size:12px}.ec-note{padding:10px 12px;color:#a9bdc8;font-size:11px}.ec-trap{position:absolute!important;left:-10000px!important;opacity:0!important} @media(max-width:1024px){.edge-chat-root{right:12px;bottom:74px}.ec-toggle{padding:12px;border-radius:50%;width:48px;height:48px;justify-content:center}.ec-toggle span{display:none}.ec-panel{bottom:60px;max-height:calc(100dvh - 165px)}}

.ec-start{overflow-y:auto;min-height:0}.ec-start .ec-consent{display:flex;align-items:flex-start;gap:8px;font-size:11px;line-height:1.4}.ec-start .ec-consent input{width:auto;min-height:auto;margin:2px 0 0;flex:0 0 auto;accent-color:#22d3ee}
/* v1.2: delayed invitation and question-first flow */
.ec-invite{position:absolute;right:0;bottom:68px;width:min(280px,calc(100vw - 28px));padding:15px 34px 15px 16px;border-radius:16px;background:#11273b;border:1px solid #355064;box-shadow:0 16px 40px #0007;box-sizing:border-box}
.ec-invite[hidden],.ec-compose[hidden]{display:none!important}.ec-invite strong,.ec-invite span{display:block}.ec-invite strong{color:#22d3ee;margin-bottom:5px}.ec-invite span{font-size:13px;line-height:1.5}.ec-invite-open{margin-top:10px;background:#22d3ee;border:0;border-radius:9px;padding:7px 12px;color:#07111f;font-weight:700;cursor:pointer}.ec-invite-close{position:absolute;right:7px;top:5px;border:0;background:transparent;color:#fff;font-size:23px;cursor:pointer}
.ec-compose{padding:14px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;min-height:0}.ec-compose p,.ec-start p{margin:0;color:#d5e2ed;line-height:1.5}.ec-compose label{font-size:13px;color:#cfdee8}.ec-compose textarea{width:100%;box-sizing:border-box;resize:vertical;border:1px solid #456078;border-radius:10px;padding:11px;color:#fff;background:#13283c;font:inherit}.ec-compose .ec-next{border:0;border-radius:10px;background:#22d3ee;color:#07111f;font-weight:800;padding:12px;cursor:pointer}.ec-start h3{margin:0;color:#fff;font-size:18px}.ec-start p{font-size:12px}.ec-actions{display:flex;gap:8px}.ec-actions button:first-child{background:#243e51;color:#fff;flex:0 0 75px}.ec-actions button:last-child{flex:1}.ec-panel .ec-messages:empty{flex:0 0 0;min-height:0;padding:0}.ec-panel .ec-send[hidden]~.ec-status{margin-top:auto}
@media(max-width:1024px){.ec-invite{bottom:60px}.ec-panel{height:min(540px,calc(100dvh - 165px))}}

/* Elena Dimidova identity in the invitation and the chat header. */
.ec-chat-person,.ec-invite-person{display:flex;align-items:center;gap:10px;min-width:0}
.ec-chat-person img,.ec-invite-person img{flex:0 0 auto;width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:center 28%;border:2px solid #22d3ee;background:#20354b}
.ec-chat-person b,.ec-invite-person strong{display:block;color:#22d3ee;font-size:14px;line-height:1.25;margin:0}
.ec-chat-person small,.ec-invite-person small{display:block;color:#c5d5df;font-size:10px;line-height:1.3;margin-top:4px;white-space:normal}
.ec-invite-person{margin-bottom:10px}
.ec-invite-person img{width:48px;height:48px}
.ec-invite-person strong{margin:0}
.ec-panel header .ec-chat-person{flex:1}
.ec-panel header .ec-close{flex:0 0 auto;margin-left:8px}
@media(max-width:400px){.ec-chat-person small{font-size:9px}.ec-panel header{padding:12px}.ec-chat-person img{width:40px;height:40px}}

/* v1.5.1 — tidy, legible chat launcher on phones */
.ec-toggle-icon{display:block;flex:0 0 auto;width:19px;height:19px}
@media (max-width:1024px){
  .edge-chat-root{right:12px;bottom:74px}
  .ec-toggle{width:auto;min-width:0;height:44px;padding:0 15px;gap:9px;border-radius:999px;font-size:13px;font-weight:750;line-height:1.1;box-shadow:0 7px 20px rgba(0,0,0,.32);white-space:nowrap}
  .ec-toggle span{display:inline!important}
  .ec-toggle-icon{width:18px;height:18px}
  .ec-panel{bottom:55px}
  .ec-invite{bottom:55px}
}
@media (max-width:380px){.ec-toggle{height:42px;padding:0 12px;font-size:12px;gap:7px}}
