.chat-page{--chat-chrome-h:64px;width:100%;flex:1 1 auto;min-height:0;overflow:hidden}.chat-container{width:100%;max-width:100%;display:flex;height:100%;background:var(--bg);position:relative}.chat-sidebar{flex:none;width:var(--list-w,434px);min-width:0}.chat-container .chat-sidebar{transition:width .38s cubic-bezier(.4,0,.2,1)}.chat-container .chat-sidebar.is-resizing{transition:none}.chat-section{flex:3 1;position:relative;min-width:0;display:flex;flex-direction:column;justify-content:center;border-right:1px solid var(--border)}.empty-chat{width:100%;padding-bottom:2rem}.empty-chat,.empty-chat-body{height:100%;display:flex;flex-direction:column;justify-content:center}.empty-chat-body{text-align:center;align-items:center;gap:10px}.message-media-laptop{width:320px;height:210px}.empty-chat-title{font-size:var(--text-h4);color:var(--text-ink);letter-spacing:var(--tracking-tight);text-align:center;padding:0 10px}.empty-chat-footer,.empty-chat-subTitle{font-size:var(--text-sm);color:var(--text-muted);text-align:center;padding:0 10px}.empty-chat-footer{display:flex;justify-content:center}.right-rail-section{flex:none;width:var(--rail-w,clamp(480px,34%,560px));min-width:0;height:100%;display:flex;flex-direction:column;border-left:1px solid var(--border);background:var(--surface-raised);will-change:width}.chat-container .right-rail-section{transition:width .38s cubic-bezier(.4,0,.2,1),background-color var(--dur-base) var(--ease-standard),border-color var(--dur-base) var(--ease-standard),color var(--dur-base) var(--ease-standard)}.chat-container .right-rail-section.is-resizing{transition:none}.right-rail-section.is-expanded{width:clamp(560px,62%,1040px)}.pane-resizer{flex:0 0 10px;margin-left:-5px;margin-right:-5px;align-self:stretch;position:relative;z-index:2;cursor:col-resize;touch-action:none}.pane-resizer:after{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translateX(-50%);background:var(--accent);opacity:0;transition:opacity var(--dur-fast) var(--ease-standard)}.pane-resizer.is-active:after,.pane-resizer:hover:after{opacity:1}.chat-container:has(.pane-resizer.is-active),.chat-container:has(.pane-resizer.is-active) *{cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none}.chat-drop-veil{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;padding:var(--space-4);background:var(--accent-tint);border:2px dashed var(--accent);border-radius:var(--radius-lg);pointer-events:none}.chat-drop-veil-box{padding:var(--space-3) var(--space-4);font-size:var(--text-sm);font-weight:var(--weight-semibold);color:var(--text-ink);background:var(--surface-raised);border-radius:var(--radius-md);box-shadow:var(--shadow-md)}.chat-drop-veil-box,.chat-undo-toast{display:inline-flex;align-items:center;gap:var(--space-2)}.right-rail-bar{flex:none;display:flex;align-items:center;gap:var(--space-2);height:var(--chat-chrome-h,64px);padding:0 var(--space-2);border-bottom:1px solid var(--border)}.right-rail-tabs{flex:1 1;min-width:0;overflow-x:auto;scrollbar-width:none}.right-rail-tabs::-webkit-scrollbar{display:none}.right-rail-body,.right-rail-pane{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.right-rail-pane.is-hidden{display:none}.qr{width:100%}.chat-content-qr{width:100%;height:100%;top:0;right:0;display:flex;flex-direction:column;align-items:center;align-self:center;justify-content:center;color:var(--text-ink);gap:var(--space-5);z-index:10;background:var(--surface-raised)}.chat-content-qr-close{position:absolute;top:20px;right:30px}.chat-content-qr-close-icon{cursor:pointer}.chat-content-qr-close-button{background:none;border:none;padding:0;cursor:pointer;display:inline-flex;align-items:center}.chat-qr-header{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:10px}.chat-qr-title{font-size:18px;font-weight:var(--weight-semibold);color:var(--text-ink);letter-spacing:var(--tracking-tight);padding-top:1.5rem}.chat-qr-subTitle{padding:0 1rem;font-size:var(--text-sm);color:var(--text-body)}.chat-qr-container{position:relative;display:inline-block}.chat-qr-loading{display:flex;align-items:center;justify-content:center;width:250px;height:250px}.chat-qr{width:250px;height:250px;display:block}.chat-qr-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.83);border-radius:8px;cursor:pointer}.chat-qr-overlay,.chat-qr-overlay-title{display:flex;align-items:center;justify-content:center}.chat-qr-overlay-title{text-align:center;flex-direction:column;gap:10px;padding:0 30px}.chat-qr-overlay-title-text{color:#fff;font-size:15px;font-weight:var(--weight-medium)}.chat-qr-overlay-icon{width:45px;height:45px}.chat-qr-attempt{font-size:13px;color:var(--text-muted);margin-top:var(--space-1)}.chat-qr-expired{flex-direction:column;text-align:center;gap:var(--space-4);max-width:420px;padding:0 var(--space-6)}.chat-qr-expired,.chat-qr-expired-icon{display:flex;align-items:center;justify-content:center}.chat-qr-expired-icon{width:72px;height:72px;border-radius:var(--radius-full);background:var(--surface-flat)}.chat-qr-expired-icon img{filter:invert(42%) sepia(8%) saturate(500%) hue-rotate(169deg) brightness(92%) contrast(88%)}.chat-qr-expired-text{color:var(--text-muted);line-height:var(--leading-normal)}.chat-page-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.chat-page-loading .spinner-v2-block{height:5px!important;margin-bottom:-100px}.chat-page-loading-text{color:var(--text-ink);font-size:var(--text-base);text-align:center;max-width:400px;margin-bottom:var(--space-5);animation:chat-pulse 1.5s infinite}@keyframes chat-pulse{0%{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.04)}to{opacity:1;transform:scale(1)}}@media (max-width:1280px){.hide-on-tablet{display:none!important}.show-on-tablet{display:block!important;width:100%}.right-rail-section.show-on-tablet{display:flex!important;width:auto!important;flex:1 1;min-width:0}}@media (max-width:768px){.chat-container{flex-direction:column;width:100%;height:100%}.chat-sidebar{width:100%;display:flex;flex:0 1 auto}.pane-resizer{display:none}.chat-sidebar.hide-on-mobile{display:none!important}.chat-section{width:100%}.chat-section.hide-on-mobile{display:none!important}.chat-section.show-on-mobile{display:flex!important}.right-rail-section.show-on-mobile{display:flex!important;width:100%;height:100%}.chat-sidebar.hide-on-mobile-qr{display:none!important}.chat-content-qr{width:100%!important;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center}}.chat-sidebar-sort{display:flex;justify-content:flex-end;padding:var(--space-1) var(--space-2);background:var(--surface-raised);border-bottom:1px solid var(--border);flex-shrink:0}.chat-sidebar-sort-btn{background:none;border:1px solid var(--border);border-radius:var(--radius-sm);padding:3px 10px;font-size:var(--text-2xs);cursor:pointer;color:var(--text-body);transition:background-color var(--dur-base) var(--ease-standard),color var(--dur-base) var(--ease-standard)}.chat-sidebar-sort-btn:hover{background-color:var(--surface-flat);color:var(--text-ink)}.chat-delete-confirm-lead{margin:0;font-size:var(--text-sm);color:var(--text-body)}.chat-delete-confirm-quote{margin:var(--space-3) 0 0;padding:var(--space-2) var(--space-3);border-left:3px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-sunken);color:var(--text-muted);font-size:var(--text-xs);max-height:6.5em;overflow-y:auto;white-space:pre-wrap}.chat-header{height:var(--chat-chrome-h,64px);gap:var(--space-3);padding:var(--space-3) var(--space-5);background-color:var(--surface-raised);border-bottom:1px solid var(--border);overflow:hidden}.chat-header,.user-info{display:flex;align-items:center}.user-info{flex:1 1;min-width:0;container-type:inline-size;cursor:pointer;outline:none}.user-avatar{width:40px;height:40px;border-radius:50%;margin-right:var(--space-3);-o-object-fit:cover;object-fit:cover;flex-shrink:0}.user-details{display:flex;flex-direction:column;min-width:0}.user-name{display:flex;align-items:baseline;gap:4px;min-width:0;font-size:var(--text-sm);font-weight:var(--weight-medium);color:var(--text-ink)}.user-name__text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:350px}.user-flag{flex:none;line-height:1}.user-phone{flex:none;font-size:var(--text-2xs);font-weight:var(--weight-regular);color:var(--text-muted);font-feature-settings:"tnum";font-variant-numeric:tabular-nums}@container (max-width: 260px){.user-phone{display:none}}.last-seen{display:flex;align-items:center;gap:5px;min-width:0;overflow:hidden;font-size:var(--text-2xs);color:var(--text-muted);white-space:nowrap}.chat-header-assigned,.chat-header-channel-name{overflow:hidden;text-overflow:ellipsis}.chat-header-tags{display:flex;align-items:center;gap:4px;flex:none}.chat-header-assigned{color:var(--accent);font-weight:var(--weight-semibold)}.chat-header-channel-logo{margin-left:6px;vertical-align:middle;display:inline-flex}.chat-header-slot{display:flex;align-items:center;gap:var(--space-2);flex-shrink:0}.chat-header-slot+.chat-header-slot{padding-left:var(--space-3);border-left:1px solid var(--line-hairline)}.chat-header-chapter.menu-v2__trigger{padding:6px var(--space-3);background-color:var(--surface-flat);border:1px solid var(--border-strong);border-radius:var(--radius-md);color:var(--text-ink);font-size:var(--text-xs);font-weight:var(--weight-semibold);max-width:260px}.chat-header-chapter.menu-v2__trigger:hover:not(:disabled){background-color:var(--surface-flat);border-color:var(--accent);color:var(--accent)}.chat-header-chapter__value{display:inline-flex;align-items:center;gap:var(--space-2);min-width:0}.chat-header-chapter__long{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-header-chapter__short{display:none}.chat-header-chapter__value svg{flex-shrink:0;color:var(--text-muted)}.chat-header-chapter__tick{display:inline-flex}.chat-header-chapter__tick.is-off{visibility:hidden}.chat-header-chapter.is-pulsing.menu-v2__trigger{transform-origin:center;animation:chat-header-chapter-pulse .72s var(--ease-out-expo)}@keyframes chat-header-chapter-pulse{0%{background-color:var(--surface-flat);box-shadow:0 0 0 0 var(--accent-tint);transform:scale(1)}22%{background-color:var(--accent-tint);box-shadow:0 0 0 4px var(--accent-tint);transform:scale(1.04)}to{background-color:var(--surface-flat);box-shadow:0 0 0 10px transparent;transform:scale(1)}}.chat-header-iconbtn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 var(--space-2);background:transparent;border:1px solid transparent;border-radius:var(--radius-md);color:var(--text-body);font-family:var(--font-sans);font-size:var(--text-xs);font-weight:var(--weight-semibold);cursor:pointer;transition:color var(--dur-fast) var(--ease-out-quart),background-color var(--dur-fast) var(--ease-out-quart)}.chat-header-iconbtn:hover{background-color:var(--surface-flat);color:var(--text-ink)}.chat-header-iconbtn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--accent-tint)}.chat-header-manual.is-active{background-color:var(--accent-tint);border-color:var(--accent-tint-border);color:var(--accent)}.chat-header-overflow.menu-v2__trigger{padding:0;border:none;background:transparent}.chat-header-overflow.menu-v2__trigger:hover:not(:disabled){background:transparent}.chat-header-bell__count{min-width:16px;height:16px;padding:0 4px;border-radius:var(--radius-full);background-color:var(--accent);color:var(--accent-on);font-size:var(--text-2xs);font-weight:var(--weight-bold);line-height:16px;text-align:center}.chat-header-pilot__label{font-size:var(--text-xs);color:var(--text-body);white-space:nowrap}.chat-header-back-btn{display:none;background:none;border:none;padding:var(--space-1) var(--space-2);cursor:pointer;border-radius:50%;color:var(--text-body);transition:background-color var(--dur-fast) var(--ease-out-quart);flex-shrink:0}.chat-header-back-btn:hover{background-color:var(--surface-flat)}.chat-header-qr{opacity:.5}.chat-header-loading-container{height:100%;width:100%;display:flex;align-items:center;justify-content:center;margin-top:-23px}.chat-header.is-compact{gap:var(--space-2);padding:var(--space-3) var(--space-3)}.chat-header.is-compact .chat-header-slot+.chat-header-slot{padding-left:var(--space-2)}.chat-header.is-compact .chat-header-chapter__long{display:none}.chat-header.is-compact .chat-header-chapter__short{display:inline}.chat-header.is-compact .chat-header-pilot__label{display:none}@media (max-width:768px){.chat-header-back-btn{display:flex;align-items:center;justify-content:center}}@media (max-width:480px){.user-name__text{max-width:150px}}@media (prefers-reduced-motion:reduce){.chat-header-back-btn,.chat-header-iconbtn{transition:none}.chat-header-chapter.is-pulsing.menu-v2__trigger{animation:none;transform:none;background-color:var(--accent-tint)}}