*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;background-color:#f5f7fa;color:#333;line-height:1.6}.app{min-height:100vh;display:flex;flex-direction:column}.main-nav{display:flex;justify-content:space-between;align-items:center;padding:1rem 2rem;background:linear-gradient(135deg,#3a3f47 0%,#2c3038 100%);color:#fff;box-shadow:0 2px 10px #0003}.nav-brand h1{color:#fff;font-size:1.5rem;font-weight:600}.nav-entity-profile{border:none;background:none;padding:0;margin:0;display:flex;align-items:center}.nav-entity-profile:hover{transform:none;box-shadow:none}.nav-entity-profile .entity-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff}.nav-entity-profile .entity-name{color:#fff;font-weight:600}.nav-entity-profile .entity-phone{color:#fffc}.entity-inline-info{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.entity-separator{color:#fff9;font-weight:700}.nav-entity-profile .entity-separator{color:#fff9}.nav-entity-profile .entity-platform{color:#fffc;font-size:.9em}.nav-entity-profile .ws-status{font-size:.8em}.nav-links{display:flex;gap:1rem}.nav-user{display:flex;align-items:center}.user-profile{display:flex;align-items:center;gap:1rem;padding:.5rem;background:rgba(255,255,255,.1);border-radius:8px;border:1px solid rgba(255,255,255,.2)}.user-info{display:flex;align-items:center;gap:.75rem}.user-avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.2)}.user-avatar img{width:100%;height:100%;object-fit:cover}.avatar-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.3);color:#fff;font-weight:700;font-size:14px}.user-details{display:flex;flex-direction:column;gap:.25rem}.user-name{color:#fff;font-weight:600;font-size:.9rem;line-height:1.2}.user-email{color:#ffffffb3;font-size:.7rem;line-height:1.2;font-style:italic}.user-roles{color:#fffc;font-size:.75rem;line-height:1.2;font-weight:500}.logout-button{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;font-size:.8rem;cursor:pointer;padding:.5rem 1rem;border-radius:6px;transition:all .2s;white-space:nowrap}.logout-button:hover{background:rgba(255,255,255,.2);border-color:#ffffff4d;transform:translateY(-1px)}.auth-login-screen,.auth-error-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#050505}.auth-container{background:#0f0f10;padding:2.5rem;border-radius:16px;box-shadow:0 20px 60px #00000080;text-align:center;max-width:450px;width:90%;border:1px solid #18181b}.auth-container h1{color:#fff;margin-bottom:1rem;font-size:1.75rem;font-weight:700;letter-spacing:-.02em}.auth-container p{margin-bottom:2rem;color:#a1a1aa;font-size:1rem}.auth-login-button,.auth-logout-button{background:#7c3aed;color:#fff;border:none;padding:.875rem 2.5rem;border-radius:12px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;box-shadow:0 4px 14px #7c3aed4d}.auth-login-button:hover,.auth-logout-button:hover{background:#6d28d9;transform:translateY(-2px);box-shadow:0 6px 20px #7c3aed66}.auth-actions{margin-top:1rem}.nav-link{color:#fff;text-decoration:none;padding:.5rem 1rem;border-radius:8px;transition:background-color .2s;font-weight:500}.nav-link:hover{background-color:#ffffff1a}.nav-link.active{background-color:#fff3}.main-content{flex:1;padding:2rem;max-width:1400px;margin:0 auto;width:100%}.main-content.full-width{max-width:none;margin:0;padding:0}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center}.loading-spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #f97316;border-radius:50%;animation:spin 1s linear infinite;margin-top:20px}.loading-spinner-small{width:20px;height:20px;border:2px solid #f3f3f3;border-top:2px solid #f97316;border-radius:50%;animation:spin 1s linear infinite;display:inline-block;margin-right:10px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.chat-board-layout{display:flex;height:calc(100vh - 160px);width:100%}.chat-board-sidebar{width:350px;border-right:1px solid #e0e0e0;display:flex;flex-direction:column;background:#fff;overflow-y:auto}.chat-board-main{flex:1;display:flex;flex-direction:column;background:#f5f5f5;overflow-y:auto}.header-main{display:flex;align-items:center;justify-content:space-between;flex:1;gap:2rem}.search-bar{position:relative;display:flex;align-items:center;flex:1;max-width:500px}.search-input{width:100%;padding:.75rem 2.5rem .75rem 1rem;border:2px solid #e5e7eb;border-radius:.5rem;font-size:1rem;background:white;transition:all .2s ease}.search-input:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px #25d3661a}.search-input::placeholder{color:#9ca3af}.search-clear{position:absolute;right:.75rem;background:none;border:none;color:#6b7280;cursor:pointer;font-size:1.2rem;padding:.25rem;line-height:1;transition:color .2s ease}.search-clear:hover{color:#374151}.sync-buttons{display:flex;align-items:stretch;gap:1rem}.sync-recent-controls{display:flex;align-items:stretch;gap:.5rem}.recent-sync-limit{padding:.75rem 1rem;border:1px solid #d1d5db;border-radius:6px;font-size:.9rem;font-weight:500;background:white;cursor:pointer;transition:all .2s ease}.recent-sync-limit:focus{outline:none;border-color:#8b5cf6;box-shadow:0 0 0 3px #10b9811a}.sync-all-height-match{align-self:stretch}.sync-button{background:linear-gradient(135deg,#8b5cf6 0%,#7c3aed 100%);color:#fff;border:none;border-radius:8px;padding:.75rem 1.5rem;font-weight:600;font-size:.9rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:.5rem;white-space:nowrap;box-shadow:0 2px 4px #10b98133;min-width:180px}.sync-button:hover:not(:disabled){background:linear-gradient(135deg,#7c3aed 0%,#6d28d9 100%);box-shadow:0 4px 8px #10b9814d;transform:translateY(-1px)}.sync-button:disabled{background:#d1d5db;cursor:not-allowed;transform:none;box-shadow:none}.sync-all{background:linear-gradient(135deg,#3b82f6 0%,#2563eb 100%);box-shadow:0 2px 4px #3b82f633}.sync-all:hover:not(:disabled){background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);box-shadow:0 4px 8px #3b82f64d}.sync-status{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:6px;padding:.5rem 1rem;font-size:.9rem;margin-top:.5rem;display:flex;align-items:center}.sync-result{border-radius:6px;padding:.5rem 1rem;font-size:.9rem;margin-top:.5rem;display:flex;align-items:center;font-weight:500}.sync-result.success{background:#dcfce7;border:1px solid #bbf7d0;color:#166534}.sync-result.error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}.header-status{display:flex;align-items:center;gap:1rem}.board-header h1{color:#1f2937;font-size:2rem;font-weight:700}.status-indicator{display:flex;align-items:center;gap:1rem}.ws-status{padding:.5rem 1rem;border-radius:20px;font-size:.875rem;font-weight:500}.ws-status.connected{background-color:#dcfce7;color:#166534;border:1px solid #bbf7d0}.ws-status.disconnected{background-color:#fef2f2;color:#991b1b;border:1px solid #fecaca}.loading{color:#f59e0b;font-weight:500}.board-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;flex:1;min-height:0}.board-column{background:white;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a;display:flex;flex-direction:column;overflow:hidden;transition:all .2s}.board-column.drop-zone-active{background:#f0fdf4;box-shadow:0 10px 25px -3px #22c55e4d;transform:translateY(-2px)}.column-title{padding:1rem;background:#f9fafb;border-bottom:1px solid #e5e7eb;font-size:1.125rem;font-weight:600;color:#374151;text-align:center}.chat-list{height:auto;max-height:none;overflow-y:auto;padding:.5rem;display:flex;flex-direction:column;gap:.5rem}.empty-state{display:flex;align-items:center;justify-content:center;padding:3rem 1rem;color:#9ca3af;font-style:italic;text-align:center}.chat-board-layout{display:flex;gap:1.5rem;flex:1;min-height:0}.entity-sidebar{width:280px;background:white;border-radius:12px;box-shadow:0 4px 6px -1px #0000001a;display:flex;flex-direction:column;overflow:hidden;flex-shrink:0}.sidebar-header{padding:1.5rem;background:#f9fafb;border-bottom:1px solid #e5e7eb}.sidebar-header-content{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.sidebar-header h3{margin:0;font-size:1.125rem;font-weight:600;color:#374151}.user-info{display:flex;align-items:center;gap:.5rem}.user-name{font-size:.875rem;color:#6b7280}.add-entity-btn{background:#3b82f6;color:#fff;border:none;border-radius:6px;width:12px;height:28px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.25rem;font-weight:600;transition:all .2s;padding:0;margin:0}.add-entity-btn:hover{background:#2563eb;transform:scale(1.05)}.add-entity-btn:active{transform:scale(.95)}.add-entity-icon{line-height:1}.entity-list{flex:1;overflow-y:auto;padding:.5rem}.entity-item{display:flex;align-items:center;gap:1rem;padding:.75rem;border-radius:8px;cursor:pointer;transition:all .2s;margin-bottom:.25rem}.entity-item:hover{background:#f3f4f6}.entity-item.selected{background:#eff6ff;border:1px solid #3b82f6}.entity-actions{display:flex;gap:.25rem;opacity:0;transition:opacity .2s}.entity-item:hover .entity-actions{opacity:1}.entity-action-btn{background:transparent;border:none;padding:.25rem;border-radius:4px;cursor:pointer;font-size:.875rem;transition:all .2s;display:flex;align-items:center;justify-content:center}.entity-action-btn:hover{background:rgba(0,0,0,.05)}.entity-action-btn.edit-btn:hover{background:rgba(59,130,246,.1)}.entity-action-btn.delete-btn:hover{background:rgba(239,68,68,.1)}.btn-icon{background:transparent;border:none;padding:.25rem;border-radius:4px;cursor:pointer;font-size:1rem;transition:all .2s;display:flex;align-items:center;justify-content:center}.btn-icon:hover{background:rgba(0,0,0,.05);transform:scale(1.1)}.btn-edit:hover{color:#3b82f6}.btn-delete:hover{color:#ef4444}.entity-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1.125rem;flex-shrink:0}.entity-name{font-weight:600;font-size:.875rem;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-phone{font-size:.75rem;color:#6b7280;margin-top:.125rem}.entity-status{display:flex;align-items:center;gap:.375rem;margin-top:.25rem}.status-indicator{width:8px;height:8px;border-radius:50%;flex-shrink:0}.status-text{font-size:.75rem;color:#6b7280}.chat-column-container{flex:1;display:flex;min-width:0}.chat-card{background:white;border:1px solid #e5e7eb;border-radius:8px;padding:1rem;margin-bottom:.5rem;cursor:grab;transition:all .2s;box-shadow:0 1px 3px #0000001a}.chat-card:hover{transform:translateY(-1px);box-shadow:0 4px 6px -1px #0000001a}.chat-card:active{cursor:grabbing}.chat-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.75rem}.chat-info h3.chat-id{font-size:.875rem;font-weight:600;color:#1f2937;margin-bottom:.25rem}.phone-number{font-size:.75rem;color:#6b7280}.message-count{background:#e5e7eb;color:#374151;padding:.25rem .5rem;border-radius:12px;font-size:.75rem;font-weight:500}.last-message{margin-bottom:.75rem}.message-preview{font-size:.875rem;color:#374151;margin-bottom:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-time{font-size:.75rem;color:#9ca3af}.chat-card-footer{display:flex;justify-content:space-between;align-items:flex-end;gap:.5rem}.chat-card-footer .badges{display:flex;flex-direction:column;gap:.25rem}.chat-card-footer .actions{display:flex;gap:.5rem}.chat-card{position:relative;transition:all .2s ease-in-out}.chat-card.reply-active{border-left:4px solid #f97316;padding-left:12px}.chat-title{display:flex;align-items:center;gap:.5rem;margin-bottom:.25rem}.chat-type-icon{font-size:1rem}.chat-name{font-size:1rem;font-weight:600;margin:0;color:#1f2937}.member-count{display:flex;align-items:center;gap:.5rem;font-size:.75rem;color:#6b7280;margin-top:.25rem}.toggle-members-btn{background:none;border:1px solid #d1d5db;border-radius:4px;padding:2px 6px;cursor:pointer;font-size:.75rem;transition:background-color .2s}.toggle-members-btn:hover:not(:disabled){background-color:#f3f4f6}.toggle-members-btn:disabled{opacity:.5;cursor:not-allowed}.message-stats{display:flex;flex-direction:column;align-items:flex-end;gap:.25rem}.unread-count{background:#ef4444;color:#fff;font-size:.75rem;padding:.125rem .375rem;border-radius:10px;min-width:20px;text-align:center}.members-list{margin:.75rem 0;padding:.75rem;background:rgba(255,255,255,.8);border-radius:8px;border:1px solid #e5e7eb}.members-header h4{margin:0 0 .5rem;font-size:.875rem;color:#374151;font-weight:600}.members-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.5rem}.member-item{display:flex;align-items:center;gap:.25rem;padding:.375rem .5rem;background:#f9fafb;border-radius:6px;font-size:.75rem;border:1px solid #e5e7eb}.member-item.more-members{background:#e5e7eb;color:#6b7280;font-weight:500;justify-content:center}.member-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-badge{font-size:.625rem;filter:drop-shadow(0 1px 2px rgba(0,0,0,.1))}.loading,.no-members{text-align:center;color:#6b7280;font-size:.75rem;padding:1rem}.reply-box{margin-top:.75rem;padding:.75rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.reply-box textarea{width:100%;border:1px solid #d1d5db;border-radius:6px;padding:.5rem;font-size:.875rem;resize:vertical;min-height:60px;font-family:inherit}.reply-box textarea:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 2px #25d3661a}.reply-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:.5rem}.reply-btn,.cancel-reply-btn,.send-reply-btn{background:none;border:1px solid #d1d5db;border-radius:6px;padding:.375rem .75rem;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s}.reply-btn{background:#f8fafc;border-color:#e2e8f0;font-size:1rem;padding:.25rem .5rem}.reply-btn:hover{background:#f97316;border-color:#f97316}.cancel-reply-btn:hover{background:#f3f4f6}.send-reply-btn{background:#f97316;border-color:#f97316;color:#fff}.send-reply-btn:hover:not(:disabled){background:#22c55e;border-color:#22c55e}.send-reply-btn:disabled,.cancel-reply-btn:disabled{opacity:.5;cursor:not-allowed}.badge{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;border-radius:6px;font-size:.75rem;font-weight:500}.badge-human{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}.badge-agent{background:#dbeafe;color:#1e40af;border:1px solid #bfdbfe}.badge-agent-locked{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.owner-info{font-size:.75rem;color:#6b7280;font-style:italic}.admin-page{margin:0;padding:0;width:100%;max-width:none}.admin-content{flex:1;display:flex;flex-direction:column;gap:3rem}.feature-flags-section h2{color:#374151;font-size:1.5rem;font-weight:600;margin-bottom:.5rem}.section-description{color:#6b7280;margin-bottom:2rem}.feature-flags-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:1.5rem}.feature-flag-card{background:white;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.flag-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.flag-name{color:#1f2937;font-size:1.25rem;font-weight:600}.flag-toggle{display:flex;align-items:center;gap:.75rem}.toggle-switch{position:relative;display:inline-block;width:50px;height:28px}.toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.4s;border-radius:28px}.toggle-slider:before{position:absolute;content:"";height:20px;width:20px;left:4px;bottom:4px;background-color:#fff;transition:.4s;border-radius:50%}input:checked+.toggle-slider{background-color:#f97316}input:checked+.toggle-slider:before{transform:translate(22px)}.updating-text{color:#f59e0b;font-size:.875rem;font-weight:500}.flag-description{color:#6b7280;margin-bottom:1rem;line-height:1.5}.flag-status{display:flex;justify-content:space-between;align-items:center}.status-badge{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:500}.status-badge.enabled{background:#dcfce7;color:#166534}.status-badge.disabled{background:#f3f4f6;color:#6b7280}.last-updated{font-size:.75rem;color:#9ca3af}.admin-info{background:#f9fafb;border:1px solid #e5e7eb;border-radius:12px;padding:2rem}.admin-info h3{color:#374151;font-size:1.25rem;font-weight:600;margin-bottom:1rem}.admin-info ul{list-style:none}.admin-info li{padding:.5rem 0;border-bottom:1px solid #e5e7eb}.admin-info li:last-child{border-bottom:none}@media (max-width: 768px){.board-columns{grid-template-columns:1fr;gap:1rem}.board-column{max-height:none;height:auto}.chat-list{height:calc(100vh - 200px)!important;min-height:600px!important;max-height:none!important}.board-column .chat-list{height:calc(100vh - 200px)!important}.main-nav{padding:1rem}.nav-links{flex-direction:column;gap:.5rem}.main-content{padding:1rem;height:auto;flex:1}.board-columns{height:auto;min-height:calc(100vh - 150px)}.chat-card{padding:.75rem;margin-bottom:.75rem;min-height:120px}.chat-card-header{flex-direction:column;align-items:flex-start;gap:.5rem}.chat-info h3.chat-id{font-size:1rem}.phone-number{font-size:.875rem}.message-preview{font-size:.875rem;line-height:1.4}.chat-board-layout{flex-direction:column}.entity-sidebar{width:100%;max-height:200px}}@media (max-width: 480px){.chat-list{height:calc(100vh - 180px)!important;min-height:500px!important}.board-column .chat-list{height:calc(100vh - 180px)!important}.board-columns{min-height:calc(100vh - 130px)}.main-nav,.main-content{padding:.75rem}}@supports (-webkit-touch-callout: none){.chat-list{height:80vh!important;min-height:70vh!important;max-height:none!important}.board-column .chat-list{height:80vh!important}.board-columns{height:85vh!important;min-height:85vh!important}.main-content{height:auto!important;min-height:90vh!important}}@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1){.chat-list{height:80vh!important;min-height:600px!important;max-height:none!important}.board-column .chat-list{height:80vh!important}.board-columns{height:85vh!important;min-height:85vh!important}.main-content{height:auto!important;min-height:90vh!important}}@media only screen and (device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2),only screen and (device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2),only screen and (device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3){.chat-list{height:calc(100vh - 110px)!important;min-height:calc(100vh - 150px)!important}.board-column{height:calc(100vh - 80px)!important}.board-columns{height:calc(100vh - 60px)!important}}@media (max-width: 768px){.board-columns .chat-list{height:600px!important;overflow-y:auto!important;max-height:none!important}@supports (height: 100vh){.board-columns .chat-list{height:max(600px,75vh)!important}}}@media screen and (max-width: 768px){.chat-list,.board-column .chat-list,div[class*=chat-list]{height:calc(100vh - 120px)!important;min-height:auto!important;max-height:none!important;overflow-y:auto!important}}@media screen and (max-width: 768px) and (min-height: 890px){.chat-list,.board-column .chat-list,div[class*=chat-list]{height:calc(100vh - 100px)!important;min-height:800px!important}}@media screen and (max-width: 768px){body,.app,.main-content,.board-columns,.board-column{height:auto!important;min-height:auto!important;max-height:none!important;flex:1!important}.main-content{height:100vh!important;padding:.5rem!important}.board-columns{height:95vh!important;min-height:95vh!important}.board-column{height:90vh!important;min-height:90vh!important;display:flex!important;flex-direction:column!important}body .app .main-content .board-columns .board-column .chat-list,body .app .board-columns .board-column .chat-list,body .board-columns .board-column .chat-list,body .board-column .chat-list,body .chat-list,.app .main-content .board-columns .board-column .chat-list,.app .board-columns .board-column .chat-list,.board-columns .board-column .chat-list,.board-column .chat-list,.chat-list,div[class=chat-list],div[class*=chat-list],*[class=chat-list],*[class*=chat-list]{height:85vh!important;min-height:85vh!important;max-height:none!important;overflow-y:auto!important;display:flex!important;flex-direction:column!important;flex:1!important}}.admin-layout-with-sidebar{display:flex;gap:1.5rem;margin-top:1.5rem}.admin-tabs-sidebar{width:280px;flex-shrink:0;background:white;border-radius:12px;box-shadow:0 1px 3px #0000001a;padding:1rem 0;display:flex;flex-direction:column;gap:.25rem;align-self:flex-start;position:sticky;top:1rem}.admin-tabs-sidebar .tab-button{background:none;border:none;padding:.875rem 1.25rem;font-size:.95rem;font-weight:500;color:#6b7280;cursor:pointer;text-align:left;transition:all .2s;border-left:3px solid transparent;position:relative}.admin-tabs-sidebar .tab-button:hover{color:#374151;background-color:#f9fafb}.admin-tabs-sidebar .tab-button.active{color:#f97316;background-color:#f0fdf4;border-left-color:#f97316;font-weight:600}.tab-badge{position:absolute;top:.5rem;right:.5rem;background:#ef4444;color:#fff;font-size:.75rem;padding:.125rem .375rem;border-radius:10px;min-width:1.25rem;text-align:center}.nav-section{display:flex;flex-direction:column}.nav-section .section-header{display:flex;justify-content:space-between;align-items:center;font-weight:600;color:#374151;padding:.875rem 1.25rem}.nav-section .section-header:hover{background-color:#f3f4f6}.nav-section .section-header.active-section{color:#f97316;background-color:#fef3c7;border-left-color:#f97316}.section-title{display:flex;align-items:center;gap:.5rem;font-size:.95rem}.expand-icon{font-size:.75rem;color:#6b7280;transition:transform .2s;margin-left:auto}.nav-subsection{display:flex;flex-direction:column;background:#f9fafb;border-left:2px solid #e5e7eb;margin-left:.5rem}.admin-tabs-sidebar .tab-button.nested{padding:.75rem 1.25rem .75rem 2rem;font-size:.9rem;font-weight:500;color:#6b7280;border-left:none;background:transparent}.admin-tabs-sidebar .tab-button.nested:hover{color:#374151;background-color:#f3f4f6}.admin-tabs-sidebar .tab-button.nested.active{color:#f97316;background-color:#fef3c7;font-weight:600;border-left:3px solid #f97316;margin-left:-3px}.dlq-page{max-width:1200px;margin:0 auto}.dlq-header{text-align:center;margin-bottom:2rem}.dlq-header h1{color:#1f2937;font-size:2rem;font-weight:700;margin-bottom:.5rem}.dlq-stats{background:white;border:1px solid #e5e7eb;border-radius:12px;padding:2rem;margin-bottom:2rem;box-shadow:0 1px 3px #0000001a}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1.5rem;margin-bottom:2rem}.stat-card{text-align:center;padding:1rem;background:#f9fafb;border-radius:8px}.stat-card h3{font-size:2rem;font-weight:700;color:#1f2937;margin-bottom:.5rem}.stat-card p{color:#6b7280;font-weight:500}.error-types h3{color:#374151;font-size:1.25rem;font-weight:600;margin-bottom:1rem}.error-type-bars{display:flex;flex-direction:column;gap:.75rem}.error-type-bar{display:flex;align-items:center;gap:1rem}.error-type-label{min-width:100px;font-size:.875rem;font-weight:500;color:#374151;text-transform:capitalize}.error-bar-container{flex:1;display:flex;align-items:center;gap:.5rem}.error-bar{height:20px;border-radius:4px;transition:width .3s ease}.error-count{font-size:.875rem;font-weight:600;color:#6b7280;min-width:30px}.dlq-filters{background:white;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;margin-bottom:2rem}.filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:1rem}.chat-filter{padding:.5rem 1rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;min-width:200px}.limit-select{padding:.5rem 1rem;border:1px solid #d1d5db;border-radius:6px;font-size:.875rem;background:white}.dlq-content{background:white;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}.loading-state,.empty-state{text-align:center;padding:3rem 2rem;color:#6b7280}.empty-state p{margin-bottom:.5rem}.dlq-items{display:flex;flex-direction:column}.dlq-item{border-bottom:1px solid #f3f4f6;padding:1.5rem;transition:background-color .2s}.dlq-item:hover{background-color:#f9fafb}.dlq-item:last-child{border-bottom:none}.item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.item-id{font-weight:600;color:#374151}.item-timestamp{font-size:.875rem;color:#6b7280}.replayed-badge{background:#dcfce7;color:#166534;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:500}.item-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:.5rem;margin-bottom:1rem;font-size:.875rem}.detail-row{color:#6b7280}.detail-row strong{color:#374151}.item-content{margin-bottom:1rem}.message-content{margin-bottom:.75rem;padding:1rem;background:#f9fafb;border-radius:8px;font-size:.875rem}.error-message{padding:1rem;background:#fef2f2;border:1px solid #fecaca;border-left:4px solid #ef4444;border-radius:8px;font-size:.875rem;color:#991b1b}.item-actions{display:flex;justify-content:flex-end}.replay-button{background:#f97316;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:background-color .2s}.replay-button:hover:not(:disabled){background:#1ea952}.replay-button:disabled{background:#9ca3af;cursor:not-allowed}.load-more{padding:2rem;text-align:center;border-top:1px solid #f3f4f6}.load-more-button{background:#f3f4f6;color:#374151;border:1px solid #d1d5db;padding:.75rem 1.5rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.load-more-button:hover:not(:disabled){background:#e5e7eb;border-color:#9ca3af}.load-more-button:disabled{cursor:not-allowed;opacity:.5}.items-summary{padding:1rem 1.5rem;background:#f9fafb;border-top:1px solid #e5e7eb;text-align:center;font-size:.875rem;color:#6b7280}.qr-code-section{max-width:600px;margin:0 auto}.qr-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;flex-wrap:wrap;gap:1rem}.connection-status{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;border-radius:8px;font-weight:500;font-size:.9rem}.connection-status.connected{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}.connection-status.disconnected{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.status-indicator{width:8px;height:8px;border-radius:50%;background-color:currentColor;display:inline-block}.status-detail{font-size:.8rem;opacity:.8}.connection-success{text-align:center;padding:3rem;background:linear-gradient(135deg,#d4edda 0%,#c3e6cb 100%);border-radius:12px;color:#155724}.connection-success h3{margin-bottom:1rem;font-size:1.5rem}.last-check{margin-top:1rem;font-size:.9rem;opacity:.8}.qr-code-setup{text-align:center}.qr-code-setup h3{margin-bottom:1rem;color:#333}.qr-code-setup p{margin-bottom:2rem;color:#666;font-size:1rem}.qr-code-container{position:relative;display:inline-block;margin-bottom:2rem;background:white;padding:1rem;border-radius:12px;box-shadow:0 4px 12px #0000001a}.qr-code-container img{display:block;max-width:250px;height:auto;border-radius:8px;margin-bottom:1rem}.qr-timestamp-info{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:6px;padding:.75rem;margin:1rem 0;font-size:.9rem}.qr-timestamp-info p{margin:.25rem 0;color:#495057}.qr-timestamp-info strong{color:#212529}.qr-actions{display:flex;gap:.75rem;flex-wrap:wrap;justify-content:center;margin-top:1rem}.refresh-qr-button{background-color:#17a2b8;color:#fff;border:none;border-radius:6px;padding:.6rem 1.2rem;font-size:.9rem;cursor:pointer;transition:background-color .2s;font-weight:500}.refresh-qr-button:hover:not(:disabled){background-color:#138496}.refresh-qr-button:disabled{background-color:#6c757d;cursor:not-allowed}.qr-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;border-radius:12px;font-weight:500;color:#666}.qr-actions{margin-bottom:2rem}.refresh-button{background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;gap:.5rem}.refresh-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #25d3664d}.refresh-button:disabled{opacity:.7;cursor:not-allowed;transform:none}.qr-instructions{text-align:left;background:#f8f9fa;padding:1.5rem;border-radius:8px;margin-bottom:1rem;border-left:4px solid #f97316}.qr-instructions h4{margin-bottom:1rem;color:#333;font-size:1rem}.qr-instructions ol{list-style:none;counter-reset:step-counter}.qr-instructions li{counter-increment:step-counter;margin-bottom:.5rem;padding-left:2rem;position:relative;color:#555}.qr-instructions li:before{content:counter(step-counter);position:absolute;left:0;top:0;background:#f97316;color:#fff;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:500}.status-info{font-size:.9rem;color:#666;padding:1rem;background:#f8f9fa;border-radius:8px;text-align:left}.status-badge{background:#e9ecef;color:#495057;padding:.2rem .5rem;border-radius:4px;font-size:.8rem;font-weight:500}.chat-detail-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.chat-detail-modal{background:white;border-radius:12px;box-shadow:0 10px 25px #00000026;width:90%;max-width:800px;height:80%;max-height:600px;display:flex;flex-direction:column;overflow:hidden}.chat-detail-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);color:#fff}.chat-detail-header-compact{padding:.75rem 1rem;border-bottom:1px solid #e5e7eb;background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);color:#fff;min-height:auto}.header-row-1{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.chat-primary-info{display:flex;align-items:center;gap:.75rem;flex:1}.chat-title{margin:0;font-size:1.1rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.phone-number{font-size:.85rem;opacity:.9;white-space:nowrap}.header-row-2{margin-bottom:.5rem}.immigration-tags-compact{display:flex;align-items:center;gap:.5rem}.tags-label{font-size:.8rem;opacity:.9;flex-shrink:0}.tags-container{display:flex;flex-wrap:wrap;gap:.25rem;flex:1}.immigration-tag{color:#fff;font-size:.7rem;padding:.15rem .5rem;border-radius:10px;font-weight:500;display:inline-block}.header-row-3{display:flex;justify-content:space-between;align-items:center}.message-stats-inline{display:flex;align-items:center}.stat-item{font-size:.75rem;opacity:.9;white-space:nowrap}.pronunciation-toggle{display:flex;align-items:center}.toggle-label{display:flex;align-items:center;gap:.375rem;cursor:pointer;font-size:.75rem;opacity:.9;transition:opacity .2s}.toggle-label:hover{opacity:1}.toggle-checkbox{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border:1px solid rgba(255,255,255,.5);border-radius:3px;background:transparent;cursor:pointer;position:relative;transition:all .2s}.toggle-checkbox:checked{background:rgba(255,255,255,.9);border-color:#ffffffe6}.toggle-checkbox:checked:after{content:"✓";position:absolute;top:-2px;left:1px;font-size:10px;color:#f97316;font-weight:700}.toggle-text{-webkit-user-select:none;user-select:none}.chat-info h2{margin:0 0 .5rem;font-size:1.25rem;font-weight:600}.chat-info p{margin:0 0 .5rem;opacity:.9}.header-actions{display:flex;align-items:center;gap:1rem}.ws-status{font-size:.875rem;padding:.25rem .75rem;border-radius:12px;background:rgba(255,255,255,.1)}.ws-status.connected{background:rgba(255,255,255,.2)}.close-button{background:rgba(255,255,255,.2);color:#fff;border:none;width:32px;height:32px;border-radius:50%;font-size:1.25rem;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.close-button:hover{background:rgba(255,255,255,.3)}.messages-container{flex:1;overflow-y:auto;padding:1rem;background:#f9fafb}.loading{text-align:center;padding:2rem;color:#6b7280}.error{text-align:center;padding:2rem;color:#ef4444}.retry-button{background:#ef4444;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer;margin-left:1rem}.retry-button:hover{background:#dc2626}.no-messages{text-align:center;padding:3rem 2rem;color:#6b7280}.no-messages p{margin-bottom:1rem}.help-text{font-size:.875rem;opacity:.8}.messages-list{display:flex;flex-direction:column;gap:2px}.message{max-width:80%;margin-bottom:2px}.message-sent{align-self:flex-end}.message-received{align-self:flex-start}.message-content{background:white;border-radius:12px;padding:.75rem;box-shadow:0 1px 3px #0000001a}.message-sent .message-content{background:#dcf8c6}.message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.message-sender{font-weight:600;font-size:.875rem;color:#374151}.message-status{font-size:.75rem;color:#6b7280}.message-body{margin-bottom:.5rem;line-height:1.5;word-wrap:break-word}.original-text{margin-bottom:.5rem}.translation-container{margin-top:.75rem;padding:.75rem;background-color:#f8f9fa;border-radius:8px;border-left:3px solid #f97316}.translation-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;font-size:.75rem}.translation-label{font-weight:600;color:#f97316}.detected-language{color:#6b7280;font-style:italic}.confidence-score{background-color:#f97316;color:#fff;padding:.125rem .375rem;border-radius:12px;font-size:.6rem;font-weight:600}.translated-text{font-size:.9rem;color:#374151;margin-bottom:.5rem;font-style:italic}.phonetic-text{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;padding:.5rem;background-color:#f3f4f6;border-radius:6px;border:1px solid #e5e7eb}.phonetic-label{font-size:.75rem;font-weight:600;color:#7c3aed;flex-shrink:0}.phonetic-content{font-size:.85rem;color:#374151;font-family:Courier New,monospace;background-color:#fff;padding:.25rem .5rem;border-radius:4px;border:1px solid #d1d5db;flex-grow:1}.translation-info{display:flex;align-items:center;gap:.5rem;font-size:.65rem;color:#9ca3af}.translation-model{font-weight:500}.translation-time{opacity:.8}.message-timestamp{font-size:.75rem;color:#6b7280;text-align:right}.message-input-container{padding:1rem;border-top:1px solid #e5e7eb;background:white}.input-error{margin-bottom:.5rem;padding:.5rem;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;color:#991b1b;font-size:.875rem}.message-input{display:flex;gap:.5rem;margin-bottom:.5rem}.message-input textarea{flex:1;resize:none;border:1px solid #d1d5db;border-radius:8px;padding:.75rem;font-family:inherit;font-size:.875rem;line-height:1.5}.message-input textarea:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px #25d3661a}.message-input textarea:disabled{background:#f3f4f6;color:#9ca3af}.send-button{background:#f97316;color:#fff;border:none;padding:.75rem 1rem;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:background-color .2s;white-space:nowrap}.send-button:hover:not(:disabled){background:#1ea952}.send-button:disabled{background:#9ca3af;cursor:not-allowed}.input-help{font-size:.75rem;color:#6b7280;text-align:center}.chat-card{cursor:pointer;transition:transform .2s,box-shadow .2s}.chat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.entity-profile{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);border-radius:12px;color:#fff;box-shadow:0 2px 8px #25d36633;min-width:280px}.entity-profile.loading{background:linear-gradient(135deg,#6b7280 0%,#4b5563 100%)}.entity-profile.error{background:linear-gradient(135deg,#ef4444 0%,#dc2626 100%);padding:.125rem .25rem;min-width:0;width:auto;display:inline-flex;gap:.25rem}.entity-profile.error .entity-avatar{width:16px;height:16px;font-size:.7rem}.entity-profile.error .entity-name{font-size:.7rem;margin:0}.entity-profile.error .entity-info{font-size:.6rem;margin:0}.entity-profile.error .retry-button{display:none}.entity-profile.auth-needed{background:linear-gradient(135deg,#f59e0b 0%,#d97706 100%);padding:.125rem .25rem;min-width:0;width:auto;display:inline-flex;gap:.25rem}.entity-profile.auth-needed .entity-avatar{width:16px;height:16px;font-size:.7rem}.entity-profile.auth-needed .entity-name{font-size:.7rem;margin:0}.entity-profile.auth-needed .entity-info{font-size:.6rem;margin:0}.entity-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:rgba(255,255,255,.2);border-radius:10px;font-size:1.2rem}.loading-spinner{animation:spin 1s linear infinite}.error-icon,.business-icon{font-size:1.1rem}.entity-details{flex:1;min-width:0}.entity-name{font-weight:600;font-size:.95rem;margin-bottom:.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-info{display:flex;align-items:center;gap:.5rem;font-size:.8rem;opacity:.9;margin-bottom:.25rem}.entity-phone{font-weight:500}.entity-platform{padding:.1rem .4rem;background:rgba(255,255,255,.2);border-radius:4px;font-size:.7rem;font-weight:500}.entity-id{font-size:.7rem;opacity:.7;font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-actions{display:flex;align-items:center}.refresh-button,.retry-button{background:rgba(255,255,255,.2);border:none;color:#fff;padding:.4rem;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background-color .2s}.refresh-button:hover,.retry-button:hover{background:rgba(255,255,255,.3)}.retry-button{padding:.2rem .5rem;font-size:.75rem;margin-top:.25rem}.error-text{color:#ffffffe6}.board-entity-profile{border:2px solid rgba(255,255,255,.1)}.board-entity-profile:hover{transform:translateY(-1px);box-shadow:0 4px 12px #25d3664d}.main-entity-profile{border:none;background:none;padding:0;margin:0;display:flex;align-items:center}.main-entity-profile:hover{transform:none;box-shadow:none}.entity-connection-status{margin-top:.25rem;font-size:.75rem;opacity:.9}.entity-connection-status .ws-status{display:flex;align-items:center;gap:.25rem;font-weight:500}.drag-handle{display:flex;align-items:center;justify-content:center;width:20px;height:100%;color:#9ca3af;cursor:grab;font-weight:700;font-size:1rem;-webkit-user-select:none;user-select:none;opacity:.7;transition:opacity .2s,color .2s}.drag-handle:hover{opacity:1;color:#6b7280}.drag-handle:active{cursor:grabbing}.chat-card-header{display:flex;align-items:stretch;gap:.75rem}.chat-info{flex:1;min-width:0}.message-stats{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:.25rem}.load-more-container{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:2rem;margin-top:1rem;border-top:1px solid #e5e7eb;background:#f9fafb}.load-more-buttons{display:flex;gap:1rem;align-items:center}.load-more-chats-button{background:#3b82f6;color:#fff;border:none;border-radius:8px;padding:.75rem 1.5rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem;min-width:180px}.load-more-chats-button:hover:not(:disabled){background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f640}.load-more-chats-button:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}.load-all-chats-button{background:#7c3aed;color:#fff;border:none;border-radius:8px;padding:.75rem 1.5rem;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.5rem;min-width:180px}.load-all-chats-button:hover:not(:disabled){background:#6d28d9;transform:translateY(-1px);box-shadow:0 4px 12px #05966940}.load-all-chats-button:disabled{background:#9ca3af;cursor:not-allowed;transform:none;box-shadow:none}.chat-count-info{font-size:.875rem;color:#6b7280;text-align:center}.admin-entity-selector{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background:white;border-radius:12px;box-shadow:0 1px 3px #0000001a;margin-bottom:1.5rem;gap:1rem}.entity-selector-left{display:flex;align-items:center;gap:.75rem;flex:1}.entity-select-label{font-weight:600;color:#374151;font-size:.95rem;white-space:nowrap}.entity-select-dropdown{flex:1;max-width:500px;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;background:white;color:#1f2937;cursor:pointer;transition:all .2s ease}.entity-select-dropdown:hover{border-color:#f97316}.entity-select-dropdown:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px #25d3661a}.entity-selector-right{display:flex;align-items:center;gap:.5rem}.add-session-btn{padding:.75rem 1.5rem;background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);color:#fff;border:none;border-radius:8px;font-weight:600;font-size:.95rem;cursor:pointer;transition:all .2s ease;white-space:nowrap}.add-session-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #25d3664d}.admin-main-content{flex:1;display:flex;flex-direction:column;overflow-y:auto;padding:1rem 1.5rem;max-width:none;box-sizing:border-box;width:100%}.no-entity-selected{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#666;text-align:center}.no-entity-selected h2{margin-bottom:.5rem;color:#333}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:white;border-radius:12px;box-shadow:0 20px 40px #0003;max-width:500px;width:90%;max-height:90vh;overflow-y:auto}.content-modal .modal-content{width:100%;max-width:100%}.document-viewer-modal{max-width:1000px;width:95%}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e9ecef}.modal-header h2{margin:0;color:#333}.modal-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#666;padding:.25rem;border-radius:4px;transition:all .2s ease}.modal-close:hover{background:#f8f9fa;color:#333}.modal-form{padding:1.5rem}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#333}.form-input{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:6px;font-size:1rem;transition:border-color .2s ease}.form-input:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px #25d3661a}.form-help{color:#666;font-size:.85rem;margin-top:.25rem}.modal-actions{display:flex;gap:1rem;justify-content:flex-end}.btn{padding:.75rem 1.5rem;border:none;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s ease;font-size:.9rem}.btn-primary{background:linear-gradient(135deg,#f97316 0%,#ea580c 100%);color:#fff}.btn-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #25d3664d}.btn-secondary{background:#f8f9fa;color:#333;border:1px solid #ddd}.btn-secondary:hover:not(:disabled){background:#e9ecef}.btn:disabled{opacity:.6;cursor:not-allowed}.modal-info{padding:1.5rem;background:#f8f9fa;border-top:1px solid #e9ecef}.modal-info h4{margin:0 0 1rem;color:#333}.modal-info ul{margin:0;padding-left:1.5rem;color:#666}.modal-info li{margin-bottom:.5rem}@media (max-width: 768px){.admin-page.multi-entity{flex-direction:column;height:auto}.admin-sidebar{width:100%;height:auto;max-height:40vh}.entity-list{max-height:30vh}}.broadcast-section{background:linear-gradient(135deg,#e8f5e8 0%,#f0f8f0 100%);border:1px solid #c6f6d5;border-radius:8px;margin:16px 0;overflow:hidden;box-shadow:0 2px 8px #0000001a}.broadcast-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:rgba(56,161,105,.1);border-bottom:1px solid #c6f6d5}.broadcast-toggle{background:linear-gradient(135deg,#38a169,#2f855a);color:#fff;border:none;padding:8px 16px;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s;font-size:14px}.broadcast-toggle:hover{background:linear-gradient(135deg,#2f855a,#276749);transform:translateY(-1px);box-shadow:0 4px 12px #00000026}.broadcast-toggle.active{background:linear-gradient(135deg,#2f855a,#1a522c)}.broadcast-hint{color:#2d3748;font-size:13px;font-style:italic}.broadcast-form{padding:16px}.broadcast-controls{display:flex;flex-direction:column;gap:16px}.broadcast-input-section{display:flex;flex-direction:column;gap:12px}.broadcast-textarea{width:100%;min-height:80px;padding:12px;border:2px solid #e2e8f0;border-radius:8px;font-size:14px;font-family:inherit;line-height:1.5;resize:vertical;transition:border-color .2s}.broadcast-textarea:focus{outline:none;border-color:#38a169;box-shadow:0 0 0 3px #38a1691a}.broadcast-options{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.target-selection{display:flex;gap:16px;align-items:center}.target-selection label{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:#2d3748;cursor:pointer}.target-selection input[type=radio]{margin:0;accent-color:#38a169}.broadcast-send-btn{background:linear-gradient(135deg,#3182ce,#2c5282);color:#fff;border:none;padding:10px 20px;border-radius:6px;font-weight:600;cursor:pointer;transition:all .2s;font-size:14px;white-space:nowrap}.broadcast-send-btn:hover:not(:disabled){background:linear-gradient(135deg,#2c5282,#2a4a8a);transform:translateY(-1px);box-shadow:0 4px 12px #00000026}.broadcast-send-btn:disabled{background:#a0aec0;cursor:not-allowed;transform:none;box-shadow:none}.broadcast-result{margin-top:12px;padding:10px 12px;border-radius:6px;font-size:14px;font-weight:500}.broadcast-result.success{background:#f0fff4;border:1px solid #9ae6b4;color:#2f855a}.broadcast-result.error{background:#fed7d7;border:1px solid #feb2b2;color:#c53030}.source-selection,.target-selection{background:rgba(255,255,255,.8);border:1px solid #e2e8f0;border-radius:8px;padding:12px;margin-bottom:12px}.source-selection h4,.target-selection h4{margin:0 0 8px;color:#2d3748;font-size:14px;font-weight:600}.source-radio-group,.target-radio-group{display:flex;gap:16px;flex-wrap:wrap}.source-radio-group label,.target-radio-group label{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:#2d3748;cursor:pointer}.zoho-info{background:linear-gradient(135deg,#ebf8ff,#e6fffa);border:1px solid #90cdf4;border-radius:8px;padding:12px;margin-bottom:12px}.zoho-info h4{margin:0 0 6px;color:#2c5282;font-size:14px;font-weight:600}.zoho-info p{margin:0 0 6px;color:#2d3748;font-size:13px}.zoho-info small{color:#2f855a;font-size:12px;line-height:1.4}.active-campaign{background:linear-gradient(135deg,#fef2e2,#fef8e1);border:1px solid #f59e0b;border-radius:8px;padding:16px;margin:16px 0;position:relative}.active-campaign h4{margin:0 0 8px;color:#92400e;font-size:16px;font-weight:600}.campaign-status{color:#78350f;font-size:14px;margin-bottom:12px;font-style:italic}.campaign-controls{display:flex;gap:8px;flex-wrap:wrap}.campaign-btn{padding:8px 16px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:6px}.campaign-btn:hover{transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.campaign-btn.stop{background:#dc2626;color:#fff}.campaign-btn.stop:hover{background:#b91c1c}.campaign-btn.pause{background:#f59e0b;color:#fff}.campaign-btn.pause:hover{background:#d97706}.campaign-btn.resume{background:#7c3aed;color:#fff}.campaign-btn.resume:hover{background:#6d28d9}.detailed-progress{margin:15px 0;padding:15px;background:rgba(255,255,255,.9);border:1px solid #e2e8f0;border-radius:8px}.progress-section{margin-bottom:20px}.progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.progress-label{font-weight:600;color:#2d3748}.progress-percentage{font-weight:700;font-size:18px;color:#2b6cb0}.progress-bar{width:100%;height:12px;background:#e2e8f0;border-radius:6px;overflow:hidden;margin-bottom:8px}.progress-fill{height:100%;background:linear-gradient(90deg,#4299e1,#3182ce);transition:width .3s ease;border-radius:6px}.progress-stats{font-size:14px;color:#4a5568;text-align:center}.stats-section{display:flex;gap:15px;margin-bottom:20px}.stat-card{flex:1;display:flex;align-items:center;gap:10px;padding:12px;border-radius:8px;border:1px solid}.stat-card.success{background:#f0fff4;border-color:#9ae6b4}.stat-card.failure{background:#fed7d7;border-color:#feb2b2}.stat-icon{font-size:24px}.stat-content{flex:1}.stat-number{font-size:20px;font-weight:700;color:#2d3748}.stat-label{font-size:12px;color:#4a5568;margin-top:2px}.current-processing,.last-processed{margin-bottom:15px;padding:10px;background:#f7fafc;border-radius:6px;border-left:4px solid #4299e1}.current-processing h5,.last-processed h5{margin:0 0 8px;font-size:14px;color:#2d3748;font-weight:600}.recipient-info{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.recipient-result{font-size:16px;display:flex;align-items:center}.recipient-result.success{color:#38a169}.recipient-result.failure{color:#e53e3e}.recipient-name{font-weight:600;color:#2d3748;min-width:120px}.recipient-phone{font-family:monospace;color:#4a5568;background:#edf2f7;padding:2px 6px;border-radius:4px;font-size:13px}.recipient-time{color:#718096;font-size:12px;font-style:italic}.status-running{color:#38a169;font-weight:600}.status-paused{color:#d69e2e;font-weight:600}.status-completed{color:#38a169;font-weight:600}.status-failed{color:#e53e3e;font-weight:600}.broadcast-container{padding:20px;max-width:1200px;margin:0 auto}.broadcast-header{text-align:center;margin-bottom:30px}.broadcast-header h2{color:#2d3748;margin-bottom:8px}.broadcast-header p{color:#718096;font-size:16px}.source-selection{background:rgba(255,255,255,.9);border:1px solid #e2e8f0;border-radius:12px;padding:20px;margin-bottom:20px}.source-selection h3{margin:0 0 15px;color:#2d3748}.source-options{display:flex;gap:20px;margin-bottom:15px}.source-option{display:flex;align-items:center;gap:8px;cursor:pointer}.source-option input[type=radio]{margin:0}.fetch-btn{background:#4299e1;color:#fff;border:none;padding:12px 24px;border-radius:8px;cursor:pointer;font-weight:500;transition:background .2s}.fetch-btn:hover{background:#3182ce}.fetch-btn:disabled{background:#a0aec0;cursor:not-allowed}.chunk-settings{background:rgba(255,255,255,.9);border:1px solid #e2e8f0;border-radius:12px;padding:20px;margin-bottom:20px}.chunk-settings h3{margin:0 0 15px;color:#2d3748}.chunk-size-selector{display:flex;align-items:center;gap:10px;margin-bottom:15px}.chunk-size-select{padding:8px 12px;border:1px solid #d1d5db;border-radius:6px;font-size:14px}.recipients-summary{display:flex;gap:20px;flex-wrap:wrap;font-size:14px}.recipients-summary span{color:#4a5568}.recipients-summary strong{color:#2d3748}.chunk-selection{background:rgba(255,255,255,.9);border:1px solid #e2e8f0;border-radius:12px;padding:20px;margin-bottom:20px}.chunk-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.chunk-header h3{margin:0;color:#2d3748}.select-all-btn{background:#48bb78;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500}.select-all-btn:hover{background:#38a169}.chunks-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:15px}.chunk-card{border:2px solid #e2e8f0;border-radius:8px;padding:15px;background:white;transition:all .2s}.chunk-card:hover{border-color:#cbd5e0}.chunk-card.selected{border-color:#4299e1;background:#ebf8ff}.chunk-header-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.chunk-checkbox{display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:600;color:#2d3748}.chunk-title{font-size:16px}.preview-btn{background:#ed8936;color:#fff;border:none;padding:4px 8px;border-radius:4px;cursor:pointer;font-size:12px}.preview-btn:hover{background:#dd6b20}.chunk-info{display:flex;justify-content:space-between;color:#718096;font-size:14px}.chunk-preview{margin-top:15px;padding-top:15px;border-top:1px solid #e2e8f0}.chunk-preview h5{margin:0 0 10px;color:#2d3748}.recipients-list{max-height:200px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:6px;padding:10px}.recipient-item{display:grid;grid-template-columns:1fr 120px 100px;gap:10px;padding:8px 0;border-bottom:1px solid #f7fafc;font-size:13px}.recipient-item:last-child{border-bottom:none}.recipient-name{font-weight:500;color:#2d3748}.recipient-phone{color:#4a5568;font-family:monospace}.recipient-date{color:#718096;font-size:12px}.campaign-setup{background:rgba(255,255,255,.9);border:1px solid #e2e8f0;border-radius:12px;padding:20px;margin-bottom:20px}.campaign-setup h3{margin:0 0 20px;color:#2d3748}.campaign-form{display:flex;flex-direction:column;gap:15px}.form-group{display:flex;flex-direction:column;gap:5px}.form-group label{font-weight:600;color:#2d3748}.campaign-name-input{padding:10px;border:1px solid #d1d5db;border-radius:6px;font-size:14px}.broadcast-message-textarea{padding:10px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;resize:vertical;min-height:120px}.campaign-summary{background:#f0fff4;border:1px solid #9ae6b4;border-radius:8px;padding:15px;text-align:center}.campaign-summary p{margin:0;color:#2f855a}.start-broadcast-btn{background:#48bb78;color:#fff;border:none;padding:15px 30px;border-radius:8px;cursor:pointer;font-size:16px;font-weight:600;transition:background .2s}.start-broadcast-btn:hover{background:#38a169}.start-broadcast-btn:disabled{background:#a0aec0;cursor:not-allowed}@media (max-width: 768px){.broadcast-container{padding:15px}.chunks-grid{grid-template-columns:1fr}.source-options{flex-direction:column;gap:10px}.recipients-summary{flex-direction:column;gap:5px}.recipient-item{grid-template-columns:1fr;gap:5px}}@media (max-width: 768px){.broadcast-options{flex-direction:column;align-items:stretch}.source-radio-group,.target-radio-group{flex-direction:column;gap:8px}.broadcast-send-btn{width:100%}}.schedule-grid-container{overflow-x:auto;background:white;border:1px solid #ddd;border-radius:8px;padding:10px}.schedule-grid{display:grid;grid-template-columns:60px repeat(24,1fr);gap:1px;background:#ddd;min-width:800px;font-size:12px}.schedule-header,.schedule-row{display:contents}.day-label{background:#f8f9fa;padding:8px 4px;text-align:center;font-weight:600;border-right:1px solid #ddd;display:flex;align-items:center;justify-content:center;font-size:11px}.hour-label{background:#f8f9fa;padding:4px 2px;text-align:center;font-weight:500;font-size:10px;color:#666;display:flex;align-items:center;justify-content:center}.schedule-cell{background:white;min-height:25px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;-webkit-user-select:none;user-select:none}.schedule-cell:hover{transform:scale(1.1);z-index:10;box-shadow:0 2px 4px #0003}.schedule-cell.active{background:#4CAF50;color:#fff}.schedule-cell.active:hover{background:#45a049}.schedule-cell.inactive{background:#f0f0f0}.schedule-cell.inactive:hover{background:#e0e0e0}.schedule-legend{display:flex;justify-content:center;align-items:center;padding:10px;background:#f8f9fa;border-radius:4px;font-size:12px}.legend-cell{border-radius:2px}.schedule-controls{display:flex;gap:10px;margin-bottom:10px;flex-wrap:wrap}@media (max-width: 768px){.schedule-grid{grid-template-columns:50px repeat(24,30px);min-width:600px}.day-label{font-size:10px;padding:6px 2px}.hour-label{font-size:9px;padding:2px 1px}.schedule-cell{min-height:20px}.schedule-controls{flex-direction:column}.schedule-controls button{width:100%}}.manual-review-card{background:white;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:20px;margin-bottom:20px}.manual-review-card .section-header{margin-bottom:20px}.manual-review-card .section-header h3{margin:0 0 8px;color:#2c3e50;font-size:1.4rem}.manual-review-card .section-header p{margin:0;color:#7f8c8d;font-size:.9rem}.review-controls{display:flex;gap:12px;margin-bottom:20px;flex-wrap:wrap}.reviewer-section{margin-bottom:20px}.reviewer-section .setting-label{display:block;margin-bottom:8px;font-weight:600;color:#2c3e50}.reviewer-section .setting-input{width:100%;max-width:400px;padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px}.review-stats{background:#f8f9fa;border-radius:6px;padding:16px;margin-bottom:20px}.review-stats h4{margin:0 0 12px;color:#2c3e50}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.stat-item{display:flex;justify-content:space-between;align-items:center;padding:8px;background:white;border-radius:4px}.stat-label{font-weight:500;color:#495057}.stat-value{font-weight:600;padding:2px 8px;border-radius:3px;background:#e9ecef;color:#495057}.stat-value.success{background:#d4edda;color:#155724}.stat-value.warning{background:#fff3cd;color:#856404}.stat-value.info{background:#d1ecf1;color:#0c5460}.rejected-qa-list{border:1px solid #dee2e6;border-top:none;border-radius:0 0 6px 6px;overflow-x:hidden;overflow-y:auto;max-height:500px;white-space:normal;display:block;padding:16px}.list-header{background:#f8f9fa;padding:12px 16px;border:1px solid #dee2e6;border-bottom:none;border-radius:6px 6px 0 0;margin-bottom:0}.bulk-select{display:flex;align-items:center;gap:8px}.bulk-select input[type=checkbox]{width:16px;height:16px}.bulk-select label{font-weight:600;color:#495057;margin:0}.rejected-qa-item{border:1px solid #dee2e6;border-radius:6px;padding:16px;margin-bottom:16px;transition:background-color .2s;white-space:normal;background:white;width:100%}.rejected-qa-item.selected{background:#e3f2fd}.rejected-qa-item:hover{background:#f8f9fa}.rejected-qa-item.selected:hover{background:#bbdefb}.needs-review-qa-list{border:1px solid #dee2e6;border-top:none;border-radius:0 0 6px 6px;overflow-x:hidden;overflow-y:auto;max-height:600px;white-space:normal;display:block;padding:16px}.needs-review-qa-item{border:1px solid #fff3cd;border-radius:6px;padding:16px;margin-bottom:16px;transition:background-color .2s;white-space:normal;background:#fffdf6;width:100%}.needs-review-qa-item.selected{background:#fff3cd;border-color:#ffc107}.needs-review-qa-item:hover{background:#fffbf0}.needs-review-qa-item.selected:hover{background:#ffecb5}.action-buttons{display:flex;gap:8px}.individual-reject{background:#dc3545;color:#fff}.individual-reject:hover{background:#c82333}.no-needs-review-pairs{padding:40px;text-align:center;background:#f8f9fa;border-radius:8px;margin-top:16px}.review-instructions .instructions-content ol{padding-left:20px;margin-left:0}.review-instructions .instructions-content li{margin-bottom:8px;padding-left:5px}.qa-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;flex-wrap:wrap;gap:8px}.selection-controls{display:flex;align-items:center;gap:8px}.selection-controls input[type=checkbox]{width:16px;height:16px}.qa-id{font-family:monospace;font-weight:600;color:#6c757d;font-size:.9rem}.rejection-info{flex:1;text-align:center;font-weight:500;color:#dc3545;font-size:.9rem}.individual-approve{padding:6px 12px;font-size:.85rem}.qa-content{margin-left:24px}.question-section,.answer-section{margin-bottom:12px}.question-section strong,.answer-section strong{display:block;margin-bottom:4px;color:#2c3e50}.question-section p,.answer-section p{margin:0;padding:8px 12px;background:#f8f9fa;border-radius:4px;border-left:4px solid #007bff;line-height:1.5}.answer-section p{border-left-color:#28a745}.ai-explanation{margin-bottom:12px;padding:12px;background:#fff3cd;border-radius:4px;border-left:4px solid #ffc107}.ai-explanation strong{display:block;margin-bottom:6px;color:#856404}.explanation-text{margin:0;color:#856404;font-style:italic;line-height:1.4}.qa-metadata{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px;padding-top:8px;border-top:1px solid #dee2e6}.qa-metadata small{color:#6c757d;font-size:.8rem}.no-rejected-pairs{padding:40px 20px;text-align:center}.empty-state{color:#28a745;font-size:1.1rem;font-weight:500}.loading-state{color:#6c757d;font-style:italic}@media (max-width: 768px){.review-controls{flex-direction:column}.stats-grid{grid-template-columns:1fr}.qa-item-header{flex-direction:column;align-items:stretch}.rejection-info{text-align:left;order:2}.individual-approve{order:3;align-self:flex-start}.qa-content{margin-left:0}.qa-metadata{flex-direction:column;gap:4px}}.ai-config-card{background:white;border-radius:8px;box-shadow:0 2px 8px #0000001a;padding:20px;margin-bottom:20px}.ai-config-controls{margin-bottom:20px}.current-config-display{background:#f8f9fa;border-radius:6px;padding:16px;margin-bottom:20px}.current-config-display h4{margin:0 0 12px;color:#2c3e50}.config-info{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.config-item{display:flex;justify-content:space-between;padding:8px;background:white;border-radius:4px}.config-label{font-weight:500;color:#495057}.config-value{font-weight:600;color:#2c3e50}.ai-config-panel{border-top:1px solid #dee2e6;padding-top:20px}.model-section,.add-model-section,.prompts-section{margin-bottom:30px}.model-section h4,.add-model-section h4,.prompts-section h4{margin:0 0 16px;color:#2c3e50;border-bottom:2px solid #e9ecef;padding-bottom:8px}.models-list{display:flex;flex-direction:column;gap:12px}.model-item{display:flex;justify-content:space-between;align-items:center;padding:16px;border:1px solid #dee2e6;border-radius:8px;transition:all .2s}.model-item:hover{box-shadow:0 2px 8px #0000001a}.model-item.active{border-color:#28a745;background:#f8fff9}.model-info{flex:1}.model-name{font-weight:600;font-size:1.1rem;color:#2c3e50;margin-bottom:4px}.active-badge{background:#28a745;color:#fff;padding:2px 8px;border-radius:12px;font-size:.7rem;font-weight:500;margin-left:8px}.model-details{display:flex;gap:16px;font-size:.9rem;color:#6c757d;margin-bottom:4px}.model-description{font-size:.85rem;color:#495057;font-style:italic}.model-actions{display:flex;gap:8px}.new-model-form{background:#f8f9fa;border-radius:8px;padding:20px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.form-field{display:flex;flex-direction:column;gap:4px}.form-field label{font-weight:500;color:#2c3e50;font-size:.9rem}.form-input,.form-textarea{padding:8px 12px;border:1px solid #ced4da;border-radius:4px;font-size:.9rem;transition:border-color .2s}.form-input:focus,.form-textarea:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff40}.form-textarea{resize:vertical;min-height:60px}.prompts-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}.prompt-item{border:1px solid #dee2e6;border-radius:8px;padding:16px;background:#f8f9fa}.prompt-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.prompt-type{font-weight:600;color:#495057;font-size:.9rem}.prompt-version{background:#007bff;color:#fff;padding:2px 6px;border-radius:3px;font-size:.7rem;font-weight:500}.prompt-name{font-weight:500;color:#2c3e50;margin-bottom:8px}.prompt-stats{display:flex;gap:12px;font-size:.8rem;color:#6c757d;margin-bottom:12px}@media (max-width: 768px){.form-row,.config-info{grid-template-columns:1fr}.model-item{flex-direction:column;align-items:stretch;gap:12px}.model-actions{justify-content:flex-start}.prompts-list{grid-template-columns:1fr}}.entity-selector{padding:1rem 2rem;background:white;border-bottom:1px solid #e5e7eb}.entity-selector label{font-weight:500;margin-right:.5rem;color:#374151}.entity-select{padding:.5rem 1rem;font-size:1rem;border:1px solid #d1d5db;border-radius:6px;background-color:#fff;color:#374151;min-width:300px;cursor:pointer}.entity-select:focus{outline:none;border-color:#f97316;box-shadow:0 0 0 3px #25d3661a}.entity-chat-display{padding:2rem;flex:1;overflow-y:auto}.entity-chat-display h2{color:#1f2937;font-size:1.5rem;margin-bottom:1.5rem;padding-bottom:.75rem;border-bottom:2px solid #e5e7eb}.no-chats-message{text-align:center;padding:3rem;background:white;border-radius:8px;box-shadow:0 1px 3px #0000001a}.no-chats-message p{color:#6b7280;font-size:1.1rem;margin-bottom:1rem}.chats-list{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(350px,1fr))}.chat-item{background:white;border-radius:8px;padding:1rem;box-shadow:0 1px 3px #0000001a;transition:all .2s ease;cursor:pointer;border:1px solid #e5e7eb}.chat-item:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px)}.chat-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.chat-id{font-weight:600;color:#1f2937;font-size:.9rem}.status-badge{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:500;text-transform:uppercase}.chat-info{display:flex;flex-direction:column;gap:.25rem}.chat-phone{color:#6b7280;font-size:.85rem}.chat-last-message{color:#374151;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-board-layout-new{display:flex;flex-direction:column;height:calc(100vh - 160px);width:100%;background:#f5f5f5;overflow:hidden}.chat-board-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;background:#fff;border-bottom:1px solid #e0e0e0;gap:16px}.header-left{display:flex;align-items:center;gap:12px}.header-right{display:flex;gap:8px;align-items:center}.entity-dropdown{display:flex;align-items:center;gap:8px}.entity-select{padding:8px 12px;border:1px solid #e0e0e0;border-radius:6px;font-size:14px;background:#fff;cursor:pointer;min-width:280px}.entity-select:hover{border-color:#06c}.system-status-inline{display:inline-flex;align-items:center;padding:6px 12px;border-radius:16px;font-size:13px;font-weight:500;white-space:nowrap}.system-status-inline.connected{background:#dcfce7;color:#166534}.system-status-inline.connecting{background:#fef3c7;color:#92400e}.system-status-inline.disconnected{background:#f3f4f6;color:#6b7280}.sync-progress-bar{padding:8px 20px;background:#e6f2ff;color:#06c;font-size:14px;font-weight:500;text-align:center}.sync-progress-bar.error{background:#fee;color:#c33;border-top:1px solid #fcc;border-bottom:1px solid #fcc}.chat-board-content{display:flex;flex:1;min-height:0;overflow:hidden}.chat-list-panel{width:400px;background:#fff;border-right:1px solid #e0e0e0;display:flex;flex-direction:column;overflow:hidden;min-height:0}.chat-list-header{padding:16px;border-bottom:1px solid #e0e0e0;flex-shrink:0}.chat-list-header h3{margin:0 0 12px;font-size:18px;font-weight:600;color:#1f2937}.search-box{position:relative}.search-input{width:100%;padding:8px 36px 8px 12px;border:1px solid #e0e0e0;border-radius:6px;font-size:14px;outline:none;transition:border-color .2s}.search-input:focus{border-color:#06c}.search-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:14px;color:#9ca3af}.chats-list{flex:1;overflow-y:auto;padding:8px 0}.chat-item{padding:12px 16px;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background .2s}.chat-item:hover{background:#f7fafc}.chat-item.selected{background:#E6F2FF}.chat-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.chat-item-header .chat-id{font-weight:600;color:#1f2937;font-size:14px}.chat-item-info{display:flex;flex-direction:column;gap:4px}.chat-item-info .chat-phone{color:#6b7280;font-size:13px}.chat-item-info .chat-last-message{color:#374151;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vertical-divider{width:1px;background:#e0e0e0;flex-shrink:0}.chat-messages-panel{flex:1;display:flex;flex-direction:column;background:#fff;overflow:hidden;min-height:0}.messages-search-header{padding:16px;border-bottom:1px solid #e0e0e0;background:#f9fafb;flex-shrink:0}.messages-search-header .search-input{width:100%;padding:8px 36px 8px 12px;border:1px solid #e0e0e0;border-radius:6px;font-size:14px;outline:none;transition:border-color .2s}.messages-search-header .search-input:focus{border-color:#06c}.chat-messages-container{flex:1;display:flex;flex-direction:column;overflow-y:auto;min-height:0;padding:0}.chat-messages-header{padding:16px 20px;border-bottom:1px solid #f0f0f0;display:flex;justify-content:space-between;align-items:center}.chat-messages-header h3{margin:0;font-size:18px;font-weight:600;color:#1f2937}.chat-messages-content{flex:1;overflow-y:auto;padding:20px}.message-info{background:#f9fafb;padding:16px;border-radius:8px}.message-info p{margin:8px 0;color:#374151;font-size:14px}.message-info strong{color:#1f2937}.chat-reply-container{flex:.2;display:flex;flex-direction:column;padding:16px;gap:12px;background:#f9fafb}.reply-input{flex:1;padding:12px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;font-family:inherit;resize:none;outline:none;transition:border-color .2s}.reply-input:focus{border-color:#06c}.reply-actions{display:flex;gap:8px;justify-content:flex-end}.btn-send,.btn-translate{padding:10px 20px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.btn-send{background:#0066CC;color:#fff}.btn-send:hover{background:#004C99}.btn-translate{background:#8b5cf6;color:#fff}.btn-translate:hover{background:#7c3aed}.chat-board-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#6b7280}.empty-state{display:flex;align-items:center;justify-content:center;padding:40px;color:#6b7280;font-size:14px}.status-badge{padding:4px 12px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.status-unqualified{background:#fef3c7;color:#92400e}.status-qualified{background:#d1fae5;color:#065f46}.status-handover{background:#dbeafe;color:#1e40af}.control-btn{padding:8px 16px;background:#0066CC;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:background .2s;display:flex;align-items:center;gap:6px}.control-btn:hover:not(:disabled){background:#004C99}.control-btn:disabled{background:#cbd5e0;cursor:not-allowed}@media (max-width: 1200px){.chat-list-panel{width:350px}}@media (max-width: 768px){.chat-board-header{flex-direction:column;align-items:stretch;gap:12px}.header-right{justify-content:stretch}.header-right .control-btn{flex:1}.chat-board-content{flex-direction:column}.chat-list-panel{width:100%;height:40%}.vertical-divider{display:none}.chat-messages-panel{height:60%}}.document-editor-wrapper{margin-bottom:15px}.document-editor-wrapper .quill{border:1px solid #ddd;border-radius:4px;font-size:14px}.document-editor-wrapper .ql-toolbar{border-top-left-radius:4px;border-top-right-radius:4px;background:#f8f9fa}.document-editor-wrapper .ql-container{border-bottom-left-radius:4px;border-bottom-right-radius:4px;min-height:400px;font-size:14px;line-height:1.6}.document-editor-wrapper .ql-editor{min-height:400px;padding:15px;font-family:inherit}.document-editor-wrapper .ql-editor.ql-blank:before{color:#999;font-style:normal;left:15px}.document-editor-wrapper .ql-toolbar button{border-radius:3px;padding:4px 8px}.document-editor-wrapper .ql-toolbar button:hover,.document-editor-wrapper .ql-toolbar button:focus,.document-editor-wrapper .ql-toolbar button.ql-active{background:#e0e0e0}.document-editor-wrapper .ql-editor ul,.document-editor-wrapper .ql-editor ol{padding-left:20px;margin:10px 0}.document-editor-wrapper .ql-editor li{margin:5px 0}.document-editor-wrapper .ql-editor ul{list-style-type:disc}.document-editor-wrapper .ql-editor ol{list-style-type:decimal}.preset-buttons{display:flex;gap:.5rem;margin-bottom:1rem}.preset-buttons button{flex:1;padding:.75rem;background:#3b82f6;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s}.preset-buttons button:hover{background:#2563eb}.modal-content.large{width:90%;max-width:900px;max-height:80vh;overflow-y:auto}.summary-list{display:flex;flex-direction:column;gap:1rem;max-height:60vh;overflow-y:auto;padding:1rem 0;margin-top:1rem}.summary-card{border:1px solid #e5e7eb;border-radius:8px;padding:1rem;background:#f9fafb;transition:box-shadow .2s}.summary-card:hover{box-shadow:0 2px 8px #0000001a}.summary-card h3{margin:0 0 .5rem;color:#1f2937;font-size:1.125rem;font-weight:600}.summary-text{margin:.5rem 0;color:#4b5563;line-height:1.5;font-size:.875rem}.action-section{margin-top:1rem;padding:.75rem;background:white;border-left:3px solid #3b82f6;border-radius:4px}.action-section h4{margin:0 0 .5rem;font-size:.875rem;color:#1f2937;font-weight:600}.action-section ul{margin:0;padding-left:1.25rem;list-style-type:disc}.action-section li{margin:.25rem 0;color:#4b5563;font-size:.875rem;line-height:1.4}.summary-meta{margin-top:1rem;padding-top:.75rem;border-top:1px solid #e5e7eb;font-size:.75rem;color:#9ca3af;font-style:italic}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:10000}.modal-content{background:white;border-radius:12px;padding:1.5rem;width:90%;max-width:500px;max-height:90vh;overflow-y:auto;box-shadow:0 4px 20px #00000026}.modal-content h2{margin:0 0 1rem;color:#1f2937;font-size:1.5rem;font-weight:700}.modal-content p{margin:.5rem 0;color:#6b7280;font-size:.875rem}.system-settings{padding:2rem;max-width:1200px}.system-settings-header h2{margin-bottom:.5rem;color:#333}.settings-description{color:#666;margin-bottom:2rem}.settings-message{padding:1rem;margin-bottom:1rem;border-radius:4px;font-weight:500}.settings-message-success{background:#d4edda;color:#155724;border:1px solid #c3e6cb}.settings-message-error{background:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.settings-message-warning{background:#fff3cd;color:#856404;border:1px solid #ffeeba}.worker-config-summary{background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);padding:1.5rem;border-radius:12px;margin-bottom:2rem;color:#fff}.worker-config-summary h3{margin-top:0;margin-bottom:1rem}.config-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin:1rem 0}.stat-card{background:rgba(255,255,255,.95);padding:1rem;border-radius:8px;text-align:center}.stat-label{font-size:.875rem;color:#666;margin-bottom:.5rem}.stat-value{font-size:1.75rem;font-weight:700;background:linear-gradient(135deg,#8b5cf6 0%,#f97316 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.worker-list{margin-top:1.5rem}.worker-list h4{margin-bottom:.75rem;font-size:1rem;opacity:.95}.worker-item{background:rgba(255,255,255,.9);padding:.75rem 1rem;border-radius:6px;margin-bottom:.5rem}.worker-info{font-weight:500;margin-bottom:.25rem;color:#333}.worker-sessions{font-size:.875rem;color:#666}.entity-list{color:#999;font-size:.8125rem}.settings-category{margin-bottom:2rem}.category-header{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #dee2e6}.category-icon{font-size:1.5rem}.settings-list{display:flex;flex-direction:column;gap:1rem}.setting-item{background:#f8f9fa;padding:1.5rem;border-radius:8px;border:1px solid #dee2e6;transition:box-shadow .2s}.setting-item:hover{box-shadow:0 2px 8px #0000001a}.setting-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.5rem;flex-wrap:wrap;gap:.5rem}.setting-title{font-weight:600;font-size:1.125rem;display:flex;align-items:center;gap:.5rem}.restart-badge{font-size:.875rem;background:#fff3cd;padding:.125rem .5rem;border-radius:3px;border:1px solid #ffeeba;cursor:help}.setting-actions{display:flex;gap:.5rem}.btn-edit,.btn-save,.btn-cancel{padding:.375rem 1rem;border:none;border-radius:4px;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s}.btn-edit{background:#8b5cf6;color:#fff}.btn-edit:hover{background:#7c3aed;transform:translateY(-1px)}.btn-save{background:#10b981;color:#fff}.btn-save:hover:not(:disabled){background:#059669;transform:translateY(-1px)}.btn-cancel{background:#6c757d;color:#fff}.btn-cancel:hover:not(:disabled){background:#5a6268;transform:translateY(-1px)}.btn-save:disabled,.btn-cancel:disabled{opacity:.6;cursor:not-allowed;transform:none}.setting-description{color:#666;margin-bottom:1rem;font-size:.9375rem;line-height:1.5}.setting-value-container{margin-bottom:.75rem}.setting-input{width:200px;padding:.5rem;border:1px solid #ced4da;border-radius:4px;font-size:1rem}.setting-input:focus{outline:none;border-color:#8b5cf6;box-shadow:0 0 0 3px #8b5cf61a}.setting-value{font-size:1.125rem}.setting-value strong{color:#8b5cf6}.value-range{font-size:.875rem;color:#999;margin-left:.5rem}.setting-meta{display:flex;justify-content:space-between;align-items:center;font-size:.8125rem;color:#999}.setting-key{font-family:monospace;background:#e9ecef;padding:.125rem .375rem;border-radius:3px}.system-settings-loading{padding:3rem;text-align:center;color:#666;font-size:1.125rem}@media (prefers-color-scheme: dark){.system-settings-header h2{color:#f0f0f0}.setting-item{background:#2c3038;border-color:#3a3f47}.setting-value strong{color:#a78bfa}.worker-item{background:#2c3038}.worker-info{color:#f0f0f0}.setting-input{background:#3a3f47;border-color:#4a4f57;color:#f0f0f0}}.google-calendar-auth{padding:20px;max-width:1200px;margin:0 auto}.gca-header{margin-bottom:30px}.gca-header h2{font-size:28px;margin:0 0 10px;color:#1a1a1a}.gca-description{color:#666;font-size:14px;line-height:1.5;margin:0}.gca-message{padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px}.gca-message-success{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}.gca-message-error{background-color:#f8d7da;color:#721c24;border:1px solid #f5c6cb}.gca-message-info{background-color:#d1ecf1;color:#0c5460;border:1px solid #bee5eb}.gca-card{background:white;border-radius:12px;box-shadow:0 1px 3px #0000001a;padding:24px;margin-bottom:24px}.gca-card h3{font-size:18px;margin:0 0 12px;color:#1a1a1a}.gca-subtext{color:#666;font-size:14px;margin:0 0 16px}.gca-current-user{border-left:4px solid #4285f4}.gca-authenticated{display:flex;justify-content:space-between;align-items:center;gap:20px}.gca-user-info{display:flex;align-items:center;gap:16px}.gca-avatar{width:50px;height:50px;border-radius:50%;object-fit:cover}.gca-email{font-weight:600;color:#1a1a1a;margin-bottom:4px}.gca-status{font-size:12px;padding:4px 8px;border-radius:4px;display:inline-block}.gca-status-connected{background-color:#d4edda;color:#155724}.gca-not-authenticated{text-align:center;padding:20px}.gca-not-authenticated p{color:#666;margin-bottom:16px}.gca-actions{display:flex;gap:12px}.gca-button{padding:10px 20px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;border:none;transition:all .2s}.gca-button-primary{background-color:#4285f4;color:#fff}.gca-button-primary:hover{background-color:#3367d6}.gca-button-secondary{background-color:#f8f9fa;color:#1a1a1a;border:1px solid #ddd}.gca-button-secondary:hover{background-color:#e2e6ea}.gca-button-danger{background-color:#dc3545;color:#fff}.gca-button-danger:hover{background-color:#c82333}.gca-button:disabled{opacity:.6;cursor:not-allowed}.gca-table{width:100%;border-collapse:collapse;margin-top:16px}.gca-table th,.gca-table td{padding:12px;text-align:left;border-bottom:1px solid #e0e0e0}.gca-table th{background-color:#f8f9fa;font-weight:600;color:#333;font-size:13px;text-transform:uppercase;letter-spacing:.5px}.gca-table tr:hover{background-color:#f8f9fa}.gca-user-cell{display:flex;align-items:center;gap:12px}.gca-table-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover}.gca-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500}.gca-badge-active{background-color:#d4edda;color:#155724}.gca-empty{color:#999;font-style:italic;padding:20px;text-align:center}.gca-info{background-color:#f8f9fa}.gca-steps{margin:16px 0;padding-left:20px;color:#333;line-height:1.8}.gca-steps li{margin-bottom:8px}.gca-note{margin-top:16px;padding:12px;background-color:#fff;border-left:3px solid #4285f4;border-radius:4px;font-size:13px;color:#666}@media (max-width: 768px){.gca-authenticated{flex-direction:column;align-items:flex-start}.gca-actions{width:100%;flex-direction:column}.gca-button{width:100%}.gca-table{font-size:13px}.gca-table th,.gca-table td{padding:8px}}.gca-calendar-selection{border-left:4px solid #34a853}.gca-entity-selector{display:flex;align-items:center;gap:12px;margin-bottom:20px;flex-wrap:wrap}.gca-label{font-weight:600;color:#333;font-size:14px}.gca-select{padding:10px 16px;border:1px solid #ddd;border-radius:6px;font-size:14px;background-color:#fff;color:#333;cursor:pointer;transition:border-color .2s;min-width:200px}.gca-select:hover{border-color:#4285f4}.gca-select:focus{outline:none;border-color:#4285f4;box-shadow:0 0 0 3px #4285f41a}.gca-select:disabled{opacity:.6;cursor:not-allowed}.gca-calendars-list{display:flex;flex-direction:column;gap:12px;margin-bottom:20px;max-height:400px;overflow-y:auto;padding-right:8px}.gca-calendars-list::-webkit-scrollbar{width:8px}.gca-calendars-list::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.gca-calendars-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:4px}.gca-calendars-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}.gca-calendar-item{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background-color:#f8f9fa;border:2px solid transparent;border-radius:8px;cursor:pointer;transition:all .2s}.gca-calendar-item:hover{background-color:#e8f0fe;border-color:#d2e3fc}.gca-calendar-item-selected{background-color:#e8f0fe;border-color:#4285f4}.gca-calendar-checkbox{display:flex;align-items:flex-start;gap:12px;flex:1}.gca-calendar-checkbox input[type=checkbox]{width:18px;height:18px;margin-top:2px;cursor:pointer;accent-color:#4285f4}.gca-calendar-checkbox label{flex:1;cursor:pointer;margin:0}.gca-calendar-info{display:flex;flex-direction:column;gap:4px}.gca-calendar-name{font-weight:600;color:#1a1a1a;font-size:15px;display:flex;align-items:center;gap:8px}.gca-calendar-description{font-size:13px;color:#666;line-height:1.4}.gca-calendar-id{font-size:11px;color:#999;font-family:monospace}.gca-calendar-color{width:40px;height:40px;border-radius:8px;border:2px solid white;box-shadow:0 2px 4px #0000001a;flex-shrink:0}.gca-badge-primary{background-color:#4285f4;color:#fff;font-size:10px;text-transform:uppercase;letter-spacing:.5px}.gca-save-section{display:flex;align-items:center;gap:16px;padding-top:16px;border-top:1px solid #e0e0e0;flex-wrap:wrap}.gca-hint{font-size:13px;color:#666;font-style:italic}.gca-button-small{padding:6px 12px;font-size:13px}.gca-text-muted{color:#999}.gca-connect-section{margin-top:20px;text-align:center}.gca-all-users{border-left:4px solid #4285f4}/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container.ql-disabled .ql-editor ul[data-checked]>li:before{pointer-events:none}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor>*{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor ul,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0;counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol,.ql-editor ul{padding-left:1.5em}.ql-editor ol>li,.ql-editor ul>li{list-style-type:none}.ql-editor ul>li:before{content:"•"}.ql-editor ul[data-checked=true],.ql-editor ul[data-checked=false]{pointer-events:none}.ql-editor ul[data-checked=true]>li *,.ql-editor ul[data-checked=false]>li *{pointer-events:all}.ql-editor ul[data-checked=true]>li:before,.ql-editor ul[data-checked=false]>li:before{color:#777;cursor:pointer;pointer-events:all}.ql-editor ul[data-checked=true]>li:before{content:"☑"}.ql-editor ul[data-checked=false]>li:before{content:"☐"}.ql-editor li:before{display:inline-block;white-space:nowrap;width:1.2em}.ql-editor li:not(.ql-direction-rtl):before{margin-left:-1.5em;margin-right:.3em;text-align:right}.ql-editor li.ql-direction-rtl:before{margin-left:.3em;margin-right:-1.5em}.ql-editor ol li:not(.ql-direction-rtl),.ql-editor ul li:not(.ql-direction-rtl){padding-left:1.5em}.ql-editor ol li.ql-direction-rtl,.ql-editor ul li.ql-direction-rtl{padding-right:1.5em}.ql-editor ol li{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;counter-increment:list-0}.ql-editor ol li:before{content:counter(list-0,decimal) ". "}.ql-editor ol li.ql-indent-1{counter-increment:list-1}.ql-editor ol li.ql-indent-1:before{content:counter(list-1,lower-alpha) ". "}.ql-editor ol li.ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-2{counter-increment:list-2}.ql-editor ol li.ql-indent-2:before{content:counter(list-2,lower-roman) ". "}.ql-editor ol li.ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-3{counter-increment:list-3}.ql-editor ol li.ql-indent-3:before{content:counter(list-3,decimal) ". "}.ql-editor ol li.ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-4{counter-increment:list-4}.ql-editor ol li.ql-indent-4:before{content:counter(list-4,lower-alpha) ". "}.ql-editor ol li.ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-5{counter-increment:list-5}.ql-editor ol li.ql-indent-5:before{content:counter(list-5,lower-roman) ". "}.ql-editor ol li.ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}.ql-editor ol li.ql-indent-6{counter-increment:list-6}.ql-editor ol li.ql-indent-6:before{content:counter(list-6,decimal) ". "}.ql-editor ol li.ql-indent-6{counter-reset:list-7 list-8 list-9}.ql-editor ol li.ql-indent-7{counter-increment:list-7}.ql-editor ol li.ql-indent-7:before{content:counter(list-7,lower-alpha) ". "}.ql-editor ol li.ql-indent-7{counter-reset:list-8 list-9}.ql-editor ol li.ql-indent-8{counter-increment:list-8}.ql-editor ol li.ql-indent-8:before{content:counter(list-8,lower-roman) ". "}.ql-editor ol li.ql-indent-8{counter-reset:list-9}.ql-editor ol li.ql-indent-9{counter-increment:list-9}.ql-editor ol li.ql-indent-9:before{content:counter(list-9,decimal) ". "}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor.ql-blank:before{color:#0009;content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:"";display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer: coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow,.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:"";display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor pre{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor pre{white-space:pre-wrap;margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor pre.ql-syntax{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label:before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=""]):before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=""]):before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label:before,.ql-snow .ql-picker.ql-header .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{content:"Heading 1"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{content:"Heading 2"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{content:"Heading 3"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{content:"Heading 4"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{content:"Heading 5"}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{content:"Heading 6"}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label:before,.ql-snow .ql-picker.ql-font .ql-picker-item:before{content:"Sans Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{content:"Serif"}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]:before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{content:"Monospace"}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]:before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]:before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label:before,.ql-snow .ql-picker.ql-size .ql-picker-item:before{content:"Normal"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{content:"Small"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{content:"Large"}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]:before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{content:"Huge"}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]:before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]:before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]:before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:#0003 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label,.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow+.ql-container.ql-snow{border-top:0px}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip:before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action:after{border-right:1px solid #ccc;content:"Edit";margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove:before{content:"Remove";margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action:after{border-right:0px;content:"Save";padding-right:0}.ql-snow .ql-tooltip[data-mode=link]:before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]:before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]:before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}
