/* LegalHub compact messaging workspace — scoped to the authenticated private inbox. */
.lh-chat-app{display:grid;grid-template-columns:minmax(245px,310px) minmax(0,1fr);height:min(720px,calc(100vh - 190px));min-height:440px;max-height:calc(100vh - 140px);background:#fff;border:1px solid #dfe6ee;border-radius:14px;overflow:hidden;box-shadow:0 8px 28px rgba(18,38,63,.055);color:#172b43;font:inherit}.lh-chat-list{display:flex;min-width:0;flex-direction:column;border-right:1px solid #e5ebf2;background:#fbfcfe}.lh-chat-list-head{padding:16px 16px 12px;border-bottom:1px solid #e7edf3}.lh-chat-list-head>span{font-size:10px;font-weight:800;letter-spacing:.13em;color:#2f6fed}.lh-chat-list-head h2{font-size:21px;line-height:1.2;margin:5px 0;color:#172b43}.lh-chat-list-head p{font-size:12px;color:#6b7c90;margin:0 0 12px}.lh-chat-search{width:100%;box-sizing:border-box;border:1px solid #dbe3ed!important;background:#fff!important;border-radius:8px!important;padding:9px 10px!important;font-size:12px!important;min-height:36px}.lh-chat-conversations{overflow:auto;min-height:0;flex:1}.lh-chat-conversation{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:12px 12px;border:0;border-bottom:1px solid #edf1f5;border-radius:0;background:transparent;color:#172b43;cursor:pointer}.lh-chat-conversation:hover{background:#f1f5fb}.lh-chat-conversation.is-active{background:#eaf1ff;box-shadow:inset 3px 0 #2f6fed}.lh-chat-avatar{flex:0 0 36px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#dce8ff;color:#2455a4;font-size:14px;font-weight:800}.lh-chat-conversation-copy{display:grid;gap:3px;min-width:0;flex:1}.lh-chat-conversation-copy strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lh-chat-conversation-copy small{font-size:10px;color:#748398;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lh-chat-conversation-copy>span{font-size:11px;color:#63758b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lh-chat-unread{align-self:center;display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;box-sizing:border-box;border-radius:20px;background:#dc2626;color:#fff;font-size:10px}.lh-chat-panel{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.lh-chat-thread-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 18px;border-bottom:1px solid #e8edf3;background:#fff}.lh-chat-thread-head h3{font-size:14px;line-height:1.3;margin:0 0 3px;color:#172b43}.lh-chat-thread-head p{font-size:11px;margin:0;color:#728197}.lh-chat-secure{font-size:10px;white-space:nowrap;color:#47715d;background:#eef8f1;border-radius:20px;padding:5px 8px}.lh-chat-secure span{display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#2f9c62}.lh-chat-thread{display:flex;flex:1;min-height:0;overflow:auto;flex-direction:column;gap:10px;padding:18px;background:#f5f7fb;scroll-behavior:smooth}.lh-chat-message{max-width:min(78%,560px);align-self:flex-start;background:#fff;border:1px solid #e5eaf0;border-radius:4px 13px 13px 13px;padding:9px 11px;box-shadow:0 1px 2px rgba(20,40,60,.025);overflow-wrap:anywhere}.lh-chat-message.is-own{align-self:flex-end;background:#e8f2ff;border-color:#d8e8ff;border-radius:13px 4px 13px 13px}.lh-chat-message-content{font-size:13px;line-height:1.5;color:#24364b}.lh-chat-message-content p{margin:0 0 5px}.lh-chat-message-content p:last-child{margin-bottom:0}.lh-chat-message-meta{display:flex;justify-content:flex-end;gap:6px;align-items:center;margin-top:5px;font-size:9px;color:#7d8b9d}.lh-chat-receipt{font-size:11px;color:#8291a3;letter-spacing:-2px}.lh-chat-receipt.is-read{color:#1685e8}.lh-chat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:11px 13px 8px;border-top:1px solid #e4eaf1;background:#fff}.lh-chat-compose textarea{resize:none;min-height:42px;max-height:120px;width:100%;box-sizing:border-box;border:1px solid #dce4ee!important;border-radius:10px!important;padding:10px 12px!important;font:inherit;font-size:12px!important;line-height:1.45;outline:none}.lh-chat-compose textarea:focus,.lh-chat-search:focus{border-color:#8eb3fb!important;box-shadow:0 0 0 3px rgba(47,111,237,.1)}.lh-chat-compose button{align-self:start;border:0;border-radius:9px;background:#2f6fed;color:#fff;font-size:12px;font-weight:800;padding:11px 14px;cursor:pointer}.lh-chat-compose button:disabled{opacity:.55;cursor:wait}.lh-chat-compose small{grid-column:1/-1;color:#8a97a8;font-size:9px}.lh-chat-compose-status{grid-column:1/-1;color:#b42318;font-size:11px}.lh-chat-loading,.lh-chat-empty-thread{margin:auto;color:#718096;font-size:12px;text-align:center}.lh-chat-empty-list{padding:18px;font-size:12px;line-height:1.55;color:#718096}.lh-chat-welcome{display:grid;place-content:center;justify-items:center;text-align:center;flex:1;padding:30px;color:#6b7c90}.lh-chat-welcome-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;background:#edf3ff;color:#2f6fed;font-size:25px}.lh-chat-welcome h3{margin:14px 0 5px;color:#172b43;font-size:17px}.lh-chat-welcome p{max-width:340px;font-size:12px;line-height:1.6}.lh-chat-legacy-composer label{display:grid;gap:6px;max-width:480px;margin-bottom:10px;font-size:12px;font-weight:700}.lh-chat-legacy-composer select,.lh-chat-legacy-composer textarea{width:100%;box-sizing:border-box;border:1px solid #dce4ee;border-radius:9px;padding:10px;font:inherit;font-size:13px}.lh-chat-legacy-composer textarea{margin-top:8px}.lh-chat-legacy-composer h2{font-size:18px;margin:0 0 8px}.lfd-connect-history-thread{margin:0 0 14px;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.lfd-connect-history-thread h4{font-size:12px;margin:0 0 6px;color:#344b65}.lfd-connect-history-thread .lfd-connect-history-item{padding:9px 0;border-bottom:1px solid #eef1f5}.lfd-connect-history-thread .lfd-connect-history-item:last-child{border-bottom:0}.lh-chat-app button:focus-visible,.lh-chat-app a:focus-visible{outline:3px solid #8eb3fb;outline-offset:2px}
/* Keep dashboard navigation mounted while supported dashboard sections are swapped. */
.lh-client-app .lh-client-sidebar,.lfd-member-app .lfd-member-sidebar{position:sticky;top:0;align-self:start;height:100vh;max-height:100vh;overflow-y:auto;overscroll-behavior:contain}.lh-client-app .lh-client-content,.lfd-member-app .lfd-member-main{min-width:0}.lh-client-content,.lfd-member-main{padding-top:20px!important}.lh-client-content .lh-client-panel,.lfd-member-main .lfd-member-panel{margin-bottom:12px!important}.lh-client-content .lh-client-kpis{gap:10px!important;margin:12px 0!important}.lh-client-content .lh-client-kpis>div{padding:14px!important}.lfd-member-app .lfd-member-panel{padding:16px!important;margin-bottom:12px!important}.lfd-member-app .lfd-member-side-nav a{padding:9px 10px!important;margin:2px 0!important}@media(max-width:760px){.lh-chat-app{grid-template-columns:1fr;height:calc(100dvh - 150px);min-height:400px;max-height:none}.lh-chat-app.has-open-thread .lh-chat-list{display:none}.lh-chat-app:not(.has-open-thread) .lh-chat-panel{display:none}.lh-chat-app.has-open-thread .lh-chat-panel{display:flex}.lh-chat-thread-head:before{content:'‹';font-size:25px;color:#2f6fed;cursor:pointer;margin-right:3px}.lh-chat-thread-head{gap:8px}.lh-chat-message{max-width:88%}.lh-chat-compose{padding:9px}.lh-chat-compose button{padding:11px 10px}.lh-client-app .lh-client-sidebar,.lfd-member-app .lfd-member-sidebar{position:relative;top:auto;height:auto;max-height:none}.lh-client-app .lh-client-sidebar nav,.lfd-member-app .lfd-member-side-nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Compact spacing for the Professional Management shell; keep its existing visual identity. */
.lhpm-layout{gap:18px!important;padding:18px 20px!important}.lhpm-sidebar{top:16px!important;max-height:calc(100vh - 32px)!important;overflow-y:auto!important}.lhpm-main{min-width:0}.lhpm-header{padding:18px 22px!important;margin-bottom:12px!important}.lhpm-panel{padding:17px 18px!important;margin-bottom:12px!important}.lhpm-grid{gap:10px!important;margin-bottom:12px!important}.lhpm-stat{padding:14px!important}.lhpm-practice-grid{gap:7px!important}.lhpm-panel label{margin:10px 0!important}@media(max-width:850px){.lhpm-layout{grid-template-columns:1fr!important;padding:12px!important}.lhpm-sidebar{position:relative!important;top:auto!important;max-height:none!important;overflow:visible!important}.lhpm-header{padding:16px!important}.lhpm-panel{padding:14px!important}}

/* Hide the client navigation scrollbar without disabling scrolling. */
.lh-client-app .lh-client-sidebar,.lfd-member-app .lfd-member-sidebar{scrollbar-width:none;-ms-overflow-style:none}.lh-client-app .lh-client-sidebar::-webkit-scrollbar,.lfd-member-app .lfd-member-sidebar::-webkit-scrollbar{width:0;height:0;display:none}
.lh-chat-conversation-copy{position:relative;padding-right:44px}.lh-chat-conversation-copy time{position:absolute;right:0;top:0;font-size:9px;color:#8995a5;white-space:nowrap}.lh-chat-message-context{font-size:9px;font-weight:700;color:#64748b;margin-bottom:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.lh-chat-conversations{scrollbar-width:none;-ms-overflow-style:none}.lh-chat-conversations::-webkit-scrollbar{width:0;height:0;display:none}


/* LegalHub unified dashboard layout system v1.10. Full-width desktop, compact responsive tablet/mobile. */
.lhpm-layout,.lhcm-shell,.lhcm-portal-layout,.lhcm-unified,.lh-client-app,.lfd-member-app,.lfd-public-module-layout{width:min(1920px,calc(100vw - 32px))!important;max-width:none!important;position:relative;left:calc(50% - 50vw + 16px);transform:none;box-sizing:border-box!important;margin-top:18px!important;margin-bottom:18px!important}
.lhpm-layout,.lhcm-portal-layout,.lfd-public-module-layout,.lh-client-app,.lfd-member-app{min-width:0!important}
.lhpm-layout{grid-template-columns:240px minmax(0,1fr)!important;gap:20px!important;padding:0!important}
.lhpm-main,.lhpm-panel,.lhcm-shell,.lhcm-content,.lh-client-content,.lfd-member-main,.lfd-public-module-layout>main{min-width:0!important;max-width:100%;box-sizing:border-box}
.lhpm-panel table,.lhcm-content table,.lh-client-content table,.lfd-member-main table{max-width:100%}
.lhpm-table-wrap,.lhcm-table-wrap,.lh-client-content .table-responsive,.lfd-member-main .table-responsive{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.lhpm-panel img,.lhcm-content img,.lh-client-content img,.lfd-member-main img{max-width:100%;height:auto}
.lhpm-layout input,.lhpm-layout select,.lhpm-layout textarea,.lhcm-shell input,.lhcm-shell select,.lhcm-shell textarea,.lh-client-app input,.lh-client-app select,.lh-client-app textarea,.lfd-member-app input,.lfd-member-app select,.lfd-member-app textarea{max-width:100%;box-sizing:border-box}
.lhpm-icon-btn{position:relative}
.lhpm-icon-btn .lh-nav-badge{position:absolute;right:-5px;top:-5px;min-width:17px;height:17px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#dc2626;color:#fff;font-size:10px;font-weight:800;line-height:1}
.lh-chat-error{display:block;box-sizing:border-box;width:calc(100% - 28px);max-width:720px;margin:18px auto;padding:14px 16px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e3a8a;font-size:14px;line-height:1.55;text-align:left}.lh-chat-error-message{display:block}.lh-chat-error-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;min-height:38px}.lh-chat-error-countdown{font-size:12px;color:#334f76}.lh-chat-error-footer .lh-chat-retry{margin-left:auto;flex:0 0 auto}
.lh-chat-retry{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 16px;border:0;border-radius:8px;background:#1d4ed8;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.lh-chat-retry:hover{background:#1e40af}.lh-chat-retry:disabled{opacity:.65;cursor:wait}
.lh-live-message-badge{flex:0 0 auto}
@media(max-width:1000px){.lhpm-layout{grid-template-columns:1fr!important;gap:14px!important}.lhpm-sidebar{position:relative!important;top:auto!important;max-height:none!important;overflow:visible!important}.lhpm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lhpm-practice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){.lhpm-layout,.lhcm-shell,.lhcm-portal-layout,.lhcm-unified,.lh-client-app,.lfd-member-app,.lfd-public-module-layout{width:calc(100vw - 20px)!important;left:calc(50% - 50vw + 10px);margin-top:10px!important;margin-bottom:10px!important}.lhpm-layout{padding:0!important}.lhpm-sidebar nav,.lhpm-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.lhpm-header{padding:16px!important}.lhpm-panel,.lhcm-content{padding:14px!important}.lhpm-stat{padding:12px!important}.lhpm-stat strong{font-size:24px!important}.lh-chat-app{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 110px);min-height:360px;border-radius:10px}.lh-chat-list-head{padding:12px}.lh-chat-thread{padding:12px;gap:8px}.lh-chat-message{max-width:92%;box-sizing:border-box}.lh-chat-thread-head{padding:10px 12px}.lh-chat-compose{grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:8px}.lh-chat-compose textarea{font-size:16px!important;min-height:44px}.lh-chat-compose button{min-height:44px;padding:10px 12px}.lh-chat-conversation{padding:10px}.lhpm-table,.lhcm-content table{font-size:12px}}
@media(max-width:480px){.lhpm-layout,.lhcm-shell,.lhcm-portal-layout,.lhcm-unified,.lh-client-app,.lfd-member-app,.lfd-public-module-layout{width:calc(100vw - 12px)!important;left:calc(50% - 50vw + 6px)}.lhpm-sidebar nav,.lhpm-grid,.lhpm-practice-grid{grid-template-columns:minmax(0,1fr)!important}.lhpm-sidebar a{min-height:44px}.lhpm-header h1{font-size:26px!important;overflow-wrap:anywhere}.lhpm-panel,.lhcm-content{padding:11px!important}.lh-chat-app{height:calc(100dvh - 90px);min-height:330px}.lh-chat-conversation-copy{padding-right:0}.lh-chat-conversation-copy time{position:static;display:block;margin-top:2px}.lh-chat-compose{grid-template-columns:minmax(0,1fr)}.lh-chat-compose button{width:100%}.lh-chat-compose small,.lh-chat-compose-status{grid-column:1}.lh-unified-subnav{max-width:100%;box-sizing:border-box}}

/* Client-specific navigation variants: hide scrollbar chrome, not scrolling. */
.lhcm-sidebar,.lfd-public-module-sidebar.lfd-client-sidebar{overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.lhcm-sidebar::-webkit-scrollbar,.lfd-public-module-sidebar.lfd-client-sidebar::-webkit-scrollbar{width:0;height:0;display:none}
@media(max-width:900px){.lfd-public-module-layout{grid-template-columns:minmax(0,1fr)!important}.lfd-public-module-layout>.lfd-public-module-sidebar{position:static!important;max-height:none!important;overflow:visible!important}.lfd-public-module-layout>main{width:100%!important;min-width:0!important}}

/* LegalHub native messenger phases 1–5: rich actions, private attachments and accessible responsive controls. */
.lh-chat-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:10px 14px;border-bottom:1px solid #e8edf4;background:#fbfcfe}.lh-chat-tools input{flex:1 1 220px;min-width:120px;max-width:100%;box-sizing:border-box;border:1px solid #d8e1ed;border-radius:8px;padding:9px 10px;font:inherit;font-size:13px}.lh-chat-tools button,.lh-chat-attach-label{border:1px solid #d8e1ed;border-radius:8px;background:#fff;color:#34465d;padding:8px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;min-height:34px}.lh-chat-tool-status{flex:1 0 100%;font-size:11px;color:#52647a}.lh-chat-search-results{max-height:220px;overflow:auto;padding:8px;border-bottom:1px solid #e8edf4;background:#fff}.lh-chat-search-result{display:grid;width:100%;gap:4px;text-align:left;padding:9px;border:0;border-radius:8px;background:#f8fafc;color:#24364b;margin-bottom:5px;cursor:pointer}.lh-chat-search-result strong{font-size:11px}.lh-chat-search-result span{font-size:12px;overflow-wrap:anywhere}.lh-chat-message-actions{display:flex;gap:4px;flex-wrap:wrap;opacity:.82;margin-top:7px}.lh-chat-message-actions button,.lh-chat-reaction{border:1px solid #dbe4ef;background:#fff;border-radius:999px;padding:4px 7px;font-size:10px;color:#52647a;cursor:pointer}.lh-chat-message-actions button:hover,.lh-chat-reaction:hover{background:#eef4ff;color:#1d4ed8}.lh-chat-message.is-pinned{outline:1px solid #e9c46a}.lh-chat-conversation.is-pinned:after{content:'📌';align-self:start;font-size:11px}.lh-chat-reaction.is-mine{background:#dbeafe;border-color:#93c5fd;color:#1d4ed8}.lh-chat-message-attachment{margin-top:6px}.lh-chat-attachment-link{display:inline-block;padding:8px 10px;background:#f1f5f9;border:1px solid #dbe4ef;border-radius:8px;color:#1d4ed8;font-size:12px;overflow-wrap:anywhere}.lh-chat-reply-preview{font-size:11px;color:#52647a;padding:6px 8px;border-left:3px solid #93c5fd;background:#f1f5f9;border-radius:4px;margin-bottom:7px}.lh-chat-replying{grid-column:1/-1;padding:7px 10px;border-left:3px solid #3b82f6;background:#eff6ff;border-radius:6px;color:#1e40af;font-size:12px;overflow-wrap:anywhere}.lh-chat-compose{grid-template-columns:minmax(0,1fr) auto auto!important}.lh-chat-attach-label{display:inline-flex;align-items:center;gap:5px;justify-content:center;white-space:nowrap}.lh-chat-edited{font-size:9px;color:#8492a6;margin-left:5px}.lh-chat-highlight{outline:3px solid #facc15;outline-offset:2px}.lh-chat-message-content{overflow-wrap:anywhere;word-break:break-word}.lh-chat-thread{overscroll-behavior:contain}.lh-chat-search-results[hidden],.lh-chat-compose [hidden]{display:none!important}
@media(max-width:760px){.lh-chat-tools{padding:8px;gap:6px}.lh-chat-tools input{flex-basis:100%;font-size:16px;min-height:42px}.lh-chat-tools button{min-height:40px;flex:1 1 auto}.lh-chat-message-actions{opacity:1}.lh-chat-compose{grid-template-columns:minmax(0,1fr) auto!important}.lh-chat-compose textarea{grid-column:1/-1;grid-row:1}.lh-chat-attach-label{grid-column:1;grid-row:2}.lh-chat-compose button[type=submit]{grid-column:2;grid-row:2;min-width:88px}.lh-chat-compose small,.lh-chat-compose-status,.lh-chat-replying{grid-column:1/-1}.lh-chat-message-actions button{min-height:30px;padding:5px 8px}.lh-chat-search-result{min-height:44px}}
@media(max-width:420px){.lh-chat-tools button{font-size:11px;padding:7px}.lh-chat-message-actions{gap:3px}.lh-chat-message-actions button{font-size:10px;padding:5px 6px}.lh-chat-attach-label{font-size:12px}}
.lh-chat-load-older{display:block;margin:10px auto;padding:8px 14px;border:1px solid #dbe4ef;border-radius:8px;background:#fff;color:#38506c;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.lh-chat-load-older:disabled{opacity:.65;cursor:wait}.lh-chat-load-older[hidden]{display:none!important}


/* LegalHub Messenger v1.13: expanded, app-like workspace. Uses the existing inbox and message records. */
.lh-chat-thread-head{flex-wrap:wrap}
.lh-chat-thread-title{min-width:0;flex:1}
.lh-chat-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.lh-chat-head-actions button{min-height:34px;padding:7px 10px;border:1px solid #d7e1ed;border-radius:8px;background:#fff;color:#34465d;font:inherit;font-size:11px;font-weight:750;cursor:pointer;white-space:nowrap}
.lh-chat-head-actions button:hover{background:#f1f5fb}
.lh-chat-app.is-expanded{position:fixed!important;z-index:999999;inset:0!important;left:0!important;top:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;min-height:0!important;margin:0!important;border:0;border-radius:0;box-shadow:none;grid-template-columns:minmax(250px,310px) minmax(0,1fr);background:#fff}
.lh-chat-app.is-expanded.has-matter-panel{grid-template-columns:minmax(250px,300px) minmax(0,1fr) minmax(220px,280px)}
.lh-chat-app.is-expanded .lh-chat-list,.lh-chat-app.is-expanded .lh-chat-panel,.lh-chat-app.is-expanded .lh-chat-matter-panel{min-height:0;height:100%;max-height:100%;}
.lh-chat-app.is-expanded .lh-chat-list{border-radius:0}
.lh-chat-app.is-expanded .lh-chat-thread{min-height:0}
.lh-chat-matter-panel{min-width:0;overflow:auto;border-left:1px solid #e5ebf2;background:#fbfcfe;padding:18px;color:#24364b;font-size:12px}
.lh-chat-matter-panel[hidden]{display:none!important}
.lh-chat-matter-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:12px;border-bottom:1px solid #e4eaf1}
.lh-chat-matter-head strong{font-size:13px}
.lh-chat-matter-close{width:32px;height:32px;border:1px solid #d8e1ed;border-radius:8px;background:#fff;color:#34465d;font-size:21px;cursor:pointer}
.lh-chat-matter-panel dl{margin:14px 0}
.lh-chat-matter-panel dt{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#718096;font-weight:800;margin-top:14px}
.lh-chat-matter-panel dd{margin:4px 0 0;overflow-wrap:anywhere;font-size:12px;line-height:1.5;color:#24364b}
.lh-chat-matter-panel p{padding:10px;border-radius:8px;background:#f1f5fb;color:#607087;font-size:11px;line-height:1.55}
html.lh-chat-expanded-lock,html.lh-chat-expanded-lock body{overflow:hidden!important}
@media(min-width:761px){.lh-chat-app.is-expanded .lh-chat-list-head{padding:20px}.lh-chat-app.is-expanded .lh-chat-thread-head{padding:16px 20px}.lh-chat-app.is-expanded .lh-chat-thread{padding:22px;gap:12px}.lh-chat-app.is-expanded .lh-chat-message{max-width:min(76%,760px)}.lh-chat-app.is-expanded .lh-chat-tools{padding:12px 18px}}
@media(min-width:761px) and (max-width:1100px){.lh-chat-app.is-expanded{grid-template-columns:minmax(220px,28%) minmax(0,1fr)}.lh-chat-app.is-expanded.has-matter-panel{grid-template-columns:minmax(220px,28%) minmax(0,1fr)}.lh-chat-app.is-expanded.has-matter-panel .lh-chat-matter-panel{position:absolute;z-index:3;right:0;top:0;bottom:0;width:min(300px,42vw);height:100%;box-shadow:-12px 0 28px rgba(18,38,63,.12)}}
@media(max-width:760px){.lh-chat-app.is-expanded{grid-template-columns:minmax(0,1fr);height:100dvh!important;width:100vw!important;border-radius:0}.lh-chat-app.is-expanded:not(.has-open-thread) .lh-chat-list{display:flex}.lh-chat-app.is-expanded:not(.has-open-thread) .lh-chat-panel{display:none}.lh-chat-app.is-expanded.has-open-thread .lh-chat-list{display:none}.lh-chat-app.is-expanded.has-open-thread .lh-chat-panel{display:flex}.lh-chat-app.is-expanded .lh-chat-thread-head{align-items:flex-start}.lh-chat-app.is-expanded .lh-chat-head-actions{gap:4px}.lh-chat-app.is-expanded .lh-chat-head-actions button{min-height:40px;padding:7px 8px}.lh-chat-app.is-expanded .lh-chat-matter-panel{display:none!important}.lh-chat-app.is-expanded .lh-chat-thread{padding:12px}.lh-chat-app.is-expanded .lh-chat-compose{padding-bottom:max(9px,env(safe-area-inset-bottom))}}
@media(max-width:420px){.lh-chat-head-actions{gap:4px}.lh-chat-head-actions button{font-size:10px;padding:6px 7px}.lh-chat-secure{font-size:9px}.lh-chat-thread-title h3{overflow-wrap:anywhere}}


/* LegalHub Messenger 6.32.0 — alignment, contrast and compact composer. */
.lh-chat-app,.lh-chat-app *{box-sizing:border-box}
.lh-chat-app{min-width:0;max-width:100%}
.lh-chat-app.is-expanded{width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important;grid-template-columns:minmax(225px,clamp(225px,27vw,320px)) minmax(0,1fr)}
.lh-chat-app.is-expanded.has-matter-panel{grid-template-columns:minmax(225px,clamp(225px,25vw,300px)) minmax(0,1fr) minmax(200px,clamp(200px,22vw,270px))}
.lh-chat-app.is-expanded .lh-chat-list,.lh-chat-app.is-expanded .lh-chat-panel,.lh-chat-app.is-expanded .lh-chat-matter-panel{width:auto;min-width:0;max-width:100%;overflow-x:hidden}
.lh-chat-app.is-expanded .lh-chat-thread-head{min-width:0;max-width:100%;align-items:center}
.lh-chat-app.is-expanded .lh-chat-thread-title{flex:1 1 140px;min-width:0;overflow-wrap:anywhere}
.lh-chat-app.is-expanded .lh-chat-head-actions{flex:0 1 auto;min-width:0;max-width:100%;justify-content:flex-end;gap:6px}
.lh-chat-app.is-expanded .lh-chat-head-actions button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.lh-chat-app.is-expanded .lh-chat-tools:has(.lh-chat-tool-status:empty){display:none}
.lh-chat-tools .lh-chat-tool-status{display:block;min-width:0;overflow-wrap:anywhere;color:#26364a;font-size:12px;padding:4px 10px}
.lh-chat-message-content{color:#172b43!important}
.lh-chat-conversation-copy small{color:#45566c!important}
.lh-chat-conversation-copy>span{color:#334155!important}
.lh-chat-thread-head p,.lh-chat-message-meta,.lh-chat-edited{color:#475569!important}
.lh-chat-message-actions button{color:#26364a!important}
.lh-chat-message-reactions{display:none!important}
.lh-chat-message.is-pinned{outline:0!important}
.lh-chat-conversation.is-pinned:after{content:none!important;display:none!important}
.lh-chat-attach-label{width:42px;min-width:42px;padding:8px!important;display:inline-flex;align-items:center;justify-content:center;font-size:19px!important;line-height:1;color:#172b43!important;cursor:pointer}
.lh-chat-attach-label span{font-size:20px;line-height:1}
@media(min-width:761px) and (max-width:1100px){.lh-chat-app.is-expanded,.lh-chat-app.is-expanded.has-matter-panel{grid-template-columns:minmax(205px,28vw) minmax(0,1fr)}.lh-chat-app.is-expanded.has-matter-panel .lh-chat-matter-panel{position:absolute;right:0;top:0;bottom:0;width:min(300px,45vw);max-width:calc(100vw - 220px);box-sizing:border-box;overflow:auto;background:#fbfcfe}.lh-chat-app.is-expanded .lh-chat-thread-head{align-items:flex-start}.lh-chat-app.is-expanded .lh-chat-head-actions{flex-wrap:wrap}}
@media(max-width:760px){.lh-chat-app.is-expanded,.lh-chat-app.is-expanded.has-matter-panel{grid-template-columns:minmax(0,1fr)!important;width:100vw!important;max-width:100vw!important;overflow:hidden!important}.lh-chat-app.is-expanded .lh-chat-thread-head{gap:6px;padding:10px;flex-wrap:wrap}.lh-chat-app.is-expanded .lh-chat-thread-title{flex:1 1 100%;width:100%}.lh-chat-app.is-expanded .lh-chat-head-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.lh-chat-app.is-expanded .lh-chat-head-actions button{min-height:36px}.lh-chat-app.is-expanded .lh-chat-panel{width:100%;max-width:100%;min-width:0}.lh-chat-app.is-expanded .lh-chat-compose{grid-template-columns:minmax(0,1fr) 42px auto!important;gap:6px;padding-left:8px;padding-right:8px}.lh-chat-app.is-expanded .lh-chat-compose textarea{grid-column:1/-1;grid-row:1;min-width:0}.lh-chat-app.is-expanded .lh-chat-attach-label{grid-column:1;grid-row:2}.lh-chat-app.is-expanded .lh-chat-compose button[type=submit]{grid-column:3;grid-row:2;min-width:68px}.lh-chat-app.is-expanded .lh-chat-compose small,.lh-chat-app.is-expanded .lh-chat-compose-status{grid-column:1/-1}.lh-chat-app.is-expanded .lh-chat-matter-panel{display:none!important}}
@media(max-width:420px){.lh-chat-app.is-expanded .lh-chat-head-actions{gap:5px}.lh-chat-app.is-expanded .lh-chat-head-actions button{font-size:10px;padding:6px 7px}.lh-chat-app.is-expanded .lh-chat-secure{white-space:normal}.lh-chat-app.is-expanded .lh-chat-compose{grid-template-columns:minmax(0,1fr) 38px auto!important}.lh-chat-app.is-expanded .lh-chat-attach-label{width:38px;min-width:38px;padding:6px!important}}

/* LegalHub Matter Messenger v1.15: compact matter workflow controls */
.lh-chat-stage-editor{border-top:1px solid #d9e2ec;margin-top:16px;padding-top:14px;display:grid;gap:8px;min-width:0}
.lh-chat-stage-editor[hidden]{display:none!important}
.lh-chat-stage-editor label{font-size:11px;font-weight:700;color:#24364b}
.lh-chat-stage-editor select,.lh-chat-stage-editor textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:1px solid #aab7c6;border-radius:7px;padding:9px;background:#fff;color:#172b42;font:inherit}
.lh-chat-stage-editor button{justify-self:start;max-width:100%;border:0;border-radius:7px;background:#173f5f;color:#fff;font-weight:700;padding:9px 13px;cursor:pointer}
.lh-chat-stage-status{font-size:11px;line-height:1.45;color:#24364b;overflow-wrap:anywhere;margin:0}
.lh-chat-stage-label{display:inline-block;border-radius:5px;background:#e8f1f8;color:#163d5c;padding:4px 7px;font-weight:700}


/* LegalHub dashboard transition loader and message-fetch progress states. */
.lh-dashboard-page-loader{position:fixed;inset:0;z-index:999990;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(245,248,252,.68);backdrop-filter:blur(2px)}
.lh-dashboard-page-loader[hidden]{display:none!important}
.lh-dashboard-loader-card{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid #d7e0eb;border-radius:12px;background:#fff;color:#172b45;box-shadow:0 12px 38px rgba(15,35,60,.16);font-size:14px;font-weight:650}
.lh-dashboard-loader-spinner,.lh-chat-spinner{display:inline-block;width:22px;height:22px;flex:0 0 22px;border:3px solid #cbd5e1;border-top-color:#1d4ed8;border-radius:50%;animation:lhhub-spin .75s linear infinite}
.lh-dashboard-is-loading:before{content:"";position:fixed;z-index:999999;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#1d4ed8 0%,#60a5fa 45%,#1d4ed8 100%);background-size:200% 100%;animation:lhhub-progress 1.1s ease-in-out infinite}
.lh-chat-loading{display:flex;align-items:center;justify-content:center;gap:10px;min-height:110px;padding:20px;color:#24364b;font-size:14px;font-weight:600}
.lh-chat-loading .lh-chat-spinner{width:20px;height:20px;flex-basis:20px}
@keyframes lhhub-spin{to{transform:rotate(360deg)}}
@keyframes lhhub-progress{0%{background-position:100% 0}100%{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.lh-dashboard-loader-spinner,.lh-chat-spinner,.lh-dashboard-is-loading:before{animation:none}.lh-dashboard-page-loader{backdrop-filter:none}}


/* LegalHub Matter Messenger v1.17: configurable dashboard loader variants. */
.lh-dashboard-page-loader.is-style-progress,.lh-dashboard-page-loader.is-style-minimal{inset:0 0 auto 0;height:5px;padding:0;background:transparent;backdrop-filter:none;pointer-events:none;display:block;overflow:hidden}
.lh-dashboard-page-loader.is-style-minimal{height:3px}
.lh-dashboard-loader-track{display:block;position:relative;width:100%;height:100%;overflow:hidden;background:rgba(29,78,216,.12)}
.lh-dashboard-loader-fill{display:block;position:absolute;inset:0 auto 0 0;width:38%;background:#1d4ed8;animation:lhhub-loader-travel 1.15s ease-in-out infinite;border-radius:4px}
.lh-dashboard-page-loader.is-style-minimal .lh-dashboard-loader-fill{background:#0f766e}
.lh-dashboard-page-loader.is-style-skeleton{background:rgba(245,248,252,.55);backdrop-filter:blur(1px)}
.lh-dashboard-loader-skeleton{width:min(380px,calc(100vw - 40px));box-sizing:border-box;display:grid;gap:12px;padding:22px}
.lh-dashboard-skeleton-line{display:block;height:12px;width:82%;border-radius:8px;background:linear-gradient(90deg,#e2e8f0 20%,#f8fafc 45%,#e2e8f0 70%);background-size:220% 100%;animation:lhhub-skeleton-shimmer 1.2s linear infinite}
.lh-dashboard-skeleton-line.wide{width:100%;height:18px}.lh-dashboard-skeleton-line.short{width:56%}
.lh-dashboard-page-loader.is-style-progress .lh-dashboard-loader-track,.lh-dashboard-page-loader.is-style-minimal .lh-dashboard-loader-track{box-shadow:0 1px 4px rgba(15,23,42,.1)}
@keyframes lhhub-loader-travel{0%{transform:translateX(-110%)}100%{transform:translateX(290%)}}
@keyframes lhhub-skeleton-shimmer{to{background-position:-220% 0}}
@media(prefers-reduced-motion:reduce){.lh-dashboard-loader-fill,.lh-dashboard-skeleton-line{animation:none}.lh-dashboard-loader-fill{width:100%;opacity:.65}}


/* LegalHub Directory v6.40.0: keep normal chat layout horizontal and constrain header actions. */
.lh-chat-app:not(.is-expanded),.lh-chat-app:not(.is-expanded) *{box-sizing:border-box}
.lh-chat-app:not(.is-expanded) .lh-chat-panel{display:flex!important;flex-direction:column!important;min-width:0!important;width:auto!important;max-width:100%!important;overflow:hidden!important;writing-mode:horizontal-tb!important}
.lh-chat-app:not(.is-expanded) .lh-chat-thread-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important;min-width:0!important}
.lh-chat-app:not(.is-expanded) .lh-chat-thread-title{flex:1 1 180px!important;min-width:0!important;writing-mode:horizontal-tb!important}
.lh-chat-app:not(.is-expanded) .lh-chat-head-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex:0 1 auto!important;min-width:0!important;flex-wrap:wrap!important}
.lh-chat-app:not(.is-expanded) .lh-chat-head-actions button{display:inline-flex!important;align-items:center!important;justify-content:center!important;white-space:nowrap!important;max-width:100%!important;min-height:34px!important;writing-mode:horizontal-tb!important}
.lh-chat-app:not(.is-expanded) .lh-chat-thread{display:flex!important;flex-direction:column!important;align-items:stretch!important;min-width:0!important;width:100%!important;overflow-x:hidden!important;writing-mode:horizontal-tb!important}
.lh-chat-app:not(.is-expanded) .lh-chat-message{display:block!important;width:fit-content!important;max-width:min(78%,560px)!important;min-width:0!important;flex:0 1 auto!important;writing-mode:horizontal-tb!important;word-break:normal!important;overflow-wrap:anywhere!important;white-space:normal!important}
.lh-chat-app:not(.is-expanded) .lh-chat-message-content,.lh-chat-app:not(.is-expanded) .lh-chat-message-content *{writing-mode:horizontal-tb!important;word-break:normal!important;overflow-wrap:anywhere!important;white-space:normal!important;max-width:100%!important}
.lh-chat-app:not(.is-expanded) .lh-chat-message-content p{display:block!important;width:auto!important;max-width:100%!important;margin:0 0 5px!important}
.lh-chat-app:not(.is-expanded) .lh-chat-matter-panel{min-width:0!important;max-width:100%!important;overflow-wrap:anywhere!important}
@media(max-width:1050px){.lh-chat-app:not(.is-expanded) .lh-chat-thread-head{align-items:flex-start!important}.lh-chat-app:not(.is-expanded) .lh-chat-head-actions{justify-content:flex-start!important;flex-basis:100%!important}}
@media(max-width:760px){.lh-chat-app:not(.is-expanded) .lh-chat-message{max-width:90%!important}.lh-chat-app:not(.is-expanded) .lh-chat-head-actions{gap:6px!important}.lh-chat-app:not(.is-expanded) .lh-chat-head-actions button{font-size:11px!important;padding:7px 9px!important}}

/* Functional global dashboard search. */
.lh-global-search-overlay{position:fixed;inset:0;z-index:1000001;display:flex;align-items:flex-start;justify-content:center;padding: min(12vh,100px) 18px 24px;background:rgba(7,18,35,.58);backdrop-filter:blur(3px)}
.lh-global-search-overlay[hidden]{display:none!important}
.lh-global-search-modal{width:min(680px,100%);max-height:min(78vh,760px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #dbe4ef;border-radius:18px;background:#fff;color:#172b43;box-shadow:0 25px 90px rgba(0,0,0,.28);font:inherit}
.lh-global-search-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:20px 22px 14px;border-bottom:1px solid #e9eef5}
.lh-global-search-modal h2{margin:0;font-size:19px;line-height:1.3;color:#172b43}.lh-global-search-modal header p{margin:4px 0 0;color:#64748b;font-size:12px}
.lh-global-search-close{border:0;border-radius:8px;background:#f1f5f9;color:#334155;width:34px;height:34px;font-size:24px;line-height:1;cursor:pointer}
.lh-global-search-input-wrap{display:flex;align-items:center;gap:10px;margin:16px 18px 10px;padding:0 12px;min-height:48px;border:1px solid #b9c8da;border-radius:11px;background:#f8fafc;color:#475569}
.lh-global-search-input-wrap>span{font-size:23px}.lh-global-search-input-wrap input{width:100%;min-width:0;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:#172b43!important;font:inherit;font-size:15px!important;padding:10px 0!important;margin:0!important}
.lh-global-search-input-wrap kbd{flex:0 0 auto;padding:3px 6px;border:1px solid #dbe4ee;border-radius:5px;background:#fff;font-size:10px;color:#64748b}
.lh-global-search-results{overflow:auto;min-height:72px;padding:4px 12px 12px}.lh-global-search-hint{padding:18px 10px;margin:0;color:#64748b;font-size:13px}
.lh-global-search-result{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border-radius:9px;text-decoration:none!important;color:#172b43!important}.lh-global-search-result:hover,.lh-global-search-result:focus,.lh-global-search-result.is-selected{outline:0;background:#edf4ff}
.lh-global-search-result-copy{display:block;min-width:0}.lh-global-search-result-copy strong,.lh-global-search-result-copy small{display:block;overflow-wrap:anywhere}.lh-global-search-result-copy strong{font-size:13px;color:#172b43}.lh-global-search-result-copy small{margin-top:3px;color:#64748b;font-size:11px}.lh-global-search-result em{flex:0 0 auto;font-style:normal;font-size:9px;letter-spacing:.06em;color:#52657b;background:#eef2f7;border-radius:5px;padding:4px 6px}
.lh-global-search-modal>footer{display:flex;flex-wrap:wrap;gap:12px;padding:10px 20px;border-top:1px solid #e9eef5;background:#f8fafc;color:#64748b;font-size:10px}
body.lh-global-search-open{overflow:hidden}.lh-client-search.lh-global-search-trigger{width:100%;text-align:left;cursor:pointer;font:inherit}
@media(prefers-reduced-motion:reduce){.lh-global-search-overlay{backdrop-filter:none}}

/* v6.44.0: complete participant names in all role dashboards; hover/focus or select the active row again to expand. */
.lh-chat-conversation-copy strong{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35;overflow-wrap:anywhere}
.lh-chat-conversation:hover .lh-chat-conversation-copy strong,.lh-chat-conversation:focus-visible .lh-chat-conversation-copy strong,.lh-chat-conversation.is-name-expanded .lh-chat-conversation-copy strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;word-break:normal}
.lh-chat-conversation.is-name-expanded{align-items:flex-start;background:#eef4ff}
.lh-chat-conversation.is-name-expanded .lh-chat-conversation-copy{min-width:0}
.lh-chat-conversation.is-name-expanded .lh-chat-conversation-copy strong{max-height:none}
@media(max-width:760px){.lh-chat-conversation-copy strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.lh-chat-conversation{align-items:flex-start}.lh-chat-conversation-copy{padding-right:0}.lh-chat-conversation-copy time{position:static;display:block;margin-top:2px}}

/* v6.45.0: keep expanded conversation controls and matter context visible. */
.lh-chat-app.is-expanded .lh-chat-panel{position:relative;min-height:0;overflow:hidden!important}.lh-chat-app.is-expanded .lh-chat-thread-head{position:sticky!important;top:0!important;z-index:20!important;flex-shrink:0!important;background:#fff!important;box-shadow:0 1px 0 #e3eaf2}.lh-chat-app.is-expanded .lh-chat-head-actions{position:relative;z-index:21}.lh-chat-app.is-expanded .lh-chat-matter-head{position:sticky;top:0;z-index:4;background:#fbfcfe}.lh-chat-app.is-expanded .lh-chat-matter-toggle{display:inline-flex!important;visibility:visible!important;opacity:1!important}.lh-chat-app.is-expanded .lh-chat-panel,.lh-chat-app.is-expanded .lh-chat-matter-panel{scroll-padding-top:72px}


/* LegalHub Directory v6.46.0: client + professional messenger viewport focus and conversation-list capacity. */
.lh-chat-app:not(.is-expanded){
  height:min(820px,calc(100dvh - 140px))!important;
  min-height:min(560px,calc(100dvh - 120px))!important;
  max-height:calc(100dvh - 100px)!important;
}
.lh-chat-list,.lh-chat-app.is-expanded .lh-chat-list{
  display:flex!important;flex-direction:column!important;min-width:0!important;min-height:0!important;
  height:100%!important;max-height:100%!important;overflow:hidden!important;
}
.lh-chat-conversations,.lh-chat-app.is-expanded .lh-chat-conversations{
  display:block;flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;
  overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scrollbar-width:thin!important;
  scrollbar-color:#aab8ca #edf2f7!important;-webkit-overflow-scrolling:touch;
}
.lh-chat-conversations::-webkit-scrollbar{display:block!important;width:8px!important;height:8px!important}
.lh-chat-conversations::-webkit-scrollbar-track{background:#edf2f7;border-radius:8px}
.lh-chat-conversations::-webkit-scrollbar-thumb{background:#aab8ca;border-radius:8px;border:2px solid #edf2f7}
.lh-chat-conversation{flex:0 0 auto;min-height:66px;align-items:flex-start}
.lh-chat-conversation-copy{min-width:0;overflow-wrap:anywhere}
.lh-chat-conversation-copy strong,.lh-chat-conversation-copy small,.lh-chat-conversation-copy>span{max-width:100%;overflow-wrap:anywhere}
.lh-chat-app.is-expanded{inset:0!important;top:0!important;right:0!important;bottom:0!important;left:0!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important;overscroll-behavior:none}
.lh-chat-app.is-expanded .lh-chat-list-head{flex:0 0 auto}
.lh-chat-app.is-expanded .lh-chat-conversations{min-height:0!important;flex:1 1 auto!important}
.lh-chat-app.is-expanded:focus{outline:none}
@media(max-width:760px){
  .lh-chat-app:not(.is-expanded){height:calc(100dvh - 100px)!important;min-height:360px!important;max-height:calc(100dvh - 80px)!important}
  .lh-chat-app:not(.is-expanded) .lh-chat-list{min-height:0!important}
  .lh-chat-app:not(.is-expanded):not(.has-open-thread) .lh-chat-conversations{max-height:none!important;min-height:0!important}
  .lh-chat-app.is-expanded .lh-chat-conversations{max-height:none!important}
}
