body{margin:0}.markdown img{max-width:100%}.markdown p:last-child{margin-bottom:0}.plain-text{white-space:pre-wrap;word-break:break-word}pre.json{white-space:pre-wrap;word-break:break-word;background:#fafafa;max-height:480px;padding:12px;font-size:12px;overflow:auto}:root{--chat-bg:#e7ebf0;--chat-in:#fff;--chat-operator:#effdde;--chat-bot:#eaf3fd;--chat-note:#fff7d1;--chat-note-border:#f0c419;--chat-accent:#3390ec;--chat-muted:#707579;--chat-pill:#546e7a6b}.chat-avatar{color:#fff;letter-spacing:.02em;-webkit-user-select:none;user-select:none;border-radius:50%;flex:none;justify-content:center;align-items:center;font-weight:600;display:inline-flex}.chat-scroll{background:var(--chat-bg);flex:1;min-height:0;padding:16px 24px 20px;overflow-y:auto}.chat-scroll-page{border-radius:8px;max-height:70vh}.chat-inner{flex-direction:column;gap:6px;max-width:920px;margin:0 auto;display:flex}.chat-day{z-index:1;justify-content:center;margin:8px 0;display:flex;position:sticky;top:0}.chat-day span,.desk-empty span,.desk-empty-chat span{background:var(--chat-pill);color:#fff;border-radius:14px;padding:3px 12px;font-size:14px}.chat-row{display:flex}.chat-row-in{justify-content:flex-start}.chat-row-out{justify-content:flex-end}.chat-bubble{background:var(--chat-in);overflow-wrap:anywhere;border-radius:14px;max-width:min(680px,85%);padding:7px 12px 5px;font-size:15px;box-shadow:0 1px 1px #10232f1f}.chat-row-in .chat-bubble{border-bottom-left-radius:4px}.chat-row-out .chat-bubble{border-bottom-right-radius:4px}.chat-bubble-operator{background:var(--chat-operator)}.chat-bubble-bot{background:var(--chat-bot)}.chat-bubble-note{background:var(--chat-note);border:1px dashed var(--chat-note-border);box-shadow:none}.chat-bubble .markdown p{margin:0 0 6px}.chat-bubble .markdown ul,.chat-bubble .markdown ol{margin:0 0 6px;padding-left:20px}.chat-author{margin-bottom:2px;font-size:14px;font-weight:600}.chat-author-bot{color:var(--chat-accent)}.chat-author-operator{color:#3a9a3a}.chat-author-note{color:#ad6800}.chat-attachments{flex-wrap:wrap;gap:6px;margin:2px 0 4px;display:flex}.chat-photo{object-fit:cover;border-radius:8px}.chat-file{color:inherit;align-items:center;gap:8px;padding:2px 0;display:flex}.chat-file-icon{color:var(--chat-accent);font-size:26px}.chat-file-name{font-weight:500;display:block}.chat-file-size{color:var(--chat-muted);font-size:13px;display:block}.chat-file-missing{color:var(--chat-muted);font-size:14px}.chat-bot-meta{color:var(--chat-muted);border-top:1px solid #0000000f;margin-top:4px;padding-top:4px;font-size:13px}.chat-delivery-error{color:#cf1322;margin-top:4px;font-size:13px}.chat-time{color:#8a9aa6;justify-content:flex-end;align-items:center;gap:4px;margin-top:2px;font-size:12px;display:flex}.chat-mark-sent{color:#4fae4e}.chat-mark-failed{color:#ff4d4f}.chat-down{z-index:2;position:absolute;bottom:150px;right:32px;box-shadow:0 2px 6px #00000026}.desk{background:#fff;height:100%;font-size:15px;display:flex;position:relative}.desk-list{border-right:1px solid #f0f0f0;flex-direction:column;flex:none;width:400px;min-height:0;display:flex}.desk-list-head{border-bottom:1px solid #f0f0f0;flex-direction:column;gap:6px;padding:14px 14px 10px;display:flex}.desk-queues{flex-wrap:wrap;gap:6px;margin:4px 0;display:flex}.desk-queue{color:#595959;font:inherit;cursor:pointer;background:#f0f2f5;border:0;border-radius:15px;align-items:center;gap:6px;padding:2px 12px;font-size:14px;line-height:26px;display:inline-flex}.desk-queue:hover{background:#e6e9ee}.desk-queue-active,.desk-queue-active:hover{background:var(--chat-accent);color:#fff}.desk-queue-count{text-align:center;background:#0000001f;border-radius:10px;min-width:20px;padding:0 6px;font-size:12px;line-height:18px}.desk-queue-count-hot{color:#fff;background:#4fae4e}.desk-queue-active .desk-queue-count{color:#fff;background:#ffffff4d}.tags-editor-block>.ant-space-item:first-child{flex:1;min-width:0}.desk-items{flex:1;min-height:0;padding:8px;overflow-y:auto}.desk-items-stale{opacity:.55;transition:opacity .15s}.desk-item{width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;gap:12px;padding:10px 12px;display:flex}.desk-item:hover{background:#f4f4f5}.desk-item-active,.desk-item-active:hover{background:var(--chat-accent);color:#fff}.desk-item-body{flex-direction:column;flex:1;min-width:0;display:flex}.desk-item-top,.desk-item-bottom{align-items:center;gap:8px;display:flex}.desk-item-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:500;overflow:hidden}.desk-item-awaiting .desk-item-name{font-weight:700}.desk-item-time{color:#8c8c8c;flex:none;font-size:13px}.desk-item-preview{min-width:0;color:var(--chat-muted);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:14px;overflow:hidden}.desk-item-author{color:var(--chat-accent)}.desk-item-empty{font-style:italic}.desk-badge{background:#4fae4e;border-radius:50%;flex:none;width:10px;height:10px}.desk-item-meta{color:#8c8c8c;white-space:nowrap;align-items:center;gap:6px;margin-top:3px;font-size:13px;display:flex;overflow:hidden}.desk-item-reason{text-overflow:ellipsis;overflow:hidden}.desk-item-tag{background:#0000000d;border-radius:8px;padding:0 6px}.desk-item-active .desk-item-time,.desk-item-active .desk-item-preview,.desk-item-active .desk-item-author,.desk-item-active .desk-item-meta{color:#ffffffe0}.desk-item-active .desk-badge{background:#fff}.desk-item-active .desk-item-tag{background:#fff3}.status-dot{border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.desk-chat{background:var(--chat-bg);flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.desk-empty,.desk-empty-chat{justify-content:center;align-items:center}.desk-empty-chat{min-height:200px;display:flex}.desk-chat-head{background:#fff;border-bottom:1px solid #f0f0f0;align-items:center;gap:12px;padding:10px 20px;display:flex}.desk-back{display:none}.desk-chat-title{flex-direction:column;flex:1;min-width:0;display:flex}.desk-chat-name{font-size:16px}.desk-chat-subtitle{color:#8c8c8c;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.desk-chat-actions{flex:none}.desk-typing{color:var(--chat-accent)}.desk-viewers{color:#595959}.desk-banner{border-bottom:1px solid #f0f0f0;padding:8px 20px;font-size:14px}.desk-banner-open{background:#e6f4ff}.desk-banner-escalated{background:#fff7e6}.desk-banner-closed{color:#595959;background:#fafafa}.composer{background:#fff;border-top:1px solid #f0f0f0;padding:10px 24px 14px}.composer-note{background:#fffbe6}.composer-inner{max-width:920px;margin:0 auto;position:relative}.composer-bar{color:#8c8c8c;flex-wrap:wrap;align-items:center;gap:4px 12px;margin-bottom:8px;font-size:13px;display:flex}.composer .composer-mode .ant-segmented-item-selected,.composer .composer-mode .ant-segmented-thumb{background:var(--chat-accent);color:#fff}.composer-note .composer-mode .ant-segmented-item-selected,.composer-note .composer-mode .ant-segmented-thumb{background:var(--chat-note-border);color:#3d2e00}.composer-mode-short{display:none}.composer-hint{flex:1;min-width:0}.composer-count{flex:none;font-size:13px}.composer-row{background:#fff;border:1px solid #e5e5e5;border-radius:24px;align-items:flex-end;gap:6px;padding:5px 6px 5px 4px;display:flex}.composer-row:focus-within{border-color:var(--chat-accent)}.composer-row .ant-input:focus-visible{outline:none}.composer-note .composer-row{border:1px dashed var(--chat-note-border);background:var(--chat-note)}.composer-note .composer-row:focus-within{border-style:solid;border-color:var(--chat-note-border)}.composer-suggest{z-index:3;background:#fff;border-radius:10px;margin-bottom:6px;position:absolute;bottom:100%;left:0;right:0;overflow:hidden;box-shadow:0 4px 16px #00000026}.template-list{max-height:320px;overflow-y:auto}.template-item{width:100%;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;flex-direction:column;padding:10px 14px;display:flex}.template-item:hover,.template-item-active{background:#f0f7ff}.template-title{font-weight:600}.template-text{color:var(--chat-muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:13px;display:-webkit-box;overflow:hidden}.kb-picker{grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:16px;height:60vh;display:grid}.kb-picker-list,.kb-picker-preview{min-height:0;overflow-y:auto}.kb-picker-list{flex-direction:column;gap:8px;display:flex}.kb-picker-preview{background:#fafafa;border-radius:8px;padding:12px 16px}.kb-hit{width:100%;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;flex-direction:column;align-items:flex-start;gap:4px;padding:8px 10px;display:flex}.kb-hit-title{font-weight:500}.kb-hit:hover,.kb-hit-active{background:#f0f7ff}.kb-hit-snippet{color:var(--chat-muted);font-size:13px}.desk-info{background:#fff;border-left:1px solid #f0f0f0;flex:none;width:360px;padding:14px 20px 24px;overflow-y:auto}.desk-info-head{justify-content:space-between;align-items:center;display:flex}.desk-info-user{text-align:center;flex-direction:column;align-items:center;margin:12px 0 16px;display:flex}.desk-info-list{margin-bottom:12px}.desk-info-tickets{flex-direction:column;margin-top:4px;display:flex}.desk-info-ticket{color:inherit;border-radius:6px;align-items:center;gap:8px;padding:6px 4px;display:flex}.desk-info-ticket:hover{color:inherit;background:#f4f4f5}.desk-info-ticket-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.ant-descriptions.user-info .ant-descriptions-view table{width:100%}.user-email{flex-direction:column;min-width:0;display:inline-flex}.user-email .ant-typography{overflow-wrap:anywhere}.user-email-by{font-size:12px}.user-email-add.ant-btn{height:auto;padding:0}.user-email-edit{flex-direction:column;gap:2px;width:100%;max-width:360px;display:flex}@media (width<=1280px){.desk-info{z-index:4;position:absolute;top:0;bottom:0;right:0;box-shadow:-4px 0 16px #0000001f}}@media (width<=991px){.desk-list-head,.desk-chat-head{padding-left:52px}}@media (width<=900px){.desk-list{border-right:0;width:100%}.desk-with-chat .desk-list,.desk:not(.desk-with-chat) .desk-chat{display:none}.desk-back{display:inline-flex}.desk-chat-head{flex-wrap:wrap;padding-top:8px;padding-bottom:8px;padding-right:8px}.desk-chat-actions{width:100%}.composer{padding:8px 12px 12px}.composer-mode{width:100%;display:flex}.composer-mode .ant-segmented-item{flex:1;min-width:0}.composer-mode-full{display:none}.composer-mode-short{display:inline}.kb-picker{grid-template-columns:1fr;height:auto}}
