#nukleoChatRoot{position:fixed;right:22px;bottom:22px;z-index:1200;font-family:inherit;color:#102a43}
#nukleoChatLauncher{position:relative;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#0e7490,#0f766e);color:#fff;box-shadow:0 10px 28px #0b253844;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
#nukleoChatLauncher:hover{transform:translateY(-2px);box-shadow:0 14px 30px #0b253855}
#nukleoChatLauncher svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#nukleoChatBadge{position:absolute;right:-2px;top:-2px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:none;align-items:center;justify-content:center;background:#b4233d;color:#fff;font-size:11px;font-weight:800;border:2px solid #fff}
#nukleoChatPanel{position:absolute;right:0;bottom:72px;width:360px;height:min(490px,calc(100vh - 110px));display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d7e2ec;border-radius:18px;box-shadow:0 22px 65px #0b253833}
#nukleoChatPanel[hidden]{display:none}
.nukleo-chat-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;background:linear-gradient(120deg,#0b2548,#12616b);color:#fff}
.nukleo-chat-head h2{font-size:15px;margin:0;font-weight:750}
.nukleo-chat-head p{font-size:11px;margin:4px 0 0;color:#d9edf0}
.nukleo-chat-head-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.nukleo-chat-notifications{width:32px;height:32px;padding:0;display:grid;place-items:center;border:1px solid #ffffff35;border-radius:9px;background:#ffffff20;color:#fff}
.nukleo-chat-notifications svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nukleo-chat-notifications.is-enabled{background:#ffffff3a;color:#b8f3d9}
.nukleo-chat-sound{width:32px;height:32px;padding:0;display:grid;place-items:center;border:1px solid #ffffff35;border-radius:9px;background:#ffffff20;color:#fff;cursor:pointer}
.nukleo-chat-sound svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nukleo-chat-sound.is-enabled{background:#ffffff3a;color:#b8f3d9}
.nukleo-chat-minimize,.nukleo-chat-close{width:32px;height:32px;padding:0;display:grid;place-items:center;border:1px solid #ffffff35;border-radius:9px;background:#ffffff20;color:#fff;font-size:20px;line-height:1}
.nukleo-chat-minimize:hover,.nukleo-chat-close:hover{background:#ffffff35}
.nukleo-chat-minimize span{font-size:25px;line-height:22px;transform:translateY(-3px)}
#nukleoChatPanel.is-minimized{height:58px;min-height:58px}
#nukleoChatPanel.is-minimized .nukleo-chat-head{min-height:58px;padding-top:9px;padding-bottom:9px}
#nukleoChatPanel.is-minimized .nukleo-chat-head p,#nukleoChatPanel.is-minimized .nukleo-chat-messages,#nukleoChatPanel.is-minimized .nukleo-chat-status,#nukleoChatPanel.is-minimized .nukleo-chat-compose{display:none}
.nukleo-chat-toast{position:absolute;right:0;bottom:72px;width:min(320px,calc(100vw - 34px));display:flex;align-items:center;gap:11px;padding:12px;text-align:left;border:1px solid #d7e2ec;border-radius:15px;background:#fff;color:#102a43;box-shadow:0 14px 38px #0b253833;animation:nukleo-chat-toast-in .2s ease-out both}
.nukleo-chat-toast[hidden]{display:none}
.nukleo-chat-toast-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:12px;background:#e8f5f2;color:#12616b;font-size:17px}
.nukleo-chat-toast-copy{min-width:0;display:grid;gap:2px}
.nukleo-chat-toast-copy strong,.nukleo-chat-toast-body{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nukleo-chat-toast-copy strong{font-size:12px;color:#12616b}
.nukleo-chat-toast-body{font-size:12px;color:#203449}
.nukleo-chat-toast-copy small{font-size:10px;color:#718296}
#nukleoChatRoot.is-minimized .nukleo-chat-toast{bottom:138px}
@keyframes nukleo-chat-toast-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.nukleo-chat-messages{flex:1;overflow:auto;padding:14px;background:#f4f8fa;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.nukleo-chat-empty{margin:auto;text-align:center;max-width:230px;color:#607387;font-size:13px;line-height:1.5}
.nukleo-chat-msg{max-width:86%;align-self:flex-start;padding:9px 11px;border-radius:13px 13px 13px 4px;background:#fff;border:1px solid #e0e8ef;box-shadow:0 2px 6px #17324d0b;overflow-wrap:anywhere}
.nukleo-chat-msg.mine{align-self:flex-end;border-color:#c4e4df;background:#e9f6f3;border-radius:13px 13px 4px 13px}
.nukleo-chat-meta{display:flex;justify-content:space-between;gap:14px;align-items:baseline;margin-bottom:4px}
.nukleo-chat-name{font-size:11px;font-weight:750;color:#12616b}
.nukleo-chat-time{font-size:10px;color:#8292a3;white-space:nowrap}
.nukleo-chat-body{font-size:13px;line-height:1.45;white-space:pre-wrap;word-break:break-word;color:#203449}
.nukleo-chat-status{min-height:18px;padding:2px 12px 0;color:#a22b42;font-size:11px}
.nukleo-chat-compose{padding:10px 12px 12px;border-top:1px solid #e5edf3;background:#fff}
.nukleo-chat-compose form{display:flex;gap:8px;align-items:flex-end}
.nukleo-chat-compose textarea{resize:none;min-height:42px;max-height:100px;margin:0;padding:10px 11px;border-radius:12px;font-size:13px;line-height:1.35}
.nukleo-chat-send{width:42px;height:42px;flex:0 0 42px;padding:0;display:grid;place-items:center;border-radius:12px;background:#12616b;color:#fff}
.nukleo-chat-send:disabled{opacity:.55;cursor:wait}
.nukleo-chat-send svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:520px){#nukleoChatRoot{right:12px;bottom:12px}#nukleoChatPanel{position:fixed;right:12px;bottom:82px;width:calc(100vw - 24px);height:min(72vh,520px)}#nukleoChatLauncher{width:54px;height:54px}}
@media(prefers-reduced-motion:reduce){#nukleoChatLauncher{transition:none}}
.nukleo-chat-recipient-label{display:block;margin:0 0 3px;color:#52677c;font-size:10px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.nukleo-chat-compose select{width:100%;margin:0 0 8px;padding:8px 10px;border:1px solid #d9e4ec;border-radius:9px;background:#f8fafc;color:#183247;font:inherit;font-size:12px}
.nukleo-chat-recipient-tag{margin:-1px 0 5px;color:#708498;font-size:9px;font-weight:700;letter-spacing:.02em}
/* Legibilidad y aviso visible al llegar mensajes */
.nukleo-chat-msg{padding:11px 13px}
.nukleo-chat-body{font-size:14px;line-height:1.55}
.nukleo-chat-name{font-size:12px}
.nukleo-chat-time{font-size:11px}
#nukleoChatLauncher.has-unread{box-shadow:0 0 0 4px rgba(190,45,64,.18),0 10px 28px #0b253844}
#nukleoChatLauncher.message-arrival svg{animation:nukleo-chat-arrival .55s cubic-bezier(.2,.8,.2,1)}
#nukleoChatLauncher.has-unread::after{content:"";position:absolute;left:3px;top:3px;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#f04452;box-shadow:0 0 0 0 rgba(240,68,82,.6);animation:nukleo-chat-notice-pulse 1.8s ease-out infinite}
@keyframes nukleo-chat-arrival{0%,100%{transform:translateY(0) scale(1)}35%{transform:translateY(-4px) scale(1.14)}70%{transform:translateY(1px) scale(.96)}}
@keyframes nukleo-chat-notice-pulse{0%{box-shadow:0 0 0 0 rgba(240,68,82,.55)}75%,100%{box-shadow:0 0 0 8px rgba(240,68,82,0)}}
@media(prefers-reduced-motion:reduce){#nukleoChatLauncher.message-arrival svg,#nukleoChatLauncher.has-unread::after{animation:none}}

/* Chat interno: interfaz más cómoda, ligera y adaptable (v298). */
#nukleoChatPanel{width:min(410px,calc(100vw - 32px));height:min(590px,calc(100vh - 108px));border-color:#e3ebf0;border-radius:20px;box-shadow:0 18px 52px rgba(11,37,56,.20)}
.nukleo-chat-head{min-height:72px;padding:16px 17px;background:linear-gradient(120deg,#102d49,#176b70)}
.nukleo-chat-head h2{font-size:16px;letter-spacing:-.01em}
.nukleo-chat-head p{font-size:11px;color:rgba(239,249,248,.78)}
.nukleo-chat-head-actions{gap:6px}
.nukleo-chat-notifications,.nukleo-chat-minimize,.nukleo-chat-close{width:34px;height:34px;border-radius:11px;transition:background-color .16s ease,transform .16s ease}
.nukleo-chat-notifications:hover,.nukleo-chat-minimize:hover,.nukleo-chat-close:hover{transform:translateY(-1px)}
.nukleo-chat-messages{padding:16px;gap:11px;background:#f7f9fa}
.nukleo-chat-msg{max-width:88%;padding:11px 13px;border-radius:15px 15px 15px 5px}
.nukleo-chat-msg.mine{border-radius:15px 15px 5px 15px}
.nukleo-chat-meta{gap:18px;margin-bottom:5px}
.nukleo-chat-body{font-size:14px;line-height:1.55}
.nukleo-chat-status{min-height:0;padding:0 14px;color:#a22b42;font-size:11px}
.nukleo-chat-status:not(:empty){padding-top:7px;padding-bottom:7px;background:#fff8f7}
.nukleo-chat-compose{padding:12px 14px 14px;background:#fff;border-top-color:#edf1f4}
.nukleo-chat-recipient-label{margin-bottom:5px;color:#718296;font-size:10px}
.nukleo-chat-compose select{min-height:40px;margin-bottom:10px;padding:9px 11px;border-color:#e1e9ee;border-radius:11px;background:#f9fbfc;font-size:13px;transition:border-color .15s ease,box-shadow .15s ease}
.nukleo-chat-compose select:focus{border-color:#6ba9a4;box-shadow:0 0 0 3px rgba(49,125,120,.12)}
.nukleo-chat-compose form{gap:9px;align-items:flex-end}
.nukleo-chat-compose textarea{min-height:44px;max-height:112px;overflow-y:auto;margin:0;padding:11px 13px;border:1px solid #e1e9ee;border-radius:14px;background:#fbfcfd;font-size:14px;line-height:1.4;transition:border-color .15s ease,box-shadow .15s ease}
.nukleo-chat-compose textarea:focus{border-color:#6ba9a4;box-shadow:0 0 0 3px rgba(49,125,120,.11)}
.nukleo-chat-send{width:44px;height:44px;flex-basis:44px;border-radius:14px;background:#176b70;box-shadow:0 4px 12px rgba(23,107,112,.16);transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease}
.nukleo-chat-send:hover:not(:disabled){transform:translateY(-1px);background:#125d62;box-shadow:0 6px 15px rgba(23,107,112,.21)}
#nukleoChatLauncher{transition:transform .16s ease,box-shadow .16s ease}
.nukleo-chat-toast{border-color:#e3ebf0;border-radius:16px;box-shadow:0 14px 36px rgba(11,37,56,.18)}
@media(max-width:520px){
  #nukleoChatRoot{right:12px;bottom:12px}
  #nukleoChatPanel{right:0;bottom:68px;width:calc(100vw - 24px);height:min(70vh,570px);height:min(70dvh,570px);border-radius:18px}
  .nukleo-chat-head{min-height:68px;padding:13px 14px}
  .nukleo-chat-head-actions{gap:4px}
  .nukleo-chat-head-actions .nukleo-chat-notifications,.nukleo-chat-head-actions .nukleo-chat-sound,.nukleo-chat-head-actions .nukleo-chat-minimize,.nukleo-chat-head-actions .nukleo-chat-close{width:28px;height:28px;flex:0 0 28px}
  .nukleo-chat-messages{padding:13px;gap:9px}
  .nukleo-chat-compose{padding:10px 11px 12px}
  #nukleoChatLauncher{width:54px;height:54px}
}
@media(prefers-reduced-motion:reduce){
  .nukleo-chat-notifications,.nukleo-chat-sound,.nukleo-chat-minimize,.nukleo-chat-close,.nukleo-chat-compose select,.nukleo-chat-compose textarea,.nukleo-chat-send,#nukleoChatLauncher{transition:none!important}
}

/* Adjuntos discretos y stickers rápidos del chat (v299). */
.nukleo-chat-tools{display:flex;align-items:center;gap:7px;margin:0 0 8px}
.nukleo-chat-tool{display:inline-flex;align-items:center;gap:6px;min-height:31px;padding:5px 10px;border:1px solid #e4ebef;border-radius:10px;background:#fff;color:#52677c;font:inherit;font-size:11px;font-weight:600;line-height:1;cursor:pointer;transition:background-color .15s ease,border-color .15s ease,color .15s ease}
.nukleo-chat-tool:hover,.nukleo-chat-tool[aria-expanded="true"]{border-color:#c8dedb;background:#f2f8f7;color:#176b70}
.nukleo-chat-tool svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nukleo-chat-tool span{font-size:16px;line-height:1}
.nukleo-chat-sticker-tray{display:grid;grid-template-columns:repeat(6,36px);gap:5px;width:max-content;max-width:100%;margin:0 0 9px;padding:8px;border:1px solid #e8eef2;border-radius:12px;background:#f9fbfc;box-shadow:0 5px 14px rgba(20,43,62,.06)}
.nukleo-chat-sticker-tray[hidden]{display:none}
.nukleo-chat-sticker{width:36px;height:36px;border:0;border-radius:9px;background:transparent;font-size:22px;cursor:pointer;transition:transform .13s ease,background-color .13s ease}
.nukleo-chat-sticker:hover,.nukleo-chat-sticker:focus-visible{transform:scale(1.12);background:#eaf3f2}
.nukleo-chat-msg.sticker{padding:8px 11px;background:#fff}
.nukleo-chat-msg.sticker .nukleo-chat-recipient-tag{font-size:9px}
.nukleo-chat-msg.sticker .nukleo-chat-body{font-size:40px;line-height:1.15}
.nukleo-chat-photo{display:block;width:auto;height:auto;max-width:min(240px,100%);max-height:240px;border-radius:12px;object-fit:contain;background:#eef2f4}
.nukleo-chat-photo-zoomable{cursor:zoom-in;touch-action:manipulation;transition:transform .16s ease,box-shadow .16s ease}
.nukleo-chat-photo-zoomable:hover,.nukleo-chat-photo-zoomable:focus-visible{transform:scale(1.025);box-shadow:0 0 0 3px rgba(49,125,120,.22);outline:none}
.nukleo-photo-viewer{position:fixed;inset:0;z-index:50000;display:grid;place-items:center;padding:24px;background:rgba(5,17,29,.88);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.nukleo-photo-viewer[hidden]{display:none!important}
.nukleo-photo-viewer-dialog{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:min(1100px,94vw);height:min(820px,92vh);padding:24px 18px 14px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(12,29,44,.72);box-shadow:0 24px 80px rgba(0,0,0,.44)}
.nukleo-photo-viewer-dialog img{display:block;max-width:100%;max-height:calc(100% - 34px);width:auto;height:auto;object-fit:contain;border-radius:10px;user-select:none;-webkit-user-drag:none}
.nukleo-photo-viewer-dialog p{margin:0;color:#d7e3ea;font-size:12px;text-align:center}
.nukleo-photo-viewer-close{position:absolute;z-index:1;top:8px;right:8px;display:grid;place-items:center;width:38px;height:38px;padding:0;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:27px;line-height:1;cursor:pointer}
.nukleo-photo-viewer-close:hover,.nukleo-photo-viewer-close:focus-visible{background:rgba(255,255,255,.24);outline:2px solid rgba(255,255,255,.6);outline-offset:2px}
body.nukleo-photo-viewer-open{overflow:hidden}
@media(max-width:520px){.nukleo-photo-viewer{padding:12px}.nukleo-photo-viewer-dialog{width:100%;height:min(88vh,760px);padding:48px 8px 12px;border-radius:14px}.nukleo-photo-viewer-dialog img{max-width:100%;max-height:calc(100% - 26px);object-fit:contain}.nukleo-photo-viewer-close{top:6px;right:6px}}
@media(prefers-reduced-motion:reduce){.nukleo-chat-photo-zoomable{transition:none}}
@media(prefers-reduced-motion:reduce){.nukleo-chat-tool,.nukleo-chat-sticker{transition:none!important}}

/* Barra compacta al minimizar el chat (v302). */
#nukleoChatPanel.is-minimized{width:min(252px,calc(100vw - 68px));height:44px;min-height:44px;border-radius:13px}
#nukleoChatPanel.is-minimized .nukleo-chat-head{min-height:44px;height:44px;padding:5px 8px 5px 12px;gap:6px}
#nukleoChatPanel.is-minimized .nukleo-chat-head h2{font-size:12px;white-space:nowrap}
#nukleoChatPanel.is-minimized .nukleo-chat-head p{display:none}
#nukleoChatPanel.is-minimized .nukleo-chat-head-actions{gap:4px}
#nukleoChatPanel.is-minimized .nukleo-chat-notifications,#nukleoChatPanel.is-minimized .nukleo-chat-sound{display:none}
#nukleoChatPanel.is-minimized .nukleo-chat-minimize,#nukleoChatPanel.is-minimized .nukleo-chat-close{width:30px;height:30px;border-radius:9px}
#nukleoChatPanel.is-minimized .nukleo-chat-minimize span{font-size:19px;line-height:18px;transform:none}
@media(max-width:520px){#nukleoChatPanel.is-minimized{right:0;bottom:68px;width:min(228px,calc(100vw - 72px));height:42px;min-height:42px}#nukleoChatPanel.is-minimized .nukleo-chat-head{height:42px;min-height:42px}}

/* Selector de contactos limpio y fácil de recorrer (v304). */
.nukleo-chat-recipient-label{margin:0 0 6px;color:#536a7c;font-size:10px;font-weight:750;letter-spacing:.055em;text-transform:uppercase}
.nukleo-chat-compose select{appearance:none;-webkit-appearance:none;width:100%;min-height:42px;margin:0 0 10px;padding:10px 38px 10px 12px;border:1px solid #e1e9ee;border-radius:11px;background-color:#f9fbfc;background-image:linear-gradient(45deg,transparent 50%,#6e8191 50%),linear-gradient(135deg,#6e8191 50%,transparent 50%);background-position:calc(100% - 17px) 18px,calc(100% - 12px) 18px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;color:#183247;font-size:13px;line-height:1.35}
.nukleo-chat-compose select:hover{border-color:#c8d6df;background-color:#fff}
.nukleo-chat-compose select:focus-visible{outline:none;border-color:#6ba9a4;box-shadow:0 0 0 3px rgba(49,125,120,.12)}
.nukleo-chat-compose select option{padding:8px;background:#fff;color:#183247}

/* Conversación clara arriba, mensajes al centro y redacción despejada (v308). */
#nukleoChatPanel{width:min(460px,calc(100vw - 32px));height:min(660px,calc(100dvh - 108px));border-radius:21px;box-shadow:0 22px 62px rgba(11,37,56,.23)}
.nukleo-chat-head{min-height:74px;padding:15px 17px}
.nukleo-chat-head h2{font-size:16px}
.nukleo-chat-head p{max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nukleo-chat-conversation-bar{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:9px 14px;border-bottom:1px solid #edf1f4;background:#fff}
.nukleo-chat-conversation-label{flex:0 0 auto;color:#718296;font-size:10px;font-weight:750;letter-spacing:.055em;text-transform:uppercase}
.nukleo-chat-conversation-bar select{appearance:none;-webkit-appearance:none;flex:1;min-width:0;min-height:38px;margin:0;padding:8px 34px 8px 11px;border:1px solid #e1e9ee;border-radius:11px;background-color:#f9fbfc;background-image:linear-gradient(45deg,transparent 50%,#6e8191 50%),linear-gradient(135deg,#6e8191 50%,transparent 50%);background-position:calc(100% - 15px) 16px,calc(100% - 10px) 16px;background-size:5px 5px,5px 5px;background-repeat:no-repeat;color:#183247;font:inherit;font-size:13px;line-height:1.35;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
.nukleo-chat-conversation-bar select:hover{border-color:#c8d6df;background-color:#fff}
.nukleo-chat-conversation-bar select:focus-visible{outline:none;border-color:#6ba9a4;box-shadow:0 0 0 3px rgba(49,125,120,.12)}
.nukleo-chat-conversation-bar select option{background:#fff;color:#183247}
.nukleo-chat-messages{padding:17px;background:#f6f9fa;scrollbar-gutter:stable}
.nukleo-chat-empty{max-width:280px;padding:18px;line-height:1.6}
.nukleo-chat-msg{max-width:88%;min-width:76px;padding:11px 14px}
.nukleo-chat-msg.mine{background:#eaf6f3}
.nukleo-chat-meta{gap:22px}
.nukleo-chat-compose{padding:10px 14px 14px}
.nukleo-chat-compose form{gap:10px}
.nukleo-chat-compose textarea{min-height:46px;padding:12px 14px;font-size:14px}
.nukleo-chat-send{width:46px;height:46px;flex-basis:46px}
#nukleoChatPanel.is-minimized .nukleo-chat-conversation-bar{display:none}
@media(max-width:520px){
  #nukleoChatPanel{height:min(76vh,660px);height:min(76dvh,660px);border-radius:19px}
  .nukleo-chat-head{min-height:68px;padding:12px}
  .nukleo-chat-head h2{font-size:15px}
  .nukleo-chat-head p{max-width:156px;font-size:10px}
  .nukleo-chat-conversation-bar{gap:8px;padding:8px 11px}
  .nukleo-chat-conversation-label{font-size:9px}
  .nukleo-chat-conversation-bar select{min-height:38px;padding-left:9px;font-size:12px}
  .nukleo-chat-messages{padding:12px;gap:9px}
  .nukleo-chat-msg{max-width:91%;padding:10px 12px}
  .nukleo-chat-compose{padding:9px 11px 12px}
}
@media(prefers-reduced-motion:reduce){.nukleo-chat-conversation-bar select{transition:none}}

/* Contactos visuales y seleccionables, con búsqueda y contador de no leídos (v309). */
.nukleo-chat-conversation-bar{position:relative;z-index:5;display:block;padding:9px 13px}
.nukleo-chat-conversation-bar>select[hidden]{display:none!important}
.nukleo-chat-contact-trigger{display:flex;width:100%;align-items:center;gap:10px;padding:7px 10px;border:1px solid #e6edf1;border-radius:13px;background:linear-gradient(120deg,#fbfdfd,#f5f9fa);color:#173247;text-align:left;cursor:pointer;transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,transform .16s ease}
.nukleo-chat-contact-trigger:hover,.nukleo-chat-contact-trigger[aria-expanded="true"]{border-color:#b8d6d2;background:#f5fbfa;box-shadow:0 4px 13px rgba(20,73,76,.08)}
.nukleo-chat-contact-trigger:active{transform:scale(.995)}
.nukleo-chat-contact-avatar{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border:1px solid rgba(49,125,120,.12);border-radius:50%;background:linear-gradient(145deg,#e3f2ef,#cfe6e2);color:#176b70;font-size:12px;font-weight:800;letter-spacing:.02em}
.nukleo-chat-contact-current{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.nukleo-chat-contact-current strong{overflow:hidden;color:#173247;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.nukleo-chat-contact-current small{overflow:hidden;color:#758695;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.nukleo-chat-contact-chevron{display:grid;width:25px;height:25px;place-items:center;border-radius:8px;background:#eaf2f3;color:#50717b;font-size:17px;transition:transform .18s ease}
.nukleo-chat-contact-trigger[aria-expanded="true"] .nukleo-chat-contact-chevron{transform:rotate(180deg)}
.nukleo-chat-contact-picker{position:absolute;top:calc(100% - 2px);right:13px;left:13px;max-height:min(360px,52vh);overflow:hidden;border:1px solid #dce7eb;border-radius:15px;background:#fff;box-shadow:0 18px 42px rgba(9,37,54,.2);animation:chat-contact-in .16s ease-out}
.nukleo-chat-contact-picker[hidden]{display:none!important}
@keyframes chat-contact-in{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.nukleo-chat-contact-search-wrap{display:flex;align-items:center;gap:8px;margin:10px 10px 7px;padding:0 10px;border:1px solid #e6edf1;border-radius:10px;background:#f8fafb;color:#708392}
.nukleo-chat-contact-search-wrap>span{font-size:20px;line-height:1}
.nukleo-chat-contact-search-wrap input{min-width:0;height:37px;margin:0;padding:0;border:0;background:transparent;box-shadow:none!important;color:#183247;font-size:12px}
.nukleo-chat-contact-options{max-height:min(286px,43vh);overflow:auto;padding:2px 8px 9px;overscroll-behavior:contain}
.nukleo-chat-contact-option{display:flex;width:100%;min-height:55px;align-items:center;gap:10px;padding:7px 8px;border:1px solid transparent;border-radius:11px;background:#fff;color:#183247;text-align:left;cursor:pointer;transition:background-color .14s ease,border-color .14s ease,transform .14s ease}
.nukleo-chat-contact-option:hover,.nukleo-chat-contact-option:focus-visible{transform:translateX(2px);border-color:#e2eeec;background:#f5faf9;outline:none}
.nukleo-chat-contact-option.is-active{border-color:#cce3df;background:#eef7f5}
.nukleo-chat-contact-option .nukleo-chat-contact-avatar{flex-basis:36px;width:36px;height:36px;background:linear-gradient(145deg,#eef0ff,#dfe4fa);border-color:#e5e8f6;color:#515f9b}
.nukleo-chat-contact-option.team .nukleo-chat-contact-avatar,.nukleo-chat-contact-option .team-avatar{background:linear-gradient(145deg,#daf0eb,#c4e6df);border-color:#d0e9e3;color:#176b70}
.nukleo-chat-contact-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.nukleo-chat-contact-copy strong{overflow:hidden;font-size:12px;font-weight:720;text-overflow:ellipsis;white-space:nowrap}
.nukleo-chat-contact-copy small{color:#7a8b99;font-size:10px}
.nukleo-chat-contact-unread{display:grid;min-width:21px;height:21px;place-items:center;padding:0 6px;border-radius:999px;background:#c5324b;color:#fff;font-size:10px;font-weight:800;box-shadow:0 2px 6px rgba(197,50,75,.22)}
.nukleo-chat-contact-empty{padding:15px 12px;color:#82919d;font-size:11px;text-align:center}
@media(max-width:520px){
  .nukleo-chat-conversation-bar{padding:7px 10px}
  .nukleo-chat-contact-picker{right:10px;left:10px;max-height:min(330px,48vh)}
  .nukleo-chat-contact-options{max-height:min(260px,39vh)}
}
@media(prefers-reduced-motion:reduce){.nukleo-chat-contact-trigger,.nukleo-chat-contact-chevron,.nukleo-chat-contact-option{transition:none}.nukleo-chat-contact-picker{animation:none}}
