/* Conversation workspace: scoped to keep other dashboard views unchanged. */
.cx-page{max-width:1500px;margin:auto;padding:32px 36px!important;width:100%}.cx-pagehead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}.cx-eyebrow{font-size:10px;letter-spacing:.12em;color:var(--muted);font-weight:700;margin-bottom:8px}.cx-pagehead h1{font-size:27px;letter-spacing:-.7px;margin:0 0 8px}.cx-pagehead p{font-size:13px;color:#747c8e;line-height:1.6}.cx-pageactions,.cx-listfoot>div{display:flex;align-items:center;gap:10px}.cx-btn,.cx-icon{font:inherit;font-size:12px;font-weight:550;border:1px solid #dfe3ec;border-radius:8px;background:white;color:#424a5e;padding:9px 12px;cursor:pointer;display:inline-flex;gap:6px;align-items:center;justify-content:center;line-height:1.3;text-decoration:none}.cx-btn:hover,.cx-icon:hover{background:#f2f5fc;border-color:#c5cde0}.cx-btn:disabled,.cx-icon:disabled{opacity:.45;cursor:default}.cx-primary{color:white;background:var(--brand);border-color:var(--brand)}.cx-primary:hover{background:#244cc6;border-color:#244cc6}.cx-icon{font-size:22px;width:32px;height:32px;padding:0}.cx-filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:20px}.cx-filters button{border:1px solid transparent;background:transparent;padding:9px 12px;border-radius:8px;font:inherit;font-size:12px;color:#677085;cursor:pointer}.cx-filters button.active{background:#e9eeff;color:#3159cd;border-color:#d9e1fe;font-weight:650}.cx-filters span{font-size:10px;background:#e8ebf1;padding:2px 5px;border-radius:4px;margin-left:4px}.cx-toolbar{display:flex;justify-content:space-between;gap:20px;margin-bottom:16px}.cx-search{display:flex;align-items:center;gap:10px;flex:1;max-width:480px;border:1px solid #dfe3ec;border-radius:9px;background:white;padding:0 12px;color:#778197}.cx-search span{font-size:23px}.cx-search input{width:100%;border:0;outline:0;font:inherit;font-size:12px;padding:12px 0;background:transparent}.cx-assignee-filter{display:flex;gap:8px;align-items:center;font-size:11px;color:#778197}.cx-assignee-filter select,.cx-select{border:1px solid #dfe3ec;border-radius:8px;background:white;padding:10px;font:inherit;font-size:12px;color:#424a5e;max-width:100%}.cx-library{border:1px solid #e3e7ee;background:white;border-radius:12px;overflow:hidden}.cx-tablehead,.cx-conv{display:grid;grid-template-columns:minmax(0,1fr) 150px 135px 70px;align-items:center;gap:18px;padding:14px 20px}.cx-tablehead{background:#fafbfd;color:#8991a1;font-size:10px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--line)}.cx-conv{width:100%;text-align:left;font:inherit;background:white;border:0;border-bottom:1px solid #eef0f5;cursor:pointer;padding-top:20px;padding-bottom:20px;color:inherit}.cx-conv:last-child{border-bottom:0}.cx-conv:hover{background:#fafbff}.cx-conv:focus-visible,.cx-btn:focus-visible,.cx-icon:focus-visible,.cx-tabs button:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.cx-intro{display:flex;align-items:center;min-width:0;gap:12px}.cx-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.cx-name{font-size:11px;color:#778197;display:flex;gap:8px;align-items:center}.cx-subject{font-size:13px;font-weight:600;color:#293146;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cx-snippet{font-size:11px;color:#81899a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cx-unread .cx-subject{font-weight:750}.cx-dot{display:inline-block;width:6px;height:6px;background:var(--brand);border-radius:50%}.cx-owner,.cx-age{font-size:11px;color:#7a8293}.cx-age{text-align:right}.cx-badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:550;padding:5px 7px;border-radius:5px;background:#eef1f5;color:#687387;width:max-content}.cx-badge.bot{background:#edf1ff;color:#4567cf}.cx-badge.pending_human{background:#fff4df;color:#9f6a12}.cx-badge.active,.cx-badge.resolved{background:#eaf6ef;color:#387854}.cx-listfoot{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:16px;color:#81899a;font-size:11px}.cx-empty{padding:52px 20px;text-align:center;font-size:13px;color:#81899a;line-height:1.8}.cx-empty strong{display:block;color:#424a5e;font-size:14px;margin-bottom:5px}.cx-dialog{border:1px solid #e2e6ef;border-radius:15px;padding:0;margin:auto;width:min(1180px,calc(100vw - 64px));height:min(820px,calc(100dvh - 64px));max-width:none;max-height:none;color:var(--ink);background:white;box-shadow:0 30px 100px #11172e30;overflow:hidden}.cx-dialog[open]{display:flex;flex-direction:column}.cx-dialog::backdrop,.cx-confirm::backdrop{background:#121c2a70;backdrop-filter:blur(3px)}.cx-dialoghead{display:flex;gap:12px;padding:20px 24px;align-items:center;border-bottom:1px solid var(--line);flex-shrink:0}.cx-identity{flex:1;min-width:0}.cx-identity h2{font-size:14px;margin:0 0 5px}.cx-identity p{font-size:11px;color:#81899a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:7px}.cx-identity #chMeta{font-size:10px;color:#81899a;display:flex;gap:8px;align-items:center}.cx-dialognav{display:flex;gap:6px;align-self:flex-start}.cx-dialogtools{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 24px;border-bottom:1px solid var(--line);flex-shrink:0}.cx-tabs{display:flex;gap:3px}.cx-tabs button,.cx-composehead button{background:none;border:0;border-radius:7px;padding:8px 9px;color:#7a8293;font:inherit;font-size:12px;cursor:pointer}.cx-tabs button.active{background:#eef2ff;color:#3159cd;font-weight:600}.cx-tabs span{font-size:10px;padding:1px 4px;background:#e4e9f4;border-radius:3px}.cx-actions{display:flex;align-items:center;gap:7px}.cx-more{position:relative}.cx-more summary{list-style:none}.cx-more summary::-webkit-details-marker{display:none}.cx-more>div{position:absolute;right:0;top:40px;min-width:200px;background:white;border:1px solid #e0e5ed;border-radius:9px;box-shadow:0 12px 35px #12203c20;z-index:5;padding:5px}.cx-more button{display:block;border:0;background:white;text-align:left;width:100%;font:inherit;font-size:12px;padding:12px;cursor:pointer;border-radius:5px}.cx-more button:hover{background:#f2f5fc}.cx-more #banBtn{color:#c44a50}.cx-workspace{display:flex;flex:1;min-height:0;position:relative}.cx-thread{min-width:0;flex:1;display:flex;flex-direction:column}.cx-messages{flex:1;min-height:0;overflow-y:auto;padding:24px 32px;background:#fcfcfe;overscroll-behavior:contain}.cx-context{display:flex;align-items:center;gap:10px;border:1px solid #e4e8f0;background:white;border-radius:8px;padding:12px;margin-bottom:22px;font-size:11px;line-height:1.6;color:#8590a3}.cx-context div{min-width:0;flex:1}.cx-context a{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#4363bd;text-decoration:none;font-size:12px}.cx-date{text-align:center;color:#939aac;font-size:10px;margin:16px 0 23px}.cx-message{max-width:85%;margin:0 0 20px;width:max-content;min-width:120px}.cx-message.agent,.cx-message.bot{margin-left:auto}.cx-message .cx-author{display:block;font-size:10px;color:#81899a;margin-bottom:6px}.cx-message .cx-text{font-size:13px;line-height:1.7;border:1px solid #e8ebf2;background:white;padding:12px 15px;border-radius:0 10px 10px 10px;overflow-wrap:anywhere;white-space:pre-wrap}.cx-message.bot .cx-text,.cx-message.agent .cx-text{background:#eff3ff;border-color:#e5eafa;border-radius:10px 0 10px 10px}.cx-message.note .cx-text{background:#fff9e9;border-color:#f2e6c5}.cx-message.note .cx-author{color:#9d761d}.cx-message time{display:block;font-size:9px;color:#949cad;margin-top:5px;text-align:right}.cx-system{font-size:10px;color:#8a93a4;text-align:center;margin:16px 0;line-height:1.7}.cx-activityitem{padding:14px 0;border-bottom:1px solid #eceff5;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.cx-activityitem small{display:block;color:#939aac;font-size:10px}.cx-activityitem a{color:#4567bd;text-decoration:none}.cx-products{display:grid;gap:8px;margin-top:10px}.cx-product{background:white;border:1px solid #e2e7f2;padding:12px;border-radius:8px;display:flex;gap:10px;font-size:11px;line-height:1.6;text-decoration:none;color:inherit}.cx-product img{width:46px;height:46px;object-fit:contain}.cx-product strong{display:block;color:#35466e}.cx-product small{display:block;color:#7a8499}.cx-product a{color:#3159cd}.cx-total{font-size:12px;font-weight:650;margin-top:10px}.cx-compose{border-top:1px solid var(--line);background:white;padding:12px 24px 10px;flex-shrink:0}.cx-composehead{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:5px}.cx-composehead button{font-size:10px;padding:6px 8px}.cx-composehead button.active{color:#3159cd;background:#eef2ff;font-weight:600}.cx-composehead>span{font-size:10px;color:#8b94a4;margin-left:auto}.cx-composebody{display:flex;align-items:flex-end;gap:10px}.cx-composebody textarea{flex:1;min-width:0;border:1px solid #e0e5ef;border-radius:8px;padding:10px 12px;resize:vertical;max-height:140px;min-height:65px;font:inherit;font-size:12px;line-height:1.6;color:var(--ink);background:white}.cx-composebody textarea:focus{outline:2px solid #c8d4ff}.cx-composebody textarea:disabled{background:#f8f9fb}.cx-composefoot{font-size:9px;color:#9aa1b0;margin-top:6px}.cx-compose.notemode{background:#fffdf5}.cx-compose.notemode .cx-composehead button.active{background:#fff1cc;color:#927016}.cx-quick{display:flex;gap:5px;overflow-x:auto;padding:2px 0 7px}.cx-quick:empty{display:none}.cx-quick button{border:1px solid #e3e8f1;background:white;border-radius:5px;color:#7a8498;font-size:10px;padding:4px 7px;white-space:nowrap;cursor:pointer}.cx-details{width:270px;flex-shrink:0;overflow-y:auto;border-left:1px solid var(--line);background:white;padding:16px}.cx-detailshead{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.cx-detailshead h3{font-size:12px}.cx-detailssection{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.7;overflow-wrap:anywhere}.cx-detailssection label,.cx-detailssection dt{display:block;font-size:10px;color:#8a93a4;margin-bottom:5px}.cx-detailssection dd{margin:0 0 12px}.cx-select{width:100%}.cx-details a{color:#4567bd}.cx-confirm{width:min(440px,calc(100vw - 32px));border:0;border-radius:12px;padding:24px;margin:auto;box-shadow:0 20px 80px #11172e40}.cx-confirm h2{font-size:18px;margin-bottom:12px}.cx-confirm p{font-size:13px;line-height:1.7;color:#7a8498;margin-bottom:16px}.cx-confirm label{display:block;font-size:12px;margin:14px 0 7px}.cx-confirm textarea,.cx-confirm select{width:100%;font:inherit;font-size:13px;padding:10px;border:1px solid #dfe3ec;border-radius:7px}.cx-confirm footer{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}.cx-confirm #convActionError{color:#c33d4c;font-size:12px}.role-viewer #convDialog .cx-actions #claimBtn,.role-viewer #convDialog .cx-actions #resolveBtn,.role-viewer #convMore{display:none!important}
@media(max-width:1050px){.cx-page{padding:26px 22px!important}.cx-tablehead,.cx-conv{grid-template-columns:minmax(0,1fr) 132px 95px 45px;gap:10px;padding-left:16px;padding-right:16px}.cx-dialog{width:calc(100vw - 32px);height:calc(100dvh - 32px)}.cx-dialogtools{padding:10px 16px}.cx-messages{padding:20px}.cx-details{width:240px}.cx-tabs button{font-size:11px;padding:8px}.cx-actions .cx-btn{font-size:10px;padding:8px}}
@media(max-width:760px){.cx-pagehead{align-items:flex-start}.cx-pagehead h1{font-size:23px}.cx-pageactions{flex-direction:column;align-items:stretch}.cx-page{padding:22px 16px!important}.cx-tablehead{display:none}.cx-conv{grid-template-columns:minmax(0,1fr) 65px;padding:16px;gap:9px}.cx-intro{grid-column:1/-1}.cx-conv .cx-badge{margin-left:50px}.cx-owner{grid-column:1;font-size:10px;margin-left:50px}.cx-age{grid-row:2;grid-column:2}.cx-dialog{width:100vw;height:100dvh;border:0;border-radius:0}.cx-dialoghead{padding:14px 16px}.cx-dialogtools{flex-wrap:wrap;padding:9px 12px;gap:8px}.cx-actions{margin-left:auto}.cx-messages{padding:18px 16px}.cx-message{max-width:94%}.cx-details{position:absolute;inset:0 0 0 auto;width:min(320px,100%);z-index:4;box-shadow:-15px 0 40px #17244420}.cx-compose{padding:10px 12px}.cx-composebody{gap:6px}.cx-composehead>span{width:100%;margin-left:8px}.cx-composebody textarea{min-height:62px}.cx-identity p{max-width:52vw}.cx-toolbar{flex-direction:column;gap:10px}.cx-search{max-width:none}.cx-assignee-filter{justify-content:flex-end}.cx-listfoot{flex-wrap:wrap}.cx-filters{gap:2px}.cx-filters button{font-size:11px;padding:8px}.cx-dialoghead>.avatar{display:none}.cx-dialognav{gap:3px}.cx-dialognav .cx-icon{width:28px;height:28px}.cx-pageactions .cx-btn{font-size:10px}.cx-actions .cx-btn{font-size:10px}.cx-composefoot{font-size:8px}.cx-composebody .cx-btn{padding:10px}}

.cx-text a{color:#3159cd;text-underline-offset:2px}.cx-composefoot{font-size:10px}.cx-dialog .cx-text{font-size:13px}
