:root{--bg:#fff;--bg-secondary:#f8fafc;--bg-hover:#f1f5f9;--border:#e2e8f0;--text:#0f172a;--text-secondary:#475569;--text-muted:#94a3b8;--accent:#1e40af;--accent-hover:#1d4ed8;--accent-light:#eff6ff;--accent-dim:#bfdbfe;--status-waiting-bg:#fffbeb;--status-waiting-text:#78350f;--status-waiting-dot:#f59e0b;--status-active-bg:#ecfdf5;--status-active-text:#064e3b;--status-active-dot:#10b981;--status-closed-bg:#f8fafc;--status-closed-text:#64748b;--status-closed-dot:#94a3b8;--status-bot-bg:#f0f9ff;--status-bot-text:#0369a1;--status-bot-dot:#0ea5e9;--bubble-user:#f1f5f9;--bubble-user-text:#0f172a;--bubble-bot:#f0f9ff;--bubble-bot-text:#0369a1;--bubble-agent:#ecfdf5;--bubble-agent-text:#065f46}body.dark{--bg:#0f172a;--bg-secondary:#1e293b;--bg-hover:#334155;--border:#334155;--text:#f1f5f9;--text-secondary:#94a3b8;--text-muted:#64748b;--accent:#3b82f6;--accent-hover:#2563eb;--accent-light:#172554;--accent-dim:#1e3a5f;--status-waiting-bg:#291f05;--status-waiting-text:#fde68a;--status-waiting-dot:#f59e0b;--status-active-bg:#052e16;--status-active-text:#86efac;--status-active-dot:#22c55e;--status-closed-bg:#1e293b;--status-closed-text:#64748b;--status-closed-dot:#475569;--status-bot-bg:#0c2a4a;--status-bot-text:#7dd3fc;--status-bot-dot:#0ea5e9;--bubble-user:#334155;--bubble-user-text:#f1f5f9;--bubble-bot:#0c2a4a;--bubble-bot-text:#7dd3fc;--bubble-agent:#052e16;--bubble-agent-text:#86efac}*,:before,:after{box-sizing:border-box}html,body,#root{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;height:100%;margin:0;padding:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px}body{background:var(--bg-secondary);color:var(--text);transition:background .2s,color .2s}#root{flex-direction:column;display:flex}.login-container{background-color:#0a1628;background-image:radial-gradient(80% 60% at 50% -10%,#1e40af40 0%,#0000 65%),linear-gradient(160deg,#0a1628 0%,#0e1f3d 50%,#0a1628 100%);background-position:0 0;background-repeat:repeat;background-size:auto;background-attachment:scroll;background-origin:padding-box;background-clip:border-box;justify-content:center;align-items:center;min-height:100vh;display:flex;position:relative;overflow:hidden}.login-card{z-index:1;background:#fff;border-radius:10px;width:100%;max-width:400px;padding:2.75rem 2.5rem 2.25rem;position:relative;box-shadow:0 25px 60px #00000080,0 0 0 1px #ffffff0d}.login-logo{text-align:center;margin-bottom:1.75rem}.login-brand-mark{color:#fff;letter-spacing:-.5px;background:#0f172a;border-radius:10px;justify-content:center;align-items:center;width:48px;height:48px;margin-bottom:1rem;font-family:Inter,sans-serif;font-size:1rem;font-weight:800;display:inline-flex}.login-logo h1{color:#0f172a;letter-spacing:-.3px;margin:0 0 .3rem;font-size:1.15rem;font-weight:700}.login-logo p{color:#64748b;letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:.74rem;font-weight:600}.login-divider{background:#e2e8f0;height:1px;margin:0 0 1.75rem}.login-form{flex-direction:column;gap:1.1rem;display:flex}.form-group{flex-direction:column;gap:.35rem;display:flex}.form-group label{color:#374151;letter-spacing:.05em;text-transform:uppercase;font-size:.74rem;font-weight:700}.form-group input{color:#0f172a;background:#fff;border:1.5px solid #e2e8f0;border-radius:7px;outline:none;padding:.65rem .9rem;font-family:inherit;font-size:.92rem;transition:border-color .15s,box-shadow .15s}.form-group input:focus{border-color:#1e40af;box-shadow:0 0 0 3px #1e40af1a}.form-group input::placeholder{color:#94a3b8;font-weight:400}.login-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;margin:0;padding:.55rem .85rem;font-size:.82rem;font-weight:500}.login-btn{color:#fff;cursor:pointer;letter-spacing:.02em;background:#1e40af;border:none;border-radius:7px;margin-top:.25rem;padding:.72rem;font-family:inherit;font-size:.9rem;font-weight:600;transition:background .15s,box-shadow .15s}.login-btn:hover:not(:disabled){background:#1d4ed8;box-shadow:0 4px 14px #1e40af59}.login-btn:disabled{cursor:not-allowed;box-shadow:none;background:#93c5fd}.login-footer{text-align:center;color:#94a3b8;letter-spacing:.01em;border-top:1px solid #e2e8f0;margin-top:1.75rem;padding-top:1.25rem;font-size:.72rem;font-weight:500}.conv-list{flex:1;margin:0;padding:0;list-style:none;overflow-y:auto}.conv-list::-webkit-scrollbar{width:4px}.conv-list::-webkit-scrollbar-track{background:0 0}.conv-list::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.conv-list-empty{height:200px;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:.65rem;font-size:.84rem;display:flex}.conv-empty-icon{color:var(--border)}.conv-item{cursor:pointer;border-bottom:1px solid var(--border);align-items:flex-start;gap:.75rem;padding:.85rem 1rem;transition:background .12s;display:flex;position:relative}.conv-item:hover{background:var(--bg-hover)}.conv-item--active{background:var(--accent-light)}.conv-item--active:before{content:"";background:var(--accent);border-radius:0 2px 2px 0;width:3px;position:absolute;top:0;bottom:0;left:0}.conv-item--unread .conv-phone{font-weight:700}.conv-avatar{background:var(--accent);color:#fff;letter-spacing:.5px;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:.78rem;font-weight:700;display:flex;position:relative}.unread-badge{color:#fff;border:2px solid var(--bg);background:#ef4444;border-radius:9px;justify-content:center;align-items:center;min-width:17px;height:17px;padding:0 3px;font-size:.62rem;font-weight:700;display:flex;position:absolute;top:-3px;right:-3px}.conv-info{flex:1;min-width:0}.conv-header{justify-content:space-between;align-items:baseline;margin-bottom:3px;display:flex}.conv-phone{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:.85rem;font-weight:600;overflow:hidden}.conv-time{color:var(--text-muted);flex-shrink:0;margin-left:.5rem;font-size:.71rem;font-weight:500}.conv-sub{align-items:center;gap:.5rem;margin-bottom:3px;display:flex}.conv-building{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;font-size:.75rem;overflow:hidden}.conv-status{letter-spacing:.01em;border-radius:4px;flex-shrink:0;align-items:center;gap:.3rem;padding:2px 7px;font-size:.67rem;font-weight:600;display:inline-flex}.status-dot{border-radius:50%;flex-shrink:0;width:5px;height:5px}.status-waiting{background:var(--status-waiting-bg);color:var(--status-waiting-text)}.status-waiting .status-dot{background:var(--status-waiting-dot)}.status-active{background:var(--status-active-bg);color:var(--status-active-text)}.status-active .status-dot{background:var(--status-active-dot)}.status-closed{background:var(--status-closed-bg);color:var(--status-closed-text)}.status-closed .status-dot{background:var(--status-closed-dot)}.status-bot{background:var(--status-bot-bg);color:var(--status-bot-text)}.status-bot .status-dot{background:var(--status-bot-dot)}.conv-preview{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:.77rem;line-height:1.4;overflow:hidden}.conv-preview--bold{color:var(--text-secondary);font-weight:600}.qr-wrapper{position:relative}.qr-toggle{background:var(--bg-secondary);border:1.5px solid var(--border);cursor:pointer;width:38px;height:38px;color:var(--text-muted);border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:background .12s,border-color .12s,color .12s;display:flex}.qr-toggle:hover,.qr-toggle--active{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}.qr-panel{background:var(--bg);border:1.5px solid var(--border);z-index:100;border-radius:10px;width:310px;position:absolute;bottom:calc(100% + 8px);left:0;overflow:hidden;box-shadow:0 12px 32px #0000001f,0 0 0 1px #00000008}.qr-header{color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em;border-bottom:1px solid var(--border);background:var(--bg-secondary);padding:.65rem .9rem;font-size:.7rem;font-weight:700}.qr-list{max-height:260px;margin:0;padding:.35rem 0;list-style:none;overflow-y:auto}.qr-list::-webkit-scrollbar{width:4px}.qr-list::-webkit-scrollbar-track{background:0 0}.qr-list::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.qr-item{color:var(--text);cursor:pointer;border-left:2px solid #0000;padding:.55rem .9rem;font-size:.84rem;line-height:1.45;transition:background .1s}.qr-item:hover{background:var(--bg-hover);border-left-color:var(--accent)}.info-panel{background:var(--bg);border-left:1px solid var(--border);flex-direction:column;flex-shrink:0;width:260px;height:100%;display:flex}.info-header{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;min-height:60px;padding:0 1rem;display:flex}.info-header-title{color:var(--text);text-transform:uppercase;letter-spacing:.07em;font-size:.74rem;font-weight:700}.info-close{cursor:pointer;color:var(--text-muted);background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:background .12s,color .12s;display:flex}.info-close:hover{background:var(--bg-hover);color:var(--text)}.info-body{flex-direction:column;flex:1;gap:.5rem;padding:.85rem;display:flex;overflow-y:auto}.info-body::-webkit-scrollbar{width:4px}.info-body::-webkit-scrollbar-track{background:0 0}.info-body::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.info-section{background:var(--bg-secondary);border:1px solid #0000;border-radius:7px;padding:.6rem .8rem}.info-section--highlight{background:var(--accent-light);border-color:var(--accent-dim)}.info-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.07em;margin-bottom:4px;font-size:.66rem;font-weight:700}.info-value{color:var(--text);font-size:.83rem;font-weight:500;line-height:1.4}.info-ticket{color:var(--accent);letter-spacing:-.2px;font-size:1.05rem;font-weight:700}.info-status{align-items:center;gap:.4rem;font-size:.83rem;font-weight:600;display:inline-flex}.info-status-dot{border-radius:50%;flex-shrink:0;width:7px;height:7px}.info-status--bot .info-status-dot{background:var(--status-bot-dot)}.info-status--waiting .info-status-dot{background:var(--status-waiting-dot)}.info-status--active .info-status-dot{background:var(--status-active-dot)}.info-status--closed .info-status-dot{background:var(--status-closed-dot)}.chat-wrapper{height:100%;display:flex;overflow:hidden}.chat-panel{background:var(--bg-secondary);flex-direction:column;flex:1;display:flex;position:relative;overflow:hidden}.chat-header{background:var(--bg);border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;gap:1rem;min-height:60px;padding:0 1.5rem;display:flex}.chat-header-phone{color:var(--text);letter-spacing:-.2px;font-size:.95rem;font-weight:700}.chat-header-meta{color:var(--text-secondary);flex-wrap:wrap;align-items:center;gap:.65rem;margin-top:3px;font-size:.75rem;display:flex}.ticket-badge{background:var(--accent-light);color:var(--accent);letter-spacing:.02em;border:1px solid var(--accent-dim);border-radius:4px;align-items:center;padding:2px 8px;font-size:.72rem;font-weight:700;display:inline-flex}.chat-header-actions{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.btn-icon{border:1.5px solid var(--border);cursor:pointer;width:33px;height:33px;color:var(--text-muted);background:0 0;border-radius:7px;justify-content:center;align-items:center;padding:0;transition:background .12s,border-color .12s,color .12s;display:flex}.btn-icon:hover,.btn-icon--active{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}.btn-close-ticket{color:#065f46;cursor:pointer;letter-spacing:.01em;background:#fff;border:1.5px solid #10b981;border-radius:7px;padding:.42rem 1rem;font-family:inherit;font-size:.8rem;font-weight:600;transition:background .15s,box-shadow .15s}.btn-close-ticket:hover{background:#ecfdf5;box-shadow:0 2px 8px #10b98133}body.dark .btn-close-ticket{color:#86efac;background:#052e16;border-color:#22c55e}.closed-badge{background:var(--bg-secondary);color:var(--text-muted);border:1px solid var(--border);letter-spacing:.03em;text-transform:uppercase;border-radius:20px;padding:.28rem .8rem;font-size:.74rem;font-weight:600}.chat-messages{flex-direction:column;flex:1;gap:.65rem;padding:1.25rem 1.5rem;display:flex;overflow-y:auto}.chat-messages::-webkit-scrollbar{width:4px}.chat-messages::-webkit-scrollbar-track{background:0 0}.chat-messages::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.chat-empty{text-align:center;color:var(--text-muted);margin-top:3rem;font-size:.85rem}.msg-bubble{border-radius:10px;max-width:66%;padding:.6rem .9rem;font-size:.875rem;line-height:1.55}.msg-user{background:var(--bubble-user);color:var(--bubble-user-text);border-bottom-left-radius:3px;align-self:flex-start}.msg-bot{background:var(--bubble-bot);color:var(--bubble-bot-text);border-bottom-left-radius:3px;align-self:flex-start}.msg-agent{background:var(--bubble-agent);color:var(--bubble-agent-text);border-bottom-right-radius:3px;align-self:flex-end}.msg-mine{border-bottom-right-radius:3px;align-self:flex-end;background:var(--accent)!important;color:#fff!important}.msg-sender{opacity:.6;text-transform:uppercase;letter-spacing:.05em;margin-bottom:3px;font-size:.67rem;font-weight:700}.msg-content{white-space:pre-wrap;word-break:break-word}.msg-time{opacity:.5;text-align:right;margin-top:5px;font-size:.66rem;font-weight:500}.typing-indicator{align-self:flex-start;align-items:center;gap:.5rem;padding:.35rem 0;display:flex}.typing-dots{align-items:center;gap:3px;display:flex}.typing-dots span{background:var(--text-muted);border-radius:50%;width:5px;height:5px;animation:1.2s infinite bounce}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}@keyframes bounce{0%,60%,to{transform:translateY(0)}30%{transform:translateY(-4px)}}.typing-text{color:var(--text-muted);font-size:.76rem;font-style:italic}.chat-input-bar{background:var(--bg);border-top:1px solid var(--border);flex-shrink:0;align-items:flex-end;gap:.5rem;padding:.75rem 1rem;display:flex}.chat-input{border:1.5px solid var(--border);resize:none;background:var(--bg-secondary);color:var(--text);border-radius:8px;outline:none;flex:1;padding:.55rem .85rem;font-family:inherit;font-size:.875rem;line-height:1.5;transition:border-color .15s}.chat-input:focus{border-color:var(--accent)}.chat-input::placeholder{color:var(--text-muted)}.btn-send{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;padding:0;transition:background .15s,box-shadow .15s;display:flex}.btn-send:hover:not(:disabled){background:var(--accent-hover);box-shadow:0 3px 10px #1e40af4d}.btn-send:disabled{background:var(--accent-dim);cursor:not-allowed;box-shadow:none}.modal-overlay{z-index:50;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0006;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.modal-box{background:var(--bg);border:1px solid var(--border);border-radius:10px;width:390px;padding:1.75rem;box-shadow:0 20px 60px #00000040}.modal-box h3{color:var(--text);letter-spacing:-.2px;margin:0 0 .4rem;font-size:1rem;font-weight:700}.modal-box p{color:var(--text-secondary);margin:0 0 1rem;font-size:.84rem;line-height:1.55}.modal-box textarea{border:1.5px solid var(--border);resize:none;box-sizing:border-box;background:var(--bg-secondary);width:100%;color:var(--text);border-radius:7px;outline:none;padding:.65rem;font-family:inherit;font-size:.875rem;line-height:1.5;transition:border-color .15s}.modal-box textarea:focus{border-color:var(--accent)}.modal-actions{justify-content:flex-end;gap:.75rem;margin-top:1.25rem;display:flex}.btn-cancel{background:var(--bg-secondary);color:var(--text-secondary);border:1.5px solid var(--border);cursor:pointer;border-radius:7px;padding:.5rem 1.1rem;font-family:inherit;font-size:.85rem;font-weight:600;transition:background .12s}.btn-cancel:hover{background:var(--bg-hover)}.btn-confirm{color:#fff;cursor:pointer;background:#065f46;border:none;border-radius:7px;padding:.5rem 1.1rem;font-family:inherit;font-size:.85rem;font-weight:600;transition:background .15s,box-shadow .15s}.btn-confirm:hover{background:#047857;box-shadow:0 3px 10px #065f4640}.kim-overlay{z-index:1000;background:#00000073;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.kim-modal{background:var(--bg);border:1px solid var(--border);border-radius:12px;width:100%;max-width:480px;overflow:hidden;box-shadow:0 20px 60px #0003}.kim-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:1.25rem 1.5rem 1rem;display:flex}.kim-title{align-items:center;gap:.75rem;display:flex}.kim-title-icon{background:var(--accent-light);width:34px;height:34px;color:var(--accent);border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.kim-title-main{color:var(--text);font-size:1rem;font-weight:600}.kim-title-sub{color:var(--text-muted);margin-top:.1rem;font-size:.75rem}.kim-close{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:background .12s,color .12s;display:flex}.kim-close:hover{background:var(--bg-hover);color:var(--text)}.kim-body{flex-direction:column;gap:1.25rem;padding:1.5rem;display:flex}.kim-dropzone{border:2px dashed var(--border);text-align:center;cursor:pointer;border-radius:10px;flex-direction:column;align-items:center;gap:.75rem;padding:2rem 1rem;transition:border-color .2s,background .2s;display:flex}.kim-dropzone:hover,.kim-dropzone--dragging{border-color:var(--accent);background:var(--accent-light)}.kim-dropzone--hasfile{border-style:solid;border-color:var(--accent);background:var(--accent-light);cursor:default}.kim-drop-icon{color:var(--text-muted);display:flex}.kim-drop-text{color:var(--text-secondary);font-size:.9rem;line-height:1.5}.kim-drop-sub{color:var(--accent);font-size:.8rem}.kim-file-selected{justify-content:center;align-items:center;gap:.75rem;width:100%;display:flex}.kim-file-icon{color:var(--accent);flex-shrink:0;display:flex}.kim-file-name{color:var(--text);text-align:left;white-space:nowrap;text-overflow:ellipsis;flex:1;max-width:240px;font-size:.9rem;font-weight:500;overflow:hidden}.kim-file-remove{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:.2rem .4rem;font-size:.85rem;transition:background .15s}.kim-file-remove:hover{background:var(--bg-hover);color:var(--text)}.kim-field{flex-direction:column;gap:.4rem;display:flex}.kim-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;font-size:.8rem;font-weight:600}.kim-input{background:var(--bg-secondary);border:1px solid var(--border);color:var(--text);box-sizing:border-box;border-radius:8px;width:100%;padding:.6rem .85rem;font-size:.9rem;transition:border-color .2s}.kim-input:focus{border-color:var(--accent);background:var(--bg);outline:none}.kim-hint{color:var(--text-muted);font-size:.75rem}.kim-error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:.65rem .9rem;font-size:.85rem}body.dark .kim-error{color:#fca5a5;background:#2d1b1b;border-color:#7f1d1d}.kim-submit{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;gap:.5rem;width:100%;padding:.75rem 1.25rem;font-size:.9rem;font-weight:600;transition:background .2s,opacity .2s;display:flex}.kim-submit:hover:not(:disabled){background:var(--accent-hover)}.kim-submit:disabled{opacity:.5;cursor:not-allowed}.kim-btn-secondary{background:var(--bg-secondary);color:var(--text-secondary);border:1px solid var(--border);cursor:pointer;border-radius:8px;width:100%;padding:.75rem 1.25rem;font-size:.9rem;font-weight:500;transition:background .2s}.kim-btn-secondary:hover{background:var(--bg-hover)}.kim-spinner{border:2px solid #fff6;border-top-color:#fff;border-radius:50%;width:14px;height:14px;animation:.7s linear infinite kim-spin;display:inline-block}@keyframes kim-spin{to{transform:rotate(360deg)}}.kim-result{text-align:center;flex-direction:column;align-items:center;gap:1rem;display:flex}.kim-result-icon{color:#10b981;display:flex}.kim-result-title{color:var(--text);font-size:1.1rem;font-weight:600}.kim-result-stats{grid-template-columns:1fr 1fr;gap:.75rem;width:100%;display:grid}.kim-stat{background:var(--bg-secondary);border:1px solid var(--border);border-radius:10px;flex-direction:column;align-items:center;gap:.2rem;padding:.9rem .75rem;display:flex}.kim-stat--success{background:#ecfdf5;border-color:#6ee7b7}body.dark .kim-stat--success{background:#064e3b22;border-color:#065f46}.kim-stat--muted{opacity:.7}.kim-stat-value{color:var(--text);font-size:1.6rem;font-weight:700;line-height:1}.kim-stat--success .kim-stat-value{color:#059669}.kim-stat-label{color:var(--text-muted);text-align:center;font-size:.72rem}.kim-result-actions{flex-direction:column;gap:.5rem;width:100%;display:flex}.dashboard{background:var(--bg-secondary);height:100vh;display:flex;overflow:hidden}.sidebar{background:var(--bg);border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;width:300px;display:flex;overflow:hidden}.sidebar-header{border-bottom:1px solid var(--border);flex-shrink:0}.sidebar-brand{align-items:center;gap:.7rem;padding:.9rem 1rem .6rem;display:flex}.brand-mark{background:var(--text);width:34px;height:34px;color:var(--bg);letter-spacing:-.3px;-webkit-user-select:none;user-select:none;border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;font-family:Inter,sans-serif;font-size:.72rem;font-weight:800;display:flex}.sidebar-title{color:var(--text);letter-spacing:-.2px;font-size:.88rem;font-weight:700;line-height:1.2}.sidebar-sector{color:var(--accent);margin-top:1px;font-size:.72rem;font-weight:600}.sidebar-agent{align-items:center;gap:.6rem;padding:.4rem 1rem .85rem;display:flex}.agent-avatar{background:var(--accent-light);border:1.5px solid var(--accent-dim);width:26px;height:26px;color:var(--accent);letter-spacing:.3px;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:.67rem;font-weight:700;display:flex}.agent-name{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:.79rem;font-weight:500;overflow:hidden}.sidebar-controls{flex-shrink:0;align-items:center;gap:.25rem;display:flex}.ctrl-btn{border:1px solid var(--border);cursor:pointer;width:28px;height:28px;color:var(--text-muted);background:0 0;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:background .12s,border-color .12s,color .12s;display:flex}.ctrl-btn:hover{background:var(--bg-hover);color:var(--text)}.sidebar-stats{border-bottom:1px solid var(--border);flex-wrap:wrap;flex-shrink:0;gap:.5rem;padding:.5rem 1rem;display:flex}.stat-chip{white-space:nowrap;border-radius:4px;align-items:center;gap:.35rem;padding:3px 9px;font-size:.72rem;font-weight:600;display:inline-flex}.stat-chip--waiting{background:var(--status-waiting-bg);color:var(--status-waiting-text)}.stat-chip--active{background:var(--status-active-bg);color:var(--status-active-text)}.stat-dot{border-radius:50%;flex-shrink:0;width:6px;height:6px}.stat-dot--waiting{background:var(--status-waiting-dot)}.stat-dot--active{background:var(--status-active-dot)}.sidebar-search{border-bottom:1px solid var(--border);flex-shrink:0;padding:.65rem .75rem;position:relative}.sidebar-search:before{content:"";pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;width:14px;height:14px;position:absolute;top:50%;left:1.3rem;transform:translateY(-50%)}.search-input{border:1.5px solid var(--border);background:var(--bg-secondary);width:100%;color:var(--text);border-radius:7px;outline:none;padding:.42rem .75rem .42rem 2.1rem;font-family:inherit;font-size:.83rem;transition:border-color .15s,background .15s}.search-input::placeholder{color:var(--text-muted)}.search-input:focus{border-color:var(--accent);background:var(--bg)}.sidebar-filters{border-bottom:1px solid var(--border);flex-shrink:0;gap:0;display:flex;overflow-x:auto}.sidebar-filters::-webkit-scrollbar{display:none}.filter-btn{cursor:pointer;color:var(--text-muted);white-space:nowrap;background:0 0;border:none;border-bottom:2px solid #0000;flex-shrink:0;padding:.6rem .85rem;font-family:inherit;font-size:.78rem;font-weight:600;transition:color .12s,border-color .12s}.filter-btn:hover{color:var(--text-secondary)}.filter-btn--active{color:var(--accent);border-bottom-color:var(--accent)}.sidebar-footer{border-top:1px solid var(--border);flex-shrink:0;padding:.6rem .75rem}.sidebar-footer-btn{border:1px solid var(--border);width:100%;color:var(--text-secondary);cursor:pointer;text-align:left;background:0 0;border-radius:7px;align-items:center;gap:.55rem;padding:.5rem .75rem;font-family:inherit;font-size:.8rem;font-weight:600;transition:background .12s,border-color .12s,color .12s;display:flex}.sidebar-footer-btn:hover{background:var(--bg-hover);border-color:var(--accent);color:var(--accent)}.main-panel{flex-direction:column;flex:1;display:flex;overflow:hidden}.main-empty{height:100%;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:1rem;display:flex}.empty-icon{color:var(--border)}.main-empty h2{color:var(--text-secondary);letter-spacing:-.2px;margin:0;font-size:1rem;font-weight:600}.main-empty p{color:var(--text-muted);text-align:center;max-width:280px;margin:0;font-size:.84rem;line-height:1.6}.main-empty-hint{background:var(--status-waiting-bg);color:var(--status-waiting-text);border-radius:6px;align-items:center;gap:.5rem;padding:.45rem .9rem;font-size:.82rem;font-weight:500;display:inline-flex}.main-empty-hint-dot{background:var(--status-waiting-dot);border-radius:50%;flex-shrink:0;width:6px;height:6px}
