.avatar-container{position:relative;display:inline-block}.avatar-image,.avatar-placeholder{border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;font-weight:500}.avatar-sm{width:32px;height:32px;font-size:12px}.avatar-md{width:40px;height:40px;font-size:14px}.avatar-lg{width:48px;height:48px;font-size:16px}.avatar-placeholder{background:#25d366;color:#fff}.avatar-status-indicator{position:absolute;bottom:-2px;right:-2px;width:12px;height:12px;border-radius:50%;border:2px solid #ffffff}.avatar-status-active{background:#25d366}.avatar-status-waiting{background:#ffc107}.avatar-status-closed{background:#6c757d}.avatar-status-online{background:#10b981}.avatar-status-offline{background:#9ca3af}.product-thumbnail{position:relative;display:inline-block;overflow:hidden;border-radius:8px;background:#f0f0f0;flex-shrink:0}.product-thumbnail-image{width:100%;height:100%;object-fit:cover;display:block}.product-thumbnail-sm{width:40px;height:40px}.product-thumbnail-md{width:56px;height:56px}.product-thumbnail-lg{width:72px;height:72px}.badge{border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:500;color:#fff}.badge-dot{width:10px;height:10px;font-size:0}.badge-sm{width:16px;height:16px;font-size:10px}.badge-md{width:20px;height:20px;font-size:11px}.badge-lg{width:24px;height:24px;font-size:12px}.badge-red{background:#dc3545}.badge-blue{background:#007bff}.badge-green{background:#28a745}.badge-yellow{background:#ffc107;color:#000}.conversation-list{display:flex;flex-direction:column;height:100%;position:relative;min-height:0}.conversation-list-header{padding:16px;border-bottom:1px solid #e0e0e0;background:#f0f2f5}.conversation-list-header-content{display:flex;align-items:center;justify-content:space-between}.conversation-list-header h2{font-size:20px;font-weight:600;color:#111;margin:0}.conversation-list-search{padding:8px 12px;background:#f0f2f5;border-bottom:1px solid #e0e0e0;display:flex;align-items:center;gap:12px}.conversation-list-search-icon{width:20px;height:20px;color:#667781;flex-shrink:0}.conversation-list-search-input{flex:1;border:none;background:#fff;padding:8px 12px;border-radius:8px;font-size:15px;outline:none}.conversation-list-search-input::placeholder{color:#9ca3af}.conversation-list-search-input:focus{box-shadow:0 0 0 2px #25d366}.conversation-list-search-status{padding:6px 16px 0;font-size:12px;color:#64748b}.conversation-list-search-status span{display:inline-flex;align-items:center;gap:6px}.conversation-list-filters{padding:12px 16px;border-bottom:1px solid #e0e0e0}.conversation-list-filter-group{display:flex;flex-direction:column;gap:8px}.conversation-list-filter-item{display:flex;align-items:center;gap:8px}.conversation-list-checkbox{width:16px;height:16px;border-radius:4px;border:1px solid #d0d0d0;cursor:pointer}.conversation-list-filter-text{font-size:14px;color:#667781;cursor:pointer}.conversation-list-items{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overflow-anchor:none;scroll-behavior:auto}.conversation-list-items,.conversation-list-items *{overflow-anchor:none}.conversation-list-items:not(.is-searching) .conversation-item{box-sizing:border-box;height:106px;min-height:106px;max-height:106px;overflow:hidden;contain:layout paint}.conversation-list-items:not(.is-searching) .conversation-item-message{margin-bottom:4px}.mobile-view .conversation-list-items:not(.is-searching) .conversation-item{padding-top:12px;padding-bottom:12px;height:106px;min-height:106px;max-height:106px}.conversation-item{padding:12px 16px;border-bottom:1px solid #f0f0f0;cursor:pointer}.conversation-item:not(.conversation-item-active){transition:background .15s ease}.conversation-item:not(.conversation-item-active):hover{background:#f5f5f5}.conversation-item-active{background:#dbeafe!important;border-left:4px solid #2563eb;transition:none!important}.conversation-item-active:hover{background:#dbeafe!important;transition:none!important}.conversation-item-active,.conversation-item-active *{transition:none!important}.conversation-item-content{display:flex;align-items:flex-start;gap:12px}.conversation-item-info{flex:1;min-width:0}.conversation-item-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.conversation-item-header-actions{display:flex;align-items:center;gap:8px}.conversation-item-name{font-size:14px;font-weight:500;color:#111;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.conversation-item-time{font-size:11px;color:#667781;white-space:nowrap}.conversation-item-message{font-size:13px;color:#667781;margin:0 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}.conversation-item-search-preview{font-size:12px;color:#0f172a;margin:0 0 8px;opacity:.75;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}.conversation-item-footer{display:flex;align-items:center;justify-content:space-between}.conversation-item-status{display:flex;align-items:center;gap:6px}.conversation-item-status-dot{width:8px;height:8px;border-radius:50%}.conversation-list-loading{position:absolute;left:0;right:0;bottom:0;z-index:4;display:flex;align-items:center;justify-content:center;gap:8px;height:36px;margin:0;padding:0 16px;color:#667781;font-size:13px;line-height:1.4;white-space:nowrap;box-sizing:border-box;overflow:hidden;pointer-events:none;background:#f0f2f5f0;border-top:1px solid #e5e7eb}.conversation-list-end{height:40px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;color:#999;font-size:12px;overflow:hidden}.conversation-list-spinner{width:16px;height:16px;border:2px solid #d1d5db;border-top-color:#25d366;border-radius:50%;display:inline-block;animation:conversation-list-spin .8s linear infinite}.conversation-list-loading-text{display:inline-block}@keyframes conversation-list-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.conversation-item-status-dot.bg-green-500{background:#25d366}.conversation-item-status-dot.bg-yellow-500{background:#ffc107}.conversation-item-status-dot.bg-gray-500{background:#6c757d}.conversation-item-status-text{font-size:11px;color:#667781}.conversation-item-status-bot{color:#10b981!important;display:inline-flex;align-items:center;gap:4px;font-weight:600}.conversation-item-status-bot-icon{width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 1px #10b98140}.conversation-item-pin-btn{padding:4px;margin:0;background:none;border:none;cursor:pointer;font-size:14px;line-height:1;opacity:0;transition:opacity .15s ease;flex-shrink:0}.conversation-item:not(.conversation-item-active):hover .conversation-item-pin-btn{opacity:.6}.conversation-item:not(.conversation-item-active):hover .conversation-item-pin-btn:hover{opacity:1}.conversation-item-active .conversation-item-pin-btn{opacity:.6;transition:none}.conversation-item-active .conversation-item-pin-btn:hover,.conversation-item[data-pinned=true] .conversation-item-pin-btn{opacity:1}.conversation-item[data-pinned-personal=true]:not([data-pinned-global=true]){background:#f9fafb;border-left:4px solid #ffc107}.conversation-item[data-pinned-personal=true]:not([data-pinned-global=true]):not(.conversation-item-active):hover{background:#f5f5f5}.conversation-item-active[data-pinned-personal=true]:not([data-pinned-global=true]){background:#dbeafe;border-left:4px solid #2563eb;transition:none}.conversation-item[data-pinned-global=true]{background:#fff5f5;border-left:4px solid #ef4444}.conversation-item[data-pinned-global=true]:not(.conversation-item-active):hover{background:#fef2f2}.conversation-item-active[data-pinned-global=true]{background:#dbeafe;border-left:4px solid #2563eb;transition:none}.conversation-item-pin-global-badge{font-size:12px;line-height:1;margin-left:2px}.conversation-context-menu-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;z-index:1000}.conversation-context-menu{background:#fff;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:220px;padding:8px 0;z-index:1001}.context-menu-item{width:100%;padding:12px 16px;background:none;border:none;cursor:pointer;display:flex;align-items:center;gap:12px;font-size:14px;color:#111;text-align:left;transition:background .15s ease}.context-menu-item:hover{background:#f5f5f5}.context-menu-icon{font-size:16px;width:20px;text-align:center}.conversation-item{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.conversation-item-account-name{margin-left:6px;font-size:.75rem;color:#6b7280;font-weight:500}.conversation-list-account-filter{margin:0 16px 8px;position:relative}.account-filter-toggle{width:100%;padding:8px 12px;border:1px solid #e5e7eb;border-radius:6px;background:#fff;cursor:pointer;text-align:left;font-size:14px;color:#374151;transition:all .2s}.account-filter-toggle:hover{background:#f9fafb;border-color:#d1d5db}.account-filter-dropdown{position:absolute;top:100%;left:0;right:0;margin-top:4px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 4px 6px #0000001a;max-height:250px;overflow-y:auto;z-index:100}.account-filter-item{display:flex;align-items:center;width:100%;padding:10px 12px;cursor:pointer;transition:background .15s;-webkit-user-select:none;user-select:none;border-radius:4px;gap:10px}.account-filter-item:hover{background:#f3f4f6}.account-filter-item input[type=checkbox]{cursor:pointer;width:16px;height:16px}.account-filter-item span{font-size:14px;color:#374151;flex:1}.account-filter-item-selected{background:#eef2ff}.account-filter-item-selected span{color:#1f2937;font-weight:600}.account-filter-inline{position:relative}.account-filter-inline .account-filter-toggle{width:auto;min-width:120px;padding:6px 12px;border:1px solid #ddd;background:#fff;border-radius:4px;cursor:pointer;font-size:13px;white-space:nowrap}.account-filter-inline .account-filter-toggle:hover{background:#f9fafb;border-color:#d1d5db}.account-filter-dropdown-header{position:absolute;top:100%;right:0;margin-top:4px;min-width:200px;background:#fff;border:1px solid #e5e7eb;border-radius:6px;box-shadow:0 4px 6px #0000001a;max-height:250px;overflow-y:auto;z-index:1000}.account-filter-dropdown-header .account-filter-item{display:flex;align-items:center;width:100%;padding:10px 12px;cursor:pointer;transition:background .15s;-webkit-user-select:none;user-select:none;border-radius:4px;gap:10px}.account-filter-dropdown-header .account-filter-item:hover{background:#f3f4f6}.account-filter-dropdown-header .account-filter-item input[type=checkbox]{cursor:pointer;width:16px;height:16px}.account-filter-dropdown-header .account-filter-item span{font-size:14px;color:#374151;flex:1}.conversation-item-match-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#475569;margin-bottom:4px}.conversation-item-match-label span:first-child{font-weight:600;color:#2563eb}.conversation-item-match-time{font-size:11px;color:#64748b}.message-bubble{display:flex;margin-bottom:6px}.message-bubble-client{justify-content:flex-start}.message-bubble-bot,.message-bubble-operator{justify-content:flex-end}.message-bubble-system{justify-content:center}.message-bubble-content{display:flex;flex-direction:column;max-width:65%}.message-bubble-client .message-bubble-content{align-items:flex-start}.message-bubble-bot .message-bubble-content,.message-bubble-operator .message-bubble-content{align-items:flex-end}.message-content{padding:4px 8px;border-radius:8px;font-size:14px;line-height:1.3;word-wrap:break-word}.message-bubble-client .message-content{background:#fff;border:1px solid #e0e0e0;border-bottom-left-radius:2px}.message-bubble-bot .message-content,.message-bubble-operator .message-content{background:#dcf8c6;border-bottom-right-radius:2px}.message-bubble-system .message-content{background:#f5f7fa;border:1px solid #d8dee8;border-radius:10px;font-size:12px;color:#4f5d75;max-width:80%;padding:6px 10px}.message-system-badge{align-self:center;margin-bottom:4px;padding:2px 8px;border-radius:999px;background:#e8edf5;color:#5b677c;font-size:10px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}.message-quote{position:relative;margin-bottom:8px;padding:8px 12px;background:#f0f0f0;border-radius:4px;border-left:3px solid #0084FF;font-size:13px;line-height:1.4;max-width:100%;overflow:hidden}.message-quote-bar{position:absolute;left:0;top:0;bottom:0;width:3px;border-radius:2px 0 0 2px}.message-quote-content{margin-left:0;padding-left:0}.message-quote-author{display:flex;flex-direction:column;gap:2px}.message-quote-author strong{font-size:13px;font-weight:600;color:#0084ff;margin-bottom:2px}.message-quote-text{font-size:13px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.message-bubble-client .message-quote-bar{background-color:#25d366}.message-bubble-bot .message-quote-bar{background-color:#6c63ff}.message-bubble-operator .message-quote-bar{background-color:#0084ff}.message-text{margin:0;color:#111;white-space:pre-wrap}.message-bubble-system .message-text{color:#4f5d75;font-style:normal}.message-meta{display:flex;align-items:center;gap:8px;margin-top:2px;font-size:11px}.message-sender{color:#667781}.message-time{color:#9ca3af}.message-read-receipts{color:#34b7f1;font-weight:500;white-space:nowrap}.message-status{font-size:12px;line-height:1}.message-retry-button{border:none;background:transparent;color:#dc2626;cursor:pointer;font-size:11px;font-weight:600;padding:0;text-decoration:underline}.message-retry-button:hover{color:#991b1b}.message-bubble-client .message-read-receipts{margin-left:auto}.message-bot-icon{display:inline-flex;align-items:center;justify-content:center}.message-bot-icon-image{width:16px;height:16px;border-radius:50%;box-shadow:0 0 0 1px #0ea5e940}.message-attachments{margin-bottom:8px;display:flex;flex-direction:column;gap:4px}.message-attachment{border-radius:8px;overflow:hidden}.message-image{max-width:300px;max-height:400px;border-radius:8px;cursor:pointer;object-fit:cover;display:block;transition:opacity .15s ease}.message-image:hover{opacity:.9}.message-file{background:#f0f0f0;border-radius:8px;padding:8px 12px}.message-file span{font-size:13px;color:#667781}.message-bubble-deleting{opacity:.6;transition:opacity .3s ease}.message-bubble-deleting .message-content{background:#f5f5f5!important;border-color:#ddd!important;position:relative}.message-bubble-deleting .message-content:after{content:"⏳ Удаляем...";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000c;color:#fff;padding:4px 8px;border-radius:4px;font-size:12px;z-index:10}.message-item{margin:8px 0}.item-card{display:flex;background:#f8f9fa;border:1px solid #e0e0e0;border-radius:8px;padding:12px;max-width:300px;cursor:pointer;transition:background-color .2s}.item-card:hover{background:#f0f0f0}.item-image{width:60px;height:60px;object-fit:cover;border-radius:4px;margin-right:12px;flex-shrink:0}.item-info{flex:1;display:flex;flex-direction:column;justify-content:space-between}.item-title{font-size:14px;font-weight:600;color:#333;margin:0 0 4px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.item-price{font-size:16px;font-weight:700;color:#e74c3c;margin:0 0 8px}.item-link{font-size:12px;color:#007bff;text-decoration:none;font-weight:500}.item-link:hover{text-decoration:underline}.message-text strong{font-weight:700;color:inherit}.message-text em{font-style:italic;color:inherit}.message-text code{background:#0000001a;padding:2px 4px;border-radius:3px;font-family:Courier New,Courier,monospace;font-size:13px}.message-content p,.message-content>*>p{margin:0 0 8px!important;padding:0!important;white-space:pre-wrap!important}.message-content p:last-child,.message-content>*>p:last-child{margin:0!important;padding:0!important;white-space:pre-wrap!important}.message-text,.message-text>*{margin:0!important;padding:0!important}.message-text a{color:#007bff;text-decoration:underline}.message-text a:hover{text-decoration:none}.quick-reply-button{background:transparent;border:none;padding:8px;cursor:pointer;border-radius:50%;transition:background .15s ease;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;position:relative;z-index:1;flex-shrink:0;margin-left:8px}.quick-reply-button:hover{background:#e0e0e0}.quick-reply-button:active{background:#d0d0d0}.quick-reply-icon{font-size:20px;line-height:1}.quick-reply-badge{background:#00a046;color:#fff;font-size:9px;font-weight:600;padding:2px 5px;border-radius:10px;min-width:16px;text-align:center;line-height:1;position:absolute;top:-4px;right:-4px;z-index:2;box-shadow:0 1px 3px #0003;pointer-events:none}.quick-reply-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;animation:fadeIn .2s ease-in}.quick-reply-modal{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000004d;width:90%;max-width:750px;max-height:80vh;display:flex;flex-direction:column;animation:slideUp .3s ease-out;margin:auto;overflow:hidden}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.quick-reply-modal-header{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;border-bottom:1px solid #e0e0e0;flex-shrink:0;min-height:72px}.quick-reply-modal-header h2{margin:0;font-size:20px;font-weight:600;color:#333;line-height:1.4}.quick-reply-modal-header-actions{display:flex;align-items:center;gap:12px;height:36px}.btn-add-new{background:#00a046;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;height:36px;display:flex;align-items:center;justify-content:center}.btn-add-new:hover{background:#008a3a;transform:translateY(-1px);box-shadow:0 2px 8px #00a0464d}.quick-reply-modal-close{background:transparent;border:none;font-size:24px;color:#999;cursor:pointer;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s ease;flex-shrink:0}.quick-reply-modal-close:hover{background:#f0f0f0;color:#333}.quick-reply-modal-search{padding:16px 24px;border-bottom:1px solid #e0e0e0;flex-shrink:0;min-height:72px}.quick-reply-modal-search input{width:100%;padding:11px 16px;border:1px solid #d0d0d0;border-radius:8px;font-size:14px;line-height:1.5;outline:none;transition:border-color .2s ease;box-sizing:border-box;height:40px}.quick-reply-modal-search input:focus{border-color:#00a046;box-shadow:0 0 0 3px #00a0461a}.quick-reply-modal-categories{padding:8px 24px 0;border-bottom:2px solid #e0e0e0;display:flex;gap:0;overflow-x:auto;white-space:nowrap;align-items:center;min-height:48px;flex-shrink:0}.category-btn{padding:12px 20px;border:none;background:transparent;font-size:14px;font-weight:500;color:#666;cursor:pointer;transition:all .25s cubic-bezier(.4,0,.2,1);flex-shrink:0;position:relative;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;min-width:80px;height:44px;margin-bottom:0}.category-btn:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:transparent;transition:background .25s cubic-bezier(.4,0,.2,1)}.category-btn:hover{color:#00a046;background:#00a0460d}.category-btn.active{color:#00a046;font-weight:600}.category-btn.active:after{background:#00a046}.quick-reply-modal-content{flex:1;overflow-y:auto;padding:16px 24px}.quick-reply-modal-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;color:#999}.spinner{width:40px;height:40px;border:3px solid #f0f0f0;border-top-color:#00a046;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:12px}@keyframes spin{to{transform:rotate(360deg)}}.quick-reply-modal-empty{display:flex;flex-direction:column;align-items:center;padding:40px;color:#999}.quick-reply-modal-empty p{margin-bottom:16px;font-size:16px}.btn-clear-search{padding:8px 16px;background:#00a046;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;transition:background .2s ease}.btn-clear-search:hover{background:#008a3a}.quick-reply-category-group{margin-bottom:24px}.quick-reply-category-group:last-child{margin-bottom:0}.category-title{font-size:14px;font-weight:600;color:#666;margin:0 0 12px;text-transform:uppercase;letter-spacing:.5px}.quick-reply-list{display:flex;flex-direction:column;gap:8px}.quick-reply-item{border:1px solid #e0e0e0;border-radius:8px;transition:all .2s ease;display:flex;align-items:stretch;overflow:hidden}.quick-reply-item:hover{border-color:#00a046;background:#f8fff8;box-shadow:0 2px 8px #00a0461a}.quick-reply-item-clickable{flex:1;padding:14px 16px;cursor:pointer;transition:all .2s ease}.quick-reply-item-clickable:hover{background:#00a0460d}.quick-reply-item-actions{display:flex;flex-direction:column;border-left:1px solid #e0e0e0;min-width:44px}.btn-edit,.btn-delete{background:transparent;border:none;padding:0;cursor:pointer;font-size:16px;transition:all .2s ease;flex:1;display:flex;align-items:center;justify-content:center;min-height:40px}.btn-edit{border-bottom:1px solid #e0e0e0}.btn-edit:hover{background:#e3f2fd}.btn-delete:hover{background:#ffebee}.quick-reply-item-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.quick-reply-title{font-weight:600;color:#333;font-size:14px}.quick-reply-shortcut{padding:2px 8px;background:#f0f0f0;border-radius:4px;font-size:12px;color:#666;font-family:Courier New,monospace}.quick-reply-content{margin:0;font-size:13px;color:#666;line-height:1.5;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.quick-reply-stats{display:inline-block;margin-top:8px;font-size:11px;color:#999}.quick-reply-modal-footer{padding:12px 24px;border-top:1px solid #e0e0e0;background:#f9f9f9;border-radius:0 0 12px 12px}.quick-reply-modal-footer p{margin:0;font-size:12px;color:#666}.quick-reply-modal-content::-webkit-scrollbar{width:8px}.quick-reply-modal-content::-webkit-scrollbar-track{background:#f0f0f0}.quick-reply-modal-content::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:4px}.quick-reply-modal-content::-webkit-scrollbar-thumb:hover{background:#b0b0b0}.quick-reply-editor-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease-in}.quick-reply-editor{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000004d;width:90%;max-width:600px;max-height:85vh;display:flex;flex-direction:column;animation:slideUp .3s ease-out}.quick-reply-editor-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e0e0e0}.quick-reply-editor-header h2{margin:0;font-size:20px;font-weight:600;color:#333}.quick-reply-editor-close{background:transparent;border:none;font-size:24px;color:#999;cursor:pointer;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s ease}.quick-reply-editor-close:hover{background:#f0f0f0;color:#333}.quick-reply-editor-form{padding:24px;overflow-y:auto}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;font-size:14px;color:#333}.form-group label .required{color:#f44;margin-left:4px}.form-group label .optional{color:#999;font-weight:400;margin-left:8px;font-size:12px}.form-group input[type=text],.form-group textarea,.form-group select{width:100%;padding:12px;border:1px solid #d0d0d0;border-radius:6px;font-size:14px;font-family:inherit;outline:none;transition:border-color .2s ease;box-sizing:border-box}.form-group input[type=text]:focus,.form-group textarea:focus,.form-group select:focus{border-color:#00a046;box-shadow:0 0 0 3px #00a0461a}.form-group textarea{resize:vertical;min-height:120px}.char-count{display:block;text-align:right;font-size:12px;color:#999;margin-top:4px}.warning-text{color:#f59e0b;font-size:11px;font-weight:500;display:block;text-align:right;margin-top:4px}.hint{display:block;font-size:12px;color:#666;margin-top:6px}.category-selector{display:flex;flex-direction:column;gap:12px}.new-category-input{margin-top:0!important}.quick-reply-editor-buttons{display:flex;gap:12px;justify-content:flex-end;margin-top:24px;padding-top:24px;border-top:1px solid #e0e0e0}.btn-cancel,.btn-save{padding:10px 24px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-cancel{background:#f0f0f0;color:#666}.btn-cancel:hover:not(:disabled){background:#e0e0e0;color:#333}.btn-save{background:#00a046;color:#fff}.btn-save:hover:not(:disabled){background:#008a3a}.btn-save:disabled,.btn-cancel:disabled{opacity:.5;cursor:not-allowed}.quick-reply-editor-form::-webkit-scrollbar{width:8px}.quick-reply-editor-form::-webkit-scrollbar-track{background:#f0f0f0}.quick-reply-editor-form::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:4px}.quick-reply-editor-form::-webkit-scrollbar-thumb:hover{background:#b0b0b0}.error-text{display:block;color:#f44;font-size:12px;margin-top:6px}.btn-link{background:none;border:none;color:#00a046;cursor:pointer;padding:0;font-size:13px;transition:color .2s ease}.btn-link:hover{color:#008a3a;text-decoration:underline}.quick-reply-images-list{margin-top:12px;font-size:13px;color:#333}.quick-reply-images-list ul{list-style:none;padding:0;margin:8px 0 0}.quick-reply-images-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:6px 0;border-bottom:1px solid #f0f0f0}.quick-reply-images-list li:last-child{border-bottom:none}.quick-reply-images-list.removed{color:#d9534f}.message-composer{display:flex;flex-direction:column;gap:12px}.message-composer-controls{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;min-height:40px;overflow:visible;position:relative;z-index:1}.message-length-warning{color:#f59e0b;font-size:12px;margin-top:4px;display:flex;align-items:center;gap:4px}.message-send-error{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px;padding:10px 12px;border-radius:8px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-size:13px;line-height:1.4}.message-send-error-dismiss{border:none;background:transparent;color:#991b1b;cursor:pointer;font-size:14px;padding:0}.message-composer.dragging{border:2px dashed #25d366;background:#f0f9ff;border-radius:12px;padding:8px}.attached-images-preview{display:flex;gap:8px;padding:8px;background:#f5f5f5;border-radius:8px;flex-wrap:wrap}.image-preview{position:relative;width:80px;height:80px;border-radius:8px;overflow:hidden;border:2px solid #e0e0e0}.image-preview img{width:100%;height:100%;object-fit:cover}.remove-image-btn{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:#000000b3;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;padding:0;line-height:1;transition:background .15s ease}.remove-image-btn:hover{background:#000000e6}.message-composer-input-wrapper{flex:1;position:relative;margin-right:16px;max-width:calc(100% - 180px)}.message-input{width:100%;padding:10px 16px;border:none;border-radius:24px;background:#fff;font-size:15px;outline:none;box-shadow:0 1px 3px #0000001a}.message-input:focus{box-shadow:0 0 0 2px #25d366}.message-typing-indicator{position:absolute;right:12px;top:50%;transform:translateY(-50%)}.message-typing-dots{display:flex;gap:4px}.message-typing-dot{width:4px;height:4px;background:#9ca3af;border-radius:50%;animation:typing-bounce 1.4s infinite ease-in-out}@keyframes typing-bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.message-composer-action-btn{padding:8px;color:#667781;background:none;border:none;cursor:pointer;border-radius:50%;transition:background .15s ease;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px}.message-composer-action-btn:hover{background:#e0e0e0}.message-send-button{padding:10px 20px;background:#25d366;color:#fff;border:none;border-radius:24px;cursor:pointer;font-size:14px;font-weight:500;transition:background .15s ease}.message-send-button:hover:not(:disabled){background:#1fb855}.message-send-button:disabled{background:#ccc;cursor:not-allowed}.message-date-separator{display:flex;justify-content:center;align-items:center;margin:4px 0;pointer-events:none;flex-shrink:0}.message-date-separator__pill{display:inline-block;padding:4px 12px;border-radius:8px;background:#ffffffeb;box-shadow:0 1px 1px #0b141a14;color:#54656f;font-size:12.5px;font-weight:500;line-height:1.35}.chat-window{display:flex;flex-direction:column;height:100%;background:#e5ddd5}.chat-window-empty{flex:1;display:flex;align-items:center;justify-content:center;background:#f0f2f5}.chat-window-empty-content{text-align:center}.chat-window-empty-icon{width:64px;height:64px;margin:0 auto 16px;background:linear-gradient(135deg,#dbeafe,#dcfce7);border-radius:50%;display:flex;align-items:center;justify-content:center;color:#9ca3af;box-shadow:0 8px 20px #0ea5e933}.chat-window-empty-bot-image{width:48px;height:48px}.chat-window-empty-title{font-size:18px;font-weight:500;color:#111;margin:0 0 8px}.chat-window-empty-text{color:#667781;margin:0}.chat-window-empty-brand{margin-top:12px;display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid #e2e8f0;color:#334155;font-size:12px;font-weight:600}.chat-window-empty-brand-icon{width:16px;height:16px;border-radius:50%}.chat-header{padding:12px 16px;background:#f0f2f5;border-bottom:1px solid #e0e0e0}.chat-header-content{display:flex;align-items:center;justify-content:space-between}.chat-header-user{display:flex;align-items:center;gap:12px}.chat-header-avatar{width:40px;height:40px;background:#25d366;border-radius:50%;display:flex;align-items:center;justify-content:center}.chat-header-avatar-text{color:#fff;font-weight:500;font-size:16px}.chat-header-info{display:flex;flex-direction:column}.chat-header-name{font-size:16px;font-weight:500;color:#111;margin:0}.chat-header-status{font-size:12px;color:#667781;margin:0}.chat-header-actions{display:flex;align-items:center;gap:8px}.chat-bot-status-avatar{width:18px;height:18px;border-radius:50%;box-shadow:0 0 0 1px #10b9814d}.chat-header-action-btn{padding:8px;color:#667781;background:none;border:none;cursor:pointer;border-radius:4px;transition:background .15s ease}.chat-header-action-btn:hover{background:#e0e0e0}.chat-messages{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px 16px 24px;display:flex;flex-direction:column;gap:8px}.chat-messages-top-spacer{flex:1 0 0;min-height:0}.chat-messages-empty{text-align:center;color:#667781;padding:32px 0}.chat-composer{padding:20px 16px 12px;background:#f0f2f5;border-top:1px solid #e0e0e0}.client-info-panel{display:flex;flex-direction:column;height:100%;background:#fff;border-left:1px solid #e0e0e0;overflow-y:auto;overflow-x:hidden}.client-info-panel-header{padding:16px;border-bottom:1px solid #e0e0e0;background:#f0f2f5}.client-info-panel-header h3{font-size:18px;font-weight:600;color:#111;margin:0}.client-info-panel-empty{flex:1;display:flex;align-items:center;justify-content:center}.client-info-panel-empty-content{text-align:center;color:#667781}.client-info-panel-empty-content svg{color:#9ca3af;margin:0 auto 16px}.client-info-panel-empty-content p{margin:0}.client-info-panel-section{padding:16px;border-bottom:1px solid #f0f0f0}.client-info-panel-user{display:flex;align-items:center;gap:12px;margin-bottom:16px}.client-info-panel-avatar{width:48px;height:48px;background:#25d366;border-radius:50%;display:flex;align-items:center;justify-content:center}.client-info-panel-avatar-text{color:#fff;font-weight:500;font-size:18px}.client-info-panel-user-info{display:flex;flex-direction:column}.client-info-panel-user-name{font-size:16px;font-weight:500;color:#111;margin:0 0 4px}.client-info-panel-user-id{font-size:12px;color:#667781;margin:0}.client-info-panel-details{display:flex;flex-direction:column;gap:12px}.client-info-panel-detail{display:flex;flex-direction:column;gap:4px}.client-info-panel-detail-label{font-size:12px;font-weight:500;color:#667781;text-transform:uppercase;letter-spacing:.5px}.client-info-panel-detail-value{font-size:14px;color:#111;margin:0}.client-info-panel-section-title{font-size:16px;font-weight:500;color:#111;margin:0 0 12px}.client-info-panel-product{display:flex;flex-direction:column;gap:12px}.client-info-panel-product-image{width:100%;min-height:128px;background:#f0f0f0;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:12px;margin-bottom:12px}.client-info-panel-product-image img{width:100%;max-width:280px;height:auto;max-height:210px;border-radius:8px;object-fit:contain;display:block;margin:0 auto}.client-info-panel-avito-link{display:block;margin-top:12px;padding:10px 16px;background:#00a046;color:#fff;text-align:center;border-radius:8px;text-decoration:none;font-weight:500;transition:background .2s ease}.client-info-panel-avito-link:hover{background:#008a3b}.client-info-panel-profile-link{display:block;margin-top:8px;padding:10px 16px;background:#06c;color:#fff;text-align:center;border-radius:8px;text-decoration:none;font-weight:500;transition:background .2s ease}.client-info-panel-profile-link:hover{background:#0052a3}.resizable-divider{width:6px;background:transparent;cursor:ew-resize;position:relative;flex-shrink:0;-webkit-user-select:none;user-select:none;transition:background-color .2s ease}.resizable-divider:hover{background-color:#00a0461a}.resizable-divider.dragging{background-color:#00a04633}.resizable-divider-handle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:2px;height:40px;background:#d0d0d0;border-radius:2px;pointer-events:none;opacity:0;transition:opacity .2s ease}.resizable-divider:hover .resizable-divider-handle,.resizable-divider.dragging .resizable-divider-handle{opacity:1}@media(max-width:768px){.mobile-messenger,.mobile-messenger *{box-sizing:border-box}.mobile-messenger{-webkit-overflow-scrolling:touch;touch-action:manipulation}}.mobile-messenger{width:100%;max-width:100vw;height:100vh;height:100dvh;overflow:hidden;position:fixed;top:0;left:0;right:0;background:#f0f2f5;overflow-x:hidden}.mobile-view{width:100%;max-width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;background:#fff;position:relative;overflow-x:hidden}.mobile-chat-view{width:100%;max-width:100%;height:100vh;height:100dvh;display:flex;flex-direction:column;background:#fff;position:fixed;top:0;left:0;right:0;overflow:hidden;overflow-x:hidden}.mobile-chat-header{flex:0 0 56px;min-height:56px;background:#f0f2f5;border-bottom:1px solid #e0e0e0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 8px;z-index:10;flex-shrink:0}.mobile-back-btn{flex:1 1 auto;padding:12px 16px;background:transparent;border:none;font-size:17px;font-weight:600;color:#111;cursor:pointer;display:flex;align-items:center;gap:8px;border-radius:8px;-webkit-tap-highlight-color:transparent;min-height:48px}.mobile-back-btn:active{background:#0000000d}.mobile-back-icon{font-size:24px;font-weight:700}.mobile-info-btn{flex:0 0 auto;padding:10px 14px;background:#25d366;border:none;border-radius:8px;font-size:15px;font-weight:600;color:#fff;cursor:pointer;display:flex;align-items:center;gap:6px;min-height:44px;min-width:44px;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.mobile-info-btn:active{background:#1da851}.mobile-info-btn span:first-child{font-size:20px}.mobile-info-btn-text{font-size:15px;white-space:nowrap}.mobile-chat-container{flex:1 1 0;min-height:0;overflow:hidden;display:flex;flex-direction:column;position:relative}.mobile-view .conversation-list{width:100%;max-width:100%;height:100%;display:flex;flex-direction:column;overflow-x:hidden}.mobile-view .conversation-list-items{flex:1;overflow-y:auto;overflow-x:hidden}.mobile-view .conversation-item{padding:16px 20px;min-height:80px}.mobile-view .conversation-item .avatar{width:52px;height:52px;font-size:20px}.mobile-view .conversation-item-name{font-size:16px;max-width:calc(100vw - 140px)}.mobile-view .conversation-item-message{font-size:14px;max-width:calc(100vw - 140px)}.mobile-view .conversation-item-time{font-size:12px}.mobile-chat-container .chat-window{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}.mobile-chat-container .chat-header{flex:0 0 auto;min-height:64px;padding:10px 14px;border-bottom:1px solid #e0e0e0;background:#f0f2f5;display:flex;align-items:center;gap:12px}.mobile-chat-container .chat-header-avatar{width:48px;height:48px;font-size:20px;flex-shrink:0}.mobile-chat-container .chat-header-name,.mobile-chat-container .chat-header-title h3{font-size:18px;font-weight:600;flex:1;min-width:0}.mobile-chat-container .chat-header-subtitle,.mobile-chat-container .chat-header p{display:none!important}.mobile-chat-container .chat-header-status{font-size:13px;color:#666}.mobile-chat-container .chat-messages{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 12px 20px!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;z-index:1!important;max-width:100%;background:#e5ddd5}.mobile-chat-container .message-bubble{margin-bottom:14px}.mobile-chat-container .message-bubble:last-child{margin-bottom:8px}.mobile-chat-container .message-bubble-content{max-width:75%!important;min-width:0;overflow-wrap:break-word;word-break:break-word}.mobile-chat-container .message-content{padding:12px 16px!important;font-size:16px!important;line-height:1.5;max-width:100%;word-wrap:break-word;overflow-wrap:break-word;word-break:break-word;min-width:0}.mobile-chat-container .message-text{font-size:16px!important;line-height:1.5;color:#111!important;display:block!important;visibility:visible!important;margin:0}.mobile-chat-container .message-bubble-client .message-content{background:#fff!important;border:1px solid #d0d0d0!important}.mobile-chat-container .message-bubble-client .message-text{color:#111!important;font-weight:400}.mobile-chat-container .message-time,.mobile-chat-container .message-footer{font-size:12px!important;margin-top:4px}.mobile-chat-container .message-meta{font-size:12px!important;margin-top:4px;gap:6px}.mobile-chat-container .message-composer{flex:0 0 auto;min-height:72px;padding:8px 12px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));background:#f0f2f5;border-top:1px solid #e0e0e0;display:flex;align-items:center;gap:8px}.mobile-chat-container .message-composer-container,.mobile-chat-container .message-composer>div{display:flex;align-items:flex-end;gap:8px;width:100%;flex-wrap:nowrap}.mobile-chat-container .message-input,.mobile-chat-container .message-composer textarea{flex:1 1 auto;font-size:17px!important;padding:12px 16px;border-radius:24px;min-height:48px;max-height:120px;resize:none;border:2px solid #ddd;background:#fff;line-height:1.5}.mobile-chat-container .message-composer button{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;display:flex;align-items:center;justify-content:center;border-radius:50%;border:none;background:transparent;font-size:22px;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.mobile-chat-container .message-composer button:active{background:#0000001a}.mobile-chat-container .message-send-button,.mobile-chat-container .message-composer button[type=submit],.mobile-chat-container .message-composer button:last-child{background:#25d366;color:#fff;font-size:20px;min-width:48px}.mobile-chat-container .message-send-button:disabled{background:#ccc;color:#888}.mobile-chat-container .chat-header-actions{display:flex;gap:8px;align-items:center}.mobile-chat-container .chat-header-actions button{min-height:44px;padding:10px 16px;font-size:15px;white-space:nowrap;border-radius:8px;font-weight:600}@media(hover:none){.mobile-view .conversation-item:hover{background:transparent}.mobile-view .conversation-item:active{background:#f5f5f5}}.mobile-view .conversation-item-pin-btn{width:48px!important;min-width:48px!important;height:48px!important;min-height:48px!important;padding:0!important;margin:-8px 8px -8px 0!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:22px!important;border-radius:12px!important;-webkit-tap-highlight-color:transparent;touch-action:manipulation;pointer-events:none}.mobile-view .conversation-item-header-actions{gap:4px!important;align-items:center!important}.mobile-view .chat-header-action-btn{width:44px;height:44px;padding:12px}@media(max-width:768px){.mobile-chat-container .chat-header-actions button{width:auto!important;min-width:44px!important;min-height:44px!important;padding:10px 12px!important;border-radius:8px!important;font-size:14px!important;white-space:nowrap!important;display:flex!important;align-items:center!important;gap:6px!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.mobile-chat-container .chat-header-actions button:last-child:not(.return-to-bot-btn):not(.transfer-to-operator-btn){display:none!important}}@media(max-width:768px){.mobile-chat-container .message-composer-action-btn[title=Эмодзи]{display:none!important}}.mobile-info-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:999;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.mobile-info-panel{position:fixed;bottom:0;left:0;right:0;width:100%;max-height:80vh;background:#fff;border-top-left-radius:20px;border-top-right-radius:20px;box-shadow:0 -4px 20px #00000026;z-index:1000;display:flex;flex-direction:column;transform:translateY(100%);transition:transform .3s cubic-bezier(.4,0,.2,1)}.mobile-info-panel.open{transform:translateY(0);animation:slideUp .3s cubic-bezier(.4,0,.2,1)}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.mobile-info-panel-header{flex:0 0 auto;padding:16px 20px;background:#f0f2f5;border-bottom:1px solid #e0e0e0;display:flex;align-items:center;justify-content:space-between;border-top-left-radius:20px;border-top-right-radius:20px}.mobile-info-panel-header h3{margin:0;font-size:18px;font-weight:600;color:#111}.mobile-info-close-btn{width:40px;height:40px;padding:0;border:none;background:transparent;font-size:28px;color:#666;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;-webkit-tap-highlight-color:transparent}.mobile-info-close-btn:active{background:#0000001a}.mobile-info-panel-content{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:16px;-webkit-overflow-scrolling:touch}.mobile-info-panel-content .client-info-panel{width:100%;border:none;box-shadow:none;background:transparent}.mobile-info-panel-content .client-info-name{font-size:20px!important}.mobile-info-panel-content .client-info-field{font-size:16px!important;padding:12px 0}.mobile-info-panel-content .product-image{max-width:100%;height:auto}.mobile-view .messenger-info-panel,.mobile-view .resizable-divider{display:none}@media(max-width:768px){.mobile-view .version-badge,.mobile-messenger .version-badge,.version-badge{display:none!important}}.mobile-chat-container .message-composer-action-btn svg{display:none!important}.mobile-chat-container .message-composer-action-btn[title="Прикрепить файл"] svg{display:none!important}.mobile-chat-container .message-composer-action-btn[title="Прикрепить файл"]{flex-shrink:0!important;margin-right:4px!important}.mobile-chat-container .message-composer-action-btn[title="Прикрепить файл"]:before{content:"📎";font-size:20px}.mobile-chat-container .message-composer-action-btn[title=Эмодзи]:before{content:"😊";font-size:20px}.mobile-chat-container .message-send-button{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;padding:0!important}.mobile-chat-container .message-send-button .button-text{display:none!important}.mobile-chat-container .message-send-button:after{content:"▶";font-size:20px;display:block;line-height:normal}.mobile-chat-container .message-composer button:not(.category-btn),.mobile-chat-container .message-composer-action-btn:not(.category-btn),.mobile-chat-container .quick-reply-button:not(.category-btn),.mobile-chat-container .message-send-button:not(.category-btn){width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important;flex:0 0 44px!important;padding:0!important;font-size:20px!important;touch-action:manipulation}.mobile-chat-container form.message-composer,.mobile-chat-container .message-composer,form.message-composer{padding:8px 12px 8px 8px!important;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;gap:10px!important;min-height:72px!important;flex:0 0 auto!important;position:relative;z-index:10!important}.mobile-chat-container .message-composer-controls,.mobile-chat-container form.message-composer .message-composer-controls,.message-composer .message-composer-controls{gap:10px!important;flex-wrap:nowrap!important;align-items:center!important}.mobile-chat-container .message-composer button{align-self:center!important}.mobile-chat-container .message-composer-input-wrapper{flex:1 1 auto!important;min-width:150px!important;max-width:100%!important;display:block!important;position:relative!important}.mobile-chat-container .message-input,.mobile-chat-container .message-composer textarea{width:100%!important;min-width:0!important;padding:14px 12px!important;margin-left:0!important;min-height:52px!important;max-height:52px!important;height:52px!important;font-size:16px!important;line-height:1.3!important;overflow-y:hidden!important;border-radius:18px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important}.mobile-chat-container .quick-reply-button{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;margin:0 4px!important;border-radius:50%!important;background:#e8f5e9!important;border:1px solid #c8e6c9!important;font-size:0!important;flex-shrink:0!important;box-sizing:border-box!important}.mobile-chat-container .quick-reply-button .quick-reply-badge,.mobile-chat-container .quick-reply-button span:not(:first-child),.mobile-chat-container .quick-reply-button *:not(:first-child){display:none!important}.mobile-chat-container .quick-reply-button .quick-reply-icon,.mobile-chat-container .quick-reply-button>span:first-child{font-size:22px!important;line-height:1!important;display:block!important}.mobile-chat-container .quick-reply-button:active{background:#c8e6c9!important}.mobile-view{animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@media(prefers-reduced-motion:reduce){.mobile-view,.mobile-view .message-bubble{animation:none;transition:none}}@media(prefers-contrast:high){.mobile-view .conversation-item{border-bottom:2px solid #d0d0d0}.mobile-view .message-bubble{border:1px solid #111111}}.mobile-chat-container .chat-messages-list{min-height:0;display:flex;flex-direction:column}.mobile-chat-container .message-composer-wrapper{flex-shrink:0}body.mobile-messenger-active{overflow:hidden!important;position:fixed!important;width:100%!important;height:100%!important;height:100dvh!important;touch-action:none}body.mobile-messenger-active #root{overflow:hidden}@media(max-width:768px){.mobile-chat-container .quick-reply-modal,.quick-reply-modal{max-height:90vh!important;height:90vh!important;width:100%!important;max-width:100%!important;border-radius:16px 16px 0 0!important;margin:0!important;position:fixed!important;bottom:0!important;left:0!important;right:0!important;top:auto!important}.quick-reply-modal-overlay{align-items:flex-end!important}.quick-reply-modal-header{padding:16px!important;min-height:56px!important}.quick-reply-modal-header h2{font-size:18px!important}.quick-reply-modal-close{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;font-size:24px!important}.btn-add-new{min-height:44px!important;padding:10px 16px!important}.quick-reply-modal-search{padding:12px 16px!important;min-height:56px!important}.quick-reply-modal-search input{height:44px!important;font-size:16px!important}.mobile-chat-container .quick-reply-modal-categories,.quick-reply-modal-categories{padding:10px 16px 0!important;gap:8px!important;min-height:52px!important;-webkit-overflow-scrolling:touch}.mobile-chat-container .category-btn,.quick-reply-modal-categories .category-btn,button.category-btn{padding:10px 16px!important;font-size:14px!important;min-width:64px!important;min-height:44px!important;height:44px!important;white-space:nowrap!important;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.mobile-chat-container .quick-reply-item,.quick-reply-item{height:auto!important;min-height:64px!important;border-radius:12px!important}.mobile-chat-container .quick-reply-item-clickable,.quick-reply-item-clickable{padding:14px 16px!important;min-height:56px!important}.mobile-chat-container .quick-reply-item-clickable,.quick-reply-item-clickable{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}.mobile-chat-container .quick-reply-item-header,.quick-reply-item-header{flex:0 0 auto!important;margin-bottom:6px!important;min-height:0!important}.mobile-chat-container .quick-reply-content,.quick-reply-content{flex:1 1 auto!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;display:-webkit-box!important;-webkit-line-clamp:3!important;-webkit-box-orient:vertical!important;line-height:1.5!important;font-size:14px!important;margin:0 0 6px!important;min-height:0!important}.mobile-chat-container .quick-reply-stats,.quick-reply-stats{flex:0 0 auto!important;margin-top:4px!important;margin-bottom:0!important;font-size:12px!important;color:#888!important;display:block!important}.mobile-chat-container .quick-reply-title,.quick-reply-title{font-size:15px!important}.mobile-chat-container .category-title,.category-title{font-size:13px!important;margin-bottom:10px!important}.mobile-chat-container .quick-reply-modal-content,.quick-reply-modal-content{padding:12px 16px 24px!important}.quick-reply-item-actions .btn-edit,.quick-reply-item-actions .btn-delete{min-height:44px!important}.quick-reply-modal-footer{display:none!important}}@media(min-width:769px)and (max-width:834px)and (orientation:portrait){.mobile-messenger{display:flex}.mobile-view .messenger-sidebar{width:40%;border-right:1px solid #e0e0e0}.mobile-view .chat-window{width:60%}}.messenger-app{display:flex;height:100vh;width:100vw;background:#f0f2f5;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;overflow:hidden;position:fixed;top:0;left:0}.messenger-sidebar{background:#fff;border-right:1px solid #e0e0e0;display:flex;flex-direction:column;height:100vh;overflow:hidden;flex-shrink:0}.messenger-main{display:flex;flex-direction:column;background:#e5ddd5;height:100vh;overflow:hidden;min-width:400px}.messenger-info-panel{background:#fff;border-left:1px solid #e0e0e0;height:100vh;display:flex;flex-direction:column;overflow:hidden;flex-shrink:0}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:#f1f1f1}::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#a8a8a8}@keyframes slideInFromRight{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes slideInFromLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}.message-bubble{animation:slideInFromRight .3s ease-out}.message-bubble.client{animation:slideInFromLeft .3s ease-out}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-10px)}60%{transform:translateY(-5px)}}.typing-dot{animation:bounce 1.4s infinite ease-in-out}.typing-dot:nth-child(1){animation-delay:-.32s}.typing-dot:nth-child(2){animation-delay:-.16s}.typing-dot:nth-child(3){animation-delay:0s}.status-active{background-color:#10b981}.status-waiting{background-color:#f59e0b}.status-closed{background-color:#6b7280}.conversation-item:hover{background-color:#f9fafb;transition:background-color .2s ease}.conversation-item.active{background-color:#eff6ff;border-left:4px solid #3b82f6}.message-composer:focus-within{box-shadow:0 0 0 3px #3b82f61a}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d;transition:all .2s ease}.loading-skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:loading 1.5s infinite}@keyframes loading{0%{background-position:200% 0}to{background-position:-200% 0}}@media(max-width:768px){.conversation-list{width:100%;position:absolute;z-index:10}.chat-window{width:100%}.conversation-list.hidden{display:none}}@media(prefers-color-scheme:dark){.dark-mode{background-color:#1f2937;color:#f9fafb}.dark-mode .conversation-item{background-color:#374151;border-color:#4b5563}.dark-mode .conversation-item:hover{background-color:#4b5563}.dark-mode .message-bubble{background-color:#374151;color:#f9fafb}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.focus-visible:focus{outline:2px solid #3b82f6;outline-offset:2px}@media(prefers-contrast:high){.conversation-item{border:2px solid #000}.message-bubble{border:1px solid #000}}@media(prefers-reduced-motion:reduce){.message-bubble,.typing-dot,.btn-primary{animation:none;transition:none}}
