.member-messages{border-top:4px solid #7042a5;min-width:0;overflow-wrap:anywhere}.message-title,.message-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.message-title{justify-content:space-between}.message-title h3{margin:0}.message-title button{min-width:44px}.message-compose{margin:16px 0;background:#f7f2fc;border:1px solid #ded1eb;border-radius:12px;padding:14px}.message-compose>summary{font-weight:700;cursor:pointer}.message-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.message-targets>details{border:1px solid #d1bfdf;border-radius:8px;background:white;padding:10px}.message-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:6px;margin-top:10px}.message-recipient{display:flex!important;align-items:center;gap:8px;min-height:44px;margin:0!important;padding:5px!important}.message-recipient input{width:20px!important;height:20px;flex:0 0 20px;margin:0!important}.member-messages textarea{display:block;box-sizing:border-box;width:100%;resize:vertical;min-height:100px;font:inherit}.message-upload{display:block;margin:12px 0}.message-upload input{display:block;max-width:100%;margin-top:8px}.message-file{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0;min-width:0}.message-file>button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.message-card{margin:12px 0;border:1px solid #d8cce4;border-left:5px solid #9170b5;border-radius:12px;background:#fff;padding:14px}.message-own{background:#f8f4fc;border-left-color:#7042a5}.message-card>summary{cursor:pointer;list-style-position:inside}.message-head time{font-size:.8rem;color:#645c6c;margin-left:auto}.message-preview{display:block;margin-top:7px;color:#51465d}.message-body{white-space:pre-wrap;line-height:1.55}.message-unread{background:#7042a5;color:white;border-radius:99px;padding:3px 9px;font-size:.8rem}.message-image{max-width:100%;max-height:420px;object-fit:contain;border-radius:10px}.message-download{display:block}.message-compose button,.message-card button{min-height:44px}@media(max-width:600px){.message-targets{grid-template-columns:minmax(0,1fr)}.message-head time{margin-left:0}.message-compose,.message-card{padding:12px}.member-messages{padding:14px!important}.message-options{grid-template-columns:minmax(0,1fr)}}
/* Chat list and conversation, inspired by familiar mobile messengers. */
.portal-message-control{position:relative;display:inline-flex!important;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;padding:9px!important;border-radius:50%;background:#e4f5ed!important;color:#166446!important;flex:0 0 42px}.portal-message-control svg{width:23px!important;height:23px!important}.portal-message-control [data-message-badge]{position:absolute;right:-3px;top:-5px;border:2px solid white;border-radius:20px;min-width:20px;padding:1px 4px;background:#b82843;color:white;font-size:11px;line-height:16px}.portal-message-control.hidden{display:none!important}.member-messages{border-top-color:#288368;padding:0!important;overflow:hidden}.message-title{padding:16px 20px;background:#f3f7f5;border-bottom:1px solid #dde7e1}.message-title h3{margin-right:auto;color:#164e3e}.message-title [data-new-chat]{background:#20785d;color:white}.message-chat-layout{display:grid;grid-template-columns:minmax(220px,34%) minmax(0,1fr);height:72vh;min-height:440px;max-height:850px}.message-chat-list{background:white;border-right:1px solid #dae4de;overflow:auto;min-width:0}.message-search{display:block;padding:12px;margin:0!important;background:#f5f8f6;font-size:.8rem}.message-search input{margin-top:6px;background:#edf2ef;border:0}.message-chat-row{display:flex;gap:10px;align-items:center;width:100%;text-align:left;background:white;color:#253a31;border-radius:0;border-bottom:1px solid #edf1ee;padding:15px 12px;min-height:82px}.message-chat-row:hover,.message-chat-row.selected{background:#eaf4ee}.message-avatar{width:44px;height:44px;flex:0 0 44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;background:#d8e9e1;color:#28614c;font-weight:700}.message-avatar img{width:100%;height:100%;object-fit:cover}.message-chat-copy{display:flex;flex-direction:column;min-width:0;flex:1}.message-chat-copy strong,.message-chat-copy .message-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-preview{font-size:.85rem;margin-top:4px}.message-chat-meta{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:7px}.message-chat-meta time{font-size:.65rem;white-space:nowrap;color:#607167}.message-unread{background:#278361}.message-conversation{min-width:0;min-height:0;display:flex;flex-direction:column;background-color:#edf1e9;background-image:radial-gradient(#c6d8cb 1px,transparent 1px);background-size:22px 22px}.message-conversation-head{display:flex;gap:10px;align-items:center;padding:13px 16px;background:#edf4ef;border-bottom:1px solid #d6e3d9;flex-shrink:0}.message-conversation-head strong,.message-conversation-head small{display:block}.message-conversation-head small{font-size:.75rem;color:#5c7165;margin-top:3px}.message-chat-back{display:none}.message-chat-stream{display:flex;flex-direction:column;align-items:flex-start;gap:8px;flex:1;min-height:0;overflow:auto;padding:16px;overscroll-behavior:contain}.message-day{align-self:center;font-size:.72rem;padding:5px 12px;border-radius:8px;background:#ffffffd9;color:#506456;margin:6px 0}.message-bubble{max-width:88%;min-width:100px;align-self:flex-start;margin:0;border:0;border-radius:2px 13px 13px 13px;background:white;box-shadow:0 1px 3px #29433220;padding:10px 13px}.message-bubble.message-own{align-self:flex-end;background:#dbf1d9;border-radius:13px 2px 13px 13px}.message-bubble .message-body{margin:3px 0;line-height:1.4}.message-sender{display:block;color:#37634d;font-size:.78rem}.message-bubble-time{display:block;text-align:right;font-size:.65rem;color:#627768;margin-top:5px}.message-compose{flex-shrink:0;margin:0;border:0;border-top:1px solid #d6e3d9;border-radius:0;background:#f6f8f5;padding:10px 14px}.message-compose>summary{font-size:.8rem;color:#41604d;margin-bottom:7px}.message-compose textarea{min-height:58px;max-height:130px;resize:vertical;border-radius:12px;border:1px solid #c8d8ce;padding:10px}.message-compose form>label{margin:5px 0;font-size:.78rem}.message-compose [data-send]{background:#24785c;min-height:40px;padding:9px 16px}.message-targets{gap:6px;margin:4px 0}.message-targets>details{padding:7px;font-size:.78rem}.message-options{max-height:170px;overflow:auto}.message-upload{font-size:.75rem!important;margin:5px 0!important}.message-upload input{font-size:.75rem;padding:4px;margin-top:3px}.message-compose form>.small{display:none}.message-empty{justify-content:center}.message-empty .message-conversation-head{background:transparent;border:0;justify-content:center}.message-empty .message-chat-stream{display:none}.member-messages>[data-notice]:empty{display:none}.member-messages>[data-notice]{margin:0;padding:8px 16px;font-size:.8rem;background:#edf5ef}.message-image{max-height:240px}.message-bubble .message-file button{background:#f1f6f2;color:#234d3b;font-size:.8rem}
@media(max-width:700px){.message-chat-layout{display:block;height:auto;min-height:420px;max-height:none}.message-chat-list{border:0;max-height:70vh}.message-conversation{display:none;height:calc(var(--app-vh,1vh)*100 - var(--event-header-height,80px) - 100px);min-height:280px}.message-chat-open .message-chat-list{display:none}.message-chat-open .message-conversation{display:flex}.message-chat-back{display:block;padding:7px 12px}.message-title{padding:12px}.message-title button{font-size:.85rem;padding:9px}.message-bubble{max-width:92%}.message-chat-stream{padding:12px}.message-compose{padding:8px}.message-targets{grid-template-columns:repeat(2,minmax(0,1fr))}.message-targets>details{font-size:.7rem}.message-compose .message-recipient{font-size:.8rem}.message-chat-meta time{font-size:.7rem}.member-messages{padding:0!important}}

.portal-message-control{order:1;margin-left:auto}.portal-avatar-control{order:1;margin-left:0}

.message-mute{margin-left:auto;flex-shrink:0;width:40px;height:40px;padding:9px!important;background:#dcebe1!important;color:#316149!important}.message-mute svg{width:22px;height:22px}.message-mute[hidden]{display:none!important}.message-mute-mark{font-size:.8rem}.message-conversation-head>div{min-width:0}.message-conversation-head strong{overflow-wrap:anywhere}
.message-compose>summary{display:none}.message-input-row{display:flex;align-items:flex-end;gap:8px;width:100%;min-width:0}.message-input-row textarea{flex:1;min-width:0;min-height:44px;height:44px;max-height:130px;border-radius:22px;padding:11px 16px;resize:none;font-size:16px;line-height:22px;background:white}.message-input-row>button{width:44px;height:44px;min-width:44px;border-radius:50%;padding:10px!important;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.message-input-row svg{width:24px;height:24px}.message-input-row .message-attach{background:transparent;color:#567067}.message-compose [data-send]{background:#208462}.message-compose input[type=file][hidden]{display:none}.message-upload-hint{display:none}.message-targets[hidden]{display:none}.message-compose [data-drafts]:empty{display:none}.message-compose .message-file{margin:0 0 7px;background:#e4eee7;border-radius:8px;padding:5px 8px;font-size:.75rem}.message-compose .message-file button{min-height:30px;padding:3px 9px}.message-choosing .message-targets{margin-bottom:12px}.message-choosing .message-options{max-height:180px}.message-chat-stream{scroll-behavior:smooth}

.message-chat-filters{display:flex;gap:6px;padding:4px 12px 12px;background:#f5f8f6;flex-wrap:wrap}.message-chat-filters button{font-size:.76rem;border-radius:20px;padding:6px 11px;min-height:32px;color:#53675c;background:white;border:1px solid #dce5df}.message-chat-filters [aria-pressed=true]{background:#d7efdf;color:#225f40;border-color:#b4d5bd}
/* Phone app surface: one active panel, with its own single message/list scroll. */
@media(max-width:700px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body.portal-menu-ready[data-portal-tab=messages]{overflow:hidden;overscroll-behavior:none}
 body.portal-menu-ready[data-portal-tab=messages] #messages{position:fixed;top:var(--chat-window-top,0px);left:0;width:100%;height:var(--chat-window-height,100vh);max-height:none;z-index:925;margin:0;padding:0;overflow:hidden;background:#fff}
 #messages .member-messages{display:flex;flex-direction:column;height:100%;margin:0;border:0;border-radius:0;box-shadow:none;max-width:100%}
 #messages .message-title{flex-shrink:0;min-height:60px;padding:calc(9px + env(safe-area-inset-top)) 12px 9px;background:#f9fcfa;gap:8px;flex-wrap:nowrap}
 #messages .message-title h3{font-size:1.35rem;letter-spacing:-.4px;color:#176547}
 #messages .message-title button{min-width:40px;height:40px;padding:8px;font-size:.8rem}
 #messages .message-title [data-new-chat]{font-size:0;width:40px;border-radius:50%}
 #messages .message-title [data-new-chat]::after{content:'＋';font-size:25px;line-height:1}
 #messages .message-chat-layout{display:flex;flex-direction:column;flex:1;min-height:0;height:auto;max-height:none;width:100%;overflow:hidden}
 #messages .message-chat-list{display:block;flex:1;width:100%;height:auto;max-height:none;min-height:0;border:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}
 #messages .message-search{padding:9px 14px;background:white;font-size:0}
 #messages .message-search input{font-size:16px;border-radius:24px;padding:11px 16px;margin:0;background:#f0f3f1}
 #messages .message-chat-filters{background:white;padding:4px 14px 12px}
 #messages .message-chat-row{min-height:78px;padding:12px 16px}
 #messages .message-chat-copy strong{font-size:1rem;font-weight:600}
 #messages .message-preview{font-size:.88rem}
 #messages .message-avatar{width:49px;height:49px;flex-basis:49px}
 #messages .message-chat-open .message-title{display:none}
 #messages .message-conversation{display:none;min-height:0;height:auto;flex:1;width:100%;max-height:none}
 #messages .message-chat-open .message-chat-list{display:none}
 #messages .message-chat-open .message-conversation{display:flex}
 #messages .message-conversation-head{min-height:60px;flex-shrink:0;padding:calc(8px + env(safe-area-inset-top)) 10px 8px;gap:9px}
 #messages .message-conversation-head strong{font-size:1rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 #messages .message-conversation-head small{font-size:.7rem}
 #messages .message-chat-back{display:flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;background:transparent;color:#21664c;padding:5px;font-size:25px}
 #messages .message-chat-stream{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 10px;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
 #messages .message-bubble{max-width:88%;padding:8px 11px;font-size:15px;line-height:1.4}
 #messages .message-compose{flex-shrink:0;min-height:62px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#f4f7f3}
 #messages .message-input-row{gap:5px;align-items:flex-end}
 #messages .message-input-row textarea{font-size:16px;min-height:44px;max-height:110px}
 #messages .message-input-row>button{width:44px;min-width:44px;height:44px}
 #messages [data-drafts]{max-height:100px;overflow-y:auto}
 #messages .message-title+[data-notice]{flex-shrink:0}
 #messages>[data-notice],#messages .member-messages>[data-notice]{flex-shrink:0;max-height:55px;overflow:auto;font-size:.7rem;padding:5px 10px}
 #messages .message-choosing .message-chat-stream{display:none}
 #messages .message-choosing .message-compose{flex:1;min-height:0;overflow-y:auto}
 #messages .message-targets{grid-template-columns:minmax(0,1fr)}
}
.message-avatar{position:relative;overflow:visible}.message-avatar img{border-radius:50%}.message-avatar[data-online=true]::after{content:'';position:absolute;right:0;bottom:0;width:12px;height:12px;border-radius:50%;background:#26a366;border:2px solid white;box-shadow:0 0 0 1px #c4dfcc}.message-online-text{color:#248354;font-size:.7rem;font-weight:600}.message-online-text[hidden]{display:none}
@media(max-width:700px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){#messages .message-avatar[data-online=true]::after{width:14px;height:14px}}
.message-contact-picker{flex:1;min-height:0;overflow:auto;padding:12px;background:white}.message-contact-picker[hidden]{display:none}.message-contact-picker>input{position:sticky;top:0;background:#f1f5f2;z-index:1;border:0;border-radius:22px;padding:12px 16px;font-size:16px}.message-contact{display:flex;align-items:center;gap:12px;width:100%;background:white;color:#234e39;text-align:left;border-radius:0;border-bottom:1px solid #edf2ef;min-height:72px;padding:12px}.message-contact strong{font-size:1rem}.message-selecting .message-chat-stream{display:none}.message-selecting .message-compose{display:none}.message-photo{margin:5px 0;max-width:290px;width:100%;background:#e3ebe5;border-radius:10px;overflow:hidden}.message-photo-open{display:block;position:relative;width:100%;min-height:140px;padding:0!important;background:transparent;border-radius:0}.message-photo img{display:block;width:100%;height:auto;max-height:340px;object-fit:cover}.message-photo-caption{display:block;font-size:.75rem;color:#345443;padding:12px}.message-photo.loaded .message-photo-caption{display:none}.message-photo-viewer{background:#17281f;border:0;border-radius:12px;padding:12px;max-width:95vw;width:850px;max-height:94vh;z-index:10000}.message-photo-viewer::backdrop{background:#07130de6}.message-photo-viewer>img{display:block;width:100%;height:75vh;object-fit:contain}.message-photo-tools{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;gap:12px}.message-photo-download{color:white;text-decoration:none;font-weight:600}.message-photo-tools button{width:42px;height:42px;padding:8px;font-size:25px}.message-photo-viewer+.backdrop{background:#07130de6;z-index:9999}
@media(max-width:700px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){#messages .message-contact-picker{padding:10px 8px;-webkit-overflow-scrolling:touch}.message-photo{max-width:260px}.message-photo-viewer{width:100%;height:var(--chat-window-height,100vh);max-width:100%;max-height:100%;margin:0;border-radius:0}.message-photo-viewer>img{height:calc(100% - 52px)}}

.message-photo-bubble{width:290px;max-width:88%}.message-photo-bubble .message-photo{max-width:100%}.message-photo-bubble .message-body:empty{display:none}

.portal-calendar-control{order:1;margin-left:auto;color:#65459d}.portal-message-control:not(.portal-calendar-control){margin-left:0}
body .portal-calendar-control{background:#17191d!important;color:#f45160!important;border:1px solid #6d3038!important}body .portal-message-control:not(.portal-calendar-control){background:#dcf7e5!important;color:#087a43!important;border:1px solid #8bd7aa!important}
/* Keep the unread count above the speech bubble, including compact mobile headers. */
body #portal-messages-button{overflow:visible!important}body #portal-messages-button [data-message-badge]{display:inline-flex;align-items:center;justify-content:center;position:absolute;z-index:3;top:-7px;right:-7px;min-width:23px;height:23px;box-sizing:border-box;padding:0 5px;border:2px solid #c41f3d;border-radius:14px;background:#fff!important;color:#c41f3d!important;font-size:13px!important;font-weight:850;line-height:19px;box-shadow:0 2px 5px #53102226}body #portal-messages-button [data-message-badge][hidden]{display:none!important}
/* Messenger layout: list on the left, one conversation on the right; one panel on phones. */
body #messages .member-messages{position:relative;display:flex;flex-direction:column;height:calc(var(--chat-window-height,100vh) - var(--event-header-height,85px) - 76px);min-height:420px;max-height:960px;padding:0!important;border:1px solid #d9e1dd;border-radius:18px;overflow:hidden;background:white}
body #messages .message-chat-layout{display:grid;grid-template-columns:minmax(280px,34%) minmax(0,1fr);width:100%;height:100%;min-height:0;max-height:none;flex:1;overflow:hidden}
body #messages .message-chat-list{display:flex;flex-direction:column;min-width:0;min-height:0;max-height:none;overflow:hidden;background:white;border-right:1px solid #dfe5e1}
body #messages .message-title{display:flex;align-items:center;flex-wrap:nowrap;flex-shrink:0;min-height:66px;box-sizing:border-box;padding:12px 16px;gap:10px;background:#fff;border:0}
body #messages .message-title h3{font-size:25px;letter-spacing:-.5px;color:#19392c;line-height:1.2;margin:0 auto 0 0;font-weight:750}
body #messages .message-title button{width:40px;min-width:40px;height:40px;padding:8px;border:0;border-radius:50%;background:#edf5ef;color:#1d7750}
body #messages .message-title [data-new-chat]{font-size:0;background:#d9f4e1;color:#14643c}body #messages .message-title [data-new-chat]::after{content:'＋';font-size:27px;line-height:1}
body #messages .message-search{flex-shrink:0;display:block;background:white;padding:0 14px 10px;font-size:0}body #messages .message-search input{font-size:16px;padding:11px 16px;margin:0;border:0;border-radius:13px;background:#f0f2f0;min-width:0;width:100%;box-sizing:border-box}
body #messages .message-chat-filters{flex-shrink:0;padding:0 14px 12px;background:white;gap:7px}
body #messages [data-messages]{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
body #messages .message-chat-row{display:flex;align-items:center;gap:12px;min-height:82px;padding:12px 16px;background:white;color:#182c23;border:0;border-bottom:1px solid #edf0ee;border-radius:0;box-shadow:none}
body #messages .message-chat-row.selected,body #messages .message-chat-row:hover{background:#eef6f0}body #messages .message-chat-copy strong{font-size:16px;font-weight:650}body #messages .message-preview{color:#66786d;font-size:14px;line-height:1.35}body #messages .message-chat-meta time{font-size:11px;color:#65766c}body #messages .message-unread{background:#208952;min-width:20px;text-align:center;font-size:12px;padding:2px 6px}
body #messages .message-conversation{display:flex;flex-direction:column;min-height:0;width:100%;background-color:#efeae2;background-image:radial-gradient(#b8c6bb4d .7px,transparent .7px);background-size:19px 19px}
body #messages .message-conversation-head{flex-shrink:0;display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:66px;padding:10px 16px;background:#f5f7f5;border-bottom:1px solid #d8e1da}
body #messages .message-conversation-identity{flex:1;min-width:0}body #messages .message-conversation-identity strong{font-size:16px;color:#213c2d;line-height:1.3}body #messages .message-conversation-identity small{font-size:12px;color:#718074}
body #messages .message-conversation-avatar{flex:0 0 42px;width:42px;height:42px}body #messages .message-conversation-avatar>.message-avatar{width:42px;height:42px;flex-basis:42px}body #messages .message-conversation-avatar[hidden]{display:none}
body #messages .message-chat-stream{flex:1;min-height:0;padding:22px 5%;overflow-y:auto;overflow-x:hidden;gap:5px;scroll-behavior:auto;overscroll-behavior:contain;overflow-anchor:none}
body #messages .message-bubble{width:auto;min-width:70px;max-width:82%;box-sizing:border-box;background:#fff;border:0;border-radius:4px 13px 13px;padding:8px 11px;margin:0;box-shadow:0 1px 2px #132f201c;color:#182920;font-size:15px}body #messages .message-bubble.message-own{background:#d9fdd3;border-radius:13px 4px 13px 13px}
body #messages .message-bubble .message-body{font-size:15px;line-height:1.42;overflow-wrap:anywhere;margin:1px 0}body #messages .message-bubble-time{font-size:10px;color:#708073;line-height:1.1;margin-top:4px}body #messages .message-day{background:#ffffffdf;border-radius:8px;font-size:11px;padding:6px 11px;margin:8px 0 10px}
body #messages .message-compose{flex:0 0 auto;margin:0;border:0;border-radius:0;padding:10px 12px;background:#f2f4f0;min-height:64px;box-sizing:border-box}
body #messages .message-input-row{display:flex;align-items:flex-end;gap:7px;margin:0;min-width:0}body #messages .message-input-row textarea{min-height:44px;height:44px;max-height:120px;padding:11px 15px;border:0;border-radius:24px;background:white;font-size:16px;line-height:22px;resize:none;box-shadow:0 1px 2px #21402d14;margin:0}
body #messages .message-input-row>button{flex:0 0 44px;min-width:44px;width:44px;height:44px;border-radius:50%;border:0;box-shadow:none}body #messages .message-input-row [data-send]{background:#168c59;color:white}body #messages .message-attach{background:transparent;color:#5e7264}
body #messages .member-messages>[data-notice]{position:absolute;top:72px;right:12px;z-index:4;width:auto;max-width:80%;max-width:min(350px,80%);padding:7px 12px;border-radius:10px;background:#e4f3e8;box-shadow:0 2px 8px #203b2b1f;font-size:12px;line-height:1.35;pointer-events:none}body #messages .member-messages>[data-notice]:empty{display:none}body #messages .member-messages>[data-notice][data-kind=error]{background:#fff0f0;color:#a12c3c;border:1px solid #eab8c2}
@media(max-width:1000px){
 body.portal-menu-ready[data-portal-tab=messages]{overflow:hidden;overscroll-behavior:none}body.portal-menu-ready[data-portal-tab=messages]>.lz-touch-bar,body.portal-menu-ready[data-portal-tab=messages]>header{visibility:hidden}
 body.portal-menu-ready[data-portal-tab=messages] #messages{position:fixed;top:var(--chat-window-top,0px);left:0;right:0;width:100%;height:var(--chat-window-height,100vh);max-height:none;z-index:925;margin:0;padding:0;overflow:hidden;background:#fff}
 body #messages .member-messages{height:100%;max-height:none;min-height:0;border:0;border-radius:0;margin:0}
 body #messages .message-chat-layout{display:flex;flex-direction:column;min-height:0;height:100%}
 body #messages .message-chat-list{display:flex;flex:1;width:100%;border:0;min-height:0;height:100%}
 body #messages .message-title{padding:calc(10px + env(safe-area-inset-top)) 14px 10px;min-height:64px}body #messages .message-title h3{font-size:28px}
 body #messages .message-conversation{display:none;flex:1;height:100%;min-height:0;max-height:none}
 body #messages .message-chat-open .message-chat-list{display:none}body #messages .message-chat-open .message-conversation{display:flex}
 body #messages .message-conversation-head{padding:calc(8px + env(safe-area-inset-top)) 10px 8px;min-height:64px;gap:7px}
 body #messages .message-chat-back{display:flex;align-items:center;justify-content:center;width:32px;min-width:32px;height:42px;padding:3px;font-size:26px;border:0;background:transparent;color:#21834e}
 body #messages .message-conversation-head>.lz-app-update{width:32px!important;min-width:32px;flex-basis:32px;height:36px!important;padding:6px!important;margin:0}
 body #messages .message-mute{width:34px!important;min-width:34px;height:36px;padding:6px!important;background:transparent!important;margin-left:0}
 body #messages .message-conversation-identity strong{font-size:16px;-webkit-line-clamp:1}body #messages .message-conversation-identity small{font-size:11px}
 body #messages .message-chat-stream{padding:13px 12px;gap:5px}body #messages .message-bubble{max-width:88%;font-size:15px}
 body #messages .message-compose{min-height:62px;padding:8px 7px calc(8px + env(safe-area-inset-bottom))}body #messages .message-input-row{gap:4px}body #messages .message-input-row textarea{max-height:104px}
 body #messages .message-selecting .message-chat-stream{display:none}body #messages .message-selecting .message-contact-picker{display:block;flex:1;min-height:0}
 body #messages .message-selecting .message-compose{display:none}body #messages .message-choosing .message-compose{flex:0 0 auto;overflow:visible}
 body #messages [data-messages]{padding-bottom:env(safe-area-inset-bottom)}
}
/* Replies, reactions and recall share the same touch controls on every device. */
body #messages .message-bubble-actions{display:flex;justify-content:flex-end;gap:4px;margin:3px 0 0}
body #messages .message-action{display:inline-flex;align-items:center;justify-content:center;min-width:36px;width:36px;height:32px;min-height:32px;padding:5px;border:0;border-radius:12px;background:rgba(70,96,87,.08);color:#47635a;font-size:22px;box-shadow:none}
body #messages .message-action svg{width:20px;height:20px}
body #messages .message-action:focus-visible{outline:2px solid #128c7e;outline-offset:2px}
body #messages .message-reaction-picker{display:flex;flex-wrap:wrap;gap:3px;padding:5px;border-radius:14px;background:#fff;box-shadow:0 2px 8px #0002;margin-top:5px}
body #messages .message-reaction-picker[hidden]{display:none}
body #messages .message-reaction-picker button{min-width:36px;min-height:38px;padding:3px;border:0;background:transparent;font-size:23px;box-shadow:none}
body #messages .message-reactions{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px}
body #messages .message-reaction{min-height:28px;min-width:42px;padding:2px 7px;background:#fff;border:1px solid #d6ded9;border-radius:20px;color:#34463e;font-size:14px;box-shadow:none}
body #messages .message-reaction.own{background:#d6f5e6;border-color:#128c7e}
body #messages .message-quote,body #messages .message-reply-preview{display:flex;gap:8px;text-align:left;background:rgba(40,100,78,.08);border:0;border-left:4px solid #199078;border-radius:6px;padding:7px 10px;color:#37473f;min-width:0;box-shadow:none}
body #messages .message-quote{flex-direction:column;gap:3px;width:100%;margin:0 0 5px;min-height:0;font-size:13px;overflow-wrap:anywhere}
body #messages .message-quote strong,body #messages .message-reply-preview strong{color:#087c68;font-size:12px}
body #messages .message-reply-preview{margin:4px 8px 7px;align-items:center;justify-content:space-between;max-height:95px;overflow:hidden;flex-shrink:0}
body #messages .message-reply-preview[hidden]{display:none}
body #messages .message-reply-preview>div{display:flex;flex-direction:column;min-width:0;gap:3px}
body #messages .message-reply-preview span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}
body #messages .message-reply-cancel{border:0;background:transparent;color:#52685d;min-width:38px;min-height:38px;padding:4px;font-size:24px;box-shadow:none}
body #messages .message-retracted .message-body{font-style:italic;color:#6c7f74}
body #messages .message-highlight{outline:3px solid #dfb341;outline-offset:2px}
/* LZ messenger: familiar chat rhythm with our own restrained watermark. */
body #messages .member-messages{border-color:#d7e4db;box-shadow:0 10px 36px #15392a0c}
body #messages .message-conversation{position:relative;isolation:isolate;background:#edf1eb;background-image:none}
body #messages .message-conversation::before{content:'';position:absolute;left:50%;top:48%;width:230px;height:260px;width:clamp(150px,36%,250px);height:260px;max-height:45%;transform:translate(-50%,-50%);background:url('/assets/logo-hiesfeld.jpeg') center/contain no-repeat;opacity:.065;filter:grayscale(.55);pointer-events:none;z-index:0}
body #messages .message-conversation-head,body #messages .message-chat-stream,body #messages .message-compose,body #messages .message-contact-picker{position:relative;z-index:1}
body #messages .message-title{background:#fafcfb;border-bottom:1px solid #edf2ee}
body #messages .message-title h3{color:#125b43;letter-spacing:-.6px}
body #messages .message-title [data-new-chat]{background:#087c57;color:#fff}
body #messages .message-search{padding-top:10px;background:#fafcfb}
body #messages .message-search input{background:#eef3ef;border:1px solid #e4ece6;border-radius:22px}
body #messages .message-chat-filters{background:#fafcfb;border-bottom:1px solid #edf2ee}
body #messages .message-chat-filters button{background:#fff;border-color:#e0e9e3;color:#617167;min-height:36px}
body #messages .message-chat-filters [aria-pressed=true]{background:#d9f5e3;border-color:#c0e6cf;color:#126340;font-weight:750}
body #messages .message-chat-row{padding-top:13px;padding-bottom:13px;border-bottom-color:#f0f3f1}
body #messages .message-chat-row.selected{background:#e5f3e9;box-shadow:inset 3px 0 #1a8a60}
body #messages .message-chat-row:hover{background:#f1f7f3}
body #messages .message-avatar{background:#dceee3;color:#23664c;box-shadow:inset 0 0 0 1px #356d4612}
body #messages .message-chat-copy strong{font-weight:700;letter-spacing:-.15px}
body #messages .message-chat-copy .message-preview{margin-top:5px;color:#718078}
body #messages .message-conversation-head{background:#fbfdfb;border-bottom:1px solid #dce7de;box-shadow:0 1px 5px #173e2710}
body #messages .message-conversation-identity strong{color:#163f2d;font-weight:750}
body #messages .message-day{background:#ffffffeb;color:#5d7063;border:1px solid #dfe7df;box-shadow:0 1px 3px #163e2410;border-radius:9px;font-weight:600;letter-spacing:.02em}
body #messages .message-bubble{background:#fff;border:1px solid #dfe7df;border-radius:5px 15px 15px;padding:9px 12px;box-shadow:0 2px 3px #1b38290c}
body #messages .message-bubble.message-own{background:#dcf8ce;border-color:#cdeabc;border-radius:15px 5px 15px 15px}
body #messages .message-sender{color:#17734c;font-weight:750;margin-bottom:4px}
body #messages .message-bubble .message-body{line-height:1.5;color:#20362a}
body #messages .message-bubble-time{font-size:11px;color:#6c7d70;margin-top:6px}
body #messages .message-bubble-actions{gap:5px;margin-top:6px}
body #messages .message-action{background:#315f4110;color:#5b7866;border-radius:50%;height:32px}
body #messages .message-action:hover{background:#315f4120;color:#156d49}
body #messages .message-quote{background:#2c774c0c;border-left-color:#319c6d;padding:8px 10px;border-radius:7px}
body #messages .message-reaction{background:#ffffffed;border-color:#d6e6da;box-shadow:0 1px 2px #234b3210}
body #messages .message-reaction.own{background:#e9fbed;border-color:#6fbd8d}
body #messages .message-compose{background:#f6f8f4;border-top:1px solid #dce7de;padding-top:10px;padding-bottom:10px}
body #messages .message-input-row textarea{border:1px solid #e0e9e1;background:#fff;box-shadow:0 2px 5px #27473408}
body #messages .message-input-row textarea:focus{outline:2px solid #74b796;outline-offset:-1px}
body #messages .message-input-row textarea::placeholder{color:#87968b}
body #messages .message-input-row [data-send]{background:#0b855b;box-shadow:0 2px 5px #15634020}
body #messages .message-input-row [data-send]:hover{background:#096d4c}
body #messages .message-input-row .message-attach{background:#e8f0e9;color:#587461}
body #messages .message-image{border-radius:11px}
@media(max-width:1000px){body #messages .member-messages{box-shadow:none}body #messages .message-conversation::before{width:190px;height:220px;max-width:54%;opacity:.055}body #messages .message-chat-stream{padding:14px 11px;gap:7px}body #messages .message-bubble{max-width:88%}body #messages .message-compose{padding:8px 7px calc(8px + env(safe-area-inset-bottom))}}
@media(prefers-reduced-transparency:reduce){body #messages .message-conversation::before{display:none}}

/* Keep the unselected conversation calm: only the larger LZ watermark. */
body #messages .message-conversation.message-empty>.message-conversation-head{display:none}
body #messages .message-conversation::before{width:340px;height:380px;width:clamp(210px,52%,380px);height:380px;max-width:70%;max-height:65%;top:50%}
@media(max-width:1000px){body #messages .message-conversation::before{width:250px;height:285px;max-width:66%;max-height:58%}}

/* Smartphone navigation: a full list or a full conversation, never two columns. */
@media(max-width:700px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body.portal-menu-ready[data-portal-tab=messages] #messages{box-sizing:border-box;max-width:100%;overflow:hidden}
 body #messages .member-messages,body #messages .message-chat-layout{width:100%;height:100%;min-height:0;max-height:none}
 body #messages .message-chat-layout{display:flex;flex-direction:column;overflow:hidden}
 body #messages .message-chat-list{display:flex;width:100%;height:100%;min-height:0;border:0}
 body #messages .message-conversation{display:none;width:100%;height:100%;min-height:0}
 body #messages .message-chat-open .message-chat-list{display:none}
 body #messages .message-chat-open .message-conversation{display:flex}
 body #messages .message-conversation-head{flex-wrap:nowrap;flex-shrink:0;min-width:0;gap:7px}
 body #messages .message-chat-back{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;padding:9px;border:0;border-radius:50%;background:#e4efe7;color:#15744d}
 body #messages .message-chat-back svg{display:block;width:25px;height:25px;flex-shrink:0}
 body #messages .message-chat-back:focus-visible{outline:2px solid #15744d;outline-offset:1px}
 body #messages .message-conversation-avatar{flex:0 0 38px;width:38px;height:38px}
 body #messages .message-conversation-avatar>.message-avatar{width:38px;height:38px;flex-basis:38px}
 body #messages .message-conversation-identity{min-width:0;overflow:hidden}
 body #messages .message-conversation-identity strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 body #messages .message-chat-stream{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}
 body #messages .message-compose{flex:0 0 auto;max-width:100%}
}

body #messages .message-avatar.message-avatar-lz-logo{background:#211332;box-shadow:inset 0 0 0 1px #ffffff30}
body #messages .message-avatar-lz-logo img{display:block;width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.message-new-group{display:flex;align-items:center;min-height:50px;width:100%;padding:12px 16px;margin:0 0 12px;border:1px solid #b2d9c1;border-radius:12px;background:#e4f6e9;color:#14663e;font:700 15px system-ui,Arial;text-align:left}
.message-group-editor{width:540px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:20px;border:1px solid #bed8c6;border-top:5px solid #20825a;border-radius:18px;background:#f7fbf8;color:#254b36;box-sizing:border-box;overflow:auto}
.message-group-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.message-group-heading h2{font-size:22px;margin:0}
.message-group-heading button{width:40px;min-width:40px;height:40px;border:0;border-radius:50%;background:#e5efe8;color:#35664b;font-size:25px;padding:5px}
.message-group-editor label{font-size:14px;color:#375c44}
.message-group-editor input:not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;margin-top:6px;border:1px solid #c7dbcd;border-radius:10px;padding:11px;background:white;font:16px system-ui,Arial}
.message-group-photo{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding:12px;background:#e9f3ec;border-radius:12px}
.message-group-photo .message-avatar{width:68px;height:68px;flex-basis:68px;font-size:30px}
.message-group-photo label{flex:1;min-width:0;margin:0}
.message-group-photo input[type=file]{font-size:12px;padding:5px!important}
.message-group-editor [data-group-people]{padding:6px 0}
.message-group-editor .message-recipient{border-bottom:1px solid #e0eae2;padding:9px!important}
.message-group-editor [type=checkbox]{accent-color:#21825a}
.message-group-editor [data-group-count]{font-size:12px;color:#627e68}
.message-group-editor [data-group-notice]{font-size:13px;color:#9b3041;overflow-wrap:anywhere}
.message-group-editor [type=submit]{width:100%;min-height:46px;border:0;border-radius:11px;background:#168355;color:white;font-weight:750}
@media(max-width:600px){.message-group-editor{padding:16px;max-width:calc(100vw - 16px)}.message-group-heading h2{font-size:20px}}
.message-group-info-control{cursor:pointer;border-radius:50%}
.message-group-info-control:focus-visible{outline:3px solid #63a47b;outline-offset:3px}
.message-group-editor [data-group-members]{padding-left:22px;font-size:14px;line-height:1.9;color:#476650}
.message-group-editor [hidden]{display:none!important}

/* Isolate the phone viewport from Safari page bounce; only the active list scrolls. */
@media(max-width:1000px){
 html.lz-message-surface{height:100%;overflow:hidden;overscroll-behavior:none}
 html.lz-message-surface body{position:fixed;top:0;bottom:0;left:0;right:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
 html.lz-message-surface #messages{box-sizing:border-box;min-height:0;overflow:hidden}
 body #messages [data-chat-stream],body #messages [data-messages],body #messages .message-contact-picker{touch-action:pan-y pinch-zoom;overscroll-behavior-y:contain;scroll-behavior:auto}
}
/* Group info shares the same touch-friendly dialog and scrolls as one surface. */
.message-group-info-button{flex:0 0 40px!important;min-width:40px!important;width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;font-size:24px!important;color:#176541!important;background:#e6f4ec!important;border:1px solid #afd4be!important;border-radius:50%!important}
.message-group-member-list{padding:0;margin:12px 0 22px;list-style:none}.message-group-member-list li{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e3ebe6;overflow-wrap:anywhere}.message-group-initials{flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#dceee3;color:#176541;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800}.message-group-member-options{display:grid;gap:8px;margin:12px 0}.message-group-member-options .message-recipient{display:flex;align-items:center;gap:10px;margin:0;padding:10px;background:#eef7f1;border-radius:10px}.message-group-member-options input[type=checkbox]{width:22px;height:22px;flex:0 0 22px}.message-group-editor [data-photo-actions]{display:flex;flex-wrap:wrap;gap:8px}.message-group-editor [hidden]{display:none!important}.message-group-editor [data-member-picker]{margin-top:12px;padding:14px;background:#f5faf7;border:1px solid #cee3d5;border-radius:14px}.message-add-member{background:#19784c!important;color:#fff!important}
