.crm-cat-launch{position:fixed;right:24px;bottom:52px;width:78px;height:78px;padding:5px;background:#fff;border:1px solid #e6e9f1;border-radius:26px;box-shadow:0 7px 28px #17203824;z-index:90}.crm-cat-launch img{width:100%;height:100%}.crm-cat-launch:hover{background:#fff0f8;transform:translateY(-2px)}.crm-cat-launch[hidden],.crm-cat-panel[hidden]{display:none}.crm-cat-panel{position:fixed;right:24px;bottom:140px;width:min(440px,calc(100vw - 32px));height:min(620px,calc(100dvh - 168px));background:white;border:1px solid #e2e6f1;border-radius:25px;box-shadow:0 16px 70px #17203830;z-index:100;display:flex;flex-direction:column;overflow:hidden}.crm-cat-head{display:flex;gap:12px;align-items:center;padding:16px 20px;background:#f6f7fc;border-bottom:1px solid #e9edf5}.crm-cat-head img{width:58px;height:58px}.crm-cat-head strong{font-size:18px}.crm-cat-head small{display:block;font-size:12px;color:#73819b}.crm-cat-head button{margin-left:auto}.crm-cat-messages{flex:1;overflow:auto;padding:20px}.crm-cat-message{padding:13px 16px;border-radius:18px;margin:0 0 12px;background:#f3f5fa;white-space:pre-wrap;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.crm-cat-message.user{background:#fff0f8;margin-left:38px}.crm-cat-form{padding:14px 18px;border-top:1px solid #e9edf5;display:flex;gap:10px;align-items:end}.crm-cat-form label{flex:1;font-size:12px;margin:0}.crm-cat-form textarea{width:100%;min-height:70px;resize:none}.crm-cat-form button{padding:12px}.crm-ai-proposal{background:#fff;border:1px solid #edbad6;border-radius:16px;padding:14px;margin-bottom:12px;font-size:13px}.crm-ai-proposal p{white-space:pre-wrap;overflow-wrap:anywhere}.crm-ai-proposal .actions{gap:8px}.crm-ai-proposal button{padding:8px 12px;font-size:13px}.crm-comm-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:28px;border:1px solid #f5d5e7;background:linear-gradient(115deg,#fff0f8,#fff 65%);border-radius:22px;margin-bottom:24px}.crm-comm-hero h2{margin:0 0 8px}.crm-comm-hero p{margin:0}.crm-comm-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:24px 0}.crm-comm-grid h3{margin-top:0}.crm-comm-status{display:inline-block;font-size:12px;background:#f1f4fa;color:#526583;border-radius:20px;padding:5px 10px}.crm-comm-status.delivered{background:#e9f7ef;color:#267952}.crm-comm-status.failed{background:#fff1e5;color:#985320}.crm-comm-select{max-height:340px;overflow:auto;border:1px solid #e3e8f2;border-radius:14px}.crm-comm-select label{display:flex;gap:12px;align-items:center;padding:11px 14px;border-bottom:1px solid #edf0f5;margin:0;font-weight:400}.crm-comm-select input{width:18px;height:18px;flex:none}.crm-comm-select small{display:block;color:#72809a}.crm-comm-selection-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.crm-comm-selection-toolbar input{flex:1;min-width:0}.crm-comm-dialog{max-width:1060px;width:calc(100vw - 36px)}.crm-comm-preview-frame{width:100%;height:450px;border:1px solid #e4e8f1;border-radius:18px;background:#f8f9fc}.crm-comm-steps{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.crm-comm-steps span{font-size:13px;color:#586884;background:#f2f4fa;padding:8px 13px;border-radius:18px}.crm-mail-history{margin-top:24px}.crm-connection-card{margin-top:22px}.crm-connection-card input[type=password]{font-family:inherit}.crm-comm-alert{padding:12px 16px;background:#fff7e9;border:1px solid #f5dfb5;border-radius:13px;font-size:14px}.crm-comm-options{display:flex;gap:20px;flex-wrap:wrap;margin:14px 0}.crm-comm-options label{display:flex;gap:10px;align-items:center;font-weight:400}.crm-comm-options input{width:18px;height:18px}.crm-cat-error{color:#9e215a;font-size:13px;white-space:pre-wrap}.crm-comm-scroll{max-height:260px;overflow:auto;margin:15px 0}.crm-comm-full{grid-column:1/-1}.crm-mail-history td:first-child{white-space:nowrap}.crm-cat-form button:disabled{opacity:.55}@media(max-width:700px){.crm-comm-grid{grid-template-columns:1fr}.crm-comm-hero{align-items:start;flex-direction:column;padding:20px}.crm-comm-selection-toolbar{flex-wrap:wrap}.crm-cat-launch{right:16px;bottom:45px;width:64px;height:64px;border-radius:22px}.crm-cat-panel{right:16px;bottom:120px}.crm-comm-preview-frame{height:390px}.crm-comm-grid .panel{min-width:0}.crm-comm-dialog{width:calc(100vw - 20px)}.crm-comm-hero .actions{flex-wrap:wrap}}

.crm-mail-history td small{display:block;margin-top:5px}.crm-comm-hero+ .crm-comm-steps{margin-top:12px}
.crm-mail-branding img.crm-mail-banner-example{display:block;width:100%;max-width:720px;height:auto;margin:12px 0;border-radius:8px}.crm-mail-branding textarea{width:100%;min-height:130px}.crm-mail-block{border:1px solid #e5e8f1;border-radius:14px;padding:18px;margin:14px 0;background:#fff}.crm-mail-block-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.crm-mail-block-head .actions{display:flex;gap:6px;flex-wrap:wrap}.crm-mail-block-head button{padding:6px 10px}.crm-mail-block>label{display:block;margin:10px 0}.crm-mail-block textarea,.crm-mail-block input:not([type=color]),.crm-mail-block select{width:100%}.crm-mail-block-image{display:block;max-width:100%;max-height:300px;object-fit:contain;margin:12px 0}.crm-mail-style{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.crm-mail-style label{font-size:12px}.crm-mail-style input[type=color]{display:block;width:100%;height:40px;padding:2px;cursor:pointer}.crm-mail-add{display:flex;gap:8px;flex-wrap:wrap}.crm-comm-test-result{color:#1c6b42;font-weight:600}@media(max-width:800px){.crm-mail-style{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-mail-block-head{align-items:flex-start;flex-direction:column}}

/* Animation locale : aucun appel au service IA. */
.crm-cat-avatar{display:block;width:100%;height:100%;flex:none;background-image:url("chat-gris-3d.png?v=20261002-chat3d1");background-repeat:no-repeat;background-size:300% 300%;background-position:0% 0%;animation:crm-cat-idle 7.5s steps(1,end) infinite}
.crm-cat-head .crm-cat-avatar{width:58px;height:58px}
.crm-cat-launch:hover .crm-cat-avatar{filter:drop-shadow(0 2px 2px #17203818)}
@keyframes crm-cat-idle{0%,44%{background-position:0% 0%}48%{background-position:50% 0%}50%{background-position:100% 0%}52%{background-position:0% 50%}54%{background-position:50% 50%}59%{background-position:100% 50%}66%{background-position:0% 100%}73%{background-position:50% 100%}80%{background-position:100% 100%}100%{background-position:0% 0%}}
/* Les onglets masqués par le navigateur interrompent déjà le rendu. */
@media(prefers-reduced-motion:reduce){.crm-cat-avatar{animation:none}}
.crm-mail-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0 14px}.crm-mail-inline span{font-size:12px;color:#66748b}.crm-mail-inline button{min-width:38px;padding:5px 8px}.crm-mail-files{border:1px solid #e5e8f1;border-radius:14px;padding:16px;margin:8px 0 14px}.crm-mail-files h3{margin:0 0 8px}.crm-mail-files input[type=file]{display:block;width:100%;margin:8px 0}.crm-mail-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf0f5;overflow-wrap:anywhere}.crm-mail-file button{flex:none}
