.profile-conversation{position:fixed;inset:0 0 0 auto;margin:auto 24px auto auto;padding:0;width:min(460px,calc(100vw - 32px));height:min(740px,calc(100dvh - 48px));max-width:none;max-height:none;border:1px solid #e1e3e8;border-radius:26px;background:#fff;color:#202126;box-shadow:0 24px 100px #1c23343b;overflow:hidden;color-scheme:light}
.profile-conversation::backdrop{background:#20243360;backdrop-filter:blur(3px)}
.profile-conversation-shell{height:100%;display:flex;flex-direction:column;min-height:0}
.profile-conversation header{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #e8e9ed;background:#fafafcf5;flex:none}
.profile-conversation-avatar{display:grid;place-items:center;position:relative;width:46px;height:46px;border-radius:50%;background:#edf0f6;color:#3b465d;overflow:hidden;font-weight:750;font-size:20px;flex:none}
.profile-conversation-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-conversation-heading{min-width:0;flex:1}.profile-conversation h2{font-size:18px;line-height:1.25;margin:0 0 3px;overflow-wrap:anywhere;font-family:inherit;letter-spacing:-.3px}
.profile-conversation header p{font-size:12px;margin:0;color:#777d89}.profile-conversation button{font:inherit;cursor:pointer;touch-action:manipulation}
.profile-conversation-close{width:44px;height:44px;flex:none;border:0;border-radius:50%;background:#eceef3;color:#535d6d;font-size:25px!important}
.profile-conversation-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 12px;min-height:36px;background:#fff;gap:8px;flex:none}
.profile-conversation-toolbar button{border:0;background:transparent;color:#1764c1;padding:10px 8px;font-size:12px;font-weight:600;min-height:40px}.profile-conversation-toolbar button:last-child{margin-left:auto}
.profile-conversation-history{list-style:none;display:flex;flex-direction:column;gap:14px;flex:1;min-height:0;margin:0;padding:12px 18px 20px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;overflow-anchor:none;scroll-behavior:auto}
.profile-conversation-message{align-self:flex-start;max-width:85%;overflow-wrap:anywhere;min-width:0}.profile-conversation-message.is-mine{align-self:flex-end}.profile-conversation-message.is-grouped{margin-top:-9px}
.profile-conversation-bubble{background:#eceef2;border-radius:21px 21px 21px 6px;padding:10px 14px;color:#202126;min-width:36px}
.profile-conversation-message.is-mine .profile-conversation-bubble{background:#1768d2;color:#fff;border-radius:21px 21px 6px 21px}
.profile-conversation-message.is-grouped .profile-conversation-bubble{border-top-left-radius:10px}.profile-conversation-message.is-mine.is-grouped .profile-conversation-bubble{border-top-left-radius:21px;border-top-right-radius:10px}
.profile-conversation-message p{white-space:pre-wrap;line-height:1.45;font-size:16px;margin:0;color:inherit}.profile-conversation-message strong{display:block;font-size:12px;margin-bottom:4px;color:inherit;opacity:.85}
.profile-conversation-sender,.profile-conversation-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
.profile-conversation-meta{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;margin:5px 5px 0;font-size:10px;line-height:1.4;color:#747b88;min-height:0}.profile-conversation-meta:empty{display:none}.profile-conversation-message.is-mine .profile-conversation-meta{justify-content:flex-end}
.profile-conversation-delivery{font-size:11px}.profile-conversation-message.is-failed .profile-conversation-delivery{color:#b13d34}.profile-conversation-retry{border:0;background:none;color:#1764c1;min-height:36px;margin:-7px -7px -7px 0;padding:7px;font-size:12px!important;font-weight:650!important}
.profile-conversation-empty{margin:auto 0;padding:32px 14px;color:#777d89;text-align:center;font-size:14px;line-height:1.6}
.profile-conversation-attachment button{border:1px solid #c8d4e7;border-radius:14px;background:#fff;padding:12px;color:#175aa8;min-height:44px}.profile-conversation-attachment{margin-top:6px}
.profile-conversation-media{display:block;width:100%;max-height:280px;object-fit:contain;border-radius:12px;background:#1f2632}
.profile-conversation-compose{padding:12px 14px calc(12px + env(safe-area-inset-bottom));border-top:1px solid #edf0f4;background:#fff;flex:none}
.profile-conversation-status{font-size:12px;line-height:1.45;color:#777d89;margin:0 2px 8px;overflow-wrap:anywhere}.profile-conversation-status:empty{display:none}.profile-conversation-status[data-tone=error]{color:#ab341e}
.profile-conversation-login{display:block;text-align:center;background:#1768d2;color:#fff!important;padding:14px;border-radius:18px;margin-bottom:10px;font-weight:650;text-decoration:none}
.profile-conversation form{position:relative;display:flex;gap:8px;align-items:flex-end}.profile-conversation textarea{box-sizing:border-box;flex:1;min-width:0;width:100%;font:inherit;font-size:16px;line-height:22px;resize:none;min-height:44px;max-height:112px;padding:10px 16px;border:1px solid #d4d8e0;border-radius:23px;background:#fff;color:#202126;margin:0;scrollbar-width:thin}.profile-conversation textarea::placeholder{color:#858b96}
.profile-conversation-send{display:grid;place-items:center;flex:none;border:0;border-radius:50%;height:44px;min-height:44px;width:44px;min-width:44px;padding:0;background:#1768d2;color:#fff;font-size:27px!important;line-height:1;font-weight:650!important}
.profile-conversation button:disabled{opacity:.4;cursor:default}.profile-conversation :focus-visible{outline:3px solid #91b9ef;outline-offset:2px}.profile-conversation [hidden]{display:none!important}
@media(max-width:600px){.profile-conversation{inset:var(--conversation-top,0) 0 auto;margin:0;width:100%;height:var(--conversation-height,100dvh);border-radius:0;border:0}.profile-conversation header{padding:calc(12px + env(safe-area-inset-top)) 14px 12px}.profile-conversation-history{padding-inline:14px}.profile-conversation-message{max-width:87%}.profile-conversation-compose{padding-inline:12px}}
@media(prefers-reduced-motion:no-preference){.profile-conversation[open]{animation:profile-conversation-enter .16s ease-out}@keyframes profile-conversation-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

/* Messages use a familiar system face on both profile and account pages. */
body.public-profile-page .profile-conversation,body.public-profile-page .profile-conversation *,body.members-page .profile-conversation,body.members-page .profile-conversation *{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
html[data-roster-theme="dark"] .profile-conversation textarea{background:#fff!important;color:#202126!important;border-color:#d4d8e0!important}
html[data-roster-theme="dark"] .profile-conversation textarea::placeholder{color:#777d89!important}
