*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--primary: #6366f1;--primary-hover: #4f46e5;--primary-light: #eef2ff;--primary-dark: #4338ca;--accent-blue: #3b82f6;--accent-blue-light: #dbeafe;--accent-cyan: #06b6d4;--accent-cyan-light: #cffafe;--accent-teal: #14b8a6;--accent-teal-light: #ccfbf1;--accent-green: #10b981;--accent-green-light: #d1fae5;--accent-yellow: #f59e0b;--accent-yellow-light: #fef3c7;--accent-orange: #f97316;--accent-orange-light: #ffedd5;--accent-red: #ef4444;--accent-red-light: #fee2e2;--accent-pink: #ec4899;--accent-pink-light: #fce7f3;--accent-purple: #8b5cf6;--accent-purple-light: #ede9fe;--bg: #f1f5f9;--bg-secondary: #ffffff;--bg-card: #ffffff;--bg-hover: #f8fafc;--text: #0f172a;--text-secondary: #475569;--text-muted: #94a3b8;--border: #e2e8f0;--border-light: #f1f5f9;--success: #10b981;--success-light: #d1fae5;--error: #ef4444;--error-light: #fee2e2;--warning: #f59e0b;--warning-light: #fef3c7;--info: #3b82f6;--info-light: #dbeafe;--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / .05);--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--shadow-md: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--radius-xs: .375rem;--radius-sm: .5rem;--radius: .75rem;--radius-lg: 1rem;--radius-full: 9999px}html,body,#root{height:100%}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}button{font-family:inherit;cursor:pointer}a{color:inherit;text-decoration:none}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.6rem 1rem;font-size:.9rem;font-weight:600;border:1px solid transparent;border-radius:var(--radius-sm);transition:background .15s,border-color .15s,opacity .15s;white-space:nowrap}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{background:var(--bg-secondary);color:var(--text);border-color:var(--border)}.btn-secondary:hover:not(:disabled){background:var(--bg-hover)}.btn-danger{background:var(--error);color:#fff}.btn-danger:hover:not(:disabled){background:#dc2626}.btn-ghost{background:transparent;color:var(--text-secondary)}.btn-ghost:hover:not(:disabled){background:#0f172a0f;color:var(--text)}.btn-sm{padding:.4rem .7rem;font-size:.8rem}.btn-block{width:100%}.field{display:flex;flex-direction:column;gap:.35rem}.field label{font-size:.8rem;font-weight:600;color:var(--text-secondary)}.input{width:100%;padding:.6rem .75rem;font-size:.9rem;font-family:inherit;color:var(--text);background:var(--bg-secondary);border:1px solid var(--border);border-radius:var(--radius-sm);transition:border-color .15s,box-shadow .15s}.input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-light)}select.input{cursor:pointer}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-xs)}.badge{display:inline-flex;align-items:center;padding:.15rem .6rem;font-size:.72rem;font-weight:600;border-radius:var(--radius-full)}.badge-success{background:var(--success-light);color:#047857}.badge-muted{background:var(--border-light);color:var(--text-muted)}.badge-info{background:var(--info-light);color:#1d4ed8}.page{padding:1.75rem 2rem}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.page-header h1{font-size:1.4rem;font-weight:700}.page-subtitle{color:var(--text-secondary);font-size:.9rem;margin-top:.15rem}.data-table{width:100%;border-collapse:collapse}.data-table th{text-align:left;padding:.7rem 1rem;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);border-bottom:1px solid var(--border)}.data-table td{padding:.85rem 1rem;border-bottom:1px solid var(--border-light);font-size:.9rem}.data-table tr:last-child td{border-bottom:none}.data-table tbody tr:hover{background:var(--bg-hover)}.modal-overlay{position:fixed;inset:0;background:#0f172a80;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal{background:var(--bg-card);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:100%;max-width:460px;max-height:90vh;overflow-y:auto}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1.1rem 1.4rem;border-bottom:1px solid var(--border)}.modal-header h2{font-size:1.1rem;font-weight:700}.modal-body{padding:1.4rem;display:flex;flex-direction:column;gap:1rem}.modal-footer{display:flex;justify-content:flex-end;gap:.6rem;padding:1rem 1.4rem;border-top:1px solid var(--border)}.spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.center-state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:4rem 1rem;color:var(--text-muted);text-align:center}.switch{position:relative;display:inline-block;width:38px;height:22px;flex-shrink:0}.switch input{opacity:0;width:0;height:0}.switch-slider{position:absolute;inset:0;cursor:pointer;background:var(--border);border-radius:var(--radius-full);transition:background .15s}.switch-slider:before{content:"";position:absolute;height:16px;width:16px;left:3px;top:3px;background:#fff;border-radius:50%;transition:transform .15s}.switch input:checked+.switch-slider{background:var(--primary)}.switch input:checked+.switch-slider:before{transform:translate(16px)}.switch input:disabled+.switch-slider{opacity:.5;cursor:not-allowed}.layout{display:flex;min-height:100vh}.sidebar{width:240px;flex-shrink:0;background:linear-gradient(180deg,#1e293b,#0f172a);display:flex;flex-direction:column;position:fixed;height:100vh}.sidebar-brand{display:flex;align-items:center;gap:.7rem;padding:1.35rem 1.25rem;border-bottom:1px solid rgba(255,255,255,.08)}.sidebar-logo{width:36px;height:36px;flex-shrink:0;background:linear-gradient(135deg,var(--accent-cyan),var(--primary));border-radius:var(--radius-sm)}.sidebar-brand-text{display:flex;flex-direction:column;line-height:1.3}.sidebar-brand-text strong{color:#fff;font-size:1rem}.sidebar-brand-text span{color:#94a3b8;font-size:.75rem}.sidebar-nav{display:flex;flex-direction:column;gap:.15rem;padding:1rem .75rem;flex:1}.nav-item{display:flex;align-items:center;gap:.7rem;padding:.65rem .8rem;color:#cbd5e1;font-size:.9rem;font-weight:500;border-radius:var(--radius-sm);transition:background .12s,color .12s}.nav-item:hover{background:#ffffff0f;color:#fff}.nav-item.active{background:var(--primary);color:#fff}.nav-item svg{width:18px;height:18px;flex-shrink:0}.sidebar-footer{padding:.9rem;border-top:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;gap:.6rem}.sidebar-user{display:flex;align-items:center;gap:.6rem}.user-avatar{width:36px;height:36px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;flex-shrink:0}.user-info{display:flex;flex-direction:column;line-height:1.3;overflow:hidden}.user-info strong{color:#fff;font-size:.85rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-info span{color:#94a3b8;font-size:.73rem}.sidebar-footer .btn-ghost{color:#cbd5e1}.sidebar-footer .btn-ghost:hover{background:#ffffff14;color:#fff}.sidebar-footer-row{display:flex;gap:.5rem;align-items:stretch}.sidebar-footer-row .btn{flex:1}.mute-toggle{flex-shrink:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);color:#cbd5e1;border-radius:var(--radius-sm);cursor:pointer;transition:background .1s,color .1s}.mute-toggle:hover{background:#ffffff1f;color:#fff}.mute-toggle.is-muted{color:#f59e0b;border-color:#f59e0b66}.mute-toggle svg{width:16px;height:16px}.layout-main{margin-left:240px;flex:1;min-width:0;min-height:100vh}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:linear-gradient(135deg,#1e293b,#0f172a)}.login-card{width:100%;max-width:380px;background:var(--bg-card);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);padding:2rem;display:flex;flex-direction:column;gap:1.1rem}.login-brand{display:flex;align-items:center;gap:.85rem;margin-bottom:.5rem}.login-logo{width:44px;height:44px;flex-shrink:0;background:linear-gradient(135deg,var(--accent-cyan),var(--primary));border-radius:var(--radius)}.login-brand h1{font-size:1.25rem;font-weight:700}.login-brand p{font-size:.85rem;color:var(--text-muted)}.login-error{background:var(--error-light);color:#b91c1c;padding:.6rem .8rem;border-radius:var(--radius-sm);font-size:.85rem}.pipeline-page{display:flex;flex-direction:column;height:100vh;padding:1.5rem 1.75rem 1rem;overflow:hidden}.pipeline-page .page-header{margin-bottom:1rem}.kanban{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:.75rem;flex:1;min-height:0;overflow-x:auto;padding-bottom:4px}.kanban-column{display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);min-width:0;overflow:hidden;transition:background .12s,border-color .12s}.kanban-column.is-over{background:var(--primary-light);border-color:var(--primary)}.kanban-column-header{display:flex;align-items:center;gap:.5rem;padding:.7rem .85rem;border-bottom:1px solid var(--border);background:var(--bg-secondary)}.status-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.kanban-column-header strong{flex:1;font-size:.85rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kanban-count{font-size:.7rem;font-weight:600;color:var(--text-muted);background:var(--bg);padding:.1rem .5rem;border-radius:var(--radius-full);border:1px solid var(--border)}.kanban-column-body{flex:1;overflow-y:auto;padding:.55rem;display:flex;flex-direction:column;gap:.55rem}.kanban-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.65rem .7rem;cursor:grab;box-shadow:var(--shadow-xs);display:flex;flex-direction:column;gap:.4rem;transition:box-shadow .1s,border-color .1s;-webkit-user-select:none;user-select:none}.kanban-card:hover{box-shadow:var(--shadow-sm);border-color:var(--primary-light)}.kanban-card.is-dragging{cursor:grabbing;box-shadow:var(--shadow-lg);opacity:.92}.card-top{display:flex;align-items:center;gap:.4rem}.card-name{flex:1;font-size:.88rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.channel-pill{font-size:.65rem;font-weight:700;color:#fff;padding:.12rem .45rem;border-radius:var(--radius-xs);flex-shrink:0;letter-spacing:.04em}.waiting-pill{align-self:flex-start;font-size:.66rem;font-weight:600;padding:.1rem .45rem;border-radius:var(--radius-xs);border:1px solid transparent;line-height:1.3}.card-preview{font-size:.78rem;color:var(--text-secondary);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:.4rem}.card-time{font-size:.72rem;color:var(--text-muted)}.assign-container{position:relative}.assign-pill{font-size:.68rem;font-weight:700;background:var(--primary-light);color:var(--primary-dark);padding:.15rem .5rem;border:1px solid transparent;border-radius:var(--radius-xs);cursor:pointer;font-family:inherit;transition:background .1s,border-color .1s}.assign-pill.unassigned{background:var(--border-light);color:var(--text-muted)}.assign-pill:hover{border-color:var(--primary)}.assign-dropdown{position:absolute;bottom:calc(100% + 4px);right:0;z-index:200;min-width:200px;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);padding:.3rem;display:flex;flex-direction:column;max-height:280px;overflow-y:auto}.assign-option{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;background:transparent;border:none;padding:.45rem .6rem;font-size:.82rem;border-radius:var(--radius-xs);cursor:pointer;color:var(--text);font-family:inherit}.assign-option:hover{background:var(--bg-hover)}.assign-option.selected{color:var(--primary-dark);font-weight:600}.assign-check{color:var(--primary);font-weight:700;margin-left:.5rem}.assign-divider{height:1px;background:var(--border);margin:.25rem 0}.assign-empty{padding:.5rem .6rem;font-size:.78rem;color:var(--text-muted);font-style:italic;text-align:center}.kanban-empty{font-size:.75rem;color:var(--text-muted);text-align:center;padding:.8rem 0;font-style:italic}.messenger{display:flex;position:fixed;inset:0 0 0 260px;background:#fff;overflow:hidden;z-index:10}.conv-list{width:360px;min-width:360px;border-right:1px solid #e6e6e6;display:flex;flex-direction:column;background:#fff}.conv-list__header{padding:14px 16px 8px;display:flex;align-items:center;justify-content:space-between;gap:8px}.conv-list__title{font-size:20px;font-weight:700;color:#000;margin:0}.conv-list__mute{width:32px;height:32px;padding:0;border:none;background:transparent;color:#707579;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}.conv-list__mute:hover{background:#f0f2f5;color:#3390ec}.conv-list__search{padding:0 10px 10px}.conv-list__search-input{width:100%;padding:8px 12px;border:none;border-radius:20px;background:#f0f2f5;font-size:14px;color:#333;outline:none;transition:background .2s}.conv-list__search-input:focus{background:#e4e6eb}.conv-list__search-input::placeholder{color:#9e9e9e}.conv-list__items{flex:1;overflow-y:auto}.conv-list__empty{padding:40px 20px;text-align:center;color:#9e9e9e;font-size:14px}.conv-list__loading{padding:14px 20px;text-align:center;color:#9e9e9e;font-size:13px}.conv-item{display:flex;align-items:center;padding:8px 10px;cursor:pointer;transition:background .15s;gap:12px;border-radius:10px;margin:0 6px}.conv-item:hover{background:#f0f2f5}.conv-item--active,.conv-item--active:hover{background:#3390ec}.conv-item--active .conv-name,.conv-item--active .conv-time,.conv-item--active .conv-preview{color:#fff}.conv-avatar{width:48px;height:48px;min-width:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;font-weight:600}.conv-avatar--photo{object-fit:cover;background:#e4e6eb}.conv-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.conv-top{display:flex;justify-content:space-between;align-items:baseline}.conv-name{font-size:15px;font-weight:600;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conv-time{font-size:12px;color:#9e9e9e;white-space:nowrap;margin-left:8px}.conv-bottom{display:flex;justify-content:space-between;align-items:center}.conv-preview{font-size:14px;color:#707579;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.conv-badge{background:#3390ec;color:#fff;font-size:12px;font-weight:600;min-width:20px;height:20px;padding:0 6px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin-left:8px}.conv-item--active .conv-badge{background:#fff;color:#3390ec}.conv-status-row{display:flex;align-items:center;gap:4px;margin-top:2px}.conv-status-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.conv-status-label{font-size:11px;font-weight:500}.messenger__chat{flex:1;display:flex;flex-direction:column;min-width:0}.messenger__empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#e8dfd2;gap:16px}.messenger__empty-icon{opacity:.6}.messenger__empty-text{font-size:15px;color:#707579}.chat-panel{display:flex;flex-direction:column;height:100%}.chat-header{padding:10px 16px;background:#fff;border-bottom:1px solid #e6e6e6;display:flex;align-items:center;min-height:56px;gap:16px}.chat-header__info{display:flex;flex-direction:column}.chat-header__avatar{width:40px;height:40px;border-radius:50%;overflow:hidden;flex-shrink:0;cursor:pointer;background:#e4e6eb}.chat-header__avatar img{width:100%;height:100%;object-fit:cover;display:block}.chat-header__avatar-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600;color:#fff;background:#3390ec}.chat-header__top{display:flex;align-items:baseline;gap:8px}.chat-header__name{font-size:16px;font-weight:600;color:#000}.chat-header__username{font-size:13px;color:#707579}.chat-header__status{position:relative}.chat-header__status-btn{display:flex;align-items:center;gap:6px;padding:5px 12px;border:1px solid;border-radius:16px;font-size:13px;font-weight:500;cursor:pointer;background:transparent;white-space:nowrap}.chat-header__status-btn:hover{filter:brightness(.95)}.chat-header__status-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.chat-header__status-menu{position:absolute;top:calc(100% + 4px);left:0;padding-top:4px;margin-top:-4px;background:#fff;border-radius:8px;box-shadow:0 2px 12px #00000026;z-index:100;min-width:180px}.chat-header__status-menu>*:first-child{border-top-left-radius:8px;border-top-right-radius:8px}.chat-header__status-menu>*:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}.chat-header__status-option{display:flex;align-items:center;gap:8px;width:100%;padding:10px 14px;border:none;background:none;font-size:13px;cursor:pointer;text-align:left;color:#333}.chat-header__status-option:hover{background:#f0f2f5}.chat-header__status-option.active{background:#eef2ff;font-weight:600}.chat-header__note{margin-left:auto;min-width:150px;max-width:300px}.chat-header__note-btn{border:none;background:none;color:#9e9e9e;font-size:13px;cursor:pointer;padding:4px 8px;border-radius:6px;text-align:left;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-header__note-btn:hover{background:#f0f2f5;color:#333}.chat-header__note-input{width:100%;padding:4px 8px;border:1px solid #3390ec;border-radius:6px;font-size:13px;outline:none;font-family:inherit}.chat-messages{flex:1;overflow-y:auto;padding:8px 20px;background:#e8dfd2;background-image:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4c9b8' fill-opacity='0.3'%3E%3Ccircle cx='40' cy='40' r='1.5'/%3E%3C/g%3E%3C/svg%3E")}.chat-date-separator{text-align:center;margin:16px 0 8px}.chat-date-separator span{background:#00000029;color:#fff;font-size:13px;padding:4px 12px;border-radius:12px}.msg-row{display:flex;margin:2px 0;position:relative}.msg-row--in{justify-content:flex-start}.msg-row--out{justify-content:flex-end}.msg-bubble{max-width:65%;padding:6px 10px 4px;border-radius:12px;position:relative;word-wrap:break-word;line-height:1.4}.msg-bubble--in{background:#fff;border-bottom-left-radius:4px;box-shadow:0 1px 1px #0000000f}.msg-bubble--out{background:#effdde;border-bottom-right-radius:4px;box-shadow:0 1px 1px #0000000f}.msg-sender{font-size:13px;font-weight:600;color:#3390ec;margin-bottom:2px}.msg-sender--bot{color:#e17076}.msg-text{font-size:15px;color:#000;white-space:pre-wrap}.msg-time{font-size:11px;color:#00000059;text-align:right;margin-top:2px}.msg-bubble--out .msg-time{color:#00640066}.msg-actions-wrapper{position:relative;display:flex;align-items:center;opacity:0;transition:opacity .15s}.msg-row:hover .msg-actions-wrapper{opacity:1}.msg-actions-btn{width:28px;height:28px;border:none;background:#0000000f;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#707579;margin:0 4px;flex-shrink:0}.msg-actions-btn:hover{background:#0000001f}.msg-context-menu{position:absolute;top:100%;right:0;background:#fff;border-radius:8px;box-shadow:0 2px 10px #00000026;z-index:100;overflow:hidden;min-width:120px}.msg-row--in .msg-context-menu{left:0;right:auto}.msg-context-menu__item{display:block;width:100%;padding:10px 16px;border:none;background:none;text-align:left;font-size:14px;color:#333;cursor:pointer}.msg-context-menu__item:hover{background:#f0f2f5}.msg-context-menu__item--danger{color:#e53935}.msg-context-menu__item--danger:hover{background:#fee2e2}.msg-edit{display:flex;flex-direction:column;gap:6px;min-width:200px}.msg-edit__field{border:1px solid #3390ec;border-radius:8px;padding:6px 8px;font-size:14px;font-family:inherit;resize:none;outline:none;line-height:1.4}.msg-edit__actions{display:flex;gap:6px;justify-content:flex-end}.msg-edit__btn{padding:4px 12px;border:none;border-radius:6px;font-size:13px;cursor:pointer}.msg-edit__btn--save{background:#3390ec;color:#fff}.msg-edit__btn--save:hover{background:#2b7fd4}.msg-edit__btn--cancel{background:#e0e0e0;color:#333}.msg-edit__btn--cancel:hover{background:#d0d0d0}.msg-bubble--media{padding:4px;overflow:hidden}.msg-bubble--media .msg-text{padding:4px 6px 0}.msg-bubble--media .msg-time{padding:0 6px}.msg-voice{display:flex;align-items:center;gap:8px;min-width:200px;padding:2px 6px}.msg-voice__player{height:36px;width:100%;min-width:180px}.msg-voice__player::-webkit-media-controls-panel{background:transparent}.msg-voice__duration{font-size:12px;color:#0006;white-space:nowrap}.msg-media__image{max-width:320px;max-height:320px;border-radius:8px;display:block;cursor:pointer}.msg-media__image:hover{opacity:.92}.msg-media__video{max-width:320px;max-height:320px;border-radius:8px;display:block}.msg-document{display:flex;align-items:center;gap:8px;padding:4px 6px;color:#3390ec;text-decoration:none;font-size:14px}.msg-document:hover{text-decoration:underline}.msg-document__icon{color:#3390ec;flex-shrink:0}.msg-document__name{word-break:break-all}.msg-input{display:flex;align-items:flex-end;padding:8px 12px;background:#fff;border-top:1px solid #e6e6e6;gap:8px}.msg-input__field{flex:1;border:none;outline:none;font-size:15px;line-height:1.4;padding:8px 12px;resize:none;max-height:120px;background:#f0f2f5;border-radius:20px;font-family:inherit;color:#000}.msg-input__field::placeholder{color:#9e9e9e}.msg-input__send{width:44px;height:44px;padding:0;border:none;background:#3390ec;color:#fff;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s,transform .1s;flex-shrink:0}.msg-input__send svg{display:block}.msg-input__send:hover:not(:disabled){background:#2b7fd4}.msg-input__send:active:not(:disabled){transform:scale(.95)}.msg-input__send:disabled{background:#b0c4d8;cursor:not-allowed}.conv-list__items::-webkit-scrollbar,.chat-messages::-webkit-scrollbar{width:6px}.conv-list__items::-webkit-scrollbar-track,.chat-messages::-webkit-scrollbar-track{background:transparent}.conv-list__items::-webkit-scrollbar-thumb,.chat-messages::-webkit-scrollbar-thumb{background:#00000026;border-radius:3px}.conv-list__items::-webkit-scrollbar-thumb:hover,.chat-messages::-webkit-scrollbar-thumb:hover{background:#00000040}.conv-list__channel-filter{display:flex;gap:6px;padding:0 10px 10px}.conv-list__status-filter{display:flex;flex-wrap:wrap;gap:6px;padding:0 10px 10px;border-bottom:1px solid #e4e6eb}.conv-list__status-chip{font-size:12px;font-weight:500;padding:4px 10px;border-radius:12px;border:1px solid #e4e6eb;background:transparent;color:#707579;cursor:pointer;white-space:nowrap;transition:all .15s}.conv-list__status-chip:hover{filter:brightness(.95)}.conv-list__status-chip--active{font-weight:600}.conv-list__channel-chip{font-size:12px;font-weight:500;padding:4px 10px;border-radius:12px;border:1px solid #e4e6eb;background:transparent;color:#707579;cursor:pointer;white-space:nowrap}.conv-list__channel-chip--active{background:#3390ec;border-color:#3390ec;color:#fff}.conv-list__channel-chip--wa.conv-list__channel-chip--active{background:#25d366;border-color:#25d366}.conv-list__channel-chip--tg.conv-list__channel-chip--active{background:#26a5e4;border-color:#26a5e4}.conv-list__channel-chip--ig.conv-list__channel-chip--active{background:#e1306c;border-color:#e1306c}.conv-avatar-wrap{position:relative;width:48px;height:48px;min-width:48px}.conv-channel-badge{position:absolute;bottom:-2px;right:-2px;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:700;border:2px solid #fff;box-sizing:content-box}.conv-channel-badge--tg{background:#26a5e4}.conv-channel-badge--wa{background:#25d366}.conv-channel-badge--ig{background:#e1306c}.conv-channel-badge svg{width:10px;height:10px}.conv-item .conv-typing,.chat-header__typing{color:#25d366;font-style:italic;font-size:13px}.chat-header__typing{margin-left:8px}.conv-item .conv-typing{font-size:13px;color:#25d366;font-weight:500}.msg-input-wrap{background:#fff;border-top:1px solid #e6e6e6}.msg-input-toolbar{display:flex;align-items:center;gap:4px;padding:6px 10px 0}.msg-input-toolbar__btn{width:34px;height:34px;padding:0;border:none;background:transparent;color:#707579;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}.msg-input-toolbar__btn svg{display:block}.msg-input-toolbar__btn:hover{background:#f0f2f5;color:#3390ec}.msg-input-toolbar__btn--recording{color:#e53935;background:#fee2e2}.msg-input-toolbar__btn--recording:hover{background:#fecaca}.emoji-picker{position:absolute;bottom:56px;left:10px;background:#fff;border-radius:10px;box-shadow:0 4px 20px #0000002e;padding:8px;width:280px;max-height:260px;overflow-y:auto;display:grid;grid-template-columns:repeat(8,1fr);gap:2px;z-index:200}.emoji-picker__item{border:none;background:transparent;font-size:22px;cursor:pointer;padding:4px;border-radius:6px;line-height:1}.emoji-picker__item:hover{background:#f0f2f5}.voice-recorder{display:flex;align-items:center;gap:8px;padding:4px 8px;background:#ffe5e5;border-radius:20px;flex:1}.voice-recorder__dot{width:10px;height:10px;border-radius:50%;background:#e53935;animation:voice-pulse 1.2s infinite}@keyframes voice-pulse{0%,to{opacity:1}50%{opacity:.3}}.voice-recorder__time{font-size:13px;color:#e53935;font-weight:500}.voice-recorder__hint{color:#707579;font-size:12px;margin-left:auto}.file-preview{display:flex;gap:10px;padding:8px 12px;background:#f0f2f5;border-radius:10px;margin:8px 12px 0;align-items:center}.file-preview__thumb{width:48px;height:48px;border-radius:6px;object-fit:cover;background:#d0d4db;display:flex;align-items:center;justify-content:center;color:#707579}.file-preview__info{flex:1;min-width:0}.file-preview__name{font-size:14px;font-weight:500;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-preview__size{font-size:12px;color:#707579}.file-preview__remove{border:none;background:transparent;color:#707579;cursor:pointer;padding:4px;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center}.file-preview__remove:hover{background:#fee2e2;color:#e53935}.msg-time__status{margin-left:4px;display:inline-flex;align-items:center;line-height:1}.msg-time__status svg{display:block}.msg-time__status--failed{color:#e53935}.msg-time__status--pending{color:#9e9e9e}.msg-time__status--sent,.msg-time__status--delivered{color:#707579}.msg-time__status--read{color:#3390ec}.msg-time__status--pending svg{animation:msg-pending-pulse 1.2s ease-in-out infinite}@keyframes msg-pending-pulse{0%,to{opacity:.5}50%{opacity:1}}.msg-reply{border-left:3px solid #3390ec;padding:4px 8px;background:#3390ec14;border-radius:4px;margin-bottom:6px;font-size:13px;color:#333;max-width:100%;overflow:hidden}.msg-reply--clickable{cursor:pointer}.msg-reply--clickable:hover{background:#3390ec29}.msg-reply__sender{font-weight:600;color:#3390ec;font-size:12px}.msg-reply__text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#555}.msg-ad{display:flex;gap:8px;align-items:stretch;padding:6px;margin-bottom:6px;background:#00a88414;border-left:3px solid #00a884;border-radius:4px;text-decoration:none;color:inherit;max-width:100%;overflow:hidden}.msg-ad--link{cursor:pointer}.msg-ad--link:hover{background:#00a88429}.msg-ad__media{flex-shrink:0;width:56px;height:56px;border-radius:4px;overflow:hidden;background:#e9e9e9}.msg-ad__image,.msg-ad__video{width:100%;height:100%;object-fit:cover;display:block}.msg-ad__body{display:flex;flex-direction:column;justify-content:center;min-width:0;flex:1}.msg-ad__source{font-size:11px;font-weight:600;color:#00a884;text-transform:uppercase;letter-spacing:.3px;margin-bottom:2px}.msg-ad__title{font-size:13px;color:#222;line-height:1.3;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.msg-call{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;background:#0000000a;border-radius:8px;font-size:13px;color:#333}.msg-call--missed{background:#e539351a;color:#c62828}.msg-call__icon{font-size:18px;line-height:1}.msg-call__arrow{font-weight:600;opacity:.7}.msg-call--missed .msg-call__arrow{color:#c62828;opacity:1}.msg-call__label{white-space:nowrap}.msg-buttons{display:flex;flex-direction:column;gap:4px;margin-top:6px;padding-top:6px;border-top:1px solid rgba(0,0,0,.08)}.msg-buttons__item{display:block;text-align:center;padding:6px 10px;background:#fff9;border:1px solid rgba(0,0,0,.1);border-radius:6px;font-size:13px;color:#0a7cff;font-weight:500}.msg-bubble--in .msg-buttons__item{background:#fff}.msg-button-reply{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#6b7280;margin-bottom:2px;font-style:italic}.msg-button-reply__icon{font-size:12px}.reply-banner{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#f0f2f5;border-top:1px solid #e6e6e6}.reply-banner__bar{width:3px;align-self:stretch;background:#3390ec;border-radius:2px}.reply-banner__body{flex:1;min-width:0}.reply-banner__sender{font-size:12px;font-weight:600;color:#3390ec}.reply-banner__text{font-size:13px;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.reply-banner__close{width:28px;height:28px;padding:0;border:none;background:transparent;color:#707579;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}.reply-banner__close:hover{background:#0000000f}.msg-row--highlight .msg-bubble{animation:msg-highlight 1.5s ease}@keyframes msg-highlight{0%{box-shadow:0 0 0 3px #3390ec80}to{box-shadow:0 0 #3390ec00}}.msg-contact{display:flex;gap:10px;align-items:center;min-width:180px}.msg-contact__avatar{width:40px;height:40px;border-radius:50%;background:#00000014;color:#707579;display:flex;align-items:center;justify-content:center;flex-shrink:0}.msg-contact__info{display:flex;flex-direction:column;gap:2px;min-width:0}.msg-contact__name{font-size:14px;font-weight:600;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.msg-contact__phone{font-size:13px;color:#3390ec;text-decoration:none;white-space:nowrap}.msg-contact__phone:hover{text-decoration:underline}.msg-contact__phone--muted{color:#9e9e9e;cursor:default}.chat-header__reason{display:flex;align-items:center;gap:6px;padding:0 16px 4px;font-size:12px;color:#555;flex-wrap:wrap}.chat-header__reason-label{color:#707579;font-weight:500}.chat-header__reason-value{padding:2px 10px;border-radius:10px;background:#fef3c7;color:#a16207;border:1px solid #fcd34d;font-size:12px;font-weight:500;cursor:pointer}.chat-header__reason-value:hover{background:#fde68a}.chat-header__reason-comment{color:#707579;font-style:italic;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modal-backdrop{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal{background:#fff;border-radius:12px;width:460px;max-width:92vw;max-height:86vh;display:flex;flex-direction:column;box-shadow:0 12px 36px #0000002e}.modal__header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #e6e6e6}.modal__title{margin:0;font-size:16px;font-weight:600;color:#000}.modal__close{width:32px;height:32px;padding:0;border:none;background:transparent;color:#707579;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center}.modal__close:hover{background:#0000000d}.modal__body{padding:16px 18px;overflow:auto;flex:1}.modal__footer{padding:12px 18px;border-top:1px solid #e6e6e6;display:flex;gap:8px;justify-content:flex-end}.btn{padding:8px 16px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer}.btn--primary{background:#3390ec;color:#fff}.btn--primary:hover:not(:disabled){background:#2b7fd4}.btn--primary:disabled{background:#b0c4d8;cursor:not-allowed}.btn--secondary{background:#f0f2f5;color:#000}.btn--secondary:hover{background:#e4e6eb}.reason-list{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}.reason-option{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:6px;cursor:pointer;font-size:14px;color:#333}.reason-option:hover{background:#f4f4f5}.reason-option--active{background:#e0f2fe;color:#0369a1}.reason-option input{margin:0}.reason-comment-label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#707579}.reason-comment{border:1px solid #e4e6eb;border-radius:6px;padding:8px 10px;font-size:14px;font-family:inherit;color:#000;resize:vertical;outline:none}.reason-comment:focus{border-color:#3390ec}.template-picker{position:absolute;bottom:58px;left:10px;right:10px;max-width:420px;background:#fff;border:1px solid #e4e6eb;border-radius:10px;box-shadow:0 6px 22px #00000024;display:flex;flex-direction:column;max-height:360px;overflow:hidden;z-index:10}.template-picker__header{display:flex;align-items:center;gap:6px;padding:8px 10px;border-bottom:1px solid #eee}.template-picker__search{flex:1;border:none;outline:none;background:#f0f2f5;border-radius:6px;padding:6px 10px;font-size:13px;color:#000}.template-picker__manage{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#707579;text-decoration:none;flex-shrink:0}.template-picker__manage:hover{background:#f4f4f5;color:#3390ec}.template-picker__list{overflow-y:auto;padding:4px 0}.template-picker__item{display:flex;flex-direction:column;gap:2px;padding:8px 12px;border:none;background:transparent;text-align:left;cursor:pointer;width:100%;border-radius:0}.template-picker__item:hover{background:#f4f4f5}.template-picker__item--used{opacity:.55}.template-picker__item--used .template-picker__item-name,.template-picker__item--used .template-picker__item-preview{color:#9e9e9e}.template-picker__item--used:hover{background:#fafafa}.template-picker__item-name{font-size:13px;font-weight:600;color:#000;display:flex;align-items:center;gap:6px}.template-picker__item-used-badge{font-size:10px;font-weight:500;color:#9e9e9e;background:#f0f2f5;padding:1px 6px;border-radius:8px}.template-picker__item-preview{font-size:12px;color:#707579;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.template-picker__empty{padding:16px;text-align:center;color:#707579;font-size:13px}.template-picker__empty a{color:#3390ec;text-decoration:none}.photo-lightbox{position:fixed;inset:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:2000;cursor:zoom-out;animation:photo-lightbox-fade .15s ease}@keyframes photo-lightbox-fade{0%{opacity:0}to{opacity:1}}.photo-lightbox__img{width:min(640px,92vw,92vh);height:min(640px,92vw,92vh);border-radius:12px;box-shadow:0 8px 40px #0009;cursor:default;object-fit:cover;image-rendering:auto;animation:photo-lightbox-zoom .18s ease}@keyframes photo-lightbox-zoom{0%{transform:scale(.92);opacity:0}to{transform:scale(1);opacity:1}}.photo-lightbox__close,.photo-lightbox__refresh{position:absolute;top:20px;width:40px;height:40px;padding:0;border:none;background:#00000080;color:#fff;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .15s}.photo-lightbox__close{right:20px}.photo-lightbox__refresh{right:72px}.photo-lightbox__close:hover,.photo-lightbox__refresh:hover{background:#fff3}.hidden-file-input{display:none}.conv-item--blocked .conv-avatar{filter:grayscale(.5);opacity:.85}.conv-preview--blocked{color:#dc2626;font-style:italic}.conv-item--active .conv-preview--blocked{color:#fecaca}.conv-blocked-badge{position:absolute;top:-2px;right:-2px;width:16px;height:16px;background:#dc2626;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid #fff;box-sizing:content-box}.conv-item--active .conv-blocked-badge{border-color:#3390ec}.chat-blocked-banner{display:flex;align-items:flex-start;gap:10px;padding:10px 16px;background:#fef2f2;border-bottom:1px solid #fecaca;color:#991b1b}.chat-blocked-banner>svg{flex:0 0 auto;margin-top:2px;color:#dc2626}.chat-blocked-banner__body{display:flex;flex-direction:column;gap:2px;min-width:0}.chat-blocked-banner__title{font-weight:600;font-size:14px;line-height:1.2}.chat-blocked-banner__subtitle{font-size:12px;line-height:1.3;color:#7f1d1d}.lead-detail{display:flex;flex-direction:column;height:100vh;background:var(--bg)}.lead-detail-topbar{display:flex;align-items:center;gap:.75rem;padding:.85rem 1.25rem;background:var(--bg-secondary);border-bottom:1px solid var(--border);flex-shrink:0}.lead-detail-title{font-size:1rem;font-weight:700;margin-right:.25rem}.lead-detail-topbar .status-pill{font-size:.72rem;font-weight:700;color:#fff;padding:.18rem .6rem;border-radius:var(--radius-full)}.lead-detail-body{display:flex;flex:1;min-height:0}.lead-detail-side{width:340px;flex-shrink:0;border-right:1px solid var(--border);background:var(--bg-secondary);overflow-y:auto;padding:1.1rem 1.25rem;display:flex;flex-direction:column;gap:1.25rem}.lead-section h3{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin-bottom:.65rem}.kv{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;padding:.4rem 0;border-bottom:1px solid var(--border-light);font-size:.85rem}.kv:last-child{border-bottom:none}.kv span{color:var(--text-muted)}.kv strong{text-align:right;font-weight:600;word-break:break-word}.activity-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.85rem}.activity-item{display:flex;flex-direction:column;gap:.2rem;padding-left:.75rem;border-left:2px solid var(--border)}.activity-item:first-child{border-left-color:var(--primary)}.activity-time{font-size:.72rem;color:var(--text-muted)}.activity-body{font-size:.84rem;color:var(--text);line-height:1.45}.activity-body strong{font-weight:600}.activity-empty{font-size:.82rem;color:var(--text-muted);font-style:italic}.lead-detail-chat{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden}.lead-detail-chat>*{flex:1;min-height:0}.tasks-page{padding:1.5rem 1.75rem}.task-tabs{display:flex;gap:.4rem;margin-bottom:1rem;flex-wrap:wrap}.task-tab{display:inline-flex;align-items:center;gap:.45rem;background:var(--bg-secondary);border:1px solid var(--border);padding:.4rem .85rem;font-size:.85rem;border-radius:var(--radius-full);color:var(--text-secondary);cursor:pointer;font-family:inherit;transition:background .1s,border-color .1s,color .1s}.task-tab:hover{background:var(--bg-hover)}.task-tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}.task-tab-count{font-size:.7rem;font-weight:700;background:#0f172a14;padding:.05rem .45rem;border-radius:var(--radius-full);min-width:1.5rem;text-align:center}.task-tab.active .task-tab-count{background:#fff3}.task-list{padding:.3rem 0}.task-row{display:flex;align-items:flex-start;gap:1rem;padding:.9rem 1.1rem;border-bottom:1px solid var(--border-light)}.task-row:last-child{border-bottom:none}.task-row.is-completed{opacity:.55}.task-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:.35rem}.task-title-row{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.task-title{font-size:.95rem;font-weight:600}.task-title.strikethrough{text-decoration:line-through}.task-type-pill{font-size:.7rem;font-weight:700;background:var(--accent-purple-light);color:#6d28d9;padding:.1rem .5rem;border-radius:var(--radius-xs)}.task-description{font-size:.82rem;color:var(--text-secondary);white-space:pre-wrap;word-break:break-word}.task-meta{display:flex;align-items:center;gap:.45rem;font-size:.78rem;color:var(--text-muted);flex-wrap:wrap}.task-due{font-weight:600;color:var(--text-secondary)}.task-due.overdue{color:var(--error)}.task-context{background:none;border:none;cursor:pointer;padding:0;color:var(--primary);font-family:inherit;font-size:.78rem}.task-context:hover{text-decoration:underline}.task-assignee{color:var(--text-secondary)}.task-sep{color:var(--text-muted)}.task-actions{display:flex;gap:.4rem;align-items:center;flex-shrink:0}.task-description-input{resize:vertical;min-height:60px;font-family:inherit}.manager-cell{display:flex;flex-direction:column;line-height:1.35}.manager-cell strong{font-weight:600}.manager-cell span{font-size:.8rem;color:var(--text-muted)}.row-actions{text-align:right}.checkbox-row{display:flex;align-items:center;gap:.55rem;font-size:.88rem;cursor:pointer}.checkbox-row input{width:16px;height:16px;cursor:pointer;accent-color:var(--primary)}
