/* LaunchPoint Community — direct + group messaging */
.lpc-app[data-current-view="chat"] .lpc-main{gap:0}

.lpc-chat-badge{position:absolute;right:-3px;top:-3px;display:grid;min-width:17px;height:17px;padding:0 4px;place-items:center;border:2px solid #fff;border-radius:999px;background:#E5484D;color:#fff;font-size:9px;font-weight:700;line-height:1}
.lpc-chat-badge[hidden]{display:none}
.lpc-chat-nav-button{position:relative}

/* Shell */
.lpc-chat-shell{--lpc-chat-primary:#0E2D7B;--lpc-chat-accent:#F8B861;--lpc-chat-line:#DFE6ED;--lpc-chat-soft:#F6F8FB;--lpc-chat-soft-2:#EEF3F8;--lpc-chat-muted:#75879C;display:grid;grid-template-columns:minmax(220px,32%) minmax(0,1fr);width:100%;height:calc(100dvh - var(--lpc-header-height) - 34px);min-height:620px;max-height:920px;overflow:hidden;border:1px solid #D8E2EB;border-radius:22px;background:#fff;box-shadow:0 16px 44px rgba(17,44,80,.075)}
.lpc-chat-shell,.lpc-chat-shell *{box-sizing:border-box}

/* Conversation column */
.lpc-chat-list-panel{display:flex;width:100%;min-width:0;min-height:0;flex-direction:column;overflow:hidden;border-right:1px solid var(--lpc-chat-line);background:#FCFDFE}
.lpc-chat-list-head{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:16px;padding:22px 20px 14px}
.lpc-chat-list-head>div{min-width:0}
.lpc-chat-list-head h1{margin:3px 0 0;color:#102F59;font-size:28px;line-height:1.05;font-weight:700;letter-spacing:-.025em}
.lpc-chat-list-head p{max-width:260px;margin:6px 0 0;color:#718399;font-size:11.5px;font-weight:500;line-height:1.45}
.lpc-chat-list-head .lpc-page-eyebrow{display:block;color:#C27322;font-size:10px;font-weight:700;line-height:1.2;letter-spacing:.09em;text-transform:uppercase}
.lpc-app .lpc-chat-new-button{display:grid;width:42px;height:42px;flex:0 0 42px;place-items:center;border:1px solid #E7B65D;border-radius:13px;background:#F8B861;color:#17314F;cursor:pointer;box-shadow:0 5px 14px rgba(87,59,23,.11);transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease}
.lpc-chat-new-button svg{width:18px;height:18px}
.lpc-app .lpc-chat-new-button:hover{border-color:#0E2D7B;background:#0E2D7B;color:#fff;box-shadow:0 7px 18px rgba(14,45,123,.16);transform:translateY(-1px)}
.lpc-app .lpc-chat-new-button:active{transform:translateY(0)}

/* Search fields. Explicit sizing prevents theme/form resets from collapsing them. */
.lpc-app .lpc-chat-search-wrap,.lpc-app .lpc-chat-new-search{position:relative;display:flex;width:auto;min-width:0;flex:0 0 auto;align-self:stretch;align-items:center;margin:0 14px 13px}
.lpc-chat-search-wrap>span,.lpc-chat-new-search>span{position:absolute;left:14px;z-index:2;display:grid;place-items:center;color:#6F8399;pointer-events:none}
.lpc-chat-search-wrap svg,.lpc-chat-new-search svg{width:17px;height:17px}
.lpc-app .lpc-chat-search-wrap input,.lpc-app .lpc-chat-new-search input{appearance:none;display:block;width:100%;min-width:0;max-width:none;height:46px;margin:0;padding:0 43px 0 42px;border:1px solid #D8E2EC;border-radius:14px;outline:0;background:#fff;color:#173554;font-family:inherit;font-size:13.5px;font-weight:400;line-height:44px;box-shadow:0 1px 2px rgba(17,42,72,.02);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.lpc-chat-search-wrap input::-webkit-search-cancel-button,.lpc-chat-new-search input::-webkit-search-cancel-button{display:none}
.lpc-chat-search-wrap input::placeholder,.lpc-chat-new-search input::placeholder{color:#8A98A8;opacity:1}
.lpc-chat-search-wrap input:hover,.lpc-chat-new-search input:hover{border-color:#C7D4E0;background:#fff}
.lpc-chat-search-wrap input:focus,.lpc-chat-new-search input:focus{border-color:#8EA7C4;background:#fff;box-shadow:0 0 0 3px rgba(14,45,123,.09)}
.lpc-app .lpc-chat-field-clear{position:absolute;right:8px;z-index:3;display:grid;width:30px;height:30px;place-items:center;border:0;border-radius:9px;background:transparent;color:#73869A;cursor:pointer}
.lpc-app .lpc-chat-field-clear:hover{background:#EDF2F7;color:#173F70}
.lpc-chat-field-clear svg{width:14px;height:14px}
.lpc-chat-field-clear[hidden]{display:none}

/* Search people inside the main conversation column */
.lpc-chat-search-people{margin:0 10px 10px;padding:9px;border:1px solid #E1E8EF;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(18,45,75,.045)}
.lpc-chat-search-people[hidden]{display:none}
.lpc-chat-search-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 5px 7px}
.lpc-chat-search-section-head strong{color:#244666;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.055em}
.lpc-chat-search-section-head small{color:#8B98A7;font-size:9.5px}
.lpc-chat-search-users{max-height:230px;overflow-y:auto;overscroll-behavior:contain}

/* Conversation type filters and unified scroll */
.lpc-chat-kind-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 14px 12px;padding:4px;border:1px solid #E2E8EF;border-radius:13px;background:#F4F7FA}
.lpc-app .lpc-chat-kind-tabs button{display:flex;min-width:0;height:34px;align-items:center;justify-content:center;gap:6px;padding:0 9px;border:1px solid transparent;border-radius:9px;background:transparent;color:#697C90;font:inherit;font-size:10px;font-weight:650;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}
.lpc-app .lpc-chat-kind-tabs button:hover{background:#fff;color:#294E74}
.lpc-app .lpc-chat-kind-tabs button.is-active{border-color:#D7E1EA;background:#fff;color:#0E2D7B;box-shadow:0 2px 7px rgba(21,49,81,.06)}
.lpc-chat-kind-tabs b{display:grid;min-width:18px;height:18px;place-items:center;padding:0 5px;border-radius:999px;background:#E7EDF3;color:#63778C;font-size:8.5px;font-weight:700}
.lpc-chat-kind-tabs button.is-active b{background:#FFF0D4;color:#80501D}
.lpc-chat-list-scroll{min-height:0;flex:1;overflow-y:auto;padding:0 0 8px;overscroll-behavior-y:auto;scrollbar-width:thin;scrollbar-color:#C8D4DF transparent}
.lpc-chat-list-section{display:block}
.lpc-chat-list-section[hidden]{display:none}
.lpc-chat-list-section+.lpc-chat-list-section{margin-top:7px;padding-top:7px;border-top:1px solid #EDF1F4}
.lpc-chat-list-label{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:3px 20px 7px;color:#7B8999;font-size:9.5px;font-weight:700;line-height:1.2;letter-spacing:.07em;text-transform:uppercase}
.lpc-chat-list-label>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-list-label>small{flex:0 0 auto;color:#9AA7B5;font-size:9px;font-weight:650;letter-spacing:0}
.lpc-chat-group-list{width:100%;min-width:0;padding:0 10px 6px}
.lpc-chat-group-avatar{position:relative;display:grid;width:50px;height:50px;flex:0 0 50px;place-items:center;overflow:visible;border:1px solid #DBE4EC;border-radius:15px;background:#EEF3F9;color:#0E2D7B}
.lpc-chat-group-avatar>img{display:block;width:100%;height:100%;border-radius:14px;object-fit:cover}
.lpc-chat-group-avatar>svg{width:23px;height:23px}
.lpc-chat-group-avatar>i{position:absolute;right:-4px;bottom:-3px;display:grid;width:20px;height:20px;place-items:center;border:2px solid #fff;border-radius:7px;background:#F8B861;color:#17314F;box-shadow:0 2px 7px rgba(31,51,75,.13)}
.lpc-chat-group-avatar>i svg{width:10px;height:10px}
.lpc-chat-group-meta{display:block;margin-top:-1px;color:#9A7A52;font-size:8.5px;font-weight:600;line-height:1.2}
.lpc-chat-group-unread{display:grid;min-width:20px;height:20px;place-items:center;padding:0 5px;border-radius:999px;background:#0E2D7B;color:#fff;font-size:9.5px;font-weight:700;line-height:1}
.lpc-chat-group-unread[hidden],.lpc-chat-group-row[hidden],.lpc-chat-conversation[hidden]{display:none}
.lpc-chat-list-empty--compact{min-height:150px;padding:18px 18px 22px}
.lpc-chat-list-empty--compact>span{width:46px;height:46px;margin-bottom:10px;border-radius:14px}
.lpc-chat-list-empty--compact>span svg{width:21px;height:21px}
.lpc-chat-list-empty--compact p{margin-bottom:11px}
.lpc-chat-filter-empty{padding:28px 20px;color:#78899A;font-size:11px;line-height:1.5;text-align:center}
.lpc-chat-list-foot{display:flex;flex:0 0 auto;align-items:center;gap:7px;padding:9px 14px 10px;border-top:1px solid #E8EDF2;background:#FAFBFC;color:#8593A2}
.lpc-chat-list-foot>span{display:grid;width:23px;height:23px;flex:0 0 23px;place-items:center;border-radius:7px;background:#EEF2F6;color:#60758A}
.lpc-chat-list-foot svg{width:12px;height:12px}
.lpc-chat-list-foot small{font-size:8.5px;line-height:1.35}

/* Conversation rows */
.lpc-chat-conversation-list{width:100%;min-width:0;padding:0 10px 6px}
.lpc-app .lpc-chat-conversation,.lpc-app .lpc-chat-group-row{position:relative;display:flex;width:100%;min-width:0;max-width:none;min-height:72px;align-items:center;justify-content:flex-start;gap:12px;margin:2px 0;padding:10px 11px;border:1px solid transparent;border-radius:15px;background:transparent;color:#17304F;text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.lpc-app .lpc-chat-conversation:hover,.lpc-app .lpc-chat-group-row:hover{border-color:#E4D3B9;background:#FFF8EE;transform:translateY(-1px)}
.lpc-app .lpc-chat-conversation.is-active,.lpc-app .lpc-chat-group-row.is-active{border-color:#D7E1EC;background:#EEF3F9;box-shadow:inset 3px 0 0 #0E2D7B}
.lpc-app .lpc-chat-conversation.is-loading,.lpc-app .lpc-chat-group-row.is-loading{background:#F2F5F8;pointer-events:none;transform:none}
.lpc-chat-conversation.is-loading::after,.lpc-chat-group-row.is-loading::after{content:"";position:absolute;right:13px;top:50%;width:15px;height:15px;margin-top:-7.5px;border:2px solid #CDD7E2;border-top-color:#0E2D7B;border-radius:50%;animation:lpc-chat-spin .65s linear infinite}
.lpc-chat-conversation.is-loading .lpc-chat-conversation-bottom b{display:none}
.lpc-chat-avatar-wrap{position:relative;display:inline-grid;flex:0 0 auto}
.lpc-chat-avatar-wrap img{display:block;width:50px;height:50px;border:1px solid rgba(18,50,85,.06);border-radius:50%;object-fit:cover;background:#E9EEF4}
.lpc-chat-presence-dot{position:absolute;right:0;bottom:1px;width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:#ADB8C4;box-shadow:0 0 0 1px rgba(17,44,80,.04)}
.lpc-chat-presence-dot.is-online{background:#2DA66F}
.lpc-chat-conversation-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:5px}
.lpc-chat-conversation-top,.lpc-chat-conversation-bottom{display:flex;width:100%;min-width:0;align-items:center;justify-content:space-between;gap:8px}
.lpc-chat-conversation-top strong{min-width:0;overflow:hidden;color:#15365E;font-size:14px;font-weight:600;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-conversation-top time{flex:0 0 auto;color:#8997A7;font-size:10px;font-weight:500;line-height:1.2}
.lpc-chat-conversation-bottom small{min-width:0;overflow:hidden;color:#6F8196;font-size:11.5px;font-weight:400;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-conversation.is-active .lpc-chat-conversation-bottom small{color:#5D7188}
.lpc-chat-conversation-bottom b{display:grid;min-width:20px;height:20px;padding:0 5px;place-items:center;border-radius:999px;background:#0E2D7B;color:#fff;font-size:9.5px;font-weight:700;line-height:1}
.lpc-chat-conversation-bottom b[hidden]{display:none}
.lpc-chat-list-empty{display:flex;min-height:280px;align-items:center;justify-content:center;flex-direction:column;padding:30px 20px;color:#708196;text-align:center}
.lpc-chat-list-empty>span{display:grid;width:58px;height:58px;margin-bottom:13px;place-items:center;border:1px solid #DDE7F1;border-radius:18px;background:#F0F5FA;color:#214979}
.lpc-chat-list-empty>span svg{width:26px;height:26px}
.lpc-chat-list-empty strong{color:#17395F;font-size:14px;font-weight:600}
.lpc-chat-list-empty p{max-width:250px;margin:7px 0 15px;font-size:12px;line-height:1.55}

/* Thread header */
.lpc-chat-thread-panel{position:relative;display:flex;width:100%;min-width:0;min-height:0;flex-direction:column;background:#fff}
.lpc-chat-thread-head{position:relative;z-index:8;display:flex;width:100%;min-height:76px;align-items:center;gap:11px;padding:11px 16px 11px 18px;border-bottom:1px solid var(--lpc-chat-line);background:rgba(255,255,255,.97);box-shadow:0 2px 10px rgba(18,45,77,.025);backdrop-filter:blur(12px)}
.lpc-chat-mobile-back{display:none}
.lpc-chat-person{display:flex;min-width:0;flex:1;align-items:center;gap:11px;color:inherit;text-decoration:none}
.lpc-chat-person .lpc-chat-avatar-wrap img{width:48px;height:48px}
.lpc-chat-person>span:last-child{display:flex;min-width:0;flex-direction:column;gap:3px}
.lpc-chat-person strong{overflow:hidden;color:#14365E;font-size:15px;font-weight:600;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-person small{color:#708299;font-size:11px;font-weight:500;line-height:1.2}
.lpc-chat-thread-actions{position:relative;z-index:12;display:flex;flex:0 0 auto;align-items:center;gap:4px}
.lpc-app .lpc-chat-head-action{position:relative;display:grid;width:40px;height:40px;place-items:center;border:1px solid #E0E7EE;border-radius:12px;background:#F7F9FB;color:#496581;cursor:pointer;pointer-events:auto;touch-action:manipulation;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease}
.lpc-chat-head-action svg{width:19px;height:19px;pointer-events:none}
.lpc-app .lpc-chat-head-action:hover{border-color:#E7C88F;background:#FFF4E2;color:#704719;box-shadow:0 4px 12px rgba(68,46,20,.05)}.lpc-app .lpc-chat-head-action.is-active,.lpc-app .lpc-chat-head-action[aria-expanded="true"]{border-color:#0E2D7B;background:#0E2D7B;color:#fff;box-shadow:0 5px 14px rgba(14,45,123,.15)}
.lpc-app .lpc-chat-head-action:active{transform:scale(.96)}
.lpc-app .lpc-chat-head-action:disabled{opacity:.48;cursor:not-allowed;transform:none;box-shadow:none}
.lpc-chat-head-menu-wrap,.lpc-chat-message-menu-wrap{position:relative}
.lpc-chat-head-menu{position:absolute;right:0;top:46px;z-index:70;width:198px;padding:6px;border:1px solid #DCE5ED;border-radius:13px;background:#fff;box-shadow:0 16px 42px rgba(15,37,66,.16)}
.lpc-chat-head-menu[hidden],.lpc-chat-message-menu[hidden]{display:none}
.lpc-chat-head-menu a,.lpc-app .lpc-chat-head-menu button{display:flex;width:100%;min-height:38px;align-items:center;justify-content:flex-start;gap:9px;padding:8px 10px;border:0;border-radius:9px;background:transparent;color:#284563;font:inherit;font-size:12px;font-weight:600;text-decoration:none;cursor:pointer}
.lpc-chat-head-menu a:hover,.lpc-app .lpc-chat-head-menu button:hover{background:#F2F6F9;color:#0E2D7B}
.lpc-chat-head-menu svg{width:17px;height:17px}

/* Message canvas */

.lpc-chat-draft-intro{display:grid;max-width:430px;justify-items:center;align-self:center;margin:auto;padding:34px 26px;color:#6F8194;text-align:center}
.lpc-chat-draft-intro>span{display:grid;width:52px;height:52px;margin-bottom:12px;place-items:center;border:1px solid #DCE5ED;border-radius:16px;background:#F5F8FB;color:#0E2D7B}
.lpc-chat-draft-intro>span svg{width:23px;height:23px}
.lpc-chat-draft-intro strong{color:#173A60;font-size:15px;font-weight:650;line-height:1.35}
.lpc-chat-draft-intro p{max-width:330px;margin:6px 0 0;color:#7C8B9C;font-size:11.5px;line-height:1.55}

.lpc-chat-history{position:relative;min-height:0;flex:1;overflow-y:auto;padding:20px 24px 14px;background:#F7F9FC;overscroll-behavior-y:auto;scrollbar-width:thin;scrollbar-color:#CBD5E0 transparent}
.lpc-chat-message-list{display:flex;width:min(100%,900px);min-height:100%;justify-content:flex-end;flex-direction:column;gap:7px;margin:0 auto}
.lpc-app .lpc-chat-load-older{align-self:center;margin:0 auto 14px;padding:7px 12px;border:1px solid #D7E1EB;border-radius:999px;background:#fff;color:#49637E;font:inherit;font-size:10.5px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px rgba(17,42,72,.035)}
.lpc-app .lpc-chat-load-older:hover{border-color:#C2D0DD;background:#FDFEFF;color:#173B69}
.lpc-chat-load-older[hidden]{display:none}

/* Message bubbles */
.lpc-chat-message{position:relative;display:flex;max-width:min(72%,610px);flex-direction:column;margin:1px 0;animation:lpc-chat-message-in .2s ease both}
.lpc-chat-message.is-mine{align-self:flex-end;align-items:flex-end}
.lpc-chat-message.is-theirs{align-self:flex-start;align-items:flex-start}
.lpc-chat-bubble-wrap{position:relative;display:flex;max-width:100%;flex-direction:column}
.lpc-chat-message.is-mine .lpc-chat-bubble-wrap{align-items:flex-end}
.lpc-chat-message.is-theirs .lpc-chat-bubble-wrap{align-items:flex-start}
.lpc-chat-bubble{position:relative;max-width:100%;overflow:hidden;border:1px solid #DCE5ED;border-radius:18px 18px 18px 6px;background:#fff;color:#203A57;box-shadow:0 2px 7px rgba(14,35,61,.035)}
.lpc-chat-message.is-mine .lpc-chat-bubble{border-color:#0E2D7B;border-radius:18px 18px 6px 18px;background:#0E2D7B;color:#fff;box-shadow:0 3px 9px rgba(14,45,123,.13)}
.lpc-chat-bubble>p{margin:0;padding:10px 13px;font-size:13.5px;font-weight:400;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.lpc-chat-bubble .lpc-chat-deleted-copy{color:#8996A5;font-style:italic}
.lpc-chat-message.is-mine .lpc-chat-bubble .lpc-chat-deleted-copy{color:rgba(255,255,255,.8)}
.lpc-chat-message.is-deleted .lpc-chat-bubble{opacity:.72}

/* Reply preview */
.lpc-app .lpc-chat-reply-preview{display:flex;width:min(100%,430px);max-width:430px;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:2px;margin:0 4px 5px;padding:7px 10px;border:1px solid #DEE6EE;border-left:3px solid #7B96B4;border-radius:10px;background:#F1F5F8;color:#526B84;text-align:left;cursor:pointer}
.lpc-chat-message.is-mine .lpc-chat-reply-preview{border-color:#D7E1EC;border-left-color:#0E2D7B;background:#EDF3FA}
.lpc-chat-reply-preview strong{max-width:100%;overflow:hidden;color:#1F4B78;font-size:10.5px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-reply-preview span{max-width:100%;overflow:hidden;color:#60758A;font-size:10.5px;font-weight:400;text-overflow:ellipsis;white-space:nowrap}

/* Media */
.lpc-chat-media-grid{display:grid;width:min(420px,100%);max-width:420px;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;padding:3px}
.lpc-chat-media-grid.is-single{grid-template-columns:minmax(0,1fr)}
.lpc-chat-media-grid a,.lpc-chat-media-grid>button,.lpc-chat-media-grid>.lpc-media-open-wrap,.lpc-chat-media-grid video{display:block;min-width:0;overflow:hidden;border-radius:14px;background:#DCE4EB}
.lpc-app .lpc-chat-media-open{width:100%;margin:0;padding:0;border:0;background:#DCE4EB;cursor:zoom-in}
.lpc-chat-media-grid img,.lpc-chat-media-grid video{display:block;width:100%;height:auto;max-height:320px;object-fit:contain;object-position:center;background:#071C42}
.lpc-chat-video-wrap{width:100%}

/* Metadata no longer collides with reactions. */
.lpc-chat-message footer{display:flex;align-items:center;gap:5px;margin:4px 7px 0;color:#8291A3;font-size:9.5px;font-weight:500;line-height:1.2}
.lpc-chat-message.is-mine footer{justify-content:flex-end}

/* Message actions */
.lpc-chat-message-tools{position:absolute;top:50%;display:flex;align-items:center;gap:3px;opacity:0;pointer-events:none;transform:translateY(-50%);transition:opacity .15s ease}
.lpc-chat-message.is-mine .lpc-chat-message-tools{right:calc(100% + 7px)}
.lpc-chat-message.is-theirs .lpc-chat-message-tools{left:calc(100% + 7px)}
.lpc-chat-message:hover .lpc-chat-message-tools,.lpc-chat-message:focus-within .lpc-chat-message-tools{opacity:1;pointer-events:auto}
.lpc-app .lpc-chat-message-tools>button,.lpc-app .lpc-chat-message-menu-wrap>button{display:grid;width:30px;height:30px;place-items:center;border:1px solid #D9E3EC;border-radius:9px;background:#fff;color:#587087;font:inherit;font-size:13px;cursor:pointer;box-shadow:0 3px 10px rgba(17,41,70,.07)}
.lpc-chat-message-tools svg{width:14px;height:14px}
.lpc-app .lpc-chat-message-tools button:hover{border-color:#CBD8E5;background:#F3F7FA;color:#0E2D7B}
.lpc-chat-message-menu{position:absolute;z-index:80;width:194px;padding:6px;border:1px solid #DCE5ED;border-radius:13px;background:#fff;box-shadow:0 16px 40px rgba(16,38,66,.17)}
.lpc-chat-message.is-mine .lpc-chat-message-menu{right:0;bottom:36px}
.lpc-chat-message.is-theirs .lpc-chat-message-menu{left:0;bottom:36px}
.lpc-app .lpc-chat-message-menu>button{display:flex;width:100%;min-height:36px;align-items:center;justify-content:flex-start;gap:8px;padding:8px 9px;border:0;border-radius:8px;background:transparent;color:#314C68;font:inherit;font-size:11.5px;font-weight:600;cursor:pointer}
.lpc-app .lpc-chat-message-menu>button:hover{background:#F2F6F9;color:#0E2D7B}
.lpc-app .lpc-chat-message-menu>button.is-danger{color:#B43B42}
.lpc-app .lpc-chat-message-menu>button.is-danger:hover{background:#FFF0F1;color:#9D2E35}
.lpc-chat-message-menu svg{width:15px;height:15px}
.lpc-chat-reaction-row{display:flex;gap:2px;margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid #EDF1F4}
.lpc-app .lpc-chat-reaction-row button{display:grid;width:31px;height:31px;place-items:center;border:0;border-radius:9px;background:transparent;font-size:17px;cursor:pointer;transition:background .15s ease,transform .15s ease}
.lpc-app .lpc-chat-reaction-row button:hover{background:#EEF3F7;transform:translateY(-1px)}

/* Reaction pill participates in layout instead of overlapping time/seen metadata. */
.lpc-chat-reaction-summary{position:relative;z-index:3;display:flex;width:max-content;max-width:100%;align-items:center;gap:2px;margin:-4px 8px 0 auto;padding:2px 5px;border:1px solid #DCE5ED;border-radius:999px;background:#fff;box-shadow:0 2px 8px rgba(18,42,70,.08)}
.lpc-chat-message.is-theirs .lpc-chat-reaction-summary{margin:-4px auto 0 8px}
.lpc-chat-reaction-summary[hidden]{display:none}
.lpc-app .lpc-chat-reaction-summary button{display:flex;align-items:center;gap:2px;padding:0 2px;border:0;background:transparent;font:inherit;font-size:12px;cursor:pointer}
.lpc-chat-reaction-summary button span{color:#67798C;font-size:9px;font-weight:600}
.lpc-chat-reaction-summary button.is-active{filter:saturate(1.2)}
.lpc-chat-message.is-highlighted .lpc-chat-bubble{box-shadow:0 0 0 3px rgba(248,184,97,.4)}

/* Typing */
.lpc-chat-typing{display:flex;width:max-content;align-items:center;gap:3px;margin:10px auto 3px max(0px,calc((100% - 900px)/2));padding:8px 11px;border:1px solid #DFE6ED;border-radius:14px;background:#fff;color:#728196;box-shadow:0 2px 7px rgba(14,35,61,.03)}
.lpc-chat-typing[hidden]{display:none}
.lpc-chat-typing>span{width:5px;height:5px;border-radius:50%;background:#8190A0;animation:lpc-chat-dot 1s infinite ease-in-out}
.lpc-chat-typing>span:nth-child(2){animation-delay:.14s}
.lpc-chat-typing>span:nth-child(3){animation-delay:.28s}
.lpc-chat-typing small{margin-left:4px;font-size:9.5px}

/* Reply / attachment state above composer */
.lpc-chat-reply-bar{display:flex;align-items:center;gap:10px;padding:9px 15px;border-top:1px solid #E5EBF1;background:#F8FAFC}
.lpc-chat-reply-bar[hidden]{display:none}
.lpc-chat-reply-bar>span{display:grid;width:31px;height:31px;place-items:center;border-radius:10px;background:#EAF1F8;color:#214A79}
.lpc-chat-reply-bar>span svg{width:15px;height:15px}
.lpc-chat-reply-bar>div{min-width:0;flex:1}
.lpc-chat-reply-bar small{display:block;color:#8190A0;font-size:9px}
.lpc-chat-reply-bar strong{display:inline;color:#214A78;font-size:11px;font-weight:600}
.lpc-chat-reply-bar p{display:inline;margin:0 0 0 5px;color:#697B8F;font-size:10.5px}
.lpc-app .lpc-chat-reply-bar>button{display:grid;width:31px;height:31px;place-items:center;border:0;border-radius:9px;background:transparent;color:#63768B;cursor:pointer}
.lpc-app .lpc-chat-reply-bar>button:hover{background:#E9EEF3;color:#173C6B}
.lpc-chat-reply-bar>button svg{width:16px;height:16px}

.lpc-chat-attachment-preview{display:flex;gap:8px;overflow-x:auto;padding:9px 15px 5px;border-top:1px solid #EDF1F4;background:#fff}
.lpc-chat-attachment-preview[hidden]{display:none}
.lpc-chat-attachment-item{position:relative;width:70px;height:70px;flex:0 0 70px;overflow:hidden;border:1px solid #D7E1EA;border-radius:12px;background:#EEF2F5;box-shadow:0 2px 7px rgba(17,42,72,.04)}
.lpc-chat-attachment-item img,.lpc-chat-attachment-item video{display:block;width:100%;height:100%;object-fit:cover}
.lpc-app .lpc-chat-attachment-item>button{position:absolute;right:4px;top:4px;display:grid;width:21px;height:21px;place-items:center;border:0;border-radius:50%;background:rgba(20,37,56,.84);color:#fff;cursor:pointer}
.lpc-chat-attachment-item>button svg{width:11px;height:11px}
.lpc-chat-upload-progress{padding:6px 15px;background:#fff}
.lpc-chat-upload-progress[hidden]{display:none}
.lpc-chat-upload-progress>span{display:block;height:4px;overflow:hidden;border-radius:999px;background:#E7ECF1}
.lpc-chat-upload-progress i{display:block;width:0;height:100%;border-radius:inherit;background:#0E2D7B;transition:width .12s linear}
.lpc-chat-upload-progress>div{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:4px}
.lpc-chat-upload-progress small{display:block;color:#738397;font-size:9.5px}
.lpc-app .lpc-chat-upload-progress button{margin:0;padding:4px 7px;border:1px solid #D5E0EA;border-radius:7px;background:#fff;color:#0E2D7B;font:600 9.5px/1.2 inherit;cursor:pointer}
.lpc-app .lpc-chat-upload-progress button:hover,.lpc-app .lpc-chat-upload-progress button:focus-visible{border-color:#F8B861;background:#FFF6E8;color:#0E2D7B;outline:0}

.lpc-chat-restricted{display:flex;align-items:center;justify-content:center;gap:8px;padding:13px 15px;border-top:1px solid #E9EDF2;background:#F7F8FA;color:#6D7C8D;font-size:11.5px;text-align:center}
.lpc-chat-restricted svg{width:17px;height:17px;color:#9A5960}

/* Composer */
.lpc-chat-composer{position:relative;display:flex;width:100%;align-items:flex-end;gap:8px;padding:11px 14px 13px;border-top:1px solid #E2E9F0;background:#fff;box-shadow:0 -5px 18px rgba(17,43,72,.025)}
.lpc-chat-composer[hidden]{display:none}
.lpc-app .lpc-chat-composer-icon,.lpc-app .lpc-chat-send{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;border:1px solid #D8E2EC;border-radius:13px;background:#F4F7FA;color:#355575;cursor:pointer;transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease,opacity .16s ease}
.lpc-app .lpc-chat-composer-icon{border-color:#F0D29D;background:#FFF5E5;color:#75491D;box-shadow:0 3px 10px rgba(112,71,25,.06)}
.lpc-app .lpc-chat-composer-icon:hover{border-color:#F8B861;background:#F8B861;color:#17314F;box-shadow:0 5px 14px rgba(111,76,31,.12)}
.lpc-app .lpc-chat-composer-icon:active{border-color:#0E2D7B;background:#0E2D7B;color:#fff;transform:scale(.96)}
.lpc-app .lpc-chat-send{border-color:#E7B65D;background:#F8B861;color:#17314F;box-shadow:0 5px 13px rgba(84,58,24,.12)}
.lpc-app .lpc-chat-send:hover{border-color:#0E2D7B;background:#0E2D7B;color:#fff;transform:translateY(-1px)}
.lpc-app .lpc-chat-send:disabled,.lpc-app .lpc-chat-composer-icon:disabled{opacity:.46;cursor:not-allowed;box-shadow:none;transform:none}
.lpc-chat-composer-icon svg,.lpc-chat-send svg{width:18px;height:18px}
.lpc-chat-input-wrap{position:relative;display:flex;min-width:0;flex:1;align-items:flex-end;border:1px solid #D6E0EA;border-radius:15px;background:#F8FAFC;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.lpc-chat-input-wrap:focus-within{border-color:#91A9C2;background:#fff;box-shadow:0 0 0 3px rgba(14,45,123,.07)}
.lpc-app .lpc-chat-input-wrap textarea{display:block;width:100%;min-width:0;min-height:44px;max-height:132px;margin:0;padding:11px 45px 10px 13px;resize:none;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;box-shadow:none}
.lpc-chat-input-wrap textarea::placeholder{color:#8C99A8;opacity:1}
.lpc-chat-char-count{position:absolute;right:39px;bottom:8px;padding:2px 4px;border-radius:5px;background:rgba(248,250,252,.94);color:#8593A3;font-size:8.5px;font-weight:600;line-height:1;pointer-events:none}
.lpc-chat-char-count[hidden]{display:none}
.lpc-chat-char-count.is-near-limit{color:#A04B55}
.lpc-app .lpc-chat-emoji-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;cursor:pointer}
.lpc-app .lpc-chat-emoji-button:hover{background:#E9EFF4;color:#173F70}
.lpc-chat-emoji-button svg{width:17px;height:17px}
.lpc-chat-emoji-menu{position:absolute;right:0;bottom:48px;z-index:90;display:grid;width:190px;grid-template-columns:repeat(6,1fr);gap:3px;padding:8px;border:1px solid #DCE5ED;border-radius:13px;background:#fff;box-shadow:0 16px 42px rgba(17,39,66,.16)}
.lpc-chat-emoji-menu[hidden]{display:none}
.lpc-app .lpc-chat-emoji-menu button{display:grid;height:29px;place-items:center;border:0;border-radius:8px;background:transparent;font-size:17px;cursor:pointer}
.lpc-app .lpc-chat-emoji-menu button:hover{background:#EFF3F7}

/* Empty thread */
.lpc-chat-thread-empty{display:flex;min-height:100%;align-items:center;justify-content:center;flex-direction:column;padding:44px 28px;background:#F8FAFC;color:#718297;text-align:center}
.lpc-chat-empty-mark{display:grid;width:78px;height:78px;margin-bottom:18px;place-items:center;border:1px solid #DDE7F0;border-radius:24px;background:#fff;color:#214A79;box-shadow:0 8px 26px rgba(18,45,77,.06)}
.lpc-chat-empty-mark svg{width:32px;height:32px}
.lpc-chat-thread-empty h2{margin:0;color:#17395F;font-size:23px;font-weight:600;letter-spacing:-.015em}
.lpc-chat-thread-empty p{max-width:410px;margin:9px 0 19px;font-size:12.5px;line-height:1.6}

/* New conversation dialog */
.lpc-chat-new-dialog{position:fixed;inset:0;z-index:520;display:grid;place-items:center;padding:18px}
.lpc-chat-new-dialog[hidden]{display:none}
.lpc-app .lpc-chat-dialog-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(13,29,47,.48);backdrop-filter:blur(4px);cursor:default}
.lpc-chat-dialog-card{position:relative;z-index:1;width:min(490px,100%);max-height:min(650px,84dvh);overflow:hidden;border:1px solid rgba(255,255,255,.55);border-radius:20px;background:#fff;box-shadow:0 26px 76px rgba(12,30,52,.25)}
.lpc-chat-dialog-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 20px 13px}
.lpc-chat-dialog-card h2{margin:3px 0 0;color:#15365E;font-size:21px;font-weight:600;letter-spacing:-.015em}
.lpc-app .lpc-chat-dialog-card>header>button{display:grid;width:36px;height:36px;place-items:center;border:0;border-radius:11px;background:#F0F4F7;color:#5D7288;cursor:pointer}
.lpc-app .lpc-chat-dialog-card>header>button:hover{background:#E6EDF3;color:#173D6B}
.lpc-chat-dialog-card>header>button svg{width:16px;height:16px}
.lpc-app .lpc-chat-new-search{margin:0 20px 13px}
.lpc-chat-user-results{max-height:410px;overflow-y:auto;padding:0 11px 14px;overscroll-behavior:contain}
.lpc-app .lpc-chat-user-result{display:flex;width:100%;min-width:0;max-width:none;min-height:64px;align-items:center;justify-content:flex-start;gap:11px;padding:9px 10px;border:1px solid transparent;border-radius:13px;background:#fff;color:#25435F;text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.lpc-app .lpc-chat-user-result:hover{border-color:#DEE7EF;background:#F4F7FA;transform:translateY(-1px)}
.lpc-app .lpc-chat-user-result:disabled{opacity:.6;cursor:wait;transform:none}
.lpc-chat-user-avatar{position:relative;display:grid;width:46px;height:46px;flex:0 0 46px}
.lpc-chat-user-avatar img{display:block;width:46px;height:46px;border-radius:50%;object-fit:cover;background:#E9EEF4}
.lpc-chat-user-avatar .lpc-chat-presence-dot{right:-1px;bottom:0}
.lpc-chat-user-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:3px}
.lpc-chat-user-copy strong{overflow:hidden;color:#1B3D60;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-user-copy>span{display:flex;min-width:0;align-items:center;gap:6px}
.lpc-chat-user-copy small{min-width:0;overflow:hidden;color:#8090A1;font-size:10.5px;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-user-relation{flex:0 0 auto;padding:2px 6px;border-radius:999px;background:#EDF3F8;color:#486682;font-size:9px;font-weight:600}
.lpc-chat-user-action{display:flex;flex:0 0 auto;align-items:center;gap:4px;color:#466786}
.lpc-chat-user-action em{font-size:9.5px;font-style:normal;font-weight:600}
.lpc-chat-user-action svg{width:14px;height:14px}
.lpc-chat-user-hint{padding:30px 20px;color:#7B8A9B;font-size:11.5px;line-height:1.55;text-align:center}
.lpc-chat-user-hint.is-error{color:#9A5960}
.lpc-chat-user-loading{display:flex;min-height:68px;align-items:center;justify-content:center;gap:8px;padding:18px;color:#75869A;font-size:11.5px}
.lpc-chat-user-loading>span{width:14px;height:14px;border:2px solid #D4DEE7;border-top-color:#0E2D7B;border-radius:50%;animation:lpc-chat-spin .7s linear infinite}

/* Inline edit */
.lpc-chat-inline-edit{display:flex;min-width:260px;flex-direction:column;gap:8px;padding:8px}
.lpc-app .lpc-chat-inline-edit textarea{display:block;width:100%;min-height:76px;margin:0;padding:10px 11px;border:1px solid #CED9E4;border-radius:11px;background:#fff;color:#203B58;font-family:inherit;font-size:12px;font-weight:400;line-height:1.45;resize:vertical;outline:0;box-shadow:none}
.lpc-chat-inline-edit textarea:focus{border-color:#8EA6BF;box-shadow:0 0 0 3px rgba(14,45,123,.08)}
.lpc-chat-inline-edit-actions{display:flex;justify-content:flex-end;gap:6px}
.lpc-app .lpc-chat-inline-edit-actions button{padding:6px 9px;border:1px solid #D7E0E8;border-radius:8px;background:#fff;color:#47617C;font:inherit;font-size:10px;font-weight:600;cursor:pointer}
.lpc-app .lpc-chat-inline-edit-actions button[data-lpc-chat-edit-save]{border-color:#0E2D7B;background:#0E2D7B;color:#fff}

@keyframes lpc-chat-spin{to{transform:rotate(360deg)}}
@keyframes lpc-chat-message-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes lpc-chat-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-3px);opacity:1}}

@media (max-width:1180px){
    .lpc-chat-shell{grid-template-columns:minmax(220px,32%) minmax(0,1fr)}
    .lpc-chat-message{max-width:78%}
}

@media (max-width:1024px){
    .lpc-chat-shell{height:calc(100dvh - var(--lpc-header-height) - 26px);min-height:570px;grid-template-columns:300px minmax(0,1fr);border-radius:18px}
    .lpc-chat-list-head{padding:19px 16px 13px}
    .lpc-chat-list-head h1{font-size:26px}
    .lpc-chat-history{padding-left:18px;padding-right:18px}
}

@media (max-width:767px){
    .lpc-app[data-current-view="chat"] .lpc-main{padding:0}
    .lpc-chat-shell{display:block;width:100%;height:auto;min-height:0;max-height:none;flex:1 1 auto;overflow:hidden;border-width:1px 0;border-radius:0;box-shadow:none}
    .lpc-chat-list-panel,.lpc-chat-thread-panel{width:100%;height:100%;min-height:0;overflow:hidden}
    .lpc-chat-list-panel{border-right:0}
    .lpc-chat-thread-panel{display:none}
    .lpc-chat-shell.is-thread-open .lpc-chat-list-panel{display:none}
    .lpc-chat-shell.is-thread-open .lpc-chat-thread-panel{display:flex}
    .lpc-chat-list-head{padding:17px 14px 12px}
    .lpc-chat-list-head h1{font-size:25px}
    .lpc-app .lpc-chat-search-wrap{margin:0 12px 11px}
    .lpc-chat-search-people{margin:0 8px 9px}
    .lpc-chat-search-users{max-height:205px}
    .lpc-chat-kind-tabs{margin:0 10px 10px}
    .lpc-chat-list-scroll{padding-bottom:8px;overscroll-behavior-y:contain}
    .lpc-chat-conversation-list,.lpc-chat-group-list{padding:0 7px 7px}
    .lpc-chat-list-foot{display:none}
    .lpc-app .lpc-chat-conversation,.lpc-app .lpc-chat-group-row{min-height:68px;padding:9px}
    .lpc-chat-avatar-wrap img,.lpc-chat-group-avatar{width:48px;height:48px;flex-basis:48px}
    .lpc-app .lpc-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;cursor:pointer}
    .lpc-chat-mobile-back svg{width:17px;height:17px}
    .lpc-chat-thread-head{min-height:66px;padding:8px 9px}
    .lpc-chat-person .lpc-chat-avatar-wrap img{width:41px;height:41px}
    .lpc-chat-person strong{font-size:13.5px}
    .lpc-chat-head-action{width:36px;height:36px}
    .lpc-chat-history{padding:14px 11px 10px;overscroll-behavior-y:contain}
    .lpc-chat-message-list{width:100%;gap:6px}
    .lpc-chat-message{max-width:84%}
    .lpc-chat-bubble>p{padding:9px 11px;font-size:13px}
    .lpc-chat-message-tools{display:flex;opacity:1;pointer-events:auto}
    .lpc-chat-message-tools>button{display:none}
    .lpc-chat-message-menu-wrap{display:block}
    .lpc-chat-media-grid{max-width:310px}
    .lpc-chat-media-grid img,.lpc-chat-media-grid video{max-height:250px}
    .lpc-chat-typing{margin-left:0}
    .lpc-chat-composer{gap:6px;padding:9px 8px}
    .lpc-app .lpc-chat-composer-icon,.lpc-app .lpc-chat-send{width:40px;height:40px;flex-basis:40px;border-radius:12px}
    .lpc-app .lpc-chat-input-wrap textarea{min-height:40px;padding-top:9px;padding-bottom:8px;font-size:16px}
    .lpc-chat-dialog-card{align-self:end;width:100%;max-height:84dvh;border-radius:20px 20px 0 0}
    .lpc-chat-new-dialog{align-items:end;padding:0}
    .lpc-chat-dialog-card>header{padding:18px 16px 12px}
    .lpc-app .lpc-chat-new-search{margin:0 16px 12px}
    .lpc-app .lpc-chat-user-result{min-height:62px;padding:8px 9px}
    .lpc-chat-user-action em{display:none}
    .lpc-chat-head-menu{position:fixed;right:8px;top:70px}
    .admin-bar .lpc-chat-head-menu{top:116px}
}

@media (max-width:420px){
    .lpc-chat-thread-actions{gap:1px}
    .lpc-app .lpc-chat-head-action{width:33px;height:33px}
    .lpc-chat-message{max-width:88%}
    .lpc-chat-composer{gap:5px}
    .lpc-app .lpc-chat-composer-icon,.lpc-app .lpc-chat-send{width:38px;height:38px;flex-basis:38px;border-radius:11px}
    .lpc-chat-person{gap:8px}
}

@media (prefers-reduced-motion:reduce){
    .lpc-chat-message,.lpc-chat-typing>span{animation:none}
    .lpc-chat-new-button,.lpc-chat-send,.lpc-chat-conversation,.lpc-chat-group-row{transition:none}
}

@media (min-width:783px){
    .admin-bar .lpc-chat-shell{height:calc(100dvh - var(--lpc-header-height) - 66px)}
}

@media (max-width:782px){
    .admin-bar .lpc-chat-shell{height:calc(100dvh - var(--lpc-header-height) - 72px)}
}

@media (max-width:767px){
    .admin-bar .lpc-chat-shell{height:100%}
}

/* Chat refinement: drafts, message search, pins, details and resilient sending */
.lpc-chat-conversation.has-draft .lpc-chat-conversation-bottom small{color:#B96F22;font-weight:600}

.lpc-chat-thread-search{position:relative;z-index:7;display:flex;flex-direction:column;gap:7px;padding:10px 14px;border-bottom:1px solid #E1E8EF;background:#FBFCFE}
.lpc-chat-thread-search[hidden]{display:none}
.lpc-chat-thread-search-field{display:flex;min-width:0;align-items:center;gap:8px;border:1px solid #D4DEE8;border-radius:12px;background:#fff;padding:0 9px;box-shadow:0 2px 8px rgba(20,45,74,.035)}
.lpc-chat-thread-search-field>svg{width:17px;height:17px;flex:0 0 17px;color:#6D8195}
.lpc-app .lpc-chat-thread-search-field input{display:block;width:100%;min-width:0;height:38px;margin:0;padding:0;border:0;outline:0;background:transparent;color:#203E5C;font-family:inherit;font-size:12.5px;line-height:38px;box-shadow:none}
.lpc-chat-thread-search-field input::placeholder{color:#8B99A8}
.lpc-app .lpc-chat-thread-search-field>button{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;border:0;border-radius:8px;background:transparent;color:#6B7D90;cursor:pointer}
.lpc-app .lpc-chat-thread-search-field>button:hover{background:#EDF2F6;color:#173E6B}
.lpc-chat-thread-search-field>button svg{width:14px;height:14px}
.lpc-chat-search-summary{color:#78899B;font-size:10.5px;line-height:1.35}
.lpc-chat-search-results{display:flex;max-height:250px;overflow-y:auto;flex-direction:column;gap:4px;padding:2px 0;overscroll-behavior:contain}
.lpc-chat-search-results[hidden]{display:none}
.lpc-app .lpc-chat-search-result{display:block;width:100%;padding:9px 10px;border:1px solid transparent;border-radius:10px;background:#fff;color:#27445F;text-align:left;cursor:pointer}
.lpc-app .lpc-chat-search-result:hover{border-color:#DCE6EF;background:#F4F7FA}
.lpc-chat-search-result>span{display:flex;align-items:center;justify-content:space-between;gap:10px}
.lpc-chat-search-result strong{font-size:11px;font-weight:600}
.lpc-chat-search-result time{color:#8A98A7;font-size:9px}
.lpc-chat-search-result p{margin:3px 0 0;color:#607386;font-size:10.5px;line-height:1.4}
.lpc-chat-search-empty{padding:18px;color:#7F8E9D;font-size:11px;text-align:center}
.lpc-app .lpc-chat-back-latest{display:flex;width:max-content;align-items:center;gap:6px;margin-top:1px;padding:6px 9px;border:1px solid #D5DFE8;border-radius:9px;background:#fff;color:#345575;font:inherit;font-size:10px;font-weight:600;cursor:pointer}
.lpc-app .lpc-chat-back-latest[hidden]{display:none}
.lpc-chat-back-latest svg{width:14px;height:14px}

.lpc-chat-pin-banner{display:flex;z-index:6;align-items:center;gap:8px;padding:7px 14px;border-bottom:1px solid #E5EBF1;background:#FFF9F1;color:#805824}
.lpc-chat-pin-banner[hidden]{display:none}
.lpc-chat-pin-banner>svg{width:15px;height:15px;flex:0 0 15px}
.lpc-app .lpc-chat-pin-banner>button{display:flex;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:inherit;font:inherit;font-size:10.5px;cursor:pointer}
.lpc-chat-pin-banner strong{font-size:11px}

.lpc-chat-unread-separator{display:flex;width:100%;align-items:center;gap:10px;margin:10px 0 7px;color:#1D4B7A}
.lpc-chat-unread-separator::before,.lpc-chat-unread-separator::after{content:"";height:1px;flex:1;background:#CAD9E7}
.lpc-chat-unread-separator span{padding:4px 8px;border-radius:999px;background:#E9F1F8;color:#1C4C7A;font-size:9px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}
.lpc-app .lpc-chat-new-messages{position:sticky;z-index:20;left:50%;bottom:10px;display:flex;width:max-content;align-items:center;gap:6px;margin:10px auto 0;padding:8px 11px;border:1px solid #D5E1EC;border-radius:999px;background:#fff;color:#17426F;font:inherit;font-size:10.5px;font-weight:700;cursor:pointer;box-shadow:0 7px 22px rgba(15,42,72,.14);transform:translateX(0)}
.lpc-app .lpc-chat-new-messages[hidden]{display:none}
.lpc-chat-new-messages svg{width:14px;height:14px}

.lpc-chat-message.is-pending{opacity:.86}
.lpc-chat-message.is-pending .lpc-chat-bubble{background:#234D84}
.lpc-chat-message.is-failed{opacity:1}
.lpc-chat-message.is-failed .lpc-chat-bubble{box-shadow:0 0 0 1px rgba(185,62,69,.35)}
.lpc-chat-pending-status{display:inline-flex;align-items:center;gap:5px}
.lpc-chat-pending-status .is-failed{color:#B43B42;font-weight:700}
.lpc-app .lpc-chat-pending-status button{padding:0;border:0;background:transparent;color:#2B5685;font:inherit;font-size:9px;font-weight:700;text-decoration:underline;cursor:pointer}
.lpc-chat-pinned-meta{display:inline-flex;align-items:center;gap:3px;color:#9A6A2F}
.lpc-chat-pinned-meta svg{width:10px;height:10px}
.lpc-chat-message.is-pinned .lpc-chat-bubble-wrap::after{content:"";position:absolute;right:2px;top:2px;width:5px;height:5px;border-radius:50%;background:#F0B35C;box-shadow:0 0 0 2px #fff}
.lpc-chat-message.is-theirs.is-pinned .lpc-chat-bubble-wrap::after{right:auto;left:2px}

.lpc-chat-file-card{display:flex;min-width:220px;max-width:320px;align-items:center;gap:10px;padding:10px 11px;border:1px solid rgba(255,255,255,.28);border-radius:12px;background:rgba(255,255,255,.12);color:inherit;text-decoration:none}
.lpc-chat-message.is-theirs .lpc-chat-file-card{border-color:#D5E0EA;background:#F5F8FA;color:#294864}
.lpc-chat-file-card>svg{width:25px;height:25px;flex:0 0 25px}
.lpc-chat-file-card>span{display:flex;min-width:0;flex-direction:column;gap:2px}
.lpc-chat-file-card strong{overflow:hidden;font-size:11px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-file-card small{font-size:9px;opacity:.78}
.lpc-chat-attachment-item.is-file{width:170px;flex-basis:170px}
.lpc-chat-attachment-file{display:flex;width:100%;height:100%;align-items:center;gap:8px;padding:10px;background:#F4F7FA;color:#294966}
.lpc-chat-attachment-file svg{width:24px;height:24px;flex:0 0 24px}
.lpc-chat-attachment-file span{min-width:0}
.lpc-chat-attachment-file strong,.lpc-chat-attachment-file small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-attachment-file strong{font-size:10px}
.lpc-chat-attachment-file small{margin-top:2px;color:#75869A;font-size:8.5px}

.lpc-chat-info-panel{position:absolute;z-index:95;right:0;top:0;display:flex;width:min(370px,92%);height:100%;min-height:0;flex-direction:column;border-left:1px solid #DCE5ED;background:#fff;box-shadow:-18px 0 42px rgba(14,35,61,.12);animation:lpc-chat-info-in .18s ease-out}
.lpc-chat-info-panel[hidden]{display:none}
.lpc-chat-info-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 17px 13px;border-bottom:1px solid #E7ECF1}
.lpc-chat-info-panel h2{margin:3px 0 0;color:#153B64;font-size:20px;font-weight:650}
.lpc-app .lpc-chat-info-panel>header>button{display:grid;width:34px;height:34px;place-items:center;border:0;border-radius:10px;background:#F1F5F8;color:#60768C;cursor:pointer}
.lpc-chat-info-panel>header>button svg{width:15px;height:15px}
.lpc-chat-info-profile{display:flex;align-items:center;gap:12px;padding:15px 17px}
.lpc-chat-info-profile img{width:58px;height:58px;border-radius:50%;object-fit:cover;background:#E9EEF3}
.lpc-chat-info-profile div{display:flex;min-width:0;flex-direction:column;gap:3px}
.lpc-chat-info-profile strong{overflow:hidden;color:#193E66;font-size:14px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-info-profile small{color:#7B8C9D;font-size:10.5px}
.lpc-chat-info-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:0 12px 12px;border-bottom:1px solid #E9EEF3}
.lpc-app .lpc-chat-info-tabs button{display:flex;min-width:0;min-height:49px;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:5px 3px;border:1px solid transparent;border-radius:10px;background:transparent;color:#718397;font:inherit;font-size:9px;font-weight:600;cursor:pointer}
.lpc-app .lpc-chat-info-tabs button:hover{background:#F2F6F9;color:#234A73}
.lpc-app .lpc-chat-info-tabs button.is-active{border-color:#D6E2EC;background:#EDF3F8;color:#0E2D7B}
.lpc-chat-info-tabs svg{width:16px;height:16px}
.lpc-chat-info-content{min-height:0;flex:1;overflow-y:auto;padding:12px;overscroll-behavior:contain}
.lpc-chat-info-loading{display:flex;min-height:120px;align-items:center;justify-content:center;gap:8px;color:#788A9C;font-size:11px}
.lpc-chat-info-loading span{width:14px;height:14px;border:2px solid #D2DCE6;border-top-color:#0E2D7B;border-radius:50%;animation:lpc-chat-spin .7s linear infinite}
.lpc-chat-info-empty{padding:32px 16px;color:#8190A0;font-size:11px;line-height:1.5;text-align:center}
.lpc-chat-info-pins{display:flex;flex-direction:column;gap:7px}
.lpc-chat-info-pins article{position:relative;display:flex;align-items:flex-start;border:1px solid #E0E8EF;border-radius:12px;background:#FAFBFD}
.lpc-app .lpc-chat-info-pin-copy{display:flex;min-width:0;flex:1;align-items:flex-start;gap:8px;padding:10px 34px 10px 10px;border:0;background:transparent;color:#294760;text-align:left;cursor:pointer}
.lpc-chat-info-pin-copy>span{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border-radius:8px;background:#FFF2DF;color:#936226}
.lpc-chat-info-pin-copy>span svg{width:13px;height:13px}
.lpc-chat-info-pin-copy>div{min-width:0}
.lpc-chat-info-pin-copy strong{font-size:10px;font-weight:650}
.lpc-chat-info-pin-copy p{margin:3px 0;color:#5E7184;font-size:10.5px;line-height:1.4}
.lpc-chat-info-pin-copy small{color:#92A0AE;font-size:8.5px}
.lpc-app .lpc-chat-info-unpin{position:absolute;right:6px;top:6px;display:grid;width:25px;height:25px;place-items:center;border:0;border-radius:8px;background:transparent;color:#76899C;cursor:pointer}
.lpc-app .lpc-chat-info-unpin:hover{background:#EEF2F5;color:#9C3D45}
.lpc-chat-info-unpin svg{width:12px;height:12px}
.lpc-chat-info-media{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.lpc-chat-info-media a{position:relative;display:block;aspect-ratio:1;overflow:hidden;border-radius:9px;background:#E9EEF3}
.lpc-chat-info-media img,.lpc-chat-info-media video{display:block;width:100%;height:100%;object-fit:cover}
.lpc-chat-info-media a span{position:absolute;left:5px;bottom:5px;padding:2px 5px;border-radius:5px;background:rgba(16,36,58,.72);color:#fff;font-size:8px}
.lpc-chat-info-files,.lpc-chat-info-links{display:flex;flex-direction:column;gap:6px}
.lpc-chat-info-files>a,.lpc-chat-info-links>a{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #E0E7EE;border-radius:11px;background:#FBFCFD;color:#294760;text-decoration:none}
.lpc-chat-info-files>a:hover,.lpc-chat-info-links>a:hover{border-color:#CDDCE8;background:#F3F7FA}
.lpc-chat-info-files>a>svg,.lpc-chat-info-links>a>span{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;border-radius:9px;background:#EDF3F8;color:#24507C}
.lpc-chat-info-files>a>svg{padding:6px}
.lpc-chat-info-links>a>span svg{width:15px;height:15px}
.lpc-chat-info-files>a>span,.lpc-chat-info-links>a>div{min-width:0}
.lpc-chat-info-files strong,.lpc-chat-info-links strong{display:block;overflow:hidden;font-size:10.5px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.lpc-chat-info-files small,.lpc-chat-info-links small{display:block;margin-top:2px;color:#8A99A8;font-size:8.5px}
.lpc-chat-info-links p{margin:3px 0;color:#65778A;font-size:9.5px;line-height:1.35}
.lpc-chat-info-backdrop{display:none}
.lpc-chat-info-backdrop[hidden]{display:none}

@keyframes lpc-chat-info-in{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:none}}

@media (max-width:767px){
    .lpc-chat-thread-actions{gap:2px}
    .lpc-chat-thread-actions .lpc-chat-head-action{width:34px;height:34px}
    .lpc-chat-thread-search{padding:8px 9px}
    .lpc-chat-search-results{max-height:205px}
    .lpc-chat-pin-banner{padding:6px 10px}
    .lpc-app .lpc-chat-new-messages{bottom:7px}
    .lpc-chat-info-panel{position:fixed;z-index:620;inset:auto 0 0 0;width:100%;height:min(72dvh,680px);border-left:0;border-top:1px solid #D8E1E9;border-radius:20px 20px 0 0;box-shadow:0 -20px 58px rgba(13,31,51,.2);animation:lpc-chat-info-mobile-in .2s ease-out}
    .lpc-chat-info-backdrop{position:fixed;z-index:610;inset:0;display:block;border:0;background:rgba(13,30,49,.36);backdrop-filter:blur(2px)}
    .lpc-chat-info-backdrop[hidden]{display:none}
    .lpc-chat-info-panel>header{padding:15px 14px 10px}
    .lpc-chat-info-profile{padding:12px 14px}
    .lpc-chat-info-tabs{padding:0 9px 9px}
    .lpc-chat-info-content{padding:9px 9px calc(12px + env(safe-area-inset-bottom))}
    .lpc-chat-info-media{grid-template-columns:repeat(3,minmax(0,1fr))}
    .lpc-chat-file-card{min-width:190px;max-width:270px}
}

@keyframes lpc-chat-info-mobile-in{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
