.edge-widget{position:fixed;right:22px;bottom:22px;z-index:9998;font-family:inherit}
.edge-toggle{border:0;background:transparent;padding:0;cursor:pointer;display:block;filter:none}
.edge-avatar-wrap{position:relative;display:block;width:72px;height:72px;border-radius:50%;background:#fff;border:2px solid #dbeafe;box-shadow:0 12px 34px rgba(15,23,42,.2);transition:transform .18s ease,box-shadow .18s ease}
.edge-toggle:hover .edge-avatar-wrap{transform:translateY(-2px);box-shadow:0 18px 42px rgba(15,23,42,.24)}
.edge-avatar{display:block;object-fit:contain}
.edge-avatar-toggle{width:72px;height:72px;border-radius:50%;padding:3px}
.edge-online-light{position:absolute;right:2px;bottom:4px;width:16px;height:16px;border-radius:50%;background:#22c55e;border:3px solid #fff;box-shadow:0 0 0 3px rgba(34,197,94,.16),0 0 12px rgba(34,197,94,.65)}
.edge-panel{position:absolute;right:0;bottom:86px;width:min(400px,calc(100vw - 28px));height:min(600px,76vh);background:#fff;border:1px solid #dbe5f1;border-radius:22px;box-shadow:0 26px 80px rgba(15,23,42,.22);overflow:hidden;display:flex;flex-direction:column}
.edge-panel[hidden]{display:none}
.edge-head{padding:12px 14px;background:linear-gradient(135deg,#0c2c58,#1769e8);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px}
.edge-head-identity{display:flex;align-items:center;gap:10px;min-width:0}
.edge-avatar-head{width:54px;height:54px;border-radius:16px;background:rgba(255,255,255,.96);padding:3px;flex:none}
.edge-head strong{font-size:17px;display:block}
.edge-head span{display:block;font-size:12px;opacity:.9;margin-top:1px}
.edge-head small{display:block;font-size:10px;opacity:.72;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:250px}
.edge-close{border:0;background:rgba(255,255,255,.14);color:#fff;width:34px;height:34px;border-radius:10px;cursor:pointer;font-size:20px;flex:none}
.edge-messages{padding:16px;overflow:auto;display:flex;flex-direction:column;gap:11px;flex:1;background:#f7f9fc}
.edge-msg{max-width:88%;padding:11px 13px;border-radius:15px;font-size:14px;line-height:1.5;box-shadow:0 1px 0 rgba(15,23,42,.04)}
.edge-msg p{margin:0;white-space:pre-wrap}
.edge-msg.bot{align-self:flex-start;background:#fff;border:1px solid #e1e8f2;color:#172033;border-bottom-left-radius:5px}
.edge-msg.user{align-self:flex-end;background:#1769e8;color:#fff;border-bottom-right-radius:5px}
.edge-msg.agent{align-self:flex-start;background:#ecfdf5;border:1px solid #bbf7d0;color:#14532d;border-bottom-left-radius:5px}
.edge-msg.system{align-self:center;max-width:96%;background:transparent;color:#64748b;box-shadow:none;text-align:center;font-size:12px;padding:3px 8px}
.edge-msg a,.edge-action{display:inline-flex;align-items:center;justify-content:center;margin-top:9px;color:#0b61d8;font-weight:850;text-decoration:none;border:1px solid #bfdbfe;background:#eff6ff;border-radius:10px;padding:8px 10px;cursor:pointer;font:inherit}
.edge-msg a:hover,.edge-action:hover{background:#dbeafe}
.edge-form{padding:12px;border-top:1px solid #e2e8f0;background:#fff;display:flex;gap:8px}
.edge-form input{min-width:0;flex:1;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;font:inherit;outline:none}
.edge-form input:focus{border-color:#1769e8;box-shadow:0 0 0 3px rgba(23,105,232,.12)}
.edge-form button{border:0;border-radius:12px;background:#1769e8;color:#fff;font-weight:900;padding:0 14px;cursor:pointer}
.edge-form button:disabled,.edge-form input:disabled{opacity:.65;cursor:not-allowed}
.edge-note{padding:0 14px 12px;background:#fff;color:#64748b;font-size:10.5px}
.edge-note a{color:#0b61d8}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:640px){
 .edge-widget{right:12px;bottom:12px}
 .edge-avatar-wrap,.edge-avatar-toggle{width:64px;height:64px}
 .edge-online-light{width:15px;height:15px}
 .edge-panel{position:fixed;left:10px;right:10px;bottom:84px;width:auto;height:min(650px,74vh);border-radius:20px}
 .edge-head small{max-width:190px}
}

/* 2026-08-25 — Launcher EDGE sans effet carré */
.edge-toggle{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:0;
}
.edge-avatar-wrap{
  position:relative!important;
  display:block!important;
  width:76px!important;
  height:76px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.edge-avatar-toggle{
  display:block!important;
  width:76px!important;
  height:76px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  object-fit:contain!important;
  filter:none!important;
}
.edge-toggle:hover .edge-avatar-wrap{transform:translateY(-2px)!important;box-shadow:none!important}
.edge-online-light{
  right:1px!important;
  bottom:5px!important;
  width:17px!important;
  height:17px!important;
  border-radius:50%!important;
  background:#22c55e!important;
  border:3px solid #fff!important;
  box-shadow:0 0 0 3px rgba(34,197,94,.16),0 0 13px rgba(34,197,94,.72)!important;
}
@media(max-width:640px){
  .edge-avatar-wrap,.edge-avatar-toggle{width:68px!important;height:68px!important}
}
