/* LaunchPoint Community — Group Chat */
.lpc-group-chat{
    --lpc-gc-navy:#0E2D7B;
    --lpc-gc-accent:#F8B861;
    --lpc-gc-text:#17233A;
    --lpc-gc-muted:#6F7F91;
    --lpc-gc-line:#E1E7EE;
    --lpc-gc-soft:#F6F8FB;
    --lpc-gc-soft-blue:#EEF3F9;
    position:relative;
    display:flex;
    height:min(780px,calc(100dvh - 190px));
    min-height:620px;
    flex-direction:column;
    overflow:hidden;
    border:1px solid #DCE4EC;
    border-radius:22px;
    background:#fff;
    box-shadow:0 16px 42px rgba(15,38,69,.07);
}
.lpc-group-chat,.lpc-group-chat *{box-sizing:border-box}
.lpc-group-chat button,.lpc-group-chat input,.lpc-group-chat textarea,.lpc-group-chat select{font:inherit}
.lpc-group-chat button{cursor:pointer}
.lpc-group-chat button:focus-visible,.lpc-group-chat input:focus-visible,.lpc-group-chat textarea:focus-visible,.lpc-group-chat select:focus-visible{outline:2px solid rgba(14,45,123,.25);outline-offset:2px}
.lpc-chat-thread-panel--group{overflow:hidden;background:#fff}
.lpc-chat-thread-panel--group .lpc-group-chat{width:100%;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}

/* Header */
.lpc-group-chat-head{position:relative;z-index:12;display:flex;min-height:78px;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-bottom:1px solid var(--lpc-gc-line);background:rgba(255,255,255,.98);box-shadow:0 2px 10px rgba(18,45,77,.025);backdrop-filter:blur(12px)}
.lpc-group-chat-mobile-back{display:none}
.lpc-group-chat-title{display:flex;min-width:0;flex:1;align-items:center;gap:11px}
.lpc-group-chat-title>div{min-width:0}
.lpc-group-chat-title .lpc-page-eyebrow{display:block;color:#A86220;font-size:9px;font-weight:700;letter-spacing:.08em;line-height:1.2;text-transform:uppercase}
.lpc-group-chat-title h2{margin:2px 0 2px;overflow:hidden;color:#15365E;font-size:16px;font-weight:650;letter-spacing:-.01em;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.lpc-group-chat-title p{margin:0;overflow:hidden;color:var(--lpc-gc-muted);font-size:10.5px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.lpc-group-chat-title p strong{color:#40536A;font-weight:650}
.lpc-group-chat-icon{position:relative;display:grid;width:48px;height:48px;flex:0 0 48px;place-items:center;overflow:visible;border:1px solid #DCE5EF;border-radius:15px;background:#EEF3F9;color:var(--lpc-gc-navy)}
.lpc-group-chat-icon>img{display:block;width:100%;height:100%;border-radius:14px;object-fit:cover}
.lpc-group-chat-icon>svg{width:22px;height:22px}
.lpc-group-chat-icon>i{position:absolute;right:-4px;bottom:-4px;display:grid;width:20px;height:20px;place-items:center;border:2px solid #fff;border-radius:7px;background:var(--lpc-gc-accent);color:#17314F;box-shadow:0 2px 7px rgba(31,51,75,.14)}
.lpc-group-chat-icon>i svg{width:10px;height:10px}
.lpc-group-chat-head-actions{position:relative;z-index:15;display:flex;flex:0 0 auto;align-items:center;gap:5px}
.lpc-group-chat-head-actions>button{display:grid;width:39px;height:39px;place-items:center;border:1px solid #E0E7EE;border-radius:12px;background:#F7F9FB;color:#48637E;cursor:pointer;touch-action:manipulation;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.lpc-group-chat-head-actions>button:hover{border-color:#F0D29D;background:#FFF5E5;color:#75491D;box-shadow:0 4px 12px rgba(68,46,20,.06)}
.lpc-group-chat-head-actions>button.is-active,.lpc-group-chat-head-actions>button[aria-expanded="true"]{border-color:var(--lpc-gc-navy);background:var(--lpc-gc-navy);color:#fff;box-shadow:0 5px 14px rgba(14,45,123,.16)}
.lpc-group-chat-head-actions>button:active{transform:scale(.96)}
.lpc-group-chat-head-actions>button:disabled{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none}
.lpc-group-chat-head-actions svg{width:18px;height:18px}

/* History */
.lpc-group-chat-history{position:relative;min-height:0;flex:1;overflow-y:auto;padding:20px 20px 14px;background:linear-gradient(180deg,#F9FBFD 0%,#F5F8FB 100%);overscroll-behavior-y:auto;scrollbar-color:#C6D1DD transparent;scrollbar-width:thin}
.lpc-group-chat-list{display:flex;width:min(940px,100%);margin:0 auto;flex-direction:column;gap:9px}
.lpc-group-chat-message{position:relative;display:flex;max-width:min(76%,720px);align-self:flex-start;align-items:flex-end;gap:8px;animation:lpcGroupChatIn .16s ease both}
.lpc-group-chat-message.is-mine{align-self:flex-end;flex-direction:row-reverse}
.lpc-group-chat-message-avatar{display:block;width:34px;height:34px;flex:0 0 34px;border:1px solid rgba(20,48,79,.08);border-radius:50%;background:#E8EDF3;object-fit:cover}
.lpc-group-chat-message-main{min-width:0}
.lpc-group-chat-message-name{display:flex;align-items:center;gap:6px;margin:0 0 4px 8px;color:#344A61;font-size:10.5px}
.lpc-group-chat-message-name strong{font-weight:650}
.lpc-group-chat-message-name span{padding:2px 6px;border:1px solid #F3D6AA;border-radius:999px;background:#FFF5E7;color:#8A551F;font-size:8.5px;font-weight:700;text-transform:capitalize}
.lpc-group-chat-bubble{position:relative;padding:10px 12px;border:1px solid #DCE4EC;border-radius:17px 17px 17px 6px;background:#fff;color:var(--lpc-gc-text);box-shadow:0 4px 14px rgba(17,42,72,.035)}
.lpc-group-chat-message.is-mine .lpc-group-chat-bubble{border-color:var(--lpc-gc-navy);border-radius:17px 17px 6px 17px;background:var(--lpc-gc-navy);color:#fff;box-shadow:0 5px 16px rgba(14,45,123,.12)}
.lpc-group-chat-body{margin:0;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
.lpc-group-chat-deleted-copy{margin:0;font-size:12px;font-style:italic;opacity:.7}
.lpc-group-chat-reply-preview{display:block;width:100%;margin:0 0 8px;padding:7px 9px;border:0;border-left:3px solid #7D98B5;border-radius:9px;background:#F2F6F9;color:#30475E;text-align:left}
.lpc-group-chat-reply-preview:hover{background:#EAF0F5}
.lpc-group-chat-message.is-mine .lpc-group-chat-reply-preview{border-left-color:var(--lpc-gc-accent);background:rgba(255,255,255,.11);color:#fff}
.lpc-group-chat-message.is-mine .lpc-group-chat-reply-preview:hover{background:rgba(255,255,255,.16)}
.lpc-group-chat-reply-preview strong,.lpc-group-chat-reply-preview span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lpc-group-chat-reply-preview strong{font-size:10px;font-weight:650}
.lpc-group-chat-reply-preview span{margin-top:2px;font-size:10px;opacity:.82}
.lpc-group-chat-attachments{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.lpc-group-chat-attachments>.lpc-media-open-wrap,.lpc-group-chat-attachments>.lpc-group-chat-video-wrap,.lpc-group-chat-attachments>a:not(.lpc-group-chat-file),.lpc-group-chat-attachments video{display:block;width:100%;max-width:330px;overflow:hidden;border-radius:11px}
.lpc-group-chat-media-open{display:block;width:100%;margin:0;padding:0;overflow:hidden;border:0;border-radius:11px;background:transparent;color:inherit;cursor:zoom-in;text-align:inherit}
.lpc-group-chat-attachments img{display:block;width:100%;height:180px;object-fit:cover}
.lpc-group-chat-video-wrap{position:relative;background:#08111C}
.lpc-group-chat-video-wrap video{display:block;width:100%;max-height:270px;background:#000}
.lpc-group-chat-video-wrap .lpc-media-expand{position:absolute;right:8px;top:8px}
.lpc-group-chat-file{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #DEE6ED;border-radius:11px;background:#F4F7FA;color:#253B51;text-decoration:none}
.lpc-group-chat-file:hover{border-color:#CAD7E2;background:#EDF3F7}
.lpc-group-chat-message.is-mine .lpc-group-chat-file{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.11);color:#fff}
.lpc-group-chat-file svg{width:21px;flex:0 0 21px}
.lpc-group-chat-file span{min-width:0}
.lpc-group-chat-file strong,.lpc-group-chat-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lpc-group-chat-file strong{font-size:10px;font-weight:600}
.lpc-group-chat-file small{margin-top:2px;font-size:8.5px;opacity:.78}
.lpc-group-chat-meta{display:flex;align-items:center;gap:7px;margin:4px 7px 0;color:#8D9AAA;font-size:9px;line-height:1.2}
.lpc-group-chat-message.is-mine .lpc-group-chat-meta{justify-content:flex-end}
.lpc-group-chat-meta .is-pinned{display:inline-flex;align-items:center;gap:3px;color:#8A5A23;font-weight:650}
.lpc-group-chat-meta svg{width:10px;height:10px}

.lpc-group-chat-inline-edit{display:flex;min-width:280px;max-width:100%;flex-direction:column;gap:8px;padding:8px;border:1px solid #DCE4EC;border-radius:13px;background:#fff;box-shadow:0 6px 18px rgba(16,39,66,.07)}
.lpc-group-chat-inline-edit textarea{appearance:none;display:block;width:100%;min-height:82px;margin:0;padding:10px 11px;border:1px solid #D2DCE6;border-radius:10px;outline:0;background:#F8FAFC;color:#203B59;font-family:inherit;font-size:12px;line-height:1.45;resize:vertical;box-shadow:none}
.lpc-group-chat-inline-edit textarea:focus{border-color:#8EA7C4;background:#fff;box-shadow:0 0 0 3px rgba(14,45,123,.08)}
.lpc-group-chat-inline-edit>div{display:flex;justify-content:flex-end;gap:6px}
.lpc-group-chat-inline-edit button{min-height:32px;padding:0 10px;border:1px solid #D7E0E8;border-radius:9px;background:#fff;color:#536A80;font-size:10px;font-weight:650}
.lpc-group-chat-inline-edit button:hover{border-color:#E6C68D;background:#FFF5E5;color:#6E451D}
.lpc-group-chat-inline-edit button[data-lpc-group-chat-edit-save]{border-color:#E7B65D;background:#F8B861;color:#17314F}
.lpc-group-chat-inline-edit button[data-lpc-group-chat-edit-save]:hover{border-color:#0E2D7B;background:#0E2D7B;color:#fff}
.lpc-group-chat-inline-edit button:disabled{opacity:.5;cursor:wait}

/* Message actions and reactions */
.lpc-group-chat-message-actions{position:absolute;top:50%;left:calc(100% + 8px);display:flex;gap:4px;opacity:0;visibility:hidden;transform:translateY(-50%);transition:opacity .14s ease,visibility .14s ease}
.lpc-group-chat-message.is-mine .lpc-group-chat-message-actions{right:calc(100% + 8px);left:auto}
.lpc-group-chat-message:hover .lpc-group-chat-message-actions,.lpc-group-chat-message:focus-within .lpc-group-chat-message-actions{opacity:1;visibility:visible}
.lpc-group-chat-message-actions>button{display:grid;width:30px;height:30px;place-items:center;border:1px solid #DCE4EC;border-radius:9px;background:#fff;color:#60758A;box-shadow:0 4px 11px rgba(20,43,68,.05)}
.lpc-group-chat-message-actions>button:hover{border-color:#E8C993;background:#FFF5E7;color:#6E451D}
.lpc-group-chat-message-actions svg{width:14px;height:14px}
.lpc-group-chat-message-menu,.lpc-group-chat-reaction-picker{position:absolute;z-index:30;right:0;bottom:36px;min-width:176px;padding:6px;border:1px solid #DDE5ED;border-radius:13px;background:#fff;box-shadow:0 16px 40px rgba(15,35,59,.16)}
.lpc-group-chat-message.is-mine .lpc-group-chat-message-menu,.lpc-group-chat-message.is-mine .lpc-group-chat-reaction-picker{right:auto;left:0}
.lpc-group-chat-message-menu button{display:flex;width:100%;align-items:center;gap:8px;padding:9px;border:0;border-radius:9px;background:transparent;color:#31475E;text-align:left}
.lpc-group-chat-message-menu button:hover{background:#F3F6F9;color:var(--lpc-gc-navy)}
.lpc-group-chat-message-menu button.is-danger{color:#A63D47}
.lpc-group-chat-message-menu button.is-danger:hover{background:#FFF1F2;color:#912F39}
.lpc-group-chat-message-menu svg{width:16px;height:16px}
.lpc-group-chat-reaction-picker{display:flex;min-width:auto;gap:2px}
.lpc-group-chat-reaction-picker button{padding:6px;border:0;border-radius:9px;background:transparent;font-size:18px;transition:background .14s ease,transform .14s ease}
.lpc-group-chat-reaction-picker button:hover{background:#F2F5F8;transform:scale(1.1)}
.lpc-group-chat-reaction-summary{display:flex;flex-wrap:wrap;gap:4px;margin:4px 7px 0}
.lpc-group-chat-message.is-mine .lpc-group-chat-reaction-summary{justify-content:flex-end}
.lpc-group-chat-reaction-summary button{display:flex;min-height:24px;align-items:center;gap:3px;padding:2px 7px;border:1px solid #DDE5ED;border-radius:999px;background:#fff;font-size:12px;line-height:1.2}
.lpc-group-chat-reaction-summary button:hover{border-color:#E8C993;background:#FFF7EA}
.lpc-group-chat-reaction-summary button.is-mine{border-color:#EBC785;background:#FFF2D8}
.lpc-group-chat-reaction-summary span{color:#63768A;font-size:9px}
.lpc-group-chat-message.is-highlighted .lpc-group-chat-bubble{box-shadow:0 0 0 4px rgba(248,184,97,.35),0 7px 20px rgba(15,38,69,.08)}

/* History states */
.lpc-group-chat-unread-separator{display:flex;align-items:center;gap:9px;margin:12px 0;color:#6E451D;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.lpc-group-chat-unread-separator::before,.lpc-group-chat-unread-separator::after{content:"";height:1px;flex:1;background:#E8C993}
.lpc-group-chat-unread-separator span{padding:4px 8px;border-radius:999px;background:#FFF2D8}
.lpc-group-chat-load-older{display:block;margin:0 auto 16px;padding:8px 14px;border:1px solid #D8E1EA;border-radius:999px;background:#fff;color:#40566E;font-size:10.5px;font-weight:650}
.lpc-group-chat-load-older:hover{border-color:#E8C993;background:#FFF7EC;color:#6E451D}
.lpc-group-chat-new{position:sticky;bottom:10px;display:flex;width:max-content;align-items:center;gap:6px;margin:-42px auto 6px;padding:8px 12px;border:1px solid #E7C483;border-radius:999px;background:var(--lpc-gc-accent);color:#17314F;font-size:10.5px;font-weight:700;box-shadow:0 9px 24px rgba(74,50,21,.14)}
.lpc-group-chat-new:hover{border-color:var(--lpc-gc-navy);background:var(--lpc-gc-navy);color:#fff}
.lpc-group-chat-new svg{width:14px;height:14px}
.lpc-group-chat-typing{display:flex;width:min(940px,100%);align-items:center;gap:4px;margin:8px auto 0;color:#728397;font-size:10px}
.lpc-group-chat-typing i{width:5px;height:5px;border-radius:50%;background:#93A2B2;animation:lpcGroupTyping 1s infinite}
.lpc-group-chat-typing i:nth-child(2){animation-delay:.15s}.lpc-group-chat-typing i:nth-child(3){animation-delay:.3s}
.lpc-group-chat-typing span{margin-left:4px}

/* Composer */
.lpc-group-chat-composer{position:relative;z-index:10;display:flex;align-items:flex-end;gap:8px;padding:11px 13px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--lpc-gc-line);background:#fff;box-shadow:0 -5px 18px rgba(17,43,72,.025)}
.lpc-group-chat-composer>button{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border:1px solid #D8E2EC;border-radius:13px;background:#F5F8FA;color:#355575;cursor:pointer;touch-action:manipulation;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease,opacity .16s ease,box-shadow .16s ease}
.lpc-group-chat-composer>button:hover{border-color:#D0DCE7;background:#EEF3F7;color:var(--lpc-gc-navy)}
.lpc-group-chat-composer>button:active{transform:scale(.96)}
.lpc-group-chat-composer>.lpc-group-chat-attach-button{border-color:#F0D29D;background:#FFF5E5;color:#75491D;box-shadow:0 3px 10px rgba(112,71,25,.06)}
.lpc-group-chat-composer>.lpc-group-chat-attach-button:hover{border-color:var(--lpc-gc-accent);background:var(--lpc-gc-accent);color:#17314F;box-shadow:0 5px 14px rgba(111,76,31,.12)}
.lpc-group-chat-composer>.lpc-group-chat-attach-button:active{border-color:var(--lpc-gc-navy);background:var(--lpc-gc-navy);color:#fff}
.lpc-group-chat-composer>.lpc-group-chat-send{border-color:#E7B65D;background:var(--lpc-gc-accent);color:#17314F;box-shadow:0 5px 13px rgba(84,58,24,.12)}
.lpc-group-chat-composer>.lpc-group-chat-send:hover{border-color:var(--lpc-gc-navy);background:var(--lpc-gc-navy);color:#fff;transform:translateY(-1px)}
.lpc-group-chat-composer>.lpc-group-chat-send:disabled{opacity:.45;cursor:not-allowed;box-shadow:none;transform:none}
.lpc-group-chat-composer>button svg{width:18px;height:18px}
.lpc-group-chat-input-wrap{position:relative;display:flex;min-width:0;flex:1;align-items:flex-end;border:1px solid #D5DFE9;border-radius:15px;background:#F8FAFC;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.lpc-group-chat-input-wrap:hover{border-color:#C6D3DF}
.lpc-group-chat-input-wrap:focus-within{border-color:#8EA7C4;background:#fff;box-shadow:0 0 0 3px rgba(14,45,123,.08)}
.lpc-group-chat-input-wrap textarea{appearance:none;display:block;width:100%;min-width:0;min-height:44px;max-height:132px;margin:0;padding:11px 45px 10px 13px;overflow-y:auto;border:0;border-radius:15px;outline:0;background:transparent;color:#203B59;font-family:inherit;font-size:13.5px;font-weight:400;line-height:1.5;resize:none;box-shadow:none}
.lpc-group-chat-input-wrap textarea::placeholder{color:#8C99A8;opacity:1}
.lpc-group-chat-input-wrap>button{position:absolute;right:5px;bottom:6px;display:grid;width:32px;height:32px;place-items:center;border:0;border-radius:9px;background:transparent;color:#6D8094}
.lpc-group-chat-input-wrap>button:hover{background:#E9EFF4;color:var(--lpc-gc-navy)}

/* Emoji and mentions */
.lpc-group-chat-emoji,.lpc-group-chat-mention-menu{position:absolute;z-index:50;border:1px solid #DCE5ED;border-radius:14px;background:#fff;box-shadow:0 16px 42px rgba(17,39,66,.16)}
.lpc-group-chat-emoji{right:0;bottom:48px;display:grid;grid-template-columns:repeat(6,34px);gap:2px;padding:8px}
.lpc-group-chat-emoji button{display:grid;height:32px;place-items:center;border:0;border-radius:8px;background:transparent;font-size:18px}
.lpc-group-chat-emoji button:hover{background:#F1F5F8}
.lpc-group-chat-mention-menu{right:auto;bottom:48px;left:0;width:min(340px,90vw);max-height:270px;overflow:auto;padding:6px;overscroll-behavior:contain}
.lpc-group-chat-mention-menu button{display:grid;width:100%;grid-template-columns:36px 1fr;grid-template-rows:auto auto;column-gap:9px;padding:8px;border:0;border-radius:10px;background:transparent;text-align:left}
.lpc-group-chat-mention-menu button:hover{background:#F4F7FA}
.lpc-group-chat-mention-menu img,.lpc-group-chat-mention-menu .is-everyone{grid-row:1/3;width:36px;height:36px;border-radius:50%;object-fit:cover}
.lpc-group-chat-mention-menu .is-everyone{display:grid;place-items:center;background:#FFF1D8;color:#7D4A17;font-weight:700}
.lpc-group-chat-mention-menu strong{color:#28445F;font-size:10.5px;font-weight:650}
.lpc-group-chat-mention-menu small{margin-top:2px;color:#8190A0;font-size:9px}

/* Reply, previews and access states */
.lpc-group-chat-reply,.lpc-group-chat-preview,.lpc-group-chat-progress,.lpc-group-chat-restricted{border-top:1px solid #E9EDF2;background:#fff}
.lpc-group-chat-reply{display:grid;grid-template-columns:28px 1fr 32px;align-items:center;gap:8px;padding:9px 13px}
.lpc-group-chat-reply>span{display:grid;width:28px;height:28px;place-items:center;border-radius:8px;background:#FFF3DD;color:#80501D}
.lpc-group-chat-reply svg{width:15px;height:15px}
.lpc-group-chat-reply div{min-width:0}
.lpc-group-chat-reply small,.lpc-group-chat-reply strong,.lpc-group-chat-reply p{display:block;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lpc-group-chat-reply small{color:#8997A6;font-size:8.5px}.lpc-group-chat-reply strong{color:#294660;font-size:10.5px;font-weight:650}.lpc-group-chat-reply p{margin-top:2px;color:#6E8092;font-size:9.5px}
.lpc-group-chat-reply button{display:grid;width:30px;height:30px;place-items:center;border:0;border-radius:9px;background:#F2F5F8;color:#667B90}
.lpc-group-chat-reply button:hover{background:#E8EEF3;color:var(--lpc-gc-navy)}
.lpc-group-chat-preview{display:flex;gap:8px;overflow-x:auto;padding:9px 13px;border-top:1px solid #EDF1F5;background:#FBFCFD;scrollbar-width:thin;scrollbar-color:#CBD5DF transparent}
.lpc-group-chat-preview-item{position:relative;display:flex;min-width:170px;max-width:230px;align-items:center;gap:8px;padding:7px 38px 7px 8px;border:1px solid #DDE5ED;border-radius:11px;background:#fff;box-shadow:0 2px 8px rgba(17,42,72,.035)}
.lpc-group-chat-preview-item img{width:40px;height:40px;flex:0 0 40px;border-radius:9px;object-fit:cover;background:#E9EEF3}
.lpc-group-chat-preview-file-icon{display:grid;width:40px;height:40px;flex:0 0 40px;place-items:center;border-radius:9px;background:#EEF3F8;color:#0E2D7B;font-size:14px}
.lpc-group-chat-preview-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}
.lpc-group-chat-preview-item small{overflow:hidden;color:#405970;font-size:9.5px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.lpc-group-chat-preview-item em{color:#8A98A7;font-size:8.5px;font-style:normal}
.lpc-group-chat-preview-item>button{position:absolute;right:6px;top:50%;display:grid;width:27px;height:27px;place-items:center;border:0;border-radius:8px;background:#F1F5F8;color:#6D8094;cursor:pointer;transform:translateY(-50%)}
.lpc-group-chat-preview-item>button:hover{background:#FFF0E0;color:#8A531B}.lpc-group-chat-preview-item>button svg{width:13px;height:13px}
.lpc-group-chat-progress{padding:8px 13px 9px}
.lpc-group-chat-progress>span{display:block;height:4px;overflow:hidden;border-radius:999px;background:#E7ECF1}
.lpc-group-chat-progress i{display:block;width:0;height:100%;border-radius:inherit;background:var(--lpc-gc-accent);transition:width .15s linear}
.lpc-group-chat-progress-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px}
.lpc-group-chat-progress small{display:block;margin:0;color:#66798D;font-size:9.5px;font-weight:550}
.lpc-group-chat-progress button{min-height:28px;margin:0;padding:4px 9px;border:1px solid #E2C18E;border-radius:8px;background:#FFF6E8;color:#75491D;font-family:inherit;font-size:9px;font-weight:650;line-height:1;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease}
.lpc-group-chat-progress button:hover{border-color:var(--lpc-gc-navy);background:var(--lpc-gc-navy);color:#fff}
.lpc-group-chat-progress button:active{transform:scale(.97)}
.lpc-group-chat-progress button:focus-visible{outline:2px solid rgba(14,45,123,.24);outline-offset:2px}
.lpc-group-chat-restricted{display:flex;align-items:center;gap:10px;padding:11px 13px;color:#55697E}
.lpc-group-chat-restricted>span{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border-radius:11px;background:#FFF2DD;color:#7D4C19}
.lpc-group-chat-restricted svg{width:17px;height:17px}
.lpc-group-chat-restricted strong,.lpc-group-chat-restricted p{display:block;margin:0}.lpc-group-chat-restricted strong{color:#304A62;font-size:10.5px;font-weight:650}.lpc-group-chat-restricted p{margin-top:2px;font-size:9.5px;line-height:1.45}

/* Search and side panels */
.lpc-group-chat-search{position:absolute;z-index:40;top:78px;right:0;left:0;padding:12px 14px 13px;border-bottom:1px solid #DCE5ED;background:rgba(255,255,255,.985);box-shadow:0 12px 28px rgba(17,42,72,.08);backdrop-filter:blur(12px)}
.lpc-group-chat-search-bar{display:flex;width:100%;align-items:center;gap:8px}
.lpc-group-chat-search-field{position:relative;display:flex;min-width:0;height:46px;flex:1;align-items:center;border:1px solid #D5DFE9;border-radius:14px;background:#F7F9FC;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease}
.lpc-group-chat-search-field:hover{border-color:#C4D1DE;background:#FAFBFD}
.lpc-group-chat-search-field:focus-within{border-color:#8EA7C4;background:#fff;box-shadow:0 0 0 3px rgba(14,45,123,.08)}
.lpc-group-chat-search-icon{display:grid;width:42px;flex:0 0 42px;place-items:center;color:#607991;pointer-events:none}
.lpc-group-chat-search-icon svg{width:18px;height:18px}
.lpc-group-chat-search input[type="search"]{appearance:none;display:block;width:100%;min-width:0;height:44px;margin:0;padding:0 38px 0 0;border:0;border-radius:13px;outline:0;background:transparent;color:#203B59;font-family:inherit;font-size:13px;font-weight:500;line-height:44px;box-shadow:none}
.lpc-group-chat-search input[type="search"]::placeholder{color:#8795A5;opacity:1}
.lpc-group-chat-search input[type="search"]::-webkit-search-decoration,.lpc-group-chat-search input[type="search"]::-webkit-search-cancel-button{appearance:none}
.lpc-group-chat-search-clear{position:absolute;right:6px;top:7px;display:grid;width:30px;height:30px;place-items:center;border:0;border-radius:9px;background:transparent;color:#73869A;cursor:pointer}
.lpc-group-chat-search-clear:hover{background:#EAF0F5;color:var(--lpc-gc-navy)}
.lpc-group-chat-search-clear svg{width:14px;height:14px}
.lpc-group-chat-search-close{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border:1px solid #F0D29D;border-radius:12px;background:#FFF5E5;color:#75491D;cursor:pointer;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.lpc-group-chat-search-close:hover{border-color:var(--lpc-gc-navy);background:var(--lpc-gc-navy);color:#fff}.lpc-group-chat-search-close:active{transform:scale(.96)}
.lpc-group-chat-search-close svg{width:17px;height:17px}
.lpc-group-chat-search-status{margin:7px 2px 0;color:#75879A;font-size:10px;font-weight:500;line-height:1.35}
.lpc-group-chat-search-results{max-height:300px;margin-top:9px;overflow:auto;padding:5px;border:1px solid #E1E8EF;border-radius:14px;background:#F8FAFC;overscroll-behavior-y:auto;scrollbar-width:thin;scrollbar-color:#CBD5DF transparent}
.lpc-group-chat-search-result{display:flex;width:100%;min-height:58px;align-items:center;gap:10px;padding:8px 9px;border:1px solid transparent;border-radius:11px;background:transparent;color:#29445E;text-align:left;cursor:pointer;transition:background .14s ease,border-color .14s ease,transform .14s ease}
.lpc-group-chat-search-result:hover{border-color:#E2C594;background:#FFF7EA;transform:translateY(-1px)}
.lpc-group-chat-search-result:active{transform:none}
.lpc-group-chat-search-result-icon{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:10px;background:#EAF0F7;color:var(--lpc-gc-navy)}
.lpc-group-chat-search-result-icon svg{width:15px;height:15px}
.lpc-group-chat-search-result-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.lpc-group-chat-search-result-top{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:9px}
.lpc-group-chat-search-result-top strong{overflow:hidden;color:#24425F;font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.lpc-group-chat-search-result-top time{flex:0 0 auto;color:#8A98A7;font-size:9px;font-weight:500}
.lpc-group-chat-search-result-text{overflow:hidden;color:#66798D;font-size:10px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.lpc-group-chat-search-result-arrow{display:grid;width:24px;height:24px;flex:0 0 24px;place-items:center;color:#97A4B1}
.lpc-group-chat-search-result:hover .lpc-group-chat-search-result-arrow{color:#75491D}
.lpc-group-chat-search-result-arrow svg{width:14px;height:14px}
.lpc-group-chat-search-loading{display:flex;min-height:68px;align-items:center;justify-content:center;gap:5px;color:#6F8194;font-size:10.5px}.lpc-group-chat-search-loading i{width:5px;height:5px;border-radius:50%;background:var(--lpc-gc-navy);animation:lpcGroupTyping 1s infinite}.lpc-group-chat-search-loading i:nth-child(2){animation-delay:.14s}.lpc-group-chat-search-loading i:nth-child(3){animation-delay:.28s}.lpc-group-chat-search-loading span{margin-left:5px}
.lpc-group-chat-search-empty{display:flex;min-height:118px;align-items:center;justify-content:center;flex-direction:column;padding:18px;color:#75879A;text-align:center}.lpc-group-chat-search-empty>span{display:grid;width:38px;height:38px;place-items:center;border-radius:11px;background:#EAF0F7;color:var(--lpc-gc-navy)}.lpc-group-chat-search-empty>span svg{width:17px;height:17px}.lpc-group-chat-search-empty strong{margin-top:8px;color:#304A62;font-size:11px;font-weight:650}.lpc-group-chat-search-empty p{margin:3px 0 0;font-size:9.5px;line-height:1.4}.lpc-group-chat-search-empty.is-error strong{color:#A13A42}
.lpc-group-chat-back-latest{position:absolute;z-index:35;top:91px;left:50%;display:flex;width:max-content;align-items:center;justify-content:center;gap:6px;margin:0;padding:8px 12px;border:1px solid #D7E1EB;border-radius:999px;background:#fff;color:#234D78;font-size:10px;font-weight:650;cursor:pointer;box-shadow:0 6px 18px rgba(17,42,72,.11);transform:translateX(-50%)}
.lpc-group-chat-back-latest:hover{border-color:#E6C487;background:#FFF5E5;color:#704719}.lpc-group-chat-back-latest:disabled{opacity:.5;cursor:wait}.lpc-group-chat-back-latest svg{width:14px;height:14px}
.lpc-group-chat-side-panel{position:absolute;z-index:60;top:0;right:0;bottom:0;width:min(370px,92%);overflow:auto;border-left:1px solid #DCE5ED;background:#fff;box-shadow:-18px 0 42px rgba(14,35,61,.12);overscroll-behavior:contain}
.lpc-group-chat-side-panel>header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;border-bottom:1px solid #E7ECF1;background:#fff}
.lpc-group-chat-side-panel>header strong{color:#24425F;font-size:13px;font-weight:650}
.lpc-group-chat-side-panel>header button{display:grid;width:34px;height:34px;place-items:center;border:0;border-radius:10px;background:#F1F5F8;color:#60768C}
.lpc-group-chat-side-panel>header button:hover{background:#E7EDF2;color:var(--lpc-gc-navy)}
.lpc-group-chat-side-panel [data-lpc-group-chat-pins-list]{padding:8px}
.lpc-group-chat-side-panel [data-lpc-group-chat-pins-list]>button{display:block;width:100%;padding:10px;border:1px solid transparent;border-radius:10px;background:transparent;text-align:left}
.lpc-group-chat-side-panel [data-lpc-group-chat-pins-list]>button:hover{border-color:#E1E7ED;background:#F5F8FA}
.lpc-group-chat-side-panel [data-lpc-group-chat-pins-list] strong,.lpc-group-chat-side-panel [data-lpc-group-chat-pins-list] span{display:block}.lpc-group-chat-side-panel [data-lpc-group-chat-pins-list] strong{color:#29445E;font-size:10.5px}.lpc-group-chat-side-panel [data-lpc-group-chat-pins-list] span{margin-top:3px;color:#697B8D;font-size:9.5px;line-height:1.4}
.lpc-group-chat-pins-empty{padding:24px 16px;color:#7D8C9C;font-size:10.5px;text-align:center}
.lpc-group-chat-settings-body{padding:16px}
.lpc-group-chat-settings-body label>span{display:block;margin-bottom:7px;color:#334B63;font-size:10.5px;font-weight:650}
.lpc-group-chat-settings-body select{appearance:auto;display:block;width:100%;min-height:44px;margin:0;padding:0 12px;border:1px solid #D5DFE9;border-radius:12px;background:#fff;color:#203B59;font-family:inherit;font-size:12px;font-weight:500;line-height:1.2;box-shadow:none;cursor:pointer}
.lpc-group-chat-settings-body select:hover{border-color:#C6D3DF}.lpc-group-chat-settings-body select:focus{border-color:#8EA7C4;outline:0;box-shadow:0 0 0 3px rgba(14,45,123,.08)}
.lpc-group-chat-settings-body p{margin:10px 0 0;color:#728397;font-size:9.5px;line-height:1.5}

/* Loading/error/locked */
.lpc-group-chat-loading,.lpc-group-chat-error,.lpc-group-chat-locked{display:flex;min-height:420px;align-items:center;justify-content:center;flex-direction:column;padding:40px;border:1px solid #DCE5ED;border-radius:20px;background:#fff;color:#6F8194;text-align:center}
.lpc-group-chat-loading{flex-direction:row;gap:6px}
.lpc-group-chat-loading i{width:7px;height:7px;border-radius:50%;background:var(--lpc-gc-navy);animation:lpcGroupTyping 1s infinite}.lpc-group-chat-loading i:nth-child(2){animation-delay:.15s}.lpc-group-chat-loading i:nth-child(3){animation-delay:.3s}
.lpc-group-chat-error strong,.lpc-group-chat-locked h3{margin:10px 0 5px;color:#183C62;font-size:15px}.lpc-group-chat-error p,.lpc-group-chat-locked p{max-width:380px;margin:0 0 13px;color:#748598;font-size:11px;line-height:1.5}
.lpc-group-chat-error button{padding:9px 14px;border:1px solid #E4B75E;border-radius:10px;background:var(--lpc-gc-accent);color:#17314F;font-weight:650}.lpc-group-chat-error button:hover{border-color:var(--lpc-gc-navy);background:var(--lpc-gc-navy);color:#fff}
.lpc-group-chat-locked>span{display:grid;width:52px;height:52px;place-items:center;border-radius:15px;background:#FFF2DB;color:#7D4A18}.lpc-group-chat-locked svg{width:24px;height:24px}
.lpc-group-chat-tab-badge{display:inline-grid;min-width:19px;height:19px;place-items:center;margin-left:5px;padding:0 5px;border-radius:999px;background:var(--lpc-gc-navy);color:#fff;font-size:9px;font-style:normal;line-height:1}

@keyframes lpcGroupTyping{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-2px)}}
@keyframes lpcGroupChatIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}

@media(max-width:760px){
    .lpc-group-chat{height:calc(100dvh - 150px);min-height:520px;border-radius:18px}
    .lpc-chat-thread-panel--group .lpc-group-chat{height:100%;min-height:0;border-radius:0}
    .lpc-group-chat-head{min-height:66px;padding:8px 9px;gap:7px}
    .lpc-group-chat-mobile-back{display:grid;width:36px;height:36px;flex:0 0 36px;place-items:center;border:0;border-radius:11px;background:#F1F5F8;color:#274A6D}
    .lpc-group-chat-mobile-back:hover{background:#FFF1D8;color:#744718}
    .lpc-group-chat-mobile-back svg{width:17px;height:17px}
    .lpc-group-chat-icon{width:41px;height:41px;flex-basis:41px;border-radius:13px}.lpc-group-chat-icon>img{border-radius:12px}.lpc-group-chat-icon>i{width:18px;height:18px}
    .lpc-group-chat-title{gap:8px}.lpc-group-chat-title h2{font-size:13.5px}.lpc-group-chat-title p{display:none}.lpc-group-chat-title .lpc-page-eyebrow{font-size:8px}
    .lpc-group-chat-head-actions{gap:2px}.lpc-group-chat-head-actions>button{width:34px;height:34px;border-radius:10px}.lpc-group-chat-head-actions svg{width:16px;height:16px}
    .lpc-group-chat-history{padding:14px 10px 10px;overscroll-behavior-y:contain}.lpc-group-chat-message{max-width:88%}.lpc-group-chat-message-avatar{width:30px;height:30px;flex-basis:30px}.lpc-group-chat-body{font-size:12.5px}
    .lpc-group-chat-message-actions{position:static;display:flex;margin-top:3px;justify-content:flex-end;opacity:1;visibility:visible;transform:none}.lpc-group-chat-message.is-mine .lpc-group-chat-message-actions{position:static}.lpc-group-chat-message-actions>button{width:28px;height:28px;box-shadow:none}
    .lpc-group-chat-composer{gap:6px;padding:9px 8px calc(9px + env(safe-area-inset-bottom))}.lpc-group-chat-composer>button{width:40px;height:40px;flex-basis:40px;border-radius:12px}.lpc-group-chat-input-wrap textarea{min-height:40px;padding-top:9px;padding-bottom:8px;font-size:16px}
    .lpc-chat-thread-panel--group .lpc-group-chat-composer{padding-bottom:9px}
    .lpc-group-chat-attachments img{height:140px}.lpc-group-chat-search{top:66px;padding:9px 9px 11px}.lpc-group-chat-back-latest{top:76px}.lpc-group-chat-search-field{height:44px;border-radius:13px}.lpc-group-chat-search input[type="search"]{height:42px;font-size:16px;line-height:42px}.lpc-group-chat-search-icon{width:39px;flex-basis:39px}.lpc-group-chat-search-close{width:40px;height:40px;flex-basis:40px}.lpc-group-chat-search-results{max-height:min(38dvh,300px)}.lpc-group-chat-side-panel{position:fixed;z-index:640;top:auto;right:0;bottom:0;left:0;width:100%;height:min(72dvh,680px);border:0;border-top:1px solid #D8E1E9;border-radius:20px 20px 0 0;box-shadow:0 -20px 58px rgba(13,31,51,.2)}
}

@media(max-width:430px){
    .lpc-group-chat-head-actions>button:nth-child(3){display:none}
    .lpc-group-chat-message{max-width:91%}
    .lpc-group-chat-composer{gap:5px}.lpc-group-chat-composer>button{width:38px;height:38px;flex-basis:38px;border-radius:11px}
}

@media(prefers-reduced-motion:reduce){.lpc-group-chat-message,.lpc-group-chat-typing i{animation:none}.lpc-group-chat button{transition:none}}
