/* TheaCRM v2.6.234 – chat groups + mobile UI */
.thea-chat-page{max-width:980px;margin:0 auto;padding:clamp(10px,2vw,22px)}.thea-chat-eyebrow{text-transform:uppercase;letter-spacing:.08em;font-size:.72rem;font-weight:800;color:#1f8f4d;margin-bottom:.2rem}.thea-chat-list-header{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1rem}.thea-chat-list-header h1,.thea-chat-form-head h1{margin:0;font-size:clamp(1.6rem,4vw,2.3rem);font-weight:850;color:#102018}.thea-chat-list-header p{margin:.25rem 0 0;color:#667085}.thea-chat-new-group{border-radius:999px;font-weight:750;white-space:nowrap}.thea-chat-list-card,.thea-chat-form-card,.thea-chat-shell{background:#fff;border:1px solid rgba(16,24,40,.08);border-radius:24px;box-shadow:0 14px 35px rgba(15,23,42,.07);overflow:hidden}.thea-chat-thread-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.85rem;align-items:center;padding:1rem;text-decoration:none;color:#1f2937;border-bottom:1px solid #eef2f3}.thea-chat-thread-row:last-child{border-bottom:0}.thea-chat-thread-row:hover{background:#f6fbf7;color:#102018}.thea-chat-thread-row.is-unread{background:#f2fbf5}.thea-chat-avatar{width:44px;height:44px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;background:#e9f7ef;color:#157347;font-size:1.25rem;flex:0 0 auto}.thea-chat-avatar.is-large{width:50px;height:50px;border-radius:18px}.thea-chat-thread-main{min-width:0}.thea-chat-thread-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.thea-chat-thread-top strong{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-thread-top span{font-size:.78rem;color:#98a2b3;white-space:nowrap}.thea-chat-thread-subtitle{font-size:.82rem;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-thread-preview{margin-top:.15rem;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-thread-sender{font-weight:750;color:#344054}.thea-chat-unread-badge{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#198754;color:#fff;font-size:.78rem;font-weight:800;display:inline-flex;align-items:center;justify-content:center}.thea-chat-empty{text-align:center;padding:3rem 1.5rem;color:#667085}.thea-chat-empty i{font-size:3rem;color:#1f8f4d}.thea-chat-empty h2{font-size:1.25rem;margin:.75rem 0 .25rem;color:#102018}.thea-chat-form-card{padding:1rem}.thea-chat-form-head{display:flex;gap:1rem;align-items:center;margin-bottom:1rem}.thea-chat-group-form{display:grid;gap:1rem}.thea-chat-members-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-top:.25rem}.thea-chat-member-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.6rem}.thea-chat-member-check{display:flex;align-items:center;gap:.75rem;border:1px solid #e6eaee;border-radius:16px;padding:.75rem;background:#fff;cursor:pointer}.thea-chat-member-check:has(input:checked){border-color:#198754;background:#f2fbf5}.thea-chat-member-check input{width:18px;height:18px;accent-color:#198754}.thea-chat-member-avatar{width:36px;height:36px;border-radius:999px;background:#e9f7ef;color:#157347;font-weight:850;display:inline-flex;align-items:center;justify-content:center}.thea-chat-member-check strong,.thea-chat-member-check small{display:block}.thea-chat-member-check small{color:#667085;word-break:break-all}.thea-chat-form-actions{display:flex;justify-content:flex-end;padding-top:.5rem}.thea-chat-shell{height:calc(100vh - var(--navbar-height, 70px) - 32px);min-height:520px;display:flex;flex-direction:column}.thea-chat-thread-header{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;border-bottom:1px solid #eef2f3;background:rgba(255,255,255,.96);z-index:2}.thea-chat-back{width:38px;height:38px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:#344054;text-decoration:none;background:#f2f4f7}.thea-chat-title-wrap{min-width:0;flex:1}.thea-chat-title-wrap h1{font-size:1.05rem;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-title-wrap p{font-size:.82rem;color:#667085;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-header-actions{display:flex;gap:.35rem;align-items:center}.thea-chat-messages{flex:1;overflow-y:auto;padding:1rem;background:linear-gradient(180deg,#f7faf8 0%,#f2f6f3 100%)}.thea-chat-message{display:flex;margin:.45rem 0}.thea-chat-message.is-own{justify-content:flex-end}.thea-chat-message.is-other{justify-content:flex-start}.thea-chat-bubble{max-width:min(74%,680px);border-radius:22px;padding:.7rem .85rem;position:relative;box-shadow:0 2px 10px rgba(15,23,42,.055)}.thea-chat-message.is-own .thea-chat-bubble{background:#dcf8e8;border-bottom-right-radius:8px}.thea-chat-message.is-other .thea-chat-bubble{background:#fff;border-bottom-left-radius:8px}.thea-chat-message.is-mentioned .thea-chat-bubble{box-shadow:0 0 0 2px #ffc107 inset}.thea-chat-sender{font-size:.78rem;font-weight:850;color:#157347;margin-bottom:.15rem}.thea-chat-text{white-space:pre-wrap;word-break:break-word}.thea-chat-time{text-align:right;font-size:.68rem;color:#98a2b3;margin-top:.25rem}.thea-chat-attachments{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.45rem}.thea-chat-attachment{display:inline-flex;align-items:center;gap:.35rem;text-decoration:none;color:#1f2937;background:rgba(255,255,255,.55);border:1px solid rgba(16,24,40,.08);border-radius:14px;padding:.4rem;max-width:220px}.thea-chat-attachment.is-image{padding:0;overflow:hidden}.thea-chat-attachment img{display:block;width:140px;height:140px;object-fit:cover}.thea-chat-attachment span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-reactions{display:flex;gap:.25rem;flex-wrap:wrap;margin-top:.35rem}.thea-chat-reactions:empty{display:none}.thea-chat-reactions span{font-size:.8rem;background:#fff;border:1px solid #e6eaee;border-radius:999px;padding:.1rem .4rem}.thea-chat-composer{border-top:1px solid #e6eaee;background:#fff;padding:.6rem .75rem calc(.6rem + env(safe-area-inset-bottom,0px));z-index:3}.thea-chat-preview{display:flex;gap:.5rem;overflow-x:auto;padding-bottom:.35rem}.thea-chat-preview:empty{display:none}.thea-chat-preview-item{position:relative;flex:0 0 auto}.thea-chat-preview-item img{width:74px;height:74px;object-fit:cover;border-radius:14px;border:1px solid #e6eaee}.thea-chat-preview-remove{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:999px;border:0;background:#dc3545;color:#fff;display:flex;align-items:center;justify-content:center}.thea-chat-file-pill{padding:.5rem .65rem;border-radius:12px;background:#f2f4f7;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-composer-row{display:flex;align-items:flex-end;gap:.5rem}.thea-chat-composer textarea{flex:1;min-height:42px;max-height:140px;border:1px solid #d0d5dd;border-radius:22px;padding:.6rem .8rem;resize:none;outline:0}.thea-chat-composer textarea:focus{border-color:#198754;box-shadow:0 0 0 .2rem rgba(25,135,84,.14)}.thea-chat-icon-btn,.thea-chat-send{width:42px;height:42px;border-radius:999px;border:0;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.thea-chat-icon-btn{background:#f2f4f7;color:#344054;cursor:pointer}.thea-chat-send{background:#198754;color:#fff}.reaction-menu{position:fixed;display:flex;gap:6px;background:white;border:1px solid #d0d5dd;border-radius:999px;padding:5px 7px;box-shadow:0 10px 28px rgba(15,23,42,.18);z-index:1200}.reaction-menu.d-none{display:none!important}.reaction{font-size:20px;line-height:1;border:0;background:transparent;cursor:pointer;border-radius:999px;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center}.reaction:hover{background:#f2f4f7;transform:scale(1.08)}@media (max-width:767.98px){.thea-chat-page{padding:0;max-width:none}.thea-chat-list-header{padding:.9rem .85rem;margin:0;align-items:center}.thea-chat-list-header p{display:none}.thea-chat-list-card,.thea-chat-form-card,.thea-chat-shell{border-radius:0;border-left:0;border-right:0;box-shadow:none}.thea-chat-new-group{width:46px;height:46px;border-radius:999px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:0}.thea-chat-new-group i{font-size:1.25rem}.thea-chat-thread-row{padding:.85rem}.thea-chat-shell{height:calc(100vh - var(--navbar-height, 56px));min-height:0}.thea-chat-thread-header{position:sticky;top:0}.thea-chat-header-actions .btn:not(:last-child){display:none}.thea-chat-messages{padding:.75rem .65rem}.thea-chat-bubble{max-width:86%;border-radius:19px}.thea-chat-attachment img{width:118px;height:118px}.thea-chat-composer{position:sticky;bottom:calc(var(--thea-mobile-bottom-nav-height, 70px) + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 22px rgba(15,23,42,.08)}.thea-chat-form-card{padding:.9rem}.thea-chat-member-list{grid-template-columns:1fr}.thea-chat-members-head{display:block}.thea-chat-form-actions .btn{width:100%}}@media (prefers-color-scheme:dark){.thea-chat-list-card,.thea-chat-form-card,.thea-chat-shell,.thea-chat-composer,.thea-chat-thread-header{background:#161a24;color:#e9ecef;border-color:#2a2f3a}.thea-chat-messages{background:#0f131b}.thea-chat-message.is-other .thea-chat-bubble{background:#1f2633;color:#e9ecef}.thea-chat-message.is-own .thea-chat-bubble{background:#1f4d35;color:#e9ecef}.thea-chat-thread-row{border-bottom-color:#2a2f3a;color:#e9ecef}.thea-chat-thread-row:hover,.thea-chat-thread-row.is-unread{background:#18251d}.thea-chat-title-wrap p,.thea-chat-thread-subtitle,.thea-chat-thread-preview,.thea-chat-list-header p{color:#aab4c2}.thea-chat-composer textarea{background:#0f131b;color:#e9ecef;border-color:#2a2f3a}.reaction-menu{background:#161a24;border-color:#2a2f3a}.reaction:hover{background:#202634}.thea-chat-member-check{background:#161a24;border-color:#2a2f3a}.thea-chat-member-check:has(input:checked){background:#172a20}.thea-chat-file-pill{background:#202634}}

/* TheaCRM v2.6.234 – direct messages polish */
.thea-chat-list-actions{display:flex;gap:.55rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}.thea-chat-new-private,.thea-chat-new-group{border-radius:999px;font-weight:750;white-space:nowrap}.thea-chat-empty-actions{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-top:1rem}.thea-chat-user-search-wrap{position:relative;margin:.25rem 0 1rem}.thea-chat-user-search-wrap i{position:absolute;left:.95rem;top:50%;transform:translateY(-50%);color:#667085;pointer-events:none}.thea-chat-user-search-wrap .form-control{border-radius:999px;padding-left:2.5rem;min-height:46px}.thea-chat-direct-list{display:grid;gap:.55rem}.thea-chat-user-choice{display:flex;align-items:center;gap:.75rem;border:1px solid #e6eaee;border-radius:18px;padding:.75rem;text-decoration:none;color:#1f2937;background:#fff;transition:background .12s ease,border-color .12s ease,transform .12s ease}.thea-chat-user-choice:hover{background:#f2fbf5;border-color:#b8dfc7;color:#102018;transform:translateY(-1px)}.thea-chat-user-choice-main{min-width:0;flex:1}.thea-chat-user-choice-main strong,.thea-chat-user-choice-main small{display:block}.thea-chat-user-choice-main strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-user-choice-main small{color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-user-choice.is-hidden{display:none!important}.thea-chat-thread-subtitle .bi-lock-fill{font-size:.7rem;color:#98a2b3;margin-right:.18rem}@media (max-width:767.98px){.thea-chat-list-actions{gap:.35rem}.thea-chat-new-private,.thea-chat-new-group{width:46px;height:46px;border-radius:999px;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:0}.thea-chat-new-private i,.thea-chat-new-group i{font-size:1.25rem}.thea-chat-empty-actions .btn{flex:1 1 150px}.thea-chat-user-choice{border-radius:16px;padding:.7rem .65rem}.thea-chat-user-choice .btn{padding:.28rem .55rem}}@media (prefers-color-scheme:dark){.thea-chat-user-choice{background:#161a24;border-color:#2a2f3a;color:#e9ecef}.thea-chat-user-choice:hover{background:#172a20;border-color:#365241;color:#fff}.thea-chat-user-choice-main small{color:#aab4c2}.thea-chat-user-search-wrap .form-control{background:#0f131b;color:#e9ecef;border-color:#2a2f3a}.thea-chat-user-search-wrap i{color:#aab4c2}}


/* TheaCRM v2.6.234 – unread, mentions and notification polish */
.thea-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:.8rem;margin:0 0 .85rem}.thea-chat-search-wrap{position:relative;flex:1;min-width:220px}.thea-chat-search-wrap i{position:absolute;left:.9rem;top:50%;transform:translateY(-50%);color:#667085;pointer-events:none}.thea-chat-search-wrap .form-control{border-radius:999px;padding-left:2.4rem;min-height:44px;background:#fff}.thea-chat-filter-pills{display:flex;gap:.35rem;align-items:center;white-space:nowrap}.thea-chat-filter-pills button{border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:999px;min-height:38px;padding:.38rem .78rem;font-weight:750}.thea-chat-filter-pills button i{font-size:.58rem;margin-right:.28rem;color:#198754}.thea-chat-filter-pills button.is-active{border-color:#198754;background:#eaf7ef;color:#116938}.thea-chat-thread-row.has-mention{box-shadow:inset 4px 0 0 #f59f00}.thea-chat-thread-badges{display:flex;flex-direction:column;gap:.3rem;align-items:flex-end}.thea-chat-mention-badge{min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:#fff3cd;color:#8a5a00;border:1px solid #ffda6a;font-size:.78rem;font-weight:850;display:inline-flex;align-items:center;justify-content:center}.thea-chat-mention-chip{display:inline-flex;align-items:center;gap:.12rem;margin-right:.35rem;padding:.05rem .38rem;border-radius:999px;background:#fff3cd;color:#8a5a00;font-weight:800;font-size:.72rem}.thea-chat-message.is-new-unread .thea-chat-bubble{outline:2px solid rgba(25,135,84,.22);outline-offset:2px}.thea-chat-message.is-mentioned .thea-chat-bubble{box-shadow:0 0 0 2px #ffc107 inset,0 2px 10px rgba(15,23,42,.055)}.thea-chat-mention-label{display:inline-flex;align-items:center;gap:.25rem;margin-bottom:.35rem;padding:.16rem .48rem;border-radius:999px;background:#fff3cd;color:#8a5a00;font-size:.76rem;font-weight:850}.thea-tribute-row{display:flex;align-items:center;gap:.55rem}.thea-tribute-row span:last-child{display:flex;flex-direction:column;min-width:0}.thea-tribute-row small{font-size:.73rem;color:#667085;font-weight:500}.thea-tribute-avatar{width:28px;height:28px;border-radius:999px;background:#e9f7ef;color:#157347;font-size:.75rem;font-weight:850;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}.thea-tribute-empty{display:block;padding:.45rem .65rem;color:#667085}.tribute-container ul{border-radius:16px!important;box-shadow:0 14px 30px rgba(15,23,42,.16)!important;border:1px solid #e6eaee!important;overflow:hidden!important}.tribute-container li{padding:.48rem .65rem!important}.tribute-container li.highlight{background:#eaf7ef!important;color:#102018!important}.thea-chat-empty.is-filter-empty{border-top:1px solid #eef2f3}
@media (max-width:767.98px){.thea-chat-toolbar{display:block;padding:.65rem .85rem;margin:0;border-top:1px solid #eef2f3}.thea-chat-search-wrap{min-width:0;margin-bottom:.55rem}.thea-chat-filter-pills{overflow-x:auto;padding-bottom:.15rem}.thea-chat-filter-pills button{flex:0 0 auto}.thea-chat-thread-badges{gap:.22rem}.thea-chat-mention-badge,.thea-chat-unread-badge{min-width:22px;height:22px;font-size:.72rem}.thea-chat-thread-row.has-mention{box-shadow:inset 3px 0 0 #f59f00}.tribute-container{max-width:92vw!important}.thea-chat-composer textarea::placeholder{font-size:.92rem}}
@media (prefers-color-scheme:dark){.thea-chat-search-wrap .form-control,.thea-chat-filter-pills button{background:#161a24;border-color:#2a2f3a;color:#e9ecef}.thea-chat-filter-pills button.is-active{background:#172a20;border-color:#365241;color:#9ee6b6}.thea-chat-mention-badge,.thea-chat-mention-chip,.thea-chat-mention-label{background:#392b0b;color:#ffd98a;border-color:#6f5212}.thea-chat-empty.is-filter-empty{border-top-color:#2a2f3a}.thea-tribute-row small,.thea-tribute-empty{color:#aab4c2}.thea-tribute-avatar{background:#213529;color:#9ee6b6}.tribute-container ul{background:#161a24!important;border-color:#2a2f3a!important}.tribute-container li{color:#e9ecef!important}.tribute-container li.highlight{background:#172a20!important;color:#fff!important}}

/* TheaCRM v2.6.234 – context chat list polish */
.thea-chat-context-note{display:inline-flex;align-items:center;gap:.32rem;border:1px solid #d8ebe0;background:#f0fbf4;color:#1f6b3a;border-radius:999px;padding:.36rem .62rem;font-size:.82rem;font-weight:800;white-space:nowrap}.thea-chat-muted-note{margin:.45rem auto 0;color:#667085;font-size:.92rem;max-width:32rem}.thea-chat-type-chip{display:inline-flex;align-items:center;justify-content:center;margin-right:.32rem;border-radius:999px;padding:.07rem .42rem;font-size:.72rem;font-weight:850;line-height:1.35;border:1px solid transparent}.thea-chat-type-chip.is-task{background:#eef6ff;color:#175cd3;border-color:#bfd7ff}.thea-chat-type-chip.is-project{background:#f0fbf4;color:#1f6b3a;border-color:#cbe8d4}.thea-chat-thread-row[data-type="task"],.thea-chat-thread-row[data-type="project"]{background:linear-gradient(90deg,rgba(25,135,84,.035),rgba(255,255,255,0) 36%)}.thea-chat-thread-row[data-type="task"] .thea-chat-avatar{background:#eef6ff;color:#175cd3}.thea-chat-thread-row[data-type="project"] .thea-chat-avatar{background:#eefbf3;color:#2e8054}
@media (max-width:767.98px){.thea-chat-context-note{font-size:0;width:46px;height:46px;padding:0;justify-content:center}.thea-chat-context-note i{font-size:1.1rem}.thea-chat-type-chip{font-size:.68rem}.thea-chat-list-header h1{font-size:1.35rem}}
@media (prefers-color-scheme:dark){.thea-chat-context-note{background:#172a20;border-color:#365241;color:#9ee6b6}.thea-chat-muted-note{color:#aab4c2}.thea-chat-type-chip.is-task{background:#10243f;color:#9cc8ff;border-color:#244a78}.thea-chat-type-chip.is-project{background:#172a20;color:#9ee6b6;border-color:#365241}.thea-chat-thread-row[data-type="task"],.thea-chat-thread-row[data-type="project"]{background:linear-gradient(90deg,rgba(158,230,182,.035),rgba(255,255,255,0) 36%)}}

/* TheaCRM v2.6.235 – customer chat, gallery, pinned messages and administration */
.thea-chat-admin-panel{border-bottom:1px solid #eef2f3;background:#fbfdfb;padding:.65rem .85rem;display:grid;gap:.65rem}.thea-chat-admin-actions{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.thea-chat-admin-actions form{display:inline-flex;margin:0}.thea-chat-customer-box{display:grid;gap:.55rem;border:1px solid #d8ebe0;background:#f2fbf5;border-radius:16px;padding:.75rem}.thea-chat-customer-box strong{display:flex;align-items:center;gap:.35rem;color:#1f6b3a}.thea-chat-customer-box small{display:block;color:#667085;margin-top:.12rem}.thea-chat-customer-link-row,.thea-chat-customer-enable{display:flex;gap:.45rem;align-items:center}.thea-chat-customer-link-row .form-control,.thea-chat-customer-enable .form-control{min-width:0}.thea-chat-pinned-panel{border-bottom:1px solid #eef2f3;background:#fffaf0;padding:.7rem .85rem}.thea-chat-pinned-title{font-weight:850;color:#8a5a00;margin-bottom:.4rem;display:flex;align-items:center;gap:.35rem}.thea-chat-pinned-list{display:flex;gap:.45rem;overflow:auto;padding-bottom:.1rem}.thea-chat-pinned-list a{display:block;flex:0 0 min(320px,82vw);border:1px solid #ffda6a;background:#fff;border-radius:14px;padding:.45rem .65rem;text-decoration:none;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-thread-tools{display:flex;align-items:center;gap:.7rem;padding:.65rem .85rem;border-bottom:1px solid #eef2f3;background:#fff}.thea-chat-search-wrap.in-thread{max-width:420px;flex:1}.thea-chat-typing{color:#667085;font-size:.9rem;font-weight:700;white-space:nowrap}.thea-chat-message.is-pinned .thea-chat-bubble{box-shadow:0 0 0 2px rgba(245,159,0,.35) inset,0 2px 10px rgba(15,23,42,.055)}.thea-chat-pin-label{display:inline-flex;align-items:center;gap:.25rem;margin-bottom:.35rem;padding:.16rem .48rem;border-radius:999px;background:#fff3cd;color:#8a5a00;font-size:.76rem;font-weight:850}.thea-chat-customer-chip{margin-left:.35rem;padding:.06rem .38rem;border-radius:999px;background:#eaf7ef;color:#1f6b3a;font-size:.7rem;font-weight:850}.thea-chat-message-actions{display:flex;justify-content:flex-end;margin-top:.25rem}.thea-chat-message-actions form{margin:0}.thea-chat-message-actions button{border:0;background:transparent;color:#667085;border-radius:999px;width:28px;height:24px;display:inline-flex;align-items:center;justify-content:center}.thea-chat-message-actions button:hover{background:rgba(25,135,84,.09);color:#1f6b3a}.thea-chat-readmark{color:#667085;font-size:.78rem}.thea-chat-attachment.is-pdf i{color:#dc3545}.thea-chat-attachment.is-doc i{color:#175cd3}.thea-chat-attachment.is-xls i{color:#198754}.thea-chat-attachment.is-zip i{color:#8a5a00}.thea-chat-gallery-overlay{position:fixed;inset:0;background:rgba(8,13,22,.92);z-index:3000;display:none;align-items:center;justify-content:center;padding:4.5rem 1rem 3.8rem}.thea-chat-gallery-overlay.is-open{display:flex}.thea-chat-gallery-overlay img{max-width:96vw;max-height:80vh;object-fit:contain;border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.42)}.thea-chat-gallery-close,.thea-chat-gallery-prev,.thea-chat-gallery-next{position:absolute;border:0;background:rgba(255,255,255,.14);color:#fff;border-radius:999px;display:flex;align-items:center;justify-content:center}.thea-chat-gallery-close{top:1rem;right:1rem;width:44px;height:44px;font-size:2rem}.thea-chat-gallery-prev,.thea-chat-gallery-next{top:50%;transform:translateY(-50%);width:46px;height:62px;font-size:3rem}.thea-chat-gallery-prev{left:.8rem}.thea-chat-gallery-next{right:.8rem}.thea-chat-gallery-download{position:absolute;right:4.4rem;top:1rem;width:44px;height:44px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;display:flex;align-items:center;justify-content:center;text-decoration:none}.thea-chat-gallery-title{position:absolute;left:1rem;right:1rem;bottom:1rem;color:#fff;text-align:center;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thea-chat-public-body{margin:0;background:#f4f7f5;color:#1f2937;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}.thea-chat-public-page{max-width:900px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column;background:#fff}.thea-chat-public-header{display:flex;gap:.8rem;align-items:center;padding:1rem;border-bottom:1px solid #e6eaee;background:#f2fbf5}.thea-chat-public-header h1{font-size:1.25rem;margin:0}.thea-chat-public-header p{margin:.2rem 0 0;color:#667085}.thea-chat-messages.is-public{min-height:48vh;max-height:none;flex:1}.thea-chat-composer.is-public{position:sticky;bottom:0}.thea-chat-public-customer-row{display:grid;grid-template-columns:1fr 1fr;gap:.45rem;margin-bottom:.45rem}.thea-chat-public-customer-row .form-control{border:1px solid #d0d5dd;border-radius:12px;padding:.55rem .7rem}.thea-chat-thread-row[data-pinned="1"]{box-shadow:inset 4px 0 0 #198754}.thea-chat-thread-row[data-muted="1"]{opacity:.76}
@media (max-width:767.98px){.thea-chat-admin-panel{padding:.55rem .65rem}.thea-chat-admin-actions{overflow-x:auto;flex-wrap:nowrap;padding-bottom:.15rem}.thea-chat-admin-actions .btn{white-space:nowrap}.thea-chat-customer-link-row,.thea-chat-customer-enable{display:grid;grid-template-columns:1fr auto;align-items:stretch}.thea-chat-customer-link-row form{grid-column:1/-1}.thea-chat-customer-enable .btn{grid-column:1/-1}.thea-chat-thread-tools{display:block;padding:.55rem .65rem}.thea-chat-search-wrap.in-thread{max-width:none}.thea-chat-typing{margin-top:.35rem}.thea-chat-gallery-prev,.thea-chat-gallery-next{width:40px;height:54px;font-size:2.5rem}.thea-chat-gallery-download{right:4rem}.thea-chat-public-page{max-width:none}.thea-chat-public-header{padding:.85rem}.thea-chat-public-customer-row{grid-template-columns:1fr}.thea-chat-messages.is-public{padding-bottom:1rem}.thea-chat-composer.is-public{bottom:0}.thea-chat-pinned-list a{flex-basis:84vw}}
@media (prefers-color-scheme:dark){.thea-chat-admin-panel,.thea-chat-thread-tools{background:#161a24;border-color:#2a2f3a}.thea-chat-customer-box{background:#172a20;border-color:#365241}.thea-chat-customer-box small,.thea-chat-typing,.thea-chat-readmark{color:#aab4c2}.thea-chat-pinned-panel{background:#221b0d;border-color:#2a2f3a}.thea-chat-pinned-list a{background:#161a24;border-color:#6f5212;color:#e9ecef}.thea-chat-pin-label{background:#392b0b;color:#ffd98a}.thea-chat-message-actions button{color:#aab4c2}.thea-chat-message-actions button:hover{background:#202634;color:#9ee6b6}.thea-chat-public-body{background:#0f131b;color:#e9ecef}.thea-chat-public-page,.thea-chat-public-header{background:#161a24;color:#e9ecef;border-color:#2a2f3a}.thea-chat-public-header p{color:#aab4c2}.thea-chat-public-customer-row .form-control{background:#0f131b;color:#e9ecef;border-color:#2a2f3a}}
