.chat-header-link{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;color:inherit}
.sn-chat-page{max-width:1440px;margin:auto}
.chat-layout{display:grid;grid-template-columns:320px minmax(0,1fr);height:min(820px,calc(100dvh - 165px));min-height:420px;border:1px solid #e2e6e5;border-radius:14px;overflow:hidden;background:#fff}
.chat-layout aside{min-width:0;border-right:1px solid #e2e6e5;display:flex;flex-direction:column;overflow:hidden}
.chat-layout main{min-width:0;overflow:hidden}
.chat-toolbar,.chat-view-head,.chat-compose-tools{display:flex;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #edf0ef}
.chat-toolbar{flex-wrap:wrap}
.chat-toolbar h1{font-size:20px;margin:0;flex:1}
.sn-chat-page button,.chat-popup button,.chat-dialog button{font:inherit;cursor:pointer;min-height:36px}
.chat-icon,.chat-secondary{border:1px solid #dce1df;background:#fff;color:#35433c;border-radius:8px;padding:6px 10px}
.chat-primary{background:var(--main-color,#036444);color:#fff;border:0;border-radius:8px;padding:8px 16px}
.chat-search,.chat-identity,.chat-dialog input[type=text]{box-sizing:border-box;width:100%;border:1px solid #dce1df;border-radius:8px;min-height:40px}
.chat-filters{display:flex;gap:6px;overflow:auto;padding:8px}
.chat-filters button{white-space:nowrap;font-size:12px}
.chat-filters button[aria-pressed=true]{border-color:var(--main-color,#036444);background:#edf6f1;color:var(--main-color,#036444)}
.chat-list{overflow:auto;flex:1}
.chat-list-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:12px;border:0;border-bottom:1px solid #eef0ef;background:white;color:#24352c}
.chat-list-item:hover,.chat-list-item.active{background:#f0f5f2}
.chat-list-item img,.chat-view-head img{width:40px;height:40px;object-fit:cover;border-radius:50%;flex-shrink:0}
.chat-list-text{min-width:0;flex:1}
.chat-list-text strong,.chat-list-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-list-text small{color:#6a756e;margin-top:4px;font-size:12px}
.chat-empty,.chat-welcome{padding:28px;text-align:center;color:#667269}
.chat-view{height:100%;display:flex;flex-direction:column;position:relative;min-width:0;background:#fff}
.chat-view-head{flex-shrink:0;min-height:58px;box-sizing:border-box}
.chat-view-title{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:600}
.chat-view-title small{display:block;font-weight:400;font-size:11px;color:#667269;margin-top:3px}
.chat-view-head button{padding:4px 8px}
.chat-notice{font-size:13px;padding:10px 14px;background:#f4f7f5;border-bottom:1px solid #e8ece9;line-height:1.6}
.chat-notice:empty{display:none}
.chat-notice button{margin:4px}
.chat-history{flex:1;overflow:auto;overscroll-behavior:contain;padding:16px;min-height:80px;scrollbar-gutter:stable;overflow-anchor:none}
.chat-bubble-row{display:flex;flex-direction:column;align-items:flex-start;margin:0 0 14px;min-width:0}
.chat-bubble-row.own{align-items:flex-end}
.chat-bubble{max-width:min(82%,620px);padding:10px 13px;border-radius:12px;background:#f0f2f1;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;color:#25362d}
.own .chat-bubble{background:#e2efe7}
.chat-bubble a{color:#075c42;text-decoration:underline;overflow-wrap:anywhere}
.chat-bubble-sender{font-size:11px;font-weight:600;color:#627166;margin-bottom:3px}
.chat-bubble-meta{display:flex;gap:8px;font-size:10px;color:#758077;align-items:center;margin-top:3px}
.chat-message-menu{border:0;background:transparent;color:#68776d;padding:2px 6px;min-height:28px!important}
.chat-system{text-align:center;margin:12px 0;color:#788279;font-size:11px;overflow-wrap:anywhere}
.chat-reply{padding:7px 9px;border-left:3px solid #9bb6a7;background:rgb(255 255 255 / 50%);font-size:12px;margin-bottom:7px;max-height:90px;overflow:hidden}
.chat-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-top:6px}
.chat-photos img{width:100%;height:auto;object-fit:cover;cursor:zoom-in;border-radius:6px;min-width:100px}
.chat-card{display:block;border:1px solid #c8dacf;padding:12px;border-radius:8px;background:#fff;white-space:normal}
.chat-composer{padding:8px 12px max(10px,env(safe-area-inset-bottom));border-top:1px solid #e4e9e6;flex-shrink:0}
.chat-compose-line{display:flex;gap:8px;align-items:flex-end}
.chat-composer textarea{box-sizing:border-box;min-height:44px;max-height:130px;width:100%;resize:none;border:1px solid #d8dfda;border-radius:10px;padding:10px;font:inherit;line-height:1.4}
.chat-compose-tools{padding:4px 0;border:0;font-size:12px}
.chat-compose-tools small{flex:1;color:#758077}
.chat-draft-extra{display:flex;gap:8px;flex-wrap:wrap;margin:5px 0}
.chat-draft-photo{position:relative;width:70px;font-size:11px}
.chat-draft-photo img{width:70px;height:70px;object-fit:cover;border-radius:6px}
.chat-draft-photo button{position:absolute;right:0;top:0;min-height:24px;font-size:11px;padding:2px 5px}
.chat-error{color:#a22929;padding:6px 0;font-size:12px;white-space:pre-wrap}
.chat-error:empty{display:none}
.chat-new{position:absolute;bottom:165px;left:50%;transform:translateX(-50%);border-radius:20px;box-shadow:0 2px 10px #ccc}
.chat-popups{position:fixed;bottom:0;right:20px;display:flex;gap:14px;z-index:1400;pointer-events:none}
.chat-popup{pointer-events:auto;width:350px;height:min(560px,80dvh);box-shadow:0 3px 24px #0003;border:1px solid #cdd7d0;border-radius:12px 12px 0 0;overflow:hidden;background:#fff;align-self:flex-end}
.chat-popup.minimized{height:58px}
.chat-popup .chat-view-head{padding:8px}
.chat-popup .chat-view-title{font-size:13px}
.chat-popup .chat-history{padding:10px}
.chat-popup .chat-bubble{max-width:90%;font-size:13px}
.chat-dialog-body{display:grid;gap:12px}
.chat-dialog-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px;border-bottom:1px solid #edf0ed}
.chat-dialog-row strong{flex:1}
.chat-dialog label{display:flex;gap:8px;align-items:center}
.chat-dialog input[type=checkbox]{width:18px;height:18px}
.chat-dialog textarea{width:100%;min-height:90px;box-sizing:border-box}
.chat-dialog-photo{width:100%;max-height:65dvh;object-fit:contain}
.chat-dialog details summary{cursor:pointer;padding:8px}
.chat-dialog .chat-list{max-height:40vh}
.chat-online{color:#257c47!important}
.chat-back{display:none}
.chat-danger{color:#a62b2b}
.chat-pending{opacity:.8;border:1px dashed #a9b9ae}
.chat-pending.failed{border-color:#c99}
.chat-connect{font-size:12px;color:#966225;padding:5px 10px}
.sn-chat-page [hidden],.chat-popup [hidden],.chat-dialog [hidden]{display:none!important}
.chat-view button:focus-visible,.chat-dialog button:focus-visible{outline:2px solid #34745a;outline-offset:2px}
@media(max-width:760px){.chat-layout{grid-template-columns:1fr;height:calc(var(--chat-viewport,100dvh) - 160px);min-height:250px;border-radius:8px}
.chat-layout main{display:none}
.chat-layout.chat-open aside{display:none}
.chat-layout.chat-open main{display:block}
.chat-back{display:inline-flex}
.chat-view-head{padding:8px;gap:6px}
.chat-history{padding:10px}
.chat-bubble{max-width:88%}
.chat-popups{display:none}
.chat-composer textarea{font-size:16px}
.chat-composer{padding-bottom:max(8px,env(safe-area-inset-bottom))}
.chat-layout.chat-open{position:fixed;inset:0;height:var(--chat-viewport,100dvh);z-index:1600;border-radius:0}
.chat-popup-launch{display:none}
.chat-notice{padding:6px 10px}
.chat-header-link{min-width:34px;min-height:34px}}/* Conversation enhancements share the same components in full and floating chat. */
.chat-pin-strip{flex-shrink:0;padding:4px 10px;background:#f1f7f3;border-bottom:1px solid #e1ebe4;overflow:hidden}
.chat-pin-strip .chat-option{display:block;width:100%;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;border:0;background:transparent;padding:6px;font-size:13px}
.chat-pin-strip i{margin-right:6px}
.chat-latest{flex-shrink:0;align-self:center;margin:5px;font-size:13px}
.chat-reaction-picker{display:flex;gap:2px;flex-wrap:wrap;align-items:center}
.chat-reaction-choice{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:50%;background:transparent;color:#243b2e;min-width:38px;width:38px;height:40px;min-height:40px;padding:5px;cursor:pointer;box-shadow:none}
.chat-reaction-image{display:block;width:28px;height:28px;flex-shrink:0;object-fit:contain;user-select:none;-webkit-user-drag:none}
.chat-reaction-legacy{font-size:24px;line-height:28px;text-align:center}
.chat-reaction-choice.selected{background:#d9eee2;outline:1px solid #28744e}
.chat-reaction-choice:hover{background:#edf5ef}
.chat-reaction-choice:hover .chat-reaction-image{transform:scale(1.15)}
.chat-reaction-choice:disabled{opacity:.55;cursor:wait}
.chat-reaction-choice:focus-visible{outline:2px solid #34745a;outline-offset:1px}
.chat-reaction-popover{position:fixed;z-index:10020;box-sizing:border-box;width:max-content;max-width:calc(100vw - 16px);padding:6px;border:1px solid #e1e6e2;border-radius:24px;background:#fff;color:#243b2e;box-shadow:0 3px 16px #0002}
.chat-reaction-popover .chat-error{max-width:260px;margin:0;padding:6px 8px;font-size:12px;line-height:1.4}
.chat-popover-content{overflow-y:auto;overscroll-behavior:contain}
.chat-message-popover{position:fixed;z-index:10020;box-sizing:border-box;width:205px;max-width:calc(100vw - 16px);padding:6px;border:1px solid #e1e6e2;border-radius:12px;background:#fff;color:#243b2e;box-shadow:0 4px 20px #0003}
.chat-message-popover:after{content:"";position:absolute;width:12px;height:12px;left:var(--chat-popover-arrow);background:#fff;transform:translateX(-50%) rotate(45deg)}
.chat-message-popover[data-side=above]:after{bottom:-7px;border-right:1px solid #e1e6e2;border-bottom:1px solid #e1e6e2}
.chat-message-popover[data-side=below]:after{top:-7px;border-left:1px solid #e1e6e2;border-top:1px solid #e1e6e2}
.chat-message-popover .chat-message-options{display:flex;flex-direction:column;gap:2px}
.chat-message-popover .chat-option{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;min-height:36px;padding:8px 10px;border:0;border-radius:7px;background:transparent;color:#243b2e;box-shadow:none;font:inherit;font-size:14px;line-height:1.35;text-align:left;cursor:pointer}
.chat-message-popover .chat-option i{width:18px;text-align:center;flex:none;color:inherit}
.chat-message-popover .chat-option:hover,.chat-message-popover .chat-option:focus-visible{background:#edf2ef;outline:none;transform:none}
.chat-message-popover .chat-option:disabled{opacity:.5;cursor:wait}
.chat-message-popover .chat-error{margin:0;padding:6px;font-size:12px;line-height:1.4}
.chat-view .chat-reactions{position:absolute;right:4px;bottom:-10px;z-index:1;display:flex;align-items:center;gap:2px;width:max-content;max-width:none;min-height:22px;height:22px;box-sizing:border-box;padding:2px 5px;border:1px solid #e4e8e5;border-radius:14px;background:#fff;color:#526058;box-shadow:0 1px 3px #0002;cursor:pointer;white-space:nowrap;line-height:16px;font-size:11px}
.chat-view .chat-reactions.selected{border-color:#a9c8b6}
.chat-reaction-chip{display:flex;flex:0 0 auto}
.chat-reaction-chip+.chat-reaction-chip{margin-left:-4px}
.chat-reaction-chip .chat-reaction-image{width:16px;height:16px}
.chat-reaction-chip .chat-reaction-legacy{font-size:14px;line-height:16px}
.chat-reaction-total{margin-left:2px;font-size:11px;font-weight:500;line-height:16px}
.chat-bubble-row.has-reactions .chat-bubble-meta{margin-top:13px}
.chat-target .chat-bubble{outline:3px solid #67ab84;outline-offset:2px}
.chat-view .chat-reply{display:block;text-align:left;border:0;cursor:pointer;white-space:pre-wrap;max-width:100%;font:inherit}
.chat-view .chat-reply:disabled{cursor:default}
.chat-search-dialog{width:min(560px,calc(100% - 24px))}
.chat-search-dialog .chat-search{width:100%;min-height:44px;box-sizing:border-box;font-size:16px;padding:10px;border:1px solid #d9e4dd;border-radius:10px}
.chat-search-context,.chat-search-status{font-size:13px;line-height:1.5;margin:0;color:#52665a}
.chat-search-results,.chat-pin-list{display:grid;gap:8px}
.chat-search-result{display:flex;flex-direction:column;gap:5px;align-items:flex-start;text-align:left;width:100%;padding:10px;border:1px solid #e2eae5;border-radius:10px;background:#f8faf9;overflow-wrap:anywhere;white-space:pre-wrap;min-width:0;cursor:pointer}
.chat-dialog .chat-search-result,.chat-dialog .chat-search-result:hover,.chat-view .chat-reactions,.chat-dialog .chat-reaction-choice{color:#243b2e}
.chat-search-result small{color:#6c7d72;font-size:11px}
.chat-search-result mark{background:#d5efbf;color:#173b23}
.chat-search-dates label{margin:8px 0;justify-content:space-between}
.chat-search-dates input{min-height:40px;max-width:65%;border:1px solid #d9e4dd;border-radius:8px;padding:6px;box-sizing:border-box}
.chat-pin-item{display:grid;gap:4px;padding-bottom:10px;border-bottom:1px solid #e8eeea}
.chat-pin-item>.chat-option{justify-self:end}
.chat-search-status[role=status]{min-height:20px}
@media(max-width:760px){.chat-search-dialog{max-height:calc(var(--chat-viewport,100dvh) - 24px)}
.chat-reaction-picker{justify-content:space-between}
.chat-reaction-choice{min-width:40px}}/* Shared conversation controls and the desktop header inbox. */
.chat-filters button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex-shrink:0}
.chat-header-panel{position:fixed;z-index:1500;width:380px;max-width:calc(100vw - 24px);height:660px;display:flex;flex-direction:column;background:#fff;color:#24352c;border:1px solid #e2e6e5;border-radius:14px;box-shadow:0 8px 32px #0002;overflow:hidden}
.chat-header-panel[hidden]{display:none!important}
.chat-header-content{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.chat-header-panel .chat-toolbar{padding:14px;gap:6px}
.chat-header-panel h2{flex:1;margin:0;font-size:22px}
.chat-header-panel .chat-list{min-height:0;overscroll-behavior:contain}
.chat-header-panel button{font:inherit;cursor:pointer}
.chat-header-full{display:flex;align-items:center;justify-content:center;min-height:48px;padding:8px 12px;border-top:1px solid #e6ebe8;font-weight:600;color:var(--main-color,#036444);text-decoration:none;flex-shrink:0}
.chat-header-full:hover{background:#f0f5f2}
.chat-header-panel .chat-filters{gap:4px;padding:8px;flex-wrap:wrap;flex-shrink:0}
.chat-header-panel .chat-filters button{font-size:12px;padding:6px 8px;min-height:32px}
.chat-header-panel .chat-toolbar,.chat-header-panel .chat-header-full{flex-shrink:0}
.chat-header-panel .chat-search{border-radius:22px;background:#f5f7f6}
.chat-view button,.chat-toolbar button,.chat-filters button,.chat-list button,.chat-dialog button{box-shadow:none;transform:none}
.chat-view button:hover,.chat-toolbar button:hover,.chat-filters button:hover,.chat-list button:hover,.chat-dialog button:hover{transform:none;box-shadow:none}
.chat-view .chat-icon,.chat-toolbar .chat-icon,.chat-dialog .chat-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;min-height:36px;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;color:var(--main-color,#036444);font-size:20px;line-height:1;text-decoration:none}
.chat-view .chat-icon:hover,.chat-toolbar .chat-icon:hover,.chat-dialog .chat-icon:hover{background:#edf3ef;color:var(--main-color,#036444);box-shadow:none;transform:none}
.chat-view .chat-icon i,.chat-toolbar .chat-icon i,.chat-dialog .chat-icon i,.chat-attach-option i{color:inherit;pointer-events:none}
.chat-view button:disabled{opacity:.4;cursor:default}
.chat-view .chat-back{display:none}
.chat-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;flex-shrink:0}
.chat-avatar-fallback{display:inline-flex;align-items:center;justify-content:center;background:#e8efeb;color:#607669;font-size:18px}
.chat-popup{width:360px}
.chat-popup .chat-view-head{gap:4px;min-height:58px}
.chat-popup .chat-view-head .chat-avatar{width:34px;height:34px}
.chat-popup .chat-view-head .chat-icon{width:30px;height:36px;font-size:19px}
.chat-view-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-view-title small{white-space:normal;overflow-wrap:anywhere}
.chat-list-item{border-radius:0;box-shadow:none;transform:none;justify-content:flex-start}
.chat-message-line{display:flex;align-items:center;gap:4px;width:100%;min-width:0}
.own .chat-message-line{flex-direction:row-reverse}
.chat-message-line .chat-bubble,.chat-popup .chat-message-line .chat-bubble{max-width:min(calc(100% - 40px),620px);box-sizing:border-box;min-width:0}
.chat-view .chat-message-menu{width:32px;height:32px;min-height:32px!important;font-size:20px;color:#77837b}
.chat-bubble-meta{padding:0 8px}
.chat-compose-line{align-items:flex-end;gap:4px}
.chat-composer textarea{min-width:0;flex:1;min-height:40px;border:0;background:#f1f4f2;border-radius:20px;padding:10px 12px}
.chat-compose-line>.chat-icon,.chat-attach>.chat-icon{width:36px;height:40px;font-size:22px}
.chat-attach{position:relative;flex-shrink:0}
.chat-attach-menu{position:absolute;left:0;bottom:calc(100% + 8px);min-width:180px;padding:6px;background:white;border:1px solid #e0e7e2;border-radius:12px;box-shadow:0 4px 18px #0002;z-index:2}
.chat-attach-option{display:flex;justify-content:flex-start;gap:10px;width:100%;padding:10px;border:0;border-radius:8px;background:transparent;color:#24352c;box-shadow:none;font:inherit}
.chat-attach-option:hover{background:#edf3ef;transform:none}
.chat-attach-option i{font-size:22px;color:var(--main-color,#036444)}
.chat-draft-extra:empty{display:none}
.chat-draft-extra>.chat-reply{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box}
.chat-draft-extra .chat-icon{width:28px;height:28px;min-height:28px;font-size:18px}
.chat-view .chat-draft-photo .chat-icon{background:#fff;color:#35433c}
.chat-header-panel :focus-visible,.chat-view .chat-icon:focus-visible{outline:2px solid #34745a;outline-offset:-2px}
.chat-header-panel [hidden]{display:none!important}
@media(max-width:1099px){.chat-header-panel,.chat-popups{display:none}}
@media(max-width:760px){.chat-view .chat-back{display:inline-flex}
.chat-view-head{gap:4px}
.chat-message-line .chat-bubble{max-width:calc(100% - 36px)}}/* Account identity,compact lists and mobile viewport refinements. */
#mobile-header .chat-header-link{box-sizing:border-box;flex:0 0 auto;width:42px;height:42px;min-width:42px;min-height:42px;padding:0;border:1px solid #e2e8f0;border-radius:13px;background:#fff;color:var(--main-color);box-shadow:none;vertical-align:middle;text-decoration:none}
#mobile-header .chat-header-link:hover{background:#f1f5f9}
#mobile-header .chat-header-link>i{font-size:19px;color:inherit}
.chat-header-badge[hidden]{display:none!important}
.chat-list-item{padding:10px 12px;line-height:1.3}
.chat-list-text strong{margin:0;padding:0;line-height:1.25}
.chat-list-text small{margin-top:2px;line-height:1.3}
.chat-account-name,.chat-list-text .chat-account-name{display:flex;align-items:center;gap:3px;min-width:0;max-width:100%;line-height:1.25}
.chat-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-account-name .verified-badge{flex:0 0 auto;width:17px;height:17px}
.chat-title-avatar{display:flex;flex:0 0 auto;align-items:center;text-decoration:none}
.chat-title-link{display:block;min-width:0;color:inherit;text-decoration:none}
.chat-title-link:hover .chat-name-text{text-decoration:underline}
.chat-title-link:focus-visible,.chat-title-avatar:focus-visible{outline:2px solid #34745a;outline-offset:2px}
.chat-person-row{flex-wrap:nowrap}
.chat-person-row .chat-account-name{flex:1}
.chat-message-avatar{display:inline-flex;flex:0 0 24px;align-self:flex-end;width:24px;height:24px;margin-bottom:2px}
.chat-message-avatar .chat-avatar{width:24px;height:24px;font-size:12px}
.own .chat-message-line{flex-direction:row;justify-content:flex-end}
.chat-bubble-wrap{position:relative;flex:0 1 auto;min-width:0;max-width:min(calc(100% - 96px),620px)}
.own .chat-bubble-wrap{order:1;max-width:min(calc(100% - 68px),620px)}
.chat-message-line .chat-bubble-wrap .chat-bubble,.chat-popup .chat-message-line .chat-bubble-wrap .chat-bubble{max-width:100%;min-width:0;box-sizing:border-box}
.has-reactions .chat-bubble-wrap{min-width:56px}
.chat-message-actions{display:flex;gap:0;align-items:center;flex:0 0 auto}
.own .chat-message-actions{order:0;flex-direction:row-reverse}
.chat-view .chat-message-actions .chat-icon{flex:0 0 30px;width:30px;height:32px;min-height:32px!important;padding:0;font-size:18px;color:#77837b}
.chat-view .chat-message-actions .chat-message-menu{flex-basis:26px;width:26px;font-size:16px}
.chat-bubble-row:not(.own) .chat-bubble-meta{padding-left:32px}
.chat-dialog .chat-option:focus-visible{outline:2px solid #34745a;outline-offset:2px}
.chat-option-actions{display:flex;flex-wrap:wrap;gap:8px}
.chat-dialog .chat-option{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 1 auto;width:auto;max-width:100%;min-height:38px;margin:0;padding:8px 12px;border-radius:10px;font-size:14px;line-height:1.3;white-space:normal;text-align:left}
.chat-dialog .chat-option i{flex:0 0 auto;font-size:16px;color:inherit}
.chat-option-mute{display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;padding-top:12px;border-top:1px solid #e4ebe6}
.chat-option-mute label{display:flex;flex-direction:column;gap:6px;flex:1 1 160px;min-width:0;font-size:14px;line-height:1.3}
.chat-option-mute .chat-identity{box-sizing:border-box;width:100%;min-width:0;margin:0;min-height:38px}
.chat-device-setting{display:grid;gap:8px;padding:12px 0;border-top:1px solid #e4ebe6;border-bottom:1px solid #e4ebe6}
.chat-device-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.chat-device-row strong{font-size:14px;line-height:1.4}
.chat-device-row .chat-option{flex-shrink:0;min-width:82px}
.chat-device-row [aria-checked=true]{background:#e7f2eb;color:#155e3d;border-color:#88b99c}
.chat-device-status{display:block;line-height:1.4;color:#58685f}
.chat-device-status.chat-error{color:#b42318}
.chat-photos{width:220px;max-width:100%}
.chat-photos img{min-width:0}
.chat-photos img:only-child{grid-column:1 / -1}
.reaction-container .chat-post-share{display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;box-shadow:none;transform:none;color:inherit;font:inherit;line-height:1;min-height:36px}
.reaction-container .chat-post-share:hover{background:#f5f7fa;box-shadow:none;transform:none}
.reaction-container .chat-post-share i,.reaction-container .chat-post-share:hover i{color:inherit;font-size:20px}
@media(max-width:760px){html.chat-mobile-open,body.chat-mobile-open{overflow:hidden;overscroll-behavior:none}
.chat-layout.chat-open{box-sizing:border-box;inset:var(--chat-viewport-top,0px) 0 auto 0;height:var(--chat-viewport,100dvh);min-height:0;grid-template-rows:minmax(0,1fr);padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px);border:0}
.chat-layout.chat-open main{height:100%;min-height:0}
.chat-layout.chat-open .chat-history{min-height:0}
.chat-keyboard-open .chat-layout.chat-open .chat-composer{padding-bottom:8px}
}/* Inbox identities share one selector; additional identity kinds can use the same rows. */
.chat-identity-picker{width:100%;min-width:0;box-sizing:border-box}
.chat-identity-trigger,.chat-identity-option{box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:54px;padding:9px 11px;text-align:left;font:inherit;line-height:1.3;cursor:pointer;box-shadow:none;transform:none}
.chat-identity-trigger{border:1px solid #c6dcd0;border-radius:12px;background:#edf6f0;color:#174d36}
.chat-identity-trigger:hover,.chat-identity-trigger[aria-expanded=true]{background:#e1f0e6;border-color:#8dbba1}
.chat-identity-trigger>.fa-chevron-down{flex-shrink:0;font-size:12px;color:#4e7862}
.chat-identity-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.chat-identity-text .chat-account-name{min-width:0;font-size:14px;line-height:1.3}
.chat-identity-text .chat-name-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-identity-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#63746a;font-size:12px;line-height:1.25}
.chat-identity-picker .chat-avatar{width:34px;height:34px;min-width:34px;flex-shrink:0;border-radius:50%;object-fit:cover}
.chat-identity-menu{position:fixed;z-index:10025;overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid #d8e5dd;border-radius:14px;background:#fff;box-shadow:0 8px 28px #173a2726;box-sizing:border-box}
.chat-identity-menu[hidden]{display:none!important}
.chat-identity-option{border:0;border-radius:9px;background:#fff;color:#263b2f;margin:0}
.chat-identity-option:hover,.chat-identity-option:focus-visible{background:#f0f6f2;outline:2px solid #518a68;outline-offset:-2px}
.chat-identity-option[aria-selected=true]{background:#e4f2e9;color:#075b3b}
.chat-identity-trigger:focus-visible{outline:2px solid #34745a;outline-offset:2px}
.chat-identity-picker .chat-unread{flex-shrink:0}/* Shared entity labels and permission controls; scoped to chat components. */
.chat-entity-label{display:inline-block;flex:0 0 auto;font-size:10px;font-weight:500;line-height:1.3;padding:2px 5px;border-radius:5px;background:#e8f3ed;color:#205e43;margin-left:5px}
.chat-identity-search{box-sizing:border-box;width:calc(100% - 12px);margin:6px;padding:9px;border:1px solid #d8e4dd;border-radius:8px}
.chat-entity-staff .chat-staff-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e5ebe7}
.chat-entity-caps{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.chat-entity-staff .chat-staff-row>button{grid-row:1;grid-column:3}
.chat-entity-staff .chat-staff-row strong{flex:1;min-width:140px}
.chat-entity-staff .chat-staff-row label{display:inline-flex;align-items:center;gap:5px}
.chat-entity-staff [data-saved=true]{border-bottom-color:#278356}
/* A shared overview for the header popover and the mobile Messages page. */
.chat-overview-toolbar .chat-overview-summary{flex-basis:100%;margin:0 0 4px;font-size:13px;line-height:1.5;color:#56675e}
.chat-overview-kind{box-sizing:border-box;width:100%;min-height:40px;padding:8px;border:1px solid #dce1df;border-radius:8px;background:#fff;color:inherit;font:inherit}
.chat-mailbox-list .chat-mailbox-item{min-height:76px;align-items:center;gap:10px}
.chat-mailbox-item .chat-list-text{min-width:0;flex:1}
.chat-mailbox-item .chat-account-name{display:flex;flex-wrap:wrap;gap:4px;align-items:center}
.chat-mailbox-item .chat-name-text{overflow-wrap:anywhere;white-space:normal}
.chat-mailbox-item .chat-mailbox-request{white-space:normal;color:#9d4310;font-size:12px;line-height:1.4;margin-top:4px}
.chat-mailbox-item .chat-unread{flex-shrink:0}
.chat-mailbox-more{margin:12px}
.chat-request-link{flex-shrink:0;box-sizing:border-box;width:auto;margin:0 12px 8px;padding:10px;border:1px solid #f3d8c4;border-radius:8px;background:#fff6ef;color:#93400e;font:inherit;font-size:12px;text-align:left;white-space:normal;box-shadow:none}
.chat-view-title .chat-reply-identity{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#4b6657;font-size:11px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.chat-entity-permissions{margin:8px 0;display:inline-flex;align-items:center;gap:7px}
.chat-dialog{--popup-width:540px}
.people-dialog{--popup-width:460px}
