.revenue-mode #chatsScreen{max-width:none;padding:0 16px 16px}.revenue-mode .chat-layout{height:calc(100dvh - 96px);min-height:0;background:#121826;grid-template-columns:330px minmax(0,1fr)}.revenue-mode .chat-sidebar{padding:20px 12px}.chat-sidebar h2{font:400 38px Georgia,serif;margin:0 4px 18px}.chat-filters{display:flex;gap:8px;margin:14px 0 12px}.chat-filters button{min-height:44px;flex:1;border:1px solid #263044;border-radius:24px;background:none;color:#f4f6fb;font-size:12px;cursor:pointer}.chat-filters button[aria-pressed=true]{background:#263244;border-color:#09b7ce;color:#211a12}.revenue-mode .contact-avatar{background:#1a2233;color:#f4f6fb}.revenue-mode .chat-item.selected{border-color:#09b7ce;background:#1a2233}.revenue-mode .chat-unread-count{background:#263244;color:#211a12}.revenue-mode .chat-lead-state{border:1px solid transparent;border-radius:16px;width:auto;flex:0 1 auto;padding:3px 7px}.chat-contact-bottom{justify-content:flex-start;flex-wrap:wrap}.chat-contact-bottom small{max-width:110px}.chat-contact-row{border-bottom:1px solid #263044;border-radius:0;margin:0;padding:16px 8px}.chat-contact-top time{color:#93a0b8}.chat-header-avatar{width:42px;height:42px;flex-shrink:0}.chat-toolbar{flex-shrink:0}.chat-toolbar #chatTitle{font-size:17px}.chat-toolbar #chatLeadState{max-width:160px;font-size:11px}.chat-toolbar #chatReturn{font-size:11px}.chat-ai-summary{margin:10px 14px;padding:10px 12px;border:1px solid #263044;border-radius:10px;background:#121826;flex-shrink:0}.chat-ai-summary summary{cursor:pointer;color:#09b7ce;font-size:12px;list-style:none}.chat-ai-summary summary span{float:right;color:#93a0b8;font-size:11px}.chat-ai-summary p{margin:7px 0;font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chat-ai-summary:not(.expanded)>p,.chat-ai-summary:not(.expanded)>small{display:block}.chat-ai-summary:not(.expanded)>p{display:-webkit-box}.chat-ai-summary.expanded p{-webkit-line-clamp:unset}.chat-ai-summary small{font-size:10px;color:#93a0b8}.chat-ai-summary button{margin-top:8px;font-size:12px}.chat-welcome{display:none;margin:auto;padding:30px;text-align:center;color:#93a0b8}.chat-welcome span{font-size:60px;color:#09b7ce}.chat-welcome h2{font:400 30px Georgia,serif;color:#f4f6fb}.chat-layout:not(.has-thread) .chat-main>*{display:none!important}.chat-layout:not(.has-thread) .chat-main>.chat-welcome{display:block!important}.revenue-mode .chat-bubble{background:#1a2233;border-radius:16px;font-size:15px;padding:12px 15px}.revenue-mode .chat-bubble.outgoing{background:#1c3156;color:#f4f6fb}.revenue-mode #chatSend{border-radius:50%;width:48px;height:48px;min-width:48px;background:#263244;color:#211a12;border:0;font-size:24px}.revenue-mode #chatDraft{border-radius:24px;padding:12px 16px;min-height:48px}.revenue-mode .chat-compose{padding:10px 12px}.chat-page-active .rc-search,.chat-page-active .rc-venue{display:none!important}.chat-page-active .chat-hint{font-size:10px} .chat-page-active button:focus-visible{outline:2px solid #09b7ce;outline-offset:2px}
@media(max-width:650px){.revenue-mode #chatsScreen{padding:0}.revenue-mode .chat-layout{grid-template-columns:1fr;height:calc(100dvh - 78px - env(safe-area-inset-top,0px));border:0;border-radius:0;padding-bottom:env(safe-area-inset-bottom,0px)}.revenue-mode .chat-sidebar{border:0;padding:18px 14px}.chat-main{min-height:0}.chat-toolbar{padding:10px;gap:8px}.chat-toolbar #chatReturn{margin-left:auto}.chat-toolbar #chatLeadState{order:5;max-width:100%}.chat-toolbar #chatTitle{min-width:80px}.chat-messages{padding:14px 12px}.chat-quick-replies{max-height:110px;overflow:auto}.chat-ai-summary{margin:8px 10px;padding:8px 10px}.chat-ai-summary.expanded{max-height:180px;overflow:auto}.chat-summary[open]{max-height:130px;overflow:auto;flex-shrink:0}.revenue-mode .chat-layout.chat-writing-mobile{height:var(--chat-visible-height);top:var(--chat-visible-top);padding-top:0;padding-bottom:env(safe-area-inset-bottom,0px)}.chat-writing-mobile .chat-ai-summary{display:none}.chat-writing-mobile .chat-toolbar #chatLeadState{display:none}}

.chat-ai-summary:not(.expanded) button{display:none}.chat-ai-summary:not(.expanded) p{-webkit-line-clamp:2}.chat-page-active:has(.chat-writing-mobile) .rc-top{visibility:hidden}.revenue-mode .chat-layout.chat-writing-mobile{padding-top:env(safe-area-inset-top,0px)}
.chat-identity{flex:1;min-width:70px;display:grid;gap:5px}.chat-identity small{font-size:11px;color:#93a0b8}.chat-identity strong{overflow:hidden;text-overflow:ellipsis}.chat-attach{width:40px;min-width:40px;height:44px;border:1px solid #263044;background:transparent;color:#09b7ce;border-radius:50%;font-size:25px;cursor:pointer}.chat-attach:disabled{opacity:.4}.chat-contact-top strong{font-size:14px}.chat-contact-preview{font-size:13px}.chat-item.chat-contact-row{padding:16px 8px}.chat-page-active .chat-toolbar button{min-height:44px}.chat-page-active .chat-summary:not([open]){display:none}.chat-page-active .chat-summary[open]{display:block}
.revenue-mode .chat-layout{background:#121826}.revenue-mode .chat-sidebar{background:#0b0f19}.revenue-mode .chat-main{background:#0b0f19}.revenue-mode .chat-item.chat-contact-row{border-radius:14px;border:1px solid transparent;margin:5px 0}.revenue-mode .chat-item.selected{background:#1a2233;border-color:#09b7ce;box-shadow:0 3px 12px #0002}.revenue-mode .chat-item:hover{background:#1a2233}.chat-main,.chat-sidebar{animation:chat-reveal .18s ease-out}.chat-layout:not(.has-thread) .chat-sidebar{animation:chat-list-return .18s ease-out}@keyframes chat-reveal{from{opacity:.6;transform:translateY(4px)}to{opacity:1;transform:none}}@keyframes chat-list-return{from{opacity:.65;transform:translateX(-8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.chat-main,.chat-sidebar,.chat-layout:not(.has-thread) .chat-sidebar{animation:none}}/* On phones the AI summary is opened explicitly, then dismissed after reading. */
.chat-ai-icon,.chat-ai-close{display:none}
@media(max-width:650px){
 .chat-toolbar .chat-ai-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;min-height:44px;padding:6px;background:transparent;border:0;color:#09b7ce;font-size:22px;border-radius:50%}
 .revenue-mode .chat-ai-summary{display:none!important}
 .revenue-mode .chat-ai-summary.mobile-open{display:block!important;position:absolute;z-index:25;top:80px;left:10px;right:10px;max-height:240px;overflow:auto;margin:0;padding:16px;background:#1a2233;border-color:#09b7ce;box-shadow:0 12px 30px #0005}
 .chat-main{position:relative}
 .chat-ai-summary.mobile-open .chat-ai-close{display:inline-block;float:right;color:#09b7ce;background:transparent;border:0;min-height:44px}
 .chat-ai-summary.mobile-open summary span{display:none}
 .chat-ai-summary.mobile-open p{display:block;-webkit-line-clamp:unset}
}
