.ce-staff-chat-launcher,
.ce-staff-chat-shade,
.ce-staff-chat-shade *{box-sizing:border-box;font-family:Arial,"Helvetica Neue",sans-serif}
.ce-staff-chat-launcher{margin:16px 0}
.ce-staff-chat-open,.ce-staff-chat-form button{border:0;border-radius:10px;background:#0798a8;color:#fff;font-size:15px;font-weight:600;line-height:1.2;cursor:pointer;transition:background .18s ease,transform .18s ease}
.ce-staff-chat-open{width:100%;padding:13px 18px}
.ce-staff-chat-open:hover,.ce-staff-chat-form button:hover{background:#087f8c}
.ce-staff-chat-open:active,.ce-staff-chat-form button:active{transform:translateY(1px)}
.ce-staff-chat-form button:disabled{cursor:wait;opacity:.62}
.ce-staff-chat-shade{display:none;position:fixed;inset:0;z-index:2147483500;background:rgba(0,24,34,.58);padding:20px;color:#082b3c;font-size:15px;line-height:1.35}
.ce-staff-chat-shade.is-open{display:flex;align-items:center;justify-content:center}
.ce-staff-chat-dialog{width:min(980px,100%);height:min(720px,92vh);margin:0;background:#fff;border:1px solid #80cbd0;border-radius:18px;box-shadow:0 18px 55px rgba(0,35,48,.28);overflow:hidden;display:flex;flex-direction:column}
.ce-staff-chat-dialog>header{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:16px 20px;border-bottom:1px solid #cce7e9;background:#fff}
.ce-staff-chat-dialog h3{margin:0;color:#082b3c;font-size:22px;line-height:1.25;font-weight:700}
.ce-staff-chat-close{width:38px;height:38px;padding:0;border:0;border-radius:50%;background:#edf8f8;color:#173247;font-size:27px;line-height:38px;cursor:pointer}
.ce-staff-chat-close:hover{background:#dff1f2}
.ce-staff-chat-body{display:grid;grid-template-columns:300px minmax(0,1fr);min-height:0;flex:1}
.ce-staff-chat-body.is-cleaner{grid-template-columns:minmax(0,1fr)}
.ce-staff-chat-body.is-cleaner .ce-staff-chat-main{grid-column:1/-1}
.ce-staff-chat-sidebar{padding:14px;border-right:1px solid #d7e9ea;overflow:auto;background:#fbfefe}
.ce-staff-chat-search,.ce-staff-chat-form textarea{width:100%;margin:0;border:1px solid #9fb9c4;border-radius:9px;background:#fff;color:#082b3c;font-size:15px;outline:none;box-shadow:none}
.ce-staff-chat-search{height:44px;margin-bottom:11px;padding:0 13px}
.ce-staff-chat-search:focus,.ce-staff-chat-form textarea:focus{border-color:#0798a8;box-shadow:0 0 0 3px rgba(7,152,168,.12)}
.ce-staff-chat-threads{display:grid;gap:8px}
.ce-staff-chat-thread{width:100%;min-height:54px;margin:0;text-align:left;display:grid;grid-template-columns:1fr auto;gap:3px 8px;padding:10px 12px;background:#f1fafa;color:#082b3c;border:1px solid #b9dfe1;border-radius:11px;cursor:pointer;font-size:14px}
.ce-staff-chat-thread:hover{border-color:#0798a8;background:#eaf8f8}
.ce-staff-chat-thread strong{font-size:15px;line-height:1.2}
.ce-staff-chat-thread span{font-size:12px;grid-column:1;color:#385866}
.ce-staff-chat-thread b{grid-column:2;grid-row:1/3;min-width:24px;padding:3px 7px;align-self:center;text-align:center;background:#d8342a;color:#fff;border-radius:99px;font-size:12px}
.ce-staff-chat-thread.is-active{border-color:#0798a8;background:#dcf4f5;box-shadow:inset 3px 0 0 #0798a8}
.ce-staff-chat-broadcast{display:block;font-weight:700}
.ce-staff-chat-main{display:flex;flex-direction:column;width:100%;min-width:0;min-height:0;padding:16px;background:#fff;overflow-x:hidden}
.ce-staff-chat-context{margin:0 0 12px;color:#496472;font-size:14px}
.ce-staff-chat-messages{flex:1;min-height:180px;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:10px;background:#f4fafa;border:1px solid #e2f0f1;border-radius:12px}
.ce-staff-chat-messages>p{margin:0;color:#627783}
.ce-staff-chat-message{max-width:82%;margin:0;padding:10px 12px;border-radius:12px;background:#fff;border:1px solid #cce6e8;box-shadow:0 2px 6px rgba(0,35,48,.04)}
.ce-staff-chat-message.is-own{align-self:flex-end;background:#dff5f6;border-color:#a9dadd}
.ce-staff-chat-message time,.ce-staff-chat-message small{display:block;margin-top:2px;color:#687985;font-size:11px}
.ce-staff-chat-message p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.ce-staff-chat-form{display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1fr) 130px;gap:10px;margin-top:12px;align-items:stretch}
.ce-staff-chat-form textarea{min-width:0;max-width:100%;min-height:82px;padding:11px 13px;resize:vertical;font-size:16px}
.ce-staff-chat-form button{min-height:48px;padding:12px 16px}
.ce-staff-chat-status{min-height:20px;margin:7px 0 0;color:#496472;font-size:13px}
@media(max-width:700px){.ce-staff-chat-shade{width:100%;max-width:100vw;overflow:hidden;padding:0}.ce-staff-chat-dialog{width:100%;max-width:100%;height:100%;max-height:none;border:0;border-radius:0}.ce-staff-chat-dialog>header{min-height:58px;padding:12px 14px}.ce-staff-chat-dialog h3{font-size:19px}.ce-staff-chat-body{grid-template-columns:minmax(0,1fr);overflow:hidden}.ce-staff-chat-sidebar{max-height:31vh;border-right:0;border-bottom:1px solid #d7e9ea}.ce-staff-chat-main{min-width:0;min-height:0;padding:12px 12px max(12px,env(safe-area-inset-bottom))}.ce-staff-chat-form{grid-template-columns:minmax(0,1fr)}.ce-staff-chat-form textarea{width:100%;max-width:100%;min-width:0;min-height:68px}.ce-staff-chat-form button{width:100%}.ce-staff-chat-message{max-width:94%}}
