.chat-shell{position:relative;grid-template-columns:270px minmax(0,1fr) 250px!important;height:clamp(600px,calc(100dvh - 205px),980px)!important;border-radius:23px;background:#081422}.chat-side{padding:20px 12px!important;display:flex;flex-direction:column;min-height:0;overflow:hidden}.chat-side h3{font-size:15px;margin:0 8px 5px}.chat-inbox-summary{font:400 10px/1.5 Inter,sans-serif;color:#698ab1;margin:0 8px 16px}.chat-side #chat-search{margin-bottom:12px;padding:11px 12px;font-size:11px}.chat-inbox-scopes{display:flex;gap:5px;flex-wrap:wrap;padding-bottom:12px}.chat-inbox-scopes button,.chat-status-options button{background:#ffffff04;color:#81a0c7;border:1px solid #82baff16;border-radius:999px;padding:7px 10px;font:400 10px/1.3 Inter,sans-serif;cursor:pointer;transition:background-color .5s,color .5s,border-color .5s}.chat-inbox-scopes button.active,.chat-status-options button.active{background:#0063e12e;color:#cde6ff;border-color:#559dff4a}.chat-filters{gap:5px;padding-bottom:14px;flex-shrink:0}.chat-filters button{font-size:9px;padding:7px 8px}.chat-side #chat-list{flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;min-height:0}.chat-item{padding:12px 8px!important;gap:10px}.chat-item-text strong{font-size:12px!important}.chat-item-text small{font-size:10px!important}.chat-avatar{width:33px;height:33px;flex-basis:33px;border-radius:11px;font-size:10px}.chat-meta small{font-size:8px}.chat-meta img{width:14px;height:14px}.chat-unread-count{background:#0063e1;color:white;border-radius:999px;min-width:15px;height:15px;padding:2px 4px;font-size:8px;line-height:11px;text-align:center}.chat-window{min-height:0;overflow:hidden}.chat-header{display:grid;grid-template-columns:35px minmax(0,1fr) auto;gap:5px 10px;align-items:center;padding:17px 18px!important}.chat-header-avatar{width:33px;height:33px;border-radius:11px;grid-row:1/3;display:grid;place-items:center;background:#154476;font-size:10px;color:#d9edff}.chat-header #chat-person{font-size:13px;grid-column:2;grid-row:1;min-width:0;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.chat-header #chat-channel{font-size:9px;grid-column:2;grid-row:2;margin:0}.chat-header-actions{grid-column:3;grid-row:1/3;display:flex;gap:7px}.chat-header-actions .secondary{font-size:10px;padding:8px 10px}.chat-toggle-context{display:none}.chat-mobile-back{display:none}.chat-conversation-state{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px;border-bottom:1px solid #81baff0d;flex-wrap:wrap}.chat-status-options{display:flex;gap:5px}.chat-status-options button{font-size:9px;padding:6px 8px}.chat-assignment{font:400 9px/1.4 Inter,sans-serif;color:#92b9e7;background:none;border:0;cursor:pointer;padding:5px 0}.chat-window .chat-messages{padding:20px!important;gap:13px;min-height:0!important;scrollbar-width:thin}.chat-day-label{align-self:center;background:#ffffff05;color:#6689b3;border:1px solid #81baff10;border-radius:999px;padding:5px 10px;font:400 9px Inter,sans-serif;margin:0 0 14px}.chat-messages .bubble{font-size:12px;max-width:90%;padding:11px 14px;line-height:1.5;border-radius:15px}.bubble-text{white-space:pre-wrap;overflow-wrap:anywhere}.bubble-record-meta{display:block;font-size:8px;line-height:1.3;color:#9cbada;margin-top:6px;text-align:right}.chat-compose{padding:12px 14px!important;gap:8px}.chat-compose input{font-size:11px;padding:12px}.chat-compose button{font-size:11px;padding:10px 14px}.chat-disclaimer{font-size:9px;padding:0 14px 10px;line-height:1.4;color:#5e7eaa}.chat-context{min-width:0;padding:20px 17px;overflow-y:auto;scrollbar-width:thin;border-left:1px solid #81baff18;background:#091727}.chat-context-title{display:flex;align-items:center;justify-content:space-between}.chat-context-title h3{font-size:12px;font-weight:500;margin:0;color:#92b0d5}.chat-context-close{display:none}.chat-profile{display:flex;flex-direction:column;align-items:center;gap:10px;padding:24px 0;border-bottom:1px solid #81baff14}.chat-context-avatar{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(140deg,#205b9f,#142d50);font-size:13px;color:#daedff}.chat-context-name{font-size:14px;font-weight:500}.chat-context-channel{font-size:9px;color:#7090b7}.chat-contact-form{margin:20px 0}.chat-contact-form label,.chat-notes-label{display:grid;gap:7px;font-size:10px;color:#86a5cc;margin-bottom:12px}.chat-contact-form input{width:100%;min-width:0;font-size:11px;padding:10px;border-radius:11px}.chat-contact-form .secondary,.chat-crm-contact .secondary{font-size:10px;padding:8px 11px}.chat-crm-contact{padding:18px 0;border-block:1px solid #81baff14;display:flex;flex-direction:column;align-items:flex-start;gap:10px}.chat-crm-contact>span,.chat-tag-section>span{font-size:10px;color:#7192ba}.chat-contact-stage{font-size:11px;font-weight:500;color:#c6defb}.chat-tag-section{padding:18px 0}.chat-tag-options{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.chat-tag-options button{font:400 9px Inter,sans-serif;color:#7199c8;border-radius:999px;background:#102641;border:1px solid #569cff25;padding:6px 8px;cursor:pointer;transition:background-color .4s,border-color .4s,color .4s}.chat-tag-options button[aria-pressed=true]{background:#0063e133;border-color:#559dff66;color:#d0e7ff}.chat-notes-label textarea{width:100%;min-width:0;resize:vertical;background:#07111f;border:1px solid #82baff24;color:#ccdef6;border-radius:12px;padding:11px;font:400 11px/1.6 Inter,sans-serif}.chat-detail-feedback{font-size:9px;color:#80b9f5;line-height:1.4;min-height:12px}.chat-context input:focus,.chat-context textarea:focus{outline:2px solid #6cafff77;outline-offset:2px}.chat-empty-state,.chat-list-empty{font-size:11px;line-height:1.6;color:#7494bb}.chat-new-dialog{width:min(450px,calc(100vw - 36px));border-radius:24px;padding:28px;border:1px solid #81baff33;background:#0b192c;color:#e2eeff;font-family:Inter,sans-serif}.chat-new-dialog::backdrop{background:#020710c9;backdrop-filter:blur(6px)}.chat-new-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.chat-new-dialog h2{font-size:24px;font-weight:500;letter-spacing:-.8px;margin:0}.chat-new-dialog-top button{border:0;background:none;color:#91b0d6;font-size:25px;cursor:pointer}.chat-new-dialog p{font-size:12px;color:#7999c2;line-height:1.5}.chat-new-dialog label{font-size:12px;color:#a3c0e5}.chat-new-dialog input:not([type=radio]){width:100%;min-width:0}.chat-new-dialog fieldset{border:0;padding:0;margin:20px 0}.chat-new-dialog legend{font-size:12px;color:#7998bf}.chat-new-dialog fieldset label{display:inline-flex;gap:7px;align-items:center;font-size:10px;margin-right:10px}.chat-new-dialog input[type=radio]{width:14px;height:14px;accent-color:#0063e1}.chat-quick-replies{padding:10px 14px 7px}.qr-preview{min-height:0;max-height:28px}.qr-feedback{font-size:8px;min-height:10px}.qr-send{font-size:10px;padding:8px 10px}
@media(max-width:1280px){.chat-shell{grid-template-columns:250px minmax(0,1fr)!important}.chat-context{display:none;position:absolute;right:0;top:0;bottom:0;width:270px;z-index:10;box-shadow:-18px 0 50px #0005}.chat-shell.chat-context-visible .chat-context{display:block;animation:chat-context-in .4s cubic-bezier(.2,.65,.25,1)}.chat-context-close{display:block;background:none;border:0;color:#95bce9;font-size:22px;cursor:pointer}.chat-toggle-context{display:block}.chat-header{padding:15px!important}.chat-header-actions .secondary{font-size:9px;padding:7px 8px}}
@media(max-width:800px){.chat-shell{grid-template-columns:230px minmax(0,1fr)!important;height:650px!important}.chat-window .chat-messages{min-height:0!important}.chat-header{grid-template-columns:28px minmax(0,1fr) auto}.chat-header-avatar{width:28px;height:28px}.chat-header-actions{gap:4px}.chat-header #chat-person{font-size:11px}.chat-header #chat-channel{font-size:8px}.chat-status-options button{font-size:8px;padding:6px}.chat-conversation-state{padding:8px 12px}.chat-quick-replies{padding:10px 12px 7px}}
@media(max-width:620px){.chat-shell{display:grid;grid-template-columns:1fr!important;height:650px!important;min-height:0}.chat-side{display:flex;max-height:none;height:100%;border:0;padding:18px 14px!important}.chat-window{display:none;height:100%}.chat-shell.chat-mobile-detail .chat-side{display:none}.chat-shell.chat-mobile-detail .chat-window{display:flex}.chat-mobile-back{display:grid;place-items:center;width:24px;height:30px;grid-column:1;grid-row:1/3;border:0;background:none;color:#79b9ff;font-size:30px;cursor:pointer}.chat-header-avatar{display:none}.chat-header{grid-template-columns:24px minmax(0,1fr) auto;padding:14px 12px!important}.chat-header #chat-person{font-size:12px}.chat-header #chat-channel{font-size:9px}.chat-header-actions .secondary{font-size:9px;padding:8px}.chat-item{padding:15px 10px!important}.chat-item-text strong{font-size:13px!important}.chat-item-text small{font-size:11px!important}.chat-avatar{width:38px;height:38px;flex-basis:38px}.chat-context{width:min(280px,100%)}.chat-messages .bubble{font-size:12px}.chat-new-dialog{padding:24px}.chat-conversation-state{gap:6px}.chat-day-label{margin-bottom:5px}}
@keyframes chat-context-in{from{opacity:0;transform:translateX(16px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.chat-context,.chat-inbox-scopes button,.chat-status-options button{animation:none!important;transition:none!important}}
