body.ww-dashboard-theme{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background-color:#f8fafc;color:#1a202c;line-height:1.6}body.ww-dashboard-theme *{box-sizing:border-box}body.ww-dashboard-theme button,body.ww-dashboard-theme input,body.ww-dashboard-theme select,body.ww-dashboard-theme textarea{font:inherit;color:inherit}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background-color:#f8fafc;color:#1a202c;line-height:1.6}.dashboard-container{height:100vh;display:flex;flex-direction:column;overflow:hidden}.top-bar{background:white;border-bottom:1px solid #e2e8f0;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 1px 3px rgba(0,0,0,.1);position:sticky;top:0;z-index:100}.top-bar-left h1{font-size:1.5rem;font-weight:600;color:#2d3748;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.logout-btn,.top-bar-right{display:flex;align-items:center}.logout-btn{gap:.5rem;padding:.5rem 1rem;background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;color:#4a5568;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}.logout-btn:hover{background:#edf2f7;border-color:#cbd5e0;color:#2d3748}.dashboard-content{flex:1;height:calc(100vh - 80px)}.dashboard-content,.sidebar{display:flex;overflow:hidden}.sidebar{width:72px;background:white;border-right:1px solid #e2e8f0;flex-direction:column;align-items:center;box-shadow:2px 0 4px rgba(0,0,0,.05);height:100%;flex-shrink:0;position:relative}.sidebar-header{display:none}.channel-list{flex:1;display:flex;flex-direction:column;align-items:center;gap:.5rem;overflow-y:auto;padding:.75rem 0 72px}.channel-item-mini{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;border:2px solid transparent;position:relative}.channel-item-mini:hover{background:#f7fafc;transform:translateY(-1px)}.channel-item-mini.active{box-shadow:0 4px 12px rgba(102,126,234,.25);border-color:#667eea}.channel-item-mini.connected:after{content:"";position:absolute;right:4px;bottom:4px;width:12px;height:12px;border-radius:50%;background:#16a34a;border:2px solid #fff}.channel-action-menu{position:absolute;top:62px;left:50%;transform:translateX(-50%);background:#ffffff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 12px 28px rgba(0,0,0,.12);min-width:160px;z-index:20;padding:6px}.channel-action-item{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;color:#1f2937;cursor:pointer}.channel-action-item:hover{background:#f7fafc}.channel-card{display:flex;align-items:center;gap:1rem;padding:1rem;border-radius:12px;cursor:pointer;transition:all .2s ease;border:2px solid transparent}.channel-card:hover{background:#f7fafc;transform:translateY(-1px)}.channel-card.active{background:linear-gradient(135deg,#667eea,#764ba2);color:white;box-shadow:0 4px 12px rgba(102,126,234,.3)}.channel-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.channel-info{flex:1;min-width:0}.channel-info h3{font-size:1rem;font-weight:600;color:#2d3748;margin-bottom:.25rem}.channel-status{font-size:.875rem;color:#718096;font-weight:500}.profile-btn{width:100%;display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:#f7fafc;border:1px solid #e2e8f0;border-radius:8px;color:#4a5568;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s ease}.profile-btn:hover{background:#edf2f7;border-color:#cbd5e0;color:#2d3748}.sidebar-footer{padding:8px;border-top:1px solid #e2e8f0;width:100%;display:flex;position:absolute;left:0;right:0;bottom:8px;background:white;z-index:2}.avatar-btn,.sidebar-footer{align-items:center;justify-content:center}.avatar-btn{width:44px;height:44px;border-radius:12px;border:1px solid #e2e8f0;background:#ffffff;color:#111827;font-weight:800;display:inline-flex;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.06)}.avatar-btn:hover{background:#f7fafc}.main-content{flex:1;padding:2rem;background:#f8fafc;height:100%;overflow:hidden;display:flex;flex-direction:column}.inbox-two-pane{display:flex;height:100%;min-height:0;gap:0}.chat-list-pane{width:380px;max-width:420px;min-width:320px;border-right:1px solid #e2e8f0;background:#ffffff;display:flex;flex-direction:column;min-height:0;overflow:hidden;position:relative}.chat-list-pane .unified-inbox{border-radius:0;box-shadow:none}.chat-list-pane,.chat-list-pane .inbox-header{background:#F7F8FA}.chat-list-pane .inbox-content{overflow-y:auto;padding:.5rem 0}.chat-list-pane .message-list{padding:0}.conversation-pane{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;min-height:0;background:#f3f6fb;box-shadow:inset 8px 0 24px rgba(0,0,0,.03)}.conversation-placeholder{height:100%;display:flex;align-items:center;justify-content:center;background:#f3f6fb}.content-body{flex-direction:column;gap:2rem}.content-body,.unified-inbox{display:flex;flex:1;overflow:hidden}.unified-inbox{background:white;border-radius:16px;box-shadow:0 2px 8px rgba(0,0,0,.05);width:100%;flex-direction:column}.inbox-header{padding:.75rem 12px;display:flex;flex-direction:column;gap:10px}.inbox-titlebar{display:flex;align-items:center;gap:10px}.inbox-header h3{margin:0;font-size:1.05rem;color:#0f172a;font-weight:700;display:flex;align-items:center}.channel-indicator{margin-left:auto;padding:.5rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:white;border-radius:20px;font-size:.875rem;font-weight:500}.inbox-content{padding:.5rem 1rem 1rem;flex:1;overflow-y:auto;display:flex;flex-direction:column}.message-list{width:100%;flex:1;overflow-y:auto;padding:0 .5rem}.message-item{padding:.65rem 12px;cursor:pointer;transition:background-color .2s ease,transform .15s ease;border-bottom:1px solid #e3e5e9}.message-item:hover{background:#EDEFF2;transform:translateX(2px)}.message-item.active{background:#EAEEF6}.message-item.active:hover{background:#E2E8F0}.unread-dot{color:#3b82f6;font-size:18px;line-height:1;margin-right:2px}.new-pill{background:#ebf4ff;color:#1e40af;border-radius:999px;padding:2px 8px;font-size:11px;font-weight:700}.message-item-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem}.message-meta-time{color:#94a3b8;font-size:.78rem;white-space:nowrap;padding-left:.5rem}.chat-row{gap:12px}.chat-avatar,.chat-row{display:flex;align-items:center}.chat-avatar{width:44px;height:44px;border-radius:50%;justify-content:center;color:#fff;font-weight:700;font-size:.85rem;flex-shrink:0}.chat-main{flex:1;min-width:0;display:flex;flex-direction:column}.chat-top{display:flex;align-items:baseline}.chat-name{font-weight:700;color:#0f172a;font-size:.97rem;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-status{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;font-size:.72rem;font-weight:700;margin-left:8px}.chat-status.open{background:#ebf4ff;color:#1e40af}.chat-status.pending{background:#fef7e5;color:#92400e}.chat-status.solved{background:#ecfdf5;color:#065f46}.chat-time{font-size:.78rem;color:#94a3b8;margin-left:8px}.chat-bottom{margin-top:2px;display:flex;align-items:center;gap:6px}.chat-preview{color:#64748b;font-size:.86rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-name.unread{font-weight:800}.chat-preview.unread{font-weight:700;color:#0f172a}.unread-badge{font-size:.7rem;min-width:20px;text-align:center;flex-shrink:0;margin-left:auto}.inbox-unread-badge,.unread-badge{background:linear-gradient(135deg,#667eea,#764ba2);color:white;border-radius:10px;padding:2px 7px;font-weight:700;line-height:1.4}.inbox-unread-badge{font-size:.75rem;margin-left:8px}.channel-unread-badge{position:absolute;top:-6px;right:-6px;background:linear-gradient(135deg,#667eea,#764ba2);color:white;border-radius:11px;padding:3px 7px;font-size:.65rem;font-weight:700;min-width:20px;text-align:center;line-height:1.3;border:2.5px solid #ffffff;box-shadow:0 2px 6px rgba(0,0,0,.2);z-index:1}.channel-icon{position:relative}.inbox-skeleton{display:grid;gap:12px}.inbox-skeleton .skeleton-row{height:56px;border-radius:12px;background:linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 37%,#f1f5f9 63%);background-size:400% 100%;animation:shimmer 1.2s ease-in-out infinite}@keyframes shimmer{0%{background-position:100% 0}to{background-position:0 0}}.empty-inbox{text-align:center;color:#718096;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:300px}.empty-icon{margin-bottom:1rem;opacity:.5}.empty-inbox h4{font-size:1.25rem;font-weight:600;color:#4a5568;margin-bottom:.5rem}.empty-inbox p{font-size:.9rem;color:#a0aec0}.telegram-connect-illustration{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem}.tg-illustration-title{font-size:1.1rem;font-weight:700;color:#1f2937;margin:.25rem 0 .75rem}.tg-illustration-img{width:100%;max-width:760px;height:auto;border-radius:12px;box-shadow:0 6px 24px rgba(0,0,0,.08)}.tg-illustration-cta{margin-top:1rem}.inbox-search{position:relative;display:flex;align-items:center;background:#ffffff;border:1px solid #e2e8f0;border-radius:18px;height:36px;padding:0;box-shadow:0 2px 8px rgba(0,0,0,.04);transition:box-shadow .15s ease,border-color .15s ease}.inbox-search .search-icon{position:absolute;left:12px;width:18px;height:18px;color:#a0aec0;pointer-events:none}.inbox-search-input{border:none;outline:none;width:100%;height:100%;font-size:.95rem;color:#2d3748;background:transparent;border-radius:18px;padding-left:38px;padding-right:30px}.clear-search{position:absolute;right:8px;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;border:none;background:transparent;color:#a0aec0;font-size:18px;cursor:pointer;line-height:1;border-radius:999px}.clear-search:hover{background:#edf2f7;color:#4a5568}.chat-messages{flex:1;overflow-y:auto;padding:1.25rem 1rem;display:flex;flex-direction:column;gap:.5rem;scroll-behavior:smooth;background:#f9fbfe}.chat-message{display:flex;gap:.75rem;max-width:85%;animation:messageSlideIn .3s ease-out}.chat-message.user-message{align-self:flex-end;flex-direction:row-reverse}.chat-message.customer-message{align-self:flex-start}.message-avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:white;font-weight:600;font-size:.8rem;flex-shrink:0;box-shadow:0 2px 8px rgba(0,0,0,.15)}.message-content-wrapper{display:flex;flex-direction:column;min-width:0;flex:1}.message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.25rem;font-size:.8rem}.user-message .message-header{flex-direction:row-reverse}.sender-name{font-weight:600;color:#2d3748}.message-time{color:#94a3b8;font-size:.75rem}.message-bubble{background:white;border:1px solid #e2e8f0;border-radius:14px;padding:.65rem .9rem;box-shadow:0 2px 8px rgba(0,0,0,.05);transition:all .2s ease}.user-message .message-bubble{background:#e6f0ff;color:#0f172a;border-color:#c7d2fe}.customer-message .message-bubble{background:#ffffff;border-color:#e5e7eb}.message-bubble:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.1)}.message-text{font-size:.95rem;line-height:1.5;white-space:pre-wrap;word-wrap:break-word}.message-ai-insight{margin-top:.5rem;padding:.5rem;background:rgba(128,90,213,.1);border-radius:8px;font-size:.8rem;color:#553c9a;display:flex;gap:.25rem;align-items:flex-start}.chat-reply-section{padding:.85rem 1rem;background:#ffffff;border-top:1px solid #e2e8f0;flex-shrink:0}.reply-input-container{display:flex;gap:.75rem;align-items:flex-end;max-width:100%}.reply-textarea2{color:#111;flex:1;resize:none;border:1.5px solid #e2e8f0;border-radius:12px;padding:.7rem .8rem;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;font-size:.95rem;line-height:1.4;outline:none;transition:all .2s ease;background:white;min-height:44px;max-height:120px}.reply-textarea2:focus{border-color:#4299e1;box-shadow:0 0 0 3px rgba(66,153,225,.1)}.reply-textarea2::placeholder{color:#a0aec0}.send-reply-btn{width:44px;height:44px;background:#4f46e5;border:none;border-radius:12px;color:white;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0}.send-reply-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px rgba(66,153,225,.4)}.send-reply-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.mini-spinner{width:16px;height:16px;border:2px solid transparent;border-top-color:currentcolor;border-radius:50%;animation:spin 1s linear infinite}@keyframes messageSlideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (max-width:768px){.dashboard-content{flex-direction:column}.sidebar{width:100%;order:2;height:auto;max-height:40vh}.sidebar,.sidebar-footer{position:static}.main-content{order:1;padding:1rem;height:auto;flex:1}.inbox-two-pane{position:relative}.chat-list-pane{width:100%;border-right:none}.conversation-pane{position:absolute;inset:0;background:#ffffff;transform:translateX(100%);transition:transform .25s ease;box-shadow:-6px 0 16px rgba(0,0,0,.08)}.inbox-two-pane.conversation-open .conversation-pane{transform:translateX(0)}.inbox-two-pane.conversation-open .chat-list-pane{visibility:hidden}}.inbox-filter{position:relative}.filter-btn{background:#ffffff;border:1px solid #e2e8f0;color:#2d3748;padding:.4rem .7rem;border-radius:10px;cursor:pointer;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.04)}.filter-btn .chev{margin-left:6px;opacity:.7}.filter-menu{position:absolute;left:0;top:110%;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 12px 28px rgba(0,0,0,.12);min-width:220px;z-index:12;overflow:hidden}.filter-item{padding:.55rem .85rem;cursor:pointer}.filter-item:hover{background:#f7fafc}.filter-item.active{background:#ebf8ff;color:#2b6cb0;font-weight:700}.message-sender{font-weight:600;color:#2d3748;margin-bottom:.25rem}.message-subject{font-size:.9rem;color:#4a5568;margin-bottom:.25rem}.message-preview{font-size:.875rem;color:#718096;line-height:1.4}.message-ai-result{font-size:.8rem;color:#805ad5;background:#f7fafc;padding:.5rem;border-radius:.375rem;margin-top:.5rem;border-left:3px solid #805ad5;font-style:italic}.status-badge{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700;box-shadow:inset 0 0 0 2px rgba(0,0,0,.03)}.status-badge:before{content:"";width:8px;height:8px;border-radius:50%}.status-badge.open{background:#ebf4ff;color:#1e40af}.status-badge.open:before{background:#3b82f6}.status-badge.pending{background:#fef7e5;color:#92400e}.status-badge.pending:before{background:#f59e0b}.status-badge.solved{background:#ecfdf5;color:#065f46}.status-badge.solved:before{background:#10b981}.message-row{display:flex;align-items:center;gap:8px}.gmail-connection-prompt{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center;background:#f7fafc;border-radius:12px;margin:2rem;border:1px solid #e2e8f0;box-shadow:0 1px 3px rgba(0,0,0,.1);flex:1;min-height:300px}.gmail-connection-prompt h4{font-size:1.25rem;font-weight:600;color:#2d3748;margin-bottom:.5rem}.gmail-connection-prompt p{font-size:.95rem;color:#4a5568;line-height:1.6;margin-bottom:1.5rem}.gmail-connection-prompt button:hover:not(:disabled){background:#3182ce!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(66,153,225,.3)}.gmail-connection-prompt button:disabled{opacity:.6;cursor:not-allowed}.connect-btn-inline:hover:not(:disabled){background:#3182ce!important;transform:translateY(-1px);box-shadow:0 2px 8px rgba(66,153,225,.3);transition:all .2s ease}.connect-btn-inline:disabled{opacity:.6;cursor:not-allowed}.disconnect-btn-inline:hover:not(:disabled){background:#c53030!important;transform:translateY(-1px);box-shadow:0 2px 8px rgba(229,62,62,.3);transition:all .2s ease}.disconnect-btn-inline:disabled{opacity:.6;cursor:not-allowed}.disconnect-btn-inline:active{transform:translateY(0);box-shadow:0 1px 3px rgba(229,62,62,.2)}.connect-btn-inline:active{transform:translateY(0);box-shadow:0 1px 3px rgba(66,153,225,.2)}.modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;z-index:2000}.modal{width:100%;max-width:520px;background:#fff;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.15);overflow:hidden}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;border-bottom:1px solid #e2e8f0}.modal-header h3{font-size:1.1rem;font-weight:600;color:#2d3748}.modal-close{background:transparent;border:none;font-size:1.25rem;color:#4a5568;cursor:pointer}.modal-body,.modal-footer{padding:1rem 1.25rem}.modal-footer{border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end;gap:.5rem}.input{width:100%;border:1px solid #e2e8f0;border-radius:8px;padding:.6rem .75rem;font-size:.95rem}.btn-primary{background:#229ED9;color:white;border:none;border-radius:8px}.btn-primary,.btn-secondary{padding:.6rem 1rem;cursor:pointer}.btn-secondary{background:#f7fafc;border:1px solid #e2e8f0;color:#2d3748;border-radius:8px}.error-text{margin-top:.5rem;color:#e53e3e;font-size:.9rem}.chat-header{padding:1rem 1.5rem;background:#ffffff;flex-shrink:0;border-bottom:1px solid #e2e8f0}.back-btn,.chat-header{display:flex;align-items:center;color:#334155}.back-btn{gap:.5rem;background:#f1f5f9;border:1px solid #e2e8f0;padding:.5rem 1rem;border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease;margin-right:1rem}.back-btn:hover{background:#e2e8f0;transform:translateX(-2px)}.chat-title h2{margin:0;font-size:1.2rem;font-weight:600;color:#111827}.message-count{font-size:.85rem;opacity:.9;font-weight:400}.conversation-status{margin-left:auto}.status-segment{display:inline-flex;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:2px;gap:2px}.status-pill{font-weight:700;font-size:.8rem;color:#334155;background:transparent;border:none;border-radius:999px;padding:.35rem .75rem;cursor:pointer;transition:background .15s ease,color .15s ease,transform .1s ease;outline:none}.status-pill:hover{background:#e2e8f0}.status-pill:active{transform:translateY(1px)}.status-pill.active{background:#ffffff;color:#111827;box-shadow:0 1px 3px rgba(0,0,0,.06)}.status-pill.open.active{box-shadow:inset 0 0 0 2px rgba(59,130,246,.35)}.status-pill.pending.active{box-shadow:inset 0 0 0 2px rgba(234,179,8,.45)}.status-pill.solved.active{box-shadow:inset 0 0 0 2px rgba(16,185,129,.45)}.conversation-insight-card{margin:1.25rem 1rem;background:linear-gradient(180deg,#f8faff,#ffffff 60%);border:1px solid #e2e8f0;border-radius:12px;overflow:visible;flex-shrink:0;box-shadow:0 2px 12px rgba(0,0,0,.05);position:relative}.conversation-insight-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#667eea,#764ba2);border-top-left-radius:12px;border-bottom-left-radius:12px}.insight-header{display:flex;justify-content:space-between;align-items:center;padding:.9rem 1rem;background:#f8fafc;cursor:pointer;transition:background .2s ease;border-bottom:1px solid #eaeef3}.insight-header:hover{background:#f1f5f9}.insight-title{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;color:#1f2937;font-size:1.05rem}.insight-title:before{content:"💡";display:inline-block;font-size:1.05rem}.insight-title:after{content:"AI";display:inline-block;margin-left:.5rem;padding:.1rem .45rem;font-size:.7rem;font-weight:800;letter-spacing:.02em;color:#4338ca;background:#eef2ff;border:1px solid #e0e7ff;border-radius:999px}.insight-controls{display:flex;gap:.5rem}.collapse-btn,.regenerate-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:rgba(255,255,255,.8);border:1px solid #cbd5e0;border-radius:6px;cursor:pointer;transition:all .2s ease;color:#4a5568}.collapse-btn:hover,.regenerate-btn:hover{background:white;box-shadow:0 2px 8px rgba(0,0,0,.1)}.regenerate-btn:disabled{opacity:.6;cursor:not-allowed}.insight-content{padding:1rem 1rem 1.15rem;color:#2b3340;line-height:1.6;font-size:.96rem;overflow:visible}.insight-content h1,.insight-content h2,.insight-content h3,.insight-content strong{color:#4f46e5}.insight-content ol,.insight-content ul{padding-left:1.25rem;margin:.5rem 0 .75rem}.insight-content li{margin:.25rem 0}.modern-chat-container{display:grid;grid-template-columns:1fr;grid-template-areas:"header" "insight" "messages" "reply";grid-template-rows:auto auto 1fr auto;height:calc(100vh - 160px);max-width:1200px;margin:0 auto;background:#ffffff;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,.08);overflow:hidden}.modern-chat-container.with-notes{grid-template-columns:1fr 320px;grid-template-areas:"header notes" "insight notes" "messages notes" "reply notes";grid-template-rows:auto auto 1fr auto;column-gap:1rem}.chat-header{grid-area:header}.conversation-insight-card{grid-area:insight}.chat-messages{grid-area:messages}.chat-reply-section{grid-area:reply}.notes-sidebar{grid-area:notes;border-left:1px solid #e2e8f0;background:#fafbff;height:100%;overflow-y:auto}.notes-card,.notes-sidebar{display:flex;flex-direction:column;min-height:0}.notes-card{background:#ffffff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.04);margin:0 .75rem .75rem}.notes-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;border-bottom:1px solid #e2e8f0;cursor:pointer}.notes-title{font-weight:700;color:#2d3748;display:inline-flex;align-items:center}.notes-chevron{transition:transform .2s ease;color:#718096;margin-left:auto}.notes-chevron.open{transform:rotate(180deg)}.notes-chevron.collapsed{transform:rotate(0deg)}.notes-body.collapsed{display:none}.notes-body.expanded{display:block}.notes-composer{padding:.75rem 1rem;border-bottom:1px solid #e2e8f0}.notes-composer textarea{width:100%;min-height:84px;border:1px solid #e2e8f0;border-radius:10px;padding:.6rem .75rem;resize:none;font-size:.95rem;color:#2d3748;background:#fff;overflow:hidden}.notes-composer textarea::placeholder{color:#a0aec0}.notes-composer .btn-note{margin-top:.6rem}.notes-list{padding:.5rem;overflow-y:auto;flex:1}.notes-empty{color:#718096;text-align:center;padding:1rem}.note-item{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:.75rem .75rem .6rem;margin:.5rem;position:relative}.note-item.pinned{box-shadow:inset 0 0 0 2px #fde68a}.note-meta{display:flex;justify-content:space-between;color:#718096;font-size:.78rem;margin-bottom:.35rem}.note-content{white-space:pre-wrap;color:#2d3748;font-size:.9rem}.note-actions{display:flex;gap:.4rem;margin-top:.5rem;justify-content:flex-end}.btn-note{background:#ffffff;border:1px solid #e2e8f0;color:#2d3748;border-radius:999px;padding:.35rem .7rem;cursor:pointer;font-size:.8rem;transition:all .15s ease}.btn-note:hover{background:#f7fafc;border-color:#cbd5e0;box-shadow:0 1px 3px rgba(0,0,0,.06)}.btn-note.primary{background:#4f46e5;color:#fff;border-color:#4f46e5}.btn-note.primary:hover{background:#4338ca;border-color:#4338ca;box-shadow:0 6px 16px rgba(79,70,229,.3)}.btn-note.danger{border-color:#fecaca;color:#b91c1c}.btn-note.danger:hover{background:#fef2f2;border-color:#fca5a5}.suggested-replies{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:.6rem;opacity:1;transform:translateY(0);transition:opacity .16s ease,transform .16s ease}.suggested-replies.hidden{opacity:0;transform:translateY(6px);pointer-events:none;margin-bottom:0;height:0;overflow:hidden}.suggested-replies.visible{opacity:1;transform:translateY(0)}.suggested-chip{max-width:100%;text-align:left;background:#ffffff;border:1.5px solid #e2e8f0;color:#2d3748;padding:.35rem .65rem;border-radius:999px;font-size:.85rem;line-height:1.2;min-height:32px;cursor:pointer;transition:all .15s ease;box-shadow:0 1px 3px rgba(0,0,0,.03);white-space:nowrap}.suggested-chip:hover{background:#f7fafc;border-color:#cbd5e0;transform:translateY(-1px)}.suggested-more details{position:relative}.suggested-more-trigger{user-select:none}.suggested-more-menu{position:absolute;top:calc(100% + 6px);left:0;background:#ffffff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.08);min-width:240px;z-index:5;padding:.25rem}.suggested-more-item{display:block;width:100%;text-align:left;background:transparent;border:none;color:#2d3748;font-size:.9rem;padding:.5rem;border-radius:6px;cursor:pointer}.suggested-more-item:hover{background:#f7fafc}.chat-messages::-webkit-scrollbar{width:6px}.chat-messages::-webkit-scrollbar-track{background:transparent}.chat-messages::-webkit-scrollbar-thumb{background:#c7d2fe;border-radius:3px}.chat-messages::-webkit-scrollbar-thumb:hover{background:#a5b4fc}@media (max-width:1024px){.sidebar{width:240px}.chat-list-pane{width:340px;min-width:300px}.modern-chat-container.with-notes{grid-template-columns:1fr 280px}}@media (max-width:768px){.modern-chat-container.with-notes{grid-template-columns:1fr;grid-template-areas:"header" "insight" "messages" "reply" "notes"}.notes-sidebar{display:none}.notes-sidebar.open{display:flex}.notes-mobile-toggle{display:block!important;margin-bottom:.5rem}.modern-chat-container{height:calc(100vh - 120px);margin:0;border-radius:0}.chat-header{padding:.75rem 1rem}.chat-title h2{font-size:1.1rem}.conversation-insight-card{margin:.75rem}.chat-messages{padding:.75rem}.chat-message{max-width:95%}.message-avatar{width:36px;height:36px;font-size:.7rem}.message-bubble{padding:.6rem .8rem}.reply-input-container{gap:.5rem}.reply-textarea2{font-size:16px}.send-reply-btn{width:40px;height:40px}}@media (max-width:480px){.channel-list{padding:.75rem 1rem}.channel-card{padding:.75rem}.channel-icon{width:40px;height:40px}.chat-header{padding:.5rem}.back-btn{padding:.4rem .8rem;font-size:.8rem}.chat-title h2{font-size:1rem}.message-count{font-size:.75rem}.conversation-insight-card{margin:.5rem}.insight-header{padding:.75rem}.insight-content{color:#2b6cb0;padding:.75rem;font-size:.9rem}}